View previous topic :: View next topic |
Author |
Message |
gieltje n00b
Joined: 14 Aug 2004 Posts: 59
|
Posted: Sun Aug 07, 2005 8:39 pm Post subject: Autologon+command |
|
|
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 |
|
|
Dlareh Advocate
Joined: 06 Aug 2005 Posts: 2102
|
Posted: Mon Aug 08, 2005 3:38 am Post subject: |
|
|
Try putting any settings you need into ~/.bashrc
Also in ~/.bash_profile put:
Code: | #!/bin/bash
source ~/.bashrc |
|
|
Back to top |
|
|
gieltje n00b
Joined: 14 Aug 2004 Posts: 59
|
Posted: Mon Aug 08, 2005 4:35 pm Post subject: |
|
|
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 |
|
|
Dlareh Advocate
Joined: 06 Aug 2005 Posts: 2102
|
Posted: Mon Aug 08, 2005 4:46 pm Post subject: |
|
|
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 |
|
|
aaronf0 Tux's lil' helper
Joined: 08 Dec 2004 Posts: 121
|
Posted: Tue Aug 09, 2005 7:42 pm Post subject: |
|
|
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 |
|
|
|