1 | <sect1 id="ch-system-psmisc" xreflabel="Psmisc">
|
---|
2 | <title>Installing Psmisc-&psmisc-version;</title>
|
---|
3 | <?dbhtml filename="psmisc.html" dir="chapter06"?>
|
---|
4 |
|
---|
5 | <para>The Psmisc package contains programs for displaying information on
|
---|
6 | processes.</para>
|
---|
7 |
|
---|
8 | <screen>&buildtime; &psmisc-time;
|
---|
9 | &diskspace; &psmisc-compsize;</screen>
|
---|
10 |
|
---|
11 | &aa-psmisc-down;
|
---|
12 | &aa-psmisc-dep;
|
---|
13 |
|
---|
14 | <sect2><title> </title><para> </para></sect2>
|
---|
15 |
|
---|
16 | <sect2>
|
---|
17 | <title>Installation of Psmisc</title>
|
---|
18 |
|
---|
19 | <para>Prepare Psmisc for compilation:</para>
|
---|
20 |
|
---|
21 | <screen><userinput>./configure --prefix=/usr --exec-prefix=/</userinput></screen>
|
---|
22 |
|
---|
23 | <para>The meaning of the configure option:</para>
|
---|
24 |
|
---|
25 | <itemizedlist>
|
---|
26 | <listitem><para><userinput>--exec-prefix=/</userinput>: This causes the
|
---|
27 | binaries to be installed in <filename>/bin</filename> and not in
|
---|
28 | <filename>/usr/bin</filename>. As the Psmisc programs are often used in
|
---|
29 | bootscripts, they should be available also when the <filename>/usr</filename>
|
---|
30 | file system isn't mounted.</para></listitem>
|
---|
31 | </itemizedlist>
|
---|
32 |
|
---|
33 | <para>Compile the package:</para>
|
---|
34 |
|
---|
35 | <screen><userinput>make</userinput></screen>
|
---|
36 |
|
---|
37 | <para>And install it:</para>
|
---|
38 |
|
---|
39 | <screen><userinput>make install</userinput></screen>
|
---|
40 |
|
---|
41 | <para>There is no reason for the <filename>pstree</filename> and
|
---|
42 | <filename>pstree.x11</filename> programs to reside in
|
---|
43 | <filename class="directory">/bin</filename>. We therefore move them to
|
---|
44 | <filename class="directory">/usr/bin</filename>. Also, there is no need
|
---|
45 | for <filename>pstree.x11</filename> to exist as a separate program. We
|
---|
46 | therefore make it a symbolic link to <filename>pstree</filename>:</para>
|
---|
47 |
|
---|
48 | <screen><userinput>mv /bin/pstree* /usr/bin
|
---|
49 | ln -sf pstree /usr/bin/pstree.x11</userinput></screen>
|
---|
50 |
|
---|
51 | <para>By default Psmisc's <command>pidof</command> program isn't installed.
|
---|
52 | Generally, this isn't a problem because we later install the Sysvinit package,
|
---|
53 | which provides a better <command>pidof</command> program. But if you're not
|
---|
54 | going to use Sysvinit, you should complete the installation of Psmisc by
|
---|
55 | creating the following symlink:</para>
|
---|
56 |
|
---|
57 | <screen><userinput>ln -s killall /bin/pidof</userinput></screen>
|
---|
58 |
|
---|
59 | </sect2>
|
---|
60 |
|
---|
61 | &aa-psmisc-shortdesc;
|
---|
62 | &aa-psmisc-desc;
|
---|
63 |
|
---|
64 | </sect1>
|
---|
65 |
|
---|