This is a discussion on Ubuntu Set Default Runlevel /etc/inittab within the Linux software forums, part of the Linux Getting Started category; Hi everyone, As I read some linux books, and most of them are saying there are 6 run levels in ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
|
|||
|
Hi everyone,
As I read some linux books, and most of them are saying there are 6 run levels in linux. My Desktop computer is running on SuSe 10, which I can change the default run leve very easy by editting the file called /etc/inittab. However, I coudn't figure out how to do with Ubuntu. It looks like Ubuntu doesn't have /etc/inittab file . So, does anyone in here know how to change the default run level for Ubuntu 6.10 ? I mean to change it permanently so that it will boot straight to it. For example runlevel 3. I believe that there must be a file so that it can be modified for the certain runlevel. Please reply. I would like to know the idea/response or at least somebody will say something to make this forum a little bit more active. Thank you. Very apreciate that. |
| Sponsored Links | ||
|
|
|
|||
|
Thanks a lot for your reply. However, I can't change it to the way it works in SuSe. For instance, I can change it to boot straight to the command with no X server. All I do in SuSe is do this in /etc/inittab and make it like this id:3:initdefault
Looks like to me Ubuntu has only 2 runlevels. One is single user mode (that's is 1) and another is for all with GUI (that's is from 2 to 5). That's kind of turn me down. Say, if someone wants to use Ubuntu to run for a file server, and she/he only needs to run with full multiuser with network without GUI. That's impossible. Right? Because you can't change it to telinit 1 sine that is single user mode only. I like the traditional way like Redhat and SuSe, which have 6 runlevels. Also, after I modified the file in /etc/event.d/rc-default and change to telinit1 for single user mode, my machine didn't pass the reboot. It's hanging right before it loads windows manager. I don't know if anyone in here know how to make Ubuntu boot straight to the command line without GUI involved? I heard about upstart? Did anyone use this kind of thing yet? Please helppppppppppp. Very appreciate that. |
|
|||
|
vivek is correct, there is no /etc/inittab file and /etc/event.d/rc-default is default upstart config file. After above modification type the command
Code:
sudo apt-get install rcconf sudo rcconf |
|
|||
|
Hi,
I know this topic is slightly old, but I think maybe the next generations can learn from this: lacloai posted this message long time ago: "Say, if someone wants to use Ubuntu to run for a file server, and she/he only needs to run with full multiuser with network without GUI. That's impossible. Right? Because you can't change it to telinit 1 sine that is single user mode only." Of course this is not true, and we should not quickly point people to download some magic "runlevel setup helper" tools. The original problem was to avoid loading GUI on boot. It was correctly answered how to change the default runlevel to level 3 under Ubuntu, but then you should only disable the gdm at runlevel 3 in the config files in order to get rid of the hated GUI 1.) cd /etc/rc3.d 2.) sudo mv S30gdm K70gdm This should do the trick. To get more info why you shall do it like this enter the command "cat /etc/rc3.d/README" and you'll get it. May the GUI also be added to runlevel 2, you can also disable it in "/etc/rc2.d" like in the example above. HTH, Mx |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Default webpage | anichhatre | Getting started tutorials | 3 | 07-13-2008 02:05 PM |
| howto update inittab | amsreeku | Linux software | 2 | 09-02-2007 08:36 PM |
| Runlevel in Linux | 009satya | Networking, Firewalls and Security | 4 | 03-06-2007 09:21 PM |
| Ubuntu Linux runlevel and its meaning | Linux software | 1 | 07-21-2006 12:28 AM | |
| Default Route | puppen | Linux software | 2 | 04-27-2006 12:33 AM |