install revision 1.5.2.2 1 1.5.2.2 cgd Installing NetBSD is a relatively complex process, but if you have
2 1.5.2.2 cgd this document in hand and are careful to read and remember the
3 1.5.2.2 cgd information which is presented to you by the install program, it
4 1.5.2.2 cgd shouldn't be too much trouble.
5 1.5.2.2 cgd
6 1.5.2.2 cgd Before you begin, you should know the geometry of your hard disk, i.e.
7 1.5.2.2 cgd the sector size (note that sector sizes other than 512 bytes are not
8 1.5.2.2 cgd currently supported), the number of sectors per track, the number of
9 1.5.2.2 cgd tracks per cylinder (also known as the number of heads), and the
10 1.5.2.2 cgd number of cylinders on the disk. The NetBSD kernel will try to
11 1.5.2.2 cgd discover these parameters on its own, and if it can it will print them
12 1.5.2.2 cgd at boot time. If possible, you should use the parameters it prints.
13 1.5.2.2 cgd (You might not be able to because you're sharing your disk with
14 1.5.2.2 cgd another operating system, or because your disk is old enough that the
15 1.5.2.2 cgd kernel can't figure out its geometry.)
16 1.5.2.2 cgd
17 1.5.2.2 cgd If NetBSD will be sharing the disk with DOS or another operating
18 1.5.2.2 cgd system, you should have already completed the section of these notes
19 1.5.2.2 cgd that instructed you on how to prepare your hard disk. You should know
20 1.5.2.2 cgd the size of the NetBSD area of the disk and its offset from the
21 1.5.2.2 cgd beginning of the disk. You will need this information when setting up
22 1.5.2.2 cgd your NetBSD partitions.
23 1.5.2.2 cgd
24 1.5.2.2 cgd You should now be ready to install NetBSD. It might be handy for you
25 1.5.2.2 cgd to have a pencil, some paper, and a calculator handy.
26 1.5.2.2 cgd
27 1.5.2.2 cgd The following is a walk-through of the steps you will take while
28 1.5.2.2 cgd getting NetBSD installed on your hard disk. If any question has a
29 1.5.2.2 cgd default answer, it will be displayed in brackets ("[]") after the
30 1.5.2.2 cgd question. If you wish to stop the installation, you may hit Control-C
31 1.5.2.2 cgd at any time, but if you do, you'll have to begin the installation
32 1.5.2.2 cgd process again from scratch.
33 1.5.2.2 cgd
34 1.5.2.2 cgd Boot your machine using of the appropriate kernel-copy floppy.
35 1.5.2.2 cgd When presented with the boot prompt (the prompt begins with
36 1.5.2.2 cgd "Boot" and ends with ":-"), hit return. If the boot prompt
37 1.5.2.2 cgd does not appear in a reasonable amount of time, you either
38 1.5.2.2 cgd have a bad boot floppy or a hardware problem. Try writing the
39 1.5.2.2 cgd kernel-copy floppy image to a different disk, and using that.
40 1.5.2.2 cgd If that doesn't work, try booting after disabling your CPU's
41 1.5.2.2 cgd internal and external caches (if any). If it still doesn't
42 1.5.2.2 cgd work, NetBSD probably can't be run on your hardware. This can
43 1.5.2.2 cgd probably be considered a bug, so you might want to report it.
44 1.5.2.2 cgd If you do, please include as many details about your system
45 1.5.2.2 cgd configuration as you can.
46 1.5.2.2 cgd
47 1.5.2.2 cgd It will take a while to load the kernel from the floppy,
48 1.5.2.2 cgd probably around a minute or so. After its loaded, you will be
49 1.5.2.2 cgd presented with the message:
50 1.5.2.2 cgd "Insert file system floppy"
51 1.5.2.2 cgd If you do not see that message after a reasonable time has
52 1.5.2.2 cgd elapsed, or the spinning cursor has stopped and nothing
53 1.5.2.2 cgd further has happened, either your boot floppy is bad or you
54 1.5.2.2 cgd are having hardware problems, and should proceed as outlined
55 1.5.2.2 cgd above.
56 1.5.2.2 cgd
57 1.5.2.2 cgd Once you have reached that prompt, remove the kernel-copy
58 1.5.2.2 cgd floppy from the floppy drive. Make sure that the installation
59 1.5.2.2 cgd disk (the "inst-10" floppy) is writable, insert it into the
60 1.5.2.2 cgd floppy drive, and hit any key.
61 1.5.2.2 cgd
62 1.5.2.2 cgd You will then be presented with the NetBSD kernel boot
63 1.5.2.2 cgd messages. You will want to read them, to determine your
64 1.5.2.2 cgd disk's name and geometry. Its name will be something like
65 1.5.2.2 cgd "sd0" or "wd0" and the geometry will be printed on a line that
66 1.5.2.2 cgd begins with its name. As mentioned above, you will need your
67 1.5.2.2 cgd disk's geometry when creating NetBSD's partitions. You will
68 1.5.2.2 cgd also need to know the name, to tell the install tools what
69 1.5.2.2 cgd disk to install on.
70 1.5.2.2 cgd
71 1.5.2.2 cgd While booting, you will probably see several warnings. You
72 1.5.2.2 cgd should be warned that no swap space is present, and that
73 1.5.2.2 cgd init(8) cannot find /etc/rc. Do not be alarmed, these are
74 1.5.2.2 cgd completely normal. When you reach the prompt asking you for a
75 1.5.2.2 cgd shell name, just hit return.
76 1.5.2.2 cgd
77 1.5.2.2 cgd You will be presented with a welcome message and a prompt,
78 1.5.2.2 cgd asking if you wish to proceed with the installation process.
79 1.5.2.2 cgd If you wish to proceed, enter "y" and hit return.
80 1.5.2.2 cgd
81 1.5.2.2 cgd You will be asked what type of disk driver you have. The
82 1.5.2.2 cgd valid options are listed by the install program, to make sure
83 1.5.2.2 cgd you get it right. If you're installing on an ST-506 or ESDI
84 1.5.2.2 cgd drive, you'll be asked if your disk supports automatic sector
85 1.5.2.2 cgd forwarding. If you are SURE that it does, reply
86 1.5.2.2 cgd affirmatively. Otherwise, the install program will
87 1.5.2.2 cgd automatically reserve space for bad144 tables.
88 1.5.2.2 cgd
89 1.5.2.2 cgd The install program will then tell you which disks of that
90 1.5.2.2 cgd type it can install on, and ask you which it should use.
91 1.5.2.2 cgd Reply with the name of your disk. (The first disk of the type
92 1.5.2.2 cgd you selected, either "wd0" for ST-506/ESDI/IDE disks, or "sd0"
93 1.5.2.2 cgd for SCSI disks, is the default.)
94 1.5.2.2 cgd
95 1.5.2.2 cgd You will then be asked to name your disk's disklabel. The
96 1.5.2.2 cgd default response is "mywd" or "mysd" depending on the type of
97 1.5.2.2 cgd your disk, and for most purposes it will be OK. If you choose
98 1.5.2.2 cgd to name it something different, make sure the name is a single
99 1.5.2.2 cgd word and contains no special characters. You don't need to
100 1.5.2.2 cgd remember this name.
101 1.5.2.2 cgd
102 1.5.2.2 cgd You will be prompted for your disk's geometry information,
103 1.5.2.2 cgd i.e. the number of bytes per sector, cylinders on the disk,
104 1.5.2.2 cgd tracks per cylinder (heads), and sectors per track. Enter
105 1.5.2.2 cgd them when they are requested. If you make a mistake, hit
106 1.5.2.2 cgd Control-C and when you get to the shell prompt, restart the
107 1.5.2.2 cgd install process by running the "install" command. Once you
108 1.5.2.2 cgd have entered this data, the install program will tell you the
109 1.5.2.2 cgd total size of your disk, in both sectors, and cylinders.
110 1.5.2.2 cgd Remember this number; if you're installing on the whole disk,
111 1.5.2.2 cgd you'll need it again soon.
112 1.5.2.2 cgd
113 1.5.2.2 cgd When describing your partitions, you will have the option of
114 1.5.2.2 cgd entering data about them in units of disk sectors or
115 1.5.2.2 cgd cylinders. If you choose to enter the information in units of
116 1.5.2.2 cgd sectors, remember that, for optimal performance, partitions
117 1.5.2.2 cgd should begin and end on cylinder boundaries. You will be
118 1.5.2.2 cgd asked about which units you wish to use, and you should reply
119 1.5.2.2 cgd with "c" for cylinders, or "s" for sectors.
120 1.5.2.2 cgd
121 1.5.2.2 cgd You will be asked for the size of the NetBSD portion of the
122 1.5.2.2 cgd disk. If you're installing on the whole disk, reply with the
123 1.5.2.2 cgd size of the disk, as printed earlier by the install program.
124 1.5.2.2 cgd If you're using only part of the disk, reply with the size
125 1.5.2.2 cgd that you specified in the partition editor. (Don't forget to
126 1.5.2.2 cgd enter the size in the units you specified in the last step!)
127 1.5.2.2 cgd
128 1.5.2.2 cgd If you are not installing on the whole disk, you will be asked
129 1.5.2.2 cgd fro the offset of the NetBSD partition from the beginning of
130 1.5.2.2 cgd the disk. Reply with the appropriate offset (again, in
131 1.5.2.2 cgd whichever units you specified), as determined by how you
132 1.5.2.2 cgd set up your disk using the partition editor.
133 1.5.2.2 cgd
134 1.5.2.2 cgd You will be asked to enter the size of your NetBSD root
135 1.5.2.2 cgd partition. It should be at least 13M, but if you are going to
136 1.5.2.2 cgd be doing development, 14-16M is a more desirable size. This
137 1.5.2.2 cgd size should be expressed in units of sectors or cylinders,
138 1.5.2.2 cgd depending on which you said you wanted to use.
139 1.5.2.2 cgd
140 1.5.2.2 cgd Next, you will be asked for the size of your swap partition.
141 1.5.2.2 cgd You should probably allocate twice as much swap space as you
142 1.5.2.2 cgd have real memory. Systems that will be heavily used should
143 1.5.2.2 cgd have more swap space allocated, and systems that will be
144 1.5.2.2 cgd lightly used can get by with less. If you want the system to
145 1.5.2.2 cgd be able to save crash dumps when it panics, you will need at
146 1.5.2.2 cgd least as much swap space as you have RAM. Again, this number
147 1.5.2.2 cgd should be expressed in units of sectors or cylinders, as
148 1.5.2.2 cgd appropriate.
149 1.5.2.2 cgd
150 1.5.2.2 cgd The install program will then ask you for information about
151 1.5.2.2 cgd the rest of the partitions you want on your disk. For most
152 1.5.2.2 cgd purposes, you will want only one more partition, "/usr".
153 1.5.2.2 cgd (Machines used as servers will probably also want /var as a
154 1.5.2.2 cgd separate partition. That can be done with these installation
155 1.5.2.2 cgd tools, but is not covered here.) The install program will
156 1.5.2.2 cgd tell you how much space there is left to be allocated in the
157 1.5.2.2 cgd NetBSD area of the disk, and, if you only want one more
158 1.5.2.2 cgd partition ("/usr"), you should enter it at the prompt when the
159 1.5.2.2 cgd installer asks you how large the next partition should be.
160 1.5.2.2 cgd It will then ask you for the name of the mount point for that
161 1.5.2.2 cgd partition. If you're doing a basic installation, that is
162 1.5.2.2 cgd "/usr".
163 1.5.2.2 cgd
164 1.5.2.2 cgd YOU ARE NOW AT THE POINT OF NO RETURN. Nothing has been
165 1.5.2.2 cgd written to your disk yet, but if you confirm that you want to
166 1.5.2.2 cgd install NetBSD, your hard drive will be modified, and its
167 1.5.2.2 cgd contents may be scrambled at the whim of the install program.
168 1.5.2.2 cgd This is especially likely if you have given the install
169 1.5.2.2 cgd program incorrect information. If you are sure you want to
170 1.5.2.2 cgd proceed, enter "yes" at the prompt.
171 1.5.2.2 cgd
172 1.5.2.2 cgd The install program will now label your disk and make the file
173 1.5.2.2 cgd systems you specified. The filesystems will be initialized to
174 1.5.2.2 cgd contain NetBSD bootstrapping binaries and configuration files.
175 1.5.2.2 cgd It will also create an /etc/fstab for your system, and mount
176 1.5.2.2 cgd all of the file systems under /mnt. (In other words, your root
177 1.5.2.2 cgd partition will be mounted on /mnt, your /usr partition on
178 1.5.2.2 cgd /mnt/usr, and so on.) There should be no errors in this
179 1.5.2.2 cgd section of the installation. If there are, restart from the
180 1.5.2.2 cgd beginning of the installation process.
181 1.5.2.2 cgd
182 1.5.2.2 cgd You will be placed at a shell prompt ("#"). The remaining
183 1.5.2.2 cgd tasks are to copy the kernel from the kernel copy floppy to
184 1.5.2.2 cgd the hard drive's root filesystem and install the distribution
185 1.5.2.2 cgd sets. The flow of installation differs depending on your
186 1.5.2.2 cgd hardware resources, and on what media the distribution sets
187 1.5.2.2 cgd reside.
188 1.5.2.2 cgd
189 1.5.2.2 cgd To install from floppy:
190 1.5.2.2 cgd If you only have only one floppy drive, the order of
191 1.5.2.2 cgd installation is different. Follow the directions in
192 1.5.2.2 cgd the "Kernel installation" section which will help you
193 1.5.2.2 cgd install a kernel on the hard drive and then boot off
194 1.5.2.2 cgd the hard drive, then continue with the rest of the
195 1.5.2.2 cgd process described here to install the distribution
196 1.5.2.2 cgd sets from floppy:
197 1.5.2.2 cgd
198 1.5.2.2 cgd The first thing you should do is pick a temporary
199 1.5.2.2 cgd directory where the distribution files can be stored.
200 1.5.2.2 cgd To do this, enter the command "Set_tmp_dir", and enter
201 1.5.2.2 cgd the name of the temporary directory. (Don't forget
202 1.5.2.2 cgd that if your disk is still mounted under /mnt; you
203 1.5.2.2 cgd should probably pick a directory under /mnt/usr.)
204 1.5.2.2 cgd
205 1.5.2.2 cgd After you have picked a temporary directory, enter the
206 1.5.2.2 cgd "Load_fd" command, to load the distribution sets from
207 1.5.2.2 cgd your floppies.
208 1.5.2.2 cgd
209 1.5.2.2 cgd You will be asked which floppy drive to use. Enter
210 1.5.2.2 cgd "0" (zero) if you're using the first floppy drive
211 1.5.2.2 cgd (i.e. what DOS would call "A:"), or enter "1" if
212 1.5.2.2 cgd you're using the second. (Remember that you CANNOT
213 1.5.2.2 cgd use the floppy drive that you booted from. If you
214 1.5.2.2 cgd booted from "A:", you must load from "B:".)
215 1.5.2.2 cgd
216 1.5.2.2 cgd You will be prompted to insert a floppy into the drive,
217 1.5.2.2 cgd to have its contents copied to your hard disk. Do so,
218 1.5.2.2 cgd and hit return to begin copying. When that is done,
219 1.5.2.2 cgd read the remainder of the floppies that contain the
220 1.5.2.2 cgd distribution sets that you want to install, one by
221 1.5.2.2 cgd one. When the last is read, and you are being
222 1.5.2.2 cgd prompted for another, hit Control-C.
223 1.5.2.2 cgd
224 1.5.2.2 cgd Run the "Extract" command once for each distribution
225 1.5.2.2 cgd set you wish to install. For instance, if you wish to
226 1.5.2.2 cgd install the "base10" distribution set, followed by the
227 1.5.2.2 cgd "man10" distribution set, and finally the "etc10"
228 1.5.2.2 cgd distribution set, use the commands:
229 1.5.2.2 cgd Extract base10
230 1.5.2.2 cgd Extract man10
231 1.5.2.2 cgd Extract etc10
232 1.5.2.2 cgd
233 1.5.2.2 cgd For each extraction, it will ask you if the extraction
234 1.5.2.2 cgd should be verbose. If you reply affirmatively, it
235 1.5.2.2 cgd will print out the name of each file that's being
236 1.5.2.2 cgd extracted.
237 1.5.2.2 cgd
238 1.5.2.2 cgd (Note: if you know that you will be running low on
239 1.5.2.2 cgd disk space when installing NetBSD, you can load and
240 1.5.2.2 cgd extract one distribution set at a time. To do this,
241 1.5.2.2 cgd load only the floppies which contain the files for the
242 1.5.2.2 cgd first distribution set, extract them, and then change
243 1.5.2.2 cgd to the temporary directory and remove them with the
244 1.5.2.2 cgd command "rm set_name.??".)
245 1.5.2.2 cgd
246 1.5.2.2 cgd Once you are finished extracting all of the sets that
247 1.5.2.2 cgd you wish to install, you should proceed to the
248 1.5.2.2 cgd instructions below (after the last install medium
249 1.5.2.2 cgd type-specific instructions), that explain how you
250 1.5.2.2 cgd should configure your system.
251 1.5.2.2 cgd
252 1.5.2.2 cgd To install from tape:
253 1.5.2.2 cgd The first thing you should do is pick a temporary
254 1.5.2.2 cgd directory where the distribution files can be stored.
255 1.5.2.2 cgd To do this, enter the command "Set_tmp_dir", and enter
256 1.5.2.2 cgd the name of the temporary directory. (Don't forget
257 1.5.2.2 cgd that your disk is mounted under /mnt; you should
258 1.5.2.2 cgd probably pick a directory under /mnt/usr.) The
259 1.5.2.2 cgd default is /mnt/usr/distrib.
260 1.5.2.2 cgd
261 1.5.2.2 cgd After you have picked a temporary directory, enter the
262 1.5.2.2 cgd "Load_tape" command, to load the distribution sets from
263 1.5.2.2 cgd tape.
264 1.5.2.2 cgd
265 1.5.2.2 cgd You will be asked which tape drive to use. The
266 1.5.2.2 cgd default is "rst0", which is correct if you're using
267 1.5.2.2 cgd the SCSI tape drive with the lowest SCSI ID number.
268 1.5.2.2 cgd (For the SCSI tape drive with the next lowest SCSI ID
269 1.5.2.2 cgd number, you should use "rst1", and so on.)
270 1.5.2.2 cgd
271 1.5.2.2 cgd You will be prompted to hit return when you have
272 1.5.2.2 cgd inserted the tape into the tape drive. When you do,
273 1.5.2.2 cgd the contents of the tape will be extracted into the
274 1.5.2.2 cgd temporary directory, and the names of the files being
275 1.5.2.2 cgd extracted will be printed.
276 1.5.2.2 cgd
277 1.5.2.2 cgd After the tape has been extracted, to go the directory
278 1.5.2.2 cgd containing the first distribution set you wish to
279 1.5.2.2 cgd install. (Depending on how you made the tape, it's
280 1.5.2.2 cgd probably a subdirectory of the temporary directory you
281 1.5.2.2 cgd specified above.) Once there, run the "Set_tmp_dir"
282 1.5.2.2 cgd command again, and accept its default answer by
283 1.5.2.2 cgd hitting return at the prompt.
284 1.5.2.2 cgd
285 1.5.2.2 cgd Use the "Extract" command to extract the distribution
286 1.5.2.2 cgd set. For instance, if you're extracting the "base10"
287 1.5.2.2 cgd set, use the command:
288 1.5.2.2 cgd Extract base10
289 1.5.2.2 cgd You will be asked if you wish the extraction to be
290 1.5.2.2 cgd verbose. If you reply affirmatively, the name of each
291 1.5.2.2 cgd file being extracted will be printed.
292 1.5.2.2 cgd
293 1.5.2.2 cgd Repeat the previous two steps for each distribution
294 1.5.2.2 cgd set you wish to install. Change to the set's
295 1.5.2.2 cgd directory, run "Set_tmp_dir", and then run
296 1.5.2.2 cgd "Extract <set_name>" to extract the set.
297 1.5.2.2 cgd
298 1.5.2.2 cgd Once you are finished extracting all of the sets that
299 1.5.2.2 cgd you wish to install, you should proceed to the
300 1.5.2.2 cgd instructions below (after the last install medium
301 1.5.2.2 cgd type-specific instructions), that explain how you
302 1.5.2.2 cgd should configure your system.
303 1.5.2.2 cgd
304 1.5.2.2 cgd To install via FTP or NFS:
305 1.5.2.2 cgd The first thing you should do is pick a temporary
306 1.5.2.2 cgd directory where the distribution files can be stored.
307 1.5.2.2 cgd To do this, enter the command "Set_tmp_dir", and enter
308 1.5.2.2 cgd the name of the temporary directory. (Don't forget
309 1.5.2.2 cgd that your disk is mounted under /mnt; you should
310 1.5.2.2 cgd probably pick a directory under /mnt/usr.) The
311 1.5.2.2 cgd default is /mnt/usr/distrib.
312 1.5.2.2 cgd
313 1.5.2.2 cgd Configure the appropriate ethernet interface (e.g.
314 1.5.2.2 cgd ed0, ep0, etc.) up, with a command like:
315 1.5.2.2 cgd
316 1.5.2.2 cgd ifconfig <ifname> <ipaddr> [netmask <netmask>]
317 1.5.2.2 cgd
318 1.5.2.2 cgd where "<ifname>" is the interface name, like those
319 1.5.2.2 cgd listed above, and "<ipaddr>" is the numeric IP address
320 1.5.2.2 cgd of the interface. If the interface has a special
321 1.5.2.2 cgd netmask, supply the word "netmask" at and that netmask
322 1.5.2.2 cgd at the end of the command line. (The brackets
323 1.5.2.2 cgd indicate that those arguments are optional.) For
324 1.5.2.2 cgd instance, to configure interface ed0 with IP address
325 1.5.2.2 cgd 129.133.10.10, use the command:
326 1.5.2.2 cgd
327 1.5.2.2 cgd ifconfig ed0 129.133.10.10
328 1.5.2.2 cgd
329 1.5.2.2 cgd and to configure interface ep0 with IP address
330 1.5.2.2 cgd 128.32.240.167 and a special netmask, 0xffffff00, use
331 1.5.2.2 cgd the command:
332 1.5.2.2 cgd
333 1.5.2.2 cgd ifconfig ep0 128.32.240.167 netmask 0xffffff00
334 1.5.2.2 cgd
335 1.5.2.2 cgd If your board selects software selection of the
336 1.5.2.2 cgd ethernet interface to use, you might have to add
337 1.5.2.2 cgd special flags to the "ifconfig" command you use.
338 1.5.2.2 cgd Consult the table below for the appropriate flags:
339 1.5.2.2 cgd
340 1.5.2.2 cgd Interface Type Connector Flags
341 1.5.2.2 cgd --------- ---- --------- -----
342 1.5.2.2 cgd ed with WD/SMC* BNC [none necessary]
343 1.5.2.2 cgd ed with WD/SMC* UTP [none necessary]
344 1.5.2.2 cgd ed with WD/SMC* AUI link0
345 1.5.2.2 cgd ed with 3c503 BNC [none necessary]
346 1.5.2.2 cgd ed with 3c503 AUI link0
347 1.5.2.2 cgd ep BNC [none necessary]
348 1.5.2.2 cgd ep AUI link0
349 1.5.2.2 cgd ep UTP link0 link1
350 1.5.2.2 cgd
351 1.5.2.2 cgd * Older WD boards do not support software configuration,
352 1.5.2.2 cgd and must be configured via jumpers. These flags
353 1.5.2.2 cgd will have no effect on them.
354 1.5.2.2 cgd
355 1.5.2.2 cgd In other words, if, in the last example, the AUI port
356 1.5.2.2 cgd of the board were being used, you would use the
357 1.5.2.2 cgd command:
358 1.5.2.2 cgd
359 1.5.2.2 cgd ifconfig ep0 128.32.240.167 netmask 0xffffff00 link0
360 1.5.2.2 cgd
361 1.5.2.2 cgd If the NFS server or FTP server is not on a directly-
362 1.5.2.2 cgd connected network, you need to set up a route to it
363 1.5.2.2 cgd using a command like:
364 1.5.2.2 cgd
365 1.5.2.2 cgd route add default <gate_ipaddr>
366 1.5.2.2 cgd
367 1.5.2.2 cgd where <gate_ipaddr> is your gateway's numeric IP
368 1.5.2.2 cgd address.
369 1.5.2.2 cgd
370 1.5.2.2 cgd If you are NFS-mounting the distribution sets, mount
371 1.5.2.2 cgd them on the temporary directory with a command like:
372 1.5.2.2 cgd
373 1.5.2.2 cgd mount -t nfs <serv_ipaddr>:<dist_dir> <tmp_dir>
374 1.5.2.2 cgd
375 1.5.2.2 cgd where <serv_ipaddr> is the server's numeric IP address,
376 1.5.2.2 cgd <dist_dir> is the path to the distribution files on
377 1.5.2.2 cgd the server, and <tmp_dir> is the name of the local
378 1.5.2.2 cgd temporary directory.
379 1.5.2.2 cgd
380 1.5.2.2 cgd Once this is done, proceed as if you had loaded the
381 1.5.2.2 cgd files from tape, changing to the appropriate
382 1.5.2.2 cgd directories, running "Set_tmp_dir", and running
383 1.5.2.2 cgd "Extract" as appropriate.
384 1.5.2.2 cgd
385 1.5.2.2 cgd If you are retrieving the distribution sets using ftp,
386 1.5.2.2 cgd change into the temporary directory, and execute the
387 1.5.2.2 cgd command:
388 1.5.2.2 cgd
389 1.5.2.2 cgd ftp <serv_ipaddr>
390 1.5.2.2 cgd
391 1.5.2.2 cgd where <serv_ipaddr> is once again the server's numeric
392 1.5.2.2 cgd IP address. Get the files with FTP, taking care to
393 1.5.2.2 cgd use binary mode when transferring the files.
394 1.5.2.2 cgd
395 1.5.2.2 cgd Once you have all of the files for the distribution
396 1.5.2.2 cgd sets that you wish to install, you can proceed using
397 1.5.2.2 cgd the instructions above, as if you had installed from a
398 1.5.2.2 cgd floppy. (Note that as with the floppy install, if
399 1.5.2.2 cgd you're short on disk space, you can transfer only one
400 1.5.2.2 cgd set at a time, extract it, then delete it, to save
401 1.5.2.2 cgd space.)
402 1.5.2.2 cgd
403 1.5.2.2 cgd Once you have finished extracting all of the distribution sets
404 1.5.2.2 cgd that you wish to install, and are back at the "#" prompt, you
405 1.5.2.2 cgd are ready to configure your system. The configuration utility
406 1.5.2.2 cgd expects that you have installed the "base10" and "etc10"
407 1.5.2.2 cgd distribution sets. If you have not, you will not be able to
408 1.5.2.2 cgd run it successfully (nor will you have a functional system, in
409 1.5.2.2 cgd any case). To configure your newly-installed NetBSD system,
410 1.5.2.2 cgd run the command "Configure". It will ask you for the system's
411 1.5.2.2 cgd host name, domain name, and other network configuration
412 1.5.2.2 cgd information. It will set up your configuration files and make
413 1.5.2.2 cgd the device nodes for the newly-installed system.
414 1.5.2.2 cgd
415 1.5.2.2 cgd Kernel Installation:
416 1.5.2.2 cgd
417 1.5.2.2 cgd Enter "halt" at the prompt to halt the system. When the
418 1.5.2.2 cgd system is halted, remove the "inst-10" floppy from the floppy
419 1.5.2.2 cgd drive, and replace it with the NetBSD 1.0 kernel-copy floppy
420 1.5.2.2 cgd that you previously booted from. Reboot with that floppy.
421 1.5.2.2 cgd with that floppy.
422 1.5.2.2 cgd
423 1.5.2.2 cgd Once again, you will be prompted to insert a file system
424 1.5.2.2 cgd floppy. DO NOT replace the kernel-copy floppy, just hit any
425 1.5.2.2 cgd key.
426 1.5.2.2 cgd
427 1.5.2.2 cgd Again, While booting, you may see several warnings. You may
428 1.5.2.2 cgd be warned that no swap space is present, that init(8) cannot
429 1.5.2.2 cgd find /etc/rc, and that one or more databases with names like
430 1.5.2.2 cgd "pwd.db" cannot be found. Do not be alarmed, as, again, these
431 1.5.2.2 cgd are completely normal. Hit return at the prompt asking you
432 1.5.2.2 cgd for a shell name.
433 1.5.2.2 cgd
434 1.5.2.2 cgd You will be presented with a shell prompt, at which you should
435 1.5.2.2 cgd enter the "copy_kernel" command. It will ask you what
436 1.5.2.2 cgd partition to copy the kernel to, and you should reply with the
437 1.5.2.2 cgd name of your root partition (e.g. sd0a or wd0a).
438 1.5.2.2 cgd
439 1.5.2.2 cgd You will be asked if you are sure that you want to copy the
440 1.5.2.2 cgd kernel. Reply affirmatively, and it will check the file
441 1.5.2.2 cgd system on your root partition, mount it, and copy the kernel.
442 1.5.2.2 cgd Once the kernel is copied, you should use "halt" to halt the
443 1.5.2.2 cgd system.
444 1.5.2.2 cgd
445 1.5.2.2 cgd Once the system is halted, remove the kernel-copy floppy from
446 1.5.2.2 cgd the floppy disk drive, and hit any key to reboot.
447 1.5.2.2 cgd
448 1.5.2.2 cgd Congratulations, you have successfully installed NetBSD 1.0. When you
449 1.5.2.2 cgd reboot into NetBSD, you should log in as "root" at the login prompt.
450 1.5.2.2 cgd There is no initial password, but if you're using the machine in a
451 1.5.2.2 cgd networked environment, you should create yourself an account and
452 1.5.2.2 cgd protect it and the "root" account with good passwords.
453 1.5.2.2 cgd
454 1.5.2.2 cgd Some of the files in the NetBSD 1.0 distribution might need to be
455 1.5.2.2 cgd tailored for your site. In particular, the /etc/sendmail.cf file will
456 1.5.2.2 cgd almost definitely need to be adjusted, and other files in /etc will
457 1.5.2.2 cgd probably need to be modified, as well. If you are unfamiliar with
458 1.5.2.2 cgd UN*X-like system administration, it's recommended that you buy a book
459 1.5.2.2 cgd that discusses it.
460