install revision 1.3 1 1.1 chopps Installing NetBSD is a relatively complex process, but, if you have
2 1.1 chopps this document in hand and are careful to read and remember the
3 1.1 chopps information which is presented to you by the install program, it
4 1.1 chopps shouldn't be too much trouble.
5 1.1 chopps
6 1.1 chopps Before you begin, you must have already prepared your hard disk as
7 1.1 chopps detailed in the section on preparing your system for install.
8 1.1 chopps
9 1.1 chopps The following is a walk-through of the steps necessary to get NetBSD
10 1.1 chopps installed on your hard disk. If you wish to stop the installation,
11 1.1 chopps you may hit Control-C at any prompt, but if you do, you'll have to
12 1.1 chopps begin again from scratch.
13 1.1 chopps
14 1.3 chopps >>> transfer installation file system to the swap partition.
15 1.3 chopps >>> Does this go here, or in the hard disk prep section?
16 1.3 chopps
17 1.3 chopps >>> Getting loadbsd, ixemul.library, and netbsd onto AmigaDOS
18 1.3 chopps >>> partition.
19 1.3 chopps Next you need to get yourself into NetBSD by loading the
20 1.3 chopps kernel from AmigaDOS with loadbsd like so:
21 1.1 chopps
22 1.1 chopps loadbsd -b netbsd
23 1.1 chopps
24 1.1 chopps You should see the screen clear and some information about
25 1.3 chopps your system as the kernel configures the hardware. Note which
26 1.3 chopps hard disk device(s) are configured (sd0, sd1, etc). Then
27 1.3 chopps you will be prompted for a root device. At this time type
28 1.3 chopps 'sd0*'.
29 1.3 chopps >>> Need to document what device number to actually use.
30 1.1 chopps
31 1.1 chopps The system should continue to boot. For now ignore WARNING:
32 1.3 chopps messages about bad dates in clocks and swap space. Eventually
33 1.3 chopps >>> ^^^^^^^^^^???
34 1.2 chopps you will be asked to enter the pathname of the shell, just
35 1.2 chopps hit return. After a short while you should see a welcome
36 1.2 chopps message and a prompt, asking if you wish to proceed with the
37 1.2 chopps installation.
38 1.1 chopps
39 1.1 chopps If you wish to proceed, enter "y" and then return.
40 1.1 chopps
41 1.1 chopps If you have configured your hard drive[s] correctly it
42 1.1 chopps should find the drive and partition that you selected to
43 1.1 chopps use as your root.
44 1.1 chopps
45 1.1 chopps YOU ARE NOW AT THE POINT OF NO RETURN. If you confirm that
46 1.1 chopps you want to install NetBSD, your hard drive will be modified,
47 1.2 chopps and perhaps its contents scrambled at the whim of the install
48 1.1 chopps program.
49 1.1 chopps
50 1.1 chopps If you are sure you want to proceed, enter "yes" at the
51 1.1 chopps prompt.
52 1.1 chopps
53 1.1 chopps The install program will now make the root filesystem you
54 1.1 chopps specified. There should be only one error in this section
55 1.1 chopps of the installation. It will look like so:
56 1.1 chopps
57 1.1 chopps newfs: ioctl (WDINFO): Invalid argument
58 1.1 chopps newfs: /dev/rsd0a: can't rewrite disk label
59 1.1 chopps
60 1.1 chopps If there are any others, restart from the the beginning of
61 1.2 chopps the installation process. This error is ok as the Amiga
62 1.1 chopps does not write disklabels currently. You should expect
63 1.1 chopps this error whenever using newfs.
64 1.1 chopps
65 1.1 chopps Next the install program will ask you which drive and
66 1.1 chopps partition you wish to use as /usr. First it will list the
67 1.1 chopps available drives. Choose one. Next it will give you a
68 1.1 chopps list of the partitions on that disk along with their sizes,
69 1.1 chopps types, etc.. Choose the letter that corresponds to the
70 1.1 chopps partition you wish to use for /usr. If you are doing a
71 1.1 chopps full install this should be at the very least 45M-50M large.
72 1.1 chopps If everything is ok the install program will then format
73 1.1 chopps and mount your /usr. If not then it will ask again for a
74 1.1 chopps drive and partition.
75 1.1 chopps
76 1.1 chopps When this completes your root partition will be mounted on
77 1.1 chopps /mnt and your /usr partition on /mnt/usr. An fstab will
78 1.1 chopps have been created and initialized to correctly mount these
79 1.1 chopps two file systems. This fstab will be in /mnt/etc.
80 1.1 chopps
81 1.1 chopps What you do from this point on depends on which media you're
82 1.1 chopps using to install NetBSD. Follow the appropriate instructions,
83 1.1 chopps given below.
84 1.1 chopps
85 1.1 chopps To install from an AmigaDOS partition:
86 1.1 chopps
87 1.1 chopps You first need to mount the AmigaDOS partition
88 1.1 chopps using the mount_ados command. If e.g. your AmigaDOS
89 1.1 chopps partition is the first partition on sd0 you could
90 1.1 chopps type:
91 1.1 chopps
92 1.1 chopps mkdir /mnt/ados
93 1.1 chopps mount_ados /dev/sd0d /mnt/ados
94 1.1 chopps
95 1.1 chopps You can use `disklabel sd0' to find out what types
96 1.1 chopps of partitions are on the disk `sd0'.
97 1.1 chopps
98 1.1 chopps Next goto the directory in which you stored the
99 1.1 chopps distribution sets. If e.g. you stored them in the
100 1.1 chopps root directory of the partition:
101 1.1 chopps
102 1.1 chopps cd /mnt/ados
103 1.1 chopps
104 1.1 chopps When there, run "Set_tmp_dir" and choose the default
105 1.1 chopps temporary directory, by hitting return at the
106 1.1 chopps prompt.
107 1.1 chopps
108 1.1 chopps Run the "Extract" command, giving it as its sole
109 1.1 chopps argument the name of the distribution set you wish
110 1.1 chopps to extract. For example, to extract the base
111 1.1 chopps distribution, use the command:
112 1.1 chopps
113 1.3 chopps Extract base11
114 1.1 chopps
115 1.1 chopps and to extract the games distribution:
116 1.1 chopps
117 1.3 chopps Extract game11
118 1.1 chopps
119 1.2 chopps If the distribution sets are in different directories,
120 1.2 chopps you will need to cd to each directory in turn, runing
121 1.2 chopps "Set_tmp_dir" and the appropriate "Extract" command(s).
122 1.2 chopps
123 1.1 chopps Continue this process until you've finished installing
124 1.1 chopps all of the sets which you desire to have on your
125 1.1 chopps hard disk. Once you have extracted all sets and
126 1.1 chopps are at the "#" prompt again, proceed to the section
127 1.1 chopps "Configuring Your System," below.
128 1.1 chopps
129 1.1 chopps To install from tape:
130 1.1 chopps
131 1.1 chopps The first thing you should do is pick a temporary
132 1.1 chopps directory where the distribution files can be stored.
133 1.1 chopps To do this, use the command "Set_tmp_dir" and enter
134 1.1 chopps your choice. The default is /mnt/usr/distrib.
135 1.1 chopps
136 1.1 chopps After you have picked a temporary directory,
137 1.1 chopps you should issue the load command:
138 1.1 chopps
139 1.1 chopps Load_tape
140 1.1 chopps
141 1.1 chopps Next, you will be told to insert the media into
142 1.1 chopps the appropriate drive, and hit return. Continue
143 1.1 chopps to follow instructions until you are returned to
144 1.1 chopps the "#" prompt.
145 1.1 chopps
146 1.1 chopps Go to the directory which contains the first
147 1.1 chopps distribution set you wish to install. This is
148 1.1 chopps either the directory you specified above, or possibly
149 1.1 chopps a subdirectory of that directory.
150 1.1 chopps
151 1.1 chopps When there, run "Set_tmp_dir" again, and choose
152 1.1 chopps the default temporary directory, by hitting
153 1.1 chopps return at the prompt.
154 1.1 chopps
155 1.1 chopps Run the "Extract" command, giving it as its sole
156 1.1 chopps argument the name of the distribution set you
157 1.1 chopps wish to extract. For example, to extract the base
158 1.1 chopps distribution, use the command:
159 1.1 chopps
160 1.3 chopps Extract base11
161 1.1 chopps
162 1.1 chopps and to extract the games distribution:
163 1.1 chopps
164 1.3 chopps Extract game11
165 1.1 chopps
166 1.1 chopps After the extraction is complete, go to the location
167 1.1 chopps of the next set you want to extract, "Set_tmp_dir"
168 1.1 chopps again, and once again issue the appropriate
169 1.1 chopps extract command. Continue this process until
170 1.1 chopps you've finished installing all of the sets which you
171 1.1 chopps desire to have on your hard disk.
172 1.1 chopps
173 1.1 chopps After each set is finished, if you know that you
174 1.1 chopps are running low on space you can remove the
175 1.1 chopps distribution files for that set by saying:
176 1.1 chopps
177 1.1 chopps rm set_name.??
178 1.1 chopps
179 1.1 chopps For example, if you wish to remove the distribution
180 1.1 chopps files for the game09 set, after the "Extract game09"
181 1.1 chopps command has completed, issue the command:
182 1.1 chopps
183 1.3 chopps rm game11.??
184 1.1 chopps
185 1.1 chopps Once you have extracted all sets and are at the "#" prompt
186 1.1 chopps again, proceed to the section "Configuring Your System,"
187 1.1 chopps below.
188 1.1 chopps
189 1.1 chopps To install via FTP or NFS:
190 1.1 chopps
191 1.1 chopps First, use Set_tmp_dir to pick a temporary directory
192 1.1 chopps for the installation files. /mnt/usr/distrib is
193 1.1 chopps suggested.
194 1.1 chopps
195 1.3 chopps >>> Document using ppp or slip?
196 1.1 chopps Configure the appropriate ethernet interface i.e. le0
197 1.1 chopps if you have a 2065 or ed0 if you have a AMIGNET from
198 1.1 chopps Hydra Systems.
199 1.1 chopps
200 1.1 chopps ifconfig <ifname> <ipaddr> [netmask <netmask>]
201 1.1 chopps
202 1.1 chopps where <ifname> is the interface name (e.g. ed0, etc.),
203 1.1 chopps and <ipaddr> is the numeric IP address of the interface.
204 1.1 chopps If the interface has a special netmask, supply
205 1.1 chopps the word "netmask" and that netmask at the end of the
206 1.1 chopps command line. For instance, without a special netmask:
207 1.1 chopps
208 1.1 chopps ifconfig ed0 129.133.10.10
209 1.1 chopps
210 1.1 chopps or with a special netmask
211 1.1 chopps
212 1.1 chopps ifconfig ed0 128.32.240.167 netmask 0xffffff00
213 1.1 chopps
214 1.1 chopps If the NFS server or FTP server is not on a directly-
215 1.1 chopps connected network, you should set up a route to it
216 1.1 chopps with the command:
217 1.1 chopps
218 1.1 chopps route add default <gate_ipaddr>
219 1.1 chopps
220 1.1 chopps where <gate_ipaddr> is your gateway's numeric IP address.
221 1.1 chopps
222 1.1 chopps If you are NFS-mounting the distribution sets,
223 1.1 chopps mount them on the temporary directory with the command:
224 1.1 chopps
225 1.1 chopps mount -t nfs <serv_ipaddr>:<dist_dir> <tmp_dir>
226 1.1 chopps
227 1.1 chopps where <serv_ipaddr> is the server's numeric IP address,
228 1.1 chopps <dist_dir> is the path to the distribution files on
229 1.1 chopps the server, and <tmp_dir> is the name of the local
230 1.1 chopps temporary directory.
231 1.1 chopps
232 1.1 chopps Once this is done, proceed as if you had loaded the
233 1.1 chopps files from tape, "cd"ing to the appropriate directories
234 1.1 chopps and running "Set_tmp_dir" and "Extract" as appropriate.
235 1.1 chopps
236 1.1 chopps If you are retrieving the distribution sets using ftp,
237 1.1 chopps cd into the temp directory, and execute the command:
238 1.1 chopps
239 1.1 chopps ftp <serv_ipaddr>
240 1.1 chopps
241 1.1 chopps where <serv_ipaddr> is once again the server's
242 1.1 chopps numeric IP address. Get the files with FTP,
243 1.1 chopps taking care to use binary mode to transfer
244 1.1 chopps all files.
245 1.1 chopps
246 1.1 chopps Once you have all of the files for the distribution sets
247 1.1 chopps you wish to install, you can proceed using the instructions
248 1.1 chopps above as if you had installed the files from a tape.
249 1.1 chopps
250 1.1 chopps
251 1.1 chopps Configuring Your System:
252 1.1 chopps ----------- ---- ------
253 1.1 chopps
254 1.1 chopps Once you have finished extracting all of the distribution sets that
255 1.1 chopps you want on your hard drive and are back at the "#" prompt,
256 1.1 chopps you are ready to configure your system.
257 1.1 chopps
258 1.1 chopps The configuration utility expects that you have installed the base
259 1.1 chopps system. If you have not, you will not be able to run it successfully
260 1.1 chopps (nor will you have a functional system regardless of configuration).
261 1.1 chopps
262 1.1 chopps To configure the newly installed operating system, run the
263 1.1 chopps command "Configure".
264 1.1 chopps
265 1.1 chopps Configure will ask for the machine's hostname, domain name, and other
266 1.1 chopps network configuration information.
267 1.1 chopps
268 1.2 chopps Once you have supplied `Configure' all that it requests, your machine
269 1.1 chopps will be configured well enough that when you reboot it it will
270 1.1 chopps almost be a completely functional NetBSD system. Note you should
271 1.1 chopps ignore the errors from `chown' they will be corrected shortly.
272 1.1 chopps
273 1.1 chopps Once you are done with `Configure', halt the system with the "halt"
274 1.2 chopps command (wait for "halted" to be displayed) and reboot. Then again
275 1.2 chopps boot NetBSD this time with the command:
276 1.2 chopps
277 1.1 chopps
278 1.1 chopps loadbsd netbsd
279 1.1 chopps
280 1.1 chopps You need to do your final tweeks now. First mount your file systems
281 1.1 chopps like so:
282 1.1 chopps
283 1.1 chopps mount -av
284 1.1 chopps
285 1.1 chopps Next you need to re-make your devices to get the ownership correct:
286 1.1 chopps
287 1.1 chopps cd /dev
288 1.1 chopps MAKEDEV all
289 1.3 chopps >>> Is this step still needed? - check on it!
290 1.1 chopps
291 1.1 chopps Your system is now complete but not completely configured; you
292 1.1 chopps should adjust the /etc/sendmail.cf file as necessary to suit your
293 1.1 chopps site and/or disable sendmail and other network related programs.
294 1.1 chopps These things can be found in /etc/netstart. Use vi, if you installed
295 1.1 chopps the man pages you can type `man vi' or `man ed' for instructions
296 1.1 chopps on how to use these somewhat non-intuitive editors.
297 1.1 chopps
298 1.1 chopps Once you are done with the rest of configuration unmount your file
299 1.1 chopps systems and halt your system, then reboot:
300 1.1 chopps
301 1.1 chopps cd /
302 1.1 chopps umount -av
303 1.1 chopps halt
304 1.1 chopps <reboot>
305 1.1 chopps
306 1.1 chopps Finally you can now boot your system and it will be completely
307 1.1 chopps functional:
308 1.1 chopps
309 1.1 chopps loadbsd -a netbsd
310 1.1 chopps
311 1.1 chopps When it boots off of the hard drive, you will have a complete
312 1.1 chopps NetBSD system! CONGRATULATIONS! (You really deserve them!!!)
313 1.3 chopps
314 1.3 chopps >>> Missing the step to transfer the netbsd kernel to /
315