Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Making a init thingy. Step two I guess.
Date: Sat, 17 Sep 2011 21:20:52
Message-Id: 4E750E87.4010201@gmail.com
In Reply to: Re: [gentoo-user] Making a init thingy. Step two I guess. by Mark Knecht
1 Mark Knecht wrote:
2 > On Sat, Sep 17, 2011 at 1:51 PM, Michael Mol<mikemol@×××××.com> wrote:
3 >> On Sat, Sep 17, 2011 at 4:44 PM, Dale<rdalek1967@×××××.com> wrote:
4 >>> Mark Knecht wrote:
5 >>>> On Sat, Sep 17, 2011 at 1:02 PM, Dale<rdalek1967@×××××.com> wrote:
6 >>> That's what I was thinking to. I know busybox does a LOT of things but I
7 >>> didn't think it was a nano replacement either. OK. I got both of those in
8 >>> there at least. First problem dealt with I guess. Wonder what else I
9 >>> should put in there too.< scratches head>
10 >> Anything that makes life convenient, I'd guess.
11 >>
12 >> I'd look at stuffing these in there:
13 >> * screen
14 >> * file
15 >> * ssh
16 >> * links/lynx/w3m
17 >>
18 >> You'd also need the .so files those depend on. I don't know how to
19 >> identify those.
20 >>
21 >> --
22 >> :wq
23 >>
24 >>
25 > Supposedly
26 >
27 > ldd /usr/bin/screen
28 > ldd /usr/bin/file
29 > ldd /usr/bin/ssh
30 >
31 > etc.
32 >
33 > I think that's what I did when I built one a while back...
34 >
35 > - Mark
36 >
37 >
38
39 Yep, that's how the howto says it too. It seems to work.
40
41 root@fireball / # ldd /bin/nano
42 linux-vdso.so.1 => (0x00007fffc25ff000)
43 libncursesw.so.5 => /lib64/libncursesw.so.5 (0x00007f25fb500000)
44 libc.so.6 => /lib64/libc.so.6 (0x00007f25fb171000)
45 libdl.so.2 => /lib64/libdl.so.2 (0x00007f25faf6d000)
46 /lib64/ld-linux-x86-64.so.2 (0x00007f25fb75f000)
47 root@fireball / #
48
49 So, I copied those over too.
50
51 Adding ssh and screen are good ideas. I very rarely use file. Still
52 might tho. Interesting:
53
54 root@fireball / # ldd /usr/bin/screen
55 linux-vdso.so.1 => (0x00007fffe1573000)
56 libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f921dfca000)
57 libncursesw.so.5 => /lib64/libncursesw.so.5 (0x00007f921dd6b000)
58 libpam.so.0 => /lib64/libpam.so.0 (0x00007f921db5c000)
59 libc.so.6 => /lib64/libc.so.6 (0x00007f921d7cd000)
60 libdl.so.2 => /lib64/libdl.so.2 (0x00007f921d5c9000)
61 /lib64/ld-linux-x86-64.so.2 (0x00007f921e230000)
62 root@fireball / # ldd /usr/bin/ssh
63 linux-vdso.so.1 => (0x00007fffc6bff000)
64 libcrypto.so.1.0.0 => /usr/lib64/libcrypto.so.1.0.0
65 (0x00007ff6aa7b9000)
66 libdl.so.2 => /lib64/libdl.so.2 (0x00007ff6aa5b5000)
67 libz.so.1 => /lib64/libz.so.1 (0x00007ff6aa39d000)
68 libresolv.so.2 => /lib64/libresolv.so.2 (0x00007ff6aa186000)
69 libpthread.so.0 => /lib64/libpthread.so.0 (0x00007ff6a9f69000)
70 libc.so.6 => /lib64/libc.so.6 (0x00007ff6a9bda000)
71 /lib64/ld-linux-x86-64.so.2 (0x00007ff6aab73000)
72 root@fireball / #
73
74 Those seem to have a bit in common and no static flag for either.
75
76 Dale
77
78 :-) :-)

Replies

Subject Author
Re: [gentoo-user] Making a init thingy. Step two I guess. Mark Knecht <markknecht@×××××.com>