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.
I personally use GDM to autologin a user for my Freevo box, so I suspect I could fish out the config that you need to adjust if you needed word-for-word instructions. I tried the KDE method (since it was one of the first comprehensive walkthroughs I found) but could NOT get it to work. You may have more luck.
Good luck and let us know how it goes!
- Piete.
Edit: We will all assume you're using Slackware, since you posted here, but if your inittab is set to 5, then you won't get anything graphical. Unless you've editted the rest of inittab to match your Fedora box?
From cat /etc/inittab :
Code:
# These are the default runlevels in Slackware:
# 0 = halt
# 1 = single user mode
# 2 = unused (but configured the same as runlevel 3)
# 3 = multiuser mode (default Slackware runlevel)
# 4 = X11 with KDM/GDM/XDM (session managers)
# 5 = unused (but configured the same as runlevel 3)
# 6 = reboot
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Original Poster
Rep:
Actually the pc I'm writing about is using Vector Linux which is very close to Slackware that I'm using on 2 other pcs. XDM is used, so I cannot use that for autologin. I will change it to boot to the console so I can autologin there-thanks for the links!!
No for the first method, I'm not sure on the second. I don't belive so since you do not need root to startx. But if it doesn't work, try adding this to your sudoers file.
Code:
username ALL= NOPASSWD: /usr/X11R6/bin/startx
...buy the way, I noticed a type in my previous post. startx resides in /usr/X11R6/bin, not /usr/bin. I just updated it.
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Original Poster
Rep:
Well, I tried a couple different scenarios and got xauthority errors. Here's the message I got:
/usr/X11R6/bin/startx: line 133 : xauth: command not found
this error repeats to line 145
If I login and then type startx it works fine. I think it has to do with /etc/sudoers which had 1 line already and I added the last line:
root ALL=(ALL) ALL
username ALL= NOPASSWD: /usr/X11R6/bin/startx
Any ideas?
EDIT:
I googled around and saw that error is caused by /usr/X11R6/bin not being in the path of root or the user (huntz). I added that to the path and on reboot get the same xauth error.
Last edited by linuxhippy; 08-26-2006 at 02:04 PM.
I'm using KDE on this laptop so I added /opt/kde/bin. You won't need that one however. It's possible you don't need to add all this to your path, but it works, and it doesn't hurt to have them there.
Also, no need to add anything to the sudoers file (except the default entry for root). The sudu command is being run by root which is why it can be run with no password by default.
This method is a much better way to do it then the one I was using since it will allow you to disable the user's shell if you want to.
I still can't understand why someone would want to do that. It's like
leaving the keys in the car over night, with the door ajar. Even if there's
no one living there who may take advantage, the house can still be burgled.
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Original Poster
Rep:
Excellent-that worked! I was starting to wonder if it was possible in Vector Linux 4.3 since it's 2 years old and uses xdm. /etc/rc.d/rc.X (it says it's a 1993 file from Slackware) is the file that I replaced with /etc/rc.d/rc.xinit in drkstr's previous post. Then in /etc/inittab I changed the file naming of rc.X to rc.xinit and rebooted.
Thanks for all the help-this is my 4th Linux pc that I've setup as a Jukebox using xmms and 10 GB of mp3 song files. Now all you do is cut on the power and it automatically logs in and executes a shuffled xmms jukebox from the harddrive...it uses fluxbox since it only has 128 MB RAM and a CPU of 700 MHz.
EDIT:
Of course my house could be broken into...a $50 pc is going to be the least of my worries if that happpens!!
Last edited by linuxhippy; 08-26-2006 at 04:01 PM.
I still can't understand why someone would want to do that. It's like
leaving the keys in the car over night, with the door ajar. Even if there's
no one living there who may take advantage, the house can still be burgled.
Cheers,
Tink
Most of the time this is not advisable but there are some cases where this is needed. For me, building a livecd it makes sense to autologin rather than having to type in a password every time you use it.
I still can't understand why someone would want to do that. It's like
leaving the keys in the car over night, with the door ajar. Even if there's
no one living there who may take advantage, the house can still be burgled.
hehe. I used to say the same thing until I actually ran into a situation when I needed it. I don't use it do it on my home computer though. Even if I am the only person using it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.