View | Details | Raw Unified | Return to bug 20183 | Differences between
and this patch

Collapse All | Expand All

(-)article.sgml (-62 / +62 lines)
Lines 565-571 Link Here
565
      </varlistentry>
565
      </varlistentry>
566
566
567
      <varlistentry>
567
      <varlistentry>
568
	<term><keycombo><keycap>Ctrl</><keycap>L</></keycombo></term>
568
	<term><keycombo><keycap>Ctrl</keycap><keycap>L</keycap></keycombo></term>
569
569
570
	<listitem>
570
	<listitem>
571
	  <para>to redraw the screen</para>
571
	  <para>to redraw the screen</para>
Lines 573-608 Link Here
573
      </varlistentry>
573
      </varlistentry>
574
574
575
      <varlistentry>
575
      <varlistentry>
576
	<term><keycombo><keycap>Ctrl</><keycap>b</></> and
576
	<term><keycombo><keycap>Ctrl</keycap><keycap>b</keycap></keycombo> and
577
	  <keycombo><keycap>Ctrl</><keycap>f</></></term>
577
	  <keycombo><keycap>Ctrl</keycap><keycap>f</keycap></keycombo></term>
578
578
579
	<listitem>
579
	<listitem>
580
	  <para>go back and forward a screen, as they do with
580
	  <para>go back and forward a screen, as they do with
581
	    <command>more</> and <command>view</>.</para>
581
	    <command>more</command> and <command>view</command>.</para>
582
	</listitem>
582
	</listitem>
583
      </varlistentry>
583
      </varlistentry>
584
    </variablelist>
584
    </variablelist>
585
585
586
    <para>Practice with <command>vi</> in your home directory by
586
    <para>Practice with <command>vi</command> in your home directory by
587
      creating a new file with <command>vi <replaceable>filename</></>
587
      creating a new file with <command>vi <replaceable>filename</replaceable></command>
588
      and adding and deleting text, saving the file, and calling it up
588
      and adding and deleting text, saving the file, and calling it up
589
      again.  <command>vi</> delivers some surprises because it's
589
      again.  <command>vi</command> delivers some surprises because it's
590
      really quite complex, and sometimes you'll inadvertently issue a
590
      really quite complex, and sometimes you'll inadvertently issue a
591
      command that will do something you don't expect.  (Some people
591
      command that will do something you don't expect.  (Some people
592
      actually like <command>vi</>&mdash;it's more powerful than DOS
592
      actually like <command>vi</command>&mdash;it's more powerful than DOS
593
      EDIT&mdash;find out about the <command>:r</> command.) Use
593
      EDIT&mdash;find out about the <command>:r</command> command.) Use
594
      <keycap>Esc</> one or more times to be sure you're in command
594
      <keycap>Esc</keycap> one or more times to be sure you're in command
595
      mode and proceed from there when it gives you trouble, save
595
      mode and proceed from there when it gives you trouble, save
596
      often with <command>:w</>, and use <command>:q!</> to get out
596
      often with <command>:w</command>, and use <command>:q!</command> to get out
597
      and start over (from your last <command>:w</>) when you need
597
      and start over (from your last <command>:w</command>) when you need
598
      to.</para>
598
      to.</para>
599
599
600
    <para>Now you can <command>cd</> to <filename>/etc</filename>,
600
    <para>Now you can <command>cd</command> to <filename>/etc</filename>,
601
      <command>su</> to root, use <command>vi</> to edit the file
601
      <command>su</command> to root, use <command>vi</command> to edit the file
602
      <filename>/etc/group</filename>, and add a user to wheel so the
602
      <filename>/etc/group</filename>, and add a user to wheel so the
603
      user has root privileges.  Just add a comma and the user's login
603
      user has root privileges.  Just add a comma and the user's login
604
      name to the end of the first line in the file, press
604
      name to the end of the first line in the file, press
605
      <keycap>Esc</>, and use <command>:wq</> to write the file to
605
      <keycap>Esc</keycap>, and use <command>:wq</command> to write the file to
606
      disk and quit.  Instantly effective.  (You didn't put a space
606
      disk and quit.  Instantly effective.  (You didn't put a space
607
      after the comma, did you?)</para>
607
      after the comma, did you?)</para>
608
  </sect1>
608
  </sect1>
Lines 625-631 Link Here
625
    <para>will remove formatting codes and send the man page to the
625
    <para>will remove formatting codes and send the man page to the
626
      <filename>chmod.txt</filename> file instead of showing it on
626
      <filename>chmod.txt</filename> file instead of showing it on
627
      your screen.  Now put a dos-formatted diskette in your floppy
627
      your screen.  Now put a dos-formatted diskette in your floppy
628
      drive a, <command>su</> to root, and type</para>
628
      drive a, <command>su</command> to root, and type</para>
629
629
630
    <informalexample>
630
    <informalexample>
631
      <screen>&prompt.root; <userinput>/sbin/mount -t msdos /dev/fd0 /mnt</>
631
      <screen>&prompt.root; <userinput>/sbin/mount -t msdos /dev/fd0 /mnt</>
Lines 636-642 Link Here
636
      <filename>/mnt</filename>.</para>
636
      <filename>/mnt</filename>.</para>
637
637
638
    <para>Now (you no longer need to be root, and you can type
638
    <para>Now (you no longer need to be root, and you can type
639
      <command>exit</> to get back to being user jack) you can go to
639
      <command>exit</command> to get back to being user jack) you can go to
640
      the directory where you created chmod.txt and copy the file to
640
      the directory where you created chmod.txt and copy the file to
641
      the floppy with:</para>
641
      the floppy with:</para>
642
642
Lines 661-670 Link Here
661
      <command>/sbin/dmesg</command> is the boot log record, and it's
661
      <command>/sbin/dmesg</command> is the boot log record, and it's
662
      useful to understand it because it shows what FreeBSD found when
662
      useful to understand it because it shows what FreeBSD found when
663
      it booted up.  If you ask questions on
663
      it booted up.  If you ask questions on
664
      <email>freebsd-questions@FreeBSD.org</> or on a USENET
664
      <email>freebsd-questions@FreeBSD.org</email> or on a USENET
665
      group&mdash;like <quote>FreeBSD isn't finding my tape drive,
665
      group&mdash;like <quote>FreeBSD isn't finding my tape drive,
666
	what do I do?</quote>&mdash;people will want to know what
666
	what do I do?</quote>&mdash;people will want to know what
667
      <command>dmesg</> has to say.</para>
667
      <command>dmesg</command> has to say.</para>
668
668
669
    <para>You can now dismount the floppy drive (as root) to get the
669
    <para>You can now dismount the floppy drive (as root) to get the
670
      disk out with</para>
670
      disk out with</para>
Lines 679-685 Link Here
679
      Wordpad, or a word processor, make a minor change so the file
679
      Wordpad, or a word processor, make a minor change so the file
680
      has to be saved, and print as you normally would from DOS or
680
      has to be saved, and print as you normally would from DOS or
681
      Windows.  Hope it works!  man pages come out best if printed
681
      Windows.  Hope it works!  man pages come out best if printed
682
      with the dos <command>print</> command.  (Copying files from
682
      with the dos <command>print</command> command.  (Copying files from
683
      FreeBSD to a mounted dos partition is in some cases still a
683
      FreeBSD to a mounted dos partition is in some cases still a
684
      little risky.)</para>
684
      little risky.)</para>
685
685
Lines 687-701 Link Here
687
      an appropriate entry in <filename>/etc/printcap</filename> and
687
      an appropriate entry in <filename>/etc/printcap</filename> and
688
      creating a matching spool directory in
688
      creating a matching spool directory in
689
      <filename>/var/spool/output</filename>.  If your printer is on
689
      <filename>/var/spool/output</filename>.  If your printer is on
690
      <hardware>lpt0</> (what dos calls <hardware>LPT1</>), you may
690
      <hardware>lpt0</hardware> (what dos calls <hardware>LPT1</hardware>), you may
691
      only need to go to <filename>/var/spool/output</filename> and
691
      only need to go to <filename>/var/spool/output</filename> and
692
      (as root) create the directory <filename>lpd</> by typing:
692
      (as root) create the directory <filename>lpd</filename> by typing:
693
      <command> mkdir lpd</command>, if it doesn't already exist.
693
      <command> mkdir lpd</command>, if it doesn't already exist.
694
      Then the printer should respond if it's turned on when the
694
      Then the printer should respond if it's turned on when the
695
      system is booted, and lp or lpr should send a file to the
695
      system is booted, and lp or lpr should send a file to the
696
      printer.  Whether or not the file actually prints depends on
696
      printer.  Whether or not the file actually prints depends on
697
      configuring it, which is covered in the <ulink
697
      configuring it, which is covered in the <ulink
698
	URL="../../handbook/handbook.html">FreeBSD handbook.</></para>
698
	URL="../../handbook/handbook.html">FreeBSD handbook.</ulink></para>
699
  </sect1>
699
  </sect1>
700
700
701
  <sect1>
701
  <sect1>
Lines 703-709 Link Here
703
703
704
    <variablelist>
704
    <variablelist>
705
      <varlistentry>
705
      <varlistentry>
706
	<term><command>df</></term>
706
	<term><command>df</command></term>
707
707
708
	<listitem>
708
	<listitem>
709
	  <para>shows file space and mounted systems.</para>
709
	  <para>shows file space and mounted systems.</para>
Lines 711-737 Link Here
711
      </varlistentry>
711
      </varlistentry>
712
712
713
      <varlistentry>
713
      <varlistentry>
714
	<term><command>ps aux</></term>
714
	<term><command>ps aux</command></term>
715
715
716
	<listitem>
716
	<listitem>
717
	  <para>shows processes running.  <command>ps ax</> is a
717
	  <para>shows processes running.  <command>ps ax</command> is a
718
	    narrower form.</para>
718
	    narrower form.</para>
719
	</listitem>
719
	</listitem>
720
      </varlistentry>
720
      </varlistentry>
721
721
722
      <varlistentry>
722
      <varlistentry>
723
	<term><command>rm <replaceable>filename</></></term>
723
	<term><command>rm <replaceable>filename</replaceable></command></term>
724
724
725
	<listitem>
725
	<listitem>
726
	  <para>remove <replaceable>filename</>.</para>
726
	  <para>remove <replaceable>filename</replaceable>.</para>
727
	</listitem>
727
	</listitem>
728
      </varlistentry>
728
      </varlistentry>
729
729
730
      <varlistentry>
730
      <varlistentry>
731
	<term><command>rm -R <replaceable>dir</></></term>
731
	<term><command>rm -R <replaceable>dir</replaceable></command></term>
732
732
733
	<listitem>
733
	<listitem>
734
	  <para>removes a directory <replaceable>dir</> and all
734
	  <para>removes a directory <replaceable>dir</replaceable> and all
735
	    subdirectories&mdash;careful!</para>
735
	    subdirectories&mdash;careful!</para>
736
	</listitem>
736
	</listitem>
737
      </varlistentry>
737
      </varlistentry>
Lines 750-756 Link Here
750
      </varlistentry>
750
      </varlistentry>
751
751
752
      <varlistentry>
752
      <varlistentry>
753
	<term><command>passwd</></term>
753
	<term><command>passwd</command></term>
754
754
755
	<listitem>
755
	<listitem>
756
	  <para>to change user's password (or root's password)</para>
756
	  <para>to change user's password (or root's password)</para>
Lines 758-764 Link Here
758
      </varlistentry>
758
      </varlistentry>
759
759
760
      <varlistentry>
760
      <varlistentry>
761
	<term><command>man hier</></term>
761
	<term><command>man hier</command></term>
762
762
763
	<listitem>
763
	<listitem>
764
	  <para>man page on the Unix file system</para>
764
	  <para>man page on the Unix file system</para>
Lines 766-772 Link Here
766
      </varlistentry>
766
      </varlistentry>
767
    </variablelist>
767
    </variablelist>
768
768
769
    <para>Use <command>find</> to locate filename in
769
    <para>Use <command>find</command> to locate filename in
770
      <filename>/usr</filename> or any of its subdirectories
770
      <filename>/usr</filename> or any of its subdirectories
771
      with</para>
771
      with</para>
772
772
Lines 776-782 Link Here
776
    </informalexample>
776
    </informalexample>
777
777
778
    <para>You can use <literal>*</literal> as a wildcard in
778
    <para>You can use <literal>*</literal> as a wildcard in
779
      <parameter>"<replaceable>filename</>"</> (which should be in
779
      <parameter>"<replaceable>filename</replaceable>"</parameter> (which should be in
780
      quotes).  If you tell find to search in <filename>/</filename>
780
      quotes).  If you tell find to search in <filename>/</filename>
781
      instead of <filename>/usr</filename> it will look for the
781
      instead of <filename>/usr</filename> it will look for the
782
      file(s) on all mounted file systems, including the CDROM and the
782
      file(s) on all mounted file systems, including the CDROM and the
Lines 802-808 Link Here
802
	URL="http://www.cdrom.com/">Walnut Creek</ulink> CDROM as well
802
	URL="http://www.cdrom.com/">Walnut Creek</ulink> CDROM as well
803
      as the web site.  The handbook tells you more about how to use
803
      as the web site.  The handbook tells you more about how to use
804
      them (get the package if it exists, with <command>pkg_add
804
      them (get the package if it exists, with <command>pkg_add
805
      /cdrom/packages/All/<replaceable>packagename</></>, where
805
      /cdrom/packages/All/<replaceable>packagename</replaceable></command>, where
806
      <replaceable>packagename</replaceable> is the filename of the
806
      <replaceable>packagename</replaceable> is the filename of the
807
      package).  The cdrom has lists of the packages and ports with
807
      package).  The cdrom has lists of the packages and ports with
808
      brief descriptions in <filename>cdrom/packages/index</filename>,
808
      brief descriptions in <filename>cdrom/packages/index</filename>,
Lines 813-822 Link Here
813
      programs and program names respectively.</para>
813
      programs and program names respectively.</para>
814
814
815
    <para>If you find the handbook too sophisticated (what with
815
    <para>If you find the handbook too sophisticated (what with
816
      <command>lndir</> and all) on installing ports from the cdrom,
816
      <command>lndir</command> and all) on installing ports from the cdrom,
817
      here's what usually works:</para>
817
      here's what usually works:</para>
818
818
819
    <para>Find the port you want, say <command>kermit</>.  There will
819
    <para>Find the port you want, say <command>kermit</command>.  There will
820
      be a directory for it on the cdrom.  Copy the subdirectory to
820
      be a directory for it on the cdrom.  Copy the subdirectory to
821
      <filename>/usr/local</filename> (a good place for software you
821
      <filename>/usr/local</filename> (a good place for software you
822
      add that should be available to all users) with:</para>
822
      add that should be available to all users) with:</para>
Lines 833-848 Link Here
833
833
834
    <para>Next, create the directory
834
    <para>Next, create the directory
835
      <filename>/usr/ports/distfiles</filename> if it doesn't already
835
      <filename>/usr/ports/distfiles</filename> if it doesn't already
836
      exist using <command>mkdir</>.  Now check check
836
      exist using <command>mkdir</command>.  Now check check
837
      <filename>/cdrom/ports/distfiles</filename> for a file with a
837
      <filename>/cdrom/ports/distfiles</filename> for a file with a
838
      name that indicates it's the port you want.  Copy that file to
838
      name that indicates it's the port you want.  Copy that file to
839
      <filename>/usr/ports/distfiles</filename>; in recent versions
839
      <filename>/usr/ports/distfiles</filename>; in recent versions
840
      you can skip this step, as FreeBSD will do it for you.  In the
840
      you can skip this step, as FreeBSD will do it for you.  In the
841
      case of <command>kermit</>, there is no distfile.</para>
841
      case of <command>kermit</command>, there is no distfile.</para>
842
842
843
    <para>Then <command>cd</> to the subdirectory of
843
    <para>Then <command>cd</command> to the subdirectory of
844
      <filename>/usr/local/kermit</filename> that has the file
844
      <filename>/usr/local/kermit</filename> that has the file
845
      <filename>Makefile</>.  Type</para>
845
      <filename>Makefile</filename>.  Type</para>
846
846
847
    <informalexample>
847
    <informalexample>
848
      <screen>&prompt.root; <userinput>make all install</>
848
      <screen>&prompt.root; <userinput>make all install</>
Lines 856-872 Link Here
856
      <filename>/cdrom/ports/distfiles</filename>, you will have to
856
      <filename>/cdrom/ports/distfiles</filename>, you will have to
857
      get the distfile using another machine and copy it to
857
      get the distfile using another machine and copy it to
858
      <filename>/usr/ports/distfiles</filename> from a floppy or your
858
      <filename>/usr/ports/distfiles</filename> from a floppy or your
859
      dos partition.  Read <filename>Makefile</> (with <command>cat</>
859
      dos partition.  Read <filename>Makefile</filename> (with <command>cat</command>
860
      or <command>more</> or <command>view</>) to find out where to go
860
      or <command>more</command> or <command>view</command>) to find out where to go
861
      (the master distribution site) to get the file and what its name
861
      (the master distribution site) to get the file and what its name
862
      is.  Its name will be truncated when downloaded to DOS, and
862
      is.  Its name will be truncated when downloaded to DOS, and
863
      after you get it into <filename>/usr/ports/distfiles</filename>
863
      after you get it into <filename>/usr/ports/distfiles</filename>
864
      you'll have to rename it (with the <command>mv</> command) to
864
      you'll have to rename it (with the <command>mv</command> command) to
865
      its original name so it can be found.  (Use binary file
865
      its original name so it can be found.  (Use binary file
866
      transfers!)  Then go back to
866
      transfers!)  Then go back to
867
      <filename>/usr/local/kermit</filename>, find the directory with
867
      <filename>/usr/local/kermit</filename>, find the directory with
868
      <filename>Makefile</>, and type <command>make all
868
      <filename>Makefile</filename>, and type <command>make all
869
	install</>.</para>
869
	install</command>.</para>
870
870
871
    <para>The other thing that happens when installing ports or
871
    <para>The other thing that happens when installing ports or
872
      packages is that some other program is needed.  If the
872
      packages is that some other program is needed.  If the
Lines 874-883 Link Here
874
	unzip</errorname> or whatever, you might need to install the
874
	unzip</errorname> or whatever, you might need to install the
875
      package or port for unzip before you continue.</para>
875
      package or port for unzip before you continue.</para>
876
876
877
    <para>Once it's installed type <command>rehash</> to make FreeBSD
877
    <para>Once it's installed type <command>rehash</command> to make FreeBSD
878
      reread the files in the path so it knows what's there.  (If you
878
      reread the files in the path so it knows what's there.  (If you
879
      get a lot of <errorname>path not found</> messages when you use
879
      get a lot of <errorname>path not found</errorname> messages when you use
880
      <command>whereis</> or which, you might want to make additions
880
      <command>whereis</command> or which, you might want to make additions
881
      to the list of directories in the path statement in
881
      to the list of directories in the path statement in
882
      <filename>.cshrc</filename> in your home directory.  The path
882
      <filename>.cshrc</filename> in your home directory.  The path
883
      statement in Unix does the same kind of work it does in DOS,
883
      statement in Unix does the same kind of work it does in DOS,
Lines 890-899 Link Here
890
      from their <ulink URL="ftp://ftp.netscape.com">ftp site</ulink>.
890
      from their <ulink URL="ftp://ftp.netscape.com">ftp site</ulink>.
891
      (Netscape requires the X Window System.) There's now a FreeBSD
891
      (Netscape requires the X Window System.) There's now a FreeBSD
892
      version, so look around carefully.  Just use <command>gunzip
892
      version, so look around carefully.  Just use <command>gunzip
893
	<replaceable>filename</></> and <command>tar xvf
893
	<replaceable>filename</replaceable></command> and <command>tar xvf
894
	<replaceable>filename</></> on it, move the binary to
894
	<replaceable>filename</replaceable></command> on it, move the binary to
895
      <filename>/usr/local/bin</filename> or some other place binaries
895
      <filename>/usr/local/bin</filename> or some other place binaries
896
      are kept, <command>rehash</>, and then put the following lines
896
      are kept, <command>rehash</command>, and then put the following lines
897
      in <filename>.cshrc</filename> in each user's home directory or
897
      in <filename>.cshrc</filename> in each user's home directory or
898
      (easier) in <filename>/etc/csh.cshrc</filename>, the
898
      (easier) in <filename>/etc/csh.cshrc</filename>, the
899
      system-wide csh start-up file:</para>
899
      system-wide csh start-up file:</para>
Lines 901-911 Link Here
901
    <informalexample>
901
    <informalexample>
902
      <programlisting>setenv XKEYSYMDB /usr/X11R6/lib/X11/XKeysymDB
902
      <programlisting>setenv XKEYSYMDB /usr/X11R6/lib/X11/XKeysymDB
903
setenv XNLSPATH /usr/X11R6/lib/X11/nls
903
setenv XNLSPATH /usr/X11R6/lib/X11/nls
904
      </>
904
      </programlisting>
905
    </informalexample>
905
    </informalexample>
906
906
907
    <para>This assumes that the file <filename>XKeysymDB</> and the
907
    <para>This assumes that the file <filename>XKeysymDB</filename> and the
908
      directory <filename>nls</> are in
908
      directory <filename>nls</filename> are in
909
      <filename>/usr/X11R6/lib/X11</filename>; if they're not, find
909
      <filename>/usr/X11R6/lib/X11</filename>; if they're not, find
910
      them and put them there.</para>
910
      them and put them there.</para>
911
911
Lines 977-983 Link Here
977
	you the tcsh as root, because the shell is part of the
977
	you the tcsh as root, because the shell is part of the
978
	environment.  You can make this permanent by adding it to your
978
	environment.  You can make this permanent by adding it to your
979
	<filename>.tcshrc</filename> file as an alias with
979
	<filename>.tcshrc</filename> file as an alias with
980
	<programlisting>alias su su -m.</></para>
980
	<programlisting>alias su su -m.</programlisting></para>
981
    </note>
981
    </note>
982
982
983
    <para>When tcsh starts up, it will read the
983
    <para>When tcsh starts up, it will read the
Lines 1020-1029 Link Here
1020
    <title>Other</title>
1020
    <title>Other</title>
1021
1021
1022
    <para>As root, you can dismount the CDROM with
1022
    <para>As root, you can dismount the CDROM with
1023
      <command>/sbin/umount /cdrom</>, take it out of the drive,
1023
      <command>/sbin/umount /cdrom</command>, take it out of the drive,
1024
      insert another one, and mount it with
1024
      insert another one, and mount it with
1025
      <command>/sbin/mount_cd9660 /dev/cd0a /cdrom</> assuming
1025
      <command>/sbin/mount_cd9660 /dev/cd0a /cdrom</command> assuming
1026
      <hardware>cd0a</> is the device name for your CDROM drive.  The
1026
      <hardware>cd0a</hardware> is the device name for your CDROM drive.  The
1027
      most recent versions of FreeBSD let you mount the cdrom with
1027
      most recent versions of FreeBSD let you mount the cdrom with
1028
      just <command>/sbin/mount /cdrom</command>.</para>
1028
      just <command>/sbin/mount /cdrom</command>.</para>
1029
1029
Lines 1031-1042 Link Here
1031
      CDROM disks&mdash;is useful if you've got limited space.  What
1031
      CDROM disks&mdash;is useful if you've got limited space.  What
1032
      is on the live file system varies from release to release.  You
1032
      is on the live file system varies from release to release.  You
1033
      might try playing games from the cdrom.  This involves using
1033
      might try playing games from the cdrom.  This involves using
1034
      <command>lndir</>, which gets installed with the X Window
1034
      <command>lndir</command>, which gets installed with the X Window
1035
      System, to tell the program(s) where to find the necessary
1035
      System, to tell the program(s) where to find the necessary
1036
      files, because they're in the <filename>/cdrom</filename> file
1036
      files, because they're in the <filename>/cdrom</filename> file
1037
      system instead of in <filename>/usr</filename> and its
1037
      system instead of in <filename>/usr</filename> and its
1038
      subdirectories, which is where they're expected to be.  Read
1038
      subdirectories, which is where they're expected to be.  Read
1039
      <command>man lndir</>.</para>
1039
      <command>man lndir</command>.</para>
1040
  </sect1>
1040
  </sect1>
1041
1041
1042
  <sect1>
1042
  <sect1>
Lines 1049-1054 Link Here
1049
      Fieber for helpful comments.</para>
1049
      Fieber for helpful comments.</para>
1050
1050
1051
    <para>Annelise Anderson,
1051
    <para>Annelise Anderson,
1052
	<email>andrsn@andrsn.stanford.edu</></para>
1052
	<email>andrsn@andrsn.stanford.edu</email></para>
1053
  </sect1>
1053
  </sect1>
1054
</article>
1054
</article>

Return to bug 20183