Gentoo Archives: gentoo-alt

From: Fabian Groffen <grobian@g.o>
To: Michael Fothergill <michael.fothergill@×××××.com>
Cc: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] I tried installing gentoo prefix on WSL2 running debian.....
Date: Thu, 18 Jul 2019 09:39:33
Message-Id: 20190718093926.GE18573@gentoo.org
In Reply to: Re: [gentoo-alt] I tried installing gentoo prefix on WSL2 running debian..... by Michael Fothergill
1 Here's an idea for you:
2
3 in $EPREFIX/etc/bash/bashrc.d/Michael.sh add this:
4
5 export GENTOO_PREFIX_ACTIVE=1
6
7 then in your .bashrc:
8
9 if [ -z $GENTOO_PREFIX_ACTIVE ] ; then
10 # Use global profile when available
11 if [ -f /usr/share/defaults/etc/profile ]; then
12 . /usr/share/defaults/etc/profile
13 fi
14 allow admin overrides
15 if [ -f /etc/profile ]; then
16 . /etc/profile
17 fi
18 fi
19
20
21 Now when you ssh to your box, you'll get the env and setup from your
22 host, once you run startprefix, it should be all Gentoo Prefix.
23
24 Fabian
25
26
27
28 On 18-07-2019 09:34:11 +0000, Michael Fothergill wrote:
29 > I have managed to hack my way back into clear linux.....
30 >
31 > It now doesn't find the profile file as expected.
32 >
33 > bash: /etc/profile: No such file or directory
34 >
35 > Both emerge and eselect news read run OK now.
36 >
37 > Regards
38 >
39 > MF
40 >
41 >
42 > read_char: errno==EILSEQ; invalid byte sequence for UTF-8:
43 --
44 Fabian Groffen
45 Gentoo on a different level

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-alt] I tried installing gentoo prefix on WSL2 running debian..... Michael Fothergill <michael.fothergill@×××××.com>