makedev-inst.xml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  2. <sect2>
  3. <title>Creating devices</title>
  4. <para>Please note that unpacking the MAKEDEV-&makedev-version;.bz2 file
  5. doesn't create a directory for you to <userinput>cd</userinput> into, as
  6. the file only contains a single shell script.</para>
  7. <para>Install the MAKEDEV script:</para>
  8. <para><screen><userinput>bzcat MAKEDEV-&makedev-version;.bz2 &gt; /dev/MAKEDEV
  9. chmod 754 /dev/MAKEDEV</userinput></screen></para>
  10. <para>Run the script to create the device files:</para>
  11. <para><screen><userinput>cd /dev
  12. ./MAKEDEV -v generic-nopty</userinput></screen></para>
  13. <para>The meaning of the option:</para>
  14. <itemizedlist>
  15. <listitem><para><userinput>-v generic-nopty</userinput>: The
  16. <userinput>-v</userinput> parameter tells the MAKEDEV script to run in verbose
  17. mode. The <userinput>generic-nopty</userinput> parameter instructs MAKEDEV to
  18. create a generic selection of commonly used device special files, except for the
  19. ptyXX and ttyXX range of files. We don't need those files because we are going
  20. to use Unix98 PTYs via the <emphasis>devpts</emphasis> file
  21. system.</para></listitem>
  22. </itemizedlist>
  23. <para>If a device you need is missing, try running
  24. <userinput>./MAKEDEV -v &lt;device&gt;</userinput>. Alternatively, you may
  25. create devices via the <emphasis>mknod</emphasis> program. Please refer to
  26. the man and info pages of <emphasis>mknod</emphasis> if you need more
  27. information.</para>
  28. </sect2>