I'd like to have my VNC sessions to a server use a separate display from the physical screen. So that e.g. I could have the physical screen locked in screensaver while the VNC display is unlocked.

Is there a simple way to achieve this?



Here are simple instructions that should apply to any linux distribution that has the vncserver executable on it. In a nutshell:

  1. Create a VNC server password with vncpassword
  2. Start a VNC server by calling vncserver with the options you want to use for the desktop (colour depth, screen size, sharing, etc.)
  3. Connect to that instance (from the local machine or a remote machine) using any VNC client and the password you set in step 1.

Start a session with vncserver. You'll have to make an executable shell script ~/.vnc/xstartup that starts some window manager and possibly some apps

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.