Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

2 Answers

up vote 1 down vote accepted

Maybe this blog entry can help you: http://www.abdevelopment.ca/blog/start-vnc-server-ubuntu-boot

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
add comment

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
add comment

Your Answer

 
discard

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.