psmisc.xml 2.1 KB

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