Date: Fri, 3 Apr 2015 15:02:32 +0000 (UTC) From: Eitan Adler <eadler@FreeBSD.org> To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r46446 - head/en_US.ISO8859-1/articles/new-users Message-ID: <201504031502.t33F2W9a008689@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: eadler Date: Fri Apr 3 15:02:31 2015 New Revision: 46446 URL: https://svnweb.freebsd.org/changeset/doc/46446 Log: new users: it seems unlikely that users new to FreeBSD will want to do any of - use a floppy - use DOS and even using a tape drive and printing aren't common first tasks remove this section Modified: head/en_US.ISO8859-1/articles/new-users/article.xml Modified: head/en_US.ISO8859-1/articles/new-users/article.xml ============================================================================== --- head/en_US.ISO8859-1/articles/new-users/article.xml Fri Apr 3 11:38:43 2015 (r46445) +++ head/en_US.ISO8859-1/articles/new-users/article.xml Fri Apr 3 15:02:31 2015 (r46446) @@ -602,93 +602,6 @@ put a space after the comma, did you?)</para> </sect1> - <sect1 xml:id="printing-files-from-dos"> - <title>Printing Files from DOS</title> - - <para>At this point you probably do not have the printer working, - so here is a way to create a file from a manual page, move it to a - floppy, and then print it from DOS. Suppose you want to read - carefully about changing permissions on files (pretty - important). You can use <command>man chmod</command> to read - about it. The command</para> - - <informalexample> - <screen>&prompt.user; <userinput>man chmod | col -b > chmod.txt</userinput></screen> - </informalexample> - - <para>will remove formatting codes and send the manual page to the - <filename>chmod.txt</filename> file instead of showing it on - your screen. Now put a dos-formatted diskette in your floppy - drive <filename>a</filename>, <command>su</command> to <systemitem class="username">root</systemitem>, and type</para> - - <informalexample> - <screen>&prompt.root; <userinput>/sbin/mount -t msdosfs /dev/fd0 /mnt</userinput></screen> - </informalexample> - - <para>to mount the floppy drive on - <filename>/mnt</filename>.</para> - - <para>Now (you no longer need to be <systemitem class="username">root</systemitem>, and you can type - <command>exit</command> to get back to being user jack) you can - go to the directory where you created - <filename>chmod.txt</filename> and copy the file to the floppy - with:</para> - - <informalexample> - <screen>&prompt.user; <userinput>cp chmod.txt /mnt</userinput></screen> - </informalexample> - - <para>and use <command>ls /mnt</command> to get a directory - listing of <filename>/mnt</filename>, which should show the file - <filename>chmod.txt</filename>.</para> - - <para>You might especially want to make a file from - <filename>/sbin/dmesg</filename> by typing</para> - - <informalexample> - <screen>&prompt.user; <userinput>/sbin/dmesg > dmesg.txt</userinput></screen> - </informalexample> - - <para>and copying <filename>dmesg.txt</filename> to the floppy. - <command>/sbin/dmesg</command> is the boot log record, and it is - useful to understand it because it shows what FreeBSD found when - it booted up. If you ask questions on the &a.questions; or on a USENET - group—like <quote>FreeBSD is not finding my tape drive, - what do I do?</quote>—people will want to know what - <command>dmesg</command> has to say.</para> - - <para>You can now unmount the floppy drive (as <systemitem class="username">root</systemitem>) to get the - disk out with</para> - - <informalexample> - <screen>&prompt.root; <userinput>/sbin/umount /mnt</userinput></screen> - </informalexample> - - <para>and reboot to go to DOS. Copy these files to a DOS - directory, call them up with DOS EDIT, &windows; Notepad or - Wordpad, or a word processor, make a minor change so the file - has to be saved, and print as you normally would from DOS or - Windows. Hope it works! Manual pages come out best if printed - with the DOS <command>print</command> command. (Copying files - from FreeBSD to a mounted DOS partition is in some cases still a - little risky.)</para> - - <para>Getting the printer printing from FreeBSD involves creating - an appropriate entry in <filename>/etc/printcap</filename> and - creating a matching spool directory in - <filename>/var/spool/output</filename>. If your printer is on - <hardware>lpt0</hardware> (what DOS calls - <hardware>LPT1</hardware>), you may only need to go to - <filename>/var/spool/output</filename> and (as <systemitem class="username">root</systemitem>) create the - directory <filename>lpd</filename> by typing: <command>mkdir - lpd</command>, if it does not already exist. Then the printer - should respond if it is turned on when the system is booted, and - <command>lp</command> or <command>lpr</command> should send a - file to the printer. Whether or not the file actually prints - depends on configuring it, which is covered in the <link xlink:href="&url.books.handbook;/index.html">FreeBSD - handbook.</link></para> - </sect1> - <sect1 xml:id="other-useful-commands"> <title>Other Useful Commands</title>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504031502.t33F2W9a008689>