SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Since there is no graphical login in slackware, how do i go about making a semi-automatic login into KDE? or even a completely automatic login into KDE would be good. I would like to automatically "startx" as my user upon bootup. Login managers and session managers built into KDE appear useless in Slackware.
To use graphical login (XDM, KDM, GDM, whathaveyou) you need to change the default runlevel. Edit your /etc/inittab and set the default runlevel to 4. Change the id entry in the inittab to the following:
# Default runlevel. (Do not set to 0 or 6)
id:4:initdefault:
Then edit /etc/rc.d/rc.4 to use the display manager you want. The default in Slackware 9.0 is Gnome Display Manager.
Then simply do the following to switch runlevel:
# telinit 4
Originally posted by VioLaToR Since there is no graphical login in slackware, how do i go about making a semi-automatic login into KDE? or even a completely automatic login into KDE would be good. I would like to automatically "startx" as my user upon bootup. Login managers and session managers built into KDE are useless in Slackware.
There is a way of running a certain program immediately after you login. In FreeBSD, I can edit the file: /etc/passwd and add a command at the end of my regular user line. I think it might work the same in Slackware, although I think you would have to use rc.local instead. Basically, it works like putting 'win.exe' as the last line of 'autoexec.bat' in MSDOS. If you'ever used, Windows 3.x!
Yes, you can change your login shell in Linux as well as in FreeBSD (and any Un*x I've ever heard of) and that might work but I would recommend not changing the login shell since this is what xterm runs when you open it.
You could do something like "last line of autoexec.bat" by putting startx or something as the last command in your .login file (assuming tcsh) and then you could tell xterm whether or not the new shell is a login shell (should read .login).
Still I think changing the runlevel is the most straight-forward and correct(TM) way of doing it.
Thanks for clarifying that, gazonk. I've been wanting to try placing startx in my startup files for sometime now. I've never had the chance to try it, tho. I will stay away from that idea, now. LOL Altho, it would've been a great learning experience for me to have tried it. For sure I wouldn't have done it after that. LOL
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.