public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Portable Gentoo (Pen Drive Linux)
@ 2014-03-22  1:53 Nilesh Govindrajan
  2014-03-22 12:11 ` Brian Hesdorfer
  0 siblings, 1 reply; 22+ messages in thread
From: Nilesh Govindrajan @ 2014-03-22  1:53 UTC (permalink / raw
  To: Gentoo User Mailing List

Hi,

Since I don't have a laptop, I'm thinking of installing Gentoo on my
USB 3 pen drive. I'll use binpkgs from my desktop so that pen drive
lives long.

Has anybody tried Samsung's F2FS? I heard it performs better than the
traditional ext4/xfs/etc on flash drives.

Also the pen drive will be used on random hardware (which can be a
laptop or a desktop), so what else do I need to consider other than
using genkernel's default configuration (the livecd config, which
enables all modules)?


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Portable Gentoo (Pen Drive Linux)
  2014-03-22  1:53 [gentoo-user] Portable Gentoo (Pen Drive Linux) Nilesh Govindrajan
@ 2014-03-22 12:11 ` Brian Hesdorfer
  2014-03-22 13:00   ` Nilesh Govindrajan
  0 siblings, 1 reply; 22+ messages in thread
From: Brian Hesdorfer @ 2014-03-22 12:11 UTC (permalink / raw
  To: gentoo-user


On 3/21/2014 9:53 PM, Nilesh Govindrajan wrote:
> Hi,
>
> Since I don't have a laptop, I'm thinking of installing Gentoo on my
> USB 3 pen drive. I'll use binpkgs from my desktop so that pen drive
> lives long.
>
> Has anybody tried Samsung's F2FS? I heard it performs better than the
> traditional ext4/xfs/etc on flash drives.
>
> Also the pen drive will be used on random hardware (which can be a
> laptop or a desktop), so what else do I need to consider other than
> using genkernel's default configuration (the livecd config, which
> enables all modules)?
>

FWIW, I've been F2FS plus encryption with Arch and haven't had any 
problems. I'd suggest having anything important backed up somewhere else 
since it's still seen as experimental (I think).

If you're using it on random hardware and want X, you'll have to include 
the variety of video cards you might run into (Intel, ATI, Nvidia) in 
your USE flags.

Also, be wary of the predictable naming for network interfaces (enp5s0, 
enp9s2,etc). You might want to disable that feature using something like 
"net.ifnames=0" in your bootloader or a udev rule so you can just set 
eth0 to DHCP and it will work on most machines.


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Portable Gentoo (Pen Drive Linux)
  2014-03-22 12:11 ` Brian Hesdorfer
@ 2014-03-22 13:00   ` Nilesh Govindrajan
  2014-03-22 13:08     ` Alan McKinnon
  0 siblings, 1 reply; 22+ messages in thread
From: Nilesh Govindrajan @ 2014-03-22 13:00 UTC (permalink / raw
  To: Gentoo User Mailing List

[-- Attachment #1: Type: text/plain, Size: 1470 bytes --]

On 22-Mar-2014 5:42 pm, "Brian Hesdorfer" <zerophnx@gmail.com> wrote:
>
>
> On 3/21/2014 9:53 PM, Nilesh Govindrajan wrote:
>>
>> Hi,
>>
>> Since I don't have a laptop, I'm thinking of installing Gentoo on my
>> USB 3 pen drive. I'll use binpkgs from my desktop so that pen drive
>> lives long.
>>
>> Has anybody tried Samsung's F2FS? I heard it performs better than the
>> traditional ext4/xfs/etc on flash drives.
>>
>> Also the pen drive will be used on random hardware (which can be a
>> laptop or a desktop), so what else do I need to consider other than
>> using genkernel's default configuration (the livecd config, which
>> enables all modules)?
>>
>
> FWIW, I've been F2FS plus encryption with Arch and haven't had any
problems. I'd suggest having anything important backed up somewhere else
since it's still seen as experimental (I think).
>

Of course. Pen drives are as such not very reliable, so backups are a must.

> If you're using it on random hardware and want X, you'll have to include
the variety of video cards you might run into (Intel, ATI, Nvidia) in your
USE flags.
>

Will it work out the box without configuration?

> Also, be wary of the predictable naming for network interfaces (enp5s0,
enp9s2,etc). You might want to disable that feature using something like
"net.ifnames=0" in your bootloader or a udev rule so you can just set eth0
to DHCP and it will work on most machines.
>

NetworkManager helps with that, or may be just run dhcpcd.

[-- Attachment #2: Type: text/html, Size: 1921 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Portable Gentoo (Pen Drive Linux)
  2014-03-22 13:00   ` Nilesh Govindrajan
@ 2014-03-22 13:08     ` Alan McKinnon
  2014-03-22 13:12       ` Nilesh Govindrajan
  0 siblings, 1 reply; 22+ messages in thread
From: Alan McKinnon @ 2014-03-22 13:08 UTC (permalink / raw
  To: gentoo-user

On 22/03/2014 15:00, Nilesh Govindrajan wrote:
> On 22-Mar-2014 5:42 pm, "Brian Hesdorfer" <zerophnx@gmail.com
> <mailto:zerophnx@gmail.com>> wrote:
>>
>>
>> On 3/21/2014 9:53 PM, Nilesh Govindrajan wrote:
>>>
>>> Hi,
>>>
>>> Since I don't have a laptop, I'm thinking of installing Gentoo on my
>>> USB 3 pen drive. I'll use binpkgs from my desktop so that pen drive
>>> lives long.
>>>
>>> Has anybody tried Samsung's F2FS? I heard it performs better than the
>>> traditional ext4/xfs/etc on flash drives.
>>>
>>> Also the pen drive will be used on random hardware (which can be a
>>> laptop or a desktop), so what else do I need to consider other than
>>> using genkernel's default configuration (the livecd config, which
>>> enables all modules)?
>>>
>>
>> FWIW, I've been F2FS plus encryption with Arch and haven't had any
> problems. I'd suggest having anything important backed up somewhere else
> since it's still seen as experimental (I think).
>>
> 
> Of course. Pen drives are as such not very reliable, so backups are a must.
> 
>> If you're using it on random hardware and want X, you'll have to
> include the variety of video cards you might run into (Intel, ATI,
> Nvidia) in your USE flags.
>>
> 
> Will it work out the box without configuration?
> 
>> Also, be wary of the predictable naming for network interfaces
> (enp5s0, enp9s2,etc). You might want to disable that feature using
> something like "net.ifnames=0" in your bootloader or a udev rule so you
> can just set eth0 to DHCP and it will work on most machines.
>>
> 
> NetworkManager helps with that, or may be just run dhcpcd.
> 


I suspect you will end up duplicating a lot of work that is already done
elsewhere by the binary distros. You'll probably also have your hands
full just trying to keep up with video hardware as you'll need at least
intel, fglrx and nvidia drivers (plus maybe nouveau and radeon).

Are you 100% sure you want to go that route? Sounds like a huge amount
of work. In your position, I would rather investigate a LiveCD type
solution with a persistent fs layer on top and let the distro do all the
heavy lifting.

Especially as you don't have the target hardware to hand for testing,
you can only test by plugging the stick and seeing if it works.




-- 
Alan McKinnon
alan.mckinnon@gmail.com



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Portable Gentoo (Pen Drive Linux)
  2014-03-22 13:08     ` Alan McKinnon
@ 2014-03-22 13:12       ` Nilesh Govindrajan
  2014-03-22 13:26         ` Alan McKinnon
  2014-03-22 13:57         ` Peter Humphrey
  0 siblings, 2 replies; 22+ messages in thread
From: Nilesh Govindrajan @ 2014-03-22 13:12 UTC (permalink / raw
  To: Gentoo User Mailing List

[-- Attachment #1: Type: text/plain, Size: 2876 bytes --]

On 22-Mar-2014 6:39 pm, "Alan McKinnon" <alan.mckinnon@gmail.com> wrote:
>
> On 22/03/2014 15:00, Nilesh Govindrajan wrote:
> > On 22-Mar-2014 5:42 pm, "Brian Hesdorfer" <zerophnx@gmail.com
> > <mailto:zerophnx@gmail.com>> wrote:
> >>
> >>
> >> On 3/21/2014 9:53 PM, Nilesh Govindrajan wrote:
> >>>
> >>> Hi,
> >>>
> >>> Since I don't have a laptop, I'm thinking of installing Gentoo on my
> >>> USB 3 pen drive. I'll use binpkgs from my desktop so that pen drive
> >>> lives long.
> >>>
> >>> Has anybody tried Samsung's F2FS? I heard it performs better than the
> >>> traditional ext4/xfs/etc on flash drives.
> >>>
> >>> Also the pen drive will be used on random hardware (which can be a
> >>> laptop or a desktop), so what else do I need to consider other than
> >>> using genkernel's default configuration (the livecd config, which
> >>> enables all modules)?
> >>>
> >>
> >> FWIW, I've been F2FS plus encryption with Arch and haven't had any
> > problems. I'd suggest having anything important backed up somewhere else
> > since it's still seen as experimental (I think).
> >>
> >
> > Of course. Pen drives are as such not very reliable, so backups are a
must.
> >
> >> If you're using it on random hardware and want X, you'll have to
> > include the variety of video cards you might run into (Intel, ATI,
> > Nvidia) in your USE flags.
> >>
> >
> > Will it work out the box without configuration?
> >
> >> Also, be wary of the predictable naming for network interfaces
> > (enp5s0, enp9s2,etc). You might want to disable that feature using
> > something like "net.ifnames=0" in your bootloader or a udev rule so you
> > can just set eth0 to DHCP and it will work on most machines.
> >>
> >
> > NetworkManager helps with that, or may be just run dhcpcd.
> >
>
>
> I suspect you will end up duplicating a lot of work that is already done
> elsewhere by the binary distros. You'll probably also have your hands
> full just trying to keep up with video hardware as you'll need at least
> intel, fglrx and nvidia drivers (plus maybe nouveau and radeon).
>
> Are you 100% sure you want to go that route? Sounds like a huge amount
> of work. In your position, I would rather investigate a LiveCD type
> solution with a persistent fs layer on top and let the distro do all the
> heavy lifting.
>
> Especially as you don't have the target hardware to hand for testing,
> you can only test by plugging the stick and seeing if it works.
>
>
>
>
> --
> Alan McKinnon
> alan.mckinnon@gmail.com
>
>

I realize those problems, and that's why I've stayed away till now. I'm
running Fedora currently on the pen drive.
But the unmatched flexibility of gentoo is tempting me.

For example, 3.13.5,6 have problems with USB 3 storage. I've patched the
kernel on my desktop and it's working fine.
Such things are against mainstream distros.

What other distros are suited for this use case?

[-- Attachment #2: Type: text/html, Size: 3973 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Portable Gentoo (Pen Drive Linux)
  2014-03-22 13:12       ` Nilesh Govindrajan
@ 2014-03-22 13:26         ` Alan McKinnon
  2014-03-22 13:33           ` Nilesh Govindrajan
  2014-03-22 13:57         ` Peter Humphrey
  1 sibling, 1 reply; 22+ messages in thread
From: Alan McKinnon @ 2014-03-22 13:26 UTC (permalink / raw
  To: gentoo-user

On 22/03/2014 15:12, Nilesh Govindrajan wrote:
> On 22-Mar-2014 6:39 pm, "Alan McKinnon" <alan.mckinnon@gmail.com
> <mailto:alan.mckinnon@gmail.com>> wrote:
>>
>> On 22/03/2014 15:00, Nilesh Govindrajan wrote:
>> > On 22-Mar-2014 5:42 pm, "Brian Hesdorfer" <zerophnx@gmail.com
> <mailto:zerophnx@gmail.com>
>> > <mailto:zerophnx@gmail.com <mailto:zerophnx@gmail.com>>> wrote:
>> >>
>> >>
>> >> On 3/21/2014 9:53 PM, Nilesh Govindrajan wrote:
>> >>>
>> >>> Hi,
>> >>>
>> >>> Since I don't have a laptop, I'm thinking of installing Gentoo on my
>> >>> USB 3 pen drive. I'll use binpkgs from my desktop so that pen drive
>> >>> lives long.
>> >>>
>> >>> Has anybody tried Samsung's F2FS? I heard it performs better than the
>> >>> traditional ext4/xfs/etc on flash drives.
>> >>>
>> >>> Also the pen drive will be used on random hardware (which can be a
>> >>> laptop or a desktop), so what else do I need to consider other than
>> >>> using genkernel's default configuration (the livecd config, which
>> >>> enables all modules)?
>> >>>
>> >>
>> >> FWIW, I've been F2FS plus encryption with Arch and haven't had any
>> > problems. I'd suggest having anything important backed up somewhere else
>> > since it's still seen as experimental (I think).
>> >>
>> >
>> > Of course. Pen drives are as such not very reliable, so backups are
> a must.
>> >
>> >> If you're using it on random hardware and want X, you'll have to
>> > include the variety of video cards you might run into (Intel, ATI,
>> > Nvidia) in your USE flags.
>> >>
>> >
>> > Will it work out the box without configuration?
>> >
>> >> Also, be wary of the predictable naming for network interfaces
>> > (enp5s0, enp9s2,etc). You might want to disable that feature using
>> > something like "net.ifnames=0" in your bootloader or a udev rule so you
>> > can just set eth0 to DHCP and it will work on most machines.
>> >>
>> >
>> > NetworkManager helps with that, or may be just run dhcpcd.
>> >
>>
>>
>> I suspect you will end up duplicating a lot of work that is already done
>> elsewhere by the binary distros. You'll probably also have your hands
>> full just trying to keep up with video hardware as you'll need at least
>> intel, fglrx and nvidia drivers (plus maybe nouveau and radeon).
>>
>> Are you 100% sure you want to go that route? Sounds like a huge amount
>> of work. In your position, I would rather investigate a LiveCD type
>> solution with a persistent fs layer on top and let the distro do all the
>> heavy lifting.
>>
>> Especially as you don't have the target hardware to hand for testing,
>> you can only test by plugging the stick and seeing if it works.
>>
>>
>>
>>
>> --
>> Alan McKinnon
>> alan.mckinnon@gmail.com <mailto:alan.mckinnon@gmail.com>
>>
>>
> 
> I realize those problems, and that's why I've stayed away till now. I'm
> running Fedora currently on the pen drive.
> But the unmatched flexibility of gentoo is tempting me.
> 
> For example, 3.13.5,6 have problems with USB 3 storage. I've patched the
> kernel on my desktop and it's working fine.
> Such things are against mainstream distros.
> 
> What other distros are suited for this use case?
> 


I don't really know, but that's because I too use Gentoo almost
exclusively, nothing else satisfies my OCD need to tweak everything
exactly right :-)

Pen drives tend to be slow so I think a great hulking monster like
Fedora won't suit the use-case.

You'd need something smaller and lighter, designed for lower end systems
I think.
Perhaps check out DistroWatch and try out a few? IIRC they have search
and filters that can help pick out the more lean distros




-- 
Alan McKinnon
alan.mckinnon@gmail.com



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Portable Gentoo (Pen Drive Linux)
  2014-03-22 13:26         ` Alan McKinnon
@ 2014-03-22 13:33           ` Nilesh Govindrajan
  0 siblings, 0 replies; 22+ messages in thread
From: Nilesh Govindrajan @ 2014-03-22 13:33 UTC (permalink / raw
  To: Gentoo User Mailing List

[-- Attachment #1: Type: text/plain, Size: 4206 bytes --]

On 22-Mar-2014 6:56 pm, "Alan McKinnon" <alan.mckinnon@gmail.com> wrote:
>
> On 22/03/2014 15:12, Nilesh Govindrajan wrote:
> > On 22-Mar-2014 6:39 pm, "Alan McKinnon" <alan.mckinnon@gmail.com
> > <mailto:alan.mckinnon@gmail.com>> wrote:
> >>
> >> On 22/03/2014 15:00, Nilesh Govindrajan wrote:
> >> > On 22-Mar-2014 5:42 pm, "Brian Hesdorfer" <zerophnx@gmail.com
> > <mailto:zerophnx@gmail.com>
> >> > <mailto:zerophnx@gmail.com <mailto:zerophnx@gmail.com>>> wrote:
> >> >>
> >> >>
> >> >> On 3/21/2014 9:53 PM, Nilesh Govindrajan wrote:
> >> >>>
> >> >>> Hi,
> >> >>>
> >> >>> Since I don't have a laptop, I'm thinking of installing Gentoo on
my
> >> >>> USB 3 pen drive. I'll use binpkgs from my desktop so that pen drive
> >> >>> lives long.
> >> >>>
> >> >>> Has anybody tried Samsung's F2FS? I heard it performs better than
the
> >> >>> traditional ext4/xfs/etc on flash drives.
> >> >>>
> >> >>> Also the pen drive will be used on random hardware (which can be a
> >> >>> laptop or a desktop), so what else do I need to consider other than
> >> >>> using genkernel's default configuration (the livecd config, which
> >> >>> enables all modules)?
> >> >>>
> >> >>
> >> >> FWIW, I've been F2FS plus encryption with Arch and haven't had any
> >> > problems. I'd suggest having anything important backed up somewhere
else
> >> > since it's still seen as experimental (I think).
> >> >>
> >> >
> >> > Of course. Pen drives are as such not very reliable, so backups are
> > a must.
> >> >
> >> >> If you're using it on random hardware and want X, you'll have to
> >> > include the variety of video cards you might run into (Intel, ATI,
> >> > Nvidia) in your USE flags.
> >> >>
> >> >
> >> > Will it work out the box without configuration?
> >> >
> >> >> Also, be wary of the predictable naming for network interfaces
> >> > (enp5s0, enp9s2,etc). You might want to disable that feature using
> >> > something like "net.ifnames=0" in your bootloader or a udev rule so
you
> >> > can just set eth0 to DHCP and it will work on most machines.
> >> >>
> >> >
> >> > NetworkManager helps with that, or may be just run dhcpcd.
> >> >
> >>
> >>
> >> I suspect you will end up duplicating a lot of work that is already
done
> >> elsewhere by the binary distros. You'll probably also have your hands
> >> full just trying to keep up with video hardware as you'll need at least
> >> intel, fglrx and nvidia drivers (plus maybe nouveau and radeon).
> >>
> >> Are you 100% sure you want to go that route? Sounds like a huge amount
> >> of work. In your position, I would rather investigate a LiveCD type
> >> solution with a persistent fs layer on top and let the distro do all
the
> >> heavy lifting.
> >>
> >> Especially as you don't have the target hardware to hand for testing,
> >> you can only test by plugging the stick and seeing if it works.
> >>
> >>
> >>
> >>
> >> --
> >> Alan McKinnon
> >> alan.mckinnon@gmail.com <mailto:alan.mckinnon@gmail.com>
> >>
> >>
> >
> > I realize those problems, and that's why I've stayed away till now. I'm
> > running Fedora currently on the pen drive.
> > But the unmatched flexibility of gentoo is tempting me.
> >
> > For example, 3.13.5,6 have problems with USB 3 storage. I've patched the
> > kernel on my desktop and it's working fine.
> > Such things are against mainstream distros.
> >
> > What other distros are suited for this use case?
> >
>
>
> I don't really know, but that's because I too use Gentoo almost
> exclusively, nothing else satisfies my OCD need to tweak everything
> exactly right :-)
>
> Pen drives tend to be slow so I think a great hulking monster like
> Fedora won't suit the use-case.
>
> You'd need something smaller and lighter, designed for lower end systems
> I think.
> Perhaps check out DistroWatch and try out a few? IIRC they have search
> and filters that can help pick out the more lean distros
>
>
>
>
> --
> Alan McKinnon
> alan.mckinnon@gmail.com
>
>

It works actually. Using gnome3. I've even used it to run eclipse for
working on my project at college and friend's laptop.
May be debian would be good, need something stable. Gentoo is stable
because it's manually tweaked, but too much work to manage that for random
hardware.

[-- Attachment #2: Type: text/html, Size: 6317 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Portable Gentoo (Pen Drive Linux)
  2014-03-22 13:12       ` Nilesh Govindrajan
  2014-03-22 13:26         ` Alan McKinnon
@ 2014-03-22 13:57         ` Peter Humphrey
  2014-03-22 17:54           ` Yohan Pereira
  2014-03-22 19:37           ` Neil Bothwick
  1 sibling, 2 replies; 22+ messages in thread
From: Peter Humphrey @ 2014-03-22 13:57 UTC (permalink / raw
  To: gentoo-user

On Saturday 22 Mar 2014 18:42:46 Nilesh Govindrajan wrote:

--->8

> What other distros are suited for this use case?

I've installed that old favourite SysRescCD on a pen drive, following a method 
I found on the Web to include a persistent file-system with all the extras I 
wanted in, e.g., /usr/local/bin.

It works well, except that I haven't found yet where to put all my aliases to 
have them sourced at (auto) log-in.

This distro is quite close to Gentoo, but not identical.

-- 
Regards
Peter



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Portable Gentoo (Pen Drive Linux)
  2014-03-22 13:57         ` Peter Humphrey
@ 2014-03-22 17:54           ` Yohan Pereira
  2014-03-22 19:37           ` Neil Bothwick
  1 sibling, 0 replies; 22+ messages in thread
From: Yohan Pereira @ 2014-03-22 17:54 UTC (permalink / raw
  To: gentoo-user

On Sat, Mar 22, 2014 at 7:27 PM, Peter Humphrey <peter@prh.myzen.co.uk> wrote:
> On Saturday 22 Mar 2014 18:42:46 Nilesh Govindrajan wrote:
>
> --->8
>
>> What other distros are suited for this use case?
>
> I've installed that old favourite SysRescCD on a pen drive, following a method
> I found on the Web to include a persistent file-system with all the extras I
> wanted in, e.g., /usr/local/bin.
>
> It works well, except that I haven't found yet where to put all my aliases to
> have them sourced at (auto) log-in.
>
> This distro is quite close to Gentoo, but not identical.
>
> --
> Regards
> Peter
>
>

SystemRescueCD sounds like the best compromise, since its based on gentoo.
You can add whatever it is you need.
http://www.sysresccd.org/Sysresccd-manual-en_How_to_personalize_SystemRescueCd


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Portable Gentoo (Pen Drive Linux)
  2014-03-22 13:57         ` Peter Humphrey
  2014-03-22 17:54           ` Yohan Pereira
@ 2014-03-22 19:37           ` Neil Bothwick
  2014-03-23  9:33             ` Peter Humphrey
  2014-03-28 14:15             ` Peter Humphrey
  1 sibling, 2 replies; 22+ messages in thread
From: Neil Bothwick @ 2014-03-22 19:37 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 636 bytes --]

On Sat, 22 Mar 2014 13:57:22 +0000, Peter Humphrey wrote:

> I've installed that old favourite SysRescCD on a pen drive, following a
> method I found on the Web to include a persistent file-system with all
> the extras I wanted in, e.g., /usr/local/bin.
> 
> It works well, except that I haven't found yet where to put all my
> aliases to have them sourced at (auto) log-in.

There is a file that is executed by default at login, I think it
is .autorun. I remember having to add an option to ignore it on the
LXFDVDs because we use .autorun on those to launch a browser.


-- 
Neil Bothwick

IBM: Itty Bitty Mentality

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Portable Gentoo (Pen Drive Linux)
  2014-03-22 19:37           ` Neil Bothwick
@ 2014-03-23  9:33             ` Peter Humphrey
  2014-03-28 14:15             ` Peter Humphrey
  1 sibling, 0 replies; 22+ messages in thread
From: Peter Humphrey @ 2014-03-23  9:33 UTC (permalink / raw
  To: gentoo-user

On Saturday 22 Mar 2014 19:37:35 Neil Bothwick wrote:
> On Sat, 22 Mar 2014 13:57:22 +0000, Peter Humphrey wrote:
> > I've installed that old favourite SysRescCD on a pen drive, following a
> > method I found on the Web to include a persistent file-system with all
> > the extras I wanted in, e.g., /usr/local/bin.
> > 
> > It works well, except that I haven't found yet where to put all my
> > aliases to have them sourced at (auto) log-in.
> 
> There is a file that is executed by default at login, I think it
> is .autorun. I remember having to add an option to ignore it on the
> LXFDVDs because we use .autorun on those to launch a browser.

Ah! That sounds likely. I'll have another look. Thanks again, Neil.

-- 
Regards
Peter



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Portable Gentoo (Pen Drive Linux)
  2014-03-22 19:37           ` Neil Bothwick
  2014-03-23  9:33             ` Peter Humphrey
@ 2014-03-28 14:15             ` Peter Humphrey
  2014-03-28 15:00               ` Francisco Ares
  2014-03-28 21:08               ` Neil Bothwick
  1 sibling, 2 replies; 22+ messages in thread
From: Peter Humphrey @ 2014-03-28 14:15 UTC (permalink / raw
  To: gentoo-user

On Saturday 22 Mar 2014 19:37:35 Neil Bothwick wrote:
> On Sat, 22 Mar 2014 13:57:22 +0000, Peter Humphrey wrote:
> > I've installed that old favourite SysRescCD on a pen drive, following a
> > method I found on the Web to include a persistent file-system with all
> > the extras I wanted in, e.g., /usr/local/bin.
> > 
> > It works well, except that I haven't found yet where to put all my
> > aliases to have them sourced at (auto) log-in.
> 
> There is a file that is executed by default at login, I think it
> is .autorun. I remember having to add an option to ignore it on the
> LXFDVDs because we use .autorun on those to launch a browser.

I had a poke around and didn't get anywhere with .autorun, but eventually I 
found that SysRescCD uses zsh, not bash. It hadn't occurred to me until then 
to consider the shell. So that's why the auto-login function wasn't behaving 
the way I expected.

Thanks again Neil.

-- 
Regards
Peter



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Portable Gentoo (Pen Drive Linux)
  2014-03-28 14:15             ` Peter Humphrey
@ 2014-03-28 15:00               ` Francisco Ares
  2014-03-28 15:24                 ` Francisco Ares
  2014-03-28 21:08               ` Neil Bothwick
  1 sibling, 1 reply; 22+ messages in thread
From: Francisco Ares @ 2014-03-28 15:00 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1697 bytes --]

To auto log-in, I use a feature of "agetty":

On /etc/inittab:

# TERMINALS
# c1:12345:respawn:/usr/bin/fbi -a -noverbose --nocomments
/etc/splash/natural_altec/images/silent-1024x768.jpg
c1:12345:respawn:/sbin/agetty --noclear 38400 tty1 linux
c2:2345:respawn:/sbin/agetty 38400 tty2 linux
c3:2345:respawn:/sbin/agetty 38400 tty3 linux
c4:2345:respawn:/sbin/agetty 38400 tty4 linux
c5:2345:respawn:/sbin/agetty 38400 tty5 linux
c6:2345:respawn:/sbin/agetty -a AutoLogInUserName 38400 tty6 linux

And for auto run, after auto log-in accomplished, I use ".bash_profile" on
the auto logged-in user's home directory.

Hope this helps
Francisco


2014-03-28 11:15 GMT-03:00 Peter Humphrey <peter@prh.myzen.co.uk>:

> On Saturday 22 Mar 2014 19:37:35 Neil Bothwick wrote:
> > On Sat, 22 Mar 2014 13:57:22 +0000, Peter Humphrey wrote:
> > > I've installed that old favourite SysRescCD on a pen drive, following a
> > > method I found on the Web to include a persistent file-system with all
> > > the extras I wanted in, e.g., /usr/local/bin.
> > >
> > > It works well, except that I haven't found yet where to put all my
> > > aliases to have them sourced at (auto) log-in.
> >
> > There is a file that is executed by default at login, I think it
> > is .autorun. I remember having to add an option to ignore it on the
> > LXFDVDs because we use .autorun on those to launch a browser.
>
> I had a poke around and didn't get anywhere with .autorun, but eventually I
> found that SysRescCD uses zsh, not bash. It hadn't occurred to me until
> then
> to consider the shell. So that's why the auto-login function wasn't
> behaving
> the way I expected.
>
> Thanks again Neil.
>
> --
> Regards
> Peter
>
>
>

[-- Attachment #2: Type: text/html, Size: 2293 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Portable Gentoo (Pen Drive Linux)
  2014-03-28 15:00               ` Francisco Ares
@ 2014-03-28 15:24                 ` Francisco Ares
  2014-03-28 15:26                   ` Nilesh Govindrajan
  0 siblings, 1 reply; 22+ messages in thread
From: Francisco Ares @ 2014-03-28 15:24 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 3708 bytes --]

Also, as for a bootable flash drive, if you use logical volumes for mount
partitions, it works like a charm. If not, depending on the other physical
drives, during boot, drive letters may change (I believe during the
initramfs part of the boot).

It was basically like this:

- install a bare bones Gentoo system on a hard drive in the usual way, and
make it do whatever you'll want when it goes to the pen drive.
- build the kernel with several modules built in, in special usb storage
(of course) and all related to LVM (Gentoo Wiki is great!), and also, as I
use "genkernel", there is a command line argument "--lvm"
- create a few partitions on the pen drive (on mine there are two, but one
is enough), create logical volumes for /boot and / - or /root - at least)
- using grub2, in the file /etc/default/grub, the kernel command line
should include "dolvm scandelay=10 rootdelay=10" (the numerical values are
far from optimized).
- mount the root partition in another directory (so that other mounts would
not appear), copy it to yet another directory, strip it down (since I use
squashfs and it is read-only, there is no reason to have /usr/src ,
/usr/include , /usr/portage and many others), then copy to the pen drive
root partition; special care should be taken with /etc/fstab .
- umount your current /boot partition, mount the pen drive boot partition
in /boot (just to make things look familiar), mount the hard drive boot
partition elsewhere, copy its contents to the pen drive boot partition, and
issue a grub-install to the pen drive disk (/dev/sdb, for instance) and
grub-mkconfig -o /boot/grub/grub.cfg

That's very incomplete, since, for instance and as already mentioned, I use
a squashfs root partition, so I had to figure out some ways, using unionfs,
to have a writable partition mounted on top of the read only one for /var
and for /etc (at least).


2014-03-28 12:00 GMT-03:00 Francisco Ares <frares@gmail.com>:

> To auto log-in, I use a feature of "agetty":
>
> On /etc/inittab:
>
> # TERMINALS
> # c1:12345:respawn:/usr/bin/fbi -a -noverbose --nocomments
> /etc/splash/natural_altec/images/silent-1024x768.jpg
> c1:12345:respawn:/sbin/agetty --noclear 38400 tty1 linux
> c2:2345:respawn:/sbin/agetty 38400 tty2 linux
> c3:2345:respawn:/sbin/agetty 38400 tty3 linux
> c4:2345:respawn:/sbin/agetty 38400 tty4 linux
> c5:2345:respawn:/sbin/agetty 38400 tty5 linux
> c6:2345:respawn:/sbin/agetty -a AutoLogInUserName 38400 tty6 linux
>
> And for auto run, after auto log-in accomplished, I use ".bash_profile" on
> the auto logged-in user's home directory.
>
> Hope this helps
> Francisco
>
>
> 2014-03-28 11:15 GMT-03:00 Peter Humphrey <peter@prh.myzen.co.uk>:
>
> On Saturday 22 Mar 2014 19:37:35 Neil Bothwick wrote:
>> > On Sat, 22 Mar 2014 13:57:22 +0000, Peter Humphrey wrote:
>> > > I've installed that old favourite SysRescCD on a pen drive, following
>> a
>> > > method I found on the Web to include a persistent file-system with all
>> > > the extras I wanted in, e.g., /usr/local/bin.
>> > >
>> > > It works well, except that I haven't found yet where to put all my
>> > > aliases to have them sourced at (auto) log-in.
>> >
>> > There is a file that is executed by default at login, I think it
>> > is .autorun. I remember having to add an option to ignore it on the
>> > LXFDVDs because we use .autorun on those to launch a browser.
>>
>> I had a poke around and didn't get anywhere with .autorun, but eventually
>> I
>> found that SysRescCD uses zsh, not bash. It hadn't occurred to me until
>> then
>> to consider the shell. So that's why the auto-login function wasn't
>> behaving
>> the way I expected.
>>
>> Thanks again Neil.
>>
>> --
>> Regards
>> Peter
>>
>>
>>
>

[-- Attachment #2: Type: text/html, Size: 4786 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Portable Gentoo (Pen Drive Linux)
  2014-03-28 15:24                 ` Francisco Ares
@ 2014-03-28 15:26                   ` Nilesh Govindrajan
  2014-03-28 15:55                     ` Francisco Ares
  0 siblings, 1 reply; 22+ messages in thread
From: Nilesh Govindrajan @ 2014-03-28 15:26 UTC (permalink / raw
  To: Gentoo User Mailing List

[-- Attachment #1: Type: text/plain, Size: 3939 bytes --]

On 28-Mar-2014 8:55 pm, "Francisco Ares" <frares@gmail.com> wrote:
>
> Also, as for a bootable flash drive, if you use logical volumes for mount
partitions, it works like a charm. If not, depending on the other physical
drives, during boot, drive letters may change (I believe during the
initramfs part of the boot).
>
> It was basically like this:
>
> - install a bare bones Gentoo system on a hard drive in the usual way,
and make it do whatever you'll want when it goes to the pen drive.
> - build the kernel with several modules built in, in special usb storage
(of course) and all related to LVM (Gentoo Wiki is great!), and also, as I
use "genkernel", there is a command line argument "--lvm"
> - create a few partitions on the pen drive (on mine there are two, but
one is enough), create logical volumes for /boot and / - or /root - at
least)
> - using grub2, in the file /etc/default/grub, the kernel command line
should include "dolvm scandelay=10 rootdelay=10" (the numerical values are
far from optimized).
> - mount the root partition in another directory (so that other mounts
would not appear), copy it to yet another directory, strip it down (since I
use squashfs and it is read-only, there is no reason to have /usr/src ,
/usr/include , /usr/portage and many others), then copy to the pen drive
root partition; special care should be taken with /etc/fstab .
> - umount your current /boot partition, mount the pen drive boot partition
in /boot (just to make things look familiar), mount the hard drive boot
partition elsewhere, copy its contents to the pen drive boot partition, and
issue a grub-install to the pen drive disk (/dev/sdb, for instance) and
grub-mkconfig -o /boot/grub/grub.cfg
>
> That's very incomplete, since, for instance and as already mentioned, I
use a squashfs root partition, so I had to figure out some ways, using
unionfs, to have a writable partition mounted on top of the read only one
for /var and for /etc (at least).
>
>
> 2014-03-28 12:00 GMT-03:00 Francisco Ares <frares@gmail.com>:
>
>> To auto log-in, I use a feature of "agetty":
>>
>> On /etc/inittab:
>>
>> # TERMINALS
>> # c1:12345:respawn:/usr/bin/fbi -a -noverbose --nocomments
/etc/splash/natural_altec/images/silent-1024x768.jpg
>> c1:12345:respawn:/sbin/agetty --noclear 38400 tty1 linux
>> c2:2345:respawn:/sbin/agetty 38400 tty2 linux
>> c3:2345:respawn:/sbin/agetty 38400 tty3 linux
>> c4:2345:respawn:/sbin/agetty 38400 tty4 linux
>> c5:2345:respawn:/sbin/agetty 38400 tty5 linux
>> c6:2345:respawn:/sbin/agetty -a AutoLogInUserName 38400 tty6 linux
>>
>> And for auto run, after auto log-in accomplished, I use ".bash_profile"
on the auto logged-in user's home directory.
>>
>> Hope this helps
>> Francisco
>>
>>
>> 2014-03-28 11:15 GMT-03:00 Peter Humphrey <peter@prh.myzen.co.uk>:
>>
>>> On Saturday 22 Mar 2014 19:37:35 Neil Bothwick wrote:
>>> > On Sat, 22 Mar 2014 13:57:22 +0000, Peter Humphrey wrote:
>>> > > I've installed that old favourite SysRescCD on a pen drive,
following a
>>> > > method I found on the Web to include a persistent file-system with
all
>>> > > the extras I wanted in, e.g., /usr/local/bin.
>>> > >
>>> > > It works well, except that I haven't found yet where to put all my
>>> > > aliases to have them sourced at (auto) log-in.
>>> >
>>> > There is a file that is executed by default at login, I think it
>>> > is .autorun. I remember having to add an option to ignore it on the
>>> > LXFDVDs because we use .autorun on those to launch a browser.
>>>
>>> I had a poke around and didn't get anywhere with .autorun, but
eventually I
>>> found that SysRescCD uses zsh, not bash. It hadn't occurred to me until
then
>>> to consider the shell. So that's why the auto-login function wasn't
behaving
>>> the way I expected.
>>>
>>> Thanks again Neil.
>>>
>>> --
>>> Regards
>>> Peter
>>>
>>>
>>
>

You don't really need to use LVM, you just assign filesystem labels and use
root=LABEL=...

Or use UUID

[-- Attachment #2: Type: text/html, Size: 5026 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Portable Gentoo (Pen Drive Linux)
  2014-03-28 15:26                   ` Nilesh Govindrajan
@ 2014-03-28 15:55                     ` Francisco Ares
  0 siblings, 0 replies; 22+ messages in thread
From: Francisco Ares @ 2014-03-28 15:55 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 4304 bytes --]

Everyday learning something.... that's why I like Linux and, in special,
Gentoo.

Thanks
Francisco


2014-03-28 12:26 GMT-03:00 Nilesh Govindrajan <me@nileshgr.com>:

> On 28-Mar-2014 8:55 pm, "Francisco Ares" <frares@gmail.com> wrote:
> >
> > Also, as for a bootable flash drive, if you use logical volumes for
> mount partitions, it works like a charm. If not, depending on the other
> physical drives, during boot, drive letters may change (I believe during
> the initramfs part of the boot).
> >
> > It was basically like this:
> >
> > - install a bare bones Gentoo system on a hard drive in the usual way,
> and make it do whatever you'll want when it goes to the pen drive.
> > - build the kernel with several modules built in, in special usb storage
> (of course) and all related to LVM (Gentoo Wiki is great!), and also, as I
> use "genkernel", there is a command line argument "--lvm"
> > - create a few partitions on the pen drive (on mine there are two, but
> one is enough), create logical volumes for /boot and / - or /root - at
> least)
> > - using grub2, in the file /etc/default/grub, the kernel command line
> should include "dolvm scandelay=10 rootdelay=10" (the numerical values are
> far from optimized).
> > - mount the root partition in another directory (so that other mounts
> would not appear), copy it to yet another directory, strip it down (since I
> use squashfs and it is read-only, there is no reason to have /usr/src ,
> /usr/include , /usr/portage and many others), then copy to the pen drive
> root partition; special care should be taken with /etc/fstab .
> > - umount your current /boot partition, mount the pen drive boot
> partition in /boot (just to make things look familiar), mount the hard
> drive boot partition elsewhere, copy its contents to the pen drive boot
> partition, and issue a grub-install to the pen drive disk (/dev/sdb, for
> instance) and grub-mkconfig -o /boot/grub/grub.cfg
> >
> > That's very incomplete, since, for instance and as already mentioned, I
> use a squashfs root partition, so I had to figure out some ways, using
> unionfs, to have a writable partition mounted on top of the read only one
> for /var and for /etc (at least).
> >
> >
> > 2014-03-28 12:00 GMT-03:00 Francisco Ares <frares@gmail.com>:
> >
> >> To auto log-in, I use a feature of "agetty":
> >>
> >> On /etc/inittab:
> >>
> >> # TERMINALS
> >> # c1:12345:respawn:/usr/bin/fbi -a -noverbose --nocomments
> /etc/splash/natural_altec/images/silent-1024x768.jpg
> >> c1:12345:respawn:/sbin/agetty --noclear 38400 tty1 linux
> >> c2:2345:respawn:/sbin/agetty 38400 tty2 linux
> >> c3:2345:respawn:/sbin/agetty 38400 tty3 linux
> >> c4:2345:respawn:/sbin/agetty 38400 tty4 linux
> >> c5:2345:respawn:/sbin/agetty 38400 tty5 linux
> >> c6:2345:respawn:/sbin/agetty -a AutoLogInUserName 38400 tty6 linux
> >>
> >> And for auto run, after auto log-in accomplished, I use ".bash_profile"
> on the auto logged-in user's home directory.
> >>
> >> Hope this helps
> >> Francisco
> >>
> >>
> >> 2014-03-28 11:15 GMT-03:00 Peter Humphrey <peter@prh.myzen.co.uk>:
> >>
> >>> On Saturday 22 Mar 2014 19:37:35 Neil Bothwick wrote:
> >>> > On Sat, 22 Mar 2014 13:57:22 +0000, Peter Humphrey wrote:
> >>> > > I've installed that old favourite SysRescCD on a pen drive,
> following a
> >>> > > method I found on the Web to include a persistent file-system with
> all
> >>> > > the extras I wanted in, e.g., /usr/local/bin.
> >>> > >
> >>> > > It works well, except that I haven't found yet where to put all my
> >>> > > aliases to have them sourced at (auto) log-in.
> >>> >
> >>> > There is a file that is executed by default at login, I think it
> >>> > is .autorun. I remember having to add an option to ignore it on the
> >>> > LXFDVDs because we use .autorun on those to launch a browser.
> >>>
> >>> I had a poke around and didn't get anywhere with .autorun, but
> eventually I
> >>> found that SysRescCD uses zsh, not bash. It hadn't occurred to me
> until then
> >>> to consider the shell. So that's why the auto-login function wasn't
> behaving
> >>> the way I expected.
> >>>
> >>> Thanks again Neil.
> >>>
> >>> --
> >>> Regards
> >>> Peter
> >>>
> >>>
> >>
> >
>
> You don't really need to use LVM, you just assign filesystem labels and
> use root=LABEL=...
>
> Or use UUID
>

[-- Attachment #2: Type: text/html, Size: 5638 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Portable Gentoo (Pen Drive Linux)
  2014-03-28 14:15             ` Peter Humphrey
  2014-03-28 15:00               ` Francisco Ares
@ 2014-03-28 21:08               ` Neil Bothwick
  2014-03-29 10:07                 ` Peter Humphrey
  1 sibling, 1 reply; 22+ messages in thread
From: Neil Bothwick @ 2014-03-28 21:08 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1050 bytes --]

On Fri, 28 Mar 2014 14:15:56 +0000, Peter Humphrey wrote:

> > There is a file that is executed by default at login, I think it
> > is .autorun. I remember having to add an option to ignore it on the
> > LXFDVDs because we use .autorun on those to launch a browser.  
> 
> I had a poke around and didn't get anywhere with .autorun, but
> eventually I found that SysRescCD uses zsh, not bash. It hadn't
> occurred to me until then to consider the shell. So that's why the
> auto-login function wasn't behaving the way I expected.

I don't think it's down to the shell, sysresccd includes bash too AFAIR.
It's more likely due to me giving your duff information, the file is
autorun not .autorun. If you press the help keys at the boot menu, you
will eventually find an explanation of how it works, around F5 I think.

Aha, just found the proper documentation for it
http://www.sysresccd.org/Sysresccd-manual-en_Run_your_own_scripts_with_autorun


-- 
Neil Bothwick

Dream as if you'll live forever. Live as if you'll die today.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Portable Gentoo (Pen Drive Linux)
  2014-03-28 21:08               ` Neil Bothwick
@ 2014-03-29 10:07                 ` Peter Humphrey
  2014-03-29 16:41                   ` Neil Bothwick
  0 siblings, 1 reply; 22+ messages in thread
From: Peter Humphrey @ 2014-03-29 10:07 UTC (permalink / raw
  To: gentoo-user

On Friday 28 Mar 2014 21:08:02 Neil Bothwick wrote:
> On Fri, 28 Mar 2014 14:15:56 +0000, Peter Humphrey wrote:
> > > There is a file that is executed by default at login, I think it
> > > is .autorun. I remember having to add an option to ignore it on the
> > > LXFDVDs because we use .autorun on those to launch a browser.
> > 
> > I had a poke around and didn't get anywhere with .autorun, but
> > eventually I found that SysRescCD uses zsh, not bash. It hadn't
> > occurred to me until then to consider the shell. So that's why the
> > auto-login function wasn't behaving the way I expected.
> 
> I don't think it's down to the shell, sysresccd includes bash too AFAIR.

Yes, bash is present, but root (superuser) has /bin/zsh as its shell in 
/etc/passwd, so bash scripts aren't run on login.

> It's more likely due to me giving your duff information, the file is
> autorun not .autorun.

I did manage to drop the dot :-)

--->8

> Aha, just found the proper documentation for it
> http://www.sysresccd.org/Sysresccd-manual-en_Run_your_own_scripts_with_autorun

That looks interesting - thanks. First though I think I'll pursue getting my 
aliases, and unaliases, into zsh startup. Or is it simple to change root's 
login shell? It seems unlikely that simply editing /etc/passwd would do it.

-- 
Regards
Peter



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Portable Gentoo (Pen Drive Linux)
  2014-03-29 10:07                 ` Peter Humphrey
@ 2014-03-29 16:41                   ` Neil Bothwick
  2014-03-29 19:29                     ` Peter Humphrey
  0 siblings, 1 reply; 22+ messages in thread
From: Neil Bothwick @ 2014-03-29 16:41 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 996 bytes --]

On Sat, 29 Mar 2014 10:07:22 +0000, Peter Humphrey wrote:

> > I don't think it's down to the shell, sysresccd includes bash too
> > AFAIR.  
> 
> Yes, bash is present, but root (superuser) has /bin/zsh as its shell in 
> /etc/passwd, so bash scripts aren't run on login.

Ah yes, I see what you mean.

> > Aha, just found the proper documentation for it
> > http://www.sysresccd.org/Sysresccd-manual-en_Run_your_own_scripts_with_autorun  
 
> That looks interesting - thanks. First though I think I'll pursue
> getting my aliases, and unaliases, into zsh startup. Or is it simple to
> change root's login shell? It seems unlikely that simply
> editing /etc/passwd would do it.

It is that simple. One of the first things I do on a new install is
sed -i s/bash/zsh/ /etc/passwd

Dropping the aliases into ~/.zshrc is the easy option, that way to get
your aliases and a superior shell.


-- 
Neil Bothwick

"He's dead, Jim.  You get his phaser, I'll grab his wallet."

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Portable Gentoo (Pen Drive Linux)
  2014-03-29 16:41                   ` Neil Bothwick
@ 2014-03-29 19:29                     ` Peter Humphrey
  2014-03-30 11:27                       ` [gentoo-user] " Martin Vaeth
  0 siblings, 1 reply; 22+ messages in thread
From: Peter Humphrey @ 2014-03-29 19:29 UTC (permalink / raw
  To: gentoo-user

On Saturday 29 Mar 2014 16:41:10 Neil Bothwick wrote:
> On Sat, 29 Mar 2014 10:07:22 +0000, Peter Humphrey wrote:
> > > I don't think it's down to the shell, sysresccd includes bash too
> > > AFAIR.
> > 
> > Yes, bash is present, but root (superuser) has /bin/zsh as its shell in
> > /etc/passwd, so bash scripts aren't run on login.
> 
> Ah yes, I see what you mean.
> 
> > > Aha, just found the proper documentation for it
> > > http://www.sysresccd.org/Sysresccd-manual-en_Run_your_own_scripts_with_a
> > > utorun> 
> > That looks interesting - thanks. First though I think I'll pursue
> > getting my aliases, and unaliases, into zsh startup. Or is it simple to
> > change root's login shell? It seems unlikely that simply
> > editing /etc/passwd would do it.
> 
> It is that simple. One of the first things I do on a new install is
> sed -i s/bash/zsh/ /etc/passwd

I'll bear it in mind (until I forget - about 10 minutes, I expect).

> Dropping the aliases into ~/.zshrc is the easy option, that way to get
> your aliases and a superior shell.

That's what I've done so far. I haven't noticed any difficulty running zsh 
without knowing it, so maybe I'll just leave it at that.

Ta muchly.

-- 
Regards
Peter



^ permalink raw reply	[flat|nested] 22+ messages in thread

* [gentoo-user] Re: Portable Gentoo (Pen Drive Linux)
  2014-03-29 19:29                     ` Peter Humphrey
@ 2014-03-30 11:27                       ` Martin Vaeth
  2014-03-30 14:28                         ` Peter Humphrey
  0 siblings, 1 reply; 22+ messages in thread
From: Martin Vaeth @ 2014-03-30 11:27 UTC (permalink / raw
  To: gentoo-user

Peter Humphrey <peter@prh.myzen.co.uk> wrote:
>
>> Dropping the aliases into ~/.zshrc is the easy option, that way to get
>> your aliases and a superior shell.
>
> That's what I've done so far.

If you have a complex bash configuration file which you want to keep,
source your .bashrc (or whatever you use) in compatibility mode
(the anonymous function will keep that mode local only for sourcing):

() {
	emulate -L sh
	setopt kshglob noshglob braceexpand nonomatch
	. ~/.bashrc
}

Most setups should work without any issues in this compatibility
mode, the most notable exception being [[ $var ]] which must be
cast into the more compatible [[ -n $var ]].



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: [gentoo-user] Re: Portable Gentoo (Pen Drive Linux)
  2014-03-30 11:27                       ` [gentoo-user] " Martin Vaeth
@ 2014-03-30 14:28                         ` Peter Humphrey
  0 siblings, 0 replies; 22+ messages in thread
From: Peter Humphrey @ 2014-03-30 14:28 UTC (permalink / raw
  To: gentoo-user

On Sunday 30 Mar 2014 11:27:53 Martin Vaeth wrote:
> Peter Humphrey <peter@prh.myzen.co.uk> wrote:
> >> Dropping the aliases into ~/.zshrc is the easy option, that way to get
> >> your aliases and a superior shell.
> > 
> > That's what I've done so far.
> 
> If you have a complex bash configuration file which you want to keep,
> source your .bashrc (or whatever you use) in compatibility mode
> (the anonymous function will keep that mode local only for sourcing):
> 
> () {
> 	emulate -L sh
> 	setopt kshglob noshglob braceexpand nonomatch
> 	. ~/.bashrc
> }
> 
> Most setups should work without any issues in this compatibility
> mode, the most notable exception being [[ $var ]] which must be
> cast into the more compatible [[ -n $var ]].

Well, thank you Martin. I don't have anything complex; just some aliases 
different from what's already in /root/.zshrc. Now that I've found where to put 
mine I'm happy.

Apart, that is, from another problem I seem to have caused for myself. But 
this is now OT re the original thread, so if I want to say more I'll start 
another thread with it.

Thanks again.

-- 
Regards
Peter



^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2014-03-30 14:29 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-22  1:53 [gentoo-user] Portable Gentoo (Pen Drive Linux) Nilesh Govindrajan
2014-03-22 12:11 ` Brian Hesdorfer
2014-03-22 13:00   ` Nilesh Govindrajan
2014-03-22 13:08     ` Alan McKinnon
2014-03-22 13:12       ` Nilesh Govindrajan
2014-03-22 13:26         ` Alan McKinnon
2014-03-22 13:33           ` Nilesh Govindrajan
2014-03-22 13:57         ` Peter Humphrey
2014-03-22 17:54           ` Yohan Pereira
2014-03-22 19:37           ` Neil Bothwick
2014-03-23  9:33             ` Peter Humphrey
2014-03-28 14:15             ` Peter Humphrey
2014-03-28 15:00               ` Francisco Ares
2014-03-28 15:24                 ` Francisco Ares
2014-03-28 15:26                   ` Nilesh Govindrajan
2014-03-28 15:55                     ` Francisco Ares
2014-03-28 21:08               ` Neil Bothwick
2014-03-29 10:07                 ` Peter Humphrey
2014-03-29 16:41                   ` Neil Bothwick
2014-03-29 19:29                     ` Peter Humphrey
2014-03-30 11:27                       ` [gentoo-user] " Martin Vaeth
2014-03-30 14:28                         ` Peter Humphrey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox