ssh [email protected]
useradd axross
passwd axross
Type your password 2 times.
- Modify /etc/pam.d/su
- Modify /etc/login.defs
- Modify visudo
- Check "sudo"
sudo -V
- Check "yum"
yum --version
- Check "git"
git --version
yum update
yum install openssl-devel sqlite-devel
yum install zsh
- Check if the installed zsh
cat /etc/shells
usermod -s /bin/zsh axross
exit
ssh [email protected]
vi ~/.zshrc
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
- Reload .zshrc
source ~/.zshrc
git clone https://github.com/sstephenson/ruby-build.git ~/.ruby-build
cd ~
sudo .ruby-build/install.sh
rbenv install 2.0.0-p451
rbenv global 2.0.0-p451
mkdir -p ~/bin && cd ~/bin && wget "https://www.dropbox.com/download?dl=packages/dropbox.py" -O dropbox.py && chmod +x ~/bin/dropbox.py
- Link account
cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf - && ~/.dropbox-dist/dropboxd
sudo yum install nginx
- Check to services
sudo chkconfig nginx on
gem update --system --no-ri --no-rdoc
gem install bundler rake rbenv-rehash --no-ri --no-rdoc
bundle config --global path vendor/bundle
Edit /etc/sysconfig/iptables
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p 50 -j ACCEPT
-A RH-Firewall-1-INPUT -p 51 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp --dport 5353 -d 224.0.0.251 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 3000 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 4567 -j ACCEPT
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
COMMIT
sudo service iptables restart