Virtual VNC screen/workspace

All we need is an easy explanation of the problem, so here it is.

I’ve got one monitor (the family TV) attached to my Ubuntu 8.04 system, and when I need to work on it I usually VPN into it from another PC. However I’d like to be able to VPN in even when it’s in use as the media center.

Is there a way to create a second virtual monitor/workspace that I could VNC into? I know I could telnet in, but I want the GUI desktop. The graphics card supports multiple screens – should I configure it for another monitor even though there is no other physical monitor?

How to solve :

I know you bored from this bug, So we are here to help you! Take a deep breath and look at the explanation of your problem. We have many solutions to this problem, But we recommend you to use the first method because it is tested & true method that will 100% work for you.

Method 1

If you are using FreeVNC:

If say your computer name is comp-user-01. You can VNC into a different session by using: comp-user-01:1

I believe you can set how many simultaneous users within the VNC server settings.

Edit: You can replace the last 1 with the number of the session you want to log into.

Method 2

Connect as discussed in Sakamoto Kazuma’s answer.

You’ll need an xstartup script in ~/.vnc/xstartup. It may already be there. If not, the standard one looks like:


# Uncomment the following two lines for normal desktop:
# exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &

Now, uncomment the two lines starting with “# unset ” and “# exec ” (yeah– those two just below the comment that says “Uncomment the following two lines for normal desktop”

That should give you your normal, Gnome desktop.

Note: Use and implement method 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from or, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply