Software Projects

Using VNC to Connect to an Ubuntu Server with a Full Screen Window Manager

Posted in Uncategorized by rmtheis on July 22, 2011

Do the one-time setup:

Install the VNC server package:

sudo apt-get install vnc4server

Set the password you want to use, entering a strong password:


Run the following command to create your VNC configuration file:

vncserver :1 -geometry 1366x768 -depth 16

Then kill the session:

vncserver -kill :1

You should now have a config file at: ~/.vnc/xstartup. Edit that file and uncomment the following directives:


sh /etc/X11/xinit/xinitrc


Each time you want to connect:

Connect by ssh to the server, and start your VNC server session on the server:

vncserver :1 -geometry 1366x768 -depth 16

Run your VNC client (Chicken of the VNC for Mac, Putty for Windows) on your local machine and connect to the server, using the password you set up above, and the display number as specified above (“:1“).

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s