basics.diff

victor, 08/10/2006 09:26 PM

Download (5.17 KB)

View differences:

chapter.sgml 10 Aug 2006 20:56:42 -0000
255 255
ttyv5   "/usr/libexec/getty Pc"         cons25  on  secure
256 256
ttyv6   "/usr/libexec/getty Pc"         cons25  on  secure
257 257
ttyv7   "/usr/libexec/getty Pc"         cons25  on  secure
258
ttyv8   "/usr/X11R6/bin/xdm -nodaemon"  xterm   off secure</programlisting>
258
ttyv8   "/usr/pkg/xorg/bin/xdm -nodaemon"  xterm   off secure</programlisting>
259 259

  
260 260
      <para>For a detailed description of every column in this file and all
261 261
	the options you can use to set things up for the virtual consoles,
......
760 760
	    </row>
761 761
	    
762 762
	    <row>
763
	      <entry><filename class="directory">/stand/</filename></entry>
764
	      <entry>Programs used in a standalone environment.</entry>
765
	    </row>
766
	    
767
	    
768
	    <row>
769 763
	      <entry><filename class="directory">/tmp/</filename></entry>
770 764
	      <entry>Temporary files.  The contents of
771 765
            <filename class="directory">/tmp</filename> are usually NOT
......
832 826
	      <entry><filename class="directory">/usr/pkg</filename></entry>
833 827
	      <entry>Used as
834 828
	        the default destination for the files installed via the
835
		&pkgsrc; framework or &pkgsrc; packages (optional).
829
		&pkgsrctree; or &pkgsrc; packages (optional).
836 830
		The configuration directory is tunable, but the default
837 831
		location is <filename>/usr/pkg/etc</filename>.
838 832
	      </entry>
839 833
	    </row>
834
	    
835
	    <row>
836
	      <entry><filename
837
	      class="directory">/usr/pkg/xorg/</filename></entry>
838
	      <entry>X11R6 distribution executables, libraries, etc
839
	      (optional).</entry>
840
	    </row>
840 841

  
841 842
	    <row>
842 843
	      <entry><filename class="directory">/usr/pkgsrc</filename></entry>
843
	      <entry>The &pkgsrc; collection for installing packages (optional).</entry>
844
	      <entry>The &pkgsrctree; for installing packages (optional).</entry>
844 845
	    </row>
845 846
	    
846 847
	    <row>
......
859 860
	    </row>
860 861
	    
861 862
	    <row>
862
	      <entry><filename
863
	      class="directory">/usr/X11R6/</filename></entry>
864
	      <entry>X11R6 distribution executables, libraries, etc
865
	      (optional).</entry>
866
	    </row>
867
	    
868
	    <row>
869 863
	      <entry><filename class="directory">/var/</filename></entry>
870 864
	      <entry>Multi-purpose log, temporary, transient, and spool files.
871 865
	      A memory-based file system is sometimes mounted at
......
2123 2117
      <envar>EDITOR</envar> environment variable, under <command>csh</command> or 
2124 2118
      <command>tcsh</command> a
2125 2119
      command like this would set <envar>EDITOR</envar> to
2126
      <filename>/usr/local/bin/emacs</filename>:</para>
2120
      <filename>/usr/pkg/bin/emacs</filename>:</para>
2127 2121

  
2128
    <screen>&prompt.user; <userinput>setenv EDITOR /usr/local/bin/emacs</userinput></screen>
2122
    <screen>&prompt.user; <userinput>setenv EDITOR /usr/pkg/bin/emacs</userinput></screen>
2129 2123

  
2130 2124
    <para>Under Bourne shells:</para>
2131 2125

  
2132
    <screen>&prompt.user; <userinput>export EDITOR="/usr/local/bin/emacs"</userinput></screen>
2126
    <screen>&prompt.user; <userinput>export EDITOR="/usr/pkg/bin/emacs"</userinput></screen>
2133 2127

  
2134 2128
    <para>You can also make most shells expand the environment variable by
2135 2129
      placing a <literal>$</literal> character in front of it on the
......
2171 2165
	change your shell to <command>bash</command>, the following should do the
2172 2166
	trick:</para>
2173 2167
	
2174
      <screen>&prompt.user; <userinput>chsh -s /usr/local/bin/bash</userinput></screen>
2168
      <screen>&prompt.user; <userinput>chsh -s /usr/pkg/bin/bash</userinput></screen>
2175 2169

  
2176 2170
      <note>
2177 2171
	<para>The shell that you wish to use <emphasis>must</emphasis> be
2178 2172
	  present in the <filename>/etc/shells</filename> file.  If you
2179
	  have installed a shell from the <link linkend="pkgsrc">&pkgsrc;
2180
	  collection</link>, then this should have been done for you
2173
	  have installed a shell from the <link linkend="pkgsrc">&pkgsrctree;
2174
	  </link>, then this should have been done for you
2181 2175
	  already.  If you installed the shell by hand, you must do
2182 2176
	  this.</para>
2183 2177
     
......
2200 2194
    <para>A lot of configuration in &os; is done by editing text files.
2201 2195
      Because of this, it would be a good idea to become familiar
2202 2196
      with a text editor.  &os; comes with a few as part of the base
2203
      system, and many more are available in the &pkgsrc; collections.</para>
2197
      system, and many more are available in the &pkgsrctree;.</para>
2204 2198

  
2205 2199
    <indexterm>
2206 2200
      <primary><command>ee</command></primary>
......
2241 2235
    <para>&os; also comes with more powerful text editors such as
2242 2236
      <application>vi</application> as part of the base system, while other editors, like
2243 2237
      <application>emacs</application> and <application>vim</application>,
2244
      are part of the &pkgsrc; collection.  These editors offer much
2238
      are part of the &pkgsrctree;.  These editors offer much
2245 2239
      more functionality and power at the expense of being a little more
2246 2240
      complicated to learn.  However if you plan on doing a lot of text
2247 2241
      editing, learning a more powerful editor such as