1 |
Jonathan Callen <jcallen@g.o> [17-02-20 02:39]: |
2 |
> On 02/18/2017 02:00 AM, Meino.Cramer@×××.de wrote: |
3 |
> > Ian Zimmerman <itz@×××××××.net> [17-02-18 07:52]: |
4 |
> >> On 2017-02-17 17:40, Meino.Cramer@×××.de wrote: |
5 |
> >> |
6 |
> >>> is there any clean way to delete the environment completly |
7 |
> >>> right after chrooting into a alternate root installation |
8 |
> >>> -- except using 'login <user>' after chrooting? |
9 |
> >>> |
10 |
> >>> Thanks in advance for any keeping the environment clean! ;) |
11 |
> >> |
12 |
> >> Run |
13 |
> >> |
14 |
> >> env -i sh |
15 |
> >> |
16 |
> >> as the command in chroot. |
17 |
> >> |
18 |
> >> I wish it was this easy in the "real world" :-( |
19 |
> >> |
20 |
> >> -- |
21 |
> >> Please *no* private Cc: on mailing lists and newsgroups |
22 |
> >> Personal signed mail: please _encrypt_ and sign |
23 |
> >> Don't clear-text sign: http://cr.yp.to/smtp/8bitmime.html |
24 |
> >> |
25 |
> > |
26 |
> > Hi Ian, |
27 |
> > |
28 |
> > this puts a big smile onto my face: |
29 |
> > Before posting a did several experiments with 'env -i' in |
30 |
> > several places (bashrc and such)....nothing works, |
31 |
> > THIS one you mentioned I left out for reasons I dont know. |
32 |
> > :) |
33 |
> > |
34 |
> > And yes(!): I also would like to have some instances |
35 |
> > of 'env -i' running for several purposes not limited |
36 |
> > to the phusical/nature environment only. |
37 |
> > ;) |
38 |
> > |
39 |
> > To the future!....but not without my commandline... |
40 |
> > |
41 |
> > Cheers |
42 |
> > Meino |
43 |
> > |
44 |
> > |
45 |
> > |
46 |
> > |
47 |
> |
48 |
> You probably want to keep at least the TERM environment variable; to do |
49 |
> so, use something like `env -i TERM=$TERM ...`. The TERM environment |
50 |
> variable is generally only set by the terminal emulator you use (or by |
51 |
> agetty(8) for console logins); the default is to treat everything as |
52 |
> "dumb", which breaks anything using curses (like vim, nano, etc.). |
53 |
> |
54 |
> -- |
55 |
> Jonathan Callen |
56 |
> |
57 |
|
58 |
Hi Jonathan, |
59 |
|
60 |
good advice ! :) Thanks a lot! Ot^[DO[herw`^[ueio^ise ;) I will encrypt |
61 |
my commandline without knowing the passphrase... ;) :) |
62 |
|
63 |
Cheers |
64 |
Meino |