wget http://installit.googlecode.com/hg/install.teamviewer.sh -O - | bash -
#!/bin/bash
# install required libs
sudo apt-get install -y libc6-i386 lib32asound2 lib32z1 ia32-libs
if [ "$(uname -m)" == "x86_64" ]; then
# 64 bit
URL=http://www.teamviewer.com/download/teamviewer_linux_x64.deb
else
# 32 bit
URL=http://www.teamviewer.com/download/teamviewer_linux.deb
fi
# download
wget ${URL} -P /tmp
# install
sudo dpkg -i /tmp/teamviewer_linux*.deb
# # SERVER # # install x11vnc and start in listener mode sudo apt-get install x11vnc x11vnc -noxdamage -once -timeout 30 -connect "panticz.dyndns.org:5500" # # Linux client # # update your dyndns.org ip and enable port forward for 5500 #https://www.dyndns.com/account/services/hosts/ sudo ddclient vncviewer -listen # # Windows client # http://dl.dropbox.com/u/4170695/www/VNC4.zip # LINKS # https://help.ubuntu.com/community/x11vnc # http://www.heise.de/ct/ftp/08/07/194/ # http://www.heise.de/netze/X-Window-Desktop-fernsteuern-per-Shell-Skript-und-VNC--/artikel/108532