Add Comment

You are not currently logged in. If you do not have a user account then please consider creating one and logging in before you post your comment. This will allow you to track replies to your comment, and take part in the site much more freely.

To add your comment, fill in all the boxes below and then preview it to make sure you're happy with the way that it looks.

This is the comment you were replying to, attached to the article An introduction to run-levels:


Re: An introduction to run-levels
Posted by Anonymous (132.174.xx.xx) on Mon 13 Feb 2006 at 16:12
sounds like you're trying to do what I am doing on my Kubuntu system. I want the runlevels to work sort of like RedHat, although in general I like Debian better. I want this:

1 - single user, Kubuntu defaults
2 - single user with sshd so I can remote admin
3 - console only multiuser like RedHat (not that I'd use this on my laptop much, but I like having this option in general for UNIX operating systems
4 - unused, just going to leave it Kubuntu defaults like Kubuntu rc2.d or my rc5.d
5 - multiuser with X Windows and KDE, the Kubuntu defaults

First I edited /etc/inittab and changed the default runlevel to 5 for my laptop

Then cp -l /etc/rc1.d/ /etc/rc2.d/ and cp -l /etc/rc3.d/ /etc/rc2.d and then delete all the links I don't want to make everything killed and only start sshd first (S15ssh) and then single user (S20single). This might not work because I'm just hacking around, but if not I'll figure out which one is the text logon that would be used if you switched this in the system properties with wahtever K tool does this (I know I've been there before).

Really, you have to expect this to be difficult when you're making runlevels work different on your system. This is not easy. I did this once on a RedHat system just to screw around and it worked great though. I can't remember what I was doing but it was probably making use of runlevel 4 on that system.

I also like a previous poster's suggestion to mv things to change S##service to K##service; it's a lot faster than what I'm doing for most things you'd want to change. Bottom line, know this:

The K scripts in order kill things. The S scripts in order start things. Know what you're killing. Know what you're starting. And leave yourself a couple untouched run levels in case you screw something up; I haven't changed single user, 4 or 5, so I can telinit 5 if everything is wrong and I can always start over by copying rc5.d to another run level. Don't mess with single user and leave one other unchanged, adn experiment.

as soon as Adept finishes upgrading packages I'm going to try this out. i'll post results.

Username:Anonymous
Title:
Your Comment:

Posting Format:

 

Inappropriate comments will be removed.

Some help on entry formatting is available

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search