Saturday, September 17, 2011

Setup VNC server in Ubuntu 10.04

I needed a system outside my company firewall to access access some internet based applications. I wanted to use a web browse from that. But all I had was, a cloud node running Ubuntu 10.04 with command line access to it. I installed VNC server in that to run firefox web browser. Steps are below -

  1. sudo apt-get install xinit
  2. sudo apt-get install x11vnc
  3. sudo xinit &
  4. x11vnc -safer -localhost -nopw -xkb -once -display :0 &
  5. Create a ssh connection from Putty. I have user ssh port forwarding feature to make the connection secure. After configuring normal host name, user id or ssh key etc. go to Connection > SSH > Tunnels section. Input 5902 for Source and localhost:5900 for Destination. Click Add.
  6. Now open this session from Putty.
  7. Download Tightvnc java client and unzip it to some directory.
  8. Run the jar file that was extracted in last step.
  9. In the new window, input 127.0.0.1 for Server and 5902 for port. It should launch another window showing Ubuntu system.
Now you can install any GUI application in Ubuntu and use it through VNC.

No comments:

Post a Comment