Monday, August 10, 2009

Start vnc4server automatically on Ubuntu bootup

Nice to find an article talking about how to deal with vnc4server on Xubuntu, especially for auto startup. With my imagination, now it's for Ubuntu use as well;>

Making vnc4server start automatically

You can make your vnc4server start automatically with a simple one-line script.


Paste the following into the script editing the resolution to your liking:



Now save the file and exit nano. You'll also need to make the file an executable, do so with the following command:


Finally, to have this script run automatically, simply add it to your startup group:


To remove it from your startup list, do this:


For Gnome user, better do this:

4 comments:

  1. The above doesn't work on my Debian / Xfce system.

    Can you suggest how I can get it to work on Debian?

    ReplyDelete
  2. The steps are quite straight forward. Can you describe what you have done on Debian? Try install Gnome first to see if problem is due to Xfce.

    ReplyDelete
  3. will this work on kde as well

    ReplyDelete
  4. Nothing can explain until you try.

    For Kde, you may check if the folder /etc/init.d does exists and then add a new startup script file for vnc service like the one I mentioned in startvnc.

    The most important thing is to update its runlevel so that the file will be run during bootup process.

    ReplyDelete