Commit | Line | Data |
---|---|---|
9be3e9fc | 1 | |
097d4e7a GW |
2 | FreeBSD |
3 | Frequently Asked Questions | |
4 | For Version 1.1 and above | |
5 | Please mail all suggestions and additions to <FreeBSD-FAQ@freefall.cdrom.com> | |
9be3e9fc GCI |
6 | |
7 | ||
6fa35152 | 8 | Revision: $Id: FreeBSD.FAQ,v 1.16 1994/04/21 22:25:10 wollman Exp $ |
9be3e9fc GCI |
9 | |
10 | ||
11 | Table of Contents | |
12 | ----------------- | |
13 | ||
58b988d7 GW |
14 | 0 Preface |
15 | 1 Installation | |
16 | 2 Hardware Compatibility | |
17 | 3 Commercial applications | |
18 | 4 User Applications | |
097d4e7a | 19 | 5 Miscellaneous Questions |
58b988d7 | 20 | 6 Kernel Configuration |
097d4e7a | 21 | 7 System Administration |
58b988d7 GW |
22 | 8 Networking |
23 | 9 Serial Communications | |
9be3e9fc GCI |
24 | |
25 | ||
097d4e7a | 26 | \f |
58b988d7 GW |
27 | 0 Preface |
28 | --------- | |
9be3e9fc GCI |
29 | |
30 | Welcome to the FreeBSD 1.1 FAQ! This document tries to answer some of | |
097d4e7a GW |
31 | the most frequently asked questions about FreeBSD 1.1 (or later, |
32 | unless specifically indicated). If there's something you're having | |
33 | trouble with and you just don't see it here, then please send mail to: | |
9be3e9fc | 34 | |
097d4e7a | 35 | <FreeBSD-questions@freefall.cdrom.com> |
9be3e9fc GCI |
36 | |
37 | ||
097d4e7a GW |
38 | Some of the instructions here will also refer to auxiliary utilities |
39 | in the /usr/src/contrib/FAQ directory. CDROM purchasers and net folks | |
40 | who've grabbed the FreeBSD 1.1 `srcdist' will have these files. If | |
41 | you don't have the source distribution, then you can either grab the | |
42 | whole thing from: | |
9be3e9fc | 43 | |
097d4e7a | 44 | FreeBSD.cdrom.com:pub/FreeBSD/FreeBSD-1.1 |
9be3e9fc | 45 | |
097d4e7a GW |
46 | Or you can grab only those files you're interested in straight out of |
47 | the FreeBSD-current distribution in: | |
9be3e9fc | 48 | |
097d4e7a | 49 | FreeBSD.cdrom.com:pub/FreeBSD/FreeBSD-current/src |
9be3e9fc | 50 | |
097d4e7a | 51 | 0.1: What is FreeBSD? |
9be3e9fc GCI |
52 | |
53 | FreeBSD is a UN*X type operating system based on William Jolitz's port | |
097d4e7a GW |
54 | of U.C. Berkeley's Networking Release 2 to the i386, 386BSD. It is no |
55 | longer correct to say that FreeBSD is only 386BSD with the patchkit | |
56 | applied! There have been many additions and bug fixes made throughout | |
57 | the entire system, some of the highlights of which are: | |
32e6aeb0 JH |
58 | |
59 | More robust and extensive PC device support | |
097d4e7a | 60 | System V-style IPC, messaging and semaphores |
32e6aeb0 JH |
61 | Shared Libraries |
62 | Much improved virtual memory code | |
63 | Better console driver support | |
64 | Network booting (diskless) support | |
65 | /proc filesystem | |
66 | Yellow Pages support | |
67 | `LDT' support for WINE (primitive but developing Windows emulation) | |
68 | Too many additional utilities and applications to mention | |
69 | ||
9be3e9fc | 70 | |
097d4e7a GW |
71 | 0.2: My friends told me that FreeBSD was illegal and I shouldn't use it. |
72 | Is this really true? | |
008edb68 | 73 | |
097d4e7a GW |
74 | FreeBSD versions up to and including 1.1 have included code from |
75 | Berkeley's Net/2 distribution. UNIX Systems Laboratories (now Novell) | |
76 | sued Berkeley claiming that Net/2 included some code that belonged to | |
77 | USL. In February of 1994, USL and Berkeley announced a settlement in | |
78 | which neither side admitted to doing anything wrong, but UCB agreed to | |
79 | stop distributing the disputed software. | |
008edb68 GW |
80 | |
81 | Since Berkeley will no longer defend this code, we have been requested | |
097d4e7a GW |
82 | to stop distributing it, and will be integrating all the improvements |
83 | we have made in the VM system and i386-specific code into Berkeley's | |
84 | 4.4-Lite distribution; the result will form the basis of the next | |
85 | release of FreeBSD (we haven't decided whether to call it 1.2 or 2.0). | |
86 | We expect the integration to take place over a period of three to six | |
87 | months, during which time we will have to stop work on 1.1 and | |
88 | concentrate all our efforts on the merge. | |
89 | ||
90 | We expect to make more information available on the status of the | |
91 | merge effort as the situation progresses. | |
92 | ||
93 | 0.3: What are the FreeBSD mailing lists, and how can I get on them? | |
94 | ||
95 | The following mailing lists are provided for FreeBSD users and | |
96 | developers. For more information, send to | |
97 | <majordomo@freefall.cdrom.com> and include a single line saying | |
98 | ``help'' in the body of your message. | |
99 | ||
100 | FreeBSD-hackers: Useful for persons wishing to work on the internals. | |
101 | FreeBSD-questions: General questions on FreeBSD. | |
102 | FreeBSD-bugs: Where bugs should be sent. | |
103 | FreeBSD-commit: This list carries the commit messages for freefall. Useful | |
9be3e9fc | 104 | for tracking ongoing work. |
097d4e7a GW |
105 | FreeBSD-SCSI: Mailing list for SCSI developers. |
106 | FreeBSD-current: This list is for persons wishing to run FreeBSD-current | |
107 | and carries announcements and discussions on current. | |
9be3e9fc GCI |
108 | |
109 | Please see also the FreeBSD mailing list FAQ in: | |
32e6aeb0 | 110 | |
097d4e7a | 111 | /usr/src/contrib/FAQ/OTHER-FAQS/FreeBSD.mailing-list.FAQ |
9be3e9fc | 112 | |
097d4e7a | 113 | 0.4: What are the various FreeBSD news groups? |
9be3e9fc | 114 | |
097d4e7a GW |
115 | While there are no groups currently dedicated to FreeBSD, you may find |
116 | the following groups useful. | |
9be3e9fc GCI |
117 | |
118 | comp.os.386bsd.announce: For announcements | |
6fa35152 | 119 | comp.os.386bsd.apps: For applications |
9be3e9fc GCI |
120 | comp.os.386bsd.questions: For questions |
121 | comp.os.386bsd.development: For working on the internals | |
122 | comp.os.386bsd.bugs: About bugs | |
123 | comp.os.386bsd.misc: For items that don't fit anywhere else | |
124 | ||
32e6aeb0 | 125 | NOTE: These groups cover all the *BSDs (FreeBSD, NetBSD, 386BSD). |
9be3e9fc GCI |
126 | |
127 | ||
097d4e7a | 128 | \f |
58b988d7 GW |
129 | 1 Installation |
130 | -------------- | |
9be3e9fc | 131 | |
097d4e7a GW |
132 | 1.1: I just installed my system and rebooted. Now I can't find the |
133 | extract or configure programs, where did they go? | |
9be3e9fc | 134 | |
28d2f186 | 135 | These two commands are just shell functions defined in /.profile. To |
097d4e7a | 136 | get these back, boot FreeBSD with a `-s' at the boot prompt. |
9be3e9fc GCI |
137 | |
138 | ||
7fa46f7a JH |
139 | 1.2: I want to install FreeBSD onto a SCSI disk that has more than |
140 | 1024 cylinders. How do I do it? | |
9be3e9fc | 141 | |
097d4e7a GW |
142 | This depends. If you don't have DOS (or another operating system) on |
143 | the system, you can just keep the drive in native mode and simply make | |
144 | sure that your root partition is below 1024 so the BIOS can boot the | |
145 | kernel from it. It you also have DOS/some other OS on the drive then | |
146 | your best bet is to find out what parameters that it thinks you have | |
147 | before installing FreeBSD. When FreeBSD's installation procedure | |
148 | prompts you for these values, you should then enter them rather than | |
149 | simply going with the defaults. | |
9be3e9fc | 150 | |
097d4e7a GW |
151 | There is a freely available utility distributed with FreeBSD called |
152 | `pfdisk' (located in the tools/ subdirectory) which can be used for | |
153 | this purpose. | |
9be3e9fc GCI |
154 | |
155 | ||
097d4e7a | 156 | 1.3: When I boot FreeBSD it says ``Missing Operating System''. |
9be3e9fc | 157 | |
097d4e7a GW |
158 | See question 1.2. This is classically a case of FreeBSD and DOS or |
159 | some other OS conflicting over their ideas of disk geometry. You will | |
160 | have to reinstall FreeBSD, but obeying the instructions given above | |
161 | will almost always get you going. | |
9be3e9fc GCI |
162 | |
163 | ||
097d4e7a GW |
164 | 1.4: I have an IDE drive with lots of bad blocks on it and FreeBSD doesn't |
165 | seem to install properly. | |
9be3e9fc | 166 | |
097d4e7a GW |
167 | FreeBSD's bad block (bad144) handling is still not 100% (to put it |
168 | charitably) and it must unfortunately be said that if you've got an | |
169 | IDE or ESDI drive with lots of bad blocks, then FreeBSD is probably | |
170 | not for you! That said, it does work on thousands of IDE based | |
171 | systems, so you'd do well to try it first before simply giving up. | |
9be3e9fc | 172 | |
28d2f186 GW |
173 | IDE drives are *supposed* to come with built-in bad-block remapping; |
174 | if you have documentation for your drive, you may want to see if this | |
175 | feature has been disabled on your drive. However, ESDI, RLL, and | |
176 | ST-506 drives normally do not do this. | |
177 | ||
9be3e9fc | 178 | |
097d4e7a | 179 | 1.5: I have 32MB of memory, should I expect any special problems? |
9be3e9fc | 180 | |
28d2f186 GW |
181 | If you have an IDE controller, no. Likewise, if you have a full EISA |
182 | system with EISA disk controller or a working local bus controller | |
183 | (read further) you'll have no problems. If you have an ISA system, or | |
184 | an EISA system with an ISA disk controller then you will most | |
185 | certainly have problems with the upper 16MB of memory due to the ISA | |
186 | 24 bit DMA limitation (which ISA cards in EISA systems will also | |
187 | exhibit). If you have a local bus disk controller, then you should be | |
188 | OK, UNLESS it's a Buslogic Bt445S with a revision less than `D' (BIOS | |
189 | 3.36 or earlier). Never fear, however, as all is not lost. | |
190 | FreeBSD-current (and the upcoming FreeBSD 1.2) have bounce-buffer | |
191 | support that make all of the above scenarios work with a full 32MB of | |
192 | memory or more. You are therefore advised to simply pull 16MB of | |
193 | memory out, install, and then see about upgrading to FreeBSD-current | |
194 | or FreeBSD 1.2 (when it comes out) so that you can put it back. | |
9be3e9fc GCI |
195 | |
196 | ||
097d4e7a | 197 | 1.6: Do I need to install the complete sources? |
58b988d7 GW |
198 | |
199 | In general, no. However, we would strongly recommend that you | |
200 | install, at a minimum, the `base' source kit, which includes several | |
201 | of the files mentioned here, and the `sys' (kernel) source kit, which | |
202 | includes sources for the kernel. There is nothing in the system which | |
203 | requires the presence of the sources to operate, however, except for | |
204 | the kernel-configuration program config(8). With the exception of the | |
205 | kernel sources, our build structure is set up so that you can | |
206 | read-only mount the sources from elsewhere via NFS and still be able | |
207 | to make new binaries. (Because of the kernel-source restriction, we | |
208 | recommend that you not mount this on /usr/src directly, but rather in | |
209 | some other location with appropriate symbolic links to duplicate the | |
210 | top-level structure of the source tree.) | |
211 | ||
212 | Having the sources on-line and knowing how to build a system with them | |
213 | will make it much easier for you to upgrade to future releases of | |
214 | FreeBSD. | |
215 | ||
097d4e7a GW |
216 | 1.7: DES encryption software can not be exported from the United |
217 | States. If I live outside the US, how can I encrypt passwords? | |
875be44f GR |
218 | |
219 | Since the DES encryption algorithm, which is used by passwd(1) and | |
220 | friends to encrypt passwords cannot legally be exported from the US, | |
097d4e7a | 221 | non-US users should not download this software from US FTP sites. |
875be44f GR |
222 | |
223 | There is however a replacement libcrypt available, based on sources | |
224 | written in Australia by David Burren. This code is now available on | |
097d4e7a GW |
225 | some non-US FreeBSD mirror sites. Sources for the unencumbered |
226 | libcrypt, and binaries of the programs which use it, can be obtained | |
227 | from the following FTP sites: | |
7fa46f7a | 228 | |
097d4e7a GW |
229 | South Africa: braae.ru.ac.za:/pub/FreeBSD/securedist/ |
230 | owl.und.ac.za (currently uncertain) | |
231 | Iceland: ftp.veda.is:/pub/crypt/FreeBSD/ | |
875be44f GR |
232 | |
233 | The non-US securedist can be used as a direct replacement for the | |
234 | encumbered US securedist. This securedist package is installed the | |
097d4e7a GW |
235 | same way as the US package (see installation notes for details). If |
236 | you are going to install DES encryption, you should do so as soon as | |
237 | possible, before installing other software. | |
875be44f GR |
238 | |
239 | Non-US users should please not download any encryption software from | |
240 | the USA. This can get the maintainers of the sites from which the | |
241 | software is downloaded into severe legal difficulties. | |
242 | ||
243 | A non-US distribution of Kerberos is also being developed, and current | |
097d4e7a GW |
244 | versions can generally be obtained by anonymous FTP from |
245 | braae.ru.ac.za. | |
875be44f GR |
246 | |
247 | There is also a mailing list for the discussion of non-US encryption | |
7fa46f7a | 248 | software. For more information, send an email message with a single |
097d4e7a GW |
249 | line saying ``help'' in the body of your message to |
250 | <majordomo@braae.ru.ac.za>. | |
875be44f GR |
251 | |
252 | ||
097d4e7a | 253 | \f |
58b988d7 GW |
254 | 2 Hardware compatibility |
255 | ------------------------ | |
9be3e9fc | 256 | |
097d4e7a | 257 | 2.1: What kind of hard drives does FreeBSD run on? |
9be3e9fc | 258 | |
28d2f186 GW |
259 | FreeBSD supports ST-506 (sometimes called ``MFM''), RLL, and ESDI |
260 | drives, which are usually connected to WD-1002, WD-1003, or WD-1006 | |
875be44f GR |
261 | controllers (although clones should also work). FreeBSD also supports |
262 | IDE and SCSI hard drives. | |
9be3e9fc | 263 | |
097d4e7a | 264 | 2.2: What SCSI controllers are supported? |
9be3e9fc GCI |
265 | |
266 | FreeBSD supports the following SCSI controllers: | |
267 | ||
28d2f186 | 268 | Adaptec AH-1542 Series <ISA> |
9be3e9fc | 269 | AH-1742 Series <EISA> |
58b988d7 | 270 | Buslogic BT-445 Series <VLB> (but see section 1.5) |
9be3e9fc GCI |
271 | BT-545 Series <ISA> |
272 | BT-742 Series <EISA> | |
273 | UltraStor UH-14f Series <ISA> | |
4a219cbb | 274 | UH-34f Series <EISA/VLB> |
9be3e9fc | 275 | |
097d4e7a GW |
276 | There is supposed to be a UltraStor 24f driver floating around, but |
277 | we're not sure where (could someone please point us at it?). Note | |
278 | that we do NOT support `Future Domain' or `IN2000' SCSI controllers, | |
279 | typically the little $50 specials you get with some CDROM drives. You | |
280 | will have to buy a more mainstream (and capable) SCSI controller. The | |
281 | Buslogic controllers are currently the easiest to get. | |
9be3e9fc GCI |
282 | |
283 | ||
097d4e7a | 284 | 2.3: What CD-ROM drives are supported by FreeBSD? |
9be3e9fc | 285 | |
097d4e7a GW |
286 | Any SCSI drive connected to a supported controller. Mitsumi |
287 | LU002(8bit), LU005(16bit) and FX001D(16bit 2x Speed). | |
9be3e9fc | 288 | |
28d2f186 GW |
289 | FreeBSD does NOT support drives connected to a Sound Blaster or |
290 | non-SCSI SONY or Panasonic drives. A general rule of thumb when | |
291 | selecting a CDROM drive for FreeBSD use is to buy a very standard SCSI | |
292 | model; they cost more, but deliver very solid performance in return. | |
293 | Do not be fooled by very cheap drives that, in turn, deliver VERY LOW | |
294 | performance! As always, you get what you pay for. | |
295 | ||
296 | The Mitsumi driver is known to be extremely slow compared to SCSI | |
297 | drives. | |
9be3e9fc GCI |
298 | |
299 | ||
097d4e7a | 300 | 2.4: What multi-port serial cards are supported by FreeBSD? |
9be3e9fc | 301 | |
097d4e7a GW |
302 | AST/4 and BOCA 4/8 port cards. Some unnamed clone cards have also |
303 | been known to work, especially those that claim to be AST compatible. | |
304 | Check the sio(4) man page to get more information on configuring such | |
305 | cards. | |
9be3e9fc GCI |
306 | |
307 | ||
097d4e7a | 308 | 2.5: Does FreeBSD support the AHA-2742 SCSI adapter from Adaptec? |
9be3e9fc | 309 | |
097d4e7a GW |
310 | No, FreeBSD does not. This is due to Adaptec's unwillingness to |
311 | supply programming information under other than non-disclosure. This | |
312 | is unfortunate, but there's nothing we can do about it. | |
9be3e9fc GCI |
313 | |
314 | ||
097d4e7a GW |
315 | 2.6: I have a Mumbleco bus mouse. Is it supported and if so, how do I set |
316 | it up for XFree86? | |
9be3e9fc | 317 | |
28d2f186 GW |
318 | FreeBSD supports the Logitech and ATI Inport bus mice. You need to |
319 | add the following line to the kernel config file and recompile for the | |
320 | Logitech and ATI mice: | |
9be3e9fc | 321 | |
097d4e7a | 322 | device mse0 at isa? port 0x23c tty irq6 vector mseintr |
9be3e9fc GCI |
323 | |
324 | ||
097d4e7a GW |
325 | 2.7: I have a PS/2 mouse (`keyboard' mouse) [Alternatively: I have a |
326 | laptop with a track-ball mouse]. How do I use it? | |
9be3e9fc | 327 | |
097d4e7a GW |
328 | For the PS/2 mouse you need to look in |
329 | /usr/src/contrib/FAQ/programs/psm, which is John Solhed's port of the | |
330 | Linux PS/2 mouse driver. | |
9be3e9fc | 331 | |
097d4e7a GW |
332 | Follow the directions in the package. You will also need to change |
333 | your Xconfig file to point to the mouse. | |
9be3e9fc GCI |
334 | |
335 | ||
097d4e7a | 336 | 2.8: What types of tape drives are supported under FreeBSD? |
9be3e9fc | 337 | |
097d4e7a GW |
338 | FreeBSD supports SCSI, QIC-02 and QIC-40/80 (Floppy based) tape |
339 | drives. This includes 8-mm (aka Exabyte) and DAT drives. | |
9be3e9fc GCI |
340 | |
341 | ||
097d4e7a | 342 | 2.9: What sound cards are supported by FreeBSD? |
9be3e9fc | 343 | |
097d4e7a GW |
344 | FreeBSD supports the SoundBlaster, SoundBlaster Pro, Pro Audio |
345 | Spectrum 16, AdLib and Gravis UltraSound sound cards. There is also | |
346 | limited support for MPU-401 and compatible MIDI cards. The | |
347 | SoundBlaster 16 and SoundBlaster 16 ASP cards are not yet supported. | |
348 | NOTE: This is only for sound! This driver does not support CD-ROMs, | |
349 | SCSI or joysticks on these cards. | |
9be3e9fc GCI |
350 | |
351 | ||
097d4e7a | 352 | 2.10: What network cards does FreeBSD support? |
9be3e9fc GCI |
353 | |
354 | There is support for the following cards: | |
9be3e9fc | 355 | |
28d2f186 | 356 | `ed' driver: |
097d4e7a GW |
357 | NE2000 and 1000 |
358 | WD/SMC 8003,8013 and Elite Ultra (8216) | |
359 | 3Com 3c503 | |
360 | And clones of the above | |
28d2f186 GW |
361 | |
362 | `ie' driver: | |
097d4e7a | 363 | AT&T EN100/StarLAN 10 |
28d2f186 | 364 | |
9a5e2769 | 365 | `is' driver: |
097d4e7a GW |
366 | Isolan AT 4141-0 |
367 | Isolink 4110 | |
28d2f186 GW |
368 | |
369 | `ep' driver: | |
097d4e7a | 370 | 3com 3c509 (*) |
28d2f186 GW |
371 | |
372 | ||
373 | (*)The `ep' driver is known to have some problems; see the | |
374 | /usr/src/KNOWNBUGS file for more details. | |
9be3e9fc GCI |
375 | |
376 | ||
097d4e7a GW |
377 | 2.11: I have a 386/486sx/486SLC machine without a math co-processor. |
378 | Will this cause me any problems? | |
d73430f6 JH |
379 | |
380 | Generally no, but there are circumstances where you will take a hit, | |
381 | either in performance or accuracy of the math emulation code (see | |
097d4e7a GW |
382 | section 4.1). In particular, drawing arcs in X will be VERY slow. It |
383 | is highly recommended that you lay out the $50 or so for a math | |
384 | co-processor; it's well worth it. NOTE: Some math co-processors are | |
385 | better than others. It pains us to say it, but nobody ever got fired | |
386 | for buying Intel. Unless you're sure it works with FreeBSD, beware of | |
387 | clones. | |
d73430f6 JH |
388 | |
389 | ||
097d4e7a | 390 | \f |
58b988d7 GW |
391 | 3 Commercial Applications |
392 | ------------------------- | |
9be3e9fc | 393 | |
28d2f186 GW |
394 | Note: This section is still very sparse, though we're hoping, of |
395 | course, that companies will add to it! :) The FreeBSD group has no | |
396 | financial interest in any of the companies listed here but simply | |
397 | lists them as a public service (and feels that commercial interest in | |
398 | FreeBSD can have very positive effects on FreeBSD's long-term | |
399 | viability). We encourage commercial software vendors to send their | |
400 | entries here for inclusion. | |
9be3e9fc GCI |
401 | |
402 | ||
097d4e7a | 403 | 3.1: Where can I get Motif for FreeBSD? |
9be3e9fc | 404 | |
32e6aeb0 | 405 | Sequoia International provides commercial quality Motif 1.2.3 |
097d4e7a GW |
406 | development kits for FreeBSD 1.1 (with full shared library support) |
407 | under the product name of `SWiM'. Due to licensing restrictions from | |
408 | the OSF, and the fact that Sequoia needs to make a living, these are | |
409 | NOT FREE, but nonetheless quite reasonably priced in comparison to | |
410 | many other commercial Motif distributions. Send electronic mail to | |
411 | <info@seq.com> for further information. | |
9be3e9fc | 412 | |
097d4e7a | 413 | 3.2: What about other commercial quality development systems for FreeBSD? |
9be3e9fc | 414 | |
38b6cb21 | 415 | ParcPlace Systems, Inc., who currently provides their excellent |
097d4e7a GW |
416 | `Object Interface & Object Builder' GUI development environment free |
417 | of charge to Linux users, is considering the the FreeBSD platform and | |
418 | will make their intentions known fairly shortly. | |
9be3e9fc GCI |
419 | |
420 | ||
097d4e7a | 421 | \f |
58b988d7 GW |
422 | 4 User Applications |
423 | ------------------- | |
9be3e9fc | 424 | |
097d4e7a | 425 | 4.1: I want to run X, how do I go about it? |
9be3e9fc | 426 | |
097d4e7a GW |
427 | First, get the XFree86 distribution of X11R5 from XFree86.cdrom.com. |
428 | The version you want for FreeBSD 1.1 and later is XFree86 2.1. Follow | |
429 | the instructions for installation carefully. You may then wish to read | |
430 | the documentation for the ConfigXF86 tool, which assists you in | |
431 | configuring XFree86 for your particular graphics card/mouse/etc. | |
9be3e9fc GCI |
432 | |
433 | ||
097d4e7a GW |
434 | 4.1: I've been trying to run ghostscript on a 386 (or 486sx) with no |
435 | math co-processor and I keep getting errors. What's up? | |
9be3e9fc | 436 | |
097d4e7a GW |
437 | The problem here is due to the current FreeBSD math-emulator. You |
438 | need to pick up the sources to an alternate emulation package, which | |
439 | you may find in: | |
80df965c | 440 | |
28d7fa3d | 441 | /usr/src/contrib/FAQ/programs/fpu-emu |
9be3e9fc | 442 | |
80df965c JH |
443 | Follow the instructions supplied. |
444 | ||
097d4e7a GW |
445 | This is a port of an older Linux math-emulator. At some point, |
446 | FreeBSD's default math emulator will be good enough that you can | |
447 | forget about having to do this. | |
9be3e9fc GCI |
448 | |
449 | ||
097d4e7a GW |
450 | 4.2: If I want something like seyon, term, Kermit, emacs or any one of |
451 | hundreds of popular freeware utilities, is there a good place to | |
452 | search through first? | |
9be3e9fc | 453 | |
097d4e7a GW |
454 | Yes, the FreeBSD `ports collection' was put together for just that |
455 | purpose. It contains some of the most often requested languages, | |
456 | editors, mail and news reading programs, network software and many | |
457 | many megabytes of other types of useful goodies. CDROM people will | |
458 | probably have the ports collection already in /usr/ports, other folks | |
459 | can get at the latest snapshot of the entire collection in: | |
9be3e9fc | 460 | |
097d4e7a | 461 | FreeBSD.cdrom.com:pub/FreeBSD/FreeBSD-current/ports |
9be3e9fc | 462 | |
097d4e7a GW |
463 | Note that this FTP server permits getting entire directories as one |
464 | (optionally gzipped or compressed) tar file. Read the FTP welcome | |
465 | banner carefully for details. | |
9be3e9fc GCI |
466 | |
467 | ||
097d4e7a GW |
468 | 4.3: I want all this neat software, but I haven't got the space or |
469 | CPU power to compile it all myself. Is there any way of getting | |
470 | binaries? | |
9be3e9fc | 471 | |
28d2f186 | 472 | Yes. We support the concept of a `package', which is essentially a |
097d4e7a GW |
473 | gzipped binary distribution with a little extra intelligence embedded |
474 | in it for doing any custom installation work required. Packages can | |
475 | also be installed or deinstalled again easily without having to know | |
476 | the gory details. CDROM people will have a packages/ directory on | |
477 | their CD, others can get the currently available packages from: | |
9be3e9fc | 478 | |
097d4e7a | 479 | FreeBSD.cdrom.com:pub/FreeBSD/packages-1.1 |
9be3e9fc GCI |
480 | |
481 | Note that all ports may not be available as packages, and that new | |
482 | packages are constantly being added. It is always a good idea to | |
097d4e7a GW |
483 | check periodically to see which packages are available. A README file |
484 | in the packages directory provides more details on the care and | |
485 | feeding of the package software, so no explicit details will be given | |
486 | here. | |
9be3e9fc | 487 | |
7fa46f7a | 488 | |
097d4e7a | 489 | \f |
1f060cdf | 490 | 5 Miscellaneous Questions |
58b988d7 | 491 | ---------------- |
9be3e9fc | 492 | |
097d4e7a GW |
493 | 5.1: I've heard of something called FreeBSD-current. How do I run it, and |
494 | where can I get more information? | |
9be3e9fc | 495 | |
097d4e7a GW |
496 | Read the file /usr/src/contrib/FAQ/OTHER-FAQS/FreeBSD.current.policy, |
497 | it will tell you all you need to know. | |
9be3e9fc GCI |
498 | |
499 | ||
097d4e7a | 500 | 5.2: What is this thing called `sup', and how do I use it? |
9be3e9fc GCI |
501 | |
502 | SUP stands for Software Update Protocol, and was developed by CMU for | |
097d4e7a GW |
503 | keeping their development trees in sync. We use it to keep remote |
504 | sites in sync with our central development sources. | |
9be3e9fc GCI |
505 | |
506 | To use it, you need to have direct internet connectivity (not just | |
507 | mail or news). First, pick up the sup_bin.tgz package from: | |
508 | ||
097d4e7a | 509 | FreeBSD.cdrom.com:pub/FreeBSD/packages |
9be3e9fc GCI |
510 | |
511 | Second, read the file /usr/src/contrib/FAQ/OTHER-FAQS/FreeBSD.sup.faq. | |
512 | ||
513 | This file describes how to setup sup on your machine. You may also | |
28d2f186 | 514 | want to look at /usr/src/contrib/FAQ/OTHER-FAQS/FreeBSD.*.supfile, |
9be3e9fc GCI |
515 | which are a set of supfiles for supping from freefall.cdrom.com |
516 | ||
517 | ||
097d4e7a GW |
518 | 5.3: How do I create customized installation disks that I can give |
519 | out to other people at my site? | |
58b988d7 GW |
520 | |
521 | The entire process of creating installation disks and source and | |
522 | binary archives is automated by various targets in | |
523 | /usr/src/etc/Makefile. The information there should be enough to get | |
524 | you started. | |
9be3e9fc | 525 | |
097d4e7a GW |
526 | 5.4: How do I re-build my system without clobbering the existing |
527 | installed binaries? | |
58b988d7 GW |
528 | |
529 | If you define the environment variable DESTDIR while running `make | |
530 | world' or `make install', the newly-created binaries will be deposited | |
531 | in a directory tree identical to the installed one, rooted at | |
532 | ${DESTDIR}. Some random combination of shared libraries modifications | |
533 | and program rebuilds can cause this to fail in `make world', however. | |
534 | ||
535 | ||
1f060cdf GW |
536 | 5.5: When my system booted, it told me that ``(bus speed defaulted)''. |
537 | What does that mean? | |
538 | ||
539 | The Adaptec 1542 SCSI host adapters allow the user to configure their | |
540 | bus access speed in software. Previous versions of the 1542 driver tried | |
541 | to determine the fastest usable speed and set the adapter to that. We | |
542 | found that this breaks some users' systems, so you now have to define | |
543 | the ``TUNE_1542''' kernel configuration option in order to have this | |
544 | take place. Using it on those systems where it works may make your | |
545 | disks run faster, but on those systems where it doesn't, your data could | |
546 | be corrupted. | |
547 | ||
097d4e7a | 548 | \f |
58b988d7 GW |
549 | 6 Kernel Configuration |
550 | ---------------------- | |
551 | ||
552 | 6.1: When I compile a kernel with multi-port serial code, it tells me | |
097d4e7a GW |
553 | that only the first port is probed and the rest skipped due to |
554 | interrupt conflicts. How do I fix this? | |
9be3e9fc | 555 | |
097d4e7a GW |
556 | The problem here is that FreeBSD has code built-in to keep the kernel |
557 | from getting trashed due to hardware or software conflicts. The way | |
558 | to fix this is to leave out the IRQ settings on other ports besides | |
559 | the first. Here is a example: | |
9be3e9fc GCI |
560 | |
561 | # | |
562 | # Multiport high-speed serial line - 16550 UARTS | |
563 | # | |
564 | device sio2 at isa? port 0x2a0 tty irq 5 flags 0x501 vector siointr | |
565 | device sio3 at isa? port 0x2a8 tty flags 0x501 vector siointr | |
566 | device sio4 at isa? port 0x2b0 tty flags 0x501 vector siointr | |
567 | device sio5 at isa? port 0x2b8 tty flags 0x501 vector siointr | |
568 | ||
569 | You may also want to look at the multi-port serial FAQ in | |
570 | /usr/src/contrib/FAQ/OTHER-FAQS/multi-port.serial.FAQ. | |
571 | ||
572 | ||
58b988d7 | 573 | 6.2: FreeBSD is supposed to come with support for QIC-40/80 drives but |
7fa46f7a | 574 | when I look, I can't find it. |
9be3e9fc | 575 | |
097d4e7a GW |
576 | You need to uncomment the following line in the generic config file |
577 | (or add it to your config file) and recompile. | |
9be3e9fc GCI |
578 | |
579 | controller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr | |
580 | disk fd0 at fdc0 drive 0 | |
581 | disk fd1 at fdc0 drive 1 | |
582 | #tape ft0 at fdc0 drive 2 | |
583 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
584 | ||
585 | ||
58b988d7 | 586 | 6.3: Does FreeBSD support IPC primitives like those in System V? |
9be3e9fc | 587 | |
097d4e7a GW |
588 | Yes, FreeBSD supports System V-style IPC. This includes shared |
589 | memory, messages and semaphores. You need to add the following lines | |
590 | to your kernel config to enable them. | |
9be3e9fc GCI |
591 | |
592 | options SYSVSHM | |
593 | options "SHMMAXPGS=64" # 256Kb of sharable memory | |
594 | options SYSVSEM # enable for semaphores | |
595 | options SYSVMSG # enable for messaging | |
596 | ||
597 | Recompile and install. | |
598 | ||
599 | ||
097d4e7a | 600 | 6.4: Are there any utilities that make configuring a kernel easier? |
4a219cbb | 601 | |
097d4e7a GW |
602 | Well, yes and no. Look in /sys/i386/doc/options.doc (/sys/doc on post |
603 | 1.1 systems) for a list of kernel options you can set, and what they | |
604 | do. For a friendlier front-end to the process, see | |
605 | /usr/src/contrib/configit | |
4a219cbb JH |
606 | |
607 | ||
097d4e7a | 608 | 6.5: Will FreeBSD ever support other architectures? |
58b988d7 GW |
609 | |
610 | Several different groups have expressed interest in working on | |
611 | multi-architecture support for FreeBSD. If you are interested in | |
612 | doing so, please contact the developers at | |
613 | <FreeBSD-hackers@freefall.cdrom.com> for more information on our | |
614 | strategy for porting. | |
615 | ||
58b988d7 | 616 | |
097d4e7a GW |
617 | 6.6: I just wrote a device driver for a Foobar Systems, Inc. |
618 | Integrated Adaptive Gronkulator card. How do I get the | |
619 | appropriate major numbers assigned? | |
620 | ||
621 | This depends on whether or not you plan on making the driver publicly | |
622 | available. If you do, then please send us a copy of the driver source | |
623 | code, plus the appropriate modifications to files.i386, a sample | |
624 | configuration file entry, and the appropriate MAKEDEV code to create | |
625 | any special files your device uses. If you do not, or are unable to | |
626 | because of licensing restrictions, then character major number 32 and | |
627 | block major number 8 have been reserved specifically for this purpose; | |
628 | please use them. In any case, we'd appreciate hearing about your | |
629 | driver on <FreeBSD-hackers@freefall.cdrom.com>. | |
9be3e9fc | 630 | |
9be3e9fc | 631 | |
097d4e7a | 632 | \f |
58b988d7 GW |
633 | 7 System Administration |
634 | ----------------------- | |
635 | ||
097d4e7a GW |
636 | 7.1: How do I add a user easily? I read the man page and am more confused |
637 | than ever! [Alternatively: I didn't read the man page, I never read | |
638 | man pages! :-) ] | |
9be3e9fc | 639 | |
097d4e7a GW |
640 | Look at Gary Clark's Perl package ``AddIt'', which may be found in |
641 | /usr/src/contrib/adduser. This is a first attempt at solving the | |
642 | problem and may be replaced with a more complex but capable solution | |
643 | later. | |
9be3e9fc GCI |
644 | |
645 | ||
58b988d7 | 646 | 7.2: I'm trying to use my printer and keep running into problems. I tried |
7fa46f7a | 647 | looking at /etc/printcap, but it's close to useless. Any ideas? |
9be3e9fc GCI |
648 | |
649 | Yes, you can pick up Andreas Klemm's apsfilter package from: | |
650 | ||
58b988d7 | 651 | ftp.germany.eu.net:pub/comp/i386/Linux/Local.EUnet/People/akl/apsfilter-1.11.gz |
9be3e9fc | 652 | |
4a219cbb JH |
653 | This is a complete package for printing text, PS and DVI files. It |
654 | requires ghostscript and dvips. | |
80df965c | 655 | |
58b988d7 GW |
656 | If you are looking for a simple printcap just for PS and text files, |
657 | try picking up the printcap01 sources in: | |
80df965c | 658 | |
28d7fa3d | 659 | /usr/src/contrib/FAQ/programs/printcap01 |
9be3e9fc | 660 | |
097d4e7a GW |
661 | NOTE: We're looking for printcap entries for all printers. If you |
662 | have one, or a filter for one, please send it or mail us a pointer to | |
663 | <FreeBSD-FAQ@freefall.cdrom.com>. Thanks! | |
9be3e9fc GCI |
664 | |
665 | ||
58b988d7 GW |
666 | 8 Networking |
667 | ------------ | |
9be3e9fc | 668 | |
097d4e7a GW |
669 | 8.1: Where can I get information booting FreeBSD `diskless', that is |
670 | booting and running a FreeBSD box from a server rather than having | |
671 | a local disk? | |
9be3e9fc | 672 | |
80df965c | 673 | Please read /sys/i386/netboot/netboot.doc. |
9be3e9fc GCI |
674 | |
675 | ||
097d4e7a GW |
676 | 8.2: I've heard that you can use a FreeBSD box as a dedicated network |
677 | router - is there any easy support for this? | |
9be3e9fc | 678 | |
28d2f186 GW |
679 | Internet standards and good engineering practice prohibit us from |
680 | providing packet forwarding by default in FreeBSD. You can enable | |
681 | this support by adding `options GATEWAY' to your kernel configuration | |
682 | file and recompiling. In most cases, you will also need to run a | |
683 | routing process to tell other systems on your network about your | |
684 | router; FreeBSD comes with the standard BSD routing daemon routed(8), | |
685 | or for more complex situations you may want to try GateD (available by | |
097d4e7a | 686 | FTP from gated.Cornell.edu). |
28d2f186 GW |
687 | |
688 | It is our duty to warn you that, even when FreeBSD is configured in | |
689 | this way, it does not completely comply with the Internet standard | |
690 | requirements for routers; however, it comes close enough for ordinary | |
691 | usage. | |
692 | ||
693 | There is a standard `router floppy' that you can boot on a FreeBSD | |
80df965c JH |
694 | machine to configure it as a network router. Please look in: |
695 | ||
097d4e7a | 696 | freefall.cdrom.com:pub/incoming/freertr |
80df965c | 697 | |
58b988d7 | 698 | and follow the instructions. |
9be3e9fc GCI |
699 | |
700 | ||
097d4e7a | 701 | 8.3: Does FreeBSD support SLIP and PPP? |
9be3e9fc | 702 | |
097d4e7a GW |
703 | Yes. See the man pages for slattach(8) and/or pppd(8) if you're using |
704 | FreeBSD to connect to another site. If you're using FreeBSD as a | |
705 | server for other machines, look at the man page for sliplogin(8). | |
9be3e9fc | 706 | |
097d4e7a | 707 | 8.4: How do I set up NTP? |
28d2f186 GW |
708 | |
709 | NTP configuration is so complex and widely variable from site to site | |
710 | that it would be impossible to make a blanket statement here. Your | |
711 | best bet is to ask whoever's in charge of NTP at your site or network | |
712 | provider; chances are that they are running a similar version of NTP | |
713 | to the one that we provide, and they can probably provide you with the | |
714 | right configuration files to get things going. | |
715 | ||
716 | If you can't find anyone in charge, you should examine the files in | |
717 | /usr/src/contrib/xntpd/doc and see if they help any. If not, you | |
718 | could ask on the comp.protocols.time.ntp newsgroup, or the | |
097d4e7a | 719 | <ntp@ni.umd.edu> mailing-list. |
28d2f186 | 720 | |
097d4e7a GW |
721 | 8.5: How do I get my network set up? I don't see how to make my |
722 | /dev/ed0 device! | |
28d2f186 | 723 | |
58b988d7 | 724 | In the Berkeley networking framework, network interfaces are only |
097d4e7a | 725 | directly accessible by kernel code. Please see the /etc/netstart file |
58b988d7 GW |
726 | and the manual pages for the various network programs mentioned there |
727 | for more information. If this leaves you totally confused, then you | |
728 | should pick up a book describing network administration on another | |
729 | BSD-related operating system; with few significant exceptions, | |
730 | administering networking on FreeBSD is basically the same as on SunOS | |
731 | 4.0 or Ultrix. | |
732 | ||
097d4e7a | 733 | 8.6: How do I get my 3C503 to use the other network port? |
58b988d7 GW |
734 | |
735 | Use `ifconfig ed0' to see whether the ALTPHYS flag is set, and then | |
736 | use either `ifconfig ed0 altphys' if it was off, or `ifconfig ed0 | |
737 | -altphys' if it was on. | |
738 | ||
739 | ||
740 | 9 Serial Communications | |
741 | ----------------------- | |
9be3e9fc | 742 | |
097d4e7a | 743 | 9.1: When I do a set line in Kermit it locks up, what's the problem? |
9be3e9fc GCI |
744 | |
745 | The problem here is that FreeBSD thinks it's talking to a incoming | |
746 | modem connection, and is waiting for carrier to come up on it before | |
747 | completing the open. To disable modem control, do an: | |
748 | ||
097d4e7a | 749 | stty -f /dev/ttyXX clocal |
9be3e9fc GCI |
750 | |
751 | (Where `ttyXX' is the tty port you're using). If you use a given port | |
752 | only for outgoing connections, you may wish to put this command in | |
097d4e7a GW |
753 | your /etc/rc.local to avoid having to do it every time you reboot your |
754 | system. | |
9be3e9fc GCI |
755 | |
756 | ||
097d4e7a GW |
757 | NOTE: Anyone wishing to submit a FAQ entry on how to get tip and cu working |
758 | would have it much appreciated! We all use Kermit over here! :-) | |
9be3e9fc GCI |
759 | |
760 | ----------------------------------------------------------------------------- | |
097d4e7a GW |
761 | If you see a problem with this FAQ, or wish to submit an entry, please |
762 | mail us at <FreeBSD-FAQ@freefall.cdrom.com>. We appreciate your | |
763 | feedback, and cannot make this a better FAQ without your help! | |
9be3e9fc GCI |
764 | |
765 | ||
766 | FreeBSD Core Team | |
767 | ||
768 | ----------------------------------------------------------------------------- | |
769 | ||
097d4e7a | 770 | ACKNOWLEDGMENTS: |
9be3e9fc | 771 | |
097d4e7a | 772 | Gary Clark II - Our head FreeBSD FAQ maintenance man |
9be3e9fc | 773 | Jordan Hubbard - Janitorial services (I don't do windows) |
097d4e7a | 774 | Garrett Wollman - Networking and formatting |
9be3e9fc GCI |
775 | Robert Oliver, Jr. - Invaluable feedback and contributions |
776 | The FreeBSD Team - Kvetching, moaning, submitting data | |
777 | ||
778 | And to any others we've forgotten, apologies and heartfelt thanks! | |
779 |