CENTOS7 Test Environment Installation Notes

Source: Internet
Author: User
Tags i18n mirror website ping network gocode
This is a creation in Article, where the information may have evolved or changed.

From the newly installed computer, the original centos6.3 virtual machine image accidentally deleted, simply upgrade the test environment to CENTOS7, here to do a record

1. Network

vim   /etc/sysconfig/network-scripts/ifcfg-eno16777736

Userctl=no
Nm_controlled=no
Onboot=yes
ipaddr=192.168.1.199
netmask=255.255.255.0
gateway=192.168.1.1
dns1=192.168.1.1

As modified as static IP, here is a little episode, because my host system is plugged in a network cable, and open WiFi led to the service network restart successful execution, still ping network. Turn the wireless off and you'll be able to ping it.

2. sudo

 visudomyname     ALL=(ALL)       ALL

3. Installing zsh

Install git first

sudo yum install git

Installing zsh

sudo yum install zshchsh -s /bin/zsh

Install Oh my zsh

git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zshcp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrcplugins=(git  autojump )

Installing autojump

git clone git://github.com/joelthelion/autojump.git./install.py修改~/.zshrc 添加如下[[ -s ~/.autojump/etc/profile.d/autojump.sh ]] && . ~/.autojump/etc/profile.d/autojump.sh

Dealing with the problem of the symbol garbled in putty
Downloadable Deja Vu Sans Mono wide font, set to Putty default font after various symbols are displayed normally

4. Installing HG

sudo yum install hg修改 .hgrc[hostfingerprints]code.google.com=ad:b8:73:14:d5:26:84:ad:cc:6d:de:34:09:08:dd:a4:96:f9:b2:90[web]cacerts = /etc/pki/tls/certs/ca-bundle.crt

Reference to mercurial HG set Goagent agent

5. Installing Golang

Because Golang.org official website Unfortunately by the wall, had to download the source code installation in the domestic mirror website

wget http://www.golangtc.com/static/go/go1.4.src.tar.gz

6. Modify the. ZSHRC environment variable

export GOROOT=/usr/local/goexport PATH=$PATH:$GOROOT/binexport GOPATH=$HOME/ext:$HOME/mygo使修改生效source .zshrc

7.go language syntax support, installation of Godef and Gotags, and Gocode

go get code.google.com/p/rog-go/exp/cmd/godefgo get github.com/jstemmer/gotagsgo get -u github.com/nsf/gocode

8. Install Vim

sudo yum install vimgit clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundlewget http://hainawork.qiniudn.com/.vimrc

9. Support Chinese

Many VPS are not supported in Chinese by default and need to be installed manually. Modify/etc/sysconfig/i18n content on CentOS:

LANG="zh_CN.UTF-8"SUPPORTED="zh_CN.UTF-8:zh_CN:zh:en_US.UTF-8:en_US:en"SYSFONT="latarcyrheb-sun16"
yum search chineseyum install kde-i18n-Chinese.noarch

10.tmux

Refer to Tmux–linux terminal management software Installation
Tmux and Vim color issues
Edit ~/.ZSHRC

   alias tmux='tmux -2'   export TERM="xterm-256color"

Edit ~/.VIMRC

  set t_Co=256

Edit ~/.tmux.conf

    set -g default-terminal "screen-256color"
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.