Gentoo Archives: gentoo-user

From: Peter Humphrey <peter@××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Portable Gentoo (Pen Drive Linux)
Date: Sat, 29 Mar 2014 10:07:50
Message-Id: 20237032.THM3C24sXu@wstn
In Reply to: Re: [gentoo-user] Portable Gentoo (Pen Drive Linux) by Neil Bothwick
1 On Friday 28 Mar 2014 21:08:02 Neil Bothwick wrote:
2 > On Fri, 28 Mar 2014 14:15:56 +0000, Peter Humphrey wrote:
3 > > > There is a file that is executed by default at login, I think it
4 > > > is .autorun. I remember having to add an option to ignore it on the
5 > > > LXFDVDs because we use .autorun on those to launch a browser.
6 > >
7 > > I had a poke around and didn't get anywhere with .autorun, but
8 > > eventually I found that SysRescCD uses zsh, not bash. It hadn't
9 > > occurred to me until then to consider the shell. So that's why the
10 > > auto-login function wasn't behaving the way I expected.
11 >
12 > I don't think it's down to the shell, sysresccd includes bash too AFAIR.
13
14 Yes, bash is present, but root (superuser) has /bin/zsh as its shell in
15 /etc/passwd, so bash scripts aren't run on login.
16
17 > It's more likely due to me giving your duff information, the file is
18 > autorun not .autorun.
19
20 I did manage to drop the dot :-)
21
22 --->8
23
24 > Aha, just found the proper documentation for it
25 > http://www.sysresccd.org/Sysresccd-manual-en_Run_your_own_scripts_with_autorun
26
27 That looks interesting - thanks. First though I think I'll pursue getting my
28 aliases, and unaliases, into zsh startup. Or is it simple to change root's
29 login shell? It seems unlikely that simply editing /etc/passwd would do it.
30
31 --
32 Regards
33 Peter

Replies

Subject Author
Re: [gentoo-user] Portable Gentoo (Pen Drive Linux) Neil Bothwick <neil@××××××××××.uk>