diff --git a/handbook/dialup.sgml b/handbook/dialup.sgml index bb87f073be..9170e3238c 100644 --- a/handbook/dialup.sgml +++ b/handbook/dialup.sgml @@ -1,6 +1,6 @@ + + + Configuring the FreeBSD Kernel @@ -107,6 +107,7 @@ # /usr/sbin/config MYKERNEL # cd ../../compile/MYKERNEL +# make depend # make # make install diff --git a/handbook/nfs.sgml b/handbook/nfs.sgml index 2a9b604233..ed4978d4ae 100644 --- a/handbook/nfs.sgml +++ b/handbook/nfs.sgml @@ -1,4 +1,4 @@ - + NFS @@ -39,13 +39,13 @@ system. In all cases, note that additional options, such as "hard" or "soft" and "bg" may be desirable in your application. Examples for the FreeBSD system ("freebox") as the client: - in /etc/fstab on freebox: + in /etc/fstab on freebox: fastws:/sharedfs /project nfs rw,rsize=1024 0 0 as a manual mount command on freebox: mount -t nfs -o rsize=1024 fastws:/sharedfs /project Examples for the FreeBSD system as the server: - in /etc/fstab on fastws: + in /etc/fstab on fastws: freebox:/sharedfs /project nfs rw,wsize=1024 0 0 as a manual mount command on fastws: mount -t nfs -o wsize=1024 freebox:/sharedfs /project diff --git a/handbook/porting.sgml b/handbook/porting.sgml index 0a24455f80..bc40ca21d4 100644 --- a/handbook/porting.sgml +++ b/handbook/porting.sgml @@ -1,4 +1,4 @@ - + Porting applications @@ -16,7 +16,7 @@ that file for more details. - Before Starting the Port + Before Starting the Port

Note: Only a fraction of the overridable variables are mentioned in this document. Most (if not all) are documented @@ -125,7 +125,7 @@ # Date created: 5 December 1994 # Whom: asami # - # $Id: porting.sgml,v 1.9 1995-12-04 08:11:58 asami Exp $ + # $Id: porting.sgml,v 1.10 1995-12-04 17:58:44 jfieber Exp $ # DISTNAME= oneko-1.1b @@ -411,7 +411,7 @@ ftp://freefall.freebsd.org/pub/FreeBSD/LOCAL_PORTS/ the directory your port's tarball unpacks itself into, that being where the make is done). To make fixes and upgrades easier you should avoid having more than one patch fix the - same file (e.g., patch-ab and patch-ab both changing + same file (e.g., patch-aa and patch-ab both changing ${WRKSRC}/foobar.c). @@ -880,7 +880,7 @@ lib/libtcl.so.7.3 person who wrote this Makefile] # Whom: Satoshi Asami # - # $Id: porting.sgml,v 1.9 1995-12-04 08:11:58 asami Exp $ + # $Id: porting.sgml,v 1.10 1995-12-04 17:58:44 jfieber Exp $ [ ^^^^ don't worry about this...it will be automatically filled in by CVS when it is committed to our repository] # diff --git a/handbook/ports.sgml b/handbook/ports.sgml index 2dff50c791..483052f0c2 100644 --- a/handbook/ports.sgml +++ b/handbook/ports.sgml @@ -1,4 +1,4 @@ - + The Ports collection @@ -32,7 +32,7 @@ those shell scripts, Makefiles and source code ``diffs'' that are necessary to configure and compile the program under FreeBSD. This keeps the entire system down to a manageable size, with the current system having over 300 ports in the master source tree and yet taking -up less than ten megabytes. +up less than twenty megabytes. How does the system compile with no source code? @@ -134,10 +134,8 @@ going to the top of the tree and typing ``make fetch''. I've ported a program and I want to make a port out of it. What now? -

See the file GUIDELINES, in: - ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/GUIDELINES - This contains details of the procedure and structure involved. - +

See the that + contain details of the procedure and structure involved. I've got a good port, what now? diff --git a/handbook/ppp.sgml b/handbook/ppp.sgml index 882adf57d5..7129475533 100644 --- a/handbook/ppp.sgml +++ b/handbook/ppp.sgml @@ -1,4 +1,4 @@ - + Setting up kernel PPP @@ -17,17 +17,17 @@ world via PPP serial connection or modem line. as a "server" , i.e. your machine is located on the network and used to connect other computers using PPP. -In both cases you will need to set up an options file ( /etc/ppp/options -or ~/.ppprc if you have more then one user on your machine that uses -PPP ). +In both cases you will need to set up an options file (/etc/ppp/options +or ~/.ppprc if you have more then one user on your machine that uses +PPP). You also will need some modem/serial software ( preferably kermit ) so you can dial and establish connection with remote host. Working as a PPP client -

I used the following /etc/ppp/options to connect to CISCO terminal server PPP -line. +

I used the following /etc/ppp/options to connect to CISCO terminal +server PPP line. crtscts # enable hardware flow control modem # modem control line @@ -62,10 +62,10 @@ on the remote host ) Now your computer is connected with PPP. If the connection fails for some -reasons you can add the "debug" option to the /etc/ppp/options file +reasons you can add the "debug" option to the /etc/ppp/options file and check messages on the console to track the problem -Following /etc/ppp/pppup script will make all 3 stages automatically: +Following /etc/ppp/pppup script will make all 3 stages automatically: #!/bin/sh ps ax |grep pppd |grep -v grep @@ -88,11 +88,11 @@ kermit -y /etc/ppp/kermit.dial pppd /dev/tty01 19200 -/etc/ppp/kermit.dial is kermit script that dials and makes all +/etc/ppp/kermit.dial is kermit script that dials and makes all necessary authorization on the remote host. ( Example of such script is attached to the end of this document ) -Use the following /etc/ppp/pppdown script to disconnect the PPP line: +Use the following /etc/ppp/pppdown script to disconnect the PPP line: #!/bin/sh pid=`ps ax |grep pppd |grep -v grep|awk '{print $1;}'` @@ -114,7 +114,7 @@ kermit -y /etc/ppp/kermit.hup /etc/ppp/ppptest -Check if PPP is still running (/usr/etc/ppp/ppptest): +Check if PPP is still running (/usr/etc/ppp/ppptest): #!/bin/sh pid=`ps ax| grep pppd |grep -v grep|awk '{print $1;}'` @@ -128,7 +128,7 @@ netstat -n -I ppp0 ifconfig ppp0 -Hangs up modem line (/etc/ppp/kermit.hup): +Hangs up modem line (/etc/ppp/kermit.hup): set line /dev/tty01 ; put your modem device here set speed 19200 @@ -152,7 +152,7 @@ exit Working as a PPP server -

/etc/ppp/options: +

/etc/ppp/options: crtscts # Hardware flow control netmask 255.255.255.0 # netmask ( not required ) @@ -167,7 +167,8 @@ passive # wait for LCP modem # modem line -Following /etc/ppp/pppserv script will enable ppp server on your machine +Following /etc/ppp/pppserv script will enable ppp server on your +machine #!/bin/sh ps ax |grep pppd |grep -v grep @@ -194,7 +195,7 @@ kermit -y /etc/ppp/kermit.ans pppd /dev/tty01 19200 -Use this /etc/ppp/pppservdown script to stop ppp server: +Use this /etc/ppp/pppservdown script to stop ppp server: #!/bin/sh ps ax |grep pppd |grep -v grep @@ -216,7 +217,7 @@ kermit -y /etc/ppp/kermit.noans Following kermit script will enable/disable autoanswer mode -on your modem (/etc/ppp/kermit.ans): +on your modem (/etc/ppp/kermit.ans): set line /dev/tty01 set speed 19200 @@ -243,8 +244,8 @@ echo \13 exit -This /etc/ppp/kermit.dial script is used for dialing and authorizing on remote host. -You will need to customize it for your needs. +This /etc/ppp/kermit.dial script is used for dialing and authorizing +on remote host. You will need to customize it for your needs. Put your login and password in this script , also you'll need to change input statement depending on responses from your modem and remote host. diff --git a/handbook/printing.sgml b/handbook/printing.sgml index 522749b429..aa56d9147e 100644 --- a/handbook/printing.sgml +++ b/handbook/printing.sgml @@ -1,7 +1,7 @@ + + Setting up a SLIP client @@ -33,7 +33,7 @@ so this won't be a problem unless you deleted it.

Add your home machine, the gateway and nameservers to your - /etc/hosts file. Mine looks like this: + /etc/hosts file. Mine looks like this: 127.0.0.1 localhost loghost 136.152.64.181 silvia.HIP.Berkeley.EDU silvia.HIP silvia @@ -45,10 +45,10 @@ so this won't be a problem unless you deleted it. By the way, silvia is the name of the car that I had when I was back in Japan (it's called 2?0SX here in U.S.). -Make sure you have "hosts" before "bind" in your /etc/host.conf. +Make sure you have "hosts" before "bind" in your /etc/host.conf. Otherwise, funny things may happen. -Edit the file /etc/sysconfig. +Edit the file /etc/sysconfig. Set your hostname by editing the line that says: @@ -81,7 +81,7 @@ defaultrouter=slip-gateway -Make a file /etc/resolv.conf which contains: +Make a file /etc/resolv.conf which contains: domain HIP.Berkeley.EDU nameserver 128.32.136.9 @@ -91,8 +91,8 @@ nameserver 128.32.136.12 actual domain names and addresses depend on your environment. Set the password for root and toor (and any other accounts that - doesn't have a password). Use passwd, don't edit the passwd or - passwd.master files! + doesn't have a password). Use passwd, don't edit the /etc/passwd + or /etc/master.passwd files! Reboot your machine and make sure it comes up with the correct hostname. @@ -123,7 +123,7 @@ output ***\x0d, echo \x0aCONNECTED\x0a yours). Then you can just type "slip" from the kermit prompt to get connected. - Note: leaving your password in plain text anywhere in the + Note: leaving your password in plain text anywhere in the filesystem is generally a BAD idea. Do it at your own risk. I'm just too lazy. @@ -170,8 +170,8 @@ sl0: flags=10 inet 136.152.64.181 --> 136.152.64.1 netmask ffffff00 -Also, "netstat -r" will give the routing table, in case you get the -"no route to host" messages from ping. Mine looks like: +Also, netstat -r will give the routing table, in case you get +the "no route to host" messages from ping. Mine looks like: silvia# netstat -r Routing tables diff --git a/handbook/userppp.sgml b/handbook/userppp.sgml index 9265825b71..2901d5930f 100644 --- a/handbook/userppp.sgml +++ b/handbook/userppp.sgml @@ -1,4 +1,4 @@ - + Setting up user PPP

This file should contain the IP addresses and names of machines on your network. At a bare minimum it should contain entries for the machine which will be running ppp. Assuming that you're machine is called - foo.bar.com with the IP address 10.0.0.1, /etc/hosts should contain + foo.bar.com with the IP address 10.0.0.1, /etc/hosts should + contain: 127.0.0.0 localhost 10.0.0.1 foo.bar.com foo @@ -188,13 +190,13 @@ namedflags="NO" Create the /etc/resolv.conf file -

/etc/resolv.conf contains some extra information required when you are - not running a nameserver. It points the resolver routines at real +

/etc/resolv.conf contains some extra information required when + you are not running a nameserver. It points the resolver routines at real nameservers, and specifies some other information. - At the very least, /etc/resolv.conf should contain one line with a - nameserver which can be queried. You should enter this as an IP - address. My /etc/resolv.conf contains + At the very least, /etc/resolv.conf should contain one line with + a nameserver which can be queried. You should enter this as an IP + address. My /etc/resolv.conf contains: nameserver 158.152.1.193 nameserver 158.152.1.65 @@ -205,13 +207,13 @@ nameserver 158.152.1.65 PPP and static IP addresses

Probably the easiest to configure for. You will need to create three files - in the /etc/ppp directory. + in the /etc/ppp directory. - The first of these is ppp.conf. It should look similar to the example - below. Note that lines that end in a ``:'' start in column 1, all other - lines should be indented as shown. + The first of these is ppp.conf. It should look similar to the + example below. Note that lines that end in a ``:'' start in column 1, all + other lines should be indented as shown. - /etc/ppp/ppp.conf + /etc/ppp/ppp.conf 1 default: 2 set device /dev/cuaa0 @@ -233,15 +235,15 @@ nameserver 158.152.1.65 executed automatically when ppp is run. /dev/cuaa0 and COM2: is /dev/cuaa1. chat(8) + language. Check the manual page for information on the features + of this language. You will need to alter this script to suit your own needs. It is - written in the chat(8) language. + written in the chat(8) language. - Now you have to edit the file /etc/ppp/ppp.linkup: + Now you have to edit the file /etc/ppp/ppp.linkup: x.x.x.x: add 0 0 HISADDR @@ -278,10 +280,10 @@ x.x.x.x: automatically add a default route from your ISP (who's address is automatically inserted with the HISADDR macro) to you. - Finally, you can create the file /etc/ppp/ppp.secret, which sets some - passwords to prevent people messing around with ppp on your system. You - may or may not want to do this, depending on how many people have access - to your ppp system. + Finally, you can create the file /etc/ppp/ppp.secret, which sets + some passwords to prevent people messing around with ppp on your system. + You may or may not want to do this, depending on how many people have + access to your ppp system. PPP and Dynamic IP configuration @@ -297,7 +299,8 @@ set ifaddr 0 0 Final system configuration

You now have PPP configured, but there's a few more things to do before - it's ready to work. They all involve editing the /etc/sysconfig file. + it's ready to work. They all involve editing the /etc/sysconfig + file. Working from the top down in this file, make sure the ``hostname='' line is set, e.g., @@ -356,5 +359,5 @@ inet x.x.x.x --> y.y.y.y netmask 0xffffffff # ppp -auto provider - This line could be added to your /etc/rc.local file. + This line could be added to your /etc/rc.local file.