Skip to content

Instantly share code, notes, and snippets.

@oa414
Created November 8, 2015 11:49
Show Gist options
  • Save oa414/f953998125efdd033c29 to your computer and use it in GitHub Desktop.
Save oa414/f953998125efdd033c29 to your computer and use it in GitHub Desktop.
# Install Mosh and other software
yum -y update
yum groupinstall -y 'development tools'
yum -y install git vim curl screen nodejs mosh zsh nginx
yum install epel-release -y
#yum -y install mosh
sudo iptables -I INPUT 1 -p udp --dport 60000:61000 -j ACCEPT
# Install RVM
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
\curl -sSL https://get.rvm.io | bash
echo "source /etc/profile.d/rvm.sh" >> ~/.bashrc
. ~/.bashrc
rvm install 2.1.5
gem install bundler
# Install VNC
yum -y groupinstall Desktop
yum install -y gnome-core xfce4 firefox
yum install -y tigervnc-server
chkconfig vncserver on
wget https://gist.githubusercontent.com/oa414/9a04c95245b7dd54b1f5/raw/49ffdaa592c61897addb4d7ebb61e403a1dfc1e0/vncservers -O /etc/sysconfig/vncservers
vncpasswd
pkill vnc
wget https://gist.githubusercontent.com/oa414/9a04c95245b7dd54b1f5/raw/49ffdaa592c61897addb4d7ebb61e403a1dfc1e0/xstartup -O .vnc/xstartup
service vncserver restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment