Slackware This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
03-26-2005, 07:35 PM
|
#1
|
|
Member
Registered: Mar 2005
Posts: 65
Rep:
|
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
|
|
|
|
03-26-2005, 07:39 PM
|
#2
|
|
Member
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684
Rep:
|
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
|
|
|
|
03-26-2005, 09:32 PM
|
#3
|
|
Member
Registered: Feb 2004
Location: Canada
Distribution: Slackware
Posts: 478
Rep:
|
Yeah, u have to enable auto login in the control panel!
|
|
|
|
03-27-2005, 04:24 PM
|
#4
|
|
Member
Registered: Mar 2005
Posts: 65
Original Poster
Rep:
|
how do you auto login to xwindows with root access or root account ???
Thanks
|
|
|
|
03-27-2005, 05:15 PM
|
#5
|
|
Member
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684
Rep:
|
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
|
|
|
|
03-27-2005, 07:10 PM
|
#6
|
|
Member
Registered: Feb 2004
Location: Southern Maine, United States
Distribution: Slackware Ubuntu Debian FreeBSD
Posts: 418
Rep:
|
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.
|
|
|
|
03-27-2005, 07:27 PM
|
#7
|
|
Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
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??
|
|
|
|
03-27-2005, 09:10 PM
|
#8
|
|
Member
Registered: Feb 2004
Location: Southern Maine, United States
Distribution: Slackware Ubuntu Debian FreeBSD
Posts: 418
Rep:
|
the same dirty solution I posted above works for users.
su [user] -c startx
|
|
|
|
03-27-2005, 09:16 PM
|
#9
|
|
Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
thanks... i'm gonna try that... what does the "-c" mean??
|
|
|
|
03-27-2005, 09:18 PM
|
#10
|
|
Member
Registered: Feb 2004
Location: Southern Maine, United States
Distribution: Slackware Ubuntu Debian FreeBSD
Posts: 418
Rep:
|
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.
|
|
|
|
03-27-2005, 09:25 PM
|
#11
|
|
Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
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??
|
|
|
|
03-27-2005, 09:30 PM
|
#12
|
|
Moderator
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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.
|
|
|
|
03-27-2005, 09:37 PM
|
#13
|
|
Member
Registered: Feb 2004
Location: Southern Maine, United States
Distribution: Slackware Ubuntu Debian FreeBSD
Posts: 418
Rep:
|
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.
|
|
|
|
03-27-2005, 10:07 PM
|
#14
|
|
Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
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.
|
|
|
|
03-27-2005, 10:15 PM
|
#15
|
|
Member
Registered: Feb 2004
Location: Southern Maine, United States
Distribution: Slackware Ubuntu Debian FreeBSD
Posts: 418
Rep:
|
the path variables aren't set. you have to give an absolute path to startx
usually /usr/X11R6/bin/startx
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:56 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|