LinuxQuestions.org
Review your favorite Linux distribution.
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 03-26-2005, 07:35 PM   #1
longnam
Member
 
Registered: Mar 2005
Posts: 69

Rep: Reputation: 15
booting direct into Xwindows without login


Hi there,

Is there a way that i can by pass the login screen to Xwindows?? i just want to slack boot directly to xwindows without login at all.

thanks in advance
 
Old 03-26-2005, 07:39 PM   #2
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
I'm assuming since this is slack we're talking about that you are using kde as your desktop? If so, then go into the control center, and under the bottom tab just change your login manager.

Alunduil
 
Old 03-26-2005, 09:32 PM   #3
cereal83
Member
 
Registered: Feb 2004
Location: Canada
Distribution: Slackware
Posts: 479

Rep: Reputation: 30
Yeah, u have to enable auto login in the control panel!
 
Old 03-27-2005, 04:24 PM   #4
longnam
Member
 
Registered: Mar 2005
Posts: 69

Original Poster
Rep: Reputation: 15
how do you auto login to xwindows with root access or root account ???

Thanks
 
Old 03-27-2005, 05:15 PM   #5
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
It's generally a very bad idea to login as root for all of the time. I can only imagine the catastrophe awaiting someone who wants their computer to auto-login the super account. My recommendation, at most auto-login as your user account. Personally, I wouldn't even do that. You never know if one of your buddies/family members is gonna come over and use your computer, or if you yourself are logged in as root; then it gets really scary. You could inadvertently wipe parts of your system change all settings etc.

So, stay away from root if at all possible, and stick to a friendly user account for yourself. Only use the power when the power is needed, not any other times. Will make your system live longer.

Alunduil
 
Old 03-27-2005, 07:10 PM   #6
DaWallace
Member
 
Registered: Feb 2004
Location: Southern Maine, United States
Distribution: Slackware Ubuntu Debian FreeBSD
Posts: 418

Rep: Reputation: 31
I can't imagine why you'd want to do anything as stupid as that. but, you can add startx to the last line of your /etc/rc.d/rc.local and that will do it.

note: don't ever do that.
 
Old 03-27-2005, 07:27 PM   #7
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
hey guys does anyone know how to auto-login to X (non-root user) on a slackware box without kde or gnome installed??? a full install using only CD 1...

looks like xdm doesn't have built-in auto-login capabilities, but maybe you guys know a way to script an auto-login??
 
Old 03-27-2005, 09:10 PM   #8
DaWallace
Member
 
Registered: Feb 2004
Location: Southern Maine, United States
Distribution: Slackware Ubuntu Debian FreeBSD
Posts: 418

Rep: Reputation: 31
the same dirty solution I posted above works for users.

su [user] -c startx
 
Old 03-27-2005, 09:16 PM   #9
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
thanks... i'm gonna try that... what does the "-c" mean??
 
Old 03-27-2005, 09:18 PM   #10
DaWallace
Member
 
Registered: Feb 2004
Location: Southern Maine, United States
Distribution: Slackware Ubuntu Debian FreeBSD
Posts: 418

Rep: Reputation: 31
the man page says:


Additional arguments may be provided after the username, in which case they are
supplied to the user's login shell. In particular, an argument of -c will cause the
next argument to be treated as a command by most command interpreters. The command
will be executed by the shell specified in /etc/passwd for the target user.

 
Old 03-27-2005, 09:25 PM   #11
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
oh, okay... i did look at the man page before asking, i just missed that part... my brain was looking for a bold -c on the left... hehe...

BTW, what about putting a "-" before the username??

i'm curious cuz it says:

Quote:
su [-] [username [args]]

The optional argument - may be used to provide an environment similiar to what the user would expect had the user logged in directly.
sounds like something that might be useful... what do you think??
 
Old 03-27-2005, 09:30 PM   #12
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The KDM session manager can do that. On SuSE Linux you would go the the 'Edit Groups and Users' setup dialog to make the change. I don't know what you have for slackware. You can use KDM to login to the window manager of your choice. However, the common way to set it up is to use the kcontrol program. But if KDE isn't installed, I don't know if you can use it, or exactly what changes it would make, such as changing the /etc/inittab file and making changes to the /etc/pam.d/ configuration files.

Also, using autologin is potentially dangerous and shouldn't be used if you access the Internet, or if you have a user on the local network that you don't totally trust. For example, if the changes add an option to KDM or mingetty this may be readable in /proc/<pid>/cmdline.
You should only use it if you want to run a kiosk.

Last edited by jschiwal; 03-27-2005 at 09:31 PM.
 
Old 03-27-2005, 09:37 PM   #13
DaWallace
Member
 
Registered: Feb 2004
Location: Southern Maine, United States
Distribution: Slackware Ubuntu Debian FreeBSD
Posts: 418

Rep: Reputation: 31
Quote:
Originally posted by win32sux
oh, okay... i did look at the man page before asking, i just missed that part... my brain was looking for a bold -c on the left... hehe...

BTW, what about putting a "-" before the username??

i'm curious cuz it says:



sounds like something that might be useful... what do you think??
you may or may not have to do that. if it works, it probably doesn't matter too much. you might want to do it just to be safe

and...

Quote:
Originally posted by jschiwal
The KDM session manager can do that. On SuSE Linux you would go the the 'Edit Groups and Users' setup dialog to make the change. I don't know what you have for slackware. You can use KDM to login to the window manager of your choice. However, the common way to set it up is to use the kcontrol program. But if KDE isn't installed, I don't know if you can use it, or exactly what changes it would make, such as changing the /etc/inittab file and making changes to the /etc/pam.d/ configuration files.
ooh.. firstly.. you need far more kde components than would be worth it, and, what? PAM?.. I know naught of what you speak. (not in slackware)

Last edited by DaWallace; 03-27-2005 at 09:38 PM.
 
Old 03-27-2005, 10:07 PM   #14
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
okay, i put these in my /etc/rc.d/rc.local (one at a time):

Code:
su win32sux -c startx
and
Code:
su - win32sux -c startx
in both instances i get this on startup:

Quote:
/bin/bash: startx: command not found
and i get dropped to a regular runlevel 3 login (as set in my inittab)...


Last edited by win32sux; 03-27-2005 at 10:17 PM.
 
Old 03-27-2005, 10:15 PM   #15
DaWallace
Member
 
Registered: Feb 2004
Location: Southern Maine, United States
Distribution: Slackware Ubuntu Debian FreeBSD
Posts: 418

Rep: Reputation: 31
the path variables aren't set. you have to give an absolute path to startx

usually /usr/X11R6/bin/startx
 
  


Reply



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
debian booting to xwindows w/ no mouse illennium Linux - Newbie 5 01-22-2005 03:43 PM
XWindows login problem in RH8 vish Linux - General 0 08-31-2004 05:59 PM
Direct booting of Gnome application Lei Linux - Laptop and Netbook 0 08-06-2004 04:23 AM
Direct login into GUI ninadb Slackware 4 04-27-2004 10:24 AM
Problems with booting/Xwindows wolfzAz Linux - Software 8 06-13-2002 11:33 AM

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

All times are GMT -5. The time now is 09:43 PM.

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