topic title: Auto Login
Posts: 58
Urban
Joined: 26 Feb 2008
#1
+ edit /etc/rc.local and add

Code: Select all

# Start X as user if tty7 is free
if ! fuser /dev/tty7 >& /dev/null; then
    su - <username> -l -c 'exec startx -- vt7 >& ~/.xsession-errors' &
fi
Replace <username> with your login name. From gentoo wiki.

+ apt-get remove slim
You probably do not have to do this step as long as you do the next, but if you do be warned slim is NOT in the default repos of antiX. You will have to get it from the sid repos or elsewhere. Keep the slim.conf when/if you reinstall unless you want to add fluxbox slim.conf yourself.

+ update-rc.d -f slim remove

+ In /etc/X11/Xwrapper.config add/change the line allowed_users to

Code: Select all

allowed_users=anybody
I'm not entirely sure how safe this is, but it is a work around to the error"user not authorized to run the x server." There has to be another way to do this, but I am only figuring this out for others since I do not even use autologin myself.

Now you should automatically load up logged in.
Related Post:
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"antix.freeforu ms.org/auto-login-live-cd-t502.html"
linktext was:"antix.freeforu ms.org/auto-login- ... -t502.html"
====================================
Last edited by Urban on 04 Mar 2008, 21:03, edited 1 time in total.
Posts: 1,520
eriefisher
Joined: 07 Oct 2007
#2
Great stuff. Remember though this removes the first line of security as always used by Linux.

eriefisher

P.S. was it worth the struggle.
Posts: 58
Urban
Joined: 26 Feb 2008
#3
eriefisher wrote: P.S. was it worth the struggle.
No, it was not. Especially since I believe there is a better way of doing this. Then again people who want auto login are probably not concerned about security.
Posts: 57
Subito Piano
Joined: 20 Oct 2007
#4
Urban - thank you! This was NOT difficult and worked great.

FYI, our lab computers at school dual-boot, running both Linux and Mepis. I am thinking of taking an OLD console loaded with antiX to use only as a print server for anyone running Linux. Auto-login means i can set the system up and (hopefully) unplug monitor, keyboard, and mouse for good. If i have to shut down, i don't need them to restart.

(Can you tell we are on a TIGHT budget?) __{{emoticon}}__
Posts: 1,520
eriefisher
Joined: 07 Oct 2007
#5
Once the print server is set up there should be no reason to actually login to it. Once it's booted up the server stuff should be running in the back ground.
Install ssh server and you can login remotely to update/reconfigure it. Should someone actually connect a monitor up to it they would just see the login screen.

If it has some available storage on it I would set up a share just to use as a backup point before you put it into service. Otherwise it would be wasted hard drive space.

eriefisher
Posts: 57
Subito Piano
Joined: 20 Oct 2007
#6
AHH---IF I HAD KNOWN!! BUT learning is not a waste....

No need to worry about HD space, we are talking like 1 GB HDs or less...! I actually plan to try it on a P1, 333MHz, 64 GB machine. I don't expect to be able to go THAT low, but i have P2's and higher if need be. Thanks to M$'s wonderful new OS we are getting fantastic machines donated and can retire our oldest units. Gee, who'da thunk it!?!?! Vista is actually helping to make our life easier!!! __{{emoticon}}__
Posts: 3
Fox7777
Joined: 12 Aug 2009
#7
Apparently the easiest way for autologin is to go to /etc/slim.conf in your home directory and at the bottom change auto_login to yes, change default_user to your username.