Skip to content

Instantly share code, notes, and snippets.

@dannysmith
Last active January 2, 2016 16:59
Show Gist options
  • Select an option

  • Save dannysmith/8333358 to your computer and use it in GitHub Desktop.

Select an option

Save dannysmith/8333358 to your computer and use it in GitHub Desktop.
Install remote X and VNCstuff on test agent.
# See here: http://rbgeek.wordpress.com/2012/06/26/how-to-install-vnc-server-on-centos-6/
# Check that we're on Centos 6
cat /etc/redhat-release
# Instal stuff we need
yum groupinstall Desktop
yum install xorg-x11-xauth xterm
yum install tigervnc-server
yum install xorg-x11-fonts-Type1
yum install vnc
# Set up VNC user and passwords
chkconfig vncserver on
vncpasswd
nano /etc/sysconfig/vncservers
# Add:
# VNCSERVERS="1:arbab"
# VNCSERVERARGS[1]="-geometry 1024x600"
# Ammend IP dable rules to open VNC ports
iptables -I INPUT 5 -m state --state NEW -m tcp -p tcp -m multiport --dports 5901:5903,6001:6003 -j ACCEPT
service iptables save
service iptables restart
# Restart tehn kill VNC Server
service vncserver restart
vncserver -kill :1
# Edit the xstartup file in .vnc directory and comment last line
nano .vnc/xstartup
# #twm &
# exec gnome-session &
# Restart VNC server
service vncserver restart
# Install Browsers
yum install firefox.x86_64
wget http://chrome.richardlloyd.org.uk/install_chrome.sh
chmod u+x install_chrome.sh
./install_chrome.sh
# Test Chrome works with `google-chrome &` as non-root user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment