Startup Scripts

Ryan Jacobs ryan at
Tue Sep 6 07:45:38 UTC 2005

Hi Craig,

Your response here prompts a quick question from me....

I have done a similar thing with our headless Ubuntu office server, and 
occasionally use VNC to do some admin with the interface. I still just 
use the default runlevel 2 always though.... and have not 
customized/disabled anything.

What I want to ask is, how do you get VNC going with your setup? 
Obviously you would switch to runlevel 2 (you could do this remotely via 
ssh), but are you able to then make a remote VNC connection without 
physically logging in at the PC itself? In my setup I enabled VNC in the 
Gnome interface, but the only way I can activate it is to blindly, 
physically login at the server (gotta plug-in a keyboard, and hope my 
keystrokes are right...) because the VNC server only comes alive after 
interface login (not at the graphical welcome screen).

Just wondering if you have to do the same thing... or have a more 
efficient way given your customizations.


Craig Hagerman wrote:
> On 9/6/05, Peter Garrett <peter.garrett at> wrote:
>>The command is "runlevel", funnily enough :)
>>Mind you, since Ubuntu follows Debian practice, you are likely to see "2" , unless you have done an "init 1" or something.
> Thanks Peter. 
> I just set up a server with Ubuntu (long time Debian user, first time
> with Ubuntu though!) and I already set it to start with run level 3.
> Just wanted to make sure it is doing that. It is a headless server so
> I set run level three to start without gdm, X etc. I will leave 2 as
> it is so that I can switch to that when / if I want to log in via VNC.
> Craig
> (PS - did you know Peter and Craig both mean "rock"? Peter is my
> middle name! Guess that explains my hard-headedness!)

More information about the ubuntu-users mailing list