------ Original message :

Date: Sat, 20 Jan 2007 17:38:45 +0000 (GMT)
From: Ubuntu Newbie <[EMAIL PROTECTED]>
Subject: runlevel?
To: [email protected]

> I would like to change the default boot runlevel, so that the X server does 
> not start automatically.  I don't want it to start until the command "startx"

> is given.

That's no problem!  This is a very common practice for servers or people with
old hardware and good skillz :-)

> This would make the entire screen a bash terminal at first, until 
> the X server is started (If I remember correctly, this can be accomplished by

> changing the default runlevel in /etc/inittab to "3").

That has traditionally been the way to change default runlevels with Unix-like
systems, however if you're running Edgy Eft (6.10) things have changed a bit. 
>From my probing it looks as if /etc/event.d/rc-default is hard-coded to use
runlevel 2 if /etc/inittab does not exist (which of course it doesn't if you're
running Edgy or Feisty).

Furthermore, with modern Debian-based distros such as Ubuntu, the run-level
scripts are (by default) set up for a fixed runlevel of 2, and changing it to 3
probably won't effect the change you want to see.  So the easiest way to do
what you want is probably to leave the default runlevel alone and instead just
disable starting the Xserver at run-level 2.

The best way to achieve this is probably to run 'sudo sysv-rc-conf', as the
other chap suggested.  In case it's not installed, just install it in the usual
fashion using either Synaptic or aptitude/apt-get.

> What worries me is whether I will be able to log on to Ubuntu at all if I do 
> this.  I get the impression that Gnome of KDE must be running in order to be 
> able to log on at all.
> Is it possible to change the runlevel so that ubuntu boots without 
> automatically starting X, and, if it is, how should I go about to make these 
> changes without getting into trouble?

The program that looks for input and facilitates logins on the console and
text-mode virtual terminals (tty1, 2, 3 etc) is /sbin/getty, and this (or a
variant thereof) runs by default on just about every Unix-like system out
there.  If you look in your /etc/inittab (Dapper) or /etc/event.d/tty1 tty2
tty3 etc you'll see the gettys listed there.  So in short, you'll not have any
problem logging in from the CLI without an Xserver running and you don't have
to do anything extra to enable this functionality.

Hope this helps,
Ash

-- 
"We do not inherit the earth                http://backtobreath.com/
  from our ancestors;                 ...--    __@
 we borrow it from our children"     ....---  _\<,_
 -- Antoine de St. Exupery                   (_) (_)
                                  Reg. user: Linux #390621 Ubuntu #7291


                
___________________________________________________________ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com

-- 
ubuntu-desktop mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-desktop

Reply via email to