Add the ps2 mouse stuff.
[unix-history] / contrib / FAQ / FreeBSD.FAQ
CommitLineData
9be3e9fc
GCI
1
2 FreeBSD
3 Freqently Asked Questions
4 For Version 1.1 and above
5 Please mail all suggestions and additions to FreeBSD-FAQ@freefall.cdrom.com
6
7
32e6aeb0 8Revision: $Id: FreeBSD.FAQ,v 1.1 1994/04/16 16:34:17 gclarkii Exp $
9be3e9fc
GCI
9
10
11Table of Contents
12-----------------
13
140.0 Preface
151.0 Installation
162.0 Hardware Compatibility
173.0 Commercial applications
184.0 User Applications
195.0 Misc Questions
206.0 Kernel Configuration
217.0 System Admin
228.0 Networking
239.0 Communications
24
25
26
27
28
29
300.0 Preface
31-----------
32
33Welcome to the FreeBSD 1.1 FAQ! This document tries to answer some of
34the most frequently asked questions about FreeBSD 1.1 (or later, unless
35specifically indicated). If there's something you're having trouble
36with and you just don't see it here, then please send mail to:
37
38 freebsd-questions@freefall.cdrom.com
39
40
41Some of the instructions here will also refer to auxilliary utilities
42in the /usr/src/contrib/FAQ directory. CDROM purchasers and net folks who've
43grabbed the FreeBSD 1.1 `srcdist' will have these files. If you don't have
44the source distribution, then you can either grab the whole thing from:
45
46 freebsd.cdrom.com:~ftp/pub/FreeBSD/FreeBSD-1.1
47
48Or you can grab only those files you're interested in straight out of the
49FreeBSD-current distribution in:
50
51 freebsd.cdrom.com:~ftp/pub/FreeBSD/FreeBSD-current/src
52
530.0.1 What is FreeBSD?
54
55FreeBSD is a UN*X type operating system based on William Jolitz's port
56of UCB's Networking Release 2 to the i386, 386BSD. It is no longer
32e6aeb0
JH
57correct to say that FreeBSD is only 386BSD with the patchkit applied! There
58have been many additions and bug fixes made throughout the entire system,
59some of the highlights of which are:
60
61 More robust and extensive PC device support
62 SysV IPC, messaging and semaphores
63 Shared Libraries
64 Much improved virtual memory code
65 Better console driver support
66 Network booting (diskless) support
67 /proc filesystem
68 Yellow Pages support
69 `LDT' support for WINE (primitive but developing Windows emulation)
70 Too many additional utilities and applications to mention
71
9be3e9fc
GCI
72
730.0.2 What are the FreeBSD mailing lists, and how can I get on them?
74
32e6aeb0
JH
75The following mailing lists are provided for FreeBSD users and developers.
76For more information, send to majordomo@freefall.cdrom.com and include a
77single line saying "help" in the body of your message.
9be3e9fc
GCI
78
79freebsd-hackers: Useful for persons wishing to work on the internals.
80freebsd-questions: General questions on FreeBSD.
81freebsd-bugs: Where bugs should be sent.
32e6aeb0 82freebsd-commit: This list caries the commit messages for freefall. Useful
9be3e9fc
GCI
83 for tracking ongoing work.
84freebsd-scsi: Mailing list for SCSI developers.
85freebsd-current: This list is for persons wishing to run FreeBSD-current
32e6aeb0 86 and caries announcements and discussions on current.
9be3e9fc
GCI
87
88Please see also the FreeBSD mailing list FAQ in:
32e6aeb0
JH
89
90 /usr/src/contrib/FAQ/OTHER-FAQS/FreeBSD.mailing-list.FAQ
9be3e9fc
GCI
91
920.0.3 What are the various FreeBSD news groups?
93
32e6aeb0 94While there are no groups currently dedicated to FreeBSD, you may find the
9be3e9fc
GCI
95following groups useful.
96
97comp.os.386bsd.announce: For announcements
98comp.os.386bsd.questions: For questions
99comp.os.386bsd.development: For working on the internals
100comp.os.386bsd.bugs: About bugs
101comp.os.386bsd.misc: For items that don't fit anywhere else
102
32e6aeb0 103NOTE: These groups cover all the *BSDs (FreeBSD, NetBSD, 386BSD).
9be3e9fc
GCI
104
105
106
1071.0 Installation
108----------------
109
1101.0.1: I just installed my system and rebooted. Now I can't find the
111 extract or configure programs, where did they go?
112
9be3e9fc
GCI
113These two commands are just shell builtins. To get these back, either
114create a account [adding a user] with /.profile as its profile or
115boot FreeBSD with a '-s' at the boot prompt.
116
117
1181.0.2: I want to install FreeBSD unto a SCSI disk that has more than
119 1024 cylinders. How do I do it?
120
121This depends. If you don't have DOS (or another operating system) on the
122system, you can just keep the drive in native mode and simply make sure that
123your root partition is below 1024 so the bios can boot the kernel from it.
124It you also have DOS/some other OS on the drive then your best bet is to find
125out what parameters that it thinks you have before installing FreeBSD. When
126FreeBSD's installation procedure prompts you for these values, you should then
127enter them rather than simply going with the defaults.
128
129There is a freely available utility distributed with FreeBSD called `pfdisk'
130(located in the tools/ subdirectory) which can be used for this purpose.
131
132
1331.0.3: When I boot FreeBSD it says "Missing Operating System".
134
135See above (1.0.2). This is classicaly a case of FreeBSD and DOS or some other
136OS conflicting over their ideas of disk geometry. You will have to reinstall
137FreeBSD, but obeying the instructions given above will almost always get you
138going.
139
140
1411.0.4: I have an IDE drive with lots of bad blocks on it and FreeBSD doesn't
142 seem to install properly.
143
144FreeBSD's bad block (bad144) handling is still not 100% (to put it charitably)
145and it must unfortunately be said that if you've got an IDE or ESDI drive
146with lots of bad blocks, then FreeBSD is probably not for you! That said, it
147does work on thousands of IDE based systems, so you'd do well to try it first
32e6aeb0 148before simply giving up.
9be3e9fc
GCI
149
150
1511.0.5: I have 32MB of memory, should I expect any special problems?
152
153If you have an IDE controller, no. Likewise, if you have a full EISA system
154with EISA disk controller or a working local bus controller (read further)
155you'll have no problems. If you have an ISA system, or an EISA system with an
156ISA disk controller then you will most certainly have problems with the upper
15716MB of memory due to the ISA 24 bit DMA limitation (which ISA cards in EISA
158systems will also exhibit). If you have a local bus disk controller, and it's
159NOT a Buslogic Bt445S with a revision less than `D' (BIOS 3.36 or earlier),
160then you should be OK. Never fear, however, as all is not lost.
161FreeBSD-current (and the upcoming FreeBSD 1.2) have bounce-buffer support that
162make all of the above scenarios work with a full 32MB of memory or more. You
163are therefore advised to simply pull 16MB of memory out, install, and then see
164about upgrading to FreeBSD-current or FreeBSD 1.2 (when it comes out) so that
165you can put it back.
166
167
168
169
1702.0 Hardware compatibility
171--------------------------
172
1732.0.1: What kind of hard drives does FreeBSD run on?
174
175FreeBSD supports MFM, RLL, ESDI, IDE and SCSI hard drives.
176
177
1782.0.2: What SCSI controllers are supported?
179
180FreeBSD supports the following SCSI controllers:
181
182Adaptec AH-1542 Series (ISA>
183 AH-1742 Series <EISA>
184Buslogic BT-445 Series <VLB> (*)
185 BT-545 Series <ISA>
186 BT-742 Series <EISA>
187UltraStor UH-14f Series <ISA>
188 UH-34f Series <EISA>
189
190There is supposed to be a UltraStor 24f driver floating around, but we're
191not sure where (could someone please point us at it?). Note that we do
192NOT support `Future Domain' or `IN2000' SCSI controllers, typically
193the little $50 specials you get with some CDROM drives. You will have to
194buy a more mainstream (and capable) SCSI controller.
195
196(*) See section 1.0.5.
197
198
1992.0.3: What CD-ROM drives are supported by FreeBSD?
200
201Any SCSI drive connected to a supported controller.
202Mitsumi LU002(8bit), LU005(16bit) and FX001D(16bit 2x Speed).
203
204FreeBSD does NOT support drives connected to a Sound Blaster or non-SCSI
205SONY or Panasonic drives. A general rule of thumb when selecting a CDROM
206drive for FreeBSD use is to buy a very standard SCSI model; they cost more,
207but deliver very solid performance in return. Do not be fooled by very cheap
208Mitsumi solutions that, in turn, deliver VERY LOW performance! As always,
209you get what you pay for.
210
211
2122.0.4: What multi-port serial cards are supported by FreeBSD?
213
214AST/4 and BOCA 4/8 port cards. Some unnamed clone cards have also been
215known to work, especially those that claim to be AST compatible. Check
216the man page for `sio' to get more information on configuring such cards.
217
218
2192.0.5: Does FreeBSD support the AHA-2742 SCSI adapter from Adaptec?
220
221No, FreeBSD does not. This is due to Adaptec's unwillingness to supply
222programing information under other than non-disclosure. This is unfortunate.
223
224
2252.0.6: I have a XXXX bus mouse. Is it supported and if so, how do I set
226 it up for XFree86?
227
228FreeBSD supports the Logitech, ATI Inport and PS/2 bus mice. You need to add
229the following line to the kernel config file and recompile for the Logitech
230and ATI mice:
231
232 device mse0 at isa? port 0x23c tty irq6 vector mseintr
233
234
2352.0.7: I have a PS/2 mouse (`keyboard' mouse) [Alternatively: I have a
236 laptop with a trackball mouse]. How do I use it?
237
32e6aeb0 238For the PS/2 mouse you need to look in /usr/src/contrib/FAQ/programs/psm,
9be3e9fc
GCI
239which is John Solhed's port of the Linux PS/2 mouse driver.
240
241Follow the directions in the package. You will also need to change your
242Xconfig file to point to the mouse.
243
244
2452.0.8: What types of tape drives are supported under FreeBSD?
246
247FreeBSD supports SCSI, QIC-02 and QIC-40/80 (Floppy based) tape drives.
248This includes Exabyte and DAT drives.
249
250
2512.0.9: What sound cards are supported by FreeBSD?
252
253FreeBSD supports the SoundBlaster, SoundBlaster Pro, Pro Audio Spectrum 16,
254AdLib and Gravis UltraSound sound cards. There is also limited support
255for MPU-401 and compatible midi cards. The SoundBlaster 16 and
256SoundBlaster 16 ASP cards are not yet supported.
257NOTE: This is only for sound! This driver does not support CD-ROMs, SCSI
258or joysticks on these cards.
259
260
2612.0.10: What network cards does FreeBSD support?
262
263There is support for the following cards:
264NE2000 and 1000
265WD/SMC 8003,8013 and Elite Ultra (8216)
2663Com 3c503
267And clones of the above
268AT&T EN100/StarLAN 10
269Isolan AT 4141-0
270Isolink 4110
2713com 3c509 (BETA)
272
273
274
2753.0 Commercial Applications
276---------------------------
277
278Note: This section is still very sparse, though we're hoping, of course,
279that companies will add to it! :) The FreeBSD group has no ties with any
280of the companies listed here but simply lists them as a public service
281(and feels that commercial interest in FreeBSD can have very positive
282effects on FreeBSD's long-term viability). We encourage commercial software
283vendors to send their entries here for inclusion.
284
285
2863.0.1 Where can I get Motif for FreeBSD?
287
32e6aeb0
JH
288Sequoia International provides commercial quality Motif 1.2.3
289development kits for FreeBSD 1.1 (with full shared library support) under
290the product name of `SWiM'. Due to licensing restrictions from the OSF, and
291the fact that Sequoia needs to make a living, these are NOT FREE, but
292nonetheless quite reasonably priced in comparison to many other commercial
293Motif distributions. Send electronic mail to `info@seq.com' for further
294information.
9be3e9fc
GCI
295
2963.0.8 What about other commercial quality development systems for FreeBSD?
297
298ParcPlace Systems, Inc. provides their excellent "Object Interface & Object
299Builder" GUI development environment free of charge to FreeBSD users. Using
300OI, you can develop Motif or OpenLook compliant applications in C++ with all
301the benefits of a true GUI object hierarchy. This will be announced and
302made available as part of the FreeBSD distribution very soon.
303
304
305
306
3074.0 User Applications
308---------------------
309
3104.0.1: I want to run X, how do I go about it?
311
312First, get the XFree86 distribution of X11R5 from XFree86.cdrom.com. The
313version you want for FreeBSD 1.1 and later is XFree86 2.1. Follow the
314instructions for installation carefully. You may then wish to read the
315documentation for the ConfigXF86 tool, which assists you in configuring
316XFree86 for your particular graphics card/mouse/etc.
317
318
3194.0.1: I've been trying to run ghostscript on a 386 with no math-co but
320 keep getting errors. Whats up?
321
322The problem here is due to the current FreeBSD math-emulator. You need to
323pick up the package in /usr/src/contrib/FAQ/programs/math-emulator.tar.gz
324
325Run the install program, recompile your kernel and install the new kernel.
326This is a port of an older Linux math-emulator. At some point, FreeBSD's
327default math emulator will be good enough to enable you to forget about
328having to do this.
329
330
3314.0.2: If I want something like seyon, term, kermit, emacs or any one of
332 hundreds of popular freeware utilities, is there a good place to
333 search through first?
334
335Yes, the FreeBSD `ports collection' was put together for just that purpose.
336It contains some of the most often requested languages, editors, mail and
337news reading programs, network software and many many megabytes of other
338types of useful goodies. CDROM people will probably have the ports collection
339already in /usr/ports, other folks can get at the latest snapshot of the
340entire collection in:
341
342 freebsd.cdrom.com:~ftp/pub/FreeBSD/FreeBSD-current/ports
343
344Note that freebsd's ftp server permits getting entire directories as one
345(optionally gzip'd or compressed) tar file. Read the ftp welcome banner
346carefully for details.
347
348
3494.0.3: I want all this neat software, but I haven't got the space or
350 CPU power to compile it all myself. Is there any way of getting
351 binaries?
352
353Yes. FreeBSD supports the concept of a `package', which is
354essentially a gzip'd binary distribution with a little extra
355intelligence imbeded in it for doing any custom installation work
356required. Packages can also be installed or deinstalled again easily
357without having to know the gory details. CDROM people will have a
358packages/ directory on their CD, others can get the currently
359available packages from:
360
361 freebsd.cdrom.com:~ftp/pub/FreeBSD/packages-1.1
362
363Note that all ports may not be available as packages, and that new
364packages are constantly being added. It is always a good idea to
365check periodically to see which packages are available. A README
366file in the packages directory provides more details on the care
367and feeding of the package software, so no explicit details will
368be given here.
369
3705.0 Misc Questions
371------------------
372
3735.0.1: I've heard of something called FreeBSD-current. How do I run it, and
374 where can I get more information?
375
376Read the file /usr/src/contrib/FAQ/OTHER-FAQS/FreeBSD.current.policy, it
377will tell you all you need to know.
378
379
3805.0.2: What is this thing called `sup', and how do I use it?
381
382SUP stands for Software Update Protocol, and was developed by CMU for
383keeping their development trees in sync. We use it to keep remote sites
384in sync with our central development sources.
385
386To use it, you need to have direct internet connectivity (not just
387mail or news). First, pick up the sup_bin.tgz package from:
388
389 freebsd.cdrom.com:/pub/FreeBSD/packages
390
391Second, read the file /usr/src/contrib/FAQ/OTHER-FAQS/FreeBSD.sup.faq.
392
393This file describes how to setup sup on your machine. You may also
394want to look at `/usr/src/contrib/FAQ/OTHER-FAQS/FreeBSD.*.supfile',
395which are a set of supfiles for supping from freefall.cdrom.com
396
397
3986.0 Kernel Configuration
399
4006.0.1: When I compile a kernel with multi-port serial code, it tells me
401 that only the first port is probed and the rest skiped due to
402 interupt conflicts. How do I fix this?
403
404The problem here is that FreeBSD has code built-in to keep the kernel from
405getting trashed due to hardware or software conflicts. The way to fix this
406is to leave out the irq settings on other ports besides the first. Here is
407a example:
408
409#
410# Multiport high-speed serial line - 16550 UARTS
411#
412device sio2 at isa? port 0x2a0 tty irq 5 flags 0x501 vector siointr
413device sio3 at isa? port 0x2a8 tty flags 0x501 vector siointr
414device sio4 at isa? port 0x2b0 tty flags 0x501 vector siointr
415device sio5 at isa? port 0x2b8 tty flags 0x501 vector siointr
416
417You may also want to look at the multi-port serial FAQ in
418/usr/src/contrib/FAQ/OTHER-FAQS/multi-port.serial.FAQ.
419
420
4216.0.2: FreeBSD is supposed to come with support for QIC-40/80 drives but
422 when I look, I can't find it.
423
424You need to uncomment the following line in the generic config file (or add
425it to your config file) and recompile.
426
427controller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr
428disk fd0 at fdc0 drive 0
429disk fd1 at fdc0 drive 1
430#tape ft0 at fdc0 drive 2
431^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
432
433
4346.0.3: Does FreeBSD support SYSV IPC, shared memory, etc?
435
436Yes, FreeBSD supports SYSV IPC. This includes shared memory, messages and
437semaphores. You need to add the following lines to your kernel config to
438enable them.
439
440options SYSVSHM
441options "SHMMAXPGS=64" # 256Kb of sharable memory
442options SYSVSEM # enable for semaphores
443options SYSVMSG # enable for messaging
444
445Recompile and install.
446
447
448
4497.0 System Administration
450-------------------------
451
4527.0.1: How do I add a user easily? I read the man page and am more confused
453 than ever! [Alternatively: I didn't read the man page, I never read
454 man pages! :-) ]
455
456Look at Gary Clark's perl package "AddIt", which may be found in
457/usr/src/contrib/FAQ/programs/AddIt-0.1B.tar.gz
458
459
4607.0.2: I'm trying to use my printer and keep running into problems. I tried
461 looking at /etc/printcap, but it's close to useless. Any ideas?
462
463Yes, you can pick up Andreas Klemm's apsfilter package from:
464
465ftp.germany.eu.net:~ftp/pub/comp/i386/Linux/Local.EUnet/People/akl/apsfilter-1.11.gz
466
467This is a compleate package for printing text, PS and DVI files. It
468requires ghostscript and dvips. For a smaller package where you just
469want to print simple text files and postscript or just plain want a
470simpler package, look in the file: /usr/src/contrib/FAQ/programs/printcap01.gz
471
472This includes a printcap for a epson printer and a filter for postscript.
473
474NOTE: We're looking for printcap entrys for all printers. If you have
475one, or a filter for one, please send it or mail us a pointer to
476FreeBSD-FAQ@freefall.cdrom.com. Thanks!
477
478
4798.0 Networking
480--------------
481
4828.0.1: Where can I get information booting FreeBSD `diskless', that is
483 booting and running a FreeBSD box from a server rather than having
484 a local disk?
485
486Look in the directory /src/sys/i386/netboot for the file netboot.doc.
487
488
4898.0.2: I've heard that you can use a FreeBSD box as a dedicated network
490 router - is there any easy support for this?
491
492After a fashion, yes. There is a standard `router floppy' that you can
493boot on a FreeBSD machine to configure it as a network router. [>>>> put
494pointer to router floppy image here ]
495
496
4978.0.3: Does FreeBSD support SLIP and PPP?
498
499Yes. See the man pages for slattach and/or pppd if you're using FreeBSD
500to connect to another site. If you're using FreeBSD as a server for other
501machines, look at the man page for `sliplogin'.
502
5039.0 Communications
504------------------
505
5069.0.1: When I do a set line in kermit it locks up, whats the problem?
507
508The problem here is that FreeBSD thinks it's talking to a incoming
509modem connection, and is waiting for carrier to come up on it before
510completing the open. To disable modem control, do an:
511
512 stty -f /dev/ttyXX clocal
513
514(Where `ttyXX' is the tty port you're using). If you use a given port
515only for outgoing connections, you may wish to put this command in
516your /etc/rc.local to avoid having to do it every time you reboot
517your system.
518
519
520NOTE: Anyone wishing to submit a FAQ entry on how to get tip and cu working
521 would have it much appreciated! We all use kermit over here! :-)
522
523-----------------------------------------------------------------------------
524If you see a problem with this FAQ, or wish to submit an entry, please mail
525us at FreeBSD-FAQ@freefall.cdrom.com. We appreciate your feedback, and cannot
526make this a better FAQ without your help!
527
528
529 FreeBSD Core Team
530
531-----------------------------------------------------------------------------
532
533ACKNOWLEDGEMENTS:
534
535Gary Clark II - Our head FreeBSD FAQ maintanance man
536Jordan Hubbard - Janitorial services (I don't do windows)
537Robert Oliver, Jr. - Invaluable feedback and contributions
538The FreeBSD Team - Kvetching, moaning, submitting data
539
540And to any others we've forgotten, apologies and heartfelt thanks!
541