LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices



Reply
 
Search this Thread
Old 01-29-2008, 06:27 PM   #16
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,038

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373

@hex1a4: Thanks for your lucid explanation

But I like my /etc/inittab (it is easy, obvious, and simple), and [@syg00] the business of referring to disks by UUID is very annoying, so I am staying with kubuntu 6.06.1
I expect I'll have to "embrace" these "improvements" as time passes
[Insert dinosaur picture here].
Grrrrr!
 
Old 01-29-2008, 08:21 PM   #17
lycan
Member
 
Registered: Jul 2007
Location: Kolkata, INDIA
Distribution: Debian Lenny
Posts: 51

Rep: Reputation: 15
Open /etc/event.d/rc-default in a text editor.

Look for the lines
Code:
else
		telinit 2
	    fi
	else
	    telinit 2
Change every occurance of 2 to 1, and from next boot you will be greeted with a console login screen.

But runlevel 1 is for system maintenance tasks and lots of services are disabled by default. So it should not be used for daily use. The best option according to me is to remove any display manager installed in your system, like gdm, kdm, xdm. If you have no display manager your distro boots straight into console.

Last edited by lycan; 01-29-2008 at 08:36 PM.
 
Old 03-02-2009, 07:32 PM   #18
spirit2rock
LQ Newbie
 
Registered: Mar 2009
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by hex1a4 View Post
Hi,

If you create your own /etc/inittab file, Ubuntu will honour it.

To change your runlevels the Ubuntu way look in /etc/init.d/ which contains startup scripts. Then look in /etc/rc#.d/ which contains symlinks to scripts in /etc/init.d/. The name of the symlinks determines what will be started/stopped and in what order. Look in the README file in any of the /etc/rc#.d/ directories for details.

The # in the /etc/rc#.d/ is the runlevel number.

To stop GDM from loading in runlevel 2 (Ubuntu default runlevel) rename /etc/rc2.d/S30gdm to /etc/rc2.d/K70gdm

The S tells Ubuntu to start the process, and the K tells Ubuntu to kill it. The number is the order in which it should be started/stopped.

Have a look at the man page for update-rc.d which can be used to create/update/remove the init script symlinks for you.

EDIT: You can also install the Boot-Up Manager (BUM) which is a graphical tool to configure runlevels. It's in the repositories.

The last poster, Thank You. I saw you had no thank you's and 64 posts. I am a new Ubuntu user and learned alot from you post.

Correct me if I am wrong but... in the System5 rcX.d directories, S is for start and K is for Stop..KILL. To be used in Startup and Stop (Shutdown, run level change). (&^(^*(&%$*$%$#@%$#$^*^&^(&*^(&^%%$&@#

I am again wrong, there are no K files in Ubuntu... rc2.d, butt.. There are K files in rc1 and rc2.d.

SXXX files are done in order. They should all have a "stop" routine.

Do not rename your Startup files to KXXStuff.

Rename your startup files to sXXStuff. Only the SXXXfiles should be started.

If Ubuntu does not follow this requirement...!!! ??? .

Or maybe KXXXfiles are the Kernel? I am so confused...

George
 
Old 03-10-2010, 03:13 AM   #19
vamshidhardk
LQ Newbie
 
Registered: Mar 2010
Distribution: Ubuntu 9.10
Posts: 4

Rep: Reputation: 0
for all the above queries, with respect to Ubuntu, I would suggest you look at this document.. (Please ignore this if this has already been posted or been cited)...
/usr/share/doc/README.Debian.gz
 
Old 12-09-2010, 05:54 PM   #20
LinuxShack
LQ Newbie
 
Registered: Dec 2010
Posts: 1

Rep: Reputation: 1
Ubuntu runlevels inittab

Hi there!

In Ubuntu, as noted earlier, "upstart" has replaced the usual "sysvinit" package. There are two simple solutions to this issue. From /usr/share/doc/upstart/README.Debian.gz :

Code:
How do I change the default runlevel?
-------------------------------------

If you have an /etc/inittab file, edit it.  Locate the following line:

    id:N:initdefault:

Where N is the default runlevel, change this to match.

Most people won't have that file, you can edit /etc/init/rc-sysinit.conf
and change the following line:

    env DEFAULT_RUNLEVEL=2
Hope that helps!

LinuxShack
 
1 members found this post helpful.
  


Reply

Tags
inittab, level


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
rc[0-6] and inittab kpachopoulos Linux - General 1 08-12-2005 05:27 PM
inittab mikedeatworld Linux - Software 3 08-13-2004 11:01 AM
Cant get out of inittab InEeDhElPlInUx Linux - Newbie 3 10-09-2003 03:13 PM
/etc/inittab sakeeb Linux - General 9 05-29-2002 10:04 AM
no inittab file? Atroxic Linux - Software 2 05-14-2002 06:26 PM


All times are GMT -5. The time now is 02:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration