- edit MAC address
$ vi /etc/udev/rules.d/70-persistent-net.rules #ATTR{address}=="$MAC", NAME="eth0"
$ vi /etc/sysconfig/network-scripts/ifcfg-eth0 #HWADDR=$MAC, onboot=yes
- edit IP address
$ ifconfig eth0 <ip> netmask <netmask>
$ route add default gw <gateway>
$ echo "nameserver 8.8.8.8" >> /etc/resolv.conf
- install system-config-* tools and edit the config of network and firewall(iptables)
$ yum install system-config-network-tui
$ yum install system-config-firewall-tui
$ system-config-network-tui
$ system-config-firewall-tui
- (Optional) finstall and activate the CentOS Continuous Release (CR) Repository and update
$ yum install centos-release-cr
$ yum update
$ reboot
- install necessary packages
$ yum groupinstall 'Development tools'
$ yum install gcc gcc-c++ unzip vim zlib-devel bzip2-devel \
openssl-devel ncurses-devel sqlite-devel \
readline-devel tk-devel git
- install nvm
$ git clone https://github.com/creationix/nvm.git ~/.nvm
$ echo "[[ -s ~/.nvm/nvm.sh ]] && source ~/.nvm/nvm.sh" >> ~/.bashrc
$ echo "[[ -s ~/.nvm/bash_completion ]] && source ~/.nvm/bash_completion" >> ~/.bashrc
$ source ~/.bashrc
$ nvm ls-remote
- install node, search http://nodejs.org/ for stable version
$ nvm install 0.10
$ nvm alias default 0.10
- install node to system, allow other user to use node
$ n=$(which node);n=${n%/bin/node}; chmod -R 755 $n/bin/*; sudo cp -r $n/{bin,lib,share} /usr/local
Reference: nodejs via nvm