Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Autologon+command
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
gieltje
n00b
n00b


Joined: 14 Aug 2004
Posts: 59

PostPosted: Sun Aug 07, 2005 8:39 pm    Post subject: Autologon+command Reply with quote

I am working on my livecd, and got it near perfect.

I also use autologin, but for some reasen it does not get the env right. I need to run "su" in the commandline to get it correct.

Is there a way to do this automaticly for every console? (even better without the user seeing it happen?)

So it needs to automaticly run su in the background after the autologin, but before the commandline is displayed (su will not ask for a password).
Back to top
View user's profile Send private message
Dlareh
Advocate
Advocate


Joined: 06 Aug 2005
Posts: 2102

PostPosted: Mon Aug 08, 2005 3:38 am    Post subject: Reply with quote

Try putting any settings you need into ~/.bashrc

Also in ~/.bash_profile put:
Code:
#!/bin/bash
source ~/.bashrc
Back to top
View user's profile Send private message
gieltje
n00b
n00b


Joined: 14 Aug 2004
Posts: 59

PostPosted: Mon Aug 08, 2005 4:35 pm    Post subject: Reply with quote

Dlareh wrote:
Try putting any settings you need into ~/.bashrc

Also in ~/.bash_profile put:
Code:
#!/bin/bash
source ~/.bashrc


Could you give me a working .bashrc which would do somethin, just adding su makes everything bork.
Back to top
View user's profile Send private message
Dlareh
Advocate
Advocate


Joined: 06 Aug 2005
Posts: 2102

PostPosted: Mon Aug 08, 2005 4:46 pm    Post subject: Reply with quote

How does it bork?

You can put any env settings you need into ~/.bashrc

For instance:

Code:
export PATH="~/bin:/usr/local/bin:$PATH"


Do you have an /etc/profile that sources /etc/profile.env ?
Back to top
View user's profile Send private message
aaronf0
Tux's lil' helper
Tux's lil' helper


Joined: 08 Dec 2004
Posts: 121

PostPosted: Tue Aug 09, 2005 7:42 pm    Post subject: Reply with quote

well your setting the env variables for one user, then changing users. putting the env vairables you want in /etc/profile or the .bashrc of that user might work...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
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