I would like to run x11vnc (or another VNC server) on my desktop, but I'm unable to find a way to get it to start before any users log in. Back when I was using vanilla Ubuntu 10.10 Vino did this by default. However, I can't find a way to do it now in Xubuntu.
Ubuntu – How to start a VNC server before log on
11.10autostartvinovncxubuntu
Best Answer
I usually suggest an alternate VNC server, x11vncserver or FreeNX.
FreeNX how to and download info
x11 VNC and docs
This assumes that VNC is setup and run-able:
Copy the code block below into
/etc/init.d/vncserver
. The easiest way to do it is to copy it to your clipboard, runsudo -i && cat > /etc/init.d/vncserver && exit
in a terminal, paste it in, and type Ctrl-D`. Be sure to change the USER variable to whatever user you want the VNC server to run under.Make the script executable with
sudo chmod +x /etc/init.d/vncserver
.Then, run
sudo update-rc.d vncserver defaults
. This adds the appropriate symlinks to the vncserver script so that it is sent the start and stop commands at the appropriate time.Note: you may need to use
sudo update-rc.d vncserver 99
instead if the job is running too early in the boot process.To start the server without rebooting, run
sudo /etc/init.d/vncserver start
Finally, connect to your server with a VNC client on port 590X, where X is the value of "DISPLAY" in the vncserver script
source