LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Tags used in this thread
Popular LQ Tags , , , ,

Reply
 
Thread Tools
Old 01-29-2008, 06:27 PM   #16
tredegar
Senior Member
 
Registered: May 2003
Location: London, UK
Distribution: Kubuntu6.06.1LTS (still excellent!). Kubuntu 8.04.1
Posts: 4,381
Thanked: 143

[Log in to get rid of this advertisement]
@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!
tredegar is offline     Reply With Quote
Old 01-29-2008, 08:21 PM   #17
lycan
Member
 
Registered: Jul 2007
Location: Kolkata, INDIA
Distribution: Debian Lenny
Posts: 51
Thanked: 0
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..
lycan is offline     Reply With Quote
Old 03-02-2009, 07:32 PM   #18
spirit2rock
LQ Newbie
 
Registered: Mar 2009
Posts: 1
Thanked: 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
spirit2rock is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 nocturna_gr 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 03:42 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration