LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   startx automatically (http://www.linuxquestions.org/questions/slackware-14/startx-automatically-124880/)

free_andrew 12-11-2003 07:36 AM

startx automatically
 
Is there a way to have KDE start-up automatically, followed by a security/login prompt?


-Andrew

belial 12-11-2003 07:50 AM

Yep
 
Just add in

/etc/rc.d/rc.M

a following line:

kdm

This will be your graphical login

or add to

/etc/profile

startx

command

GrayGhost 12-11-2003 08:37 AM

You can edit /etc/inittab and set the default runlevel to 4 then edit /etc/rc/rc.d/rc.4 and put whichever login manager you want to use(GDM,KDM,XDM) at the beginning of the script.

fr0zen 12-11-2003 10:53 AM

Doesn't X normally run on level 5?

tipaul 12-11-2003 11:11 AM

inittab 5?
 
In Slackware, Runlevel 4 is multi-user (Graphical)...

I know that in RedHat, Mandrake and others, it's 5.... But it's not the case here...!

free_andrew 12-12-2003 08:35 AM

I've tried adding 'startx' to '/etc/profile'.

This isn't so bad - after the user logs in, Startx automatically starts.

Ideally, I'd like the computer to start-up within a GUI login. I don't mind the way I've got it working right now, but I want it to be easier for some of the other users.

What you've suggested below - will this boot me from power-on into a GUI login?


-Andrew



Quote:

Originally posted by GrayGhost
You can edit /etc/inittab and set the default runlevel to 4 then edit /etc/rc/rc.d/rc.4 and put whichever login manager you want to use(GDM,KDM,XDM) at the beginning of the script.

tipaul 12-12-2003 10:06 AM

inittab...
 
ABSOLUTELY!!!!

YOU MUST change the runlevel in /etc/inittab from :3: to :4: to get able the GUI login...

By default, GDM is the one that will be used... But if you want to change it to KDM, you must do what belial told you....!

Hope the responses you got are enough for you to be able to get this GUI-LOGING starting!!! :p

tbranham 12-12-2003 10:11 AM

Yes, free_andrew, changing to runlevel 4 will do the trick. Don't forget to remove the 'startx' command from your '/etc/profile/' when you do so.

free_andrew 12-12-2003 06:56 PM

You guys rock!


;)


All times are GMT -5. The time now is 05:13 PM.