LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-20-2005, 02:54 PM   #1
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Rep: Reputation: 30
Runlevels setup


Hi - I came to love the run level setup in SuSE 9.x

Basically, in runlevel 3 it was non-kde
and run level 5 was X and KDE.

This was brilliant because if I wanted to do something to update drivers,
or I wanted to shutdwon kde, I could just go "init 3"

How can I set this up on a very recent slackware-current?

Thanks,
Riddick
 
Old 08-20-2005, 03:43 PM   #2
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware 15.0
Posts: 1,272

Rep: Reputation: 65
telinit
You might want to read the man page for more details.
 
Old 08-20-2005, 04:15 PM   #3
brm
LQ Newbie
 
Registered: Apr 2004
Posts: 18

Rep: Reputation: 0
1. if you want to change runlevel during session:

your are e.g. in runlevel 4 (KDE), just type "init 3" as you did in SuSE

2. if you want to set default runlevel after boot:

edit /etc/inittab - change default runlevel

3. if you want to override default runlevel during boot:

while lilo choises are displayed, press TAB, then write your choice and you can change runlevel simply by adding runlevel number
for example if your choises in lilo are WinXP, SuSE, Slackware, write "Slackware 3" in prompt and press enter... Slackwaer will boot into runlevel 3 even if default is 4 or whatever else

Last edited by brm; 08-20-2005 at 04:20 PM.
 
Old 08-20-2005, 05:24 PM   #4
LiNuCe
Member
 
Registered: Apr 2004
Location: France
Distribution: Slackware Linux 10.2
Posts: 119

Rep: Reputation: 15
Re: Runlevels setup

Quote:
Riddick :
(...) Basically, in runlevel 3 it was non-kde and run level 5 was X and KDE. This was brilliant because if I wanted to do something to update drivers, or I wanted to shutdwon kde, I could just go "init 3". How can I set this up on a very recent slackware-current?
Runlevels for Slackware Linux are explained by the Runlevel Initialization Scripts section in the new Slackware Book. The new SlackBook is really a must-read when you are new to Slackware Linux.

-- LiNuCe
 
Old 08-20-2005, 05:50 PM   #5
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Original Poster
Rep: Reputation: 30
I'll have a read through - thanks very much everyone!
 
Old 08-20-2005, 07:14 PM   #6
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 849

Rep: Reputation: 33
Slackware uses the BSD style. By default it boot into runlevel three. If you want it to boot into a GUI, then you have to change the three to a four, not five.
 
Old 08-23-2005, 06:29 AM   #7
Riddick
Member
 
Registered: May 2004
Location: Rome, Italy
Distribution: slackware-current
Posts: 454

Original Poster
Rep: Reputation: 30
Yep, brilliant, thanks, it was 3 and 4.
It wasn't working for me because I'd added kdm to rc.local!


Thanks again
Riddick
 
Old 11-01-2005, 07:01 PM   #8
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31
how can I know which is the current run level in the system?
 
Old 11-01-2005, 09:05 PM   #9
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
For the three years I have been doodling with GNU/Linux I always have had at least two GRUB boot options for my distros. I prefer to boot straight into KDE, which I manually edited inittab to provide me. But I also always keep a second boot entry that overrides inittab by booting into the command line using the boot parameter of init 3. Although I can exit the KDE with telinit, the additional boot option is handy when I know ahead of time I need to stay out of the GUI to perform whatever task is at hand or if I am tinkering or troubleshooting. I think a lot of distro vendors would do well to provide their customers both boot options.
 
Old 11-02-2005, 12:15 AM   #10
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Quote:
Originally posted by raska
how can I know which is the current run level in the system?
By executing: /sbin/runlevel (before asking what's the 'N' ouput, read the man page)

And to know which runlevel you're using by default and change it, take a look at /etc/inittab, the line that says: id:3:initdefault: (3 for runlevel 3).
 
Old 11-02-2005, 09:38 AM   #11
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31
Quote:
Originally posted by gbonvehi
By executing: /sbin/runlevel (before asking what's the 'N' ouput, read the man page)

And to know which runlevel you're using by default and change it, take a look at /etc/inittab, the line that says: id:3:initdefault: (3 for runlevel 3).
looks like who -r solved better my doubt, it was mentioned in the runlevel's man page. Thanks anyway.
 
  


Reply



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
Runlevels nin881 Slackware 8 05-21-2005 02:50 AM
Question About Runlevels opsraja Fedora 6 11-24-2004 02:53 PM
RunLevels bcom Mandriva 3 05-31-2004 07:07 PM
runlevels? Computergirl24 Linux - Software 4 12-26-2003 04:45 PM
runlevels kriver Linux - General 1 03-13-2002 05:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:45 PM.

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
Open Source Consulting | Domain Registration