LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-20-2010, 12:23 PM   #1
basheer
Member
 
Registered: Mar 2009
Location: Bangalore, India
Distribution: CentOS6.5, CentOS7, Ubuntu14.04
Posts: 182

Rep: Reputation: 29
Angry How to auto login in slackware 13.1 as a normal user.


Hi All,
How can I auto login as a normal user in slackware 13.1.
I need to auto login in X.
Can some one please help.

Thanx
 
Old 07-20-2010, 12:28 PM   #2
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
It depends on which desktop environment you're using: KDE, Xfce etc. Let us know which one, and then we can see from there.
 
Old 07-20-2010, 12:54 PM   #3
hughetorrance
Member
 
Registered: Aug 2009
Location: London North West
Distribution: x86_64 Slack 13.37 current : +others
Posts: 459

Rep: Reputation: 59
/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.
 
Old 07-20-2010, 02:10 PM   #4
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,844

Rep: Reputation: 452Reputation: 452Reputation: 452Reputation: 452Reputation: 452
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.
 
Old 07-20-2010, 02:41 PM   #5
agi93
Member
 
Registered: Jan 2010
Posts: 101

Rep: Reputation: 17
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.


This idea comes from brisbin33 of the Arch Linux community. Specifically, from his website: http://pbrisbin.com:8080/pages/display-manager.html
 
Old 07-20-2010, 04:35 PM   #6
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware
Posts: 1,134

Rep: Reputation: 277Reputation: 277Reputation: 277
This thread:

http://www.linuxquestions.org/questi...ut-gui-374338/

explains in detail from start to finish.

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...)

cheers,
 
Old 07-21-2010, 12:10 AM   #7
basheer
Member
 
Registered: Mar 2009
Location: Bangalore, India
Distribution: CentOS6.5, CentOS7, Ubuntu14.04
Posts: 182

Original Poster
Rep: Reputation: 29
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.

Thanx a lo again.
 
  


Reply

Tags
autologin



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to auto mount usb drives as a normal user basheer Slackware 3 10-24-2009 10:26 PM
how to umount auto-mounted usb flashdisk by normal user JrLz SUSE / openSUSE 5 04-27-2006 02:38 AM
Auto login normal user debian a10392 Debian 3 01-14-2005 06:30 AM
Can't login in X as a normal user but root laxteryx Linux - General 2 11-09-2004 12:14 PM
How to login as a normal user? daYz Slackware 5 11-14-2003 02:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration