antiX-forum Forum Index antiX-forum
Forum for users of antiX linux. "Mean and Lean"
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

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 new topic   Reply to topic    antiX-forum Forum Index -> Tips and Tricks
View previous topic :: View next topic  
Author Message
Urban



Joined: 26 Feb 2008
Posts: 58
Location: United States

PostPosted: Tue Mar 04, 2008 11:34 pm    Post subject: Auto Login Reply with quote

+ edit /etc/rc.local and add
Code:

# 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:

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-live-cd-t502.html


Last edited by Urban on Wed Mar 05, 2008 12:03 am; edited 1 time in total
Back to top
View user's profile Send private message
eriefisher



Joined: 07 Oct 2007
Posts: 681
Location: Canada's South Coast

PostPosted: Wed Mar 05, 2008 12:01 am    Post subject: Reply with quote

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

eriefisher

P.S. was it worth the struggle.
Back to top
View user's profile Send private message Send e-mail
Urban



Joined: 26 Feb 2008
Posts: 58
Location: United States

PostPosted: Wed Mar 05, 2008 12:04 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Subito Piano



Joined: 20 Oct 2007
Posts: 55
Location: upstate NY

PostPosted: Wed Apr 09, 2008 3:52 am    Post subject: Reply with quote

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?) Rolling Eyes
Back to top
View user's profile Send private message Visit poster's website AIM Address
eriefisher



Joined: 07 Oct 2007
Posts: 681
Location: Canada's South Coast

PostPosted: Wed Apr 09, 2008 4:04 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail
Subito Piano



Joined: 20 Oct 2007
Posts: 55
Location: upstate NY

PostPosted: Wed Apr 09, 2008 4:21 am    Post subject: Reply with quote

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!!! Very Happy
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    antiX-forum Forum Index -> Tips and Tricks All times are GMT + 3 Hours
Page 1 of 1   

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Community Chest


Powered by phpBB
Hosted by FreeForums.org