Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello everyone! I'm very new to the world of Linux (and all Unix-like OS'es in general) and I seem to be understanding most of it--slowly but surely.
I am using Slackware 12 and have a dual boot setup between Slackware and Windows XP using LILO. Much of the time, I work from the Linux command prompt in order to try and familiarize myself with the operating system and its commands as much as possible, but I work from KDE quite a bit as well. My question is this: is there a way to add a third option to my LILO boot screen that will boot directly into KDE? I've tinkered around a little bit, but I've had no success. I'm assuming there's something I have to APPEND in my lilo.conf file, but I don't know exactly what.
I found that KDE has an "autostart" feature, but I really don't want to do that. I want the choice of logging into the CLI or into KDE with each boot-up. It may be a picky request, but it should be somewhat easy, right?
Read up on runlevels. Runlevel 3 in slack refers to multi-user mode and leaves the user in the command line. Runlevel 4 is multi-user mode with X11, so that would launch KDE.
So when your machine is booting up, hit Tab at the Lilo screen to enter the Lilo prompt. If your lilo config for slack is called 'Linux', then type 'Linux 3' to go to the console login, and 'Linux 4' to start X. (Of course if you do nothing and just hit enter, the default runlevel will start).
Assuming your default right now is the console login and you need to change it to GUI login, edit /etc/inittab and change this line:
Code:
id:3:initdefault:
to this:
Code:
id:4:initdefault:
This might be a little different from what you're expecting (i.e. having 2 different fields in Lilo for 2 different runlevels). I'm not sure if that is possible, maybe someone else can pitch in their ideas.
Thank you everybody for your very quick and friendly replies!
Based on your answers, I was able to configure LILO to do exactly what I wanted. kanwar_rajan, at the time of posting, I didn't know the terminology well enough to express myself clearly, but I was basically asking if there was a way to have multiple options in LILO to boot the same Linux kernel into two different runlevels (one for the console, and for the desktop environment). I wasn't sure if this was something LILO could do itself, or if I needed to write out different startup scripts in order to accomplish this.
I took arungoodboy's advice and read all about runlevels, how they are used, and when they are implemented. It then dawned on me that I could just start the system from runlevel 4 and that would do what I wanted. I was initially overthinking it and trying to make LILO load a script that would include the "startx" command. I followed ranger_nemo's example about using the "append" line and it worked perfectly.
Thanks a lot you guys, your help is much appreciated!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.