[SOLVED] How to auto login in slackware 13.1 as a normal user.
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.
Distribution: x86_64 Slack 13.37 current : +others
Posts: 459
Rep:
/etc/inittab
If you mean to automatically log in without startx then you edit your nano /etc/inittab and change the run level from three to four...I don,t do this I prefer to read the verbosity and startx or startxfce4.
If you mean to log is as a user rather than root...then you type adduser at the prompt and just keep hitting return until you get to the bits you have to fill in...ignore most of it... I do !
Last edited by hughetorrance; 07-20-2010 at 12:58 PM.
After editing /etc/inittab, you will boot into runlevel 4 and a kdm login screen. Go ahead and login as a normal user. After KDE starts, press the keyboard combination Alt+F2. This will bring up a run box that you will type in:
Code:
kdesu systemsettings
A box will then pop up for your password. Enter that and the system settings dialog box will come up. Click on login manager, or it could be called login screen. Then, on the tabs across the top, click on Convenience. There you can select the user for auto login and select also a passwordless login. Click apply and you are done. The next time you reboot, it will go straight to KDE.
If you prefer to log in at the console and usually type "startx" manually, you could put this at the bottom of your ~/.bashrc (or ~/.zshrc or whatever you use to log in. It's bash if you haven't changed it)
Code:
if [[ `tty` = /dev/tty1 ]] && [[ -z "$DISPLAY" ]]; then
startx
logout
fi
This will start X automatically if you log in in tty1. If you are having problems with X or don't want it to start, just switch to tty{2-6} with Alt-F{2-6} before you log in. It's just a beautiful, simple, yet complete solution in my honest opinion.
Off the top of my head, tho', I don't *think* you have to edit the login.defs file, anymore (I've set up many boxes this way, but it's been a few months...)
thanx for the response from so many ppl.
I'm using KDE.
I'm able to autologin as a normal user by doing as mlangdn has told.
ie
After editing /etc/inittab, you will boot into runlevel 4 and a kdm login screen. Go ahead and login as a normal user. After KDE starts, press the keyboard combination Alt+F2. This will bring up a run box that you will type in:
Code:
kdesu systemsettings
A box will then pop up for your password. Enter that and the system settings dialog box will come up. Click on login manager, or it could be called login screen. Then, on the tabs across the top, click on Convenience. There you can select the user for auto login and select also a passwordless login. Click apply and you are done. The next time you reboot, it will go straight to KDE.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.