Xubuntu 11.10 vnc server

I've recently decided to use my desktop as a server without keyboard/screen.
To accomplish that I needed a way to connect to the machine so I went off VNC hunting.
After lots of research I've found a couple of useful forum posts at the Ubuntu Forum. For the sake of simplicity I summarize them here.

  1. Install x11vnc
  2. sudo apt-get install x11vnc
  3. Setup vnc password
  4. sudo x11vnc -storepasswd PaSsWoRd /etc/x11vnc.pass
  5. Configure x11vnc to start when your system starts
  6. Create /etc/init/x11vnc.conf file and add this as a content: start on login-session-start script x11vnc -display :0 -auth /var/run/lightdm/root/:0 -forever -bg -o /var/log/x11vnc.log -rfbauth /etc/x11vnc.pass -rfbport 5900 end script
  7. Test it with RealVNC or TightVNC

It was all working fine until I noticed that the screen resolution that I wanted to use wasn't available in xfce. ie.: my screen is 1680x1050 and I've got a vnc session with 1600x1200.

Comments

  1. FYI If you find that the VNC server is not running at startup

    1. Test the upstart job with the command 'sudo start x11vnc'
    2. If the command returns an error, rewrite your /etc/init/x11vnc.conf. Do not copy and paste!

    Thanks for the help!

    ReplyDelete
  2. Fucking best idea for me :D

    ReplyDelete

Post a Comment

Popular posts from this blog

The biggest java security vulnerability of 2021