Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want an NX or VNC session to start automatically when an Ubuntu server boots up - without a monitor connected - loading a certain user's desktop and keeping it loaded and ready until I log in via NX or VNC.

How would one accomplish that?

This code works via my terminal when I am logged in as the NX user, but not via root, and not in the init.d folder. No idea why?

/usr/NX/bin/nxclient --session /home/user/.nx/config/SavedSession.nxs

Please provide somewhat simplified instructions! I am certified linux newb.

share|improve this question
up vote 1 down vote accepted

Maybe this blog entry can help you:

I remember that there is a Xorg Server plugin which enables you to open a vnc connection similar to a rdp session in windows with user authentication over your display manager but I really dont find the link to the plugin anymore.

share|improve this answer
the "server plugin" you're thinking of is probably x11vnc or vino, which provide a VNC server to an existing X display. on a headless server you don't want that; you want Xvnc to provide both the X display and VNC server. that blog link is the right way to do it (unless you want a login screen, in which case you get to convince GDM to play nice with Xvnc). – quack quixote Feb 19 '10 at 15:12
its x11vnc. thank you for your explanation – grub Feb 19 '10 at 15:25

this is how I did it

xvfb-run --auto-servernum --server-num=1 /usr/NX/bin/nxclient --session /home/user/.nx/config/SavedSession.nxs
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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