Welcome
Welcome to antiX-forum.

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, join our community today!

Auto Login

Post your tips and tricks here.

Auto Login

Postby Urban on Tue Mar 04, 2008 11:34 pm

+ 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: http://antix.freeforums.org/auto-login- ... -t502.html
Last edited by Urban on Wed Mar 05, 2008 12:03 am, edited 1 time in total.
User avatar
Urban
 
Posts: 58
Joined: Tue Feb 26, 2008 11:31 am
Location: United States

Postby eriefisher on Wed Mar 05, 2008 12:01 am

Great stuff. Remember though this removes the first line of security as always used by Linux.

eriefisher

P.S. was it worth the struggle.
User avatar
eriefisher
 
Posts: 1032
Joined: Sun Oct 07, 2007 6:16 pm
Location: Canada's South Coast

Postby Urban on Wed Mar 05, 2008 12:04 am

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.
User avatar
Urban
 
Posts: 58
Joined: Tue Feb 26, 2008 11:31 am
Location: United States

Postby Subito Piano on Wed Apr 09, 2008 3:52 am

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?) :roll:
User avatar
Subito Piano
 
Posts: 55
Joined: Sat Oct 20, 2007 4:58 am
Location: upstate NY

Postby eriefisher on Wed Apr 09, 2008 4:04 am

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
User avatar
eriefisher
 
Posts: 1032
Joined: Sun Oct 07, 2007 6:16 pm
Location: Canada's South Coast

Postby Subito Piano on Wed Apr 09, 2008 4:21 am

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!!! :D
User avatar
Subito Piano
 
Posts: 55
Joined: Sat Oct 20, 2007 4:58 am
Location: upstate NY


Return to Tips and Tricks

Who is online

Users browsing this forum: No registered users and 0 guests