diff --git a/en_US.ISO8859-1/books/faq/book.sgml b/en_US.ISO8859-1/books/faq/book.sgml index bd4ef5c97d..74103f616b 100644 --- a/en_US.ISO8859-1/books/faq/book.sgml +++ b/en_US.ISO8859-1/books/faq/book.sgml @@ -1,8316 +1,8316 @@ Frequently Asked Questions for FreeBSD 2.X The FreeBSD Documentation Project -$Date: 1999-09-04 09:08:13 $ +$FreeBSD$ This is the FAQ for FreeBSD systems version 2.X All entries are assumed to be relevant to FreeBSD 2.0.5 and later, unless otherwise noted. Any entries with a <XXX> are under construction. If you are interested in helping with this project, send email to the the FreeBSD documentation project mailing list <freebsd-doc@FreeBSD.org>. The latest version of this document is always available from the FreeBSD World Wide Web server. It may also be downloaded in plain text, postscript, PDF or HTML with HTTP or gzip'd from the FreeBSD FTP server. You may also want to Search the FAQ. Preface Welcome to the FreeBSD 2.X FAQ! As is usual with Usenet FAQs, this document aims to cover the most frequently asked questions concerning the FreeBSD operating system (and of course answer them!). Although originally intended to reduce bandwidth and avoid the same old questions being asked over and over again, FAQs have become recognized as valuable information resources. Every effort has been made to make this FAQ as informative as possible; if you have any suggestions as to how it may be improved, please feel free to mail them to the FAQ maintainer. What is FreeBSD? Briefly, FreeBSD 2.X is a UN*X-like operating system based on U.C. Berkeley's 4.4BSD-lite release for the i386 platform. It is also based indirectly on William Jolitz's port of U.C. Berkeley's Net/2 to the i386, known as 386BSD, though very little of the 386BSD code remains. A fuller description of what FreeBSD is and how it can work for you may be found on the FreeBSD home page. FreeBSD is used by companies, Internet Service Providers, researchers, computer professionals, students and home users all over the world in their work, education and recreation. See some of them in the FreeBSD Gallery. For more detailed information on FreeBSD, please see the FreeBSD Handbook. What are the goals of FreeBSD? The goals of the FreeBSD Project are to provide software that may be used for any purpose and without strings attached. Many of us have a significant investment in the code (and project) and would certainly not mind a little financial compensation now and then, but we're definitely not prepared to insist on it. We believe that our first and foremost "mission" is to provide code to any and all comers, and for whatever purpose, so that the code gets the widest possible use and provides the widest possible benefit. This is, we believe, one of the most fundamental goals of Free Software and one that we enthusiastically support. That code in our source tree which falls under the GNU General Public License (GPL) or GNU Library General Public License (LGPL) comes with slightly more strings attached, though at least on the side of enforced access rather than the usual opposite. Due to the additional complexities that can evolve in the commercial use of GPL software, we do, however, endeavor to replace such software with submissions under the more relaxed BSD copyright whenever possible. Why is it called FreeBSD? It may be used free of charge, even by commercial users. Full source for the operating system is freely available, and the minimum possible restrictions have been placed upon its use, distribution and incorporation into other work (commercial or non-commercial). Anyone who has an improvement and/or bug fix is free to submit their code and have it added to the source tree (subject to one or two obvious provisos). For those of our readers whose first language is not English, it may be worth pointing out that the word ``free'' is being used in two ways here, one meaning ``at no cost'', the other meaning ``you can do whatever you like''. Apart from one or two things you cannot do with the FreeBSD code, for example pretending you wrote it, you really can do whatever you like with it. What is the latest version of FreeBSD? Version 3.2 is the latest stable version; it was released in May, 1999. This is also the latest release version. Briefly explained, -stable is aimed at the ISP or other corporate user who wants stability and a low change count over the wizzy new features of the latest -current snapshot. Releases can come from either "branch," but you should only use -current if you're sure that you're prepared for its increased volatility (relative to -stable, that is). Releases are only made every few months. While many people stay more up-to-date with the FreeBSD sources (see the questions on FreeBSD-current and FreeBSD-stable) than that, doing so is more of a commitment, as the sources are a moving target. What is FreeBSD-current? FreeBSD-current is the development version of the operating system, which will in due course become 4.0-RELEASE. As such, it is really only of interest to developers working on the system and die-hard hobbyists. See the relevant section in the handbook for details on running -current. If you are not familiar with the operating system or are not capable of identifying the difference between a real problem and a temporary problem, you should not use FreeBSD-current. This branch sometimes evolves quite quickly and can be un-buildable for a number of days at a time. People that use FreeBSD-current are expected to be able to analyze any problems and only report them if they are deemed to be mistakes rather than ``glitches''. Questions such as ``make world produces some error about groups'' on the -current mailing list are sometimes treated with contempt. Every now and again, a snapshot release is also made of this -current development code, CDROM distributions of the occasional snapshot even now being made available. The goals behind each snapshot release are: To test the latest version of the installation software. To give people who would like to run -current but who don't have the time and/or bandwidth to follow it on a day-to-day basis an easy way of bootstrapping it onto their systems. To preserve a fixed reference point for the code in question, just in case we break something really badly later. (Although CVS normally prevents anything horrible like this happening :) To ensure that any new features in need of testing have the greatest possible number of potential testers. No claims are made that any snapshot can be considered ``production quality'' for any purpose. For stability and tested mettle, you will have to stick to full releases. Snapshot releases are directly available from ftp://current.FreeBSD.org/pub/FreeBSD/ and are generated, on the average, once a day for both the 4.0-current and 3.0-stable branches. What is the FreeBSD-stable concept? Back when FreeBSD 2.0.5 was released, we decided to branch FreeBSD development into two parts. One branch was named -stable, with the intention that only well-tested bug fixes and small incremental enhancements would be made to it (for Internet Service Providers and other commercial enterprises for whom sudden shifts or experimental features are quite undesirable). The other branch was -current, which essentially has been one unbroken line leading towards 4.0-RELEASE (and beyond) since 2.0 was released. If a little ASCII art would help, this is how it looks: 2.0 | | | [2.1-stable] *BRANCH* 2.0.5 -> 2.1 -> 2.1.5 -> 2.1.6 -> 2.1.7.1 [2.1-stable ends] | (Mar 1997) | | | [2.2-stable] *BRANCH* 2.2.1 -> 2.2.2-RELEASE -> 2.2.5 -> 2.2.6 -> 2.2.7 -> 2.2.8 [end] | (Mar 1997) (Oct 97) (Apr 98) (Jul 98) (Dec 98) | | 3.0-SNAPs (started Q1 1997) | | 3.0.0-RELEASE (Oct 1998) | | [3.0-stable] *BRANCH* 3.1 (Feb 1999) -> 3.2 -> ... future 3.x releases ... | (May 1999) | \|/ + [4.0-current continues] The -current branch is slowly progressing towards 4.0 and beyond, the previous 2.2-stable branch having just retired with the release of 2.2.8. 3.0-stable has now replaced it, the next release coming up with 3.3 in Q3 1999. 4.0-current is now the "current branch", with the first 4.0 releases appearing in Q1 2000. When are FreeBSD releases made? As a general principle, the FreeBSD core team only release a new version of FreeBSD when they believe that there are sufficient new features and/or bug fixes to justify one, and are satisfied that the changes made have settled down sufficiently to avoid compromising the stability of the release. Many users regard this caution as one of the best things about FreeBSD, although it can be a little frustrating when waiting for all the latest goodies to become available... Releases are made about every 4 months on average. For people needing (or wanting) a little more excitement, there are SNAPs released more frequently, particularly during the month or so leading up to a release. Is FreeBSD only available for PCs ? FreeBSD 3.x currently runs on the DEC Alpha as well as the x86 architecture. Some interest has also been expressed in a SPARC port, but details on this project are not yet clear. If your machine has a different architecture and you need something right now, we suggest you look at NetBSD or OpenBSD. Who is responsible for FreeBSD? The key decisions concerning the FreeBSD project, such as the overall direction of the project and who is allowed to add code to the source tree, are made by a core team of some 15 people. There is a much larger team of over 150 committers who are authorized to make changes directly to the FreeBSD source tree. However, most non-trivial changes are discussed in advance in the mailing lists, and there are no restrictions on who may take part in the discussion. Where can I get FreeBSD? Every significant release of FreeBSD is available via anonymous ftp from the FreeBSD FTP site: For the current 2.2-stable release, 2.2.8R, see the 2.2.8-RELEASE directory. For the current 3.0-stable release, 3.0-RELEASE, see the 3.0-RELEASE directory. 2.2 Snapshot releases are made once a day along the RELENG_2_2 branch (post 2.2.8) as it slowly winds down in maintenance mode. The RELENG_2_2 branch is currently being carefully maintained by the legacy support folks and no changes other than those strictly necessary for security or reliability enhancements are now made. 3.0 Snapshot releases are also made once a day along the RELENG_3 branch (post 3.0-release) as it continues on its way towards 3.2-RELEASE. 4.0 Snapshot releases are made once a day for the -current branch, these being of service purely to bleeding-edge testers and developers. FreeBSD is also available via CDROM, from the following place(s):
Walnut Creek CDROM 4041 Pike Lane, Suite F Concord, CA 94520 USA Orders: +1 800 786-9907 Questions: +1 925 674-0783 FAX: +1 925 674-0821 email: WC Orders address WWW: WC Home page
In Australia, you may find it at:
Advanced Multimedia Distributors Factory 1/1 Ovata Drive Tullamarine, Melbourne Victoria Australia Voice: +61 3 9338 6777 CDROM Support BBS 17 Irvine St Peppermint Grove WA 6011 Voice: +61 9 385-3793 Fax: +61 9 385-2360
And in the UK:
The Public Domain & Shareware Library Winscombe House, Beacon Rd Crowborough Sussex. TN6 1UL Voice: +44 1892 663-298 Fax: +44 1892 667-473
Where do I find info on the FreeBSD mailing lists? You can find full information in the Handbook entry on mailing-lists. Where do I find the FreeBSD Y2K info? You can find full information in the FreeBSD Y2K page. What FreeBSD news groups are available? You can find full information in theHandbook entry on newsgroups. Are there FreeBSD IRC (Internet Relay Chat) channels? Yes, most major IRC networks host a FreeBSD chat channel: Channel #FreeBSD on EFNet is a FreeBSD forum, but don't go there for tech support or to try and get folks there to help you avoid the pain of reading man pages or doing your own research. It is a chat channel, first and foremost, and topics there are just as likely to involve sex, sports or nuclear weapons as they are FreeBSD. You Have Been Warned! Available at server irc.chat.org. Channel #FreeBSD on DALNET is available at irc.dal.net in the US and irc.eu.dal.net in Europe. Channel #FreeBSD on UNDERNET is available at us.undernet.org in the US and eu.undernet.org in Europe. Same provisions as for EFNET apply - either don't ask questions or learn to ask amazingly politely if you want help. It's a chat channel, not a help channel. Finally, you can also join #FreeBSD on BSDNET, a smaller BSD only chat network, at irc.FreeBSD.org. This network attempts to do more tech support and not be as anarchistic as EFNET, UNDERNET or DALNET, but it's also nowhere near as popular as a result. Why not volunteer to answer FreeBSD questions on BSDNET today? Each of these channels are distinct and are not connected to each other. Their chat styles also differ, so you may need to try each to find one suited to your chat style. As with *all* types of IRC traffic, if you're easily offended or can't deal with lots of young people (and more than a few older ones) doing the verbal equivalent of jello wrestling, don't even bother with it. Books on FreeBSD There is a FreeBSD Documentation Project which you may contact (or even better, join) on the doc mailing list: <freebsd-doc@FreeBSD.org>. This list is for discussion of the FreeBSD documentation. For actual questions about FreeBSD, there is the questions mailing list: <freebsd-questions@FreeBSD.org>. A FreeBSD ``handbook'' is available, and can be found as: the FreeBSD Handbook. Note that this is a work in progress, and so parts may be incomplete. The definitive printed guide on FreeBSD is ``The Complete FreeBSD'', written by Greg Lehey and published by Walnut Creek CDROM Books. Now in its second edition, the book contains 1,750 pages of install & system administration guidance, program setup help, and manual pages. The book (and current FreeBSD release) can be ordered from Walnut Creek, CheapBytes, or at your favorite bookstore. The ISBN is 1-57176-227-2. However, as FreeBSD 2.2.X is based upon Berkeley 4.4BSD-Lite2, most of the 4.4BSD manuals are applicable to FreeBSD 2.2.X. O'Reilly and Associates publishes these manuals: 4.4BSD System Manager's Manual By Computer Systems Research Group, UC Berkeley 1st Edition June 1994, 804 pages ISBN: 1-56592-080-5 4.4BSD User's Reference Manual By Computer Systems Research Group, UC Berkeley 1st Edition June 1994, 905 pages ISBN: 1-56592-075-9 4.4BSD User's Supplementary Documents By Computer Systems Research Group, UC Berkeley 1st Edition July 1994, 712 pages ISBN: 1-56592-076-7 4.4BSD Programmer's Reference Manual By Computer Systems Research Group, UC Berkeley 1st Edition June 1994, 886 pages ISBN: 1-56592-078-3 4.4BSD Programmer's Supplementary Documents By Computer Systems Research Group, UC Berkeley 1st Edition July 1994, 596 pages ISBN: 1-56592-079-1 A description of these can be found via WWW as: 4.4BSD books description. Due to poor sales, however, these manuals may be hard to get a hold of. For a more in-depth look at the 4.4BSD kernel organization, you can't go wrong with: McKusick, Marshall Kirk, Keith Bostic, Michael J Karels, and John Quarterman. The Design and Implementation of the 4.4BSD Operating System. Reading, Mass. : Addison-Wesley, 1996. ISBN 0-201-54979-4 A good book on system administration is: Evi Nemeth, Garth Snyder, Scott Seebass & Trent R. Hein, ``Unix System Administration Handbook'', Prentice-Hall, 1995 ISBN: 0-13-151051-7 NOTE make sure you get the second edition, with a red cover, instead of the first edition. This book covers the basics, as well as TCP/IP, DNS, NFS, SLIP/PPP, sendmail, INN/NNTP, printing, etc.. It's expensive (approx. US$45-$55), but worth it. It also includes a CDROM with the sources for various tools; most of these, however, are also on the FreeBSD 2.2.6R CDROM (and the FreeBSD CDROM often has newer versions). How do I access your Problem Report database? The Problem Report database of all open user change requests may be queried (or submitted to) by using our web-based PR submission and query interfaces. The send-pr(1) command can also be used to submit problem reports and change requests via electronic mail. Where can I get ASCII/PostScript versions of the FAQ? The up-to-date FAQ is available from the FreeBSD Web Server or any mirror as PostScript and plain text (7 bit ASCII and 8-bit Latin1). As PostScript (about 370KB): http://www.FreeBSD.org/FAQ/FAQ.ps As ASCII text (about 220KB): http://www.FreeBSD.org/FAQ/FAQ.ascii As ISO 8859-1 text (about 220KB): http://www.FreeBSD.org/FAQ/FAQ.latin1 Where can I get ASCII/PostScript versions of the Handbook? The up-to-date Handbook is available from the FreeBSD Web Server or any mirror as PostScript and plain text (7 bit ASCII and 8-bit Latin1). As PostScript (about 1.7MB): http://www.FreeBSD.org/handbook/handbook.ps As ASCII text (about 1080KB): http://www.FreeBSD.org/handbook/handbook.ascii As ISO 8859-1 text (about 1080KB): http://www.FreeBSD.org/handbook/handbook.latin1 The ASCII handbook isn't plain text! True, the ASCII and Latin1 versions of the FAQ and Handbook aren't strictly plaintext; they contain underlines and overprints that assume the output is going directly to a dot matrix printer. If you need to reformat them to be human-readable, run the file through col: $ col -b < inputfile > outputfile I'd like to become a FreeBSD Web mirror! Certainly! There are multiple ways to mirror the Web pages. Using CVSUP: You can retrieve the formatted files using CVSUP from cvsup.FreeBSD.org. Add this line to your cvsup file: www release=current hostname=/home base=/usr/local/etc/cvsup prefix=/usr/local/www/data/www.FreeBSD.org delete old use-rel-suffix Using rsync: See the mirroring page for information. Using ftp mirror: You can download the FTP server's copy of the web site using your favorite ftp mirror tool. Simply start at ftp://ftp.FreeBSD.org/pub/FreeBSD/FreeBSD-current/www. I'd like to translate the documentation into Friesian. Well, we can't pay, but we might arrange a free CD or T-shirt and a Contributor's Handbook entry if you submit a translation of the documentation. Other sources of information. The following newsgroups contain pertinent discussion for FreeBSD users: comp.unix.bsd.freebsd.announce (moderated) comp.unix.bsd.freebsd.misc comp.unix.bsd.misc Web resources: The FreeBSD Home Page. If you have a laptop, be sure and see Tatsumi Hosokawa's Mobile Computing page in Japan. For information on SMP (Symmetric MultiProcessing), please see the SMP support page. For information on FreeBSD multimedia applications, please see the multimediapage. If you're interested specifically in the Bt848 video capture chip, then follow that link. The FreeBSD handbook also has a fairly complete bibliography section which is worth reading if you're looking for actual books to buy.
Installation Which file do I download to get FreeBSD? You generally need just one floppy image, the floppies/boot.flp file, which you image-copy onto a 1.44MB floppy and then boot from in order to download the rest (and the installation will manage your TCP/IP connection, deal with tapes, CDROMs, floppies, DOS partitions, whatever's necessary to get the rest of the bits installed). If you need to download the distributions yourself (for a DOS filesystem install, for instance), below are some recommendations for distributions to grab: bin/ manpages/ compat*/ doc/ src/ssys.* Full instructions on this procedure and a little bit more about installation issues in general can be found in the Handbook entry on installing FreeBSD. Help! The boot floppy image will not fit on a single floppy! A 3.5 inch (1.44MB) floppy can accomodate 1474560 bytes of data. The boot image is exactly 1474560 bytes in size. Common mistakes when preparing the boot floppy are: Not downloading the floppy image in binary mode when using FTP. Some FTP clients default their transfer mode to ascii and attempt to change any end-of-line characters received to match the conventions used by the client's system. This will almost invariably corrupt the boot image. Check the size of the downloaded boot image: if it is not exactly that on the server, then the download process is suspect. To workaround: type binary at the FTP command prompt after getting connected to the server and before starting the download of the image. Using the DOS copy command (or equivalent GUI tool) to transfer the boot image to floppy. Programs like copy will not work as the boot image has been created to be booted into directly. The image has the complete content of the floppy, track for track, and is not meant to be placed on the floppy as a regular file. You have to transfer it to the floppy ``raw'', using the low-level tools (e.g. fdimage or rawrite) described in the installation guide to FreeBSD. Where are the instructions for installing FreeBSD? Installation instructions can be found in the Handbook entry on installing FreeBSD. What do I need in order to run FreeBSD? You'll need a 386 or better PC, with 5 MB or more of RAM and at least 60 MB of hard disk space. It can run with a low end MDA graphics card but to run X11R6, a VGA or better video card is needed. See also the section on I have only 4 MB of RAM. Can I install FreeBSD? FreeBSD 2.1.7 was the last version of FreeBSD that could be installed on a 4MB system. Newer versions of FreeBSD, like 2.2, need at least 5MB to install on a new system. All versions of FreeBSD, including 3.0, will RUN in 4MB of ram, they just can't run the installation program in 4MB. You can add extra memory for the install process, if you like, and then after the system is up and running, go back to 4MB. Or you could always just swap your disk into a system which has >4MB, install onto it and then swap it back. There are also situations in which FreeBSD 2.1.7 will not install in 4 MB. To be exact: it does not install with 640 kB base + 3 MB extended memory. If your motherboard can remap some of the ``lost'' memory out of the 640kB to 1MB region, then you may still be able to get FreeBSD 2.1.7 up. Try to go into your BIOS setup and look for a ``remap'' option. Enable it. You may also have to disable ROM shadowing. It may be easier to get 4 more MB just for the install. Build a custom kernel with only the options you need and then get the 4 MB out again. You may also install 2.0.5 and then upgrade your system to 2.1.7 with the ``upgrade'' option of the 2.1.7 installation program. After the installation, if you build a custom kernel, it will run in 4 MB. Someone has even succeeded in booting with 2 MB (the system was almost unusable though :-)) How can I make my own custom install floppy? Currently there's no way to *just* make a custom install floppy. You have to cut a whole new release, which will include your install floppy. There's some code in /usr/src/release/floppies/Makefile that's supposed to let you *just* make those floppies, but it's not really gelled yet. To make a custom release, follow the instructions here. Can I have more than one operating system on my PC? Have a look at The multi-OS page. Can Windows 95 co-exist with FreeBSD? Install Windows 95 first, after that FreeBSD. FreeBSD's boot manager will then manage to boot Win95 and FreeBSD. If you install Windows 95 second, it will boorishly overwrite your boot manager without even asking. If that happens, see the next section. Windows 95 killed my boot manager! How do I get it back? You can reinstall the boot manager FreeBSD comes with in one of two ways: Running DOS, go into the tools/ directory of your FreeBSD distribution and look for bootinst.exe. You run it like so: bootinst.exe boot.bin and the boot manager will be reinstalled. Boot the FreeBSD boot floppy again and go to the Custom installation menu item. Choose Partition. Select the drive which used to contain your boot manager (likely the first one) and when you come to the partition editor for it, as the very first thing (e.g. do not make any changes) select (W)rite. This will ask for confirmation, say yes, and when you get the Boot Manager selection prompt, be sure to select "Boot Manager." This will re-write the boot manager to disk. Now quit out of the installation menu and reboot off the hard disk as normal. Can I install on a disk with bad blocks? FreeBSD's bad block (the bad144 command) handling is still not 100% (to put it charitably) and it must unfortunately be said that if you've got an IDE or ESDI drive with lots of bad blocks, then FreeBSD is probably not for you! That said, it does work on thousands of IDE based systems, so you'd do well to try it first before simply giving up. If you have a SCSI drive with bad blocks, see this answer. Strange things happen when I boot the install floppy! If you're seeing things like the machine grinding to a halt or spontaneously rebooting when you try to boot the install floppy, here are three questions to ask yourself:- Did you use a new, freshly-formatted, error-free floppy (preferably a brand-new one straight out of the box, as opposed to the magazine coverdisk that's been lying under the bed for the last three years)? Did you download the floppy image in binary (or image) mode? (don't be embarrassed, even the best of us have accidentally downloaded a binary file in ASCII mode at least once!) If you're using one of these new-fangled operating systems like Windows95 or Windows NT, did you shut it down and restart the system in plain, honest DOS? It seems these OS's can interfere with programs that write directly to hardware, which the disk creation program does; even running it inside a DOS shell in the GUI can cause this problem. There have also been reports of Netscape causing problems when downloading the boot floppy, so it's probably best to use a different FTP client if you can. Help! I can't install from tape! If you are installing 2.1.7R from tape, you must create the tape using a tar blocksize of 10 (5120 bytes). The default tar blocksize is 20 (10240 bytes), and tapes created using this default size cannot be used to install 2.1.7R; with these tapes, you will get an error that complains about the record size being too big. Connect two FreeBSD boxes over a parallel line (PLIP) Get a laplink cable. Make sure both computer have a kernel with lpt driver support. $ dmesg | grep lp lpt0 at 0x378-0x37f irq 7 on isa lpt0: Interrupt-driven port lp0: TCP/IP capable interface Plug in the laplink cable into the parallel interface. Configure the network interface parameters for lp0 on both sites as root. For example, if you want connect the host max with moritz max <-----> moritz IP Address 10.0.0.1 10.0.0.2 on max start # ifconfig lp0 10.0.0.1 10.0.0.2 on moritz start # ifconfig lp0 10.0.0.2 10.0.0.1 Thats all! Please read also the manpages lp(4) and lpt(4). You should also add the hosts to /etc/hosts 127.0.0.1 localhost.my.domain localhost 10.0.0.1 max.my.domain max 10.0.0.2 moritz.my.domain moritz To check if it works do: on max: $ ifconfig lp0 lp0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 10.0.0.1 --> 10.0.0.2 netmask 0xff000000 $ netstat -r Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire moritz max UH 4 127592 lp0 $ ping -c 4 moritz PING moritz (10.0.0.2): 56 data bytes 64 bytes from 10.0.0.2: icmp_seq=0 ttl=255 time=2.774 ms 64 bytes from 10.0.0.2: icmp_seq=1 ttl=255 time=2.530 ms 64 bytes from 10.0.0.2: icmp_seq=2 ttl=255 time=2.556 ms 64 bytes from 10.0.0.2: icmp_seq=3 ttl=255 time=2.714 ms --- moritz ping statistics --- 4 packets transmitted, 4 packets received, 0% packet loss round-trip min/avg/max/stddev = 2.530/2.643/2.774/0.103 ms Can I install on my laptop over PLIP (Parallel Line IP)? Connect the two computers using a Laplink parallel cable to use this feature: +----------------------------------------+ |A-name A-End B-End Descr. Port/Bit | +----------------------------------------+ |DATA0 2 15 Data 0/0x01 | |-ERROR 15 2 1/0x08 | +----------------------------------------+ |DATA1 3 13 Data 0/0x02 | |+SLCT 13 3 1/0x10 | +----------------------------------------+ |DATA2 4 12 Data 0/0x04 | |+PE 12 4 1/0x20 | +----------------------------------------+ |DATA3 5 10 Strobe 0/0x08 | |-ACK 10 5 1/0x40 | +----------------------------------------+ |DATA4 6 11 Data 0/0x10 | |BUSY 11 6 1/0x80 | +----------------------------------------+ |GND 18-25 18-25 GND - | +----------------------------------------+ See also this note on the Mobile Computing page. Which geometry should I use for a disk drive? (By the "geometry" of a disk, we mean the number of cylinders, heads and sectors/track on a disk - I'll refer to this as C/H/S for convenience. This is how the PC's BIOS works out which area on a disk to read/write from). This seems to cause a lot of confusion for some reason. First of all, the physical geometry of a SCSI drive is totally irrelevant, as FreeBSD works in term of disk blocks. In fact, there is no such thing as "the" physical geometry, as the sector density varies across the disk - what manufacturers claim is the "true" physical geometry is usually the geometry that they've worked out results in the least wasted space. For IDE disks, FreeBSD does work in terms of C/H/S, but all modern drives will convert this into block references internally as well. All that matters is the logical geometry - the answer that the BIOS gets when it asks "what is your geometry?" and then uses to access the disk. As FreeBSD uses the BIOS when booting, it's very important to get this right. In particular, if you have more than one operating system on a disk, they must all agree on the geometry, otherwise you will have serious problems booting! For SCSI disks, the geometry to use depends on whether extended translation support is turned on in your controller (this is often referred to as "support for DOS disks >1GB" or something similar). If it's turned off, then use N cylinders, 64 heads and 32 sectors/track, where 'N' is the capacity of the disk in MB. For example, a 2GB disk should pretend to have 2048 cylinders, 64 heads and 32 sectors/track. If it is turned on (it's often supplied this way to get around certain limitations in MSDOS) and the disk capacity is more than 1GB, use M cylinders, 63 sectors per track (*not* 64), and 255 heads, where 'M' is the disk capacity in MB divided by 7.844238 (!). So our example 2GB drive would have 261 cylinders, 63 sectors per track and 255 heads. If you are not sure about this, or FreeBSD fails to detect the geometry correctly during installation, the simplest way around this is usually to create a small DOS partition on the disk. The correct geometry should then be detected (and you can always remove the DOS partition in the partition editor if you don't want to keep it, or leave it around for programming network cards and the like). Alternatively, there is a freely available utility distributed with FreeBSD called ``pfdisk.exe'' (located in the tools subdirectory on the FreeBSD CDROM or on the various FreeBSD ftp sites) which can be used to work out what geometry the other operating systems on the disk are using. You can then enter this geometry in the partition editor. Any restrictions on how I divide the disk up? Yes. You must make sure that your root partition is below 1024 cylinders so the BIOS can boot the kernel from it. (Note that this is a limitation in the PC's BIOS, not FreeBSD). For a SCSI drive, this will normally imply that the root partition will be in the first 1024MB (or in the first 4096MB if extended translation is turned on - see previous question). For IDE, the corresponding figure is 504MB. What about disk managers? Or, I have a large drive! FreeBSD recognizes the Ontrack Disk Manager and makes allowances for it. Other disk managers are not supported. If you just want to use the disk with FreeBSD you don't need a disk manager. Just configure the disk for as much space as the BIOS can deal with (usually 504 megabytes), and FreeBSD should figure out how much space you really have. If you're using an old disk with an MFM controller, you may need to explicitly tell FreeBSD how many cylinders to use. If you want to use the disk with FreeBSD and another operating system, you may be able to do without a disk manager: just make sure the the FreeBSD boot partition and the slice for the other operating system are in the first 1024 cylinders. If you're reasonably careful, a 20 megabyte boot partition should be plenty. When I boot FreeBSD I get ``Missing Operating System'' This is classically a case of FreeBSD and DOS or some other OS conflicting over their ideas of disk geometry. You will have to reinstall FreeBSD, but obeying the instructions given above will almost always get you going. I can't get past the boot manager's `F?' prompt. This is another symptom of the problem described in the preceding question. Your BIOS geometry and FreeBSD geometry settings do not agree! If your controller or BIOS supports cylinder translation (often marked as ``>1GB drive support''), try toggling its setting and reinstalling FreeBSD. I have >16MB of RAM. Will this cause any problems? Apart from performance issues, no. FreeBSD 2.X comes with bounce buffers which allow your bus mastering controller access to greater than 16MB. (Note that this should only be required if you are using ISA devices, although one or two broken EISA and VLB devices may need it as well). Also look at the section on >64M machines if you have that much memory, or if you're using a Compaq or other BIOS that lies about the available memory. Do I need to install the complete sources? In general, no. However, we would strongly recommend that you install, at a minimum, the ``base'' source kit, which includes several of the files mentioned here, and the ``sys'' (kernel) source kit, which includes sources for the kernel. There is nothing in the system which requires the presence of the sources to operate, however, except for the kernel-configuration program config. With the exception of the kernel sources, our build structure is set up so that you can read-only mount the sources from elsewhere via NFS and still be able to make new binaries. (Because of the kernel-source restriction, we recommend that you not mount this on /usr/src directly, but rather in some other location with appropriate symbolic links to duplicate the top-level structure of the source tree.) Having the sources on-line and knowing how to build a system with them will make it much easier for you to upgrade to future releases of FreeBSD. To actually select a subset of the sources, use the Custom menu item when you are in the Distributions menu of the system installation tool. The src/install.sh script will also install partial pieces of the source distribution, depending on the arguments you pass it. Do I need to build a kernel? Building a new kernel was originally pretty much a required step in a FreeBSD installation, but more recent releases have benefited from the introduction of a much friendlier kernel configuration tool. When at the FreeBSD boot prompt (boot:), use the "-c" flag and you will be dropped into a visual configuration screen which allows you to configure the kernel's settings for most common ISA cards. It's still recommended that you eventually build a new kernel containing just the drivers that you need, just to save a bit of RAM, but it's no longer a strict requirement for most systems. I live outside the US. Can I use DES encryption? If it is not absolutely imperative that you use DES style encryption, you can use FreeBSD's default encryption for even better security, and with no export restrictions. FreeBSD 2.0's password default scrambler is now MD5-based, and is more CPU-intensive to crack with an automated password cracker than DES, and allows longer passwords as well. The only reason for not using the MD5-based crypt today would be to use the the same password entries on FreeBSD and non-FreeBSD systems. Since the DES encryption algorithm cannot legally be exported from the US, non-US users should not download this software (as part of the secrdist from US FTP sites. There is however a replacement libcrypt available, based on sources written in Australia by David Burren. This code is now available on some non-US FreeBSD mirror sites. Sources for the unencumbered libcrypt, and binaries of the programs which use it, can be obtained from the following FTP sites: South Africa ftp://ftp.internat.FreeBSD.org/pub/FreeBSD ftp://storm.sea.uct.ac.za/pub/FreeBSD Brazil ftp://ftp.iqm.unicamp.br/pub/FreeBSD Finland ftp://nic.funet.fi/pub/unix/FreeBSD/eurocrypt The non-US securedist can be used as a direct replacement for the encumbered US securedist. This securedist package is installed the same way as the US package (see installation notes for details). If you are going to install DES encryption, you should do so as soon as possible, before installing other software. Non-US users should please not download any encryption software from the USA. This can get the maintainers of the sites from which the software is downloaded into severe legal difficulties. A non-US distribution of Kerberos is also being developed, and current versions can generally be obtained by anonymous FTP from braae.ru.ac.za. There is also a mailing list for the discussion of non-US encryption software. For more information, send an email message with a single line saying ``help'' in the body of your message to majordomo@braae.ru.ac.za. The boot floppy starts but hangs at the ``Probing Devices...'' screen. If you have a IDE Zip or Jaz drive installed, remove it and try again. The boot floppy can get confused by the drives. After the system is installed you can reconnect the drive. Hopefully this will be fixed in a later release. I get a ``panic: cant mount root'' error when rebooting the system after installation. This error comes from confusion between the boot block's and the kernel's understanding of the disk devices. The error usually manifests on two-disk IDE systems, with the hard disks arranged as the master or single device on separate IDE controllers, with FreeBSD installed on the secondary IDE controller. The boot blocks think the system is installed on wd1 (the second BIOS disk) while the kernel assigns the first disk on the secondary controller device wd2. After the device probing, the kernel tries to mount what the boot blocks think is the boot disk, wd1, while it is really wd2, and fails. To fix the problem, do one of the following: At the Boot: prompt, enter 1:wd(2,a)kernel and press Enter. If the system starts, then run the command echo "1:wd(2,a)kernel" > /boot.config to make it the default boot string. Move the FreeBSD disk onto the primary IDE controller, so the hard disks are consecutive. Rebuild your kernel, modify the wd configuration lines to read: controller wdc0 at isa? port "IO_WD1" bio irq 14 vector wdintr disk wd0 at wdc0 drive 0 # disk wd1 at wdc0 drive 1 # comment out this line controller wdc1 at isa? port "IO_WD2" bio irq 15 vector wdintr disk wd1 at wdc1 drive 0 # change from wd2 to wd1 disk wd2 at wdc1 drive 1 # change from wd3 to wd2 Install the new kernel. If you moved your disks and wish to restore the previous configuration, replace the disks in the desired configuration and reboot. Your system should boot successfully. What are the limits for memory? For memory, the (theoretical) limit is 4 gigabytes. One gigabyte has been tested; you generally can't buy i386 PCs that can support much more than that. What are the limits for ffs filesystems? For ffs filesystems, the maximum theoretical limit is 8 terabytes (2G blocks), or 16TB for the default block size of 8K. In practice, there is a soft limit of 1 terabyte, but with modifications filesystems with 4 terabytes are possible (and exist). The maximum size of a single ffs file is approximately 1G blocks (4TB) if the block size is 4K. maxfilesize ---------------------------------- 2.2.7 3.0 fs block size -stable -current works should-work ------------- ------- -------- ----- ----------- 4K 4T-1 4T-1 4T-1 4+T 8K 32+G 8T-1 32+G 16T-1 16K 128+G 16T-1 128+G 32T-1 32K 512+G 32T-1 512+G 64T-1 64K 2048+G 64T-1 2048+G 128T-1 When the fs block size is 4K, triple indirect blocks work and everything should be limited by the maximum fs block number that can be represented using triple indirect blocks (approx. 1K^3 + 1K^2 + 1K), but everything is limited by a (wrong) limit of 1G-1 on fs block numbers. The limit on fs block numbers should be 2G-1. There are some bugs for fs block numbers near 2G-1, but such block numbers are unreachable when the fs block size is 4K. For block sizes of 8K and larger, everything should be limited by the 2G-1 limit on fs block numbers, but is actually limited by the 1G-1 limit on fs block numbers, except under -stable triple indirect blocks are unreachable, so the limit is the maxiumum fs block number that can be represented using double indirect blocks (approx. (blocksize/4)^2 + (blocksize/4)), and under -current exceeding this limit may cause problems. Using the correct limit of 2G-1 blocks does cause problems. How can I put 1TB files on my floppy? I keep several virtual ones on floppies :-). The maxiumum file size is not closely related to the maximum disk size. The maximum disk size is 1TB. It is a feature that the file size can be larger than the disk size. The following example creates a file of size 8T-1 using a whole 32K of disk space (3 indirect blocks and 1 data block) on a small root partition. The dd command requires a dd that works with large files. ttyv0:bde@alphplex:/tmp/q> cat foo df . dd if=/dev/zero of=z bs=1 seek=`echo 2^43 - 2 | bc` count=1 ls -l z du z df . ttyv0:bde@alphplex:/tmp/q> sh foo Filesystem 1024-blocks Used Avail Capacity Mounted on /dev/sd0a 64479 27702 31619 47% / 1+0 records in 1+0 records out 1 bytes transferred in 0.000187 secs (5346 bytes/sec) -rw-r--r-- 1 bde bin 8796093022207 Sep 7 16:04 z 32 z Filesystem 1024-blocks Used Avail Capacity Mounted on /dev/sd0a 64479 27734 31587 47% / ttyv0:bde@alphplex:/tmp/q> exit Bruce Evans, September 1998 I compiled a new kernel and now I get the error message "archsw.readin.failed" when booting. You can boot by specifying the kernel directly at the second stage, pressing any key when the | shows up before loader is started. More specifically, you have upgraded the source for your kernel, and installed a new kernel builtin from them without making world. This is not supported. Make world. Hardware compatibility What kind of hard drives does FreeBSD support? FreeBSD supports EIDE and SCSI drives (with a compatible controller; see the next section), and all drives using the original "Western Digital" interface (MFM, RLL, ESDI, and of course IDE). A few ESDI controllers that use proprietary interfaces may not work: stick to WD1002/3/6/7 interfaces and clones. Which SCSI controllers are supported? See the complete list in the Handbook. Which CD-ROM drives are supported by FreeBSD? Any SCSI drive connected to a supported controller is supported. The following proprietary CD-ROM interfaces are also supported: Mitsumi LU002 (8bit), LU005 (16bit) and FX001D (16bit 2x Speed). Sony CDU 31/33A Sound Blaster Non-SCSI CD-ROM Matsushita/Panasonic CD-ROM ATAPI compatible IDE CD-ROMs All non-SCSI cards are known to be extremely slow compared to SCSI drives, and some ATAPI CDROMs may not work. As of 2.2 the FreeBSD CDROM from Walnut Creek supports booting directly from the CD. Does FreeBSD support ZIP drives? FreeBSD supports the SCSI ZIP drive out of the box, of course. The ZIP drive can only be set to run at SCSI target IDs 5 or 6, but if your SCSI host adapter's BIOS supports it you can even boot from it. I don't know which host adapters let you boot from targets other than 0 or 1... look at your docs (and let me know if it works out for you). ATAPI (IDE) Zip drives are supported in FreeBSD 2.2.6 and later releases. FreeBSD has contained support for Parallel Port Zip Drives since version 3.0. If you are using a sufficiently up to date version, then you should check that your kernel contains the scbus0, da0, ppbus0, and vp0 drivers (the GENERIC kernel contains everything except vp0). With all these drivers present, the Parallel Port drive should be available as /dev/da0s4. Disks can be mounted using mount /dev/da0s4 /mnt OR (for dos disks) mount_msdos /dev/da0s4 /mnt as appropriate. Also check out this note on removable drives, and this note on 'formatting'. Does FreeBSD support JAZ, EZ and other removable drives? Apart from the IDE version of the EZ drive, these are all SCSI devices, so the should all look like SCSI disks to FreeBSD, and the IDE EZ should look like an IDE drive. I'm not sure how well FreeBSD supports changing the media out while running. You will of course need to dismount the drive before swapping media, and make sure that any external units are powered on when you boot the system so FreeBSD can see them. See this note on 'formatting'. Which multi-port serial cards are supported by FreeBSD? There is a list of these in the Miscellaneous devices section of the handbook. Some unnamed clone cards have also been known to work, especially those that claim to be AST compatible. Check the sio man page to get more information on configuring such cards. I have an unusual bus mouse. How do I set it up? FreeBSD supports the bus mouse and the InPort bus mouse from such manufactures as Microsoft, Logitech and ATI. The bus device driver is compiled in the GENERIC kernel by default. If you are building a custom kernel with the bus mouse driver, make sure to add the following line to the kernel config file: device mse0 at isa? port 0x23c tty irq5 vector mseintr The bus mouse usually comes with an dedicatd interface card. It may allow you to set the port address and the IRQ number other than shown above. Refer to the manual of your mouse and the mse man page for more information. How do I use my PS/2 (``mouse port'' or ``keyboard'') mouse? If you're running a post-2.2.5 version of FreeBSD, the necessary driver, psm, is included and enabled in the kernel. The kernel should detect your PS/2 mouse at boot time. If you're running a previous but relatively recent version of FreeBSD (2.1.x or better) then you can simply enable it in the kernel configuration menu at installation time, otherwise later with -c at the boot: prompt. It is disabled by default, so you will need to enable it explicitly. If you're running an older version of FreeBSD then you'll have to add the following lines to your kernel configuration file and compile a new kernel: device psm0 at isa? port "IO_KBD" conflicts tty irq 12 vector psmintr See the Handbook entry on configuring the kernel if you've no experience with building kernels. Once you have a kernel detecting psm0 correctly at boot time, make sure that an entry for psm0 exists in /dev. You can do this by typing: cd /dev; sh MAKEDEV psm0 when logged in as root. Is it possible to make use of a mouse in any way outside the X Window? If you are using the default console driver, syscons, you can use a mouse pointer in text consoles to cut & paste text. Run the mouse daemon, moused, and turn on the mouse pointer in the virtual console: moused -p /dev/xxxx -t yyyy vidcontrol -m on Where xxxx is the mouse device name and yyyy is a protocol type for the mouse. See the moused man page for supported protocol types. You may wish to run the mouse daemon automatically when the system starts. In version 2.2.1, set the following variables in /etc/sysconfig. mousedtype="yyyy" mousedport="xxxx" mousedflags="" In versions 2.2.2 or later, set the following variables in /etc/rc.conf. moused_type="yyyy" moused_port="xxxx" moused_flags="" Staring from FreeBSD 2.2.6, the mouse daemon is capable of determining the correct protocol type automatically unless the mouse is a relatively old serial mouse model. Specify ``auto'' as the protocol to invoke automatic detection. When the mouse daemon is running, access to the mouse needs to be coordinated between the mouse daemon and other programs such as the X Window. Refer to another section on this issue". How do I cut and paste text with mouse in the text console? Once you get the mouse daemon running (see previous section), hold down the button 1 (left button) and move the mouse to select a region of text. Then, press the button 2 (middle button) or the button 3 (right button) to paste it at the text cursor. In versions 2.2.6 and later, pressing the button 2 will paste the text. Pressing the button 3 will ``extend'' the selected region of text. If your mouse does not have the middle button, you may wish to emulate it or remap buttons using moused options. See the moused man page for details. My mouse has a fancy wheel and buttons. Can I use them in FreeBSD? The answer is, unfortunately, ``It depends.'' These mice with additional features require specialized driver in most cases. Unless the mouse device driver or the user program has specific support for the mouse, it will act just like a standard two, or three button mouse. How do I use the mouse/trackball/touchpad on my laptop? Please refer to the answer to the previous question. And check out this note on the Mobile Computing page. What types of tape drives are supported? FreeBSD supports SCSI, QIC-36 (with a QIC-02 interface) and QIC-40/80 (Floppy based) tape drives. This includes 8-mm (aka Exabyte) and DAT drives. The QIC-40/80 drives are known to be slow. Some of the early 8-mm drives are not quite compatible with SCSI-2, and may not work well with FreeBSD. Does FreeBSD support tape changers? FreeBSD 2.2 supports SCSI changers using the ch device and the chio command. The details of how you actually control the changer can be found in the chio man page. If you're not using AMANDA or some other product that already understands changers, remember that they're only know how to move a tape from one point to another, so you need to keep track of which slot a tape is in, and which slot the tape currently in the drive needs to go back to. Which sound cards are supported by FreeBSD? FreeBSD supports the SoundBlaster, SoundBlaster Pro, SoundBlaster 16, Pro Audio Spectrum 16, AdLib and Gravis UltraSound sound cards. There is also limited support for MPU-401 and compatible MIDI cards. Cards conforming to the Microsoft Sound System specification are also supported through the pcm driver. NOTE This is only for sound! This driver does not support CD-ROMs, SCSI or joysticks on these cards, except for the SoundBlaster. The SoundBlaster SCSI interface and some non-SCSI CDROMS are supported, but you can't boot off this device. Workarounds for no sound from es1370 with pcm driver? You can run the following command everytime the machine booted up: mixer pcm 100 vol 100 cd 100 Which network cards does FreeBSD support? See the Ethernet cards section of the handbook for a more complete list. I don't have a math co-processor - is that bad? Note This will only affect 386/486SX/486SLC owners - other machines will have one built into the CPU. In general this will not cause any problems, but there are circumstances where you will take a hit, either in performance or accuracy of the math emulation code (see the section on FP emulation). In particular, drawing arcs in X will be VERY slow. It is highly recommended that you buy a math co-processor; it's well worth it. NOTE Some math co-processors are better than others. It pains us to say it, but nobody ever got fired for buying Intel. Unless you're sure it works with FreeBSD, beware of clones. What other devices does 2.X support? See the Handbook for the list of other devices supported. Does FreeBSD support power management on my laptop? FreeBSD supports APM on certain machines. Please look in the LINT kernel config file, searching for the APM keyword. My Micron system hangs at boot time Certain Micron motherboards have a non-conforming PCI BIOS implementation that causes grief when FreeBSD boots because PCI devices don't get configured at their reported addresses. Disable the "Plug and Play Operating System" flag in the BIOS to work around this problem. More information can be found at http://cesdis.gsfc.nasa.gov/linux/drivers/vortex.html#micron I have a newer Adaptec controller and FreeBSD can't find it. The newer AIC789x series Adaptec chips are supported under the CAM SCSI framework which made it's debut in 3.0. Patches against 2.2-STABLE are in ftp://ftp.FreeBSD.org/pub/FreeBSD/development/cam/. A CAM-enhanced boot floppy is available at http://www.FreeBSD.org/~abial/cam-boot/. In both cases read the README before beginning. I have an internal Plug & Play modem and FreeBSD can't find it. You will need to add the modem's PnP ID to the PnP ID list in the serial driver. To enable Plug & Play support, compile a new kernel with controller pnp0 in the configuration file, then reboot the system. The kernel will print the PnP IDs of all the devices it finds. Copy the PnP ID from the modem to the table in /sys/i386/isa/sio.c, at about line 2777. Look for the string "SUP1310" in the structure "siopnp_ids[]" to find the table. Build the kernel again, install, reboot, and your modem should be found. You may have to manually configure the PnP devices using the `pnp' command in the boot-time configuration with a command like pnp 1 0 enable os irq0 3 drq0 0 port0 0x2f8 to make the modem show. How do I get the boot: prompt to show on the serial console? Build a kernel with options COMCONSOLE. Create /boot.config and place as the only text in the file. Unplug the keyboard from the system. See /usr/src/sys/i386/boot/biosboot/README.serial for information. Why doesn't my 3Com PCI network card work with my Micron computer? Certain Micron motherboards have a non-conforming PCI BIOS implementation that does not configure PCI devices at the addresses reported. This causes grief when FreeBSD boots. To work around this problem, disable the "Plug and Play Operating System" flag in the BIOS. More information on this problem is available at URL: http://cesdis.gsfc.nasa.gov/linux/drivers/vortex.html#micron Does FreeBSD support Symmetric Multiproccessing (SMP)? SMP is supported in 3.0-STABLE and later releases only. Troubleshooting I have bad blocks on my hard drive! With SCSI drives, the drive should be capable of re-mapping these automatically. However, many drives are shipped with this feature disabled, for some mysterious reason... To enable this, you'll need to edit the first device page mode, which can be done on FreeBSD by giving the command (as root) scsi -f /dev/rsd0c -m 1 -e -P 3 and changing the values of AWRE and ARRE from 0 to 1:- AWRE (Auto Write Reallocation Enbld): 1 ARRE (Auto Read Reallocation Enbld): 1 The following paragraphs were submitted by Ted Mittelstaedt: For IDE drives, any bad block is usually a sign of potential trouble. All modern IDE drives come with internal bad-block remapping turned on. All IDE hard drive manufacturers today offer extensive warranties and will replace drives with bad blocks on them. If you still want to attempt to rescue an IDE drive with bad blocks, you can attempt to download the IDE drive manufacturer's IDE diagnostic program, and run this against the drive. Sometimes these programs can be set to force the drive electronics to rescan the drive for bad blocks and lock them out. For ESDI, RLL and MFM drives, bad blocks are a normal part of the drive and are no sign of trouble, generally. With a PC, the disk drive controller card and BIOS handle the task of locking out bad sectors. This is fine for operating systems like DOS that use BIOS code to access the disk. However, FreeBSD's disk driver does not go through BIOS, therefore a mechanism, bad144, exists that replaces this functionality. bad144 only works with the wd driver, it is NOT able to be used with SCSI. bad144 works by entering all bad sectors found into a special file. One caveat with bad144 - the bad block special file is placed on the last track of the disk. As this file may possibly contain a listing for a bad sector that would occur near the beginning of the disk, where the /kernel file might be located, it therefore must be accessible to the bootstrap program that uses BIOS calls to read the kernel file. This means that the disk with bad144 used on it must not exceed 1024 cylinders, 16 heads, and 63 sectors. This places an effective limit of 500MB on a disk that is mapped with bad144. To use bad144, simply set the "Bad Block" scanning to ON in the FreeBSD fdisk screen during the initial install. This works up through FreeBSD 2.2.7. The disk must have less than 1024 cylinders. It is generally recommended that the disk drive has been in operation for at least 4 hours prior to this to allow for thermal expansion and track wandering. If the disk has more than 1024 cylinders (such as a large ESDI drive) the ESDI controller uses a special translation mode to make it work under DOS. The wd driver understands about these translation modes, IF you enter the "translated" geometry with the "set geometry" command in fdisk. You must also NOT use the "dangerously dedicated" mode of creating the FreeBSD partition, as this ignores the geometry. Also, even though fdisk will use your overridden geometry, it still knows the true size of the disk, and will attempt to create a too large FreeBSD partition. If the disk geometry is changed to the translated geometry, the partition MUST be manually created with the number of blocks. A quick trick to use is to set up the large ESDI disk with the ESDI controller, boot it with a DOS disk and format it with a DOS partition. Then, boot the FreeBSD install and in the fdisk screen, read off and write down the blocksize and block numbers for the DOS partition. Then, reset the geometry to the same that DOS uses, delete the DOS partition, and create a "cooperative" FreeBSD partition using the blocksize you recorded earlier. Then, set the partition bootable and turn on bad block scanning. During the actual install, bad144 will run first, before any filesystems are created. (you can view this with an Alt-F2) If it has any trouble creating the badsector file, you have set too large a disk geometry - reboot the system and start all over again (including repartitioning and reformatting with DOS). If remapping is enabled and you are seeing bad blocks, consider replacing the drive. The bad blocks will only get worse as time goes on. FreeBSD does not recognize my Bustek 742a EISA SCSI! This info is specific to the 742a but may also cover other Buslogic cards. (Bustek = Buslogic) There are 2 general ``versions'' of the 742a card. They are hardware revisions A-G, and revisions H - onwards. The revision letter is located after the Assembly number on the edge of the card. The 742a has 2 ROM chips on it, one is the BIOS chip and the other is the Firmware chip. FreeBSD doesn't care what version of BIOS chip you have but it does care about what version of firmware chip. Buslogic will send upgrade ROMS out if you call their tech support dept. The BIOS and Firmware chips are shipped as a matched pair. You must have the most current Firmware ROM in your adapter card for your hardware revision. The REV A-G cards can only accept BIOS/Firmware sets up to 2.41/2.21. The REV H- up cards can accept the most current BIOS/Firmware sets of 4.70/3.37. The difference between the firmware sets is that the 3.37 firmware supports ``round robin'' The Buslogic cards also have a serial number on them. If you have a old hardware revision card you can call the Buslogic RMA department and give them the serial number and attempt to exchange the card for a newer hardware revision. If the card is young enough they will do so. FreeBSD 2.1 only supports Firmware revisions 2.21 onward. If you have a Firmware revision older than this your card will not be recognized as a Buslogic card. It may be recognized as an Adaptec 1540, however. The early Buslogic firmware contains an AHA1540 ``emulation'' mode. This is not a good thing for an EISA card, however. If you have an old hardware revision card and you obtain the 2.21 firmware for it, you will need to check the position of jumper W1 to B-C, the default is A-B. The 742a EISA cards never had the ``>16MB'' problem mentioned in the section on >16 MB machines. This is a problem that occurs with the Vesa-Local Buslogic SCSI cards. My HP Netserver's SCSI controller is not detected! This is basically a known problem. The EISA on-board SCSI controller in the HP Netserver machines occupies EISA slot number 11, so all the ``true'' EISA slots are in front of it. Alas, the address space for EISA slots >= 10 collides with the address space assigned to PCI, and FreeBSD's auto-configuration currently cannot handle this situation very well. So now, the best you can do is to pretend there is no address range clash :), by bumping the kernel option EISA_SLOTS to a value of 12. Configure and compile a kernel, as described in the Handbook entry on configuring the kernel. Of course, this does present you with a chicken-and-egg problem when installing on such a machine. In order to work around this problem, a special hack is available inside UserConfig. Do not use the ``visual'' interface, but the plain command-line interface there. Simply type eisa 12 quit at the prompt, and install your system as usual. While it's recommended you compile and install a custom kernel anyway, dset now also understands to save this value. Hopefully, future versions will have a proper fix for this problem. NOTE: You can not use a dangerously dedicated disk with an HP Netserver. See this note for more info. What's up with this CMD640 IDE controller? It's broken. It cannot handle commands on both channels simultaneously. There's a workaround available now and it is enabled automatically if your system uses this chip. For the details refer to the manual page of the disk driver (man 4 wd). If you're already running FreeBSD 2.2.1 or 2.2.2 with a CMD640 IDE controller and you want to use the second channel, build a new kernel with options "CMD640" enabled. This is the default for 2.2.5 and later. I keep seeing messages like ``ed1: timeout''. This is usually caused by an interrupt conflict (e.g., two boards using the same IRQ). FreeBSD prior to 2.0.5R used to be tolerant of this, and the network driver would still function in the presence of IRQ conflicts. However, with 2.0.5R and later, IRQ conflicts are no longer tolerated. Boot with the -c option and change the ed0/de0/... entry to match your board. If you're using the BNC connector on your network card, you may also see device timeouts because of bad termination. To check this, attach a terminator directly to the NIC (with no cable) and see if the error messages go away. Some NE2000 compatible cards will give this error if there is no link on the UTP port or if the cable is disconnected. When I mount a CDROM, I get ``Incorrect super block''. You have to tell mount the type of the device that you want to mount. By default, mount will assume the filesystem is of type ``ufs''. You want to mount a CDROM filesystem, and you do this by specifying the ``'' option to mount. This does, of course, assume that the CDROM contains an ISO 9660 filesystem, which is what most CDROMs have. As of 1.1R, FreeBSD automatically understands the Rock Ridge (long filename) extensions as well. As an example, if you want to mount the CDROM device, ``/dev/cd0c'', under /mnt, you would execute: mount -t cd9660 /dev/cd0c /mnt Note that your device name (``/dev/cd0c'' in this example) could be different, depending on the CDROM interface. Note that the ``'' option just causes the ``mount_cd9660'' command to be executed, and so the above example could be shortened to: mount_cd9660 /dev/cd0c /mnt When I mount a CDROM, I get ``Device not configured''. This generally means that there is no CDROM in the CDROM drive, or the drive is not visible on the bus. Feed the drive something, and/or check its master/slave status if it is IDE (ATAPI). It can take a couple of seconds for a CDROM drive to notice that it's been fed, so be patient. Sometimes a SCSI CD-ROM may be missed because it hadn't enough time to answer the bus reset. If you have a SCSI CD-ROM please try to add the following symbol into your kernel configuration file and recompile. options "SCSI_DELAY=15" My printer is ridiculously slow. What can I do ? If it's parallel, and the only problem is that it's terribly slow, try setting your printer port into ``polled'' mode: lptcontrol -p Some newer HP printers are claimed not to work correctly in interrupt mode, apparently due to some (not yet exactly understood) timing problem. My programs occasionally die with ``Signal 11'' errors. This can be caused by bad hardware (memory, motherboard, etc.). Try running a memory-testing program on your PC. Note that, even though every memory testing program you try will report your memory as being fine, it's possible for slightly marginal memory to pass all memory tests, yet fail under operating conditions (such as during bus mastering DMA from a SCSI controller like the Adaptec 1542, when you're beating on memory by compiling a kernel, or just when the system's running particularly hot). The SIG11 FAQ (listed below) points up slow memory as being the most common problem. Increase the number of wait states in your BIOS setup, or get faster memory. For me the guilty party has been bad cache RAM or a bad on-board cache controller. Try disabling the on-board (secondary) cache in the BIOS setup and see if that solves the problem. There's an extensive FAQ on this at the SIG11 problem FAQ When I boot, the screen goes black and loses sync! This is a known problem with the ATI Mach 64 video card. The problem is that this card uses address 2e8, and the fourth serial port does too. Due to a bug (feature?) in the sio.c driver it will touch this port even if you don't have the fourth serial port, and even if you disable sio3 (the fourth port) which normally uses this address. Until the bug has been fixed, you can use this workaround: Enter at the bootprompt. (This will put the kernel into configuration mode). Disable sio0, sio1, sio2 and sio3 (all of them). This way the sio driver doesn't get activated -> no problems. Type exit to continue booting. If you want to be able to use your serial ports, you'll have to build a new kernel with the following modification: in /usr/src/sys/i386/isa/sio.c find the one occurrence of the string 0x2e8 and remove that string and the preceding comma (keep the trailing comma). Now follow the normal procedure of building a new kernel. Even after applying these workarounds, you may still find that X Window does not work properly. Some newer ATI Mach 64 video cards (notably ATI Mach Xpression) do not run with the current version of XFree86; the screen goes black when you start X Window, or it works with strange problems. You can get a beta-version of a new X-server that works better, by looking at the XFree86 site and following the links to the new beta release. Get the following files: AccelCards, BetaReport, Cards, Devices, FILES, README.ati, README.FreeBSD, README.Mach64, RELNOTES, VGADriver.Doc, X312BMa64.tgz Replace the older files with the new versions and make sure you run xf86config again. I have 128 MB of RAM but the system only uses 64 MB. Due to the manner in which FreeBSD gets the memory size from the BIOS, it can only detect 16 bits worth of Kbytes in size (65535 Kbytes = 64MB) (or less... some BIOSes peg the memory size to 16M). If you have more than 64MB, FreeBSD will attempt to detect it; however, the attempt may fail. To work around this problem, you need to use the kernel option specified below. There is a way to get complete memory information from the BIOS, but we don't have room in the bootblocks to do it. Someday when lack of room in the bootblocks is fixed, we'll use the extended BIOS functions to get the full memory information...but for now we're stuck with the kernel option. options "MAXMEM=<n>" Where n is your memory in Kilobytes. For a 128 MB machine, you'd want to use 131072. FreeBSD 2.0 panics with ``kmem_map too small!'' Note The message may also be ``mb_map too small!'' The panic indicates that the system ran out of virtual memory for network buffers (specifically, mbuf clusters). You can increase the amount of VM available for mbuf clusters by adding: options "NMBCLUSTERS=<n>" to your kernel config file, where <n> is a number in the range 512-4096, depending on the number of concurrent TCP connections you need to support. I'd recommend trying 2048 - this should get rid of the panic completely. You can monitor the number of mbuf clusters allocated/in use on the system with netstat -m. The default value for NMBCLUSTERS is 512 + MAXUSERS * 16. ``CMAP busy panic'' when rebooting with a new kernel. The logic that attempts to detect an out of date /var/db/kvm_*.db files sometimes fails and using a mismatched file can sometimes lead to panics. If this happens, reboot single-user and do: rm /var/db/kvm_*.db ahc0: brkadrint, Illegal Host Access at seqaddr 0x0 This is a conflict with an Ultrastor SCSI Host Adapter. During the boot process enter the kernel configuration menu and disable uha0, which is causing the problem. Sendmail says ``mail loops back to myself'' This is answered in the sendmail FAQ as follows:- * I'm getting "Local configuration error" messages, such as: 553 relay.domain.net config error: mail loops back to myself 554 <user@domain.net>... Local configuration error How can I solve this problem? You have asked mail to the domain (e.g., domain.net) to be forwarded to a specific host (in this case, relay.domain.net) by using an MX record, but the relay machine doesn't recognize itself as domain.net. Add domain.net to /etc/sendmail.cw (if you are using FEATURE(use_cw_file)) or add "Cw domain.net" to /etc/sendmail.cf. The current version of the sendmail FAQ is no longer maintained with the sendmail release. It is however regularly posted to comp.mail.sendmail, comp.mail.misc, comp.mail.smail, comp.answers, and news.answers. You can also receive a copy via email by sending a message to mail-server@rtfm.mit.edu with the command "send usenet/news.answers/mail/sendmail-faq" as the body of the message. Full screen applications on remote machines misbehave The remote machine may be setting your terminal type to something other than the cons25 terminal type required by the FreeBSD console. There are a number of possible work-arounds for this problem: After logging on to the remote machine, set your TERM shell variable to ansi or sco if the remote machine knows about these terminal types. Use a VT100 emulator like screen at the FreeBSD console. screen offers you the ability to run multiple concurrent sessions from one terminal, and is a neat program in its own right. Each screen window behaves like a VT100 terminal, so the TERM variable at the remote end should be set to vt100. Install the cons25 terminal database entry on the remote machine. The way to do this depends on the operating system on the remote machine. The system administration manuals for the remote system should be able to help you here. Fire up an X server at the FreeBSD end and login to the remote machine using an X based terminal emulator such as xterm or rxvt. The TERM variable at the remote host should be set to xterm or vt100 . My machine prints "calcru: negative time..." This can be caused by various hardware and/or software ailments relating to interrupts. It may be due to bugs but can also happen by nature of certain devices. Running TCP/IP over the parallel port using a large MTU is one good way to provoke this problem. Graphics accelerators can also get you here, in which case you should check the interrupt setting of the card first. A side effect of this problem are dying processes with the message "SIGXCPU exceeded cpu time limit". For FreeBSD 3.0 and later from Nov 29, 1998 forward: If the problem cannot be fixed otherwise the solution is to set this sysctl variable: sysctl -w kern.timecounter.method=1 This means a performance impact, but considering the cause of this problem, you probably will not notice. If the problem persists, keep the sysctl set to one and set the "NTIMECOUNTER" option in your kernel to increasingly large values. If by the time you have reached "NTIMECOUNTER=20" the problem isn't solved, interrupts are too hosed on your machine for reliable timekeeping. Commercial Applications NOTE This section is still very sparse, though we're hoping, of course, that companies will add to it! :) The FreeBSD group has no financial interest in any of the companies listed here but simply lists them as a public service (and feels that commercial interest in FreeBSD can have very positive effects on FreeBSD's long-term viability). We encourage commercial software vendors to send their entries here for inclusion. See the Vendors page for a longer list. Where can I get Motif for FreeBSD? Contact Apps2go for an ELF Motif 2.1 distribution for FreeBSD. This distribution includes: OSF/Motif manager, xmbind, panner, wsm. Development kit with uil, mrm, xm, xmcxx, include and Imake files. Static and dynamic ELF libraries (for use with FreeBSD 3.0 and above). Demonstration applets. Be sure to specify that you want the FreeBSD version of Motif when ordering! Versions for NetBSD and OpenBSD are also sold by Apps2go. This is currently a FTP only download. More info Apps2go WWW page or Sales or Support email addresses. or phone (817) 431 8775 or +1 817 431-8775 Contact Metro Link for an either ELF or a.out Motif 2.1 distribution for FreeBSD. This distribution includes: OSF/Motif manager, xmbind, panner, wsm. Development kit with uil, mrm, xm, xmcxx, include and Imake files. Static and dynamic libraries (specify ELF for use with FreeBSD 3.0 and later; or a.out for use with FreeBSD 2.2.8 and eariler). Demonstration applets. Preformatted man pages. Be sure to specify that you want the FreeBSD version of Motif when ordering! Versions for Linux are also sold by Metro Link. This is available on either a CDROM or for FTP download. Contact Xi Graphics for an a.out Motif 2.0 distribution for FreeBSD. This distribution includes: OSF/Motif manager, xmbind, panner, wsm. Development kit with uil, mrm, xm, xmcxx, include and Imake files. Static and dynamic libraries (for use with FreeBSD 2.2.8 and eariler). Demonstration applets. Preformatted man pages. Be sure to specify that you want the FreeBSD version of Motif when ordering! Versions for BSDI and Linux are also sold by Xi Graphics. This is currently a 4 diskette set... in the future this will change to a unified CD distribution like their CDE. Where can I get CDE for FreeBSD? Xi Graphics used to sell CDE for FreeBSD, but no longer do. KDE is an open source X11 desktop which is similar to CDE in many respects. Are there any commercial high-performance X servers? Yes, Xi Graphics and Metro Link sells Accelerated-X product for FreeBSD and other Intel based systems. The Metro Link offering is a high performance X Server that offers easy configuration using the FreeBSD Package suite of tools, support for multiple concurrent video boards and is distributed in binary form only, in a convienent FTP download. Not to mention the Metro Link offering is available at the very reasonable price of $39. Metro Link also sells both ELF and a.out Motif for FreeBSD (see above). More info Metro Link WWW page or Sales or Support email addresses. or phone (954) 938-0283 or +1 954 938-0283 The Xi Graphics offering is a high performance X Server that offers easy configuration, support for multiple concurrent video boards and is distributed in binary form only, in a unified diskette distribution for FreeBSD and Linux. Xi Graphics also offers a high performance X Server taylored for laptop support. There is a free "compatibility demo" of version 5.0 available. Xi Graphics also sells Motif and CDE for FreeBSD (see above). More info Xi Graphics WWW page or Sales or Support email addresses. or phone (800) 946 7433 or +1 303 298-7478. Are there any Database systems for FreeBSD? Yes! See the Commercial Vendors section of FreeBSD's Web site. Also see the Databases section of the Ports collection. Can I run Oracle on FreeBSD? Yes. The following pages tell you exactly how to setup Linux-Oracle on FreeBSD: http://www.scc.nl/~marcel/howto-oracle.html http://www.lf.net/lf/pi/oracle/install-linux-oracle-on-freebsd User Applications So, where are all the user applications? Please take a look at the ports page for info on software packages ported to FreeBSD. The list currently tops 1800 and is growing daily, so come back to check often or subscribe to the freebsd-announce mailing list for periodic updates on new entries. Most ports should be available for the 2.2, 3.x and 4.0 branches, and many of them should work on 2.1.x systems as well. Each time a FreeBSD release is made, a snapshot of the ports tree at the time of release in also included in the ports/ directory. We also support the concept of a ``package'', essentially no more than a gzipped binary distribution with a little extra intelligence embedded in it for doing whatever custom installation work is required. A package can be installed and uninstalled again easily without having to know the gory details of which files it includes. Use the package installation menu in /stand/sysinstall (under the post-configuration menu item) or invoke the pkg_add(1) command on the specific package files you're interested in installing. Package files can usually be identified by their .tgz suffix and CDROM distribution people will have a packages/All directory on their CD which contains such files. They can also be downloaded over the net for various versions of FreeBSD at the following locations: for 2.2.8-release/2.2.8-stable ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-2.2.8/ for 3.2-release/3.2-stable ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-3-stable/ for 4.0-current ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-4-current/ or your nearest local mirror site. Note that all ports may not be available as packages since new ones are constantly being added. It is always a good idea to check back periodically to see which packages are available at the ftp.FreeBSD.org master site. Where do I find libc.so.3.0? You are trying to run a package for 2.2/3.x/4.0 on a 2.1.x system. Please take a look at the previous section and get the correct port/package for your system. ghostscript gives lots of errors with my 386/486SX. You don't have a math co-processor, right? You will need to add the alternative math emulator to your kernel; you do this by adding the following to your kernel config file and it will be compiled in. options GPL_MATH_EMULATE NOTE You will need to remove the MATH_EMULATE option when you do this. When I run a SCO/iBCS2 application, it bombs on socksys. You first need to edit the /etc/sysconfig (or /etc/rc.conf) file in the last section to change the following variable to YES: # Set to YES if you want ibcs2 (SCO) emulation loaded at startup ibcs2=NO It will load the ibcs2 kernel module at startup. You'll then need to set up /compat/ibcs2/dev to look like: lrwxr-xr-x 1 root wheel 9 Oct 15 22:20 X0R@ -> /dev/null lrwxr-xr-x 1 root wheel 7 Oct 15 22:20 nfsd@ -> socksys -rw-rw-r-- 1 root wheel 0 Oct 28 12:02 null lrwxr-xr-x 1 root wheel 9 Oct 15 22:20 socksys@ -> /dev/null crw-rw-rw- 1 root wheel 41, 1 Oct 15 22:14 spx You just need socksys to go to /dev/null to fake the open & close. The code in -current will handle the rest. This is much cleaner than the way it was done before. If you want the spx driver for a local socket X connection, define SPX_HACK when you compile the system. How do I configure INN (Internet News) for my machine? After installing the inn package or port, an excellent place to start is Dave Barr's INN Page where you'll find the INN FAQ. What version of Microsoft FrontPage should I get? Use the Port, Luke! A pre-patched version of Apache is available in the ports tree. Does FreeBSD support Java? Yes. Please see http://www.FreeBSD.org/java/. Why can't I build this port on my 3.x-stable machine? If you're running a FreeBSD version that lags significantly behind -current or -stable, you may need a ports upgrade kit from http://www.FreeBSD.org/ports/. If you are up to date, then someone might have committed a change to the port which works for -current but which broke the port for -stable. Please submit a bug report on this with the send-pr(1) command, since the ports collection is supposed to work for both the -current and -stable branches. Where do I find ld.so? If you want to run some aout applications like Netscape Navigator on an Elf'ened machine such as 3.1-R or later, it would need /usr/libexec/ld.so and some aout libs. They are included in the compat22 distribution. Use /stand/sysinstall or install.sh in the compat22 subdirectory and install it. Also read ERRATAs for 3.1-R and 3.2-R. Kernel Configuration I'd like to customize my kernel. Is it difficult? Not at all! Check out the kernel config section of the Handbook. NOTE: I recommend making a dated snapshot of your kernel in kernel.YYMMDD after you get it all working, that way if you do something dire the next time you play with your configuration you can boot that kernel instead of having to go all the way back to kernel.GENERIC. This is particularly important if you're now booting off a controller that isn't supported in the GENERIC kernel (yes, personal experience). My kernel compiles fail because _hw_float is missing. Let me guess. You removed npx0 from your kernel configuration file because you don't have a math co-processor, right? Wrong! :-) The npx0 is MANDATORY. Even if you don't have a mathematic co-processor, you must include the npx0 device. Interrupt conflicts with multi-port serial code. Q. When I compile a kernel with multi-port serial code, it tells me that only the first port is probed and the rest skipped due to interrupt conflicts. How do I fix this? A. The problem here is that FreeBSD has code built-in to keep the kernel from getting trashed due to hardware or software conflicts. The way to fix this is to leave out the IRQ settings on all but one port. Here is a example: # # Multiport high-speed serial line - 16550 UARTS # device sio2 at isa? port 0x2a0 tty irq 5 flags 0x501 vector siointr device sio3 at isa? port 0x2a8 tty flags 0x501 vector siointr device sio4 at isa? port 0x2b0 tty flags 0x501 vector siointr device sio5 at isa? port 0x2b8 tty flags 0x501 vector siointr How do I enable support for QIC-40/80 drives? You need to uncomment the following line in the generic config file (or add it to your config file), add a ``flags 0x1'' on the fdc line and recompile. controller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2 flags 0x1 vector fdintr disk fd0 at fdc0 drive 0 ^^^^^^^^^ disk fd1 at fdc0 drive 1 #tape ft0 at fdc0 drive 2 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Next, you create a device called /dev/ft0 by going into /dev and run the following command: sh ./MAKEDEV ft0 for the first device. ft1 for a second one and so on. You will have a device called /dev/ft0, which you can write to through a special program to manage it called ``ft'' - see the man page on ft for further details. Versions previous to also had some trouble dealing with bad tape media; if you have trouble where ft seems to go back and forth over the same spot, try grabbing the latest version of ft from /usr/src/sbin/ft in and try that. System Administration Where are the system start-up configuration files? From 2.0.5R to 2.2.1R, the primary configuration file is /etc/sysconfig. All the options are to be specified in this file and other files such as /etc/rc and /etc/netstart just include it. Look in the /etc/sysconfig file and change the value to match your system. This file is filled with comments to show what to put in there. In post-2.2.1 and 3.0, /etc/sysconfig was renamed to a more self-describing rc.conf file and the syntax cleaned up a bit in the process. /etc/netstart was also renamed to /etc/rc.network so that all files could be copied with a cp /usr/src/etc/rc* /etc command. /etc/rc.local is here as always and may be used to start up additional local services like INN or set custom options. The /etc/rc.serial is for serial port initialization (e.g. locking the port characteristics, and so on.). The /etc/rc.i386 is for Intel-specifics settings, such as iBCS2 emulation or the PC system console configuration. Starting with 2.1.0R, you can also have "local" startup files in a directory specified in /etc/sysconfig (or /etc/rc.conf): # Location of local startup files. local_startup=/usr/local/etc/rc.local.d Each file ending in .sh will be executed in alphabetical order. If you want to ensure a certain execution order without changing all the file names, you can use a scheme similar to the following with digits prepended to each file name to insure the ordering: 10news.sh 15httpd.sh 20ssh.sh It can be seen as ugly (or SysV :-)) but it provides a simple and regular scheme for locally-added packages without resorting to magical editing of /etc/rc.local. Many of the ports/packages assume that /usr/local/etc/rc.d is a local startup directory. How do I add a user easily? Use the adduser command. For more complicated usage, the pw command. To remove the user again, use the rmuser command. How can I add my new hard disk to my FreeBSD system? See the Disk Formatting Tutorial at www.FreeBSD.org. I have a new removable drive, how do I use it? Whether it's a removable drive like a ZIP or an EZ drive (or even a floppy, if you want to use it that way), or a new hard disk, once it's installed and recognized by the system, and you have your cartridge/floppy/whatever slotted in, things are pretty much the same for all devices. (this section is based on Mark Mayo's ZIP FAQ) If it's a ZIP drive or a floppy , you've already got a DOS filesystem on it, you can use a command like this: mount -t msdos /dev/fd0c /floppy if it's a floppy, or this: mount -t msdos /dev/da2s4 /zip for a ZIP disk with the factory configuration. For other disks, see how they're laid out using fdisk or /stand/sysinstall. The rest of the examples will be for a ZIP drive on da2, the third SCSI disk. Unless it's a floppy, or a removable you plan on sharing with other people, it's probably a better idea to stick a BSD file system on it. You'll get long filename support, at least a 2X improvement in performance, and a lot more stability. First, you need to redo the DOS-level partitions/filesystems. You can either use fdisk or /stand/sysinstall, or for a small drive that you don't want to bother with multiple operating system support on, just blow away the whole FAT partition table (slices) and just use the BSD partitioning: dd if=/dev/zero of=/dev/rda2 count=2 disklabel -Brw sd2 auto You can use disklabel or /stand/sysinstall to create multiple BSD partitions. You'll certainly want to do this if you're adding swap space on a fixed disk, but it's probably irrelevant on a removable drive like a ZIP. Finally, create a new file system, this one's on our ZIP drive using the whole disk: newfs /dev/rda2c and mount it: mount /dev/da2c /zip and it's probably a good idea to add a line like this to /etc/fstab so you can just type "mount /zip" in the future: /dev/da2c /zip ffs rw,noauto 0 0 How do I mount a secondary DOS partition? The secondary DOS partitions are found after ALL the primary partitions. For example, if you have an "E" partition as the second DOS partition on the second SCSI drive, you need to create the special files for "slice 5" in /dev, then mount /dev/da1s5: # cd /dev # ./MAKEDEV sd1s5 # mount -t msdos /dev/da1s5 /dos/e Can I mount other foreign filesystems under FreeBSD? Digital UNIX UFS CDROMs can be mounted directly on FreeBSD. Mounting disk partitions from Digital UNIX and other systems that support UFS may be more complex, depending on the details of the disk partitioning for the operating system in question. Linux: 2.2 and later have support for ext2fs partitions. See mount_ext2fs for more information. NT: A read-only NTFS driver exists for FreeBSD. For more information, see this tutorial by Mark Ovens at http://www.users.globalnet.co.uk/~markov/ntfs_install.html. Any other information on this subject would be appreciated. How can I use the NT loader to boot FreeBSD? The general idea is that you copy the first sector of your native root FreeBSD partition into a file in the DOS/NT partition. Assuming you name that file something like c:\bootsect.bsd (inspired by c:\bootsect.dos), you can then edit the c:\boot.ini file to come up with something like this: [boot loader] timeout=30 default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS [operating systems] multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows NT" C:\BOOTSECT.BSD="FreeBSD" C:\="DOS" This procedure assumes that DOS, NT, FreeBSD, or whatever have been installed into their respective fdisk partitions on the same disk. In my case DOS & NT are in the first fdisk partition and FreeBSD is in the second. I also installed FreeBSD to boot from its native partition, not the disk MBR. Mount a DOS-formatted floppy (if you've converted to NTFS) or the FAT partition, under, say, /mnt. dd if=/dev/rda0a of=/mnt/bootsect.bsd bs=512 count=1 Reboot into DOS or NT. NTFS users copy the bootsect.bsd and/or the bootsect.lnx file from the floppy to C:\. Modify the attributes (permissions) on boot.ini with: attrib -s -r c:\boot.ini Edit to add the appropriate entries from the example boot.ini above, and restore the attributes: attrib +s +r c:\boot.ini If FreeBSD is booting from the MBR, restore it with the DOS ``fdisk'' command after you reconfigure them to boot from their native partitions. How do I boot FreeBSD and Linux from LILO? If you have FreeBSD and Linux on the same disk, just follow LILO's installation instructions for booting a non-Linux operating system. Very briefly, these are: Boot Linux, and add the following lines to /etc/lilo.conf: other=/dev/hda2 table=/dev/hda label=FreeBSD (the above assumes that your FreeBSD slice is known to Linux as /dev/hda2; tailor to suit your setup). Then, run lilo as root and you should be done. If FreeBSD resides on another disk, you need to add ``loader=/boot/chain.b'' to the LILO entry. For example: other=/dev/dab4 table=/dev/dab loader=/boot/chain.b label=FreeBSD In some cases you may need to specify the BIOS drive number to the FreeBSD boot loader to successfully boot off the second disk. For example, if your FreeBSD SCSI disk is probed by BIOS as BIOS disk 1, at the FreeBSD boot loader prompt you need to specify: Boot: 1:da(0,a)/kernel On FreeBSD 2.2.5 and later, you can configure boot(8) to automatically do this for you at boot time. The Linux+FreeBSD mini-HOWTO is a good reference for FreeBSD and Linux interoperability issues. How do I boot FreeBSD and Linux using BootEasy? Install LILO at the start of your Linux boot partition instead of in the Master Boot Record. You can then boot LILO from BootEasy. If you're running Windows-95 and Linux this is recommended anyway, to make it simpler to get Linux booting again if you should need to reinstall Windows95 (which is a Jealous Operating System, and will bear no other Operating Systems in the Master Boot Record). Will a ``dangerously dedicated'' disk endanger my health? The installation procedure allows you to chose two different methods in partitioning your harddisk(s). The default way makes it compatible with other operating systems on the same machine, by using fdisk table entries (called ``slices'' in FreeBSD), with a FreeBSD slice that employs partitions of its own. Optionally, one can chose to install a boot-selector to switch between the possible operating systems on the disk(s). The alternative uses the entire disk for FreeBSD, and makes no attempt to be compatible with other operating systems. So why it is called ``dangerous''? A disk in this mode doesn't contain what normal PC utilities would consider a valid fdisk table. Depending on how well they have been designed, they might complain at you once they are getting in contact with such a disk, or even worse, they might damage the BSD bootstrap without even asking or notifying you. In addition, the ``dangerously dedicated'' disk's layout is known to confuse many BIOSsen, including those from AWARD (eg. as found in HP Netserver and Micronics systems as well as many others) and Symbios/NCR (for the popular 53C8xx range of SCSI controllers). This isn't a complete list, there are more. Symptoms of this confusion include the "read error" message printed by the FreeBSD bootstrap when it can't find itself, as well as system lockups when booting. Why have this mode at all then? It only saves a few kbytes of disk space, and it can cause real problems for a new installation. ``Dangerously dedicated'' mode's origins lie in a desire to avoid one of the most common problems plaguing new FreeBSD installers - matching the BIOS ``geometry'' numbers for a disk to the disk itself. ``Geometry'' is an outdated concept, but one still at the heart of the PC's BIOS and its interaction with disks. When the FreeBSD installer creates slices, it has to record the location of these slices on the disk in a fashion that corresponds with the way the BIOS expects to find them. If it gets it wrong, you won't be able to boot. ``Dangerously dedicated'' mode tries to work around this by making the problem simpler. In some cases, it gets it right. But it's meant to be used as a last-ditch alternative - there are better ways to solve the problem 99 times out of 100. So, how do you avoid the need for ``DD'' mode when you're installing? Start by making a note of the geometry that your BIOS claims to be using for your disks. You can arrange to have the kernel print this as it boots by specifying ``-v'' at the ``boot:'' prompt, or using ``boot -v'' in the loader. Just before the installer starts, the kernel will print a list of BIOS geometries. Don't panic - wait for the installer to start and then use scrollback to read the numbers. Typically the BIOS disk units will be in the same order that FreeBSD lists your disks, first IDE, then SCSI. When you're slicing up your disk, check that the disk geometry displayed in the FDISK screen is correct (ie. it matches the BIOS numbers); if it's wrong, use the ``g'' key to fix it. You may have to do this if there's absolutely nothing on the disk, or if the disk has been moved from another system. Note that this is only an issue with the disk that you're going to boot from; FreeBSD will sort itself out just fine with any other disks you may have. Once you've got the BIOS and FreeBSD agreeing about the geometry of the disk, your problems are almost guaranteed to be over, and with no need for ``DD'' mode at all. If, however, you are still greeted with the dreaded ``read error'' message when you try to boot, it's time to cross your fingers and go for it - there's nothing left to lose. To return a ``dangerously dedicated'' disk for normal PC use, there are basically two options. The first is, you write enough NULL bytes over the MBR to make any subsequent installation believe this to be a blank disk. You can do this for example with dd if=/dev/zero of=/dev/rda0 count=15 Alternatively, the undocumented DOS ``feature'' fdisk /mbr will to install a new master boot record as well, thus clobbering the BSD bootstrap. How can I add more swap space? The best way is to increase the size of your swap partition, or take advantage of this convenient excuse to add another disk. The general rule of thumb is to have around 2x the swap space as you have main memory. However, if you have a very small amount of main memory you may want to configure swap beyond that. It is also a good idea to configure sufficient swap relative to anticipated future memory upgrades so you do not have to futz with your swap configuration later. Adding swap onto a separate disk makes things faster than simply adding swap onto the same disk. As an example, if you are compiling source located on one disk, and the swap is on another disk, this is much faster than both swap and compile on the same disk. This is true for SCSI disks specifically. When you have several disks, configuring a swap partition on each one is usually beneficial, even if you wind up putting swap on a work disk. Typically, each fast disk in your system should have some swap configured. FreeBSD supports up to 4 interleaved swap devices by default. When configuring multiple swap partitions you generally want to make them all about the same size, but people sometimes make their primary swap parition larger in order to accomodate a kernel core dump. Your primary swap partition must be at least as large as main memory in order to be able to accomodate a kernel core. IDE drives are not able to allow access to both drives on the same channel at the same time (FreeBSD doesn't support mode 4, so all IDE disk I/O is ``programmed''). I would still suggest putting your swap on a separate drive however. The drives are so cheap, it is not worth worrying about. Swapping over NFS is only recommended if you do not have a local disk to swap to. Swapping over NFS is slow and inefficient in FreeBSD releases prior to 4.x, but reasonably fast in releases greater or equal to 4.0. Even so, it will be limited to the network bandwidth available and puts an additional burden on the NFS server. Here is an example for 64Mb vn-swap (/usr/swap0, though of course you can use any name that you want). Make sure your kernel was built with the line pseudo-device vn 1 #Vnode driver (turns a file into a device) in your config-file. The GENERIC kernel already contains this. create a vn-device cd /dev sh ./MAKEDEV vn0 create a swapfile (/usr/swap0) dd if=/dev/zero of=/usr/swap0 bs=1024k count=64 set proper permissions on (/usr/swap0) chmod 0600 /usr/swap0 enable the swap file in /etc/rc.conf swapfile="/usr/swap0" # Set to name of swapfile if aux swapfile desired. reboot the machine To enable the swap file immediately, type vnconfig -ce /dev/vn0c /usr/swap0 swap I'm having problems setting up my printer. Please have a look at the Handbook entry on printing. It should cover most of your problem. See the Handbook entry on printing. The keyboard mappings are wrong for my system. The kbdcontrol program has an option to load a keyboard map file. Under /usr/share/syscons/keymaps are a number of map files. Choose the one relevant to your system and load it. kbdcontrol -l uk.iso Both the /usr/share/syscons/keymaps and the .kbd extension are assumed by kbdcontrol. This can be configured in /etc/sysconfig (or rc.conf). See the appropriate comments in this file. In 2.0.5R and later, everything related to text fonts, keyboard mapping is in /usr/share/examples/syscons. The following mappings are currently supported: Belgian ISO-8859-1 Brazilian 275 keyboard Codepage 850 Brazilian 275 keyboard ISO-8859-1 Danish Codepage 865 Danish ISO-8859-1 French ISO-8859-1 German Codepage 850 German ISO-8859-1 Italian ISO-8859-1 Japanese 106 Japanese 106x Latin American Norwegian ISO-8859-1 Polish ISO-8859-2 (programmer's) Russian Codepage 866 (alternative) Russian koi8-r (shift) Russian koi8-r Spanish ISO-8859-1 Swedish Codepage 850 Swedish ISO-8859-1 Swiss-German ISO-8859-1 United Kingdom Codepage 850 United Kingdom ISO-8859-1 United States of America ISO-8859-1 United States of America dvorak United States of America dvorakx I can't get user quotas to work properly. Don't turn on quotas on '/', Put the quota file on the file system that the quotas are to be enforced on. ie: FS QUOTA FILE /usr /usr/admin/quotas /home /home/admin/quotas ... What's inappropriate about my ccd? The symptom of this is: # ccdconfig -C ccdconfig: ioctl (CCDIOCSET): /dev/ccd0c: Inappropriate file type or format # This usually happens when you are trying to concatenate the `c' partitions, which default to type `unused'. The ccd driver requires the underlying partition type to be FS_BSDFFS. Edit the disklabel of the disks you are trying to concatenate and change the types of partitions to `4.2BSD'. Why can't I edit the disklabel on my ccd? The symptom of this is: # disklabel ccd0 (it prints something sensible here, so let's try to edit it) # disklabel -e ccd0 (edit, save, quit) disklabel: ioctl DIOCWDINFO: No disk label on disk; use "disklabel -r" to install initial label # This is because the disklabel returned by ccd is actually a `fake' one that is not really on the disk. You can solve this problem by writing it back explicitly, as in: # disklabel ccd0 > /tmp/disklabel.tmp # disklabel -Rr ccd0 /tmp/disklabel.tmp # disklabel -e ccd0 (this will work now) Does FreeBSD support System V IPC primitives? Yes, FreeBSD supports System V-style IPC. This includes shared memory, messages and semaphores. You need to add the following lines to your kernel config to enable them. options SYSVSHM options "SHMMAXPGS=64" # 256Kb of sharable memory options SYSVSEM # enable for semaphores options SYSVMSG # enable for messaging Recompile and install. NOTE: You may need to increase SHMMAXPGS to some ridiculous number like 4096 (16M!) if you want to run GIMP. 256Kb is plenty for X11R6 shared memory. How do I use sendmail for mail delivery with UUCP? The sendmail configuration that ships with FreeBSD is suited for sites that connect directly to the Internet. Sites that wish to exchange their mail via UUCP must install another sendmail configuration file. Tweaking /etc/sendmail.cf manually is considered something for purists. Sendmail version 8 comes with a new approach of generating config files via some m4 preprocessing, where the actual hand-crafted configuration is on a higher abstraction level. You should use the configuration files under /usr/src/usr.sbin/sendmail/cf If you didn't install your system with full sources, the sendmail config stuff has been broken out into a separate source distribution tarball just for you. Assuming you've got your CD-ROM mounted, do: cd /usr/src tar -xvzf /cdrom/dists/src/ssmailcf.aa Don't panic, this is only a few hundred kilobytes in size. The file README in the cf directory can serve as a basic introduction to m4 configuration. For UUCP delivery, you are best advised to use the mailertable feature. This constitutes a database that sendmail can use to base its routing decision upon. First, you have to create your .mc file. The directory /usr/src/usr.sbin/sendmail/cf/cf is the home of these files. Look around, there are already a few examples. Assuming you have named your file foo.mc, all you need to do in order to convert it into a valid sendmail.cf is: cd /usr/src/usr.sbin/sendmail/cf/cf make foo.cf cp foo.cf /etc/sendmail.cf A typical .mc file might look like: include(`../m4/cf.m4') VERSIONID(`Your version number') OSTYPE(bsd4.4) FEATURE(nodns) FEATURE(nocanonify) FEATURE(mailertable) define(`UUCP_RELAY', your.uucp.relay) define(`UUCP_MAX_SIZE', 200000) MAILER(local) MAILER(smtp) MAILER(uucp) Cw your.alias.host.name Cw youruucpnodename.UUCP The nodns and nocanonify features will prevent any usage of the DNS during mail delivery. The UUCP_RELAY clause is needed for bizarre reasons, don't ask. Simply put an Internet hostname there that is able to handle .UUCP pseudo-domain addresses; most likely, you will enter the mail relay of your ISP there. Once you've got this, you need this file called /etc/mailertable. A typical example of this gender again: # # makemap hash /etc/mailertable.db < /etc/mailertable # horus.interface-business.de uucp-dom:horus .interface-business.de uucp-dom:if-bus interface-business.de uucp-dom:if-bus .heep.sax.de smtp8:%1 horus.UUCP uucp-dom:horus if-bus.UUCP uucp-dom:if-bus . uucp-dom:sax As you can see, this is part of a real-life file. The first three lines handle special cases where domain-addressed mail should not be sent out to the default route, but instead to some UUCP neighbor in order to ``shortcut'' the delivery path. The next line handles mail to the local Ethernet domain that can be delivered using SMTP. Finally, the UUCP neighbors are mentioned in the .UUCP pseudo-domain notation, to allow for a ``uucp-neighbor!recipient'' override of the default rules. The last line is always a single dot, matching everything else, with UUCP delivery to a UUCP neighbor that serves as your universal mail gateway to the world. All of the node names behind the uucp-dom: keyword must be valid UUCP neighbors, as you can verify using the command uuname. As a reminder that this file needs to be converted into a DBM database file before being usable, the command line to accomplish this is best placed as a comment at the top of the mailertable. You always have to execute this command each time you change your mailertable. Final hint: if you are uncertain whether some particular mail routing would work, remember the option to sendmail. It starts sendmail in address test mode; simply enter ``0 '', followed by the address you wish to test for the mail routing. The last line tells you the used internal mail agent, the destination host this agent will be called with, and the (possibly translated) address. Leave this mode by typing Control-D. j@uriah 191% sendmail -bt ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter <ruleset> <address> > 0 foo@interface-business.de rewrite: ruleset 0 input: foo @ interface-business . de ... rewrite: ruleset 0 returns: $# uucp-dom $@ if-bus $: foo \ < @ interface-business . de > > ^D j@uriah 192% How do I set up mail with a dialup connection to the 'net? If you've got a statically assigned IP number, you should not need to adjust anything from the default. Set your host name up as your assigned internet name and sendmail will do the rest. If you've got a dynamically assigned IP number and use a dialup ppp connection to the internet, you will probably be given a mailbox on your ISPs mail server. Lets assume your ISPs domain is myISP.com, and that your user name is user. Lets also assume you've called your machine bsd.home and that your ISP has told you that you may use relay.myISP.com as a mail relay. In order to retrieve mail from your mailbox, you'll need to install a retrieval agent. Fetchmail is a good choice as it supports many different protocols. Usually, POP3 will be provided by your ISP. If you've chosen to use user-ppp, you can automatically fetch your mail when a connection to the 'net is established with the following entry in /etc/ppp/ppp.linkup: MYADDR: !bg su user -c fetchmail If you are using sendmail (as shown below) to deliver mail to non-local accounts, put the command !bg su user -c "sendmail -q" after the above shown entry. This forces sendmail to process your mailqueue as soon as the connection to the 'net is established. I'm assuming that you have an account for user on bsd.home. In the home directory of user on bsd.home, create a .fetchmailrc file: poll myISP.com protocol pop3 fetchall pass MySecret; Needless to say, this file should not be readable by anyone except user as it contains the password MySecret. In order to send mail with the correct from: header, you must tell sendmail to use user@myISP.com rather than user@bsd.home. You may also wish to tell sendmail to send all mail via relay.myISP.com, allowing quicker mail transmission. The following .mc file should suffice: VERSIONID(`bsd.home.mc version 1.0') OSTYPE(bsd4.4)dnl FEATURE(nouucp)dnl MAILER(local)dnl MAILER(smtp)dnl Cwlocalhost Cwbsd.home MASQUERADE_AS(`myISP.com')dnl FEATURE(allmasquerade)dnl FEATURE(masquerade_envelope)dnl FEATURE(nocanonify)dnl FEATURE(nodns)dnl define(SMART_HOST, `relay.myISP.com') Dmbsd.home define(`confDOMAIN_NAME',`bsd.home')dnl define(`confDELIVERY_MODE',`deferred')dnl Refer to the previous section for details of how to turn this .mc file into a sendmail.cf file. Also, don't forget to restart sendmail after updating sendmail.cf. Eek! I forgot the root password! Don't Panic! Simply restart the system, type -s at the Boot: prompt to enter Single User mode. At the question about the shell to use, hit ENTER. You'll be dropped to a # prompt. Enter mount -u / to remount your root filesystem read/write, then run mount -a to remount all the filesystems. Run passwd root to change the root password then run exit to continue booting. How do I keep Control-Alt-Delete from rebooting the system? Edit the keymap you are using for the console and replace the boot keywords with nop. The default keymap is /usr/share/syscons/keymaps/us.iso.kbd. You may have to instruct /etc/rc.conf to load this keymap explicitly for the change to take effect. Of course if you are using an alternate keymap for your country, you should edit that one instead. How do I reformat DOS text files to UNIX ones? Simply use this perl command: perl -i.bak -npe 's/\r\n/\n/g' file ... file is the file(s) to process. The modification is done in-place, with the original file stored with a .bak extension. Alternatively you can use the tr command: tr -d '\r' < dos-text-file > unix-file dos-text-file is the file containing DOS text while unix-file will contain the converted output. This can be quite a bit faster than using perl. How do I kill processes by name? Use killall. Why is su bugging me about not being in root's ACL? The error comes from the Kerberos distributed authentication system. The problem isn't fatal but annoying. You can either run su with the -K option, or uninstall Kerberos as described in the next question. How do I uninstall Kerberos? To remove Kerberos from the system, reinstall the bin distribution for the release you are running. If you have the CDROM, you can mount the cd (we'll assume on /cdrom) and run cd /cdrom/bin ./install.sh How do I add pseudoterminals to the system? If you have lots of telnet, ssh, X, or screen users, you'll probably run out of pseudoterminals. Here's how to add more: Build and install a new kernel with the line pseudo-device pty 256 in the configuration file. Run the command # cd /dev # ./MAKEDEV pty{1,2,3,4,5,6,7} to make 256 device nodes for the new terminals. Edit /etc/ttys and add lines for each of the 256 terminals. They should match the form of the existing entries, i.e. they look like ttyqc none network The order of the letter designations is tty[pqrsPQRS][0-9a-v], using a regular expression. Reboot the system with the new kernel and you're ready to go. I can't create the snd0 device! The command to create the devices for the sound card is: # cd /dev # sh MAKEDEV snd0 However, this does not make a device named /dev/snd0. Instead, it creates devices named mixer0, audio0, dsp0, and others. Running the command is still necessary to add sound devices, however. How do I re-read /etc/rc.conf and re-start /etc/rc without a reboot? Go into single user mode and than back to multi user mode. On the console do: # shutdown now (Note: without -r or -h) # return # exit What is a sandbox? "Sandbox" is a security term. It can mean two things: A process which is placed inside a set of virtual walls that are designed to prevent someone who breaks into the process from being able to break into the wider system. The process is said to be able to "play" inside the walls. That is, nothing the process does in regards to executing code is supposed to be able to breech the walls so you do not have to do a detailed audit of its code to be able to say certain things about its security. The walls might be a userid, for example. This is the definition used in the security and named man pages. Take the 'ntalk' service, for example (see /etc/inetd.conf). This service used to run as userid root. Now it runs as userid tty. The tty user is a sandbox designed to make it more difficult for someone who has successfully hacked into the system via ntalk from being able to hack beyond that user id. A process which is placed inside a simulation of the machine. This is more hard-core. Basically it means that someone who is able to break into the process may believe that he can break into the wider machine but is, in fact, only breaking into a simulation of that machine and not modifying any real data. The most common way to accomplish this is to build a simulated environment in a subdirectory and then run the processes in that directory chroot'd (i.e. "/" for that process is this directory, not the real "/" of the system). Another common use is to mount an underlying filesystem read-only and then create a filesystem layer on top of it that gives a process a seemingly writeable view into that filesystem. The process may believe it is able to write to those files, but only the process sees the effects - other processes in the system do not, necessarily. An attempt is made to make this sort of sandbox so transparent that the user (or hacker) does not realize that he is sitting in it. UNIX implements two core sanboxes. One is at the process level, and one is at the userid level. Every UNIX process is completely firewalled off from every other UNIX process. One process can not modify the address space of another. This is unlike Windows where a process can easily overwrite the address space of any other, leading to a crash. A UNIX process is owned by a patricular userid. If the userid is not the root user, it serves to firewall the process off from processes owned by other users. The userid is also used to firewall off on-disk data. How do I let ordinary users mount floppies and other removable media? Ordinary users can be permitted to mount devices. Here is how: As root assign the appropriate permissions to the block device associated with the removable media. For example, to allow users to mount the first floppy drive, use: &prompt.root; chmod 777 /dev/fd0 As root set the sysctl variable vfs.usermount to 1. &prompt.root; sysctl -w vfs.usermount=1 Users can now mount /dev/fd0 onto a directory that they own: &prompt.user; mkdir ~/my-mount-point &prompt.user; mount -t msdos /dev/fd0 ~/my-mount-point Unmounting the device is simple: &prompt.user; umount ~/my-mount-point Another way to access MSDOS formatted media is to use the mtools package in the ports collection. The X Window System and Virtual Consoles I want to run X, how do I go about it? The easiest way is to simply specify that you want to run X during the installation process. Then read and follow the documentation on the xf86config tool, which assists you in configuring XFree86(tm) for your particular graphics card/mouse/etc. You may also wish to investigate the Xaccel server. See the section on Xi Graphics or Metro Link for more details. Why doesn't my mouse work with X If you are using syscons (the default console driver), you can configure FreeBSD to support a mouse pointer on each virtual screen. In order to avoid conflicting with X, syscons supports a virtual device called ``/dev/sysmouse''. All mouse events received from the real mouse device are written to the sysmouse device, using the MouseSystems protocol. If you wish to use your mouse on one or more virtual consoles, and use X, the following configuration is recommended: /etc/rc.conf: moused_type=ps/2 # or whatever your actual type is moused_port=/dev/psm0 # or whatever your real port is moused_flags= /etc/XF86Config Section Pointer Protocol "MouseSystems" Device "/dev/sysmouse" ..... Some people prefer to use ``/dev/mouse'' under X. To make this work, ``/dev/mouse'' should be linked to /dev/sysmouse: # cd /dev # rm -f mouse # ln -s sysmouse mouse X Window menus and dialog boxes don't work right! Try turning off the Num Lock key. If your Num Lock key is on by default at boot-time, you may add the following line in the ``Keyboard'' section of the XF86Config file. # Let the server do the NumLock processing. This should only be # required when using pre-R6 clients ServerNumLock What is a virtual console and how do I make more? Virtual consoles, put simply, enable you to have several simultaneous sessions on the same machine without doing anything complicated like setting up a network or running X. When the system starts, it will display a login prompt on the monitor after displaying all the boot messages. You can then type in your login name and password and start working (or playing!) on the first virtual console. At some point, you will probably wish to start another session, perhaps to look at documentation for a program you are running or to read your mail while waiting for an FTP transfer to finish. Just do Alt-F2 (hold down the Alt key and press the F2 key), and you will find a login prompt waiting for you on the second ``virtual console''! When you want to go back to the original session, do Alt-F1. The default FreeBSD installation has three virtual consoles enabled, and Alt-F1, Alt-F2, and Alt-F3 will switch between these virtual consoles. To enable more of them, edit /etc/ttys and add entries for ``ttyv4'' to ``ttyvc'' after the comment on ``Virtual terminals'': # Edit the existing entry for ttyv3 in /etc/ttys and change # "off" to "on". ttyv3 "/usr/libexec/getty Pc" cons25 on secure ttyv4 "/usr/libexec/getty Pc" cons25 on secure ttyv5 "/usr/libexec/getty Pc" cons25 on secure ttyv6 "/usr/libexec/getty Pc" cons25 on secure ttyv7 "/usr/libexec/getty Pc" cons25 on secure ttyv8 "/usr/libexec/getty Pc" cons25 on secure ttyv9 "/usr/libexec/getty Pc" cons25 on secure ttyva "/usr/libexec/getty Pc" cons25 on secure ttyvb "/usr/libexec/getty Pc" cons25 on secure Use as many or as few as you want. The more virtual terminals you have, the more resources that are used; this can be important if you have 8MB RAM or less. You may also want to change the ``secure'' to ``insecure''. IMPORTANT NOTE if you want to run an X server you MUST leave at least one virtual terminal unused (or turned off) for it to use. That is to say that if you want to have a login prompt pop up for all twelve of your Alt-function keys, you're out of luck - you can only do this for eleven of them if you also want to run an X server on the same machine. The easiest way to disable a console is by turning it off. For example, if you had the full 12 terminal allocation mentioned above and you wanted to run X, you would change settings for virtual terminal 12 from: ttyvb "/usr/libexec/getty Pc" cons25 on secure to: ttyvb "/usr/libexec/getty Pc" cons25 off secure If your keyboard has only ten function keys, you would end up with: ttyv9 "/usr/libexec/getty Pc" cons25 off secure ttyva "/usr/libexec/getty Pc" cons25 off secure ttyvb "/usr/libexec/getty Pc" cons25 off secure (You could also just delete these lines.) Once you have edited /etc/ttys, the next step is to make sure that you have enough virtual terminal devices. The easiest way to do this is: # cd /dev # ./MAKEDEV vty12 # For 12 devices Next, the easiest (and cleanest) way to activate the virtual consoles is to reboot. However, if you really don't want to reboot, you can just shut down the X Window system and execute (as root): kill -HUP 1 It's imperative that you completely shut down X Window if it is running, before running this command. If you don't, your system will probably appear to hang/lock up after executing the kill command. How do I access the virtual consoles from X? If the console is currently displaying X Window, you can use Ctrl-Alt-F1, etc. to switch to a virtual console. Note, however, that once you've switched away from X Window to a virtual terminal, you may use only the Alt- function key to switch to another virtual terminal or back to X Window. You do not need to also press the Ctrl key. If you use the control key to switch back to X on some older releases, you can find your text console stuck in ``control-lock'' mode. Tap the control key to wake it up again. How do I start XDM on boot? There are two schools of thought on how to start xdm. One school starts xdm from /etc/ttys using the supplied example, while the other simply runs xdm from rc.local or from a X.sh script in /usr/local/etc/rc.d. Both are equally valid, and one may work in situations where the other doesn't. In both cases the result is the same: X will popup a graphical login: prompt. The ttys method has the advantage of documenting which vty X will start on and passing the responsibility of restarting the X server on logout to init. The rc.local method makes it easy to kill xdm if there is a problem starting the X server. If loaded from rc.local, xdm should be started without any arguments (i.e., as a daemon). xdm must start AFTER getty runs, or else getty and xdm will conflict, locking out the console. The best way around this is to have the script sleep 10 seconds or so then launch xdm. A previous version of the FAQ said to add the vt you want X to use to the /usr/X11R6/lib/X11/xdm/Xservers file. This is not necessary: X will use the first free vt it finds. When I run xconsole, I get ``Couldn't open console''. If you start X with startx, the permissions on /dev/console will not get changed, resulting in things like xterm -C and xconsole not working. This is because of the way console permissions are set by default. On a multi-user system, one doesn't necessarily want just any user to be able to write on the system console. For users who are logging directly onto a machine with a VTY, the fbtab file exists to solve such problems. In a nutshell, make sure an uncommented line of the form /dev/ttyv0 0600 /dev/console is in /etc/fbtab and it will ensure that whomever logs in on /dev/ttyv0 will own the console. My PS/2 mouse doesn't behave properly under X. Your mouse and the mouse driver may have somewhat become out of synchronization. In versions 2.2.5 and earlier, switching away from X to a virtual terminal and getting back to X again may make them re-synchronized. If the problem occurs often, you may add the following option in your kernel configuration file and recompile it. options PSM_CHECKSYNC See the section on building a kernel if you've no experience with building kernels. With this option, there should be less chance of synchronization problem between the mouse and the driver. If, however, you still see the problem, click any mouse button while holding the mouse still to re-synchronize the mouse and the driver. Note that unfortunately this option may not work with all the systems and voids the ``tap'' feature of the ALPS GlidePoint device attached to the PS/2 mouse port. In versions 2.2.6 and later, synchronization check is done in a slightly better way and is standard in the PS/2 mouse driver. It should even work with GlidePoint. (As the check code has become a standard feature, PSM_CHECKSYNC option is not available in these versions.) However, in rare case the driver may erroneously report synchronization problem and you may see the kernel message: psmintr: out of sync (xxxx != yyyy) and find your mouse doesn't seem to work properly. If this happens, disable the synchronization check code by setting the driver flags for the PS/2 mouse driver to 0x100. Enter UserConfig by giving the ``'' option at the boot prompt: boot: -c Then, in the UserConfig command line, type: UserConfig> flags psm0 0x100 UserConfig> quit My PS/2 mouse from MouseSystems doesn't seem to work. There have been some reports that certain model of PS/2 mouse from MouseSystems works only if it is put into the ``high resolution'' mode. Otherwise, the mouse cursor may jump to the upper-left corner of the screen every so often. Unfortunately there is no workaround for versions 2.0.X and 2.1.X. In versions 2.2 through 2.2.5, apply the following patch to /sys/i386/isa/psm.c and rebuild the kernel. See the section on building a kernel if you've no experience with building kernels. diff -u psm.c.orig psm.c @@ -766,6 +766,8 @@ if (verbose >= 2) log(LOG_DEBUG, "psm%d: SET_DEFAULTS return code:%04x\n", unit, i); + set_mouse_resolution(sc->kbdc, PSMD_RES_HIGH); + #if 0 set_mouse_scaling(sc->kbdc); /* 1:1 scaling */ set_mouse_mode(sc->kbdc); /* stream mode */ In versions 2.2.6 or later, specify the flags 0x04 to the PS/2 mouse driver to put the mouse into the high resolution mode. Enter UserConfig by giving the ``'' option at the boot prompt: boot: -c Then, in the UserConfig command line, type: UserConfig> flags psm0 0x04 UserConfig> quit See the previous section for another possible cause of mouse problems. When building an X app, imake can't find Imake.tmpl. Where is it? Imake.tmpl is part of the Imake package, a standard X application building tool. Imake.tmpl, as well as several header files that are required to build X apps, is contained in the X prog distribution. You can install this from sysinstall or manually from the X distribution files. How do I reverse the mouse buttons? Run the command xmodmap -e "pointer = 3 2 1" from your .xinitrc or .xsession. How do I install a splash screen and where do I find them? Just prior to the release of FreeBSD 3.1, a new feature was added to allow the display of "splash" screens during the boot messages. The splash screens currently must be a 256 color bitmap (*.BMP) or ZSoft PCX (*.PCX) file. In addition, they must have a resolution of 320x200 or less to work on standard VGA adapters. If you compile VESA support into your kernel, then you can use larger bitmaps up to 1024x768. Note that VESA support requires the VM86 kernel option to be compiled into the kernel. The actual VESA support can either be compiled directly into the kernel with the VESA kernel config option or by loading the VESA kld module during bootup. To use a splash screen, you need to modify the startup files that control the boot process for FreeBSD. The files for this changed prior to the release of FreeBSD 3.2, so there are now two ways of loading a splash screen: FreeBSD 3.1 The first step is to find a bitmap version of your splash screen. Release 3.1 only supports Windows bitmap splash screens. Once you've found your splash screen of choice copy it to /boot/splash.bmp. Next, you need to have a /boot/loader.rc file that contains the following lines: load kernel load -t splash_image_data /boot/splash.bmp load splash_bmp autoboot FreeBSD 3.2+ In addition to adding support for PCX splash screens, FreeBSD 3.2 includes a nicer way of configuring the boot process. If you wish, you can use the method listed above for FreeBSD 3.1. If you do and you want to use PCX, replace splash_bmp with splash_pcx. If, on the other hand, you want to use the newer boot configuration, you need to create a /boot/loader.rc file that contains the following lines: include /boot/loader.4th start and a /boot/loader.conf that contains the following: splash_bmp_load="YES" bitmap_load="YES" This assumes you are using /boot/splash.bmp for your splash screen. If you'd rather use a PCX file, copy it to /boot/splash.pcx, create a /boot/loader.rc as instructed above, and create a /boot/loader.conf that contains: splash_pcx_load="YES" bitmap_load="YES" bitmap_name="/boot/splash.pcx" Now all you need is a splash screen. For that you can surf on over to the gallery at http://www.cslab.vt.edu/~jobaldwi/splash/. Networking Where can I get information on ``diskless booting''? ``Diskless booting'' means that the FreeBSD box is booted over a network, and reads the necessary files from a server instead of its hard disk. For full details, please read the Handbook entry on diskless booting Can a FreeBSD box be used as a dedicated network router? Internet standards and good engineering practice prohibit us from providing packet forwarding by default in FreeBSD. You can however enable this feature by changing the following variable to YES in rc.conf: gateway_enable=YES # Set to YES if this host will be a gateway This option will put the sysctl variable net.inet.ip.forwarding to 1. In most cases, you will also need to run a routing process to tell other systems on your network about your router; FreeBSD comes with the standard BSD routing daemon routed, or for more complex situations you may want to try GaTeD (available from http://www.gated.org/ ) which supports FreeBSD as of 3_5Alpha7. It is our duty to warn you that, even when FreeBSD is configured in this way, it does not completely comply with the Internet standard requirements for routers; however, it comes close enough for ordinary usage. Can I connect my Win95 box to the Internet via FreeBSD? Typically, people who ask this question have two PC's at home, one with FreeBSD and one with Win95; the idea is to use the FreeBSD box to connect to the Internet and then be able to access the Internet from the Windows95 box through the FreeBSD box. This is really just a special case of the previous question. There's a useful document available which explains how to set FreeBSD up as a PPP Dialup Router NOTE: This requires having at least two fixed IP addresses available, and possibly three or more, depending on how much work you want to go through to set up the Windows box. As an alternative, if you don't have a fixed IP, you can use one of the private IP subnets and install proxies such as SQUID and the TIS firewall toolkit on your FreeBSD box. See also the section on natd. Why does recompiling the latest BIND from ISC fail? There is a conflict between the ``cdefs.h'' file in the distribution and the one shipped with FreeBSD. Just remove compat/include/sys/cdefs.h. Does FreeBSD support SLIP and PPP? Yes. See the man pages for slattach, sliplogin, pppd and ppp. pppd and ppp provide support for both incoming and outgoing connections. Sliplogin deals exclusively with incoming connections and slattach deals exclusively with outgoing connections. These programs are described in the following sections of the handbook: Handbook entry on SLIP (server side) Handbook entry on SLIP (client side) Handbook entry on PPP (kernel version) Handbook entry on PPP (user-mode version) If you only have access to the Internet through a "shell account", you may want to have a look at the slirp package. It can provide you with (limited) access to services such as ftp and http direct from your local machine. Does FreeBSD support NAT or Masquerading If you have a local subnet (one or more local machines), but have been allocated only a single IP number from your Internet provider (or even if you receive a dynamic IP number), you may want to look at the natd program. Natd allows you to connect an entire subnet to the internet using only a single IP number. The ppp program has similar functionality built in via the switch. The alias library is used in both cases. I can't create a /dev/ed0 device! In the Berkeley networking framework, network interfaces are only directly accessible by kernel code. Please see the /etc/rc.network file and the manual pages for the various network programs mentioned there for more information. If this leaves you totally confused, then you should pick up a book describing network administration on another BSD-related operating system; with few significant exceptions, administering networking on FreeBSD is basically the same as on SunOS 4.0 or Ultrix. How can I setup Ethernet aliases? Add ``netmask 0xffffffff'' to your ifconfig command-line like the following: ifconfig ed0 alias 204.141.95.2 netmask 0xffffffff How do I get my 3C503 to use the other network port? If you want to use the other ports, you'll have to specify an additional parameter on the ifconfig command line. The default port is ``link0''. To use the AUI port instead of the BNC one, use ``link2''. These flags should be specified using the ifconfig_* variables in /etc/rc.conf. I'm having problems with NFS to/from FreeBSD. Certain PC network cards are better than others (to put it mildly) and can sometimes cause problems with network intensive applications like NFS. See the Handbook entry on NFS for more information on this topic. Why can't I NFS-mount from a Linux box? Some versions of the Linux NFS code only accept mount requests from a privileged port; try mount -o -P linuxbox:/blah /mnt Why can't I NFS-mount from a Sun box? Sun workstations running SunOS 4.X only accept mount requests from a privileged port; try mount -o -P sunbox:/blah /mnt I'm having problems talking PPP to NeXTStep machines. Try disabling the TCP extensions in /etc/rc.conf by changing the following variable to NO: tcp_extensions=NO Xylogic's Annex boxes are also broken in this regard and you must use the above change to connect thru them. How do I enable IP multicast support? Multicast host operations are fully supported in FreeBSD 2.0 and later by default. If you want your box to run as a multicast router, you will need to recompile your kernel with the MROUTING option and run mrouted. FreeBSD 2.2 and later will start mrouted at boot time if the flag mrouted_enable is set to "YES" in /etc/rc.conf. MBONE tools are available in their own ports category, mbone. If you are looking for the conference tools vic and vat, look there! For more information, see the Mbone Information Web. Which network cards are based on the DEC PCI chipset? Here is a list compiled by Glen Foster, with some more modern additions: Vendor Model ---------------------------------------------- ASUS PCI-L101-TB Accton ENI1203 Cogent EM960PCI Compex ENET32-PCI D-Link DE-530 Dayna DP1203, DP2100 DEC DE435, DE450 Danpex EN-9400P3 JCIS Condor JC1260 Linksys EtherPCI Mylex LNP101 SMC EtherPower 10/100 (Model 9332) SMC EtherPower (Model 8432) TopWare TE-3500P Znyx (2.2.x) ZX312, ZX314, ZX342, ZX345, ZX346, ZX348 (3.x) ZX345Q, ZX346Q, ZX348Q, ZX412Q, ZX414, ZX442, ZX444, ZX474, ZX478, ZX212, ZX214 (10mbps/hd) Why do I have to use the FQDN for hosts on my site? You will probably find that the host is actually in a different domain; for example, if you are in foo.bar.edu and you wish to reach a host called ``mumble'' in the bar.edu domain, you will have to refer to it by the fully-qualified domain name, ``mumble.bar.edu'', instead of just ``mumble''. Traditionally, this was allowed by BSD BIND resolvers. However the current version of bind that ships with FreeBSD no longer provides default abbreviations for non-fully qualified domain names other than the domain you are in. So an unqualified host mumble must either be found as mumble.foo.bar.edu, or it will be searched for in the root domain. This is different from the previous behavior, where the search continued across mumble.bar.edu, and mumble.edu. Have a look at RFC 1535 for why this was considered bad practice, or even a security hole. As a good workaround, you can place the line search foo.bar.edu bar.edu instead of the previous domain foo.bar.edu into your /etc/resolv.conf file. However, make sure that the search order does not go beyond the ``boundary between local and public administration'', as RFC 1535 calls it. ``Permission denied'' for all networking operations. If you have compiled your kernel with the IPFIREWALL option, you need to be aware that the default policy as of 2.1.7R (this actually changed during 2.1-STABLE development) is to deny all packets that are not explicitly allowed. If you had unintentionally misconfigured your system for firewalling, you can restore network operability by typing the following while logged in as root: ipfw add 65534 allow all from any to any You can also set "firewall_type='open'" in /etc/rc.conf. For further information on configuring a FreeBSD firewall, see the Handbook section. How much overhead does IPFW incur? The answer to this depends mostly on your rule set and processor speed. For most applications dealing with ethernet and small rule sets, the answer is, negligible. For those of you that need actual measurements to satisfy your curiosity, read on. The following measurements were made using 2.2.5-STABLE on a 486-66. IPFW was modified to measure the time spent within the ip_fw_chk routine, displaying the results to the console every 1000 packets. Two rule sets, each with 1000 rules were tested. The first set was designed to demonstrate a worst case scenario by repeating the rule: ipfw add deny tcp from any to any 55555 This demonstrates worst case by causing most of IPFW's packet check routine to be executed before finally deciding that the packet does not match the rule (by virtue of the port number). Following the 999th iteration of this rule was an allow ip from any to any. The second set of rules were designed to abort the rule check quickly: ipfw add deny ip from 1.2.3.4 to 1.2.3.4 The nonmatching source IP address for the above rule causes these rules to be skipped very quickly. As before, the 1000th rule was an allow ip from any to any. The per-packet processing overhead in the former case was approximately 2.703ms/packet, or roughly 2.7 microseconds per rule. Thus the theoretical packet processing limit with these rules is around 370 packets per second. Assuming 10Mbps ethernet and a ~1500 byte packet size, we would only be able to achieve a 55.5% bandwidth utilization. For the latter case each packet was processed in approximately 1.172ms, or roughly 1.2 microseconds per rule. The theoretical packet processing limit here would be about 853 packets per second, which could consume 10Mbps ethernet bandwidth. The excessive number of rules tested and the nature of those rules do not provide a real-world scenario -- they were used only to generate the timing information presented here. Here are a few things to keep in mind when building an efficient rule set: Place an `established' rule early on to handle the majority of TCP traffic. Don't put any allow tcp statements before this rule. Place heavily triggered rules earlier in the rule set than those rarely used (without changing the permissiveness of the firewall, of course). You can see which rules are used most often by examining the packet counting statistics with ipfw -a l. How can I redirect service requests from one machine to another? You can redirect FTP (and other service) request with the 'socket' package, available in the ports tree in category 'sysutils'. Simply replace the service's commandline to call socket instead, like so: ftp stream tcp nowait nobody /usr/local/bin/socket socket ftp.foo.com ftp where 'ftp.foo.com' and 'ftp' are the host and port to redirect to, respectively. Where can I get a bandwidth management tool? There are two bandwidth management tools available for FreeBSD. ALTQ is available for free; Bandwidth Manager from Emerging Technologies is a commercial product. Why do I get ``/dev/bpf0: device not configured"? The Berkeley Packet Filter (bpf) driver needs to be enabled before running programs that utilize it. Add this to your kernel config file and build a new kernel: pseudo-device bpfilter # Berkeley Packet Filter Secondly, after rebooting you will have to create the device node. This can be accomplished by a change to the /dev directory, followed by the execution of: # sh MAKEDEV bpf0 Please see the handbook's entry on device nodes for more information on creating devices. PPP I can't make ppp work. What am I doing wrong ? You should first read the ppp man page and the ppp section of the handbook. Enable logging with the command set log Phase Chat Connect Carrier lcp ipcp ccp command This command may be typed at the ppp command prompt or it may be entered in the /etc/ppp/ppp.conf configuration file (the start of the default section is the best place to put it). Make sure that /etc/syslog.conf contains the lines !ppp *.* /var/log/ppp.log and that the file /var/log/ppp.log exists. You can now find out a lot about what's going on from the log file. Don't worry if it doesn't all make sense. If you need to get help from someone, it may make sense to them. If your version of ppp doesn't understand the "set log" command, you should download the latest version. It will build on FreeBSD version 2.1.5 and higher. Ppp just hangs when I run it This is usually because your hostname won't resolve. The best way to fix this is to make sure that /etc/hosts is consoluted by your resolver first by editing /etc/host.conf and putting the hosts line first. Then, simply put an entry in /etc/hosts for your local machine. If you have no local network, change your localhost line: 127.0.0.1 foo.bar.com foo localhost Otherwise, simply add another entry for your host. Consult the relevant man pages for more details. You should be able to successfully ping -c1 `hostname` when you're done. Ppp won't dial in -auto mode First, check that you've got a default route. By running http://www.FreeBSD.org/cgi/man.cgi?netstat name="netstat -rn">, you should see two entries like this: Destination Gateway Flags Refs Use Netif Expire default 10.0.0.2 UGSc 0 0 tun0 10.0.0.2 10.0.0.1 UH 0 0 tun0 This is assuming that you've used the addresses from the handbook, the man page or from the ppp.conf.sample file. If you haven't got a default route, it may be because you're running an old version of ppp that doesn't understand the word HISADDR in the ppp.conf file. If your version of ppp is from before FreeBSD 2.2.5, change the add 0 0 HISADDR line to one saying add 0 0 10.0.0.2 Another reason for the default route line being missing is that you have mistakenly set up a default router in your /etc/rc.conf file (this file was called /etc/sysconfig prior to release 2.2.2), and you have omitted the line saying delete ALL from ppp.conf. If this is the case, go back to the Final system configuration section of the handbook. What does "No route to host" mean This error is usually due to a missing MYADDR: delete ALL add 0 0 HISADDR section in your /etc/ppp/ppp.linkup file. This is only necessary if you have a dynamic IP address or don't know the address of your gateway. If you're using interactive mode, you can type the following after entering packet mode (packet mode is indicated by the capitalized PPP in the prompt): delete ALL add 0 0 HISADDR Refer to the PPP and Dynamic IP addresses section of the handbook for further details. My connection drops after about 3 minutes The default ppp timeout is 3 minutes. This can be adjusted with the line set timeout NNN where NNN is the number of seconds of inactivity before the connection is closed. If NNN is zero, the connection is never closed due to a timeout. It is possible to put this command in the ppp.conf file, or to type it at the prompt in interactive mode. It is also possible to adjust it on the fly while the line is active by connecting to ppps server socket using telnet or pppctl. Refer to the ppp man page for further details. My connection drops under heavy load If you have Link Quality Reporting (LQR) configured, it is possible that too many LQR packets are lost between your machine and the peer. Ppp deduces that the line must therefore be bad, and disconnects. Prior to FreeBSD version 2.2.5, LQR was enabled by default. It is now disabled by default. LQR can be disabled with the line disable lqr My connection drops after a random amount of time Sometimes, on a noisy phone line or even on a line with call waiting enabled, your modem may hang up because it thinks (incorrectly) that it lost carrier. There's a setting on most modems for determining how tolerant it should be to temporary losses of carrier. On a USR Sportster for example, this is measured by the S10 register in tenths of a second. To make your modem more forgiving, you could add the following send-expect sequence to your dial string: set dial "...... ATS10=10 OK ......" Refer to your modem manual for details. My connection hangs after a random amount of time Many people experience hung connections with no apparent explaination. The first thing to establish is which side of the link is hung. If you are using an external modem, you can simply try using ping to see if the TD light is flashing when you transmit data. If it flashes (and the RD light doesn't), the problem is with the remote end. If TD doesn't flash, the problem is local. With an internal modem, you'll need to use the set server command in your ppp.conf file. When the hang occurs, connect to ppp using pppctl. If your network connection suddenly revives (ppp was revived due to the activity on the diagnostic socket) or if you can't connect (assuming the set socket command succeeded at startup time), the problem is local. If you can connect and things are still hung, enable local async logging with set log local async and use ping from another window or terminal to make use of the link. The async logging will show you the data being transmitted and received on the link. If data is going out and not coming back, the problem is remote. Having established whether the problem is local or remote, you now have two possibilities: The remote end isn't responding There's very little you can do about this. Most ISPs will refuse to help if you're not running a Microsoft OS. You can enable lqr in your ppp.conf file, allowing ppp to detect the remote failure and hang up, but this detection is relatively slow and therefore not that useful. You may want to avoid telling your ISP that you're running user-ppp.... First, try disabling all local compression by adding the following to your configuration: disable pred1 deflate deflate24 protocomp acfcomp shortseq vj deny pred1 deflate deflate24 protocomp acfcomp shortseq vj Then reconnect to ensure that this makes no difference. If things improve or if the problem is solved completely, determine which setting makes the difference through trial and error. This will provide good amunition when you contact your ISP (although it may make it apparent that you're not running a Microsoft product). Before contacting your ISP, enable async logging locally and wait until the connection hangs again. This may use up quite a bit of disk space. The last data read from the port may be of interest. It is usually ascii data, and may even describe the problem (``Memory fault, core dumped'' ?). If your ISP is helpful, they should be able to enable logging on their end, then when the next link drop occurs, they may be able to tell you why their side is having a problem. Feel free to send the details to brian@Awfulhak.org, or even to ask your ISP to contact me directly. Ppp is hung Your best bet here is to rebuild ppp by adding CFLAGS+=-g and STRIP= to the end of the Makefile, then doing a make clean && make && make install. When ppp hangs, find the ppp process id with ps ajxww | fgrep ppp and run gdb ppp PID. From the gdb prompt, you can then use bt to get a stack trace. Send the results to brian@Awfulhak.org. Nothing happens after the Login OK! message Prior to FreeBSD version 2.2.5, once the link was established, ppp would wait for the peer to initiate the Line Control Protocol (LCP). Many ISPs will not initiate negotiations and expect the client to do so. To force ppp to initiate the LCP, use the following line: set openmode active Note: It usually does no harm if both sides initiate negotiation, so openmode is now active by default. However, the next section explains when it does do some harm. I keep seeing errors about magic being the same Occasionally, just after connecting, you may see messages in the log that say "magic is the same". Sometimes, these messages are harmless, and sometimes one side or the other exits. Most ppp implementations cannot survive this problem, and even if the link seems to come up, you'll see repeated configure requests and configure acknowledgements in the log file until ppp eventually gives up and closes the connection. This normally happens on server machines with slow disks that are spawning a getty on the port, and executing ppp from a login script or program after login. I've also heard reports of it happening consistently when using slirp. The reason is that in the time taken between getty exiting and ppp starting, the client-side ppp starts sending Line Control Protocol (LCP) packets. Because ECHO is still switched on for the port on the server, the client ppp sees these packets "reflect" back. One part of the LCP negotiation is to establish a magic number for each side of the link so that "reflections" can be detected. The protocol says that when the peer tries to negotiate the same magic number, a NAK should be sent and a new magic number should be chosen. During the period that the server port has ECHO turned on, the client ppp sends LCP packets, sees the same magic in the reflected packet and NAKs it. It also sees the NAK reflect (which also means ppp must change its magic). This produces a potentially enormous number of magic number changes, all of which are happily piling into the server's tty buffer. As soon as ppp starts on the server, it's flooded with magic number changes and almost immediately decides it's tried enough to negotiate LCP and gives up. Meanwhile, the client, who no longer sees the reflections, becomes happy just in time to see a hangup from the server. This can be avoided by allowing the peer to start negotiating with the following line in your ppp.conf file: set openmode passive This tells ppp to wait for the server to initiate LCP negotiations. Some servers however may never initiate negotiations. If this is the case, you can do something like: set openmode active 3 This tells ppp to be passive for 3 seconds, and then to start sending LCP requests. If the peer starts sending requests during this period, ppp will immediately respond rather than waiting for the full 3 second period. LCP negotiations continue 'till the connection is closed There is currently an implementation mis-feature in ppp where it doesn't associate LCP, CCP & IPCP responses with their original requests. As a result, if one ppp implementation is more than 6 seconds slower than the other side, the other side will send two additional LCP configuration requests. This is fatal. Consider two implementations, A and B. A starts sending LCP requests immediately after connecting and B takes 7 seconds to start. When B starts, A has sent 3 LCP REQs. We're assuming the line has ECHO switched off, otherwise we'd see magic number problems as described in the previous section. B sends a REQ, then an ACK to the first of A's REQs. This results in A entering the OPENED state and sending and ACK (the first) back to B. In the meantime, B sends back two more ACKs in response to the two additional REQs sent by A before B started up. B then receives the first ACK from A and enters the OPENED state. A receives the second ACK from B and goes back to the REQ-SENT state, sending another (forth) REQ as per the RFC. It then receives the third ACK and enters the OPENED state. In the meantime, B receives the forth REQ from A, resulting in it reverting to the ACK-SENT state and sending another (second) REQ and (forth) ACK as per the RFC. A gets the REQ, goes into REQ-SENT and sends another REQ. It immediately receives the following ACK and enters OPENED. This goes on 'till one side figures out that they're getting nowhere and gives up. The best way to avoid this is to configure one side to be passive - that is, make one side wait for the other to start negotiating. This can be done with the set openmode passive command. Care should be taken with this option. You should also use the set stopped N command to limit the amount of time that ppp waits for the peer to begin negotiations. Alternatively, the set openmode active N command (where N is the number of seconds to wait before starting negotiations) can be used. Check the manual page for details. Ppp locks up shortly after connecting Prior to version 2.2.5 of FreeBSD, it was possible that your link was disabled shortly after connection due to ppp mis-handling Predictor1 compression negotiation. This would only happen if both sides tried to negotiate different Compression Control Protocols (CCP). This problem is now corrected, but if you're still running an old version of ppp, the problem can be circumvented with the line disable pred1 Ppp locks up when I shell out to test it When you execute the shell or ! command, ppp executes a shell (or if you've passed any arguements, ppp will execute those arguements). Ppp will wait for the command to complete before continuing. If you attempt to use the ppp link while running the command, the link will appear to have frozen. This is because ppp is waiting for the command to complete. If you wish to execute commands like this, use the !bg command instead. This will execute the given command in the background, and ppp can continue to service the link. Ppp over a null-modem cable never exits There is no way for ppp to automatically determine that a direct connection has been dropped. This is due to the lines that are used in a null-modem serial cable. When using this sort of connection, LQR should always be enabled with the line enable lqr LQR is accepted by default if negotiated by the peer. Why does ppp dial for no reason in -auto mode If ppp is dialing unexpectedly, you must determine the cause, and set up Dial filters (dfilters) to prevent such dialing. To determine the cause, use the following line: set log +tcp/ip This will log all traffic through the connection. The next time the line comes up unexpectedly, you will see the reason logged with a convenient timestamp next to it. You can now disable dialing under these circumstances. Usually, this sort of problem arises due to DNS lookups. To prevent DNS lookups from establishing a connection (this will not prevent ppp from passing the packets through an established connection), use the following: set dfilter 1 deny udp src eq 53 set dfilter 2 deny udp dst eq 53 set dfilter 3 permit 0/0 0/0 This is not always suitable, as it will effectively break your demand-dial capabilities - most programs will need a DNS lookup before doing any other network related things. In the DNS case, you should try to determine what is actually trying to resolve a host name. A lot of the time, sendmail is the culprit. You should make sure that you tell sendmail not to do any DNS lookups in its configuration file. See the section on Mail Configuration for details on how to create your own configuration file and what should go into it. You may also want to add the following line to your .mc file: define(`confDELIVERY_MODE', `d')dnl This will make sendmail queue everything until the queue is run (usually, sendmail is invoked with ``-bd -q30m'', telling it to run the queue every 30 minutes) or until a ``sendmail -q'' is done (perhaps from your ppp.linkup file). What do these CCP errors mean I keep seeing the following errors in my log file: CCP: CcpSendConfigReq CCP: Received Terminate Ack (1) state = Req-Sent (6) This is because ppp is trying to negotiate Predictor1 compression, and the peer does not want to negotiate any compression at all. The messages are harmless, but if you wish to remove them, you can disable Predictor1 compression locally too: disable pred1 Ppp locks up during file transfers with IO errors Under FreeBSD 2.2.2 and before, there was a bug in the tun driver that prevents incoming packets of a size larger than the tun interface's MTU size. Receipt of a packet greater than the MTU size results in an IO error being logged via syslogd. The ppp specification says that an MRU of 1500 should always be accepted as a minimum, despite any LCP negotiations, therefore it is possible that should you decrease the MTU to less than 1500, your ISP will transmit packets of 1500 regardless, and you will tickle this non-feature - locking up your link. The problem can be circumvented by never setting an MTU of less than 1500 under FreeBSD 2.2.2 or before. Why doesn't ppp log my connection speed? In order to log all lines of your modem ``conversation'', you must enable the following: set log +connect This will make ppp log everything up until the last requested "expect" string. If you wish to see your connect speed and are using PAP or CHAP (and therefore don't have anything to "chat" after the CONNECT in the dial script - no "set login" script), you must make sure that you instruct ppp to "expect" the whole CONNECT line, something like this: set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 4 \"\" ATZ OK-ATZ-OK ATDT\\T TIMEOUT 60 CONNECT \\c \\n" Here, we get our CONNECT, send nothing, then expect a line-feed, forcing ppp to read the whole CONNECT response. Ppp ignores the `\' character in my chat script Ppp parses each line in your config files so that it can interpret strings such as set phone "123 456 789" correctly (and realize that the number is actually only one argument. In order to specify a ``"'' character, you must escape it using a backslash (``\''). When the chat interpreter parses each argument, it re-interprets the argument in order to find any special escape sequences such as ``\P'' or ``\T'' (see the man page). As a result of this double-parsing, you must remember to use the correct number of escapes. If you wish to actually send a ``\'' character to (say) your modem, you'd need something like: set dial "\"\" ATZ OK-ATZ-OK AT\\\\X OK" resulting in the following sequence: ATZ OK AT\X OK or set phone 1234567 set dial "\"\" ATZ OK ATDT\\T" resulting in the following sequence: ATZ OK ATDT1234567 Ppp gets a seg-fault, but I see no ppp.core file Ppp (or any other program for that matter) should never dump core. Because ppp runs with an effective user id of 0, the operating system will not write ppps core image to disk before terminating it. If, however ppp is actually termating due to a segmentation violation or some other signal that normally causes core to be dumped, and you're sure you're using the latest version (see the start of this section), then you should do the following: $ tar xfz ppp-*.src.tar.gz $ cd ppp*/ppp $ echo STRIP= >>Makefile $ echo CFLAGS+=-g >>Makefile $ make clean all $ su # make install # chmod 555 /usr/sbin/ppp You will now have a debuggable version of ppp installed. You will have to be root to run ppp as all of its privileges have been revoked. When you start ppp, take a careful note of what your current directory was at the time. Now, if and when ppp receives the segmentation violation, it will dump a core file called ppp.core. You should then do the following: $ su # gdb /usr/sbin/ppp ppp.core (gdb) bt ..... (gdb) f 0 ..... (gdb) i args ..... (gdb) l ..... All of this information should be given alongside your question, making it possible to diagnose the problem. If you're familiar with gdb, you may wish to find out some other bits and pieces such as what actually caused the dump and the addresses & values of the relevant variables. The process that forces a dial in auto mode never connects This was a known problem with ppp set up to negotiate a dynamic local IP number with the peer in auto mode. It is fixed in the latest version - search the man page for iface. The problem was that when that initial program calls connect(2), the IP number of the tun interface is assigned to the socket endpoint. The kernel creates the first outgoing packet and writes it to the tun device. Ppp then reads the packet and establishes a connection. If, as a result of ppps dynamic IP assignment, the interface address is changed, the original socket endpoint will be invalid. Any subsequent packets sent to the peer will usually be dropped. Even if they aren't, any responses will not route back to the originating machine as the IP number is no longer owned by that machine. There are several theoretical ways to approach this problem. It would be nicest if the peer would re-assign the same IP number if possible :-) The current version of ppp does this, but most other implementations don't. The easiest method from our side would be to never change the tun interface IP number, but instead to change all outgoing packets so that the source IP number is changed from the interface IP to the negotiated IP on the fly. This is essentially what the iface-alias option in the latest version of ppp is doing (with the help of libalias(3) and ppp's switch) - it's maintaining all previous interface addresses and aliasing them to the last negotiated address. Another alternative (and probably the most reliable) would be to implement a system call that changes all bound sockets from one IP to another. Ppp would use this call to modify the sockets of all existing programs when a new IP number is negotiated. The same system call could be used by dhcp clients when they are forced to re-bind() their sockets. Yet another possibility is to allow an interface to be brought up without an IP number. Outgoing packets would be given an IP number of 255.255.255.255 up until the first SIOCAIFADDR ioctl is done. This would result in fully binding the socket. It would be up to ppp to change the source IP number, but only if it's set to 255.255.255.255, and only the IP number and IP checksum would need to change. This, however is a bit of a hack as the kernel would be sending bad packets to an improperly configured interface, on the assumption that some other mechanism is capable of fixing things retrospectively. Why don't most games work with the -alias switch The reason games and the like don't work when libalias is in use is that the machine on the outside will try to open a connection or send (unsolicited) UDP packets to the machine on the inside. The packet alias software doesn't know that it should send these packets to the interior machine. To make things work, make sure that the only thing running is the software that you're having problems with, then either run tcpdump on the tun interface of the gateway or enable ppp tcp/ip logging (``set log +tcp/ip'') on the gateway. When you start the offending software, you should see packets passing through the gateway machine. When something comes back from the outside, it'll be dropped (that's the problem). Note the port number of these packets then shut down the offending software. Do this a few times to see if the port numbers are consistent. If they are, then the following line in the relevant section of /etc/ppp/ppp.conf will make the software functional: alias port proto internalmachine:port port where ``proto'' is either ``tcp'' or ``udp'', ``internalmachine'' is the machine that you want the packets to be sent to and ``port'' is the destination port number of the packets. You won't be able to use the software on other machines without changing the above command, and running the software on two internal machines at the same time is out of the question - after all, the outside world is seeing your entire internal network as being just a single machine. If the port numbers aren't consistent, there are three more options: 1) Submit support in libalias. Examples of ``special cases'' can be found in /usr/src/lib/libalias/alias_*.c (alias_ftp.c is a good prototype). This usually involves reading certain recognised outgoing packets, identifying the instruction that tells the outside machine to initiate a connection back to the internal machine on a specific (random) port and setting up a ``route'' in the alias table so that the subsequent packets know where to go. This is the most difficult solution, but it is the best and will make the software work with multiple machines. 2) Use a proxy. The application may support socks5 for example, or (as in the ``cvsup'' case) may have a ``passive'' option that avoids ever requesting that the peer open connections back to the local machine. 3) Redirect everything to the internal machine using ``alias addr''. This is the sledge-hammer approach. Has anybody made a list of useful port numbers ? Not yet, but this is intended to grow into such a list (if any interest is shown). In each example, internal should be replaced with the IP number of the machine playing the game. Quake alias port udp internal:6112 6112 Alternatively, you may want to take a look at www.battle.net for Quake proxy support. Quake 2 alias port udp internal:27901 27910 Red Alert alias port udp internal:8675 8675 alias port udp internal:5009 5009 Half Life alias port udp internal:27005 27015 PCAnywhere 8.0 alias port udp internal:5632 5632 alias port tcp internal:5631 5631 What are FCS errors ? FCS stands for Frame Check Sequence. Each ppp packet has a checksum attached to ensure that the data being received is the data being sent. If the FCS of an incoming packet is incorrect, the packet is dropped and the HDLC FCS count is increased. The HDLC error values can be displayed using the show hdlc command. If your link is bad (or if your serial driver is dropping packets), you will see the occasional FCS error. This is not usually worth worrying about although it does slow down the compression protocols substantially. If you have an external modem, make sure your cable is properly shielded from interference - this may eradicate the problem. If your link freezes as soon as you've connected and you see a large number of FCS errors, this may be because your link is not 8 bit clean. Make sure your modem is not using software flow control (XON/XOFF). If your datalink must use software flow control, use the command set accmap 0x000a0000 to tell ppp to escape the ^Q and ^S characters. Another reason for seeing too many FCS errors may be that the remote end has stopped talking PPP. You may want to enable async logging at this point to determine if the incoming data is actually a login or shell prompt. If you have a shell prompt at the remote end, it's possible to terminate ppp without dropping the line by using the close lcp command (a following term command will reconnect you to the shell on the remote machine. If nothing in your log file indicates why the link might have been terminated, you should ask the remote administrator (your ISP?) why the session was terminated. None of this helps - I'm desperate ! If all else fails, send as much information as you can, including your config files, how you're starting ppp, the relevant parts of your log file and the output of the netstat -rn command (before and after connecting) to the freebsd-questions@FreeBSD.org mailing list or the comp.unix.bsd.freebsd.misc news group, and someone should point you in the right direction. Serial Communications This section answers common questions about serial communications with FreeBSD. PPP and SLIP are covered in the section. How do I tell if FreeBSD found my serial ports? As the FreeBSD kernel boots, it will probe for the serial ports in your system for which the kernel was configured. You can either watch your system closely for the messages it prints or run the command dmesg | grep sio after your system's up and running. Here's some example output from the above command: sio0 at 0x3f8-0x3ff irq 4 on isa sio0: type 16550A sio1 at 0x2f8-0x2ff irq 3 on isa sio1: type 16550A This shows two serial ports. The first is on irq 4, is using port address 0x3f8, and has a 16550A-type UART chip. The second uses the same kind of chip but is on irq 3 and is at port address 0x2f8. Internal modem cards are treated just like serial ports---except that they always have a modem ``attached'' to the port. The GENERIC kernel includes support for two serial ports using the same irq and port address settings in the above example. If these settings aren't right for your system, or if you've added modem cards or have more serial ports than your kernel is configured for, just reconfigure your kernel. See section about building a kernel for more details. How do I tell if FreeBSD found my modem cards? Refer to the answer to the previous question. I just upgraded to 2.0.5 and my tty0X are missing! Don't worry, they have been merged with the ttydX devices. You'll have to change any old configuration files you have, though. How do I access the serial ports on FreeBSD? The third serial port, sio2 (known as COM3 in DOS), is on /dev/cuaa2 for dial-out devices, and on /dev/ttyd2 for dial-in devices. What's the difference between these two classes of devices? You use ttydX for dial-ins. When opening /dev/ttydX in blocking mode, a process will wait for the corresponding cuaaX device to become inactive, and then wait for the carrier detect line to go active. When you open the cuaaX device, it makes sure the serial port isn't already in use by the ttydX device. If the port's available, it ``steals'' it from the ttydX device. Also, the cuaXX device doesn't care about carrier detect. With this scheme and an auto-answer modem, you can have remote users log in and you can still dialout with the same modem and the system will take care of all the conflicts. How do I enable support for a multiport serial card? Again, the section on kernel configuration provides information about configuring your kernel. For a multiport serial card, place an sio line for each serial port on the card in the kernel configuration file. But place the irq and vector specifiers on only one of the entries. All of the ports on the card should share one irq. For consistency, use the last serial port to specify the irq. Also, specify the COM_MULTIPORT option. The following example is for an AST 4-port serial card on irq 7: options "COM_MULTIPORT" device sio4 at isa? port 0x2a0 tty flags 0x781 device sio5 at isa? port 0x2a8 tty flags 0x781 device sio6 at isa? port 0x2b0 tty flags 0x781 device sio7 at isa? port 0x2b8 tty flags 0x781 irq 7 vector siointr The flags indicate that the master port has minor number 7 (0x700), diagnostics enabled during probe (0x080), and all the ports share an irq (0x001). Can FreeBSD handle multiport serial cards sharing irqs? Not yet. You'll have to use a different irq for each card. Can I set the default serial parameters for a port? The ttydX (or cuaaX) device is the regular device you'll want to open for your applications. When a process opens the device, it'll have a default set of terminal I/O settings. You can see these settings with the command stty -a -f /dev/ttyd1 When you change the settings to this device, the settings are in effect until the device is closed. When it's reopened, it goes back to the default set. To make changes to the default set, you can open and adjust the settings of the ``initial state'' device. For example, to turn on CLOCAL mode, 8 bits, and XON/XOFF flow control by default for ttyd5, do: stty -f /dev/ttyid5 clocal cs8 ixon ixoff A good place to do this is in /etc/rc.serial. Now, an application will have these settings by default when it opens ttyd5. It can still change these settings to its liking, though. You can also prevent certain settings from being changed by an application by making adjustments to the ``lock state'' device. For example, to lock the speed of ttyd5 to 57600 bps, do stty -f /dev/ttyld5 57600 Now, an application that opens ttyd5 and tries to change the speed of the port will be stuck with 57600 bps. Naturally, you should make the initial state and lock state devices writable only by root. The MAKEDEV script does NOT do this when it creates the device entries. How can I enable dialup logins on my modem? So you want to become an Internet service provider, eh? First, you'll need one or more modems that can auto-answer. Your modem will need to assert carrier-detect when it detects a carrier and not assert it all the time. It will need to hang up the phone and reset itself when the data terminal ready (DTR) line goes from on to off. It should probably use RTS/CTS flow control or no local flow control at all. Finally, it must use a constant speed between the computer and itself, but (to be nice to your callers) it should negotiate a speed between itself and the remote modem. For many Hayes command-set--compatible modems, this command will make these settings and store them in nonvolatile memory: AT &C1 &D3 &K3 &Q6 S0=1 &W See the section on sending AT commands below for information on how to make these settings without resorting to an MS-DOS terminal program. Next, make an entry in /etc/ttys for the modem. This file lists all the ports on which the operating system will await logins. Add a line that looks something like this: ttyd1 "/usr/libexec/getty std.57600" dialup on insecure This line indicates that the second serial port (/dev/ttyd1) has a modem connected running at 57600 bps and no parity (std.57600, which comes from the file /etc/gettytab). The terminal type for this port is ``dialup.'' The port is ``on'' and is ``insecure''---meaning root logins on the port aren't allowed. For dialin ports like this one, use the ttydX entry. It's common practice to use ``dialup'' as the terminal type. Many users set up in their .profile or .login files a prompt for the actual terminal type if the starting type is dialup. The example shows the port as insecure. To become root on this port, you have to login as a regular user, then ``su'' to root. If you use ``secure'' then root can login in directly. After making modifications to /etc/ttys, you need to send a hangup or HUP signal to the init process: kill -HUP 1 This forces the init process to reread /etc/ttys. The init process will then start getty processes on all ``on'' ports. You can find out if logins are available for your port by typing ps -ax | grep '[t]tyd1' You should see something like: 747 ?? I 0:00.04 /usr/libexec/getty std.57600 ttyd1 How can I connect a dumb terminal to my FreeBSD box? If you're using another computer as a terminal into your FreeBSD system, get a null modem cable to go between the two serial ports. If you're using an actual terminal, see its accompanying instructions. Then, modify /etc/ttys, like above. For example, if you're hooking up a WYSE-50 terminal to the fifth serial port, use an entry like this: ttyd4 "/usr/libexec/getty std.38400" wyse50 on secure This example shows that the port on /dev/ttyd4 has a wyse50 terminal connected at 38400 bps with no parity (std.38400 from /etc/gettytab) and root logins are allowed (secure). Why can't I run tip or cu? On your system, the programs tip and cu are probably executable only by uucp and group dialer. You can use the group dialer to control who has access to your modem or remote systems. Just add yourself to group dialer. Alternatively, you can let everyone on your system run tip and cu by typing: # chmod 4511 /usr/bin/cu # chmod 4511 /usr/bin/tip My stock Hayes modem isn't supported---what can I do? Actually, the man page for tip is out of date. There is a generic Hayes dialer already built in. Just use ``at=hayes'' in your /etc/remote file. The Hayes driver isn't smart enough to recognize some of the advanced features of newer modems---messages like BUSY, NO DIALTONE, or CONNECT 115200 will just confuse it. You should turn those messages off when you use tip (using ATX0&W). Also, the dial timeout for tip is 60 seconds. Your modem should use something less, or else tip will think there's a communication problem. Try ATS7=45&W. Actually, as shipped tip doesn't yet support it fully. The solution is to edit the file tipconf.h in the directory /usr/src/usr.bin/tip/tip. Obviously you need the source distribution to do this. Edit the line ``#define HAYES 0'' to ``#define HAYES 1''. Then ``make'' and ``make install''. Everything works nicely after that. How am I expected to enter these AT commands? Make what's called a ``direct'' entry in your /etc/remote file. For example, if your modem's hooked up to the first serial port, /dev/cuaa0, then put in the following line: cuaa0:dv=/dev/cuaa0:br#19200:pa=none Use the highest bps rate your modem supports in the br capability. Then, type tip cuaa0 and you'll be connected to your modem. If there is no /dev/cuaa0 on your system, do this: # cd /dev # ./MAKEDEV cuaa0 Or use cu as root with the following command: # cu -l``line'' -s``speed'' with line being the serial port (e.g./dev/cuaa0) and speed being the speed (e.g.57600). When you are done entering the AT commands hit ~. to exit. The <@> sign for the pn capability doesn't work! The <@> sign in the phone number capability tells tip to look in /etc/phones for a phone number. But the <@> sign is also a special character in capability files like /etc/remote. Escape it with a backslash: pn=\@ How can I dial a phone number on the command line? Put what's called a ``generic'' entry in your /etc/remote file. For example: tip115200|Dial any phone number at 115200 bps:\ :dv=/dev/cuaa0:br#115200:at=hayes:pa=none:du: tip57600|Dial any phone number at 57600 bps:\ :dv=/dev/cuaa0:br#57600:at=hayes:pa=none:du: Then you can do something like ``tip -115200 5551234''. If you prefer cu over tip, use a generic cu entry: cu115200|Use cu to dial any number at 115200bps:\ :dv=/dev/cuaa1:br#57600:at=hayes:pa=none:du: and type ``cu 5551234 -s 115200''. Do I have to type in the bps rate every time I do that? Put in an entry for tip1200 or cu1200, but go ahead and use whatever bps rate is appropriate with the br capability. tip thinks a good default is 1200 bps which is why it looks for a ``tip1200'' entry. You don't have to use 1200 bps, though. I access a number of hosts through a terminal server. Rather than waiting until you're connected and typing ``CONNECT <host>'' each time, use tip's cm capability. For example, these entries in /etc/remote: pain|pain.deep13.com|Forrester's machine:\ :cm=CONNECT pain\n:tc=deep13: muffin|muffin.deep13.com|Frank's machine:\ :cm=CONNECT muffin\n:tc=deep13: deep13:Gizmonics Institute terminal server:\ :dv=/dev/cua02:br#38400:at=hayes:du:pa=none:pn=5551234: will let you type ``tip pain'' or ``tip muffin'' to connect to the hosts pain or muffin; and ``tip deep13'' to get to the terminal server. Can tip try more than one line for each site? This is often a problem where a university has several modem lines and several thousand students trying to use them... Make an entry for your university in /etc/remote and use <\@> for the pn capability: big-university:\ :pn=\@:tc=dialout dialout:\ :dv=/dev/cuaa3:br#9600:at=courier:du:pa=none: Then, list the phone numbers for the university in /etc/phones: big-university 5551111 big-university 5551112 big-university 5551113 big-university 5551114 tip will try each one in the listed order, then give up. If you want to keep retrying, run tip in a while loop. Why do I have to hit CTRL+P twice to send CTRL+P once? CTRL+P is the default ``force'' character, used to tell tip that the next character is literal data. You can set the force character to any other character with the ~s escape, which means ``set a variable.'' Type ``~sforce=<single-char>'' followed by a newline. <single-char> is any single character. If you leave out <single-char>, then the force character is the nul character, which you can get by typing CTRL+2 or CTRL+SPACE. A pretty good value for <single-char> is SHIFT+CTRL+6, which I've seen only used on some terminal servers. You can have the force character be whatever you want by specifying the following in your $HOME/.tiprc file: force=<single-char> Suddenly everything I type is in UPPER CASE?? You must've pressed CTRL+A, tip ``raise character,'' specially designed for people with broken caps-lock keys. Use ~s as above and set the variable ``raisechar'' to something reasonable. In fact, you can set it to the same as the force character, if you never expect to use either of these features. Here's a sample .tiprc file perfect for Emacs users who need to type CTRL+2 and CTRL+A a lot: force=^^ raisechar=^^ The ^^ is SHIFT+CTRL+6. How can I do file transfers with tip? If you're talking to another UNIX system, you can send and receive files with ~p (put) and ~t (take). These commands run cat and echo on the remote system to accept and send files. The syntax is: ~p <local-file> [<remote-file>] ~t <remote-file> [<local-file>] There's no error checking, so you probably should use another protocol, like zmodem. How can I run zmodem with tip? First, install one of the zmodem programs from the ports collection (such as one of the two from the comms category, lrzsz and rzsz). To receive files, start the sending program on the remote end. Then, press enter and type ``~C rz'' (or ``~C lrz'' if you installed lrzsz) to begin receiving them locally. To send files, start the receiving program on the remote end. Then, press enter and type ``~C sz <files>'' (or ``~C lsz <files>'') to send them to the remote system. FreeBSD can't seem to find my serial ports, even when the settings are correct. Motherboards and cards with Acer UARTs do not probe properly under the FreeBSD sio probe. Obtain a patch from www.lemis.com to fix your problem. Miscellaneous Questions FreeBSD uses far more swap space than Linux. Why? FreeBSD only appears to use more swap than Linux. In actual fact, it does not. The main difference between FreeBSD and Linux in this regard is that FreeBSD will proactively move entirely idle, unused pages of main memory into swap in order to make more main memory available for active use. Linux tends to only move pages to swap as a last resort. The perceived heavier use of swap is balanced by the more efficient use of main memory. Note that while FreeBSD is proactive in this regard, it does not arbitrarily decide to swap pages when the system is truely idle. Thus you will not find your system all paged out when you get up in the morning after leaving it idle overnight. Why use (what are) a.out and ELF executable formats? To understand why FreeBSD uses the a.out format, you must first know a little about the 3 currently "dominant" executable formats for UNIX: a.out The oldest and `classic' unix object format. It uses a short and compact header with a magic number at the beginning that's often used to characterize the format (see a.out(5) for more details). It contains three loaded segments: .text, .data, and .bss plus a symbol table and a string table. COFF The SVR3 object format. The header now comprises a section table, so you can have more than just .text, .data, and .bss sections. ELF The successor to COFF, featuring Multiple sections and 32-bit or 64-bit possible values. One major drawback: ELF was also designed with the assumption that there would be only one ABI per system architecture. That assumption is actually quite incorrect, and not even in the commercial SYSV world (which has at least three ABIs: SVR4, Solaris, SCO) does it hold true. FreeBSD tries to work around this problem somewhat by providing a utility for branding a known ELF executable with information about the ABI it's compliant with. See the man page for brandelf for more information. FreeBSD comes from the "classic" camp and has traditionally used the a.out format, a technology tried and proven through many generations of BSD releases. Though it has also been possible for some time to build and run native ELF binaries (and kernels) on a FreeBSD system, FreeBSD initially resisted the "push" to switch to ELF as the default format. Why? Well, when the Linux camp made their painful transition to ELF, it was not so much to flee the a.out executable format as it was their inflexible jump-table based shared library mechanism, which made the construction of shared libraries very difficult for vendors and developers alike. Since the ELF tools available offered a solution to the shared library problem and were generally seen as "the way forward" anyway, the migration cost was accepted as necessary and the transition made. In FreeBSD's case, our shared library mechanism is based more closely on Sun's SunOS-style shared library mechanism and, as such, is very easy to use. However, starting with 3.0, FreeBSD officially supports ELF binaries as the default format. Even though the a.out executable format has served us well, the GNU people, who author the compiler tools we use, have dropped support for the a.out format. This has forced us to maintain a divergent version of the compler and linker, and has kept us from reaping the benefits of the latest GNU development efforts. Also the demands of ISO-C++, notably contstructors and destructors, has also led to native ELF support in future FreeBSD releases. Yes, but why are there so many different formats? Back in the dim, dark past, there was simple hardware. This simple hardware supported a simple, small system. a.out was completely adequate for the job of representing binaries on this simple system (a PDP-11). As people ported unix from this simple system, they retained the a.out format because it was sufficient for the early ports of unix to architectures like the Motorola 68k, VAXen, etc. Then some bright hardware engineer decided that if he could force software to do some sleazy tricks, then he'd be able to shave a few gates off the design and allow his CPU core to run faster. While it was made to work with this new kind of hardware (known these days as RISC), a.out was ill-suited for this hardware, so many formats were developed to get to a better performance from this hardware than the limited, simple a.out format could offer. Things like COFF, ECOFF, and a few obscure others were invented and their limitations explored before things seemed to settle on ELF. In addition, program sizes were getting huge and disks (and physical memory) were still relatively small so the concept of a shared library was born. The VM system also became more sophisticated. While each one of these advancements was done using the a.out format, its usefulness was stretched more and more with each new feature. In addition, people wanted to dynamically load things at run time, or to junk parts of their program after the init code had run to save in core memory and/or swap space. Languages became more sophistocated and people wanted code called before main automatically. Lots of hacks were done to the a.out format to allow all of these things to happen, and they basically worked for a time. In time, a.out wasn't up to handling all these problems without an ever increasing overhead in code and complexity. While ELF solved many of these problems, it would be painful to switch from the system that basically worked. So ELF had to wait until it was more painful to remain with a.out than it was to migrate to ELF. However, as time passed, the build tools that FreeBSD derived their build tools from (the assembler and loader especially) evolved in two parallel trees. The FreeBSD tree added shared libraries and fixed some bugs. The GNU folks that originally write these programs rewrote them and added simpler support for building cross compilers, plugging in different formats at will, etc. Since many people wanted to build cross compilers targeting FreeBSD, they were out of luck since the older sources that FreeBSD had for as and ld weren't up to the task. The new gnu tools chain (binutils) does support cross compiling, ELF, shared libraries, C++ extnensions, etc. In addition, many vendors are releasing ELF binaries, and it is a good thing for FreeBSD to run them. And if it is running ELF binaries, why bother having a.out any more? It is a tired old horse that has proven useful for a long time, but it is time to turn him out to pasture for his long, faithful years of service. ELF is more expressive than a.out and will allow more extensibility in the base system. The ELF tools are better maintained, and offer cross compilation support, which is important to many people. ELF may be a little slower than a.out, but trying to measure it can be difficult. There are also numerous details that are different between the two in how they map pages, handle init code, etc. None of these are very important, but they are differences. In time support for a.out will be moved out of the GENERIC kernel, and eventually removed from the kernel once the need to run legacy a.out programs is past. Why won't chmod change the permissions on symlinks? You have to use either ``'' or ``'' together with the ``'' option to make this work. See the chmod and symlink man pages for more info. WARNING the ``'' option does a RECURSIVE chmod. Be careful about specifying directories or symlinks to directories to chmod. If you want to change the permissions of a directory referenced by a symlink, use chmod without any options and follow the symlink with a trailing slash (``/''). For example, if ``foo'' is a symlink to directory ``bar'', and you want to change the permissions of ``foo'' (actually ``bar''), you would do something like: chmod 555 foo/ With the trailing slash, chmod will follow the symlink, ``foo'', to change the permissions of the directory, ``bar''. Why are login names still restricted to 8 characters? You'd think it'd be easy enough to change UT_NAMESIZE and rebuild the whole world, and everything would just work. Unfortunately there are often scads of applications and utilities (including system tools) that have hard-coded small numbers (not always "8" or "9", but oddball ones like "15" and "20") in structures and buffers. Not only will this get you log files which are trashed (due to variable-length records getting written when fixed records were expected), but it can break Sun's NIS clients and potentially cause other problems in interacting with other UNIX systems. In FreeBSD 3.0 and later, the maximum name length has been increased to 16 characters and those various utilities with hard-coded name sizes have been found and fixed. The fact that this touched so many areas of the system is why, in fact, the change was not made until 3.0. If you're absolutely confident in your ability to find and fix these sorts of problems for yourself when and if they pop up, you can increase the login name length in earlier releases by editing /usr/include/utmp.h and changing UT_NAMESIZE accordingly. You must also update MAXLOGNAME in /usr/include/sys/param.h to match the UT_NAMESIZE change. Finally, if you build from sources, don't forget that /usr/include is updated each time! Change the appropriate files in /usr/src/.. instead. Can I run DOS binaries under FreeBSD? Yes, starting with version 3.0 you can using BSDI's rundos DOS emulation which has been integrated and enhanced. Send mail to The FreeBSD emulation discussion list if you're interested in joining this ongoing effort! For pre-3.0 systems, there is a neat utility called pcemu in the ports collection which emulates an 8088 and enough BIOS services to run DOS text mode applications. It requires the X Window System (provided as XFree86). What is ``sup'', and how do I use it? SUP stands for Software Update Protocol, and was developed by CMU for keeping their development trees in sync. We used it to keep remote sites in sync with our central development sources. SUP is not bandwidth friendly, and has been retired. The current recommended method to keep your sources up to date is Handbook entry on CVSup How cool is FreeBSD? Q. Has anyone done any temperature testing while running FreeBSD? I know Linux runs cooler than dos, but have never seen a mention of FreeBSD. It seems to run really hot. A. No, but we have done numerous taste tests on blindfolded volunteers who have also had 250 micrograms of LSD-25 administered beforehand. 35% of the volunteers said that FreeBSD tasted sort of orange, whereas Linux tasted like purple haze. Neither group mentioned any particular variances in temperature that I can remember. We eventually had to throw the results of this survey out entirely anyway when we found that too many volunteers were wandering out of the room during the tests, thus skewing the results. I think most of the volunteers are at Apple now, working on their new ``scratch and sniff'' GUI. It's a funny old business we're in! Seriously, both FreeBSD and Linux use the ``HLT'' (halt) instruction when the system is idle thus lowering its energy consumption and therefore the heat it generates. Also if you have APM (automatic power management) configured, then FreeBSD can also put the CPU into a low power mode. Who's scratching in my memory banks?? Q. Is there anything "odd" that FreeBSD does when compiling the kernel which would cause the memory to make a scratchy sound? When compiling (and for a brief moment after recognizing the floppy drive upon startup, as well), a strange scratchy sound emanates from what appears to be the memory banks. A. Yes! You'll see frequent references to ``daemons'' in the BSD documentation, and what most people don't know is that this refers to genuine, non-corporeal entities that now possess your computer. The scratchy sound coming from your memory is actually high-pitched whispering exchanged among the daemons as they best decide how to deal with various system administration tasks. If the noise gets to you, a good ``fdisk /mbr'' from DOS will get rid of them, but don't be surprised if they react adversely and try to stop you. In fact, if at any point during the exercise you hear the satanic voice of Bill Gates coming from the built-in speaker, take off running and don't ever look back! Freed from the counterbalancing influence of the BSD daemons, the twin demons of DOS and Windows are often able to re-assert total control over your machine to the eternal damnation of your soul. Given a choice, I think I'd prefer to get used to the scratchy noises, myself! What does 'MFC' mean? MFC is an acronym for 'Merged From -CURRENT.' It's used in the CVS logs to denote when a change was migrated from the CURRENT to the STABLE branches. What does 'BSD' mean? It stands for something in a secret language that only members can know. It doesn't translate literally but its ok to tell you that BSD's translation is something between, 'Formula-1 Racing Team', 'Penguins are tasty snacks', and 'We have a better sense of humor than Linux.' :-) Seriously, BSD is an acronym for 'Berkeley Software Distribution', which is the name the Berkeley CSRG (Computer Systems Research Group) chose for their Unix distribution way back when. How many FreeBSD hackers does it take to change a lightbulb? One thousand, one hundred and seventy-two: Twenty-three to complain to -current about the lights being out; Four to claim that it is a configuration problem, and that such matters really belong on -questions; Three to submit PRs about it, one of which is misfiled under doc and consists only of "it's dark"; One to commit an untested lightbulb which breaks buildworld, then back it out five minutes later; Eight to flame the PR originators for not including patches in their PRs; Five to complain about buildworld being broken; Thirty-one to answer that it works for them, and they must have cvsupped at a bad time; One to post a patch for a new lightbulb to -hackers; One to complain that he had patches for this three years ago, but when he sent them to -current they were just ignored, and he has had bad experiences with the PR system; besides, the proposed new lightbulb is non-reflexive; Thirty-seven to scream that lightbulbs do not belong in the base system, that committers have no right to do things like this without consulting the Community, and WHAT IS -CORE DOING ABOUT IT!? Two hundred to complain about the color of the bicycle shed; Three to point out that the patch breaks style(9); Seventeen to complain that the proposed new lightbulb is under GPL; Five hundred and eighty-six to engage in a flame war about the comparative advantages of the GPL, the BSD license, the MIT license, the NPL, and the personal hygiene of unnamed FSF founders; Seven to move various portions of the thread to -chat and -advocacy; One to commit the suggested lightbulb, even though it shines dimmer than the old one; Two to back it out with a furious flame of a commit message, arguing that FreeBSD is better off in the dark than with a dim lightbulb; Forty-six to argue vociferously about the backing out of the dim lightbulb and demanding a statement from -core; Eleven to request a smaller lightbulb so it will fit their Tamagotchi if we ever decide to port FreeBSD to that platform; Seventy-three to complain about the SNR on -hackers and -chat and unsubscribe in protest; Thirteen to post "unsubscribe", "How do I unsubscribe?", or "Please remove me from the list", followed by the usual footer; One to commit a working lightbulb while everybody is too busy flaming everybody else to notice; Thirty-one to point out that the new lightbulb would shine 0.364% brighter if compiled with TenDRA (although it will have to be reshaped into a cube), and that FreeBSD should therefore switch to TenDRA instead of EGCS; One to complain that the new lightbulb lacks fairings; Nine (including the PR originators) to ask "what is MFC?"; Fifty-seven to complain about the lights being out two weeks after the bulb has been changed. Nik Clayton adds: I was laughing quite hard at this. And then I thought, "Hang on, shouldn't there be '1 to document it.' in that list somewhere?" And then I was enlightened :-) For serious FreeBSD hackers only What are SNAPs and RELEASEs? There are currently three active/semi-active branches in the FreeBSD CVS Repository: RELENG_2_2 AKA 2.2-stable AKA "2.2 branch" RELENG_3 AKA 3.x-stable AKA "3.0 branch" HEAD AKA AKA 4.0-current HEAD is not an actual branch tag, like the other two, it's simply a symbolic constant for "the current, non-branched development stream" which we simply refer to as . Right now, is the 4.0 development stream and the 3.0-stable branch, RELENG_3, forked off from in Jan 1999. The 2.2-stable branch, RELENG_2_2, departed -current in November 1996. The 2.1-stable branch, RELENG_2_1_0, departed -current in September of 1994. This branch has been fully retired. How do I make my own custom release? To make a release you need to do three things: First, you need to be running a kernel with the vn driver configured in. Add this to your kernel config file and build a new kernel: pseudo-device vn #Vnode driver (turns a file into a device) Second, you have to have the whole CVS repository at hand. To get this you can use CVSUP but in your supfile set the release name to cvs and remove any tag or date fields: *default prefix=/home/ncvs *default base=/a *default host=cvsup.FreeBSD.org *default release=cvs *default delete compress use-rel-suffix ## Main Source Tree src-all src-eBones src-secure # Other stuff ports-all www doc-all Then run cvsup -g supfile to suck all the good bits onto your box... Finally, you need a chunk of empty space to build into. Let's say it's in /some/big/filesystem, and from the example above you've got the CVS repository in /home/ncvs: setenv CVSROOT /home/ncvs # or export CVSROOT=/home/ncvs cd /usr/src/release make release BUILDNAME=3.0-MY-SNAP CHROOTDIR=/some/big/filesystem/release An entire release will be built in /some/big/filesystem/release and you will have a full FTP-type installation in /some/big/filesystem/release/R/ftp when you're done. If you want to build your SNAP along some other branch than -current, you can also add RELEASETAG=SOMETAG to the make release command line above, e.g. RELEASETAG=RELENG_2_2 would build an up-to-the- minute 2.2-STABLE snapshot. How do I create customized installation disks? The entire process of creating installation disks and source and binary archives is automated by various targets in /usr/src/release/Makefile. The information there should be enough to get you started. However, it should be said that this involves doing a ``make world'' and will therefore take up a lot of time and disk space. ``make world'' clobbers my existing installed binaries. Yes, this is the general idea; as its name might suggest, ``make world'' rebuilds every system binary from scratch, so you can be certain of having a clean and consistent environment at the end (which is why it takes so long). If the environment variable DESTDIR is defined while running ``make world'' or ``make install'', the newly-created binaries will be deposited in a directory tree identical to the installed one, rooted at ${DESTDIR}. Some random combination of shared libraries modifications and program rebuilds can cause this to fail in ``make world'', however. When my system boots, it says ``(bus speed defaulted)''. The Adaptec 1542 SCSI host adapters allow the user to configure their bus access speed in software. Previous versions of the 1542 driver tried to determine the fastest usable speed and set the adapter to that. We found that this breaks some users' systems, so you now have to define the ``TUNE_1542'' kernel configuration option in order to have this take place. Using it on those systems where it works may make your disks run faster, but on those systems where it doesn't, your data could be corrupted. Can I follow current with limited Internet access? Yes, you can do this without downloading the whole source tree by using the CTM facility. How did you split the distribution into 240k files? Newer BSD based systems have a ``'' option to split that allows them to split files on arbitrary byte boundaries. Here is an example from /usr/src/Makefile. bin-tarball: (cd ${DISTDIR}; \ tar cf - . \ gzip --no-name -9 -c | \ split -b 240640 - \ ${RELEASEDIR}/tarballs/bindist/bin_tgz.) I've written a kernel extension, who do I send it to? Please take a look at The Handbook entry on how to submit code. And thanks for the thought! How are Plug N Play ISA cards detected and initialized? By: Frank Durda IV In a nutshell, there a few I/O ports that all of the PnP boards respond to when the host asks if anyone is out there. So when the PnP probe routine starts, he asks if there are any PnP boards present, and all the PnP boards respond with their model # to a I/O read of the same port, so the probe routine gets a wired-OR ``yes'' to that question. At least one bit will be on in that reply. Then the probe code is able to cause boards with board model IDs (assigned by Microsoft/Intel) lower than X to go ``off-line''. It then looks to see if any boards are still responding to the query. If the answer was ``0'', then there are no boards with IDs above X. Now probe asks if there are any boards below ``X''. If so, probe knows there are boards with a model numbers below X. Probe then asks for boards greater than X-(limit/4) to go off-line. If repeats the query. By repeating this semi-binary search of IDs-in-range enough times, the probing code will eventually identify all PnP boards present in a given machine with a number of iterations that is much lower than what 2^64 would take. The IDs are two 32-bit fields (hence 2ˆ64) + 8 bit checksum. The first 32 bits are a vendor identifier. They never come out and say it, but it appears to be assumed that different types of boards from the same vendor could have different 32-bit vendor ids. The idea of needing 32 bits just for unique manufacturers is a bit excessive. The lower 32 bits are a serial #, ethernet address, something that makes this one board unique. The vendor must never produce a second board that has the same lower 32 bits unless the upper 32 bits are also different. So you can have multiple boards of the same type in the machine and the full 64 bits will still be unique. The 32 bit groups can never be all zero. This allows the wired-OR to show non-zero bits during the initial binary search. Once the system has identified all the board IDs present, it will reactivate each board, one at a time (via the same I/O ports), and find out what resources the given board needs, what interrupt choices are available, etc. A scan is made over all the boards to collect this information. This info is then combined with info from any ECU files on the hard disk or wired into the MLB BIOS. The ECU and BIOS PnP support for hardware on the MLB is usually synthetic, and the peripherals don't really do genuine PnP. However by examining the BIOS info plus the ECU info, the probe routines can cause the devices that are PnP to avoid those devices the probe code cannot relocate. Then the PnP devices are visited once more and given their I/O, DMA, IRQ and Memory-map address assignments. The devices will then appear at those locations and remain there until the next reboot, although there is nothing that says you can't move them around whenever you want. There is a lot of oversimplification above, but you should get the general idea. Microsoft took over some of the primary printer status ports to do PnP, on the logic that no boards decoded those addresses for the opposing I/O cycles. I found a genuine IBM printer board that did decode writes of the status port during the early PnP proposal review period, but MS said ``tough''. So they do a write to the printer status port for setting addresses, plus that use that address + 0x800, and a third I/O port for reading that can be located anywhere between 0x200 and 0x3ff. Does FreeBSD support architectures other than the x86? Several groups of people have expressed interest in working on multi-architecture ports for FreeBSD and the FreeBSD/AXP (ALPHA) port is one such effort which has been quite successful, now available in 3.0 SNAPshot release form at ftp://ftp.FreeBSD.org/pub/FreeBSD/alpha. The ALPHA port currently runs on a growing number of ALPHA machine types, among them the AlphaStation, AXPpci, PC164, Miata and Multia models. This port is not yet considered a full release and won't be until a full compliment of system installation tools and a distribution on CDROM installation media is available, including a reasonable number of working ports and packages. FreeBSD/AXP should be considered BETA quality software at this time. For status information, please join the freebsd-alpha@FreeBSD.orgmailing list. Interest has also been expressed in a port of FreeBSD to the SPARC architecture, join the freebsd-sparc@FreeBSD.orgmailing list if you are interested in joining that project. For general discussion on new architectures, join the freebsd-platforms@FreeBSD.org mailing list. I need a major number for a device driver I've written. This depends on whether or not you plan on making the driver publicly available. If you do, then please send us a copy of the driver source code, plus the appropriate modifications to files.i386, a sample configuration file entry, and the appropriate MAKEDEV code to create any special files your device uses. If you do not, or are unable to because of licensing restrictions, then character major number 32 and block major number 8 have been reserved specifically for this purpose; please use them. In any case, we'd appreciate hearing about your driver on freebsd-hackers@FreeBSD.org. Alternative layout policies for directories In answer to the question of alternative layout policies for directories, the scheme that is currently in use is unchanged from what I wrote in 1983. I wrote that policy for the original fast filesystem, and never revisited it. It works well at keeping cylinder groups from filling up. As several of you have noted, it works poorly for find. Most filesystems are created from archives that were created by a depth first search (aka ftw). These directories end up being striped across the cylinder groups thus creating a worst possible senario for future depth first searches. If one knew the total number of directories to be created, the solution would be to create (total / fs_ncg) per cylinder group before moving on. Obviously, one would have to create some heuristic to guess at this number. Even using a small fixed number like say 10 would make an order of magnitude improvement. To differentiate restores from normal operation (when the current algorithm is probably more sensible), you could use the clustering of up to 10 if they were all done within a ten second window. Anyway, my conclusion is that this is an area ripe for experimentation. Kirk McKusick, September 1998 Making the most of a kernel panic [This section was extracted from a mail written by Bill Paul on the freebsd-current mailing list by Dag-Erling Coïdan Smørgrav, who fixed a few typos and added the bracketed comments] From: Bill Paul <wpaul@skynet.ctr.columbia.edu> Subject: Re: the fs fun never stops To: ben@rosengart.com Date: Sun, 20 Sep 1998 15:22:50 -0400 (EDT) Cc: current@FreeBSD.org [<ben@rosengart.com> posted the following panic message] > Fatal trap 12: page fault while in kernel mode > fault virtual address = 0x40 > fault code = supervisor read, page not present > instruction pointer = 0x8:0xf014a7e5 ^^^^^^^^^^ > stack pointer = 0x10:0xf4ed6f24 > frame pointer = 0x10:0xf4ed6f28 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, def32 1, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 80 (mount) > interrupt mask = > trap number = 12 > panic: page fault [When] you see a message like this, it's not enough to just reproduce it and send it in. The instruction pointer value that I highlighted up there is important; unfortunately, it's also configuration dependent. In other words, the value varies depending on the exact kernel image that you're using. If you're using a GENERIC kernel image from one of the snapshots, then it's possible for somebody else to track down the offending function, but if you're running a custom kernel then only you can tell us where the fault occured. What you should do is this: Write down the instruction pointer value. Note that the 0x8: part at the begining is not significant in this case: it's the 0xf0xxxxxx part that we want. When the system reboots, do the following: % nm /kernel.that.caused.the.panic | grep f0xxxxxx where f0xxxxxx is the instruction pointer value. The odds are you will not get an exact match since the symbols in the kernel symbol table are for the entry points of functions and the instruction pointer address will be somewhere inside a function, not at the start. If you don't get an exact match, omit the last digit from the instruction pointer value and try again, i.e.: % nm /kernel.that.caused.the.panic | grep f0xxxxx If that doesn't yield any results, chop off another digit. Repeat until you get some sort of output. The result will be a possible list of functions which caused the panic. This is a less than exact mechanism for tracking down the point of failure, but it's better than nothing. I see people constantly show panic messages like this but rarely do I see someone take the time to match up the instruction pointer with a function in the kernel symbol table. The best way to track down the cause of a panic is by capturing a crash dump, then using gdb(1) to to a stack trace on the crash dump. Of course, this depends on gdb(1) in -current working correctly, which I can't guarantee (I recall somebody saying that the new ELF-ized gdb(1) didn't handle kernel crash dumps correctly: somebody should check this before 3.0 goes out of beta or there'll be a lot of red faces after the CDs ship). In any case, the method I normally use is this: Set up a kernel config file, optionally adding 'options DDB' if you think you need the kernel debugger for something. (I use this mainly for setting beakpoints if I suspect an infinite loop condition of some kind.) Use config -g KERNELCONFIG to set up the build directory. cd /sys/compile/KERNELCONFIG; make Wait for kernel to finish compiling. cp kernel kernel.debug strip -d kernel mv kernel /kernel.orig/ cp kernel / reboot [Note: Now that FreeBSD 3.x kernels are Elf by default, you should use strip -g instead of strip -d. If for some reason your kernel is still a.out, use strip -aout -d.] Note that YOU DO NOT WANT TO ACTUALLY BOOT THE KERNEL WITH ALL THE DEBUG SYMBOLS IN IT. A kernel compiled with can easily be close to 10MB in size. You don't have to actually boot this massive image: you only need it later for gdb(1) (gdb(1) wants the symbol table). Instead, you want to keep a copy of the full image and create a second image with the debug symbols stripped out using strip -d. It is this second stripped image that you want to boot. To make sure you capture a crash dump, you need edit /etc/rc.conf and set dumpdev to point to your swap partition. This will cause the rc(8) scripts to use the dumpon(8) command to enable crash dumps. You can also run dumpon(8) manually. After a panic, the crash dump can be recovered using savecore(8); if dumpdev is set in /etc/rc.conf, the rc(8) scripts will run savecore(8) automatically and put the crash dump in /var/crash. NOTE: FreeBSD crash dumps are usually the same size as the physical RAM size of your machine. That is, if you have 64MB of RAM, you will get a 64MB crash dump. Therefore you must make sure there's enough space in /var/crash to hold the dump. Alternatively, you run savecore(8) manually and have it recover the crash dump to another directory where you have more room. It's possible to limit the size of the crash dump by using options MAXMEM=(foo) to set the amount of memory the kernel will use to something a little more sensible. For example, if you have 128MB of RAM, you can limit the kernel's memory usage to 16MB so that your crash dump size will be 16MB instead of 128MB. Once you have recovered the crash dump, you can get a stack trace with gdb(1) as follows: % gdb -k /sys/compile/KERNELCONFIG/kernel.debug /var/crash/vmcore.0 (gdb) where Note that there may be several screens worth of information; ideally you should use script(1) to capture all of them. Using the unstripped kernel image with all the debug symbols should show the exact line of kernel source code where the panic occured. Usually you have to read the stack trace from the bottom up in order to trace the exact sequence of events that lead to the crash. You can also use gdb(1) to print out the contents of various variables or structures in order to examine the system state at the time of the crash. Now, if you're really insane and have a second computer, you can also configure gdb(1) to do remote debugging such that you can use gdb(1) on one system to debug the kernel on another system, including setting breakpoints, single-stepping through the kernel code, just like you can do with a normal user-mode program. I haven't played with this yet as I don't often have the chance to set up two machines side by side for debugging purposes. [Bill adds: "I forgot to mention one thing: if you have DDB enabled and the kernel drops into the debugger, you can force a panic (and a crash dump) just by typing 'panic' at the ddb prompt. It may stop in the debugger again during the panic phase. If it does, type 'continue' and it will finish the crash dump." -ed] dlsym() stopped working for ELF executables! The ELF toolchain does not, by default, make the symbols defined in an executable visible to the dynamic linker. Consequently dlsym() searches on handles obtained from calls to dlopen(NULL, flags) will fail to find such symbols. If you want to search, using dlsym(), for symbols present in the main executable of a process, you need to link the executable using the option to the ELF linker. Increasing or reducing the kernel address space By default, the kernel address space is 256 MB on FreeBSD 3.x and 1 GB on FreeBSD 4.x. If you run a network-intensive server (e.g. a large FTP or HTTP server), you might find that 256 MB is not enough. So how do you increase the address space? There are two aspects to this. First, you need to tell the kernel to reserve a larger portion of the address space for itself. Second, since the kernel is loaded at the top of the address space, you need to lower the load address so it doesn't bump its head against the ceiling. The first goal is achieved by increasing the value of NKPDE in src/sys/i386/include/pmap.h. Here's what it looks like for a 1 GB address space: #ifndef NKPDE #ifdef SMP #define NKPDE 254 /* addressable number of page tables/pde's */ #else #define NKPDE 255 /* addressable number of page tables/pde's */ #endif /* SMP */ #endif To find the correct value of NKPDE, divide the desired address space size (in megabytes) by four, then subtract one for UP and two for SMP. To achieve the second goal, you need to compute the correct load address: simply subtract the address space size (in bytes) from 0x100100000; the result is 0xc0100000 for a 1 GB address space. Set LOAD_ADDRESS in src/sys/i386/conf/Makefile.i386 to that value; then set the location counter in the beginning of the section listing in src/sys/i386/conf/kernel.script to the same value, as follows: OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386") OUTPUT_ARCH(i386) ENTRY(btext) SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/obj/elf/home/src/tmp/usr/i386-unknown-freebsdelf/lib); SECTIONS { /* Read-only sections, merged into text segment: */ . = 0xc0100000 + SIZEOF_HEADERS; .interp : { *(.interp) } Then reconfig and rebuild your kernel. You will probably have problems with ps(1), top(1) and the like; make world should take care of it (or a manual rebuild of libkvm, ps and top after copying the patched pmap.h to /usr/include/vm/. NOTE: the size of the kernel address space must be a multiple of four megabytes. [David Greenman adds: I think the kernel address space needs to be a power of two, but I'm not certain about that. The old(er) boot code used to monkey with the high order address bits and I think expected at least 256MB granularity.] ACKNOWLEDGMENTS If you see a problem with this FAQ, or wish to submit an entry, please mail us at <FAQ@FreeBSD.org>. We appreciate your feedback, and cannot make this a better FAQ without your help! FreeBSD Core Team Jordan Hubbard Occasional fits of FAQ-reshuffling and updating. Doug White Services above and beyond the call of duty on freebsd-questions Joerg Wunsch Services above and beyond the call of duty on Usenet Garrett Wollman Networking and formatting Jim Lowe Multicast information Peter da Silva FreeBSD FAQ typing machine slavey The FreeBSD Team Kvetching, moaning, submitting data And to any others we've forgotten, apologies and heartfelt thanks!
diff --git a/en_US.ISO8859-1/books/fdp-primer/book.sgml b/en_US.ISO8859-1/books/fdp-primer/book.sgml index ba757625e3..2dde1afc60 100644 --- a/en_US.ISO8859-1/books/fdp-primer/book.sgml +++ b/en_US.ISO8859-1/books/fdp-primer/book.sgml @@ -1,280 +1,280 @@ %man; %chapters; ]> FreeBSD Documentation Project Primer for New Contributors Nik Clayton
nik@FreeBSD.org
1998 1999 Nik Clayton - $Date: 1999-09-06 06:52:40 $ + $FreeBSD$ - $FreeBSD$ + $FreeBSD: doc/en_US.ISO_8859-1/books/fdp-primer/book.sgml,v 1.8 1999/09/06 06:52:40 peter Exp $ Redistribution and use in source (SGML DocBook) and 'compiled' forms (SGML, HTML, PDF, PostScript, RTF and so forth) with or without modification, are permitted provided that the following conditions are met: Redistributions of source code (SGML DocBook) must retain the above copyright notice, this list of conditions and the following disclaimer as the first lines of this file unmodified. Redistributions in compiled form (transformed to other DTDs, converted to PDF, PostScript, RTF and other formats) must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS DOCUMENTATION IS PROVIDED BY NIK CLAYTON "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL NIK CLAYTON BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Thank you for becoming a part of the FreeBSD Documentation Project. Your contribution is extremely valuable. This primer covers everything you will need to know in order to start contributing to the FreeBSD Documentation Project, from the tools and software you will be using (both mandatory and recommended) to the philosophy behind the Documentation Project. This document is a work in progress, and is not complete. Sections that are known to be incomplete are indicated with a * in their name.
Preface Shell Prompts The following table shows the default system prompt and superuser prompt. The examples will use this prompt to indicate which user you should be running the example as. User Prompt Normal user &prompt.user; root &prompt.root; Typographic Conventions The following table describes the typographic conventions used in this book. Meaning Examples The name of commands, files, and directories. On screen computer output. Edit your .login file.Use ls -a to list all files.You have mail. What you type, when contrasted with on-screen computer output. &prompt.user; su Password: Manual page references. Use su 1 to change user names. User and group names Only root can do this. Emphasis You must do this. Command line variables; replace with the real name or variable. To delete a file, type rm filename Environment variables $HOME is your home directory. Notes, warnings, and examples Within the text appear notes, warnings, and examples. Notes are represented like this, and contain information that you should take note of, as it may affect what you do. Warnings are represented like this, and contain information warning you about possible damage if you do not follow the instructions. This damage may be physical, to your hardware or to you, or it may be non-physical, such as the inadvertant deletion of important files. A sample example Examples are represented like this, and typically contain examples you should walk through, or show you what the results of a particular action should be. Acknowledgments My thanks to Sue Blake, Patrick Durusau, Jon Hamilton, Peter Flynn, and Christopher Maden, who took the time to read early drafts of this document and offer many valuable comments and criticisms. &chap.overview; &chap.tools; &chap.sgml-primer; &chap.sgml-markup; &chap.stylesheets; &chap.structure; &chap.the-website; &chap.translations; &chap.writing-style; &chap.psgml-mode; &chap.see-also;
diff --git a/en_US.ISO_8859-1/books/faq/book.sgml b/en_US.ISO_8859-1/books/faq/book.sgml index bd4ef5c97d..74103f616b 100644 --- a/en_US.ISO_8859-1/books/faq/book.sgml +++ b/en_US.ISO_8859-1/books/faq/book.sgml @@ -1,8316 +1,8316 @@ Frequently Asked Questions for FreeBSD 2.X The FreeBSD Documentation Project -$Date: 1999-09-04 09:08:13 $ +$FreeBSD$ This is the FAQ for FreeBSD systems version 2.X All entries are assumed to be relevant to FreeBSD 2.0.5 and later, unless otherwise noted. Any entries with a <XXX> are under construction. If you are interested in helping with this project, send email to the the FreeBSD documentation project mailing list <freebsd-doc@FreeBSD.org>. The latest version of this document is always available from the FreeBSD World Wide Web server. It may also be downloaded in plain text, postscript, PDF or HTML with HTTP or gzip'd from the FreeBSD FTP server. You may also want to Search the FAQ. Preface Welcome to the FreeBSD 2.X FAQ! As is usual with Usenet FAQs, this document aims to cover the most frequently asked questions concerning the FreeBSD operating system (and of course answer them!). Although originally intended to reduce bandwidth and avoid the same old questions being asked over and over again, FAQs have become recognized as valuable information resources. Every effort has been made to make this FAQ as informative as possible; if you have any suggestions as to how it may be improved, please feel free to mail them to the FAQ maintainer. What is FreeBSD? Briefly, FreeBSD 2.X is a UN*X-like operating system based on U.C. Berkeley's 4.4BSD-lite release for the i386 platform. It is also based indirectly on William Jolitz's port of U.C. Berkeley's Net/2 to the i386, known as 386BSD, though very little of the 386BSD code remains. A fuller description of what FreeBSD is and how it can work for you may be found on the FreeBSD home page. FreeBSD is used by companies, Internet Service Providers, researchers, computer professionals, students and home users all over the world in their work, education and recreation. See some of them in the FreeBSD Gallery. For more detailed information on FreeBSD, please see the FreeBSD Handbook. What are the goals of FreeBSD? The goals of the FreeBSD Project are to provide software that may be used for any purpose and without strings attached. Many of us have a significant investment in the code (and project) and would certainly not mind a little financial compensation now and then, but we're definitely not prepared to insist on it. We believe that our first and foremost "mission" is to provide code to any and all comers, and for whatever purpose, so that the code gets the widest possible use and provides the widest possible benefit. This is, we believe, one of the most fundamental goals of Free Software and one that we enthusiastically support. That code in our source tree which falls under the GNU General Public License (GPL) or GNU Library General Public License (LGPL) comes with slightly more strings attached, though at least on the side of enforced access rather than the usual opposite. Due to the additional complexities that can evolve in the commercial use of GPL software, we do, however, endeavor to replace such software with submissions under the more relaxed BSD copyright whenever possible. Why is it called FreeBSD? It may be used free of charge, even by commercial users. Full source for the operating system is freely available, and the minimum possible restrictions have been placed upon its use, distribution and incorporation into other work (commercial or non-commercial). Anyone who has an improvement and/or bug fix is free to submit their code and have it added to the source tree (subject to one or two obvious provisos). For those of our readers whose first language is not English, it may be worth pointing out that the word ``free'' is being used in two ways here, one meaning ``at no cost'', the other meaning ``you can do whatever you like''. Apart from one or two things you cannot do with the FreeBSD code, for example pretending you wrote it, you really can do whatever you like with it. What is the latest version of FreeBSD? Version 3.2 is the latest stable version; it was released in May, 1999. This is also the latest release version. Briefly explained, -stable is aimed at the ISP or other corporate user who wants stability and a low change count over the wizzy new features of the latest -current snapshot. Releases can come from either "branch," but you should only use -current if you're sure that you're prepared for its increased volatility (relative to -stable, that is). Releases are only made every few months. While many people stay more up-to-date with the FreeBSD sources (see the questions on FreeBSD-current and FreeBSD-stable) than that, doing so is more of a commitment, as the sources are a moving target. What is FreeBSD-current? FreeBSD-current is the development version of the operating system, which will in due course become 4.0-RELEASE. As such, it is really only of interest to developers working on the system and die-hard hobbyists. See the relevant section in the handbook for details on running -current. If you are not familiar with the operating system or are not capable of identifying the difference between a real problem and a temporary problem, you should not use FreeBSD-current. This branch sometimes evolves quite quickly and can be un-buildable for a number of days at a time. People that use FreeBSD-current are expected to be able to analyze any problems and only report them if they are deemed to be mistakes rather than ``glitches''. Questions such as ``make world produces some error about groups'' on the -current mailing list are sometimes treated with contempt. Every now and again, a snapshot release is also made of this -current development code, CDROM distributions of the occasional snapshot even now being made available. The goals behind each snapshot release are: To test the latest version of the installation software. To give people who would like to run -current but who don't have the time and/or bandwidth to follow it on a day-to-day basis an easy way of bootstrapping it onto their systems. To preserve a fixed reference point for the code in question, just in case we break something really badly later. (Although CVS normally prevents anything horrible like this happening :) To ensure that any new features in need of testing have the greatest possible number of potential testers. No claims are made that any snapshot can be considered ``production quality'' for any purpose. For stability and tested mettle, you will have to stick to full releases. Snapshot releases are directly available from ftp://current.FreeBSD.org/pub/FreeBSD/ and are generated, on the average, once a day for both the 4.0-current and 3.0-stable branches. What is the FreeBSD-stable concept? Back when FreeBSD 2.0.5 was released, we decided to branch FreeBSD development into two parts. One branch was named -stable, with the intention that only well-tested bug fixes and small incremental enhancements would be made to it (for Internet Service Providers and other commercial enterprises for whom sudden shifts or experimental features are quite undesirable). The other branch was -current, which essentially has been one unbroken line leading towards 4.0-RELEASE (and beyond) since 2.0 was released. If a little ASCII art would help, this is how it looks: 2.0 | | | [2.1-stable] *BRANCH* 2.0.5 -> 2.1 -> 2.1.5 -> 2.1.6 -> 2.1.7.1 [2.1-stable ends] | (Mar 1997) | | | [2.2-stable] *BRANCH* 2.2.1 -> 2.2.2-RELEASE -> 2.2.5 -> 2.2.6 -> 2.2.7 -> 2.2.8 [end] | (Mar 1997) (Oct 97) (Apr 98) (Jul 98) (Dec 98) | | 3.0-SNAPs (started Q1 1997) | | 3.0.0-RELEASE (Oct 1998) | | [3.0-stable] *BRANCH* 3.1 (Feb 1999) -> 3.2 -> ... future 3.x releases ... | (May 1999) | \|/ + [4.0-current continues] The -current branch is slowly progressing towards 4.0 and beyond, the previous 2.2-stable branch having just retired with the release of 2.2.8. 3.0-stable has now replaced it, the next release coming up with 3.3 in Q3 1999. 4.0-current is now the "current branch", with the first 4.0 releases appearing in Q1 2000. When are FreeBSD releases made? As a general principle, the FreeBSD core team only release a new version of FreeBSD when they believe that there are sufficient new features and/or bug fixes to justify one, and are satisfied that the changes made have settled down sufficiently to avoid compromising the stability of the release. Many users regard this caution as one of the best things about FreeBSD, although it can be a little frustrating when waiting for all the latest goodies to become available... Releases are made about every 4 months on average. For people needing (or wanting) a little more excitement, there are SNAPs released more frequently, particularly during the month or so leading up to a release. Is FreeBSD only available for PCs ? FreeBSD 3.x currently runs on the DEC Alpha as well as the x86 architecture. Some interest has also been expressed in a SPARC port, but details on this project are not yet clear. If your machine has a different architecture and you need something right now, we suggest you look at NetBSD or OpenBSD. Who is responsible for FreeBSD? The key decisions concerning the FreeBSD project, such as the overall direction of the project and who is allowed to add code to the source tree, are made by a core team of some 15 people. There is a much larger team of over 150 committers who are authorized to make changes directly to the FreeBSD source tree. However, most non-trivial changes are discussed in advance in the mailing lists, and there are no restrictions on who may take part in the discussion. Where can I get FreeBSD? Every significant release of FreeBSD is available via anonymous ftp from the FreeBSD FTP site: For the current 2.2-stable release, 2.2.8R, see the 2.2.8-RELEASE directory. For the current 3.0-stable release, 3.0-RELEASE, see the 3.0-RELEASE directory. 2.2 Snapshot releases are made once a day along the RELENG_2_2 branch (post 2.2.8) as it slowly winds down in maintenance mode. The RELENG_2_2 branch is currently being carefully maintained by the legacy support folks and no changes other than those strictly necessary for security or reliability enhancements are now made. 3.0 Snapshot releases are also made once a day along the RELENG_3 branch (post 3.0-release) as it continues on its way towards 3.2-RELEASE. 4.0 Snapshot releases are made once a day for the -current branch, these being of service purely to bleeding-edge testers and developers. FreeBSD is also available via CDROM, from the following place(s):
Walnut Creek CDROM 4041 Pike Lane, Suite F Concord, CA 94520 USA Orders: +1 800 786-9907 Questions: +1 925 674-0783 FAX: +1 925 674-0821 email: WC Orders address WWW: WC Home page
In Australia, you may find it at:
Advanced Multimedia Distributors Factory 1/1 Ovata Drive Tullamarine, Melbourne Victoria Australia Voice: +61 3 9338 6777 CDROM Support BBS 17 Irvine St Peppermint Grove WA 6011 Voice: +61 9 385-3793 Fax: +61 9 385-2360
And in the UK:
The Public Domain & Shareware Library Winscombe House, Beacon Rd Crowborough Sussex. TN6 1UL Voice: +44 1892 663-298 Fax: +44 1892 667-473
Where do I find info on the FreeBSD mailing lists? You can find full information in the Handbook entry on mailing-lists. Where do I find the FreeBSD Y2K info? You can find full information in the FreeBSD Y2K page. What FreeBSD news groups are available? You can find full information in theHandbook entry on newsgroups. Are there FreeBSD IRC (Internet Relay Chat) channels? Yes, most major IRC networks host a FreeBSD chat channel: Channel #FreeBSD on EFNet is a FreeBSD forum, but don't go there for tech support or to try and get folks there to help you avoid the pain of reading man pages or doing your own research. It is a chat channel, first and foremost, and topics there are just as likely to involve sex, sports or nuclear weapons as they are FreeBSD. You Have Been Warned! Available at server irc.chat.org. Channel #FreeBSD on DALNET is available at irc.dal.net in the US and irc.eu.dal.net in Europe. Channel #FreeBSD on UNDERNET is available at us.undernet.org in the US and eu.undernet.org in Europe. Same provisions as for EFNET apply - either don't ask questions or learn to ask amazingly politely if you want help. It's a chat channel, not a help channel. Finally, you can also join #FreeBSD on BSDNET, a smaller BSD only chat network, at irc.FreeBSD.org. This network attempts to do more tech support and not be as anarchistic as EFNET, UNDERNET or DALNET, but it's also nowhere near as popular as a result. Why not volunteer to answer FreeBSD questions on BSDNET today? Each of these channels are distinct and are not connected to each other. Their chat styles also differ, so you may need to try each to find one suited to your chat style. As with *all* types of IRC traffic, if you're easily offended or can't deal with lots of young people (and more than a few older ones) doing the verbal equivalent of jello wrestling, don't even bother with it. Books on FreeBSD There is a FreeBSD Documentation Project which you may contact (or even better, join) on the doc mailing list: <freebsd-doc@FreeBSD.org>. This list is for discussion of the FreeBSD documentation. For actual questions about FreeBSD, there is the questions mailing list: <freebsd-questions@FreeBSD.org>. A FreeBSD ``handbook'' is available, and can be found as: the FreeBSD Handbook. Note that this is a work in progress, and so parts may be incomplete. The definitive printed guide on FreeBSD is ``The Complete FreeBSD'', written by Greg Lehey and published by Walnut Creek CDROM Books. Now in its second edition, the book contains 1,750 pages of install & system administration guidance, program setup help, and manual pages. The book (and current FreeBSD release) can be ordered from Walnut Creek, CheapBytes, or at your favorite bookstore. The ISBN is 1-57176-227-2. However, as FreeBSD 2.2.X is based upon Berkeley 4.4BSD-Lite2, most of the 4.4BSD manuals are applicable to FreeBSD 2.2.X. O'Reilly and Associates publishes these manuals: 4.4BSD System Manager's Manual By Computer Systems Research Group, UC Berkeley 1st Edition June 1994, 804 pages ISBN: 1-56592-080-5 4.4BSD User's Reference Manual By Computer Systems Research Group, UC Berkeley 1st Edition June 1994, 905 pages ISBN: 1-56592-075-9 4.4BSD User's Supplementary Documents By Computer Systems Research Group, UC Berkeley 1st Edition July 1994, 712 pages ISBN: 1-56592-076-7 4.4BSD Programmer's Reference Manual By Computer Systems Research Group, UC Berkeley 1st Edition June 1994, 886 pages ISBN: 1-56592-078-3 4.4BSD Programmer's Supplementary Documents By Computer Systems Research Group, UC Berkeley 1st Edition July 1994, 596 pages ISBN: 1-56592-079-1 A description of these can be found via WWW as: 4.4BSD books description. Due to poor sales, however, these manuals may be hard to get a hold of. For a more in-depth look at the 4.4BSD kernel organization, you can't go wrong with: McKusick, Marshall Kirk, Keith Bostic, Michael J Karels, and John Quarterman. The Design and Implementation of the 4.4BSD Operating System. Reading, Mass. : Addison-Wesley, 1996. ISBN 0-201-54979-4 A good book on system administration is: Evi Nemeth, Garth Snyder, Scott Seebass & Trent R. Hein, ``Unix System Administration Handbook'', Prentice-Hall, 1995 ISBN: 0-13-151051-7 NOTE make sure you get the second edition, with a red cover, instead of the first edition. This book covers the basics, as well as TCP/IP, DNS, NFS, SLIP/PPP, sendmail, INN/NNTP, printing, etc.. It's expensive (approx. US$45-$55), but worth it. It also includes a CDROM with the sources for various tools; most of these, however, are also on the FreeBSD 2.2.6R CDROM (and the FreeBSD CDROM often has newer versions). How do I access your Problem Report database? The Problem Report database of all open user change requests may be queried (or submitted to) by using our web-based PR submission and query interfaces. The send-pr(1) command can also be used to submit problem reports and change requests via electronic mail. Where can I get ASCII/PostScript versions of the FAQ? The up-to-date FAQ is available from the FreeBSD Web Server or any mirror as PostScript and plain text (7 bit ASCII and 8-bit Latin1). As PostScript (about 370KB): http://www.FreeBSD.org/FAQ/FAQ.ps As ASCII text (about 220KB): http://www.FreeBSD.org/FAQ/FAQ.ascii As ISO 8859-1 text (about 220KB): http://www.FreeBSD.org/FAQ/FAQ.latin1 Where can I get ASCII/PostScript versions of the Handbook? The up-to-date Handbook is available from the FreeBSD Web Server or any mirror as PostScript and plain text (7 bit ASCII and 8-bit Latin1). As PostScript (about 1.7MB): http://www.FreeBSD.org/handbook/handbook.ps As ASCII text (about 1080KB): http://www.FreeBSD.org/handbook/handbook.ascii As ISO 8859-1 text (about 1080KB): http://www.FreeBSD.org/handbook/handbook.latin1 The ASCII handbook isn't plain text! True, the ASCII and Latin1 versions of the FAQ and Handbook aren't strictly plaintext; they contain underlines and overprints that assume the output is going directly to a dot matrix printer. If you need to reformat them to be human-readable, run the file through col: $ col -b < inputfile > outputfile I'd like to become a FreeBSD Web mirror! Certainly! There are multiple ways to mirror the Web pages. Using CVSUP: You can retrieve the formatted files using CVSUP from cvsup.FreeBSD.org. Add this line to your cvsup file: www release=current hostname=/home base=/usr/local/etc/cvsup prefix=/usr/local/www/data/www.FreeBSD.org delete old use-rel-suffix Using rsync: See the mirroring page for information. Using ftp mirror: You can download the FTP server's copy of the web site using your favorite ftp mirror tool. Simply start at ftp://ftp.FreeBSD.org/pub/FreeBSD/FreeBSD-current/www. I'd like to translate the documentation into Friesian. Well, we can't pay, but we might arrange a free CD or T-shirt and a Contributor's Handbook entry if you submit a translation of the documentation. Other sources of information. The following newsgroups contain pertinent discussion for FreeBSD users: comp.unix.bsd.freebsd.announce (moderated) comp.unix.bsd.freebsd.misc comp.unix.bsd.misc Web resources: The FreeBSD Home Page. If you have a laptop, be sure and see Tatsumi Hosokawa's Mobile Computing page in Japan. For information on SMP (Symmetric MultiProcessing), please see the SMP support page. For information on FreeBSD multimedia applications, please see the multimediapage. If you're interested specifically in the Bt848 video capture chip, then follow that link. The FreeBSD handbook also has a fairly complete bibliography section which is worth reading if you're looking for actual books to buy.
Installation Which file do I download to get FreeBSD? You generally need just one floppy image, the floppies/boot.flp file, which you image-copy onto a 1.44MB floppy and then boot from in order to download the rest (and the installation will manage your TCP/IP connection, deal with tapes, CDROMs, floppies, DOS partitions, whatever's necessary to get the rest of the bits installed). If you need to download the distributions yourself (for a DOS filesystem install, for instance), below are some recommendations for distributions to grab: bin/ manpages/ compat*/ doc/ src/ssys.* Full instructions on this procedure and a little bit more about installation issues in general can be found in the Handbook entry on installing FreeBSD. Help! The boot floppy image will not fit on a single floppy! A 3.5 inch (1.44MB) floppy can accomodate 1474560 bytes of data. The boot image is exactly 1474560 bytes in size. Common mistakes when preparing the boot floppy are: Not downloading the floppy image in binary mode when using FTP. Some FTP clients default their transfer mode to ascii and attempt to change any end-of-line characters received to match the conventions used by the client's system. This will almost invariably corrupt the boot image. Check the size of the downloaded boot image: if it is not exactly that on the server, then the download process is suspect. To workaround: type binary at the FTP command prompt after getting connected to the server and before starting the download of the image. Using the DOS copy command (or equivalent GUI tool) to transfer the boot image to floppy. Programs like copy will not work as the boot image has been created to be booted into directly. The image has the complete content of the floppy, track for track, and is not meant to be placed on the floppy as a regular file. You have to transfer it to the floppy ``raw'', using the low-level tools (e.g. fdimage or rawrite) described in the installation guide to FreeBSD. Where are the instructions for installing FreeBSD? Installation instructions can be found in the Handbook entry on installing FreeBSD. What do I need in order to run FreeBSD? You'll need a 386 or better PC, with 5 MB or more of RAM and at least 60 MB of hard disk space. It can run with a low end MDA graphics card but to run X11R6, a VGA or better video card is needed. See also the section on I have only 4 MB of RAM. Can I install FreeBSD? FreeBSD 2.1.7 was the last version of FreeBSD that could be installed on a 4MB system. Newer versions of FreeBSD, like 2.2, need at least 5MB to install on a new system. All versions of FreeBSD, including 3.0, will RUN in 4MB of ram, they just can't run the installation program in 4MB. You can add extra memory for the install process, if you like, and then after the system is up and running, go back to 4MB. Or you could always just swap your disk into a system which has >4MB, install onto it and then swap it back. There are also situations in which FreeBSD 2.1.7 will not install in 4 MB. To be exact: it does not install with 640 kB base + 3 MB extended memory. If your motherboard can remap some of the ``lost'' memory out of the 640kB to 1MB region, then you may still be able to get FreeBSD 2.1.7 up. Try to go into your BIOS setup and look for a ``remap'' option. Enable it. You may also have to disable ROM shadowing. It may be easier to get 4 more MB just for the install. Build a custom kernel with only the options you need and then get the 4 MB out again. You may also install 2.0.5 and then upgrade your system to 2.1.7 with the ``upgrade'' option of the 2.1.7 installation program. After the installation, if you build a custom kernel, it will run in 4 MB. Someone has even succeeded in booting with 2 MB (the system was almost unusable though :-)) How can I make my own custom install floppy? Currently there's no way to *just* make a custom install floppy. You have to cut a whole new release, which will include your install floppy. There's some code in /usr/src/release/floppies/Makefile that's supposed to let you *just* make those floppies, but it's not really gelled yet. To make a custom release, follow the instructions here. Can I have more than one operating system on my PC? Have a look at The multi-OS page. Can Windows 95 co-exist with FreeBSD? Install Windows 95 first, after that FreeBSD. FreeBSD's boot manager will then manage to boot Win95 and FreeBSD. If you install Windows 95 second, it will boorishly overwrite your boot manager without even asking. If that happens, see the next section. Windows 95 killed my boot manager! How do I get it back? You can reinstall the boot manager FreeBSD comes with in one of two ways: Running DOS, go into the tools/ directory of your FreeBSD distribution and look for bootinst.exe. You run it like so: bootinst.exe boot.bin and the boot manager will be reinstalled. Boot the FreeBSD boot floppy again and go to the Custom installation menu item. Choose Partition. Select the drive which used to contain your boot manager (likely the first one) and when you come to the partition editor for it, as the very first thing (e.g. do not make any changes) select (W)rite. This will ask for confirmation, say yes, and when you get the Boot Manager selection prompt, be sure to select "Boot Manager." This will re-write the boot manager to disk. Now quit out of the installation menu and reboot off the hard disk as normal. Can I install on a disk with bad blocks? FreeBSD's bad block (the bad144 command) handling is still not 100% (to put it charitably) and it must unfortunately be said that if you've got an IDE or ESDI drive with lots of bad blocks, then FreeBSD is probably not for you! That said, it does work on thousands of IDE based systems, so you'd do well to try it first before simply giving up. If you have a SCSI drive with bad blocks, see this answer. Strange things happen when I boot the install floppy! If you're seeing things like the machine grinding to a halt or spontaneously rebooting when you try to boot the install floppy, here are three questions to ask yourself:- Did you use a new, freshly-formatted, error-free floppy (preferably a brand-new one straight out of the box, as opposed to the magazine coverdisk that's been lying under the bed for the last three years)? Did you download the floppy image in binary (or image) mode? (don't be embarrassed, even the best of us have accidentally downloaded a binary file in ASCII mode at least once!) If you're using one of these new-fangled operating systems like Windows95 or Windows NT, did you shut it down and restart the system in plain, honest DOS? It seems these OS's can interfere with programs that write directly to hardware, which the disk creation program does; even running it inside a DOS shell in the GUI can cause this problem. There have also been reports of Netscape causing problems when downloading the boot floppy, so it's probably best to use a different FTP client if you can. Help! I can't install from tape! If you are installing 2.1.7R from tape, you must create the tape using a tar blocksize of 10 (5120 bytes). The default tar blocksize is 20 (10240 bytes), and tapes created using this default size cannot be used to install 2.1.7R; with these tapes, you will get an error that complains about the record size being too big. Connect two FreeBSD boxes over a parallel line (PLIP) Get a laplink cable. Make sure both computer have a kernel with lpt driver support. $ dmesg | grep lp lpt0 at 0x378-0x37f irq 7 on isa lpt0: Interrupt-driven port lp0: TCP/IP capable interface Plug in the laplink cable into the parallel interface. Configure the network interface parameters for lp0 on both sites as root. For example, if you want connect the host max with moritz max <-----> moritz IP Address 10.0.0.1 10.0.0.2 on max start # ifconfig lp0 10.0.0.1 10.0.0.2 on moritz start # ifconfig lp0 10.0.0.2 10.0.0.1 Thats all! Please read also the manpages lp(4) and lpt(4). You should also add the hosts to /etc/hosts 127.0.0.1 localhost.my.domain localhost 10.0.0.1 max.my.domain max 10.0.0.2 moritz.my.domain moritz To check if it works do: on max: $ ifconfig lp0 lp0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 10.0.0.1 --> 10.0.0.2 netmask 0xff000000 $ netstat -r Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire moritz max UH 4 127592 lp0 $ ping -c 4 moritz PING moritz (10.0.0.2): 56 data bytes 64 bytes from 10.0.0.2: icmp_seq=0 ttl=255 time=2.774 ms 64 bytes from 10.0.0.2: icmp_seq=1 ttl=255 time=2.530 ms 64 bytes from 10.0.0.2: icmp_seq=2 ttl=255 time=2.556 ms 64 bytes from 10.0.0.2: icmp_seq=3 ttl=255 time=2.714 ms --- moritz ping statistics --- 4 packets transmitted, 4 packets received, 0% packet loss round-trip min/avg/max/stddev = 2.530/2.643/2.774/0.103 ms Can I install on my laptop over PLIP (Parallel Line IP)? Connect the two computers using a Laplink parallel cable to use this feature: +----------------------------------------+ |A-name A-End B-End Descr. Port/Bit | +----------------------------------------+ |DATA0 2 15 Data 0/0x01 | |-ERROR 15 2 1/0x08 | +----------------------------------------+ |DATA1 3 13 Data 0/0x02 | |+SLCT 13 3 1/0x10 | +----------------------------------------+ |DATA2 4 12 Data 0/0x04 | |+PE 12 4 1/0x20 | +----------------------------------------+ |DATA3 5 10 Strobe 0/0x08 | |-ACK 10 5 1/0x40 | +----------------------------------------+ |DATA4 6 11 Data 0/0x10 | |BUSY 11 6 1/0x80 | +----------------------------------------+ |GND 18-25 18-25 GND - | +----------------------------------------+ See also this note on the Mobile Computing page. Which geometry should I use for a disk drive? (By the "geometry" of a disk, we mean the number of cylinders, heads and sectors/track on a disk - I'll refer to this as C/H/S for convenience. This is how the PC's BIOS works out which area on a disk to read/write from). This seems to cause a lot of confusion for some reason. First of all, the physical geometry of a SCSI drive is totally irrelevant, as FreeBSD works in term of disk blocks. In fact, there is no such thing as "the" physical geometry, as the sector density varies across the disk - what manufacturers claim is the "true" physical geometry is usually the geometry that they've worked out results in the least wasted space. For IDE disks, FreeBSD does work in terms of C/H/S, but all modern drives will convert this into block references internally as well. All that matters is the logical geometry - the answer that the BIOS gets when it asks "what is your geometry?" and then uses to access the disk. As FreeBSD uses the BIOS when booting, it's very important to get this right. In particular, if you have more than one operating system on a disk, they must all agree on the geometry, otherwise you will have serious problems booting! For SCSI disks, the geometry to use depends on whether extended translation support is turned on in your controller (this is often referred to as "support for DOS disks >1GB" or something similar). If it's turned off, then use N cylinders, 64 heads and 32 sectors/track, where 'N' is the capacity of the disk in MB. For example, a 2GB disk should pretend to have 2048 cylinders, 64 heads and 32 sectors/track. If it is turned on (it's often supplied this way to get around certain limitations in MSDOS) and the disk capacity is more than 1GB, use M cylinders, 63 sectors per track (*not* 64), and 255 heads, where 'M' is the disk capacity in MB divided by 7.844238 (!). So our example 2GB drive would have 261 cylinders, 63 sectors per track and 255 heads. If you are not sure about this, or FreeBSD fails to detect the geometry correctly during installation, the simplest way around this is usually to create a small DOS partition on the disk. The correct geometry should then be detected (and you can always remove the DOS partition in the partition editor if you don't want to keep it, or leave it around for programming network cards and the like). Alternatively, there is a freely available utility distributed with FreeBSD called ``pfdisk.exe'' (located in the tools subdirectory on the FreeBSD CDROM or on the various FreeBSD ftp sites) which can be used to work out what geometry the other operating systems on the disk are using. You can then enter this geometry in the partition editor. Any restrictions on how I divide the disk up? Yes. You must make sure that your root partition is below 1024 cylinders so the BIOS can boot the kernel from it. (Note that this is a limitation in the PC's BIOS, not FreeBSD). For a SCSI drive, this will normally imply that the root partition will be in the first 1024MB (or in the first 4096MB if extended translation is turned on - see previous question). For IDE, the corresponding figure is 504MB. What about disk managers? Or, I have a large drive! FreeBSD recognizes the Ontrack Disk Manager and makes allowances for it. Other disk managers are not supported. If you just want to use the disk with FreeBSD you don't need a disk manager. Just configure the disk for as much space as the BIOS can deal with (usually 504 megabytes), and FreeBSD should figure out how much space you really have. If you're using an old disk with an MFM controller, you may need to explicitly tell FreeBSD how many cylinders to use. If you want to use the disk with FreeBSD and another operating system, you may be able to do without a disk manager: just make sure the the FreeBSD boot partition and the slice for the other operating system are in the first 1024 cylinders. If you're reasonably careful, a 20 megabyte boot partition should be plenty. When I boot FreeBSD I get ``Missing Operating System'' This is classically a case of FreeBSD and DOS or some other OS conflicting over their ideas of disk geometry. You will have to reinstall FreeBSD, but obeying the instructions given above will almost always get you going. I can't get past the boot manager's `F?' prompt. This is another symptom of the problem described in the preceding question. Your BIOS geometry and FreeBSD geometry settings do not agree! If your controller or BIOS supports cylinder translation (often marked as ``>1GB drive support''), try toggling its setting and reinstalling FreeBSD. I have >16MB of RAM. Will this cause any problems? Apart from performance issues, no. FreeBSD 2.X comes with bounce buffers which allow your bus mastering controller access to greater than 16MB. (Note that this should only be required if you are using ISA devices, although one or two broken EISA and VLB devices may need it as well). Also look at the section on >64M machines if you have that much memory, or if you're using a Compaq or other BIOS that lies about the available memory. Do I need to install the complete sources? In general, no. However, we would strongly recommend that you install, at a minimum, the ``base'' source kit, which includes several of the files mentioned here, and the ``sys'' (kernel) source kit, which includes sources for the kernel. There is nothing in the system which requires the presence of the sources to operate, however, except for the kernel-configuration program config. With the exception of the kernel sources, our build structure is set up so that you can read-only mount the sources from elsewhere via NFS and still be able to make new binaries. (Because of the kernel-source restriction, we recommend that you not mount this on /usr/src directly, but rather in some other location with appropriate symbolic links to duplicate the top-level structure of the source tree.) Having the sources on-line and knowing how to build a system with them will make it much easier for you to upgrade to future releases of FreeBSD. To actually select a subset of the sources, use the Custom menu item when you are in the Distributions menu of the system installation tool. The src/install.sh script will also install partial pieces of the source distribution, depending on the arguments you pass it. Do I need to build a kernel? Building a new kernel was originally pretty much a required step in a FreeBSD installation, but more recent releases have benefited from the introduction of a much friendlier kernel configuration tool. When at the FreeBSD boot prompt (boot:), use the "-c" flag and you will be dropped into a visual configuration screen which allows you to configure the kernel's settings for most common ISA cards. It's still recommended that you eventually build a new kernel containing just the drivers that you need, just to save a bit of RAM, but it's no longer a strict requirement for most systems. I live outside the US. Can I use DES encryption? If it is not absolutely imperative that you use DES style encryption, you can use FreeBSD's default encryption for even better security, and with no export restrictions. FreeBSD 2.0's password default scrambler is now MD5-based, and is more CPU-intensive to crack with an automated password cracker than DES, and allows longer passwords as well. The only reason for not using the MD5-based crypt today would be to use the the same password entries on FreeBSD and non-FreeBSD systems. Since the DES encryption algorithm cannot legally be exported from the US, non-US users should not download this software (as part of the secrdist from US FTP sites. There is however a replacement libcrypt available, based on sources written in Australia by David Burren. This code is now available on some non-US FreeBSD mirror sites. Sources for the unencumbered libcrypt, and binaries of the programs which use it, can be obtained from the following FTP sites: South Africa ftp://ftp.internat.FreeBSD.org/pub/FreeBSD ftp://storm.sea.uct.ac.za/pub/FreeBSD Brazil ftp://ftp.iqm.unicamp.br/pub/FreeBSD Finland ftp://nic.funet.fi/pub/unix/FreeBSD/eurocrypt The non-US securedist can be used as a direct replacement for the encumbered US securedist. This securedist package is installed the same way as the US package (see installation notes for details). If you are going to install DES encryption, you should do so as soon as possible, before installing other software. Non-US users should please not download any encryption software from the USA. This can get the maintainers of the sites from which the software is downloaded into severe legal difficulties. A non-US distribution of Kerberos is also being developed, and current versions can generally be obtained by anonymous FTP from braae.ru.ac.za. There is also a mailing list for the discussion of non-US encryption software. For more information, send an email message with a single line saying ``help'' in the body of your message to majordomo@braae.ru.ac.za. The boot floppy starts but hangs at the ``Probing Devices...'' screen. If you have a IDE Zip or Jaz drive installed, remove it and try again. The boot floppy can get confused by the drives. After the system is installed you can reconnect the drive. Hopefully this will be fixed in a later release. I get a ``panic: cant mount root'' error when rebooting the system after installation. This error comes from confusion between the boot block's and the kernel's understanding of the disk devices. The error usually manifests on two-disk IDE systems, with the hard disks arranged as the master or single device on separate IDE controllers, with FreeBSD installed on the secondary IDE controller. The boot blocks think the system is installed on wd1 (the second BIOS disk) while the kernel assigns the first disk on the secondary controller device wd2. After the device probing, the kernel tries to mount what the boot blocks think is the boot disk, wd1, while it is really wd2, and fails. To fix the problem, do one of the following: At the Boot: prompt, enter 1:wd(2,a)kernel and press Enter. If the system starts, then run the command echo "1:wd(2,a)kernel" > /boot.config to make it the default boot string. Move the FreeBSD disk onto the primary IDE controller, so the hard disks are consecutive. Rebuild your kernel, modify the wd configuration lines to read: controller wdc0 at isa? port "IO_WD1" bio irq 14 vector wdintr disk wd0 at wdc0 drive 0 # disk wd1 at wdc0 drive 1 # comment out this line controller wdc1 at isa? port "IO_WD2" bio irq 15 vector wdintr disk wd1 at wdc1 drive 0 # change from wd2 to wd1 disk wd2 at wdc1 drive 1 # change from wd3 to wd2 Install the new kernel. If you moved your disks and wish to restore the previous configuration, replace the disks in the desired configuration and reboot. Your system should boot successfully. What are the limits for memory? For memory, the (theoretical) limit is 4 gigabytes. One gigabyte has been tested; you generally can't buy i386 PCs that can support much more than that. What are the limits for ffs filesystems? For ffs filesystems, the maximum theoretical limit is 8 terabytes (2G blocks), or 16TB for the default block size of 8K. In practice, there is a soft limit of 1 terabyte, but with modifications filesystems with 4 terabytes are possible (and exist). The maximum size of a single ffs file is approximately 1G blocks (4TB) if the block size is 4K. maxfilesize ---------------------------------- 2.2.7 3.0 fs block size -stable -current works should-work ------------- ------- -------- ----- ----------- 4K 4T-1 4T-1 4T-1 4+T 8K 32+G 8T-1 32+G 16T-1 16K 128+G 16T-1 128+G 32T-1 32K 512+G 32T-1 512+G 64T-1 64K 2048+G 64T-1 2048+G 128T-1 When the fs block size is 4K, triple indirect blocks work and everything should be limited by the maximum fs block number that can be represented using triple indirect blocks (approx. 1K^3 + 1K^2 + 1K), but everything is limited by a (wrong) limit of 1G-1 on fs block numbers. The limit on fs block numbers should be 2G-1. There are some bugs for fs block numbers near 2G-1, but such block numbers are unreachable when the fs block size is 4K. For block sizes of 8K and larger, everything should be limited by the 2G-1 limit on fs block numbers, but is actually limited by the 1G-1 limit on fs block numbers, except under -stable triple indirect blocks are unreachable, so the limit is the maxiumum fs block number that can be represented using double indirect blocks (approx. (blocksize/4)^2 + (blocksize/4)), and under -current exceeding this limit may cause problems. Using the correct limit of 2G-1 blocks does cause problems. How can I put 1TB files on my floppy? I keep several virtual ones on floppies :-). The maxiumum file size is not closely related to the maximum disk size. The maximum disk size is 1TB. It is a feature that the file size can be larger than the disk size. The following example creates a file of size 8T-1 using a whole 32K of disk space (3 indirect blocks and 1 data block) on a small root partition. The dd command requires a dd that works with large files. ttyv0:bde@alphplex:/tmp/q> cat foo df . dd if=/dev/zero of=z bs=1 seek=`echo 2^43 - 2 | bc` count=1 ls -l z du z df . ttyv0:bde@alphplex:/tmp/q> sh foo Filesystem 1024-blocks Used Avail Capacity Mounted on /dev/sd0a 64479 27702 31619 47% / 1+0 records in 1+0 records out 1 bytes transferred in 0.000187 secs (5346 bytes/sec) -rw-r--r-- 1 bde bin 8796093022207 Sep 7 16:04 z 32 z Filesystem 1024-blocks Used Avail Capacity Mounted on /dev/sd0a 64479 27734 31587 47% / ttyv0:bde@alphplex:/tmp/q> exit Bruce Evans, September 1998 I compiled a new kernel and now I get the error message "archsw.readin.failed" when booting. You can boot by specifying the kernel directly at the second stage, pressing any key when the | shows up before loader is started. More specifically, you have upgraded the source for your kernel, and installed a new kernel builtin from them without making world. This is not supported. Make world. Hardware compatibility What kind of hard drives does FreeBSD support? FreeBSD supports EIDE and SCSI drives (with a compatible controller; see the next section), and all drives using the original "Western Digital" interface (MFM, RLL, ESDI, and of course IDE). A few ESDI controllers that use proprietary interfaces may not work: stick to WD1002/3/6/7 interfaces and clones. Which SCSI controllers are supported? See the complete list in the Handbook. Which CD-ROM drives are supported by FreeBSD? Any SCSI drive connected to a supported controller is supported. The following proprietary CD-ROM interfaces are also supported: Mitsumi LU002 (8bit), LU005 (16bit) and FX001D (16bit 2x Speed). Sony CDU 31/33A Sound Blaster Non-SCSI CD-ROM Matsushita/Panasonic CD-ROM ATAPI compatible IDE CD-ROMs All non-SCSI cards are known to be extremely slow compared to SCSI drives, and some ATAPI CDROMs may not work. As of 2.2 the FreeBSD CDROM from Walnut Creek supports booting directly from the CD. Does FreeBSD support ZIP drives? FreeBSD supports the SCSI ZIP drive out of the box, of course. The ZIP drive can only be set to run at SCSI target IDs 5 or 6, but if your SCSI host adapter's BIOS supports it you can even boot from it. I don't know which host adapters let you boot from targets other than 0 or 1... look at your docs (and let me know if it works out for you). ATAPI (IDE) Zip drives are supported in FreeBSD 2.2.6 and later releases. FreeBSD has contained support for Parallel Port Zip Drives since version 3.0. If you are using a sufficiently up to date version, then you should check that your kernel contains the scbus0, da0, ppbus0, and vp0 drivers (the GENERIC kernel contains everything except vp0). With all these drivers present, the Parallel Port drive should be available as /dev/da0s4. Disks can be mounted using mount /dev/da0s4 /mnt OR (for dos disks) mount_msdos /dev/da0s4 /mnt as appropriate. Also check out this note on removable drives, and this note on 'formatting'. Does FreeBSD support JAZ, EZ and other removable drives? Apart from the IDE version of the EZ drive, these are all SCSI devices, so the should all look like SCSI disks to FreeBSD, and the IDE EZ should look like an IDE drive. I'm not sure how well FreeBSD supports changing the media out while running. You will of course need to dismount the drive before swapping media, and make sure that any external units are powered on when you boot the system so FreeBSD can see them. See this note on 'formatting'. Which multi-port serial cards are supported by FreeBSD? There is a list of these in the Miscellaneous devices section of the handbook. Some unnamed clone cards have also been known to work, especially those that claim to be AST compatible. Check the sio man page to get more information on configuring such cards. I have an unusual bus mouse. How do I set it up? FreeBSD supports the bus mouse and the InPort bus mouse from such manufactures as Microsoft, Logitech and ATI. The bus device driver is compiled in the GENERIC kernel by default. If you are building a custom kernel with the bus mouse driver, make sure to add the following line to the kernel config file: device mse0 at isa? port 0x23c tty irq5 vector mseintr The bus mouse usually comes with an dedicatd interface card. It may allow you to set the port address and the IRQ number other than shown above. Refer to the manual of your mouse and the mse man page for more information. How do I use my PS/2 (``mouse port'' or ``keyboard'') mouse? If you're running a post-2.2.5 version of FreeBSD, the necessary driver, psm, is included and enabled in the kernel. The kernel should detect your PS/2 mouse at boot time. If you're running a previous but relatively recent version of FreeBSD (2.1.x or better) then you can simply enable it in the kernel configuration menu at installation time, otherwise later with -c at the boot: prompt. It is disabled by default, so you will need to enable it explicitly. If you're running an older version of FreeBSD then you'll have to add the following lines to your kernel configuration file and compile a new kernel: device psm0 at isa? port "IO_KBD" conflicts tty irq 12 vector psmintr See the Handbook entry on configuring the kernel if you've no experience with building kernels. Once you have a kernel detecting psm0 correctly at boot time, make sure that an entry for psm0 exists in /dev. You can do this by typing: cd /dev; sh MAKEDEV psm0 when logged in as root. Is it possible to make use of a mouse in any way outside the X Window? If you are using the default console driver, syscons, you can use a mouse pointer in text consoles to cut & paste text. Run the mouse daemon, moused, and turn on the mouse pointer in the virtual console: moused -p /dev/xxxx -t yyyy vidcontrol -m on Where xxxx is the mouse device name and yyyy is a protocol type for the mouse. See the moused man page for supported protocol types. You may wish to run the mouse daemon automatically when the system starts. In version 2.2.1, set the following variables in /etc/sysconfig. mousedtype="yyyy" mousedport="xxxx" mousedflags="" In versions 2.2.2 or later, set the following variables in /etc/rc.conf. moused_type="yyyy" moused_port="xxxx" moused_flags="" Staring from FreeBSD 2.2.6, the mouse daemon is capable of determining the correct protocol type automatically unless the mouse is a relatively old serial mouse model. Specify ``auto'' as the protocol to invoke automatic detection. When the mouse daemon is running, access to the mouse needs to be coordinated between the mouse daemon and other programs such as the X Window. Refer to another section on this issue". How do I cut and paste text with mouse in the text console? Once you get the mouse daemon running (see previous section), hold down the button 1 (left button) and move the mouse to select a region of text. Then, press the button 2 (middle button) or the button 3 (right button) to paste it at the text cursor. In versions 2.2.6 and later, pressing the button 2 will paste the text. Pressing the button 3 will ``extend'' the selected region of text. If your mouse does not have the middle button, you may wish to emulate it or remap buttons using moused options. See the moused man page for details. My mouse has a fancy wheel and buttons. Can I use them in FreeBSD? The answer is, unfortunately, ``It depends.'' These mice with additional features require specialized driver in most cases. Unless the mouse device driver or the user program has specific support for the mouse, it will act just like a standard two, or three button mouse. How do I use the mouse/trackball/touchpad on my laptop? Please refer to the answer to the previous question. And check out this note on the Mobile Computing page. What types of tape drives are supported? FreeBSD supports SCSI, QIC-36 (with a QIC-02 interface) and QIC-40/80 (Floppy based) tape drives. This includes 8-mm (aka Exabyte) and DAT drives. The QIC-40/80 drives are known to be slow. Some of the early 8-mm drives are not quite compatible with SCSI-2, and may not work well with FreeBSD. Does FreeBSD support tape changers? FreeBSD 2.2 supports SCSI changers using the ch device and the chio command. The details of how you actually control the changer can be found in the chio man page. If you're not using AMANDA or some other product that already understands changers, remember that they're only know how to move a tape from one point to another, so you need to keep track of which slot a tape is in, and which slot the tape currently in the drive needs to go back to. Which sound cards are supported by FreeBSD? FreeBSD supports the SoundBlaster, SoundBlaster Pro, SoundBlaster 16, Pro Audio Spectrum 16, AdLib and Gravis UltraSound sound cards. There is also limited support for MPU-401 and compatible MIDI cards. Cards conforming to the Microsoft Sound System specification are also supported through the pcm driver. NOTE This is only for sound! This driver does not support CD-ROMs, SCSI or joysticks on these cards, except for the SoundBlaster. The SoundBlaster SCSI interface and some non-SCSI CDROMS are supported, but you can't boot off this device. Workarounds for no sound from es1370 with pcm driver? You can run the following command everytime the machine booted up: mixer pcm 100 vol 100 cd 100 Which network cards does FreeBSD support? See the Ethernet cards section of the handbook for a more complete list. I don't have a math co-processor - is that bad? Note This will only affect 386/486SX/486SLC owners - other machines will have one built into the CPU. In general this will not cause any problems, but there are circumstances where you will take a hit, either in performance or accuracy of the math emulation code (see the section on FP emulation). In particular, drawing arcs in X will be VERY slow. It is highly recommended that you buy a math co-processor; it's well worth it. NOTE Some math co-processors are better than others. It pains us to say it, but nobody ever got fired for buying Intel. Unless you're sure it works with FreeBSD, beware of clones. What other devices does 2.X support? See the Handbook for the list of other devices supported. Does FreeBSD support power management on my laptop? FreeBSD supports APM on certain machines. Please look in the LINT kernel config file, searching for the APM keyword. My Micron system hangs at boot time Certain Micron motherboards have a non-conforming PCI BIOS implementation that causes grief when FreeBSD boots because PCI devices don't get configured at their reported addresses. Disable the "Plug and Play Operating System" flag in the BIOS to work around this problem. More information can be found at http://cesdis.gsfc.nasa.gov/linux/drivers/vortex.html#micron I have a newer Adaptec controller and FreeBSD can't find it. The newer AIC789x series Adaptec chips are supported under the CAM SCSI framework which made it's debut in 3.0. Patches against 2.2-STABLE are in ftp://ftp.FreeBSD.org/pub/FreeBSD/development/cam/. A CAM-enhanced boot floppy is available at http://www.FreeBSD.org/~abial/cam-boot/. In both cases read the README before beginning. I have an internal Plug & Play modem and FreeBSD can't find it. You will need to add the modem's PnP ID to the PnP ID list in the serial driver. To enable Plug & Play support, compile a new kernel with controller pnp0 in the configuration file, then reboot the system. The kernel will print the PnP IDs of all the devices it finds. Copy the PnP ID from the modem to the table in /sys/i386/isa/sio.c, at about line 2777. Look for the string "SUP1310" in the structure "siopnp_ids[]" to find the table. Build the kernel again, install, reboot, and your modem should be found. You may have to manually configure the PnP devices using the `pnp' command in the boot-time configuration with a command like pnp 1 0 enable os irq0 3 drq0 0 port0 0x2f8 to make the modem show. How do I get the boot: prompt to show on the serial console? Build a kernel with options COMCONSOLE. Create /boot.config and place as the only text in the file. Unplug the keyboard from the system. See /usr/src/sys/i386/boot/biosboot/README.serial for information. Why doesn't my 3Com PCI network card work with my Micron computer? Certain Micron motherboards have a non-conforming PCI BIOS implementation that does not configure PCI devices at the addresses reported. This causes grief when FreeBSD boots. To work around this problem, disable the "Plug and Play Operating System" flag in the BIOS. More information on this problem is available at URL: http://cesdis.gsfc.nasa.gov/linux/drivers/vortex.html#micron Does FreeBSD support Symmetric Multiproccessing (SMP)? SMP is supported in 3.0-STABLE and later releases only. Troubleshooting I have bad blocks on my hard drive! With SCSI drives, the drive should be capable of re-mapping these automatically. However, many drives are shipped with this feature disabled, for some mysterious reason... To enable this, you'll need to edit the first device page mode, which can be done on FreeBSD by giving the command (as root) scsi -f /dev/rsd0c -m 1 -e -P 3 and changing the values of AWRE and ARRE from 0 to 1:- AWRE (Auto Write Reallocation Enbld): 1 ARRE (Auto Read Reallocation Enbld): 1 The following paragraphs were submitted by Ted Mittelstaedt: For IDE drives, any bad block is usually a sign of potential trouble. All modern IDE drives come with internal bad-block remapping turned on. All IDE hard drive manufacturers today offer extensive warranties and will replace drives with bad blocks on them. If you still want to attempt to rescue an IDE drive with bad blocks, you can attempt to download the IDE drive manufacturer's IDE diagnostic program, and run this against the drive. Sometimes these programs can be set to force the drive electronics to rescan the drive for bad blocks and lock them out. For ESDI, RLL and MFM drives, bad blocks are a normal part of the drive and are no sign of trouble, generally. With a PC, the disk drive controller card and BIOS handle the task of locking out bad sectors. This is fine for operating systems like DOS that use BIOS code to access the disk. However, FreeBSD's disk driver does not go through BIOS, therefore a mechanism, bad144, exists that replaces this functionality. bad144 only works with the wd driver, it is NOT able to be used with SCSI. bad144 works by entering all bad sectors found into a special file. One caveat with bad144 - the bad block special file is placed on the last track of the disk. As this file may possibly contain a listing for a bad sector that would occur near the beginning of the disk, where the /kernel file might be located, it therefore must be accessible to the bootstrap program that uses BIOS calls to read the kernel file. This means that the disk with bad144 used on it must not exceed 1024 cylinders, 16 heads, and 63 sectors. This places an effective limit of 500MB on a disk that is mapped with bad144. To use bad144, simply set the "Bad Block" scanning to ON in the FreeBSD fdisk screen during the initial install. This works up through FreeBSD 2.2.7. The disk must have less than 1024 cylinders. It is generally recommended that the disk drive has been in operation for at least 4 hours prior to this to allow for thermal expansion and track wandering. If the disk has more than 1024 cylinders (such as a large ESDI drive) the ESDI controller uses a special translation mode to make it work under DOS. The wd driver understands about these translation modes, IF you enter the "translated" geometry with the "set geometry" command in fdisk. You must also NOT use the "dangerously dedicated" mode of creating the FreeBSD partition, as this ignores the geometry. Also, even though fdisk will use your overridden geometry, it still knows the true size of the disk, and will attempt to create a too large FreeBSD partition. If the disk geometry is changed to the translated geometry, the partition MUST be manually created with the number of blocks. A quick trick to use is to set up the large ESDI disk with the ESDI controller, boot it with a DOS disk and format it with a DOS partition. Then, boot the FreeBSD install and in the fdisk screen, read off and write down the blocksize and block numbers for the DOS partition. Then, reset the geometry to the same that DOS uses, delete the DOS partition, and create a "cooperative" FreeBSD partition using the blocksize you recorded earlier. Then, set the partition bootable and turn on bad block scanning. During the actual install, bad144 will run first, before any filesystems are created. (you can view this with an Alt-F2) If it has any trouble creating the badsector file, you have set too large a disk geometry - reboot the system and start all over again (including repartitioning and reformatting with DOS). If remapping is enabled and you are seeing bad blocks, consider replacing the drive. The bad blocks will only get worse as time goes on. FreeBSD does not recognize my Bustek 742a EISA SCSI! This info is specific to the 742a but may also cover other Buslogic cards. (Bustek = Buslogic) There are 2 general ``versions'' of the 742a card. They are hardware revisions A-G, and revisions H - onwards. The revision letter is located after the Assembly number on the edge of the card. The 742a has 2 ROM chips on it, one is the BIOS chip and the other is the Firmware chip. FreeBSD doesn't care what version of BIOS chip you have but it does care about what version of firmware chip. Buslogic will send upgrade ROMS out if you call their tech support dept. The BIOS and Firmware chips are shipped as a matched pair. You must have the most current Firmware ROM in your adapter card for your hardware revision. The REV A-G cards can only accept BIOS/Firmware sets up to 2.41/2.21. The REV H- up cards can accept the most current BIOS/Firmware sets of 4.70/3.37. The difference between the firmware sets is that the 3.37 firmware supports ``round robin'' The Buslogic cards also have a serial number on them. If you have a old hardware revision card you can call the Buslogic RMA department and give them the serial number and attempt to exchange the card for a newer hardware revision. If the card is young enough they will do so. FreeBSD 2.1 only supports Firmware revisions 2.21 onward. If you have a Firmware revision older than this your card will not be recognized as a Buslogic card. It may be recognized as an Adaptec 1540, however. The early Buslogic firmware contains an AHA1540 ``emulation'' mode. This is not a good thing for an EISA card, however. If you have an old hardware revision card and you obtain the 2.21 firmware for it, you will need to check the position of jumper W1 to B-C, the default is A-B. The 742a EISA cards never had the ``>16MB'' problem mentioned in the section on >16 MB machines. This is a problem that occurs with the Vesa-Local Buslogic SCSI cards. My HP Netserver's SCSI controller is not detected! This is basically a known problem. The EISA on-board SCSI controller in the HP Netserver machines occupies EISA slot number 11, so all the ``true'' EISA slots are in front of it. Alas, the address space for EISA slots >= 10 collides with the address space assigned to PCI, and FreeBSD's auto-configuration currently cannot handle this situation very well. So now, the best you can do is to pretend there is no address range clash :), by bumping the kernel option EISA_SLOTS to a value of 12. Configure and compile a kernel, as described in the Handbook entry on configuring the kernel. Of course, this does present you with a chicken-and-egg problem when installing on such a machine. In order to work around this problem, a special hack is available inside UserConfig. Do not use the ``visual'' interface, but the plain command-line interface there. Simply type eisa 12 quit at the prompt, and install your system as usual. While it's recommended you compile and install a custom kernel anyway, dset now also understands to save this value. Hopefully, future versions will have a proper fix for this problem. NOTE: You can not use a dangerously dedicated disk with an HP Netserver. See this note for more info. What's up with this CMD640 IDE controller? It's broken. It cannot handle commands on both channels simultaneously. There's a workaround available now and it is enabled automatically if your system uses this chip. For the details refer to the manual page of the disk driver (man 4 wd). If you're already running FreeBSD 2.2.1 or 2.2.2 with a CMD640 IDE controller and you want to use the second channel, build a new kernel with options "CMD640" enabled. This is the default for 2.2.5 and later. I keep seeing messages like ``ed1: timeout''. This is usually caused by an interrupt conflict (e.g., two boards using the same IRQ). FreeBSD prior to 2.0.5R used to be tolerant of this, and the network driver would still function in the presence of IRQ conflicts. However, with 2.0.5R and later, IRQ conflicts are no longer tolerated. Boot with the -c option and change the ed0/de0/... entry to match your board. If you're using the BNC connector on your network card, you may also see device timeouts because of bad termination. To check this, attach a terminator directly to the NIC (with no cable) and see if the error messages go away. Some NE2000 compatible cards will give this error if there is no link on the UTP port or if the cable is disconnected. When I mount a CDROM, I get ``Incorrect super block''. You have to tell mount the type of the device that you want to mount. By default, mount will assume the filesystem is of type ``ufs''. You want to mount a CDROM filesystem, and you do this by specifying the ``'' option to mount. This does, of course, assume that the CDROM contains an ISO 9660 filesystem, which is what most CDROMs have. As of 1.1R, FreeBSD automatically understands the Rock Ridge (long filename) extensions as well. As an example, if you want to mount the CDROM device, ``/dev/cd0c'', under /mnt, you would execute: mount -t cd9660 /dev/cd0c /mnt Note that your device name (``/dev/cd0c'' in this example) could be different, depending on the CDROM interface. Note that the ``'' option just causes the ``mount_cd9660'' command to be executed, and so the above example could be shortened to: mount_cd9660 /dev/cd0c /mnt When I mount a CDROM, I get ``Device not configured''. This generally means that there is no CDROM in the CDROM drive, or the drive is not visible on the bus. Feed the drive something, and/or check its master/slave status if it is IDE (ATAPI). It can take a couple of seconds for a CDROM drive to notice that it's been fed, so be patient. Sometimes a SCSI CD-ROM may be missed because it hadn't enough time to answer the bus reset. If you have a SCSI CD-ROM please try to add the following symbol into your kernel configuration file and recompile. options "SCSI_DELAY=15" My printer is ridiculously slow. What can I do ? If it's parallel, and the only problem is that it's terribly slow, try setting your printer port into ``polled'' mode: lptcontrol -p Some newer HP printers are claimed not to work correctly in interrupt mode, apparently due to some (not yet exactly understood) timing problem. My programs occasionally die with ``Signal 11'' errors. This can be caused by bad hardware (memory, motherboard, etc.). Try running a memory-testing program on your PC. Note that, even though every memory testing program you try will report your memory as being fine, it's possible for slightly marginal memory to pass all memory tests, yet fail under operating conditions (such as during bus mastering DMA from a SCSI controller like the Adaptec 1542, when you're beating on memory by compiling a kernel, or just when the system's running particularly hot). The SIG11 FAQ (listed below) points up slow memory as being the most common problem. Increase the number of wait states in your BIOS setup, or get faster memory. For me the guilty party has been bad cache RAM or a bad on-board cache controller. Try disabling the on-board (secondary) cache in the BIOS setup and see if that solves the problem. There's an extensive FAQ on this at the SIG11 problem FAQ When I boot, the screen goes black and loses sync! This is a known problem with the ATI Mach 64 video card. The problem is that this card uses address 2e8, and the fourth serial port does too. Due to a bug (feature?) in the sio.c driver it will touch this port even if you don't have the fourth serial port, and even if you disable sio3 (the fourth port) which normally uses this address. Until the bug has been fixed, you can use this workaround: Enter at the bootprompt. (This will put the kernel into configuration mode). Disable sio0, sio1, sio2 and sio3 (all of them). This way the sio driver doesn't get activated -> no problems. Type exit to continue booting. If you want to be able to use your serial ports, you'll have to build a new kernel with the following modification: in /usr/src/sys/i386/isa/sio.c find the one occurrence of the string 0x2e8 and remove that string and the preceding comma (keep the trailing comma). Now follow the normal procedure of building a new kernel. Even after applying these workarounds, you may still find that X Window does not work properly. Some newer ATI Mach 64 video cards (notably ATI Mach Xpression) do not run with the current version of XFree86; the screen goes black when you start X Window, or it works with strange problems. You can get a beta-version of a new X-server that works better, by looking at the XFree86 site and following the links to the new beta release. Get the following files: AccelCards, BetaReport, Cards, Devices, FILES, README.ati, README.FreeBSD, README.Mach64, RELNOTES, VGADriver.Doc, X312BMa64.tgz Replace the older files with the new versions and make sure you run xf86config again. I have 128 MB of RAM but the system only uses 64 MB. Due to the manner in which FreeBSD gets the memory size from the BIOS, it can only detect 16 bits worth of Kbytes in size (65535 Kbytes = 64MB) (or less... some BIOSes peg the memory size to 16M). If you have more than 64MB, FreeBSD will attempt to detect it; however, the attempt may fail. To work around this problem, you need to use the kernel option specified below. There is a way to get complete memory information from the BIOS, but we don't have room in the bootblocks to do it. Someday when lack of room in the bootblocks is fixed, we'll use the extended BIOS functions to get the full memory information...but for now we're stuck with the kernel option. options "MAXMEM=<n>" Where n is your memory in Kilobytes. For a 128 MB machine, you'd want to use 131072. FreeBSD 2.0 panics with ``kmem_map too small!'' Note The message may also be ``mb_map too small!'' The panic indicates that the system ran out of virtual memory for network buffers (specifically, mbuf clusters). You can increase the amount of VM available for mbuf clusters by adding: options "NMBCLUSTERS=<n>" to your kernel config file, where <n> is a number in the range 512-4096, depending on the number of concurrent TCP connections you need to support. I'd recommend trying 2048 - this should get rid of the panic completely. You can monitor the number of mbuf clusters allocated/in use on the system with netstat -m. The default value for NMBCLUSTERS is 512 + MAXUSERS * 16. ``CMAP busy panic'' when rebooting with a new kernel. The logic that attempts to detect an out of date /var/db/kvm_*.db files sometimes fails and using a mismatched file can sometimes lead to panics. If this happens, reboot single-user and do: rm /var/db/kvm_*.db ahc0: brkadrint, Illegal Host Access at seqaddr 0x0 This is a conflict with an Ultrastor SCSI Host Adapter. During the boot process enter the kernel configuration menu and disable uha0, which is causing the problem. Sendmail says ``mail loops back to myself'' This is answered in the sendmail FAQ as follows:- * I'm getting "Local configuration error" messages, such as: 553 relay.domain.net config error: mail loops back to myself 554 <user@domain.net>... Local configuration error How can I solve this problem? You have asked mail to the domain (e.g., domain.net) to be forwarded to a specific host (in this case, relay.domain.net) by using an MX record, but the relay machine doesn't recognize itself as domain.net. Add domain.net to /etc/sendmail.cw (if you are using FEATURE(use_cw_file)) or add "Cw domain.net" to /etc/sendmail.cf. The current version of the sendmail FAQ is no longer maintained with the sendmail release. It is however regularly posted to comp.mail.sendmail, comp.mail.misc, comp.mail.smail, comp.answers, and news.answers. You can also receive a copy via email by sending a message to mail-server@rtfm.mit.edu with the command "send usenet/news.answers/mail/sendmail-faq" as the body of the message. Full screen applications on remote machines misbehave The remote machine may be setting your terminal type to something other than the cons25 terminal type required by the FreeBSD console. There are a number of possible work-arounds for this problem: After logging on to the remote machine, set your TERM shell variable to ansi or sco if the remote machine knows about these terminal types. Use a VT100 emulator like screen at the FreeBSD console. screen offers you the ability to run multiple concurrent sessions from one terminal, and is a neat program in its own right. Each screen window behaves like a VT100 terminal, so the TERM variable at the remote end should be set to vt100. Install the cons25 terminal database entry on the remote machine. The way to do this depends on the operating system on the remote machine. The system administration manuals for the remote system should be able to help you here. Fire up an X server at the FreeBSD end and login to the remote machine using an X based terminal emulator such as xterm or rxvt. The TERM variable at the remote host should be set to xterm or vt100 . My machine prints "calcru: negative time..." This can be caused by various hardware and/or software ailments relating to interrupts. It may be due to bugs but can also happen by nature of certain devices. Running TCP/IP over the parallel port using a large MTU is one good way to provoke this problem. Graphics accelerators can also get you here, in which case you should check the interrupt setting of the card first. A side effect of this problem are dying processes with the message "SIGXCPU exceeded cpu time limit". For FreeBSD 3.0 and later from Nov 29, 1998 forward: If the problem cannot be fixed otherwise the solution is to set this sysctl variable: sysctl -w kern.timecounter.method=1 This means a performance impact, but considering the cause of this problem, you probably will not notice. If the problem persists, keep the sysctl set to one and set the "NTIMECOUNTER" option in your kernel to increasingly large values. If by the time you have reached "NTIMECOUNTER=20" the problem isn't solved, interrupts are too hosed on your machine for reliable timekeeping. Commercial Applications NOTE This section is still very sparse, though we're hoping, of course, that companies will add to it! :) The FreeBSD group has no financial interest in any of the companies listed here but simply lists them as a public service (and feels that commercial interest in FreeBSD can have very positive effects on FreeBSD's long-term viability). We encourage commercial software vendors to send their entries here for inclusion. See the Vendors page for a longer list. Where can I get Motif for FreeBSD? Contact Apps2go for an ELF Motif 2.1 distribution for FreeBSD. This distribution includes: OSF/Motif manager, xmbind, panner, wsm. Development kit with uil, mrm, xm, xmcxx, include and Imake files. Static and dynamic ELF libraries (for use with FreeBSD 3.0 and above). Demonstration applets. Be sure to specify that you want the FreeBSD version of Motif when ordering! Versions for NetBSD and OpenBSD are also sold by Apps2go. This is currently a FTP only download. More info Apps2go WWW page or Sales or Support email addresses. or phone (817) 431 8775 or +1 817 431-8775 Contact Metro Link for an either ELF or a.out Motif 2.1 distribution for FreeBSD. This distribution includes: OSF/Motif manager, xmbind, panner, wsm. Development kit with uil, mrm, xm, xmcxx, include and Imake files. Static and dynamic libraries (specify ELF for use with FreeBSD 3.0 and later; or a.out for use with FreeBSD 2.2.8 and eariler). Demonstration applets. Preformatted man pages. Be sure to specify that you want the FreeBSD version of Motif when ordering! Versions for Linux are also sold by Metro Link. This is available on either a CDROM or for FTP download. Contact Xi Graphics for an a.out Motif 2.0 distribution for FreeBSD. This distribution includes: OSF/Motif manager, xmbind, panner, wsm. Development kit with uil, mrm, xm, xmcxx, include and Imake files. Static and dynamic libraries (for use with FreeBSD 2.2.8 and eariler). Demonstration applets. Preformatted man pages. Be sure to specify that you want the FreeBSD version of Motif when ordering! Versions for BSDI and Linux are also sold by Xi Graphics. This is currently a 4 diskette set... in the future this will change to a unified CD distribution like their CDE. Where can I get CDE for FreeBSD? Xi Graphics used to sell CDE for FreeBSD, but no longer do. KDE is an open source X11 desktop which is similar to CDE in many respects. Are there any commercial high-performance X servers? Yes, Xi Graphics and Metro Link sells Accelerated-X product for FreeBSD and other Intel based systems. The Metro Link offering is a high performance X Server that offers easy configuration using the FreeBSD Package suite of tools, support for multiple concurrent video boards and is distributed in binary form only, in a convienent FTP download. Not to mention the Metro Link offering is available at the very reasonable price of $39. Metro Link also sells both ELF and a.out Motif for FreeBSD (see above). More info Metro Link WWW page or Sales or Support email addresses. or phone (954) 938-0283 or +1 954 938-0283 The Xi Graphics offering is a high performance X Server that offers easy configuration, support for multiple concurrent video boards and is distributed in binary form only, in a unified diskette distribution for FreeBSD and Linux. Xi Graphics also offers a high performance X Server taylored for laptop support. There is a free "compatibility demo" of version 5.0 available. Xi Graphics also sells Motif and CDE for FreeBSD (see above). More info Xi Graphics WWW page or Sales or Support email addresses. or phone (800) 946 7433 or +1 303 298-7478. Are there any Database systems for FreeBSD? Yes! See the Commercial Vendors section of FreeBSD's Web site. Also see the Databases section of the Ports collection. Can I run Oracle on FreeBSD? Yes. The following pages tell you exactly how to setup Linux-Oracle on FreeBSD: http://www.scc.nl/~marcel/howto-oracle.html http://www.lf.net/lf/pi/oracle/install-linux-oracle-on-freebsd User Applications So, where are all the user applications? Please take a look at the ports page for info on software packages ported to FreeBSD. The list currently tops 1800 and is growing daily, so come back to check often or subscribe to the freebsd-announce mailing list for periodic updates on new entries. Most ports should be available for the 2.2, 3.x and 4.0 branches, and many of them should work on 2.1.x systems as well. Each time a FreeBSD release is made, a snapshot of the ports tree at the time of release in also included in the ports/ directory. We also support the concept of a ``package'', essentially no more than a gzipped binary distribution with a little extra intelligence embedded in it for doing whatever custom installation work is required. A package can be installed and uninstalled again easily without having to know the gory details of which files it includes. Use the package installation menu in /stand/sysinstall (under the post-configuration menu item) or invoke the pkg_add(1) command on the specific package files you're interested in installing. Package files can usually be identified by their .tgz suffix and CDROM distribution people will have a packages/All directory on their CD which contains such files. They can also be downloaded over the net for various versions of FreeBSD at the following locations: for 2.2.8-release/2.2.8-stable ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-2.2.8/ for 3.2-release/3.2-stable ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-3-stable/ for 4.0-current ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-4-current/ or your nearest local mirror site. Note that all ports may not be available as packages since new ones are constantly being added. It is always a good idea to check back periodically to see which packages are available at the ftp.FreeBSD.org master site. Where do I find libc.so.3.0? You are trying to run a package for 2.2/3.x/4.0 on a 2.1.x system. Please take a look at the previous section and get the correct port/package for your system. ghostscript gives lots of errors with my 386/486SX. You don't have a math co-processor, right? You will need to add the alternative math emulator to your kernel; you do this by adding the following to your kernel config file and it will be compiled in. options GPL_MATH_EMULATE NOTE You will need to remove the MATH_EMULATE option when you do this. When I run a SCO/iBCS2 application, it bombs on socksys. You first need to edit the /etc/sysconfig (or /etc/rc.conf) file in the last section to change the following variable to YES: # Set to YES if you want ibcs2 (SCO) emulation loaded at startup ibcs2=NO It will load the ibcs2 kernel module at startup. You'll then need to set up /compat/ibcs2/dev to look like: lrwxr-xr-x 1 root wheel 9 Oct 15 22:20 X0R@ -> /dev/null lrwxr-xr-x 1 root wheel 7 Oct 15 22:20 nfsd@ -> socksys -rw-rw-r-- 1 root wheel 0 Oct 28 12:02 null lrwxr-xr-x 1 root wheel 9 Oct 15 22:20 socksys@ -> /dev/null crw-rw-rw- 1 root wheel 41, 1 Oct 15 22:14 spx You just need socksys to go to /dev/null to fake the open & close. The code in -current will handle the rest. This is much cleaner than the way it was done before. If you want the spx driver for a local socket X connection, define SPX_HACK when you compile the system. How do I configure INN (Internet News) for my machine? After installing the inn package or port, an excellent place to start is Dave Barr's INN Page where you'll find the INN FAQ. What version of Microsoft FrontPage should I get? Use the Port, Luke! A pre-patched version of Apache is available in the ports tree. Does FreeBSD support Java? Yes. Please see http://www.FreeBSD.org/java/. Why can't I build this port on my 3.x-stable machine? If you're running a FreeBSD version that lags significantly behind -current or -stable, you may need a ports upgrade kit from http://www.FreeBSD.org/ports/. If you are up to date, then someone might have committed a change to the port which works for -current but which broke the port for -stable. Please submit a bug report on this with the send-pr(1) command, since the ports collection is supposed to work for both the -current and -stable branches. Where do I find ld.so? If you want to run some aout applications like Netscape Navigator on an Elf'ened machine such as 3.1-R or later, it would need /usr/libexec/ld.so and some aout libs. They are included in the compat22 distribution. Use /stand/sysinstall or install.sh in the compat22 subdirectory and install it. Also read ERRATAs for 3.1-R and 3.2-R. Kernel Configuration I'd like to customize my kernel. Is it difficult? Not at all! Check out the kernel config section of the Handbook. NOTE: I recommend making a dated snapshot of your kernel in kernel.YYMMDD after you get it all working, that way if you do something dire the next time you play with your configuration you can boot that kernel instead of having to go all the way back to kernel.GENERIC. This is particularly important if you're now booting off a controller that isn't supported in the GENERIC kernel (yes, personal experience). My kernel compiles fail because _hw_float is missing. Let me guess. You removed npx0 from your kernel configuration file because you don't have a math co-processor, right? Wrong! :-) The npx0 is MANDATORY. Even if you don't have a mathematic co-processor, you must include the npx0 device. Interrupt conflicts with multi-port serial code. Q. When I compile a kernel with multi-port serial code, it tells me that only the first port is probed and the rest skipped due to interrupt conflicts. How do I fix this? A. The problem here is that FreeBSD has code built-in to keep the kernel from getting trashed due to hardware or software conflicts. The way to fix this is to leave out the IRQ settings on all but one port. Here is a example: # # Multiport high-speed serial line - 16550 UARTS # device sio2 at isa? port 0x2a0 tty irq 5 flags 0x501 vector siointr device sio3 at isa? port 0x2a8 tty flags 0x501 vector siointr device sio4 at isa? port 0x2b0 tty flags 0x501 vector siointr device sio5 at isa? port 0x2b8 tty flags 0x501 vector siointr How do I enable support for QIC-40/80 drives? You need to uncomment the following line in the generic config file (or add it to your config file), add a ``flags 0x1'' on the fdc line and recompile. controller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2 flags 0x1 vector fdintr disk fd0 at fdc0 drive 0 ^^^^^^^^^ disk fd1 at fdc0 drive 1 #tape ft0 at fdc0 drive 2 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Next, you create a device called /dev/ft0 by going into /dev and run the following command: sh ./MAKEDEV ft0 for the first device. ft1 for a second one and so on. You will have a device called /dev/ft0, which you can write to through a special program to manage it called ``ft'' - see the man page on ft for further details. Versions previous to also had some trouble dealing with bad tape media; if you have trouble where ft seems to go back and forth over the same spot, try grabbing the latest version of ft from /usr/src/sbin/ft in and try that. System Administration Where are the system start-up configuration files? From 2.0.5R to 2.2.1R, the primary configuration file is /etc/sysconfig. All the options are to be specified in this file and other files such as /etc/rc and /etc/netstart just include it. Look in the /etc/sysconfig file and change the value to match your system. This file is filled with comments to show what to put in there. In post-2.2.1 and 3.0, /etc/sysconfig was renamed to a more self-describing rc.conf file and the syntax cleaned up a bit in the process. /etc/netstart was also renamed to /etc/rc.network so that all files could be copied with a cp /usr/src/etc/rc* /etc command. /etc/rc.local is here as always and may be used to start up additional local services like INN or set custom options. The /etc/rc.serial is for serial port initialization (e.g. locking the port characteristics, and so on.). The /etc/rc.i386 is for Intel-specifics settings, such as iBCS2 emulation or the PC system console configuration. Starting with 2.1.0R, you can also have "local" startup files in a directory specified in /etc/sysconfig (or /etc/rc.conf): # Location of local startup files. local_startup=/usr/local/etc/rc.local.d Each file ending in .sh will be executed in alphabetical order. If you want to ensure a certain execution order without changing all the file names, you can use a scheme similar to the following with digits prepended to each file name to insure the ordering: 10news.sh 15httpd.sh 20ssh.sh It can be seen as ugly (or SysV :-)) but it provides a simple and regular scheme for locally-added packages without resorting to magical editing of /etc/rc.local. Many of the ports/packages assume that /usr/local/etc/rc.d is a local startup directory. How do I add a user easily? Use the adduser command. For more complicated usage, the pw command. To remove the user again, use the rmuser command. How can I add my new hard disk to my FreeBSD system? See the Disk Formatting Tutorial at www.FreeBSD.org. I have a new removable drive, how do I use it? Whether it's a removable drive like a ZIP or an EZ drive (or even a floppy, if you want to use it that way), or a new hard disk, once it's installed and recognized by the system, and you have your cartridge/floppy/whatever slotted in, things are pretty much the same for all devices. (this section is based on Mark Mayo's ZIP FAQ) If it's a ZIP drive or a floppy , you've already got a DOS filesystem on it, you can use a command like this: mount -t msdos /dev/fd0c /floppy if it's a floppy, or this: mount -t msdos /dev/da2s4 /zip for a ZIP disk with the factory configuration. For other disks, see how they're laid out using fdisk or /stand/sysinstall. The rest of the examples will be for a ZIP drive on da2, the third SCSI disk. Unless it's a floppy, or a removable you plan on sharing with other people, it's probably a better idea to stick a BSD file system on it. You'll get long filename support, at least a 2X improvement in performance, and a lot more stability. First, you need to redo the DOS-level partitions/filesystems. You can either use fdisk or /stand/sysinstall, or for a small drive that you don't want to bother with multiple operating system support on, just blow away the whole FAT partition table (slices) and just use the BSD partitioning: dd if=/dev/zero of=/dev/rda2 count=2 disklabel -Brw sd2 auto You can use disklabel or /stand/sysinstall to create multiple BSD partitions. You'll certainly want to do this if you're adding swap space on a fixed disk, but it's probably irrelevant on a removable drive like a ZIP. Finally, create a new file system, this one's on our ZIP drive using the whole disk: newfs /dev/rda2c and mount it: mount /dev/da2c /zip and it's probably a good idea to add a line like this to /etc/fstab so you can just type "mount /zip" in the future: /dev/da2c /zip ffs rw,noauto 0 0 How do I mount a secondary DOS partition? The secondary DOS partitions are found after ALL the primary partitions. For example, if you have an "E" partition as the second DOS partition on the second SCSI drive, you need to create the special files for "slice 5" in /dev, then mount /dev/da1s5: # cd /dev # ./MAKEDEV sd1s5 # mount -t msdos /dev/da1s5 /dos/e Can I mount other foreign filesystems under FreeBSD? Digital UNIX UFS CDROMs can be mounted directly on FreeBSD. Mounting disk partitions from Digital UNIX and other systems that support UFS may be more complex, depending on the details of the disk partitioning for the operating system in question. Linux: 2.2 and later have support for ext2fs partitions. See mount_ext2fs for more information. NT: A read-only NTFS driver exists for FreeBSD. For more information, see this tutorial by Mark Ovens at http://www.users.globalnet.co.uk/~markov/ntfs_install.html. Any other information on this subject would be appreciated. How can I use the NT loader to boot FreeBSD? The general idea is that you copy the first sector of your native root FreeBSD partition into a file in the DOS/NT partition. Assuming you name that file something like c:\bootsect.bsd (inspired by c:\bootsect.dos), you can then edit the c:\boot.ini file to come up with something like this: [boot loader] timeout=30 default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS [operating systems] multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows NT" C:\BOOTSECT.BSD="FreeBSD" C:\="DOS" This procedure assumes that DOS, NT, FreeBSD, or whatever have been installed into their respective fdisk partitions on the same disk. In my case DOS & NT are in the first fdisk partition and FreeBSD is in the second. I also installed FreeBSD to boot from its native partition, not the disk MBR. Mount a DOS-formatted floppy (if you've converted to NTFS) or the FAT partition, under, say, /mnt. dd if=/dev/rda0a of=/mnt/bootsect.bsd bs=512 count=1 Reboot into DOS or NT. NTFS users copy the bootsect.bsd and/or the bootsect.lnx file from the floppy to C:\. Modify the attributes (permissions) on boot.ini with: attrib -s -r c:\boot.ini Edit to add the appropriate entries from the example boot.ini above, and restore the attributes: attrib +s +r c:\boot.ini If FreeBSD is booting from the MBR, restore it with the DOS ``fdisk'' command after you reconfigure them to boot from their native partitions. How do I boot FreeBSD and Linux from LILO? If you have FreeBSD and Linux on the same disk, just follow LILO's installation instructions for booting a non-Linux operating system. Very briefly, these are: Boot Linux, and add the following lines to /etc/lilo.conf: other=/dev/hda2 table=/dev/hda label=FreeBSD (the above assumes that your FreeBSD slice is known to Linux as /dev/hda2; tailor to suit your setup). Then, run lilo as root and you should be done. If FreeBSD resides on another disk, you need to add ``loader=/boot/chain.b'' to the LILO entry. For example: other=/dev/dab4 table=/dev/dab loader=/boot/chain.b label=FreeBSD In some cases you may need to specify the BIOS drive number to the FreeBSD boot loader to successfully boot off the second disk. For example, if your FreeBSD SCSI disk is probed by BIOS as BIOS disk 1, at the FreeBSD boot loader prompt you need to specify: Boot: 1:da(0,a)/kernel On FreeBSD 2.2.5 and later, you can configure boot(8) to automatically do this for you at boot time. The Linux+FreeBSD mini-HOWTO is a good reference for FreeBSD and Linux interoperability issues. How do I boot FreeBSD and Linux using BootEasy? Install LILO at the start of your Linux boot partition instead of in the Master Boot Record. You can then boot LILO from BootEasy. If you're running Windows-95 and Linux this is recommended anyway, to make it simpler to get Linux booting again if you should need to reinstall Windows95 (which is a Jealous Operating System, and will bear no other Operating Systems in the Master Boot Record). Will a ``dangerously dedicated'' disk endanger my health? The installation procedure allows you to chose two different methods in partitioning your harddisk(s). The default way makes it compatible with other operating systems on the same machine, by using fdisk table entries (called ``slices'' in FreeBSD), with a FreeBSD slice that employs partitions of its own. Optionally, one can chose to install a boot-selector to switch between the possible operating systems on the disk(s). The alternative uses the entire disk for FreeBSD, and makes no attempt to be compatible with other operating systems. So why it is called ``dangerous''? A disk in this mode doesn't contain what normal PC utilities would consider a valid fdisk table. Depending on how well they have been designed, they might complain at you once they are getting in contact with such a disk, or even worse, they might damage the BSD bootstrap without even asking or notifying you. In addition, the ``dangerously dedicated'' disk's layout is known to confuse many BIOSsen, including those from AWARD (eg. as found in HP Netserver and Micronics systems as well as many others) and Symbios/NCR (for the popular 53C8xx range of SCSI controllers). This isn't a complete list, there are more. Symptoms of this confusion include the "read error" message printed by the FreeBSD bootstrap when it can't find itself, as well as system lockups when booting. Why have this mode at all then? It only saves a few kbytes of disk space, and it can cause real problems for a new installation. ``Dangerously dedicated'' mode's origins lie in a desire to avoid one of the most common problems plaguing new FreeBSD installers - matching the BIOS ``geometry'' numbers for a disk to the disk itself. ``Geometry'' is an outdated concept, but one still at the heart of the PC's BIOS and its interaction with disks. When the FreeBSD installer creates slices, it has to record the location of these slices on the disk in a fashion that corresponds with the way the BIOS expects to find them. If it gets it wrong, you won't be able to boot. ``Dangerously dedicated'' mode tries to work around this by making the problem simpler. In some cases, it gets it right. But it's meant to be used as a last-ditch alternative - there are better ways to solve the problem 99 times out of 100. So, how do you avoid the need for ``DD'' mode when you're installing? Start by making a note of the geometry that your BIOS claims to be using for your disks. You can arrange to have the kernel print this as it boots by specifying ``-v'' at the ``boot:'' prompt, or using ``boot -v'' in the loader. Just before the installer starts, the kernel will print a list of BIOS geometries. Don't panic - wait for the installer to start and then use scrollback to read the numbers. Typically the BIOS disk units will be in the same order that FreeBSD lists your disks, first IDE, then SCSI. When you're slicing up your disk, check that the disk geometry displayed in the FDISK screen is correct (ie. it matches the BIOS numbers); if it's wrong, use the ``g'' key to fix it. You may have to do this if there's absolutely nothing on the disk, or if the disk has been moved from another system. Note that this is only an issue with the disk that you're going to boot from; FreeBSD will sort itself out just fine with any other disks you may have. Once you've got the BIOS and FreeBSD agreeing about the geometry of the disk, your problems are almost guaranteed to be over, and with no need for ``DD'' mode at all. If, however, you are still greeted with the dreaded ``read error'' message when you try to boot, it's time to cross your fingers and go for it - there's nothing left to lose. To return a ``dangerously dedicated'' disk for normal PC use, there are basically two options. The first is, you write enough NULL bytes over the MBR to make any subsequent installation believe this to be a blank disk. You can do this for example with dd if=/dev/zero of=/dev/rda0 count=15 Alternatively, the undocumented DOS ``feature'' fdisk /mbr will to install a new master boot record as well, thus clobbering the BSD bootstrap. How can I add more swap space? The best way is to increase the size of your swap partition, or take advantage of this convenient excuse to add another disk. The general rule of thumb is to have around 2x the swap space as you have main memory. However, if you have a very small amount of main memory you may want to configure swap beyond that. It is also a good idea to configure sufficient swap relative to anticipated future memory upgrades so you do not have to futz with your swap configuration later. Adding swap onto a separate disk makes things faster than simply adding swap onto the same disk. As an example, if you are compiling source located on one disk, and the swap is on another disk, this is much faster than both swap and compile on the same disk. This is true for SCSI disks specifically. When you have several disks, configuring a swap partition on each one is usually beneficial, even if you wind up putting swap on a work disk. Typically, each fast disk in your system should have some swap configured. FreeBSD supports up to 4 interleaved swap devices by default. When configuring multiple swap partitions you generally want to make them all about the same size, but people sometimes make their primary swap parition larger in order to accomodate a kernel core dump. Your primary swap partition must be at least as large as main memory in order to be able to accomodate a kernel core. IDE drives are not able to allow access to both drives on the same channel at the same time (FreeBSD doesn't support mode 4, so all IDE disk I/O is ``programmed''). I would still suggest putting your swap on a separate drive however. The drives are so cheap, it is not worth worrying about. Swapping over NFS is only recommended if you do not have a local disk to swap to. Swapping over NFS is slow and inefficient in FreeBSD releases prior to 4.x, but reasonably fast in releases greater or equal to 4.0. Even so, it will be limited to the network bandwidth available and puts an additional burden on the NFS server. Here is an example for 64Mb vn-swap (/usr/swap0, though of course you can use any name that you want). Make sure your kernel was built with the line pseudo-device vn 1 #Vnode driver (turns a file into a device) in your config-file. The GENERIC kernel already contains this. create a vn-device cd /dev sh ./MAKEDEV vn0 create a swapfile (/usr/swap0) dd if=/dev/zero of=/usr/swap0 bs=1024k count=64 set proper permissions on (/usr/swap0) chmod 0600 /usr/swap0 enable the swap file in /etc/rc.conf swapfile="/usr/swap0" # Set to name of swapfile if aux swapfile desired. reboot the machine To enable the swap file immediately, type vnconfig -ce /dev/vn0c /usr/swap0 swap I'm having problems setting up my printer. Please have a look at the Handbook entry on printing. It should cover most of your problem. See the Handbook entry on printing. The keyboard mappings are wrong for my system. The kbdcontrol program has an option to load a keyboard map file. Under /usr/share/syscons/keymaps are a number of map files. Choose the one relevant to your system and load it. kbdcontrol -l uk.iso Both the /usr/share/syscons/keymaps and the .kbd extension are assumed by kbdcontrol. This can be configured in /etc/sysconfig (or rc.conf). See the appropriate comments in this file. In 2.0.5R and later, everything related to text fonts, keyboard mapping is in /usr/share/examples/syscons. The following mappings are currently supported: Belgian ISO-8859-1 Brazilian 275 keyboard Codepage 850 Brazilian 275 keyboard ISO-8859-1 Danish Codepage 865 Danish ISO-8859-1 French ISO-8859-1 German Codepage 850 German ISO-8859-1 Italian ISO-8859-1 Japanese 106 Japanese 106x Latin American Norwegian ISO-8859-1 Polish ISO-8859-2 (programmer's) Russian Codepage 866 (alternative) Russian koi8-r (shift) Russian koi8-r Spanish ISO-8859-1 Swedish Codepage 850 Swedish ISO-8859-1 Swiss-German ISO-8859-1 United Kingdom Codepage 850 United Kingdom ISO-8859-1 United States of America ISO-8859-1 United States of America dvorak United States of America dvorakx I can't get user quotas to work properly. Don't turn on quotas on '/', Put the quota file on the file system that the quotas are to be enforced on. ie: FS QUOTA FILE /usr /usr/admin/quotas /home /home/admin/quotas ... What's inappropriate about my ccd? The symptom of this is: # ccdconfig -C ccdconfig: ioctl (CCDIOCSET): /dev/ccd0c: Inappropriate file type or format # This usually happens when you are trying to concatenate the `c' partitions, which default to type `unused'. The ccd driver requires the underlying partition type to be FS_BSDFFS. Edit the disklabel of the disks you are trying to concatenate and change the types of partitions to `4.2BSD'. Why can't I edit the disklabel on my ccd? The symptom of this is: # disklabel ccd0 (it prints something sensible here, so let's try to edit it) # disklabel -e ccd0 (edit, save, quit) disklabel: ioctl DIOCWDINFO: No disk label on disk; use "disklabel -r" to install initial label # This is because the disklabel returned by ccd is actually a `fake' one that is not really on the disk. You can solve this problem by writing it back explicitly, as in: # disklabel ccd0 > /tmp/disklabel.tmp # disklabel -Rr ccd0 /tmp/disklabel.tmp # disklabel -e ccd0 (this will work now) Does FreeBSD support System V IPC primitives? Yes, FreeBSD supports System V-style IPC. This includes shared memory, messages and semaphores. You need to add the following lines to your kernel config to enable them. options SYSVSHM options "SHMMAXPGS=64" # 256Kb of sharable memory options SYSVSEM # enable for semaphores options SYSVMSG # enable for messaging Recompile and install. NOTE: You may need to increase SHMMAXPGS to some ridiculous number like 4096 (16M!) if you want to run GIMP. 256Kb is plenty for X11R6 shared memory. How do I use sendmail for mail delivery with UUCP? The sendmail configuration that ships with FreeBSD is suited for sites that connect directly to the Internet. Sites that wish to exchange their mail via UUCP must install another sendmail configuration file. Tweaking /etc/sendmail.cf manually is considered something for purists. Sendmail version 8 comes with a new approach of generating config files via some m4 preprocessing, where the actual hand-crafted configuration is on a higher abstraction level. You should use the configuration files under /usr/src/usr.sbin/sendmail/cf If you didn't install your system with full sources, the sendmail config stuff has been broken out into a separate source distribution tarball just for you. Assuming you've got your CD-ROM mounted, do: cd /usr/src tar -xvzf /cdrom/dists/src/ssmailcf.aa Don't panic, this is only a few hundred kilobytes in size. The file README in the cf directory can serve as a basic introduction to m4 configuration. For UUCP delivery, you are best advised to use the mailertable feature. This constitutes a database that sendmail can use to base its routing decision upon. First, you have to create your .mc file. The directory /usr/src/usr.sbin/sendmail/cf/cf is the home of these files. Look around, there are already a few examples. Assuming you have named your file foo.mc, all you need to do in order to convert it into a valid sendmail.cf is: cd /usr/src/usr.sbin/sendmail/cf/cf make foo.cf cp foo.cf /etc/sendmail.cf A typical .mc file might look like: include(`../m4/cf.m4') VERSIONID(`Your version number') OSTYPE(bsd4.4) FEATURE(nodns) FEATURE(nocanonify) FEATURE(mailertable) define(`UUCP_RELAY', your.uucp.relay) define(`UUCP_MAX_SIZE', 200000) MAILER(local) MAILER(smtp) MAILER(uucp) Cw your.alias.host.name Cw youruucpnodename.UUCP The nodns and nocanonify features will prevent any usage of the DNS during mail delivery. The UUCP_RELAY clause is needed for bizarre reasons, don't ask. Simply put an Internet hostname there that is able to handle .UUCP pseudo-domain addresses; most likely, you will enter the mail relay of your ISP there. Once you've got this, you need this file called /etc/mailertable. A typical example of this gender again: # # makemap hash /etc/mailertable.db < /etc/mailertable # horus.interface-business.de uucp-dom:horus .interface-business.de uucp-dom:if-bus interface-business.de uucp-dom:if-bus .heep.sax.de smtp8:%1 horus.UUCP uucp-dom:horus if-bus.UUCP uucp-dom:if-bus . uucp-dom:sax As you can see, this is part of a real-life file. The first three lines handle special cases where domain-addressed mail should not be sent out to the default route, but instead to some UUCP neighbor in order to ``shortcut'' the delivery path. The next line handles mail to the local Ethernet domain that can be delivered using SMTP. Finally, the UUCP neighbors are mentioned in the .UUCP pseudo-domain notation, to allow for a ``uucp-neighbor!recipient'' override of the default rules. The last line is always a single dot, matching everything else, with UUCP delivery to a UUCP neighbor that serves as your universal mail gateway to the world. All of the node names behind the uucp-dom: keyword must be valid UUCP neighbors, as you can verify using the command uuname. As a reminder that this file needs to be converted into a DBM database file before being usable, the command line to accomplish this is best placed as a comment at the top of the mailertable. You always have to execute this command each time you change your mailertable. Final hint: if you are uncertain whether some particular mail routing would work, remember the option to sendmail. It starts sendmail in address test mode; simply enter ``0 '', followed by the address you wish to test for the mail routing. The last line tells you the used internal mail agent, the destination host this agent will be called with, and the (possibly translated) address. Leave this mode by typing Control-D. j@uriah 191% sendmail -bt ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter <ruleset> <address> > 0 foo@interface-business.de rewrite: ruleset 0 input: foo @ interface-business . de ... rewrite: ruleset 0 returns: $# uucp-dom $@ if-bus $: foo \ < @ interface-business . de > > ^D j@uriah 192% How do I set up mail with a dialup connection to the 'net? If you've got a statically assigned IP number, you should not need to adjust anything from the default. Set your host name up as your assigned internet name and sendmail will do the rest. If you've got a dynamically assigned IP number and use a dialup ppp connection to the internet, you will probably be given a mailbox on your ISPs mail server. Lets assume your ISPs domain is myISP.com, and that your user name is user. Lets also assume you've called your machine bsd.home and that your ISP has told you that you may use relay.myISP.com as a mail relay. In order to retrieve mail from your mailbox, you'll need to install a retrieval agent. Fetchmail is a good choice as it supports many different protocols. Usually, POP3 will be provided by your ISP. If you've chosen to use user-ppp, you can automatically fetch your mail when a connection to the 'net is established with the following entry in /etc/ppp/ppp.linkup: MYADDR: !bg su user -c fetchmail If you are using sendmail (as shown below) to deliver mail to non-local accounts, put the command !bg su user -c "sendmail -q" after the above shown entry. This forces sendmail to process your mailqueue as soon as the connection to the 'net is established. I'm assuming that you have an account for user on bsd.home. In the home directory of user on bsd.home, create a .fetchmailrc file: poll myISP.com protocol pop3 fetchall pass MySecret; Needless to say, this file should not be readable by anyone except user as it contains the password MySecret. In order to send mail with the correct from: header, you must tell sendmail to use user@myISP.com rather than user@bsd.home. You may also wish to tell sendmail to send all mail via relay.myISP.com, allowing quicker mail transmission. The following .mc file should suffice: VERSIONID(`bsd.home.mc version 1.0') OSTYPE(bsd4.4)dnl FEATURE(nouucp)dnl MAILER(local)dnl MAILER(smtp)dnl Cwlocalhost Cwbsd.home MASQUERADE_AS(`myISP.com')dnl FEATURE(allmasquerade)dnl FEATURE(masquerade_envelope)dnl FEATURE(nocanonify)dnl FEATURE(nodns)dnl define(SMART_HOST, `relay.myISP.com') Dmbsd.home define(`confDOMAIN_NAME',`bsd.home')dnl define(`confDELIVERY_MODE',`deferred')dnl Refer to the previous section for details of how to turn this .mc file into a sendmail.cf file. Also, don't forget to restart sendmail after updating sendmail.cf. Eek! I forgot the root password! Don't Panic! Simply restart the system, type -s at the Boot: prompt to enter Single User mode. At the question about the shell to use, hit ENTER. You'll be dropped to a # prompt. Enter mount -u / to remount your root filesystem read/write, then run mount -a to remount all the filesystems. Run passwd root to change the root password then run exit to continue booting. How do I keep Control-Alt-Delete from rebooting the system? Edit the keymap you are using for the console and replace the boot keywords with nop. The default keymap is /usr/share/syscons/keymaps/us.iso.kbd. You may have to instruct /etc/rc.conf to load this keymap explicitly for the change to take effect. Of course if you are using an alternate keymap for your country, you should edit that one instead. How do I reformat DOS text files to UNIX ones? Simply use this perl command: perl -i.bak -npe 's/\r\n/\n/g' file ... file is the file(s) to process. The modification is done in-place, with the original file stored with a .bak extension. Alternatively you can use the tr command: tr -d '\r' < dos-text-file > unix-file dos-text-file is the file containing DOS text while unix-file will contain the converted output. This can be quite a bit faster than using perl. How do I kill processes by name? Use killall. Why is su bugging me about not being in root's ACL? The error comes from the Kerberos distributed authentication system. The problem isn't fatal but annoying. You can either run su with the -K option, or uninstall Kerberos as described in the next question. How do I uninstall Kerberos? To remove Kerberos from the system, reinstall the bin distribution for the release you are running. If you have the CDROM, you can mount the cd (we'll assume on /cdrom) and run cd /cdrom/bin ./install.sh How do I add pseudoterminals to the system? If you have lots of telnet, ssh, X, or screen users, you'll probably run out of pseudoterminals. Here's how to add more: Build and install a new kernel with the line pseudo-device pty 256 in the configuration file. Run the command # cd /dev # ./MAKEDEV pty{1,2,3,4,5,6,7} to make 256 device nodes for the new terminals. Edit /etc/ttys and add lines for each of the 256 terminals. They should match the form of the existing entries, i.e. they look like ttyqc none network The order of the letter designations is tty[pqrsPQRS][0-9a-v], using a regular expression. Reboot the system with the new kernel and you're ready to go. I can't create the snd0 device! The command to create the devices for the sound card is: # cd /dev # sh MAKEDEV snd0 However, this does not make a device named /dev/snd0. Instead, it creates devices named mixer0, audio0, dsp0, and others. Running the command is still necessary to add sound devices, however. How do I re-read /etc/rc.conf and re-start /etc/rc without a reboot? Go into single user mode and than back to multi user mode. On the console do: # shutdown now (Note: without -r or -h) # return # exit What is a sandbox? "Sandbox" is a security term. It can mean two things: A process which is placed inside a set of virtual walls that are designed to prevent someone who breaks into the process from being able to break into the wider system. The process is said to be able to "play" inside the walls. That is, nothing the process does in regards to executing code is supposed to be able to breech the walls so you do not have to do a detailed audit of its code to be able to say certain things about its security. The walls might be a userid, for example. This is the definition used in the security and named man pages. Take the 'ntalk' service, for example (see /etc/inetd.conf). This service used to run as userid root. Now it runs as userid tty. The tty user is a sandbox designed to make it more difficult for someone who has successfully hacked into the system via ntalk from being able to hack beyond that user id. A process which is placed inside a simulation of the machine. This is more hard-core. Basically it means that someone who is able to break into the process may believe that he can break into the wider machine but is, in fact, only breaking into a simulation of that machine and not modifying any real data. The most common way to accomplish this is to build a simulated environment in a subdirectory and then run the processes in that directory chroot'd (i.e. "/" for that process is this directory, not the real "/" of the system). Another common use is to mount an underlying filesystem read-only and then create a filesystem layer on top of it that gives a process a seemingly writeable view into that filesystem. The process may believe it is able to write to those files, but only the process sees the effects - other processes in the system do not, necessarily. An attempt is made to make this sort of sandbox so transparent that the user (or hacker) does not realize that he is sitting in it. UNIX implements two core sanboxes. One is at the process level, and one is at the userid level. Every UNIX process is completely firewalled off from every other UNIX process. One process can not modify the address space of another. This is unlike Windows where a process can easily overwrite the address space of any other, leading to a crash. A UNIX process is owned by a patricular userid. If the userid is not the root user, it serves to firewall the process off from processes owned by other users. The userid is also used to firewall off on-disk data. How do I let ordinary users mount floppies and other removable media? Ordinary users can be permitted to mount devices. Here is how: As root assign the appropriate permissions to the block device associated with the removable media. For example, to allow users to mount the first floppy drive, use: &prompt.root; chmod 777 /dev/fd0 As root set the sysctl variable vfs.usermount to 1. &prompt.root; sysctl -w vfs.usermount=1 Users can now mount /dev/fd0 onto a directory that they own: &prompt.user; mkdir ~/my-mount-point &prompt.user; mount -t msdos /dev/fd0 ~/my-mount-point Unmounting the device is simple: &prompt.user; umount ~/my-mount-point Another way to access MSDOS formatted media is to use the mtools package in the ports collection. The X Window System and Virtual Consoles I want to run X, how do I go about it? The easiest way is to simply specify that you want to run X during the installation process. Then read and follow the documentation on the xf86config tool, which assists you in configuring XFree86(tm) for your particular graphics card/mouse/etc. You may also wish to investigate the Xaccel server. See the section on Xi Graphics or Metro Link for more details. Why doesn't my mouse work with X If you are using syscons (the default console driver), you can configure FreeBSD to support a mouse pointer on each virtual screen. In order to avoid conflicting with X, syscons supports a virtual device called ``/dev/sysmouse''. All mouse events received from the real mouse device are written to the sysmouse device, using the MouseSystems protocol. If you wish to use your mouse on one or more virtual consoles, and use X, the following configuration is recommended: /etc/rc.conf: moused_type=ps/2 # or whatever your actual type is moused_port=/dev/psm0 # or whatever your real port is moused_flags= /etc/XF86Config Section Pointer Protocol "MouseSystems" Device "/dev/sysmouse" ..... Some people prefer to use ``/dev/mouse'' under X. To make this work, ``/dev/mouse'' should be linked to /dev/sysmouse: # cd /dev # rm -f mouse # ln -s sysmouse mouse X Window menus and dialog boxes don't work right! Try turning off the Num Lock key. If your Num Lock key is on by default at boot-time, you may add the following line in the ``Keyboard'' section of the XF86Config file. # Let the server do the NumLock processing. This should only be # required when using pre-R6 clients ServerNumLock What is a virtual console and how do I make more? Virtual consoles, put simply, enable you to have several simultaneous sessions on the same machine without doing anything complicated like setting up a network or running X. When the system starts, it will display a login prompt on the monitor after displaying all the boot messages. You can then type in your login name and password and start working (or playing!) on the first virtual console. At some point, you will probably wish to start another session, perhaps to look at documentation for a program you are running or to read your mail while waiting for an FTP transfer to finish. Just do Alt-F2 (hold down the Alt key and press the F2 key), and you will find a login prompt waiting for you on the second ``virtual console''! When you want to go back to the original session, do Alt-F1. The default FreeBSD installation has three virtual consoles enabled, and Alt-F1, Alt-F2, and Alt-F3 will switch between these virtual consoles. To enable more of them, edit /etc/ttys and add entries for ``ttyv4'' to ``ttyvc'' after the comment on ``Virtual terminals'': # Edit the existing entry for ttyv3 in /etc/ttys and change # "off" to "on". ttyv3 "/usr/libexec/getty Pc" cons25 on secure ttyv4 "/usr/libexec/getty Pc" cons25 on secure ttyv5 "/usr/libexec/getty Pc" cons25 on secure ttyv6 "/usr/libexec/getty Pc" cons25 on secure ttyv7 "/usr/libexec/getty Pc" cons25 on secure ttyv8 "/usr/libexec/getty Pc" cons25 on secure ttyv9 "/usr/libexec/getty Pc" cons25 on secure ttyva "/usr/libexec/getty Pc" cons25 on secure ttyvb "/usr/libexec/getty Pc" cons25 on secure Use as many or as few as you want. The more virtual terminals you have, the more resources that are used; this can be important if you have 8MB RAM or less. You may also want to change the ``secure'' to ``insecure''. IMPORTANT NOTE if you want to run an X server you MUST leave at least one virtual terminal unused (or turned off) for it to use. That is to say that if you want to have a login prompt pop up for all twelve of your Alt-function keys, you're out of luck - you can only do this for eleven of them if you also want to run an X server on the same machine. The easiest way to disable a console is by turning it off. For example, if you had the full 12 terminal allocation mentioned above and you wanted to run X, you would change settings for virtual terminal 12 from: ttyvb "/usr/libexec/getty Pc" cons25 on secure to: ttyvb "/usr/libexec/getty Pc" cons25 off secure If your keyboard has only ten function keys, you would end up with: ttyv9 "/usr/libexec/getty Pc" cons25 off secure ttyva "/usr/libexec/getty Pc" cons25 off secure ttyvb "/usr/libexec/getty Pc" cons25 off secure (You could also just delete these lines.) Once you have edited /etc/ttys, the next step is to make sure that you have enough virtual terminal devices. The easiest way to do this is: # cd /dev # ./MAKEDEV vty12 # For 12 devices Next, the easiest (and cleanest) way to activate the virtual consoles is to reboot. However, if you really don't want to reboot, you can just shut down the X Window system and execute (as root): kill -HUP 1 It's imperative that you completely shut down X Window if it is running, before running this command. If you don't, your system will probably appear to hang/lock up after executing the kill command. How do I access the virtual consoles from X? If the console is currently displaying X Window, you can use Ctrl-Alt-F1, etc. to switch to a virtual console. Note, however, that once you've switched away from X Window to a virtual terminal, you may use only the Alt- function key to switch to another virtual terminal or back to X Window. You do not need to also press the Ctrl key. If you use the control key to switch back to X on some older releases, you can find your text console stuck in ``control-lock'' mode. Tap the control key to wake it up again. How do I start XDM on boot? There are two schools of thought on how to start xdm. One school starts xdm from /etc/ttys using the supplied example, while the other simply runs xdm from rc.local or from a X.sh script in /usr/local/etc/rc.d. Both are equally valid, and one may work in situations where the other doesn't. In both cases the result is the same: X will popup a graphical login: prompt. The ttys method has the advantage of documenting which vty X will start on and passing the responsibility of restarting the X server on logout to init. The rc.local method makes it easy to kill xdm if there is a problem starting the X server. If loaded from rc.local, xdm should be started without any arguments (i.e., as a daemon). xdm must start AFTER getty runs, or else getty and xdm will conflict, locking out the console. The best way around this is to have the script sleep 10 seconds or so then launch xdm. A previous version of the FAQ said to add the vt you want X to use to the /usr/X11R6/lib/X11/xdm/Xservers file. This is not necessary: X will use the first free vt it finds. When I run xconsole, I get ``Couldn't open console''. If you start X with startx, the permissions on /dev/console will not get changed, resulting in things like xterm -C and xconsole not working. This is because of the way console permissions are set by default. On a multi-user system, one doesn't necessarily want just any user to be able to write on the system console. For users who are logging directly onto a machine with a VTY, the fbtab file exists to solve such problems. In a nutshell, make sure an uncommented line of the form /dev/ttyv0 0600 /dev/console is in /etc/fbtab and it will ensure that whomever logs in on /dev/ttyv0 will own the console. My PS/2 mouse doesn't behave properly under X. Your mouse and the mouse driver may have somewhat become out of synchronization. In versions 2.2.5 and earlier, switching away from X to a virtual terminal and getting back to X again may make them re-synchronized. If the problem occurs often, you may add the following option in your kernel configuration file and recompile it. options PSM_CHECKSYNC See the section on building a kernel if you've no experience with building kernels. With this option, there should be less chance of synchronization problem between the mouse and the driver. If, however, you still see the problem, click any mouse button while holding the mouse still to re-synchronize the mouse and the driver. Note that unfortunately this option may not work with all the systems and voids the ``tap'' feature of the ALPS GlidePoint device attached to the PS/2 mouse port. In versions 2.2.6 and later, synchronization check is done in a slightly better way and is standard in the PS/2 mouse driver. It should even work with GlidePoint. (As the check code has become a standard feature, PSM_CHECKSYNC option is not available in these versions.) However, in rare case the driver may erroneously report synchronization problem and you may see the kernel message: psmintr: out of sync (xxxx != yyyy) and find your mouse doesn't seem to work properly. If this happens, disable the synchronization check code by setting the driver flags for the PS/2 mouse driver to 0x100. Enter UserConfig by giving the ``'' option at the boot prompt: boot: -c Then, in the UserConfig command line, type: UserConfig> flags psm0 0x100 UserConfig> quit My PS/2 mouse from MouseSystems doesn't seem to work. There have been some reports that certain model of PS/2 mouse from MouseSystems works only if it is put into the ``high resolution'' mode. Otherwise, the mouse cursor may jump to the upper-left corner of the screen every so often. Unfortunately there is no workaround for versions 2.0.X and 2.1.X. In versions 2.2 through 2.2.5, apply the following patch to /sys/i386/isa/psm.c and rebuild the kernel. See the section on building a kernel if you've no experience with building kernels. diff -u psm.c.orig psm.c @@ -766,6 +766,8 @@ if (verbose >= 2) log(LOG_DEBUG, "psm%d: SET_DEFAULTS return code:%04x\n", unit, i); + set_mouse_resolution(sc->kbdc, PSMD_RES_HIGH); + #if 0 set_mouse_scaling(sc->kbdc); /* 1:1 scaling */ set_mouse_mode(sc->kbdc); /* stream mode */ In versions 2.2.6 or later, specify the flags 0x04 to the PS/2 mouse driver to put the mouse into the high resolution mode. Enter UserConfig by giving the ``'' option at the boot prompt: boot: -c Then, in the UserConfig command line, type: UserConfig> flags psm0 0x04 UserConfig> quit See the previous section for another possible cause of mouse problems. When building an X app, imake can't find Imake.tmpl. Where is it? Imake.tmpl is part of the Imake package, a standard X application building tool. Imake.tmpl, as well as several header files that are required to build X apps, is contained in the X prog distribution. You can install this from sysinstall or manually from the X distribution files. How do I reverse the mouse buttons? Run the command xmodmap -e "pointer = 3 2 1" from your .xinitrc or .xsession. How do I install a splash screen and where do I find them? Just prior to the release of FreeBSD 3.1, a new feature was added to allow the display of "splash" screens during the boot messages. The splash screens currently must be a 256 color bitmap (*.BMP) or ZSoft PCX (*.PCX) file. In addition, they must have a resolution of 320x200 or less to work on standard VGA adapters. If you compile VESA support into your kernel, then you can use larger bitmaps up to 1024x768. Note that VESA support requires the VM86 kernel option to be compiled into the kernel. The actual VESA support can either be compiled directly into the kernel with the VESA kernel config option or by loading the VESA kld module during bootup. To use a splash screen, you need to modify the startup files that control the boot process for FreeBSD. The files for this changed prior to the release of FreeBSD 3.2, so there are now two ways of loading a splash screen: FreeBSD 3.1 The first step is to find a bitmap version of your splash screen. Release 3.1 only supports Windows bitmap splash screens. Once you've found your splash screen of choice copy it to /boot/splash.bmp. Next, you need to have a /boot/loader.rc file that contains the following lines: load kernel load -t splash_image_data /boot/splash.bmp load splash_bmp autoboot FreeBSD 3.2+ In addition to adding support for PCX splash screens, FreeBSD 3.2 includes a nicer way of configuring the boot process. If you wish, you can use the method listed above for FreeBSD 3.1. If you do and you want to use PCX, replace splash_bmp with splash_pcx. If, on the other hand, you want to use the newer boot configuration, you need to create a /boot/loader.rc file that contains the following lines: include /boot/loader.4th start and a /boot/loader.conf that contains the following: splash_bmp_load="YES" bitmap_load="YES" This assumes you are using /boot/splash.bmp for your splash screen. If you'd rather use a PCX file, copy it to /boot/splash.pcx, create a /boot/loader.rc as instructed above, and create a /boot/loader.conf that contains: splash_pcx_load="YES" bitmap_load="YES" bitmap_name="/boot/splash.pcx" Now all you need is a splash screen. For that you can surf on over to the gallery at http://www.cslab.vt.edu/~jobaldwi/splash/. Networking Where can I get information on ``diskless booting''? ``Diskless booting'' means that the FreeBSD box is booted over a network, and reads the necessary files from a server instead of its hard disk. For full details, please read the Handbook entry on diskless booting Can a FreeBSD box be used as a dedicated network router? Internet standards and good engineering practice prohibit us from providing packet forwarding by default in FreeBSD. You can however enable this feature by changing the following variable to YES in rc.conf: gateway_enable=YES # Set to YES if this host will be a gateway This option will put the sysctl variable net.inet.ip.forwarding to 1. In most cases, you will also need to run a routing process to tell other systems on your network about your router; FreeBSD comes with the standard BSD routing daemon routed, or for more complex situations you may want to try GaTeD (available from http://www.gated.org/ ) which supports FreeBSD as of 3_5Alpha7. It is our duty to warn you that, even when FreeBSD is configured in this way, it does not completely comply with the Internet standard requirements for routers; however, it comes close enough for ordinary usage. Can I connect my Win95 box to the Internet via FreeBSD? Typically, people who ask this question have two PC's at home, one with FreeBSD and one with Win95; the idea is to use the FreeBSD box to connect to the Internet and then be able to access the Internet from the Windows95 box through the FreeBSD box. This is really just a special case of the previous question. There's a useful document available which explains how to set FreeBSD up as a PPP Dialup Router NOTE: This requires having at least two fixed IP addresses available, and possibly three or more, depending on how much work you want to go through to set up the Windows box. As an alternative, if you don't have a fixed IP, you can use one of the private IP subnets and install proxies such as SQUID and the TIS firewall toolkit on your FreeBSD box. See also the section on natd. Why does recompiling the latest BIND from ISC fail? There is a conflict between the ``cdefs.h'' file in the distribution and the one shipped with FreeBSD. Just remove compat/include/sys/cdefs.h. Does FreeBSD support SLIP and PPP? Yes. See the man pages for slattach, sliplogin, pppd and ppp. pppd and ppp provide support for both incoming and outgoing connections. Sliplogin deals exclusively with incoming connections and slattach deals exclusively with outgoing connections. These programs are described in the following sections of the handbook: Handbook entry on SLIP (server side) Handbook entry on SLIP (client side) Handbook entry on PPP (kernel version) Handbook entry on PPP (user-mode version) If you only have access to the Internet through a "shell account", you may want to have a look at the slirp package. It can provide you with (limited) access to services such as ftp and http direct from your local machine. Does FreeBSD support NAT or Masquerading If you have a local subnet (one or more local machines), but have been allocated only a single IP number from your Internet provider (or even if you receive a dynamic IP number), you may want to look at the natd program. Natd allows you to connect an entire subnet to the internet using only a single IP number. The ppp program has similar functionality built in via the switch. The alias library is used in both cases. I can't create a /dev/ed0 device! In the Berkeley networking framework, network interfaces are only directly accessible by kernel code. Please see the /etc/rc.network file and the manual pages for the various network programs mentioned there for more information. If this leaves you totally confused, then you should pick up a book describing network administration on another BSD-related operating system; with few significant exceptions, administering networking on FreeBSD is basically the same as on SunOS 4.0 or Ultrix. How can I setup Ethernet aliases? Add ``netmask 0xffffffff'' to your ifconfig command-line like the following: ifconfig ed0 alias 204.141.95.2 netmask 0xffffffff How do I get my 3C503 to use the other network port? If you want to use the other ports, you'll have to specify an additional parameter on the ifconfig command line. The default port is ``link0''. To use the AUI port instead of the BNC one, use ``link2''. These flags should be specified using the ifconfig_* variables in /etc/rc.conf. I'm having problems with NFS to/from FreeBSD. Certain PC network cards are better than others (to put it mildly) and can sometimes cause problems with network intensive applications like NFS. See the Handbook entry on NFS for more information on this topic. Why can't I NFS-mount from a Linux box? Some versions of the Linux NFS code only accept mount requests from a privileged port; try mount -o -P linuxbox:/blah /mnt Why can't I NFS-mount from a Sun box? Sun workstations running SunOS 4.X only accept mount requests from a privileged port; try mount -o -P sunbox:/blah /mnt I'm having problems talking PPP to NeXTStep machines. Try disabling the TCP extensions in /etc/rc.conf by changing the following variable to NO: tcp_extensions=NO Xylogic's Annex boxes are also broken in this regard and you must use the above change to connect thru them. How do I enable IP multicast support? Multicast host operations are fully supported in FreeBSD 2.0 and later by default. If you want your box to run as a multicast router, you will need to recompile your kernel with the MROUTING option and run mrouted. FreeBSD 2.2 and later will start mrouted at boot time if the flag mrouted_enable is set to "YES" in /etc/rc.conf. MBONE tools are available in their own ports category, mbone. If you are looking for the conference tools vic and vat, look there! For more information, see the Mbone Information Web. Which network cards are based on the DEC PCI chipset? Here is a list compiled by Glen Foster, with some more modern additions: Vendor Model ---------------------------------------------- ASUS PCI-L101-TB Accton ENI1203 Cogent EM960PCI Compex ENET32-PCI D-Link DE-530 Dayna DP1203, DP2100 DEC DE435, DE450 Danpex EN-9400P3 JCIS Condor JC1260 Linksys EtherPCI Mylex LNP101 SMC EtherPower 10/100 (Model 9332) SMC EtherPower (Model 8432) TopWare TE-3500P Znyx (2.2.x) ZX312, ZX314, ZX342, ZX345, ZX346, ZX348 (3.x) ZX345Q, ZX346Q, ZX348Q, ZX412Q, ZX414, ZX442, ZX444, ZX474, ZX478, ZX212, ZX214 (10mbps/hd) Why do I have to use the FQDN for hosts on my site? You will probably find that the host is actually in a different domain; for example, if you are in foo.bar.edu and you wish to reach a host called ``mumble'' in the bar.edu domain, you will have to refer to it by the fully-qualified domain name, ``mumble.bar.edu'', instead of just ``mumble''. Traditionally, this was allowed by BSD BIND resolvers. However the current version of bind that ships with FreeBSD no longer provides default abbreviations for non-fully qualified domain names other than the domain you are in. So an unqualified host mumble must either be found as mumble.foo.bar.edu, or it will be searched for in the root domain. This is different from the previous behavior, where the search continued across mumble.bar.edu, and mumble.edu. Have a look at RFC 1535 for why this was considered bad practice, or even a security hole. As a good workaround, you can place the line search foo.bar.edu bar.edu instead of the previous domain foo.bar.edu into your /etc/resolv.conf file. However, make sure that the search order does not go beyond the ``boundary between local and public administration'', as RFC 1535 calls it. ``Permission denied'' for all networking operations. If you have compiled your kernel with the IPFIREWALL option, you need to be aware that the default policy as of 2.1.7R (this actually changed during 2.1-STABLE development) is to deny all packets that are not explicitly allowed. If you had unintentionally misconfigured your system for firewalling, you can restore network operability by typing the following while logged in as root: ipfw add 65534 allow all from any to any You can also set "firewall_type='open'" in /etc/rc.conf. For further information on configuring a FreeBSD firewall, see the Handbook section. How much overhead does IPFW incur? The answer to this depends mostly on your rule set and processor speed. For most applications dealing with ethernet and small rule sets, the answer is, negligible. For those of you that need actual measurements to satisfy your curiosity, read on. The following measurements were made using 2.2.5-STABLE on a 486-66. IPFW was modified to measure the time spent within the ip_fw_chk routine, displaying the results to the console every 1000 packets. Two rule sets, each with 1000 rules were tested. The first set was designed to demonstrate a worst case scenario by repeating the rule: ipfw add deny tcp from any to any 55555 This demonstrates worst case by causing most of IPFW's packet check routine to be executed before finally deciding that the packet does not match the rule (by virtue of the port number). Following the 999th iteration of this rule was an allow ip from any to any. The second set of rules were designed to abort the rule check quickly: ipfw add deny ip from 1.2.3.4 to 1.2.3.4 The nonmatching source IP address for the above rule causes these rules to be skipped very quickly. As before, the 1000th rule was an allow ip from any to any. The per-packet processing overhead in the former case was approximately 2.703ms/packet, or roughly 2.7 microseconds per rule. Thus the theoretical packet processing limit with these rules is around 370 packets per second. Assuming 10Mbps ethernet and a ~1500 byte packet size, we would only be able to achieve a 55.5% bandwidth utilization. For the latter case each packet was processed in approximately 1.172ms, or roughly 1.2 microseconds per rule. The theoretical packet processing limit here would be about 853 packets per second, which could consume 10Mbps ethernet bandwidth. The excessive number of rules tested and the nature of those rules do not provide a real-world scenario -- they were used only to generate the timing information presented here. Here are a few things to keep in mind when building an efficient rule set: Place an `established' rule early on to handle the majority of TCP traffic. Don't put any allow tcp statements before this rule. Place heavily triggered rules earlier in the rule set than those rarely used (without changing the permissiveness of the firewall, of course). You can see which rules are used most often by examining the packet counting statistics with ipfw -a l. How can I redirect service requests from one machine to another? You can redirect FTP (and other service) request with the 'socket' package, available in the ports tree in category 'sysutils'. Simply replace the service's commandline to call socket instead, like so: ftp stream tcp nowait nobody /usr/local/bin/socket socket ftp.foo.com ftp where 'ftp.foo.com' and 'ftp' are the host and port to redirect to, respectively. Where can I get a bandwidth management tool? There are two bandwidth management tools available for FreeBSD. ALTQ is available for free; Bandwidth Manager from Emerging Technologies is a commercial product. Why do I get ``/dev/bpf0: device not configured"? The Berkeley Packet Filter (bpf) driver needs to be enabled before running programs that utilize it. Add this to your kernel config file and build a new kernel: pseudo-device bpfilter # Berkeley Packet Filter Secondly, after rebooting you will have to create the device node. This can be accomplished by a change to the /dev directory, followed by the execution of: # sh MAKEDEV bpf0 Please see the handbook's entry on device nodes for more information on creating devices. PPP I can't make ppp work. What am I doing wrong ? You should first read the ppp man page and the ppp section of the handbook. Enable logging with the command set log Phase Chat Connect Carrier lcp ipcp ccp command This command may be typed at the ppp command prompt or it may be entered in the /etc/ppp/ppp.conf configuration file (the start of the default section is the best place to put it). Make sure that /etc/syslog.conf contains the lines !ppp *.* /var/log/ppp.log and that the file /var/log/ppp.log exists. You can now find out a lot about what's going on from the log file. Don't worry if it doesn't all make sense. If you need to get help from someone, it may make sense to them. If your version of ppp doesn't understand the "set log" command, you should download the latest version. It will build on FreeBSD version 2.1.5 and higher. Ppp just hangs when I run it This is usually because your hostname won't resolve. The best way to fix this is to make sure that /etc/hosts is consoluted by your resolver first by editing /etc/host.conf and putting the hosts line first. Then, simply put an entry in /etc/hosts for your local machine. If you have no local network, change your localhost line: 127.0.0.1 foo.bar.com foo localhost Otherwise, simply add another entry for your host. Consult the relevant man pages for more details. You should be able to successfully ping -c1 `hostname` when you're done. Ppp won't dial in -auto mode First, check that you've got a default route. By running http://www.FreeBSD.org/cgi/man.cgi?netstat name="netstat -rn">, you should see two entries like this: Destination Gateway Flags Refs Use Netif Expire default 10.0.0.2 UGSc 0 0 tun0 10.0.0.2 10.0.0.1 UH 0 0 tun0 This is assuming that you've used the addresses from the handbook, the man page or from the ppp.conf.sample file. If you haven't got a default route, it may be because you're running an old version of ppp that doesn't understand the word HISADDR in the ppp.conf file. If your version of ppp is from before FreeBSD 2.2.5, change the add 0 0 HISADDR line to one saying add 0 0 10.0.0.2 Another reason for the default route line being missing is that you have mistakenly set up a default router in your /etc/rc.conf file (this file was called /etc/sysconfig prior to release 2.2.2), and you have omitted the line saying delete ALL from ppp.conf. If this is the case, go back to the Final system configuration section of the handbook. What does "No route to host" mean This error is usually due to a missing MYADDR: delete ALL add 0 0 HISADDR section in your /etc/ppp/ppp.linkup file. This is only necessary if you have a dynamic IP address or don't know the address of your gateway. If you're using interactive mode, you can type the following after entering packet mode (packet mode is indicated by the capitalized PPP in the prompt): delete ALL add 0 0 HISADDR Refer to the PPP and Dynamic IP addresses section of the handbook for further details. My connection drops after about 3 minutes The default ppp timeout is 3 minutes. This can be adjusted with the line set timeout NNN where NNN is the number of seconds of inactivity before the connection is closed. If NNN is zero, the connection is never closed due to a timeout. It is possible to put this command in the ppp.conf file, or to type it at the prompt in interactive mode. It is also possible to adjust it on the fly while the line is active by connecting to ppps server socket using telnet or pppctl. Refer to the ppp man page for further details. My connection drops under heavy load If you have Link Quality Reporting (LQR) configured, it is possible that too many LQR packets are lost between your machine and the peer. Ppp deduces that the line must therefore be bad, and disconnects. Prior to FreeBSD version 2.2.5, LQR was enabled by default. It is now disabled by default. LQR can be disabled with the line disable lqr My connection drops after a random amount of time Sometimes, on a noisy phone line or even on a line with call waiting enabled, your modem may hang up because it thinks (incorrectly) that it lost carrier. There's a setting on most modems for determining how tolerant it should be to temporary losses of carrier. On a USR Sportster for example, this is measured by the S10 register in tenths of a second. To make your modem more forgiving, you could add the following send-expect sequence to your dial string: set dial "...... ATS10=10 OK ......" Refer to your modem manual for details. My connection hangs after a random amount of time Many people experience hung connections with no apparent explaination. The first thing to establish is which side of the link is hung. If you are using an external modem, you can simply try using ping to see if the TD light is flashing when you transmit data. If it flashes (and the RD light doesn't), the problem is with the remote end. If TD doesn't flash, the problem is local. With an internal modem, you'll need to use the set server command in your ppp.conf file. When the hang occurs, connect to ppp using pppctl. If your network connection suddenly revives (ppp was revived due to the activity on the diagnostic socket) or if you can't connect (assuming the set socket command succeeded at startup time), the problem is local. If you can connect and things are still hung, enable local async logging with set log local async and use ping from another window or terminal to make use of the link. The async logging will show you the data being transmitted and received on the link. If data is going out and not coming back, the problem is remote. Having established whether the problem is local or remote, you now have two possibilities: The remote end isn't responding There's very little you can do about this. Most ISPs will refuse to help if you're not running a Microsoft OS. You can enable lqr in your ppp.conf file, allowing ppp to detect the remote failure and hang up, but this detection is relatively slow and therefore not that useful. You may want to avoid telling your ISP that you're running user-ppp.... First, try disabling all local compression by adding the following to your configuration: disable pred1 deflate deflate24 protocomp acfcomp shortseq vj deny pred1 deflate deflate24 protocomp acfcomp shortseq vj Then reconnect to ensure that this makes no difference. If things improve or if the problem is solved completely, determine which setting makes the difference through trial and error. This will provide good amunition when you contact your ISP (although it may make it apparent that you're not running a Microsoft product). Before contacting your ISP, enable async logging locally and wait until the connection hangs again. This may use up quite a bit of disk space. The last data read from the port may be of interest. It is usually ascii data, and may even describe the problem (``Memory fault, core dumped'' ?). If your ISP is helpful, they should be able to enable logging on their end, then when the next link drop occurs, they may be able to tell you why their side is having a problem. Feel free to send the details to brian@Awfulhak.org, or even to ask your ISP to contact me directly. Ppp is hung Your best bet here is to rebuild ppp by adding CFLAGS+=-g and STRIP= to the end of the Makefile, then doing a make clean && make && make install. When ppp hangs, find the ppp process id with ps ajxww | fgrep ppp and run gdb ppp PID. From the gdb prompt, you can then use bt to get a stack trace. Send the results to brian@Awfulhak.org. Nothing happens after the Login OK! message Prior to FreeBSD version 2.2.5, once the link was established, ppp would wait for the peer to initiate the Line Control Protocol (LCP). Many ISPs will not initiate negotiations and expect the client to do so. To force ppp to initiate the LCP, use the following line: set openmode active Note: It usually does no harm if both sides initiate negotiation, so openmode is now active by default. However, the next section explains when it does do some harm. I keep seeing errors about magic being the same Occasionally, just after connecting, you may see messages in the log that say "magic is the same". Sometimes, these messages are harmless, and sometimes one side or the other exits. Most ppp implementations cannot survive this problem, and even if the link seems to come up, you'll see repeated configure requests and configure acknowledgements in the log file until ppp eventually gives up and closes the connection. This normally happens on server machines with slow disks that are spawning a getty on the port, and executing ppp from a login script or program after login. I've also heard reports of it happening consistently when using slirp. The reason is that in the time taken between getty exiting and ppp starting, the client-side ppp starts sending Line Control Protocol (LCP) packets. Because ECHO is still switched on for the port on the server, the client ppp sees these packets "reflect" back. One part of the LCP negotiation is to establish a magic number for each side of the link so that "reflections" can be detected. The protocol says that when the peer tries to negotiate the same magic number, a NAK should be sent and a new magic number should be chosen. During the period that the server port has ECHO turned on, the client ppp sends LCP packets, sees the same magic in the reflected packet and NAKs it. It also sees the NAK reflect (which also means ppp must change its magic). This produces a potentially enormous number of magic number changes, all of which are happily piling into the server's tty buffer. As soon as ppp starts on the server, it's flooded with magic number changes and almost immediately decides it's tried enough to negotiate LCP and gives up. Meanwhile, the client, who no longer sees the reflections, becomes happy just in time to see a hangup from the server. This can be avoided by allowing the peer to start negotiating with the following line in your ppp.conf file: set openmode passive This tells ppp to wait for the server to initiate LCP negotiations. Some servers however may never initiate negotiations. If this is the case, you can do something like: set openmode active 3 This tells ppp to be passive for 3 seconds, and then to start sending LCP requests. If the peer starts sending requests during this period, ppp will immediately respond rather than waiting for the full 3 second period. LCP negotiations continue 'till the connection is closed There is currently an implementation mis-feature in ppp where it doesn't associate LCP, CCP & IPCP responses with their original requests. As a result, if one ppp implementation is more than 6 seconds slower than the other side, the other side will send two additional LCP configuration requests. This is fatal. Consider two implementations, A and B. A starts sending LCP requests immediately after connecting and B takes 7 seconds to start. When B starts, A has sent 3 LCP REQs. We're assuming the line has ECHO switched off, otherwise we'd see magic number problems as described in the previous section. B sends a REQ, then an ACK to the first of A's REQs. This results in A entering the OPENED state and sending and ACK (the first) back to B. In the meantime, B sends back two more ACKs in response to the two additional REQs sent by A before B started up. B then receives the first ACK from A and enters the OPENED state. A receives the second ACK from B and goes back to the REQ-SENT state, sending another (forth) REQ as per the RFC. It then receives the third ACK and enters the OPENED state. In the meantime, B receives the forth REQ from A, resulting in it reverting to the ACK-SENT state and sending another (second) REQ and (forth) ACK as per the RFC. A gets the REQ, goes into REQ-SENT and sends another REQ. It immediately receives the following ACK and enters OPENED. This goes on 'till one side figures out that they're getting nowhere and gives up. The best way to avoid this is to configure one side to be passive - that is, make one side wait for the other to start negotiating. This can be done with the set openmode passive command. Care should be taken with this option. You should also use the set stopped N command to limit the amount of time that ppp waits for the peer to begin negotiations. Alternatively, the set openmode active N command (where N is the number of seconds to wait before starting negotiations) can be used. Check the manual page for details. Ppp locks up shortly after connecting Prior to version 2.2.5 of FreeBSD, it was possible that your link was disabled shortly after connection due to ppp mis-handling Predictor1 compression negotiation. This would only happen if both sides tried to negotiate different Compression Control Protocols (CCP). This problem is now corrected, but if you're still running an old version of ppp, the problem can be circumvented with the line disable pred1 Ppp locks up when I shell out to test it When you execute the shell or ! command, ppp executes a shell (or if you've passed any arguements, ppp will execute those arguements). Ppp will wait for the command to complete before continuing. If you attempt to use the ppp link while running the command, the link will appear to have frozen. This is because ppp is waiting for the command to complete. If you wish to execute commands like this, use the !bg command instead. This will execute the given command in the background, and ppp can continue to service the link. Ppp over a null-modem cable never exits There is no way for ppp to automatically determine that a direct connection has been dropped. This is due to the lines that are used in a null-modem serial cable. When using this sort of connection, LQR should always be enabled with the line enable lqr LQR is accepted by default if negotiated by the peer. Why does ppp dial for no reason in -auto mode If ppp is dialing unexpectedly, you must determine the cause, and set up Dial filters (dfilters) to prevent such dialing. To determine the cause, use the following line: set log +tcp/ip This will log all traffic through the connection. The next time the line comes up unexpectedly, you will see the reason logged with a convenient timestamp next to it. You can now disable dialing under these circumstances. Usually, this sort of problem arises due to DNS lookups. To prevent DNS lookups from establishing a connection (this will not prevent ppp from passing the packets through an established connection), use the following: set dfilter 1 deny udp src eq 53 set dfilter 2 deny udp dst eq 53 set dfilter 3 permit 0/0 0/0 This is not always suitable, as it will effectively break your demand-dial capabilities - most programs will need a DNS lookup before doing any other network related things. In the DNS case, you should try to determine what is actually trying to resolve a host name. A lot of the time, sendmail is the culprit. You should make sure that you tell sendmail not to do any DNS lookups in its configuration file. See the section on Mail Configuration for details on how to create your own configuration file and what should go into it. You may also want to add the following line to your .mc file: define(`confDELIVERY_MODE', `d')dnl This will make sendmail queue everything until the queue is run (usually, sendmail is invoked with ``-bd -q30m'', telling it to run the queue every 30 minutes) or until a ``sendmail -q'' is done (perhaps from your ppp.linkup file). What do these CCP errors mean I keep seeing the following errors in my log file: CCP: CcpSendConfigReq CCP: Received Terminate Ack (1) state = Req-Sent (6) This is because ppp is trying to negotiate Predictor1 compression, and the peer does not want to negotiate any compression at all. The messages are harmless, but if you wish to remove them, you can disable Predictor1 compression locally too: disable pred1 Ppp locks up during file transfers with IO errors Under FreeBSD 2.2.2 and before, there was a bug in the tun driver that prevents incoming packets of a size larger than the tun interface's MTU size. Receipt of a packet greater than the MTU size results in an IO error being logged via syslogd. The ppp specification says that an MRU of 1500 should always be accepted as a minimum, despite any LCP negotiations, therefore it is possible that should you decrease the MTU to less than 1500, your ISP will transmit packets of 1500 regardless, and you will tickle this non-feature - locking up your link. The problem can be circumvented by never setting an MTU of less than 1500 under FreeBSD 2.2.2 or before. Why doesn't ppp log my connection speed? In order to log all lines of your modem ``conversation'', you must enable the following: set log +connect This will make ppp log everything up until the last requested "expect" string. If you wish to see your connect speed and are using PAP or CHAP (and therefore don't have anything to "chat" after the CONNECT in the dial script - no "set login" script), you must make sure that you instruct ppp to "expect" the whole CONNECT line, something like this: set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 4 \"\" ATZ OK-ATZ-OK ATDT\\T TIMEOUT 60 CONNECT \\c \\n" Here, we get our CONNECT, send nothing, then expect a line-feed, forcing ppp to read the whole CONNECT response. Ppp ignores the `\' character in my chat script Ppp parses each line in your config files so that it can interpret strings such as set phone "123 456 789" correctly (and realize that the number is actually only one argument. In order to specify a ``"'' character, you must escape it using a backslash (``\''). When the chat interpreter parses each argument, it re-interprets the argument in order to find any special escape sequences such as ``\P'' or ``\T'' (see the man page). As a result of this double-parsing, you must remember to use the correct number of escapes. If you wish to actually send a ``\'' character to (say) your modem, you'd need something like: set dial "\"\" ATZ OK-ATZ-OK AT\\\\X OK" resulting in the following sequence: ATZ OK AT\X OK or set phone 1234567 set dial "\"\" ATZ OK ATDT\\T" resulting in the following sequence: ATZ OK ATDT1234567 Ppp gets a seg-fault, but I see no ppp.core file Ppp (or any other program for that matter) should never dump core. Because ppp runs with an effective user id of 0, the operating system will not write ppps core image to disk before terminating it. If, however ppp is actually termating due to a segmentation violation or some other signal that normally causes core to be dumped, and you're sure you're using the latest version (see the start of this section), then you should do the following: $ tar xfz ppp-*.src.tar.gz $ cd ppp*/ppp $ echo STRIP= >>Makefile $ echo CFLAGS+=-g >>Makefile $ make clean all $ su # make install # chmod 555 /usr/sbin/ppp You will now have a debuggable version of ppp installed. You will have to be root to run ppp as all of its privileges have been revoked. When you start ppp, take a careful note of what your current directory was at the time. Now, if and when ppp receives the segmentation violation, it will dump a core file called ppp.core. You should then do the following: $ su # gdb /usr/sbin/ppp ppp.core (gdb) bt ..... (gdb) f 0 ..... (gdb) i args ..... (gdb) l ..... All of this information should be given alongside your question, making it possible to diagnose the problem. If you're familiar with gdb, you may wish to find out some other bits and pieces such as what actually caused the dump and the addresses & values of the relevant variables. The process that forces a dial in auto mode never connects This was a known problem with ppp set up to negotiate a dynamic local IP number with the peer in auto mode. It is fixed in the latest version - search the man page for iface. The problem was that when that initial program calls connect(2), the IP number of the tun interface is assigned to the socket endpoint. The kernel creates the first outgoing packet and writes it to the tun device. Ppp then reads the packet and establishes a connection. If, as a result of ppps dynamic IP assignment, the interface address is changed, the original socket endpoint will be invalid. Any subsequent packets sent to the peer will usually be dropped. Even if they aren't, any responses will not route back to the originating machine as the IP number is no longer owned by that machine. There are several theoretical ways to approach this problem. It would be nicest if the peer would re-assign the same IP number if possible :-) The current version of ppp does this, but most other implementations don't. The easiest method from our side would be to never change the tun interface IP number, but instead to change all outgoing packets so that the source IP number is changed from the interface IP to the negotiated IP on the fly. This is essentially what the iface-alias option in the latest version of ppp is doing (with the help of libalias(3) and ppp's switch) - it's maintaining all previous interface addresses and aliasing them to the last negotiated address. Another alternative (and probably the most reliable) would be to implement a system call that changes all bound sockets from one IP to another. Ppp would use this call to modify the sockets of all existing programs when a new IP number is negotiated. The same system call could be used by dhcp clients when they are forced to re-bind() their sockets. Yet another possibility is to allow an interface to be brought up without an IP number. Outgoing packets would be given an IP number of 255.255.255.255 up until the first SIOCAIFADDR ioctl is done. This would result in fully binding the socket. It would be up to ppp to change the source IP number, but only if it's set to 255.255.255.255, and only the IP number and IP checksum would need to change. This, however is a bit of a hack as the kernel would be sending bad packets to an improperly configured interface, on the assumption that some other mechanism is capable of fixing things retrospectively. Why don't most games work with the -alias switch The reason games and the like don't work when libalias is in use is that the machine on the outside will try to open a connection or send (unsolicited) UDP packets to the machine on the inside. The packet alias software doesn't know that it should send these packets to the interior machine. To make things work, make sure that the only thing running is the software that you're having problems with, then either run tcpdump on the tun interface of the gateway or enable ppp tcp/ip logging (``set log +tcp/ip'') on the gateway. When you start the offending software, you should see packets passing through the gateway machine. When something comes back from the outside, it'll be dropped (that's the problem). Note the port number of these packets then shut down the offending software. Do this a few times to see if the port numbers are consistent. If they are, then the following line in the relevant section of /etc/ppp/ppp.conf will make the software functional: alias port proto internalmachine:port port where ``proto'' is either ``tcp'' or ``udp'', ``internalmachine'' is the machine that you want the packets to be sent to and ``port'' is the destination port number of the packets. You won't be able to use the software on other machines without changing the above command, and running the software on two internal machines at the same time is out of the question - after all, the outside world is seeing your entire internal network as being just a single machine. If the port numbers aren't consistent, there are three more options: 1) Submit support in libalias. Examples of ``special cases'' can be found in /usr/src/lib/libalias/alias_*.c (alias_ftp.c is a good prototype). This usually involves reading certain recognised outgoing packets, identifying the instruction that tells the outside machine to initiate a connection back to the internal machine on a specific (random) port and setting up a ``route'' in the alias table so that the subsequent packets know where to go. This is the most difficult solution, but it is the best and will make the software work with multiple machines. 2) Use a proxy. The application may support socks5 for example, or (as in the ``cvsup'' case) may have a ``passive'' option that avoids ever requesting that the peer open connections back to the local machine. 3) Redirect everything to the internal machine using ``alias addr''. This is the sledge-hammer approach. Has anybody made a list of useful port numbers ? Not yet, but this is intended to grow into such a list (if any interest is shown). In each example, internal should be replaced with the IP number of the machine playing the game. Quake alias port udp internal:6112 6112 Alternatively, you may want to take a look at www.battle.net for Quake proxy support. Quake 2 alias port udp internal:27901 27910 Red Alert alias port udp internal:8675 8675 alias port udp internal:5009 5009 Half Life alias port udp internal:27005 27015 PCAnywhere 8.0 alias port udp internal:5632 5632 alias port tcp internal:5631 5631 What are FCS errors ? FCS stands for Frame Check Sequence. Each ppp packet has a checksum attached to ensure that the data being received is the data being sent. If the FCS of an incoming packet is incorrect, the packet is dropped and the HDLC FCS count is increased. The HDLC error values can be displayed using the show hdlc command. If your link is bad (or if your serial driver is dropping packets), you will see the occasional FCS error. This is not usually worth worrying about although it does slow down the compression protocols substantially. If you have an external modem, make sure your cable is properly shielded from interference - this may eradicate the problem. If your link freezes as soon as you've connected and you see a large number of FCS errors, this may be because your link is not 8 bit clean. Make sure your modem is not using software flow control (XON/XOFF). If your datalink must use software flow control, use the command set accmap 0x000a0000 to tell ppp to escape the ^Q and ^S characters. Another reason for seeing too many FCS errors may be that the remote end has stopped talking PPP. You may want to enable async logging at this point to determine if the incoming data is actually a login or shell prompt. If you have a shell prompt at the remote end, it's possible to terminate ppp without dropping the line by using the close lcp command (a following term command will reconnect you to the shell on the remote machine. If nothing in your log file indicates why the link might have been terminated, you should ask the remote administrator (your ISP?) why the session was terminated. None of this helps - I'm desperate ! If all else fails, send as much information as you can, including your config files, how you're starting ppp, the relevant parts of your log file and the output of the netstat -rn command (before and after connecting) to the freebsd-questions@FreeBSD.org mailing list or the comp.unix.bsd.freebsd.misc news group, and someone should point you in the right direction. Serial Communications This section answers common questions about serial communications with FreeBSD. PPP and SLIP are covered in the section. How do I tell if FreeBSD found my serial ports? As the FreeBSD kernel boots, it will probe for the serial ports in your system for which the kernel was configured. You can either watch your system closely for the messages it prints or run the command dmesg | grep sio after your system's up and running. Here's some example output from the above command: sio0 at 0x3f8-0x3ff irq 4 on isa sio0: type 16550A sio1 at 0x2f8-0x2ff irq 3 on isa sio1: type 16550A This shows two serial ports. The first is on irq 4, is using port address 0x3f8, and has a 16550A-type UART chip. The second uses the same kind of chip but is on irq 3 and is at port address 0x2f8. Internal modem cards are treated just like serial ports---except that they always have a modem ``attached'' to the port. The GENERIC kernel includes support for two serial ports using the same irq and port address settings in the above example. If these settings aren't right for your system, or if you've added modem cards or have more serial ports than your kernel is configured for, just reconfigure your kernel. See section about building a kernel for more details. How do I tell if FreeBSD found my modem cards? Refer to the answer to the previous question. I just upgraded to 2.0.5 and my tty0X are missing! Don't worry, they have been merged with the ttydX devices. You'll have to change any old configuration files you have, though. How do I access the serial ports on FreeBSD? The third serial port, sio2 (known as COM3 in DOS), is on /dev/cuaa2 for dial-out devices, and on /dev/ttyd2 for dial-in devices. What's the difference between these two classes of devices? You use ttydX for dial-ins. When opening /dev/ttydX in blocking mode, a process will wait for the corresponding cuaaX device to become inactive, and then wait for the carrier detect line to go active. When you open the cuaaX device, it makes sure the serial port isn't already in use by the ttydX device. If the port's available, it ``steals'' it from the ttydX device. Also, the cuaXX device doesn't care about carrier detect. With this scheme and an auto-answer modem, you can have remote users log in and you can still dialout with the same modem and the system will take care of all the conflicts. How do I enable support for a multiport serial card? Again, the section on kernel configuration provides information about configuring your kernel. For a multiport serial card, place an sio line for each serial port on the card in the kernel configuration file. But place the irq and vector specifiers on only one of the entries. All of the ports on the card should share one irq. For consistency, use the last serial port to specify the irq. Also, specify the COM_MULTIPORT option. The following example is for an AST 4-port serial card on irq 7: options "COM_MULTIPORT" device sio4 at isa? port 0x2a0 tty flags 0x781 device sio5 at isa? port 0x2a8 tty flags 0x781 device sio6 at isa? port 0x2b0 tty flags 0x781 device sio7 at isa? port 0x2b8 tty flags 0x781 irq 7 vector siointr The flags indicate that the master port has minor number 7 (0x700), diagnostics enabled during probe (0x080), and all the ports share an irq (0x001). Can FreeBSD handle multiport serial cards sharing irqs? Not yet. You'll have to use a different irq for each card. Can I set the default serial parameters for a port? The ttydX (or cuaaX) device is the regular device you'll want to open for your applications. When a process opens the device, it'll have a default set of terminal I/O settings. You can see these settings with the command stty -a -f /dev/ttyd1 When you change the settings to this device, the settings are in effect until the device is closed. When it's reopened, it goes back to the default set. To make changes to the default set, you can open and adjust the settings of the ``initial state'' device. For example, to turn on CLOCAL mode, 8 bits, and XON/XOFF flow control by default for ttyd5, do: stty -f /dev/ttyid5 clocal cs8 ixon ixoff A good place to do this is in /etc/rc.serial. Now, an application will have these settings by default when it opens ttyd5. It can still change these settings to its liking, though. You can also prevent certain settings from being changed by an application by making adjustments to the ``lock state'' device. For example, to lock the speed of ttyd5 to 57600 bps, do stty -f /dev/ttyld5 57600 Now, an application that opens ttyd5 and tries to change the speed of the port will be stuck with 57600 bps. Naturally, you should make the initial state and lock state devices writable only by root. The MAKEDEV script does NOT do this when it creates the device entries. How can I enable dialup logins on my modem? So you want to become an Internet service provider, eh? First, you'll need one or more modems that can auto-answer. Your modem will need to assert carrier-detect when it detects a carrier and not assert it all the time. It will need to hang up the phone and reset itself when the data terminal ready (DTR) line goes from on to off. It should probably use RTS/CTS flow control or no local flow control at all. Finally, it must use a constant speed between the computer and itself, but (to be nice to your callers) it should negotiate a speed between itself and the remote modem. For many Hayes command-set--compatible modems, this command will make these settings and store them in nonvolatile memory: AT &C1 &D3 &K3 &Q6 S0=1 &W See the section on sending AT commands below for information on how to make these settings without resorting to an MS-DOS terminal program. Next, make an entry in /etc/ttys for the modem. This file lists all the ports on which the operating system will await logins. Add a line that looks something like this: ttyd1 "/usr/libexec/getty std.57600" dialup on insecure This line indicates that the second serial port (/dev/ttyd1) has a modem connected running at 57600 bps and no parity (std.57600, which comes from the file /etc/gettytab). The terminal type for this port is ``dialup.'' The port is ``on'' and is ``insecure''---meaning root logins on the port aren't allowed. For dialin ports like this one, use the ttydX entry. It's common practice to use ``dialup'' as the terminal type. Many users set up in their .profile or .login files a prompt for the actual terminal type if the starting type is dialup. The example shows the port as insecure. To become root on this port, you have to login as a regular user, then ``su'' to root. If you use ``secure'' then root can login in directly. After making modifications to /etc/ttys, you need to send a hangup or HUP signal to the init process: kill -HUP 1 This forces the init process to reread /etc/ttys. The init process will then start getty processes on all ``on'' ports. You can find out if logins are available for your port by typing ps -ax | grep '[t]tyd1' You should see something like: 747 ?? I 0:00.04 /usr/libexec/getty std.57600 ttyd1 How can I connect a dumb terminal to my FreeBSD box? If you're using another computer as a terminal into your FreeBSD system, get a null modem cable to go between the two serial ports. If you're using an actual terminal, see its accompanying instructions. Then, modify /etc/ttys, like above. For example, if you're hooking up a WYSE-50 terminal to the fifth serial port, use an entry like this: ttyd4 "/usr/libexec/getty std.38400" wyse50 on secure This example shows that the port on /dev/ttyd4 has a wyse50 terminal connected at 38400 bps with no parity (std.38400 from /etc/gettytab) and root logins are allowed (secure). Why can't I run tip or cu? On your system, the programs tip and cu are probably executable only by uucp and group dialer. You can use the group dialer to control who has access to your modem or remote systems. Just add yourself to group dialer. Alternatively, you can let everyone on your system run tip and cu by typing: # chmod 4511 /usr/bin/cu # chmod 4511 /usr/bin/tip My stock Hayes modem isn't supported---what can I do? Actually, the man page for tip is out of date. There is a generic Hayes dialer already built in. Just use ``at=hayes'' in your /etc/remote file. The Hayes driver isn't smart enough to recognize some of the advanced features of newer modems---messages like BUSY, NO DIALTONE, or CONNECT 115200 will just confuse it. You should turn those messages off when you use tip (using ATX0&W). Also, the dial timeout for tip is 60 seconds. Your modem should use something less, or else tip will think there's a communication problem. Try ATS7=45&W. Actually, as shipped tip doesn't yet support it fully. The solution is to edit the file tipconf.h in the directory /usr/src/usr.bin/tip/tip. Obviously you need the source distribution to do this. Edit the line ``#define HAYES 0'' to ``#define HAYES 1''. Then ``make'' and ``make install''. Everything works nicely after that. How am I expected to enter these AT commands? Make what's called a ``direct'' entry in your /etc/remote file. For example, if your modem's hooked up to the first serial port, /dev/cuaa0, then put in the following line: cuaa0:dv=/dev/cuaa0:br#19200:pa=none Use the highest bps rate your modem supports in the br capability. Then, type tip cuaa0 and you'll be connected to your modem. If there is no /dev/cuaa0 on your system, do this: # cd /dev # ./MAKEDEV cuaa0 Or use cu as root with the following command: # cu -l``line'' -s``speed'' with line being the serial port (e.g./dev/cuaa0) and speed being the speed (e.g.57600). When you are done entering the AT commands hit ~. to exit. The <@> sign for the pn capability doesn't work! The <@> sign in the phone number capability tells tip to look in /etc/phones for a phone number. But the <@> sign is also a special character in capability files like /etc/remote. Escape it with a backslash: pn=\@ How can I dial a phone number on the command line? Put what's called a ``generic'' entry in your /etc/remote file. For example: tip115200|Dial any phone number at 115200 bps:\ :dv=/dev/cuaa0:br#115200:at=hayes:pa=none:du: tip57600|Dial any phone number at 57600 bps:\ :dv=/dev/cuaa0:br#57600:at=hayes:pa=none:du: Then you can do something like ``tip -115200 5551234''. If you prefer cu over tip, use a generic cu entry: cu115200|Use cu to dial any number at 115200bps:\ :dv=/dev/cuaa1:br#57600:at=hayes:pa=none:du: and type ``cu 5551234 -s 115200''. Do I have to type in the bps rate every time I do that? Put in an entry for tip1200 or cu1200, but go ahead and use whatever bps rate is appropriate with the br capability. tip thinks a good default is 1200 bps which is why it looks for a ``tip1200'' entry. You don't have to use 1200 bps, though. I access a number of hosts through a terminal server. Rather than waiting until you're connected and typing ``CONNECT <host>'' each time, use tip's cm capability. For example, these entries in /etc/remote: pain|pain.deep13.com|Forrester's machine:\ :cm=CONNECT pain\n:tc=deep13: muffin|muffin.deep13.com|Frank's machine:\ :cm=CONNECT muffin\n:tc=deep13: deep13:Gizmonics Institute terminal server:\ :dv=/dev/cua02:br#38400:at=hayes:du:pa=none:pn=5551234: will let you type ``tip pain'' or ``tip muffin'' to connect to the hosts pain or muffin; and ``tip deep13'' to get to the terminal server. Can tip try more than one line for each site? This is often a problem where a university has several modem lines and several thousand students trying to use them... Make an entry for your university in /etc/remote and use <\@> for the pn capability: big-university:\ :pn=\@:tc=dialout dialout:\ :dv=/dev/cuaa3:br#9600:at=courier:du:pa=none: Then, list the phone numbers for the university in /etc/phones: big-university 5551111 big-university 5551112 big-university 5551113 big-university 5551114 tip will try each one in the listed order, then give up. If you want to keep retrying, run tip in a while loop. Why do I have to hit CTRL+P twice to send CTRL+P once? CTRL+P is the default ``force'' character, used to tell tip that the next character is literal data. You can set the force character to any other character with the ~s escape, which means ``set a variable.'' Type ``~sforce=<single-char>'' followed by a newline. <single-char> is any single character. If you leave out <single-char>, then the force character is the nul character, which you can get by typing CTRL+2 or CTRL+SPACE. A pretty good value for <single-char> is SHIFT+CTRL+6, which I've seen only used on some terminal servers. You can have the force character be whatever you want by specifying the following in your $HOME/.tiprc file: force=<single-char> Suddenly everything I type is in UPPER CASE?? You must've pressed CTRL+A, tip ``raise character,'' specially designed for people with broken caps-lock keys. Use ~s as above and set the variable ``raisechar'' to something reasonable. In fact, you can set it to the same as the force character, if you never expect to use either of these features. Here's a sample .tiprc file perfect for Emacs users who need to type CTRL+2 and CTRL+A a lot: force=^^ raisechar=^^ The ^^ is SHIFT+CTRL+6. How can I do file transfers with tip? If you're talking to another UNIX system, you can send and receive files with ~p (put) and ~t (take). These commands run cat and echo on the remote system to accept and send files. The syntax is: ~p <local-file> [<remote-file>] ~t <remote-file> [<local-file>] There's no error checking, so you probably should use another protocol, like zmodem. How can I run zmodem with tip? First, install one of the zmodem programs from the ports collection (such as one of the two from the comms category, lrzsz and rzsz). To receive files, start the sending program on the remote end. Then, press enter and type ``~C rz'' (or ``~C lrz'' if you installed lrzsz) to begin receiving them locally. To send files, start the receiving program on the remote end. Then, press enter and type ``~C sz <files>'' (or ``~C lsz <files>'') to send them to the remote system. FreeBSD can't seem to find my serial ports, even when the settings are correct. Motherboards and cards with Acer UARTs do not probe properly under the FreeBSD sio probe. Obtain a patch from www.lemis.com to fix your problem. Miscellaneous Questions FreeBSD uses far more swap space than Linux. Why? FreeBSD only appears to use more swap than Linux. In actual fact, it does not. The main difference between FreeBSD and Linux in this regard is that FreeBSD will proactively move entirely idle, unused pages of main memory into swap in order to make more main memory available for active use. Linux tends to only move pages to swap as a last resort. The perceived heavier use of swap is balanced by the more efficient use of main memory. Note that while FreeBSD is proactive in this regard, it does not arbitrarily decide to swap pages when the system is truely idle. Thus you will not find your system all paged out when you get up in the morning after leaving it idle overnight. Why use (what are) a.out and ELF executable formats? To understand why FreeBSD uses the a.out format, you must first know a little about the 3 currently "dominant" executable formats for UNIX: a.out The oldest and `classic' unix object format. It uses a short and compact header with a magic number at the beginning that's often used to characterize the format (see a.out(5) for more details). It contains three loaded segments: .text, .data, and .bss plus a symbol table and a string table. COFF The SVR3 object format. The header now comprises a section table, so you can have more than just .text, .data, and .bss sections. ELF The successor to COFF, featuring Multiple sections and 32-bit or 64-bit possible values. One major drawback: ELF was also designed with the assumption that there would be only one ABI per system architecture. That assumption is actually quite incorrect, and not even in the commercial SYSV world (which has at least three ABIs: SVR4, Solaris, SCO) does it hold true. FreeBSD tries to work around this problem somewhat by providing a utility for branding a known ELF executable with information about the ABI it's compliant with. See the man page for brandelf for more information. FreeBSD comes from the "classic" camp and has traditionally used the a.out format, a technology tried and proven through many generations of BSD releases. Though it has also been possible for some time to build and run native ELF binaries (and kernels) on a FreeBSD system, FreeBSD initially resisted the "push" to switch to ELF as the default format. Why? Well, when the Linux camp made their painful transition to ELF, it was not so much to flee the a.out executable format as it was their inflexible jump-table based shared library mechanism, which made the construction of shared libraries very difficult for vendors and developers alike. Since the ELF tools available offered a solution to the shared library problem and were generally seen as "the way forward" anyway, the migration cost was accepted as necessary and the transition made. In FreeBSD's case, our shared library mechanism is based more closely on Sun's SunOS-style shared library mechanism and, as such, is very easy to use. However, starting with 3.0, FreeBSD officially supports ELF binaries as the default format. Even though the a.out executable format has served us well, the GNU people, who author the compiler tools we use, have dropped support for the a.out format. This has forced us to maintain a divergent version of the compler and linker, and has kept us from reaping the benefits of the latest GNU development efforts. Also the demands of ISO-C++, notably contstructors and destructors, has also led to native ELF support in future FreeBSD releases. Yes, but why are there so many different formats? Back in the dim, dark past, there was simple hardware. This simple hardware supported a simple, small system. a.out was completely adequate for the job of representing binaries on this simple system (a PDP-11). As people ported unix from this simple system, they retained the a.out format because it was sufficient for the early ports of unix to architectures like the Motorola 68k, VAXen, etc. Then some bright hardware engineer decided that if he could force software to do some sleazy tricks, then he'd be able to shave a few gates off the design and allow his CPU core to run faster. While it was made to work with this new kind of hardware (known these days as RISC), a.out was ill-suited for this hardware, so many formats were developed to get to a better performance from this hardware than the limited, simple a.out format could offer. Things like COFF, ECOFF, and a few obscure others were invented and their limitations explored before things seemed to settle on ELF. In addition, program sizes were getting huge and disks (and physical memory) were still relatively small so the concept of a shared library was born. The VM system also became more sophisticated. While each one of these advancements was done using the a.out format, its usefulness was stretched more and more with each new feature. In addition, people wanted to dynamically load things at run time, or to junk parts of their program after the init code had run to save in core memory and/or swap space. Languages became more sophistocated and people wanted code called before main automatically. Lots of hacks were done to the a.out format to allow all of these things to happen, and they basically worked for a time. In time, a.out wasn't up to handling all these problems without an ever increasing overhead in code and complexity. While ELF solved many of these problems, it would be painful to switch from the system that basically worked. So ELF had to wait until it was more painful to remain with a.out than it was to migrate to ELF. However, as time passed, the build tools that FreeBSD derived their build tools from (the assembler and loader especially) evolved in two parallel trees. The FreeBSD tree added shared libraries and fixed some bugs. The GNU folks that originally write these programs rewrote them and added simpler support for building cross compilers, plugging in different formats at will, etc. Since many people wanted to build cross compilers targeting FreeBSD, they were out of luck since the older sources that FreeBSD had for as and ld weren't up to the task. The new gnu tools chain (binutils) does support cross compiling, ELF, shared libraries, C++ extnensions, etc. In addition, many vendors are releasing ELF binaries, and it is a good thing for FreeBSD to run them. And if it is running ELF binaries, why bother having a.out any more? It is a tired old horse that has proven useful for a long time, but it is time to turn him out to pasture for his long, faithful years of service. ELF is more expressive than a.out and will allow more extensibility in the base system. The ELF tools are better maintained, and offer cross compilation support, which is important to many people. ELF may be a little slower than a.out, but trying to measure it can be difficult. There are also numerous details that are different between the two in how they map pages, handle init code, etc. None of these are very important, but they are differences. In time support for a.out will be moved out of the GENERIC kernel, and eventually removed from the kernel once the need to run legacy a.out programs is past. Why won't chmod change the permissions on symlinks? You have to use either ``'' or ``'' together with the ``'' option to make this work. See the chmod and symlink man pages for more info. WARNING the ``'' option does a RECURSIVE chmod. Be careful about specifying directories or symlinks to directories to chmod. If you want to change the permissions of a directory referenced by a symlink, use chmod without any options and follow the symlink with a trailing slash (``/''). For example, if ``foo'' is a symlink to directory ``bar'', and you want to change the permissions of ``foo'' (actually ``bar''), you would do something like: chmod 555 foo/ With the trailing slash, chmod will follow the symlink, ``foo'', to change the permissions of the directory, ``bar''. Why are login names still restricted to 8 characters? You'd think it'd be easy enough to change UT_NAMESIZE and rebuild the whole world, and everything would just work. Unfortunately there are often scads of applications and utilities (including system tools) that have hard-coded small numbers (not always "8" or "9", but oddball ones like "15" and "20") in structures and buffers. Not only will this get you log files which are trashed (due to variable-length records getting written when fixed records were expected), but it can break Sun's NIS clients and potentially cause other problems in interacting with other UNIX systems. In FreeBSD 3.0 and later, the maximum name length has been increased to 16 characters and those various utilities with hard-coded name sizes have been found and fixed. The fact that this touched so many areas of the system is why, in fact, the change was not made until 3.0. If you're absolutely confident in your ability to find and fix these sorts of problems for yourself when and if they pop up, you can increase the login name length in earlier releases by editing /usr/include/utmp.h and changing UT_NAMESIZE accordingly. You must also update MAXLOGNAME in /usr/include/sys/param.h to match the UT_NAMESIZE change. Finally, if you build from sources, don't forget that /usr/include is updated each time! Change the appropriate files in /usr/src/.. instead. Can I run DOS binaries under FreeBSD? Yes, starting with version 3.0 you can using BSDI's rundos DOS emulation which has been integrated and enhanced. Send mail to The FreeBSD emulation discussion list if you're interested in joining this ongoing effort! For pre-3.0 systems, there is a neat utility called pcemu in the ports collection which emulates an 8088 and enough BIOS services to run DOS text mode applications. It requires the X Window System (provided as XFree86). What is ``sup'', and how do I use it? SUP stands for Software Update Protocol, and was developed by CMU for keeping their development trees in sync. We used it to keep remote sites in sync with our central development sources. SUP is not bandwidth friendly, and has been retired. The current recommended method to keep your sources up to date is Handbook entry on CVSup How cool is FreeBSD? Q. Has anyone done any temperature testing while running FreeBSD? I know Linux runs cooler than dos, but have never seen a mention of FreeBSD. It seems to run really hot. A. No, but we have done numerous taste tests on blindfolded volunteers who have also had 250 micrograms of LSD-25 administered beforehand. 35% of the volunteers said that FreeBSD tasted sort of orange, whereas Linux tasted like purple haze. Neither group mentioned any particular variances in temperature that I can remember. We eventually had to throw the results of this survey out entirely anyway when we found that too many volunteers were wandering out of the room during the tests, thus skewing the results. I think most of the volunteers are at Apple now, working on their new ``scratch and sniff'' GUI. It's a funny old business we're in! Seriously, both FreeBSD and Linux use the ``HLT'' (halt) instruction when the system is idle thus lowering its energy consumption and therefore the heat it generates. Also if you have APM (automatic power management) configured, then FreeBSD can also put the CPU into a low power mode. Who's scratching in my memory banks?? Q. Is there anything "odd" that FreeBSD does when compiling the kernel which would cause the memory to make a scratchy sound? When compiling (and for a brief moment after recognizing the floppy drive upon startup, as well), a strange scratchy sound emanates from what appears to be the memory banks. A. Yes! You'll see frequent references to ``daemons'' in the BSD documentation, and what most people don't know is that this refers to genuine, non-corporeal entities that now possess your computer. The scratchy sound coming from your memory is actually high-pitched whispering exchanged among the daemons as they best decide how to deal with various system administration tasks. If the noise gets to you, a good ``fdisk /mbr'' from DOS will get rid of them, but don't be surprised if they react adversely and try to stop you. In fact, if at any point during the exercise you hear the satanic voice of Bill Gates coming from the built-in speaker, take off running and don't ever look back! Freed from the counterbalancing influence of the BSD daemons, the twin demons of DOS and Windows are often able to re-assert total control over your machine to the eternal damnation of your soul. Given a choice, I think I'd prefer to get used to the scratchy noises, myself! What does 'MFC' mean? MFC is an acronym for 'Merged From -CURRENT.' It's used in the CVS logs to denote when a change was migrated from the CURRENT to the STABLE branches. What does 'BSD' mean? It stands for something in a secret language that only members can know. It doesn't translate literally but its ok to tell you that BSD's translation is something between, 'Formula-1 Racing Team', 'Penguins are tasty snacks', and 'We have a better sense of humor than Linux.' :-) Seriously, BSD is an acronym for 'Berkeley Software Distribution', which is the name the Berkeley CSRG (Computer Systems Research Group) chose for their Unix distribution way back when. How many FreeBSD hackers does it take to change a lightbulb? One thousand, one hundred and seventy-two: Twenty-three to complain to -current about the lights being out; Four to claim that it is a configuration problem, and that such matters really belong on -questions; Three to submit PRs about it, one of which is misfiled under doc and consists only of "it's dark"; One to commit an untested lightbulb which breaks buildworld, then back it out five minutes later; Eight to flame the PR originators for not including patches in their PRs; Five to complain about buildworld being broken; Thirty-one to answer that it works for them, and they must have cvsupped at a bad time; One to post a patch for a new lightbulb to -hackers; One to complain that he had patches for this three years ago, but when he sent them to -current they were just ignored, and he has had bad experiences with the PR system; besides, the proposed new lightbulb is non-reflexive; Thirty-seven to scream that lightbulbs do not belong in the base system, that committers have no right to do things like this without consulting the Community, and WHAT IS -CORE DOING ABOUT IT!? Two hundred to complain about the color of the bicycle shed; Three to point out that the patch breaks style(9); Seventeen to complain that the proposed new lightbulb is under GPL; Five hundred and eighty-six to engage in a flame war about the comparative advantages of the GPL, the BSD license, the MIT license, the NPL, and the personal hygiene of unnamed FSF founders; Seven to move various portions of the thread to -chat and -advocacy; One to commit the suggested lightbulb, even though it shines dimmer than the old one; Two to back it out with a furious flame of a commit message, arguing that FreeBSD is better off in the dark than with a dim lightbulb; Forty-six to argue vociferously about the backing out of the dim lightbulb and demanding a statement from -core; Eleven to request a smaller lightbulb so it will fit their Tamagotchi if we ever decide to port FreeBSD to that platform; Seventy-three to complain about the SNR on -hackers and -chat and unsubscribe in protest; Thirteen to post "unsubscribe", "How do I unsubscribe?", or "Please remove me from the list", followed by the usual footer; One to commit a working lightbulb while everybody is too busy flaming everybody else to notice; Thirty-one to point out that the new lightbulb would shine 0.364% brighter if compiled with TenDRA (although it will have to be reshaped into a cube), and that FreeBSD should therefore switch to TenDRA instead of EGCS; One to complain that the new lightbulb lacks fairings; Nine (including the PR originators) to ask "what is MFC?"; Fifty-seven to complain about the lights being out two weeks after the bulb has been changed. Nik Clayton adds: I was laughing quite hard at this. And then I thought, "Hang on, shouldn't there be '1 to document it.' in that list somewhere?" And then I was enlightened :-) For serious FreeBSD hackers only What are SNAPs and RELEASEs? There are currently three active/semi-active branches in the FreeBSD CVS Repository: RELENG_2_2 AKA 2.2-stable AKA "2.2 branch" RELENG_3 AKA 3.x-stable AKA "3.0 branch" HEAD AKA AKA 4.0-current HEAD is not an actual branch tag, like the other two, it's simply a symbolic constant for "the current, non-branched development stream" which we simply refer to as . Right now, is the 4.0 development stream and the 3.0-stable branch, RELENG_3, forked off from in Jan 1999. The 2.2-stable branch, RELENG_2_2, departed -current in November 1996. The 2.1-stable branch, RELENG_2_1_0, departed -current in September of 1994. This branch has been fully retired. How do I make my own custom release? To make a release you need to do three things: First, you need to be running a kernel with the vn driver configured in. Add this to your kernel config file and build a new kernel: pseudo-device vn #Vnode driver (turns a file into a device) Second, you have to have the whole CVS repository at hand. To get this you can use CVSUP but in your supfile set the release name to cvs and remove any tag or date fields: *default prefix=/home/ncvs *default base=/a *default host=cvsup.FreeBSD.org *default release=cvs *default delete compress use-rel-suffix ## Main Source Tree src-all src-eBones src-secure # Other stuff ports-all www doc-all Then run cvsup -g supfile to suck all the good bits onto your box... Finally, you need a chunk of empty space to build into. Let's say it's in /some/big/filesystem, and from the example above you've got the CVS repository in /home/ncvs: setenv CVSROOT /home/ncvs # or export CVSROOT=/home/ncvs cd /usr/src/release make release BUILDNAME=3.0-MY-SNAP CHROOTDIR=/some/big/filesystem/release An entire release will be built in /some/big/filesystem/release and you will have a full FTP-type installation in /some/big/filesystem/release/R/ftp when you're done. If you want to build your SNAP along some other branch than -current, you can also add RELEASETAG=SOMETAG to the make release command line above, e.g. RELEASETAG=RELENG_2_2 would build an up-to-the- minute 2.2-STABLE snapshot. How do I create customized installation disks? The entire process of creating installation disks and source and binary archives is automated by various targets in /usr/src/release/Makefile. The information there should be enough to get you started. However, it should be said that this involves doing a ``make world'' and will therefore take up a lot of time and disk space. ``make world'' clobbers my existing installed binaries. Yes, this is the general idea; as its name might suggest, ``make world'' rebuilds every system binary from scratch, so you can be certain of having a clean and consistent environment at the end (which is why it takes so long). If the environment variable DESTDIR is defined while running ``make world'' or ``make install'', the newly-created binaries will be deposited in a directory tree identical to the installed one, rooted at ${DESTDIR}. Some random combination of shared libraries modifications and program rebuilds can cause this to fail in ``make world'', however. When my system boots, it says ``(bus speed defaulted)''. The Adaptec 1542 SCSI host adapters allow the user to configure their bus access speed in software. Previous versions of the 1542 driver tried to determine the fastest usable speed and set the adapter to that. We found that this breaks some users' systems, so you now have to define the ``TUNE_1542'' kernel configuration option in order to have this take place. Using it on those systems where it works may make your disks run faster, but on those systems where it doesn't, your data could be corrupted. Can I follow current with limited Internet access? Yes, you can do this without downloading the whole source tree by using the CTM facility. How did you split the distribution into 240k files? Newer BSD based systems have a ``'' option to split that allows them to split files on arbitrary byte boundaries. Here is an example from /usr/src/Makefile. bin-tarball: (cd ${DISTDIR}; \ tar cf - . \ gzip --no-name -9 -c | \ split -b 240640 - \ ${RELEASEDIR}/tarballs/bindist/bin_tgz.) I've written a kernel extension, who do I send it to? Please take a look at The Handbook entry on how to submit code. And thanks for the thought! How are Plug N Play ISA cards detected and initialized? By: Frank Durda IV In a nutshell, there a few I/O ports that all of the PnP boards respond to when the host asks if anyone is out there. So when the PnP probe routine starts, he asks if there are any PnP boards present, and all the PnP boards respond with their model # to a I/O read of the same port, so the probe routine gets a wired-OR ``yes'' to that question. At least one bit will be on in that reply. Then the probe code is able to cause boards with board model IDs (assigned by Microsoft/Intel) lower than X to go ``off-line''. It then looks to see if any boards are still responding to the query. If the answer was ``0'', then there are no boards with IDs above X. Now probe asks if there are any boards below ``X''. If so, probe knows there are boards with a model numbers below X. Probe then asks for boards greater than X-(limit/4) to go off-line. If repeats the query. By repeating this semi-binary search of IDs-in-range enough times, the probing code will eventually identify all PnP boards present in a given machine with a number of iterations that is much lower than what 2^64 would take. The IDs are two 32-bit fields (hence 2ˆ64) + 8 bit checksum. The first 32 bits are a vendor identifier. They never come out and say it, but it appears to be assumed that different types of boards from the same vendor could have different 32-bit vendor ids. The idea of needing 32 bits just for unique manufacturers is a bit excessive. The lower 32 bits are a serial #, ethernet address, something that makes this one board unique. The vendor must never produce a second board that has the same lower 32 bits unless the upper 32 bits are also different. So you can have multiple boards of the same type in the machine and the full 64 bits will still be unique. The 32 bit groups can never be all zero. This allows the wired-OR to show non-zero bits during the initial binary search. Once the system has identified all the board IDs present, it will reactivate each board, one at a time (via the same I/O ports), and find out what resources the given board needs, what interrupt choices are available, etc. A scan is made over all the boards to collect this information. This info is then combined with info from any ECU files on the hard disk or wired into the MLB BIOS. The ECU and BIOS PnP support for hardware on the MLB is usually synthetic, and the peripherals don't really do genuine PnP. However by examining the BIOS info plus the ECU info, the probe routines can cause the devices that are PnP to avoid those devices the probe code cannot relocate. Then the PnP devices are visited once more and given their I/O, DMA, IRQ and Memory-map address assignments. The devices will then appear at those locations and remain there until the next reboot, although there is nothing that says you can't move them around whenever you want. There is a lot of oversimplification above, but you should get the general idea. Microsoft took over some of the primary printer status ports to do PnP, on the logic that no boards decoded those addresses for the opposing I/O cycles. I found a genuine IBM printer board that did decode writes of the status port during the early PnP proposal review period, but MS said ``tough''. So they do a write to the printer status port for setting addresses, plus that use that address + 0x800, and a third I/O port for reading that can be located anywhere between 0x200 and 0x3ff. Does FreeBSD support architectures other than the x86? Several groups of people have expressed interest in working on multi-architecture ports for FreeBSD and the FreeBSD/AXP (ALPHA) port is one such effort which has been quite successful, now available in 3.0 SNAPshot release form at ftp://ftp.FreeBSD.org/pub/FreeBSD/alpha. The ALPHA port currently runs on a growing number of ALPHA machine types, among them the AlphaStation, AXPpci, PC164, Miata and Multia models. This port is not yet considered a full release and won't be until a full compliment of system installation tools and a distribution on CDROM installation media is available, including a reasonable number of working ports and packages. FreeBSD/AXP should be considered BETA quality software at this time. For status information, please join the freebsd-alpha@FreeBSD.orgmailing list. Interest has also been expressed in a port of FreeBSD to the SPARC architecture, join the freebsd-sparc@FreeBSD.orgmailing list if you are interested in joining that project. For general discussion on new architectures, join the freebsd-platforms@FreeBSD.org mailing list. I need a major number for a device driver I've written. This depends on whether or not you plan on making the driver publicly available. If you do, then please send us a copy of the driver source code, plus the appropriate modifications to files.i386, a sample configuration file entry, and the appropriate MAKEDEV code to create any special files your device uses. If you do not, or are unable to because of licensing restrictions, then character major number 32 and block major number 8 have been reserved specifically for this purpose; please use them. In any case, we'd appreciate hearing about your driver on freebsd-hackers@FreeBSD.org. Alternative layout policies for directories In answer to the question of alternative layout policies for directories, the scheme that is currently in use is unchanged from what I wrote in 1983. I wrote that policy for the original fast filesystem, and never revisited it. It works well at keeping cylinder groups from filling up. As several of you have noted, it works poorly for find. Most filesystems are created from archives that were created by a depth first search (aka ftw). These directories end up being striped across the cylinder groups thus creating a worst possible senario for future depth first searches. If one knew the total number of directories to be created, the solution would be to create (total / fs_ncg) per cylinder group before moving on. Obviously, one would have to create some heuristic to guess at this number. Even using a small fixed number like say 10 would make an order of magnitude improvement. To differentiate restores from normal operation (when the current algorithm is probably more sensible), you could use the clustering of up to 10 if they were all done within a ten second window. Anyway, my conclusion is that this is an area ripe for experimentation. Kirk McKusick, September 1998 Making the most of a kernel panic [This section was extracted from a mail written by Bill Paul on the freebsd-current mailing list by Dag-Erling Coïdan Smørgrav, who fixed a few typos and added the bracketed comments] From: Bill Paul <wpaul@skynet.ctr.columbia.edu> Subject: Re: the fs fun never stops To: ben@rosengart.com Date: Sun, 20 Sep 1998 15:22:50 -0400 (EDT) Cc: current@FreeBSD.org [<ben@rosengart.com> posted the following panic message] > Fatal trap 12: page fault while in kernel mode > fault virtual address = 0x40 > fault code = supervisor read, page not present > instruction pointer = 0x8:0xf014a7e5 ^^^^^^^^^^ > stack pointer = 0x10:0xf4ed6f24 > frame pointer = 0x10:0xf4ed6f28 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, def32 1, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 80 (mount) > interrupt mask = > trap number = 12 > panic: page fault [When] you see a message like this, it's not enough to just reproduce it and send it in. The instruction pointer value that I highlighted up there is important; unfortunately, it's also configuration dependent. In other words, the value varies depending on the exact kernel image that you're using. If you're using a GENERIC kernel image from one of the snapshots, then it's possible for somebody else to track down the offending function, but if you're running a custom kernel then only you can tell us where the fault occured. What you should do is this: Write down the instruction pointer value. Note that the 0x8: part at the begining is not significant in this case: it's the 0xf0xxxxxx part that we want. When the system reboots, do the following: % nm /kernel.that.caused.the.panic | grep f0xxxxxx where f0xxxxxx is the instruction pointer value. The odds are you will not get an exact match since the symbols in the kernel symbol table are for the entry points of functions and the instruction pointer address will be somewhere inside a function, not at the start. If you don't get an exact match, omit the last digit from the instruction pointer value and try again, i.e.: % nm /kernel.that.caused.the.panic | grep f0xxxxx If that doesn't yield any results, chop off another digit. Repeat until you get some sort of output. The result will be a possible list of functions which caused the panic. This is a less than exact mechanism for tracking down the point of failure, but it's better than nothing. I see people constantly show panic messages like this but rarely do I see someone take the time to match up the instruction pointer with a function in the kernel symbol table. The best way to track down the cause of a panic is by capturing a crash dump, then using gdb(1) to to a stack trace on the crash dump. Of course, this depends on gdb(1) in -current working correctly, which I can't guarantee (I recall somebody saying that the new ELF-ized gdb(1) didn't handle kernel crash dumps correctly: somebody should check this before 3.0 goes out of beta or there'll be a lot of red faces after the CDs ship). In any case, the method I normally use is this: Set up a kernel config file, optionally adding 'options DDB' if you think you need the kernel debugger for something. (I use this mainly for setting beakpoints if I suspect an infinite loop condition of some kind.) Use config -g KERNELCONFIG to set up the build directory. cd /sys/compile/KERNELCONFIG; make Wait for kernel to finish compiling. cp kernel kernel.debug strip -d kernel mv kernel /kernel.orig/ cp kernel / reboot [Note: Now that FreeBSD 3.x kernels are Elf by default, you should use strip -g instead of strip -d. If for some reason your kernel is still a.out, use strip -aout -d.] Note that YOU DO NOT WANT TO ACTUALLY BOOT THE KERNEL WITH ALL THE DEBUG SYMBOLS IN IT. A kernel compiled with can easily be close to 10MB in size. You don't have to actually boot this massive image: you only need it later for gdb(1) (gdb(1) wants the symbol table). Instead, you want to keep a copy of the full image and create a second image with the debug symbols stripped out using strip -d. It is this second stripped image that you want to boot. To make sure you capture a crash dump, you need edit /etc/rc.conf and set dumpdev to point to your swap partition. This will cause the rc(8) scripts to use the dumpon(8) command to enable crash dumps. You can also run dumpon(8) manually. After a panic, the crash dump can be recovered using savecore(8); if dumpdev is set in /etc/rc.conf, the rc(8) scripts will run savecore(8) automatically and put the crash dump in /var/crash. NOTE: FreeBSD crash dumps are usually the same size as the physical RAM size of your machine. That is, if you have 64MB of RAM, you will get a 64MB crash dump. Therefore you must make sure there's enough space in /var/crash to hold the dump. Alternatively, you run savecore(8) manually and have it recover the crash dump to another directory where you have more room. It's possible to limit the size of the crash dump by using options MAXMEM=(foo) to set the amount of memory the kernel will use to something a little more sensible. For example, if you have 128MB of RAM, you can limit the kernel's memory usage to 16MB so that your crash dump size will be 16MB instead of 128MB. Once you have recovered the crash dump, you can get a stack trace with gdb(1) as follows: % gdb -k /sys/compile/KERNELCONFIG/kernel.debug /var/crash/vmcore.0 (gdb) where Note that there may be several screens worth of information; ideally you should use script(1) to capture all of them. Using the unstripped kernel image with all the debug symbols should show the exact line of kernel source code where the panic occured. Usually you have to read the stack trace from the bottom up in order to trace the exact sequence of events that lead to the crash. You can also use gdb(1) to print out the contents of various variables or structures in order to examine the system state at the time of the crash. Now, if you're really insane and have a second computer, you can also configure gdb(1) to do remote debugging such that you can use gdb(1) on one system to debug the kernel on another system, including setting breakpoints, single-stepping through the kernel code, just like you can do with a normal user-mode program. I haven't played with this yet as I don't often have the chance to set up two machines side by side for debugging purposes. [Bill adds: "I forgot to mention one thing: if you have DDB enabled and the kernel drops into the debugger, you can force a panic (and a crash dump) just by typing 'panic' at the ddb prompt. It may stop in the debugger again during the panic phase. If it does, type 'continue' and it will finish the crash dump." -ed] dlsym() stopped working for ELF executables! The ELF toolchain does not, by default, make the symbols defined in an executable visible to the dynamic linker. Consequently dlsym() searches on handles obtained from calls to dlopen(NULL, flags) will fail to find such symbols. If you want to search, using dlsym(), for symbols present in the main executable of a process, you need to link the executable using the option to the ELF linker. Increasing or reducing the kernel address space By default, the kernel address space is 256 MB on FreeBSD 3.x and 1 GB on FreeBSD 4.x. If you run a network-intensive server (e.g. a large FTP or HTTP server), you might find that 256 MB is not enough. So how do you increase the address space? There are two aspects to this. First, you need to tell the kernel to reserve a larger portion of the address space for itself. Second, since the kernel is loaded at the top of the address space, you need to lower the load address so it doesn't bump its head against the ceiling. The first goal is achieved by increasing the value of NKPDE in src/sys/i386/include/pmap.h. Here's what it looks like for a 1 GB address space: #ifndef NKPDE #ifdef SMP #define NKPDE 254 /* addressable number of page tables/pde's */ #else #define NKPDE 255 /* addressable number of page tables/pde's */ #endif /* SMP */ #endif To find the correct value of NKPDE, divide the desired address space size (in megabytes) by four, then subtract one for UP and two for SMP. To achieve the second goal, you need to compute the correct load address: simply subtract the address space size (in bytes) from 0x100100000; the result is 0xc0100000 for a 1 GB address space. Set LOAD_ADDRESS in src/sys/i386/conf/Makefile.i386 to that value; then set the location counter in the beginning of the section listing in src/sys/i386/conf/kernel.script to the same value, as follows: OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386") OUTPUT_ARCH(i386) ENTRY(btext) SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/obj/elf/home/src/tmp/usr/i386-unknown-freebsdelf/lib); SECTIONS { /* Read-only sections, merged into text segment: */ . = 0xc0100000 + SIZEOF_HEADERS; .interp : { *(.interp) } Then reconfig and rebuild your kernel. You will probably have problems with ps(1), top(1) and the like; make world should take care of it (or a manual rebuild of libkvm, ps and top after copying the patched pmap.h to /usr/include/vm/. NOTE: the size of the kernel address space must be a multiple of four megabytes. [David Greenman adds: I think the kernel address space needs to be a power of two, but I'm not certain about that. The old(er) boot code used to monkey with the high order address bits and I think expected at least 256MB granularity.] ACKNOWLEDGMENTS If you see a problem with this FAQ, or wish to submit an entry, please mail us at <FAQ@FreeBSD.org>. We appreciate your feedback, and cannot make this a better FAQ without your help! FreeBSD Core Team Jordan Hubbard Occasional fits of FAQ-reshuffling and updating. Doug White Services above and beyond the call of duty on freebsd-questions Joerg Wunsch Services above and beyond the call of duty on Usenet Garrett Wollman Networking and formatting Jim Lowe Multicast information Peter da Silva FreeBSD FAQ typing machine slavey The FreeBSD Team Kvetching, moaning, submitting data And to any others we've forgotten, apologies and heartfelt thanks!
diff --git a/en_US.ISO_8859-1/books/fdp-primer/book.sgml b/en_US.ISO_8859-1/books/fdp-primer/book.sgml index ba757625e3..2dde1afc60 100644 --- a/en_US.ISO_8859-1/books/fdp-primer/book.sgml +++ b/en_US.ISO_8859-1/books/fdp-primer/book.sgml @@ -1,280 +1,280 @@ %man; %chapters; ]> FreeBSD Documentation Project Primer for New Contributors Nik Clayton
nik@FreeBSD.org
1998 1999 Nik Clayton - $Date: 1999-09-06 06:52:40 $ + $FreeBSD$ - $FreeBSD$ + $FreeBSD: doc/en_US.ISO_8859-1/books/fdp-primer/book.sgml,v 1.8 1999/09/06 06:52:40 peter Exp $ Redistribution and use in source (SGML DocBook) and 'compiled' forms (SGML, HTML, PDF, PostScript, RTF and so forth) with or without modification, are permitted provided that the following conditions are met: Redistributions of source code (SGML DocBook) must retain the above copyright notice, this list of conditions and the following disclaimer as the first lines of this file unmodified. Redistributions in compiled form (transformed to other DTDs, converted to PDF, PostScript, RTF and other formats) must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS DOCUMENTATION IS PROVIDED BY NIK CLAYTON "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL NIK CLAYTON BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS DOCUMENTATION, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Thank you for becoming a part of the FreeBSD Documentation Project. Your contribution is extremely valuable. This primer covers everything you will need to know in order to start contributing to the FreeBSD Documentation Project, from the tools and software you will be using (both mandatory and recommended) to the philosophy behind the Documentation Project. This document is a work in progress, and is not complete. Sections that are known to be incomplete are indicated with a * in their name.
Preface Shell Prompts The following table shows the default system prompt and superuser prompt. The examples will use this prompt to indicate which user you should be running the example as. User Prompt Normal user &prompt.user; root &prompt.root; Typographic Conventions The following table describes the typographic conventions used in this book. Meaning Examples The name of commands, files, and directories. On screen computer output. Edit your .login file.Use ls -a to list all files.You have mail. What you type, when contrasted with on-screen computer output. &prompt.user; su Password: Manual page references. Use su 1 to change user names. User and group names Only root can do this. Emphasis You must do this. Command line variables; replace with the real name or variable. To delete a file, type rm filename Environment variables $HOME is your home directory. Notes, warnings, and examples Within the text appear notes, warnings, and examples. Notes are represented like this, and contain information that you should take note of, as it may affect what you do. Warnings are represented like this, and contain information warning you about possible damage if you do not follow the instructions. This damage may be physical, to your hardware or to you, or it may be non-physical, such as the inadvertant deletion of important files. A sample example Examples are represented like this, and typically contain examples you should walk through, or show you what the results of a particular action should be. Acknowledgments My thanks to Sue Blake, Patrick Durusau, Jon Hamilton, Peter Flynn, and Christopher Maden, who took the time to read early drafts of this document and offer many valuable comments and criticisms. &chap.overview; &chap.tools; &chap.sgml-primer; &chap.sgml-markup; &chap.stylesheets; &chap.structure; &chap.the-website; &chap.translations; &chap.writing-style; &chap.psgml-mode; &chap.see-also;
diff --git a/en_US.ISO_8859-1/tutorials/index.sgml b/en_US.ISO_8859-1/tutorials/index.sgml index ff747bd448..a686ef311b 100644 --- a/en_US.ISO_8859-1/tutorials/index.sgml +++ b/en_US.ISO_8859-1/tutorials/index.sgml @@ -1,58 +1,58 @@ - + %includes; ]> - + &header;

Here lie assorted documents on various aspects of FreeBSD, FreeBSD software, and hardware. If you have comments or would like to contribute a document, please contact us at freebsd-doc@FreeBSD.org.

&footer; diff --git a/en_US.ISO_8859-1/tutorials/ppp/ppp.sgml b/en_US.ISO_8859-1/tutorials/ppp/ppp.sgml index aae01f1908..0defaf0680 100644 --- a/en_US.ISO_8859-1/tutorials/ppp/ppp.sgml +++ b/en_US.ISO_8859-1/tutorials/ppp/ppp.sgml @@ -1,1734 +1,1734 @@ - +
PPP - Pedantic PPP Primer <author>Maintainer: Steve Sims <tt><htmlurl url="mailto:SimsS@IBM.NET" name="<SimsS@IBM.NET>"></tt> -<date>$Date: 1999-09-06 06:53:12 $ +<date>$FreeBSD$ <abstract> This is a step-by-step guide for configuring FreeBSD systems to act as a dial-up router/gateway in a Local Area Environment. All entries may be assumed to be relevant to FreeBSD 2.2+, unless otherwise noted. </abstract> <toc> <sect> <heading>Overview:</heading> <p>The User-Mode PPP dialer in FreeBSD Version 2.2 (also known as: <it>"IIJ-PPP"</it> ) now supports Packet Aliasing for dial up connections to the Internet. This feature, also known as "<IT/Masquerading/", "<IT/IP Aliasing/", or "<IT/Network Address Translation/", allows a FreeBSD system to act as a dial- on-demand router between an Ethernet-based Local Area Network and an Internet Service Provider. Systems on the LAN can use the FreeBSD system to forward information between the Internet by means of a single dial-connection. <sect1> <heading>Purpose of this Guide.</heading> <p> This guide explains how to: <itemize> <item>Configure the FreeBSD system to support dial-out connections, <item>Share a dial-out connection with other systems in a network, <item>Configure Windows platforms to use the FreeBSD system as a gateway to the Internet. </itemize> <p> While the focus of this guide is to assist in configuring IP Aliasing, it also includes specific examples of the configuration steps necessary to configure and install each individual component; each section stands alone and may be used to assist in the configuration of various aspects of FreeBSD internetworking. </sect> <sect> <heading>Building the Local Area Network</heading> <p> While the ppp program can, and usually is, be configured to provide services to <em/only/ the local FreeBSD box it can also be used to serve as a "Gateway" (or "router") between other LAN-connected resources and the Internet or other Dial-Up service. <sect1> <heading>Typical Network Topology</heading> <p>This guide assumes a typical Local Area Network lashed together as follows: <verb> +---------+ ----> Dial-Up Internet Connection | FreeBSD | \ (i.e.: NetCom, AOL, AT&T, EarthLink, etc) | |-------- | "Curly" | | | +----+----+ | |----+-------------+-------------+----| <-- Ethernet Network | | | | | | +----+----+ +----+----+ +----+----+ | | | | | | | Win95 | | WFW | | WinNT | | "Larry" | | "Moe" | | "Shemp" | | | | | | | +---------+ +---------+ +---------+ </verb> <sect1> <heading>Assumptions about the Local Area Network</heading> <p>Some specific assumptions about this sample network are: <p>Three workstations and a Server are connected with Ethernet cabling: <itemize> <item>a FreeBSD Server ("Curly") with an NE-2000 adapter configured as 'ed0' <item>a Windows-95 workstation ("Larry") with Microsoft's "native" 32-bit TCP/IP drivers <item>a Windows for Workgroups workstation ("Moe") with Microsoft's 16-bit TCP/IP extensions <item>a Windows NT workstation ("Shemp") with Microsoft's "native" 32-bit TCP/IP drivers </itemize> <p>The IP Addresses on the Ethernet side of this sample LAN have been taken from the pool of "reserved" addresses proposed in RFC-1597. IP addresses are assigned as follows: <verb>Name IP Address "Curly" 192.168.1.1 # The FreeBSD box "Larry" 192.168.1.2 # The Win'95 box "Moe" 192.168.1.3 # The WfW box "Shemp" 192.168.1.4 # The Windows NT box </VERB> <p>This guide assumes that the modem on the FreeBSD box is connected to the first serial port ('<tt>/dev/cuaa0</tt>' or '<tt>COM1:</tt>' in DOS-terms). <p>Finally, we'll also assume that your Internet Service Provider (ISP) automatically provides the IP addresses of both your PPP/FreeBSD side as well as the ISP's side. (i.e.: Dynamic IP Addresses on both ends of the link.) Specific details for configuring the Dial-Out side of PPP will be addressed in Section 2, "Configuring the FreeBSD System". </sect> <sect> <heading>FreeBSD System Configuration</heading> <p>There are three basic pieces of information that must be known to the FreeBSD box before you can proceed with integrating the sample Local Area Network: <itemize> <item>The Host Name of the FreeBSD system; in our example it's "Curly", <item>The Network configuration, <item>The <tt>/etc/hosts</tt> file (which lists the names and IP addresses of the other systems in your network) </itemize> <p>If you performed the installation of FreeBSD over a network connection some of this information may already be configured into your FreeBSD system. <p>Even if you believe that the FreeBSD system was properly configured when it was installed you should at least verify each of these bits of information to prevent trouble in subsequent steps. <sect1> <heading>Verifying the FreeBSD Host Name</heading> <p>It's possible that the FreeBSD host name was specified and saved when the system was initially installed. To verify that it was, enter the following command at a prompt:<p> <tscreen><verb> # hostname </verb></tscreen> <p>The name of the host FreeBSD system will be displayed on a single line. If the name looks correct (this is very subjective :-) skip ahead to Section 3.2, "Verifying the Ethernet Interface Configuration". <p>For example, in our sample network, we would see 'curly.my.domain' as a result of the `hostname` command if the name had been set correctly during, or after, installation. (At this point, don't worry too much about the ".my.domain" part, we'll sort this out later. The important part is the name up to the first dot.) <p>If a host name wasn't specified when FreeBSD was installed you'll probably see 'myname.my.domain` as a response. You'll need to edit <tt>/etc/rc.conf</tt> to set the name of the machine. <sect2><heading>Configuring the FreeBSD Host Name</heading> <p><em><bf>Reminder: You must be logged in as 'root' to edit the system configuration files!</bf></em> <em><bf>CAUTION: If you mangle the system configuration files, chances are your system WILL NOT BOOT correctly! Be careful!</bf></em> <p>The configuration file that specifies the FreeBSD system's host name when the system boots is in <tt>/etc/rc.conf</tt>. Use the default text editor ('<tt/ee/') to edit this file. <p>Logged in as user 'root' load <tt>/etc/rc.conf</tt> into the editor with the following command: <tscreen><verb> # ee /etc/rc.conf </verb></tscreen> <p>Using the arrow keys, scroll down until you find the line that specifies the host name of the FreeBSD system. By default, this section says: <tscreen><verb> --- ### Basic network options: ### hostname="myname.my.domain" # Set this! --- </verb></tscreen> Change this section to say (in our example): <tscreen><verb> --- ### Basic network options: ### hostname="curly.my.domain" # Set this! --- </verb></tscreen> Once the change to the host name has been made, press the 'Esc' key to access the command menu. Select "leave editor" and make sure to specify "save changes" when prompted. <sect1> <heading>Verifying the Ethernet Interface Configuration</heading> <p>To reiterate our basic assumption, this guide assumes that the Ethernet Interface in the FreeBSD system is named '<tt/ed0/'. This is the default for NE-1000, NE-2000, WD/SMC models 8003, 8013 and Elite Ultra (8216) network adapters. <p>Other models of network adapters may have different device names in FreeBSD. Check the FAQ for specifics about your network adapter. If you're not sure of the device name of your adapter, check the FreeBSD FAQ to determine the device name for the card you have and substitute that name (i.e.: '<tt/de0/', '<tt/zp0/', or similar) in the following steps. <p>As was the case with the host name, the configuration for the FreeBSD system's Ethernet Interface may have been specified when the system was installed. To display the configuration for the interfaces in your FreeBSD system (Ethernet and others), enter the following command: <tscreen><verb> # ifconfig -a </verb></tscreen> (In layman's terms: "Show me the <BF/I/nter<BF/F/ace <BF/CONFIG/uration for my network devices.") <p>An example: <tscreen><verb> # ifconfig -a ed0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 ether 01:02:03:04:05:06 lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500 tun0: flags=8050<POINTOPOINT,RUNNING, MULTICAST> mtu 1500 sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552 ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet 127.0.0.1 netmask 0xff000000 # _ </verb></tscreen> <p>In this example, the following devices were displayed:<p> <tt/ed0:/ The Ethernet Interface<p> <tt/lp0:/ The Parallel Port Interface (ignored in this guide)<p> <tt/tun0:/ The "tunnel" device; <em/This is the one user-mode ppp uses!/<p> <tt/sl0:/ The SL/IP device (ignored in this guide)<p> <tt/ppp0:/ Another PPP device (for kernel ppp; ignored in this guide)<p> <tt/lo0:/ The "Loopback" device (ignored in this guide)<p> In this example, the 'ed0' device is up and running. The key indicators are: <enum> <item>Its status is "<tt/UP/", <item>It has an Internet ("<tt/inet/") address, (in this case, 192.168.1.1) <item>It has a valid Subnet Mask ("netmask"; 0xffffff00 is the same as 255.255.255.0), and <item>It has a valid broadcast address (in this case, 192.168.1.255). </enum> <p>If the line for the Ethernet card had shown something similar to: <tscreen><verb> ed0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 ether 01:02:03:04:05:06 </verb></tscreen> then the Ethernet card hasn't been configured yet. <p>If the configuration for the Ethernet interface is correct you can skip forward to Section 3.4, "Creating the list of other LAN hosts". Otherwise, proceed with the next section. <sect2> <heading>Configuring your Ethernet Interface</heading> <p><em><bf>Reminder: You must be logged in as 'root' to edit the system configuration files!</bf></em> <em><bf>CAUTION: If you mangle the system configuration files, chances are your system WILL NOT BOOT correctly! Be careful!</bf></em> <p>The configuration file that specifies settings for the network interfaces when the system boots is in <tt>/etc/rc.conf</tt>. Use the default text editor ('ee') to edit this file. <p>Logged in as user 'root' load <tt>/etc/rc.conf</tt> into the editor with the following command: <p> <tt> # ee /etc/rc.conf</tt> <p> About 20 lines from the top of <tt>/etc/rc.conf</tt> is the section that describes which network interfaces should be activated when the system boots. In the default configuration file the specific line that controls this is: <tscreen><verb> network_interfaces="lo0" # List of network interfaces (lo0 is loopback). </verb></tscreen> <p>You'll need to amend this line to tell FreeBSD that you want to add another device, namely the '<tt/ed0/' device. Change this line to read: <tscreen><verb> network_interfaces="lo0 ed0" # List of network interfaces (lo0 is loopback). </verb></tscreen> <p>(Note the space between the definition for the loopback device ("<tt/lo0/") and the Ethernet device ("<tt/ed0/")! <p><em><bf> Reminder: If your Ethernet card isn't named '<tt/ed0/', specify the correct device name here instead.</bf></em> <p>If you performed the installation of FreeBSD over a network connection then the '<tt/network_interfaces=/' line may already include a reference to your Ethernet adapter. If it is, verify that it is the correct device name. <p>Specify the Interface Settings for the Ethernet device ('<tt/ed0/'): <p>Beneath the line that specifies which interfaces should be activated are the lines that specify the actual settings for each interface. In the default <tt>/etc/rc.conf</tt> file is a single line that says: <tscreen><verb> ifconfig_lo0="inet 127.0.0.1" # default loopback device configuration. </verb></tscreen> <p>You'll need to add another line after that to specify the settings for your '<tt/ed0/' device. <p>If you performed the installation of FreeBSD over a network connection then there may already be an '<tt>ifconfig_ed0=</tt>' line after the loopback definition. If so, verify that it has the correct values. <p>For our sample configuration we'll insert a line immediately after the loopback device definition that says: <tscreen><verb> ifconfig_ed0="inet 192.168.1.1 netmask 255.255.255.0" </verb></tscreen> <p>When you've finished editing <tt>/etc/rc.conf</tt> to specify and configure the network interfaces the section should look really close to: <tscreen><verb> --- network_interfaces="ed1 lo0" # List of network interfaces (lo0 is loopback). ifconfig_lo0="inet 127.0.0.1" # default loopback device configuration. ifconfig_ed1="inet 192.168.1.1 netmask 255.255.255.0" --- </verb></tscreen> <p>Once all of the necessary changes to <tt>/etc/rc.conf</tt> have been made, press the 'Esc' key to invoke the control menu. Select "leave editor" and be sure to select "save changes" when prompted. <sect1> <heading>Enabling Packet Forwarding</heading> <p>By default the FreeBSD system will not forward IP packets between various network interfaces. In other words, routing functions (also known as gateway functions) are disabled. <p>If your intent is to use a FreeBSD system as stand-alone Internet workstation and not as a gateway between LAN nodes and your ISP you should skip forward to Section 3.4, "Creating the List of Other LAN Hosts". <p>If you intend for the PPP program to service the local FreeBSD box as well as LAN workstations (as a router) you'll need to enable IP forwarding. <p>To enable IP Packet forwarding you'll need to edit the <tt>/etc/rc.conf</tt> file. Load this file into your editor with the following command: <tscreen><verb> # ee /etc/rc.conf </verb></tscreen> <p>About 85 lines down from the top of the file will be the configuration section which controls IP forwarding, which will look like: <tscreen><verb> ===== gateway_enable="NO" # Set to YES if this host will be a gateway. ===== </verb></tscreen> <p>Change this line to read: <tscreen><verb> ===== gateway_enable="YES" # Set to YES if this host will be a gateway. ===== </verb></tscreen> and exit the editor (saving the changes!). <p><em><bf>NOTE: This line may already be set to '<tt/gateway_enable="YES"/' if IP forwarding was enabled when the FreeBSD system was installed.</bf></em> <sect1> <heading>Creating the List of other LAN Hosts(<tt>/etc/hosts</tt>)</heading> <p>The final step in configuring the LAN side of the FreeBSD system is to create a list of the names and TCP/IP addresses of the various systems that are connected to the Local Area Network. This list is stored in the '<tt>/etc/hosts</tt>' file. <p>The default version of this file has only a single host name listing in it: the name and address of the loopback device ('lo0'). By networking convention, this device is always named "localhost" and always has an IP address of 127.0.0.1. (See the interface configuration example in Section 3.2.) <p>To edit the <tt>/etc/hosts</tt> file enter the following command: <tscreen><verb> # ee /etc/hosts </verb></tscreen> <p>Scroll all the way to the bottom of the file (paying attention to the comments along the way; there's some good information there!) and enter (assuming our sample network) the following IP addresses and host names: <tscreen><verb> 192.168.1.1 curly curly.my.domain # FreeBSD System 192.168.1.2 larry larry.my.domain # Windows '95 System 192.168.1.3 moe moe.my.domain # Windows for Workgroups System 192.168.1.4 shemp shemp.my.domain # Windows NT System </verb></tscreen> <p>(No changes are needed to the line for the '<tt>127.0.0.1 localhost</tt>' entry.) <p>Once you've entered these lines, press the 'Esc' key to invoke the control menu. Select "leave editor" and be sure to select "save changes" when prompted. <sect1> <heading>Testing the FreeBSD system</heading> <p>Congratulations! Once you've made it to this point, the FreeBSD system is configured as a network-connected UNIX system! If you made any changes to the <tt>/etc/rc.conf</tt> file you should probably re-boot your FreeBSD system. This will accomplish two important objectives: <itemize> <item>Allow the changes to the interface configurations to be applied, and <item>Verify that the system restarts without any glaring configuration errors. </itemize> Once the system has been rebooted you should test the network interfaces. <p> <sect2> <heading>Verifying the operation of the loopback device</heading> <p>To verify that the loopback device is configured correctly, log in as 'root' and enter: <tscreen><verb> # ping localhost </verb></tscreen> <p>You should see: <tscreen><verb> # ping localhost PING localhost.my.domain. (127.0.0.1): 56 data bytes 64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=0.219 ms 64 bytes from 127.0.0.1: icmp_seq=1 ttl=255 time=0.287 ms 64 bytes from 127.0.0.1: icmp_seq=2 ttl=255 time=0.214 m [...] </verb></tscreen> messages scroll by until you hit Ctrl-C to stop the madness. <sect2> <heading>Verifying the operation of the Ethernet Device</heading> <p>To verify that the Ethernet device is configured correctly, enter: <tscreen><verb> # ping curly </verb></tscreen> You should see: <tscreen><verb> # ping curly PING curly.my.domain. (192.168.1.1): 56 data bytes 64 bytes from 192.168.1.1: icmp_seq=0 ttl=255 time=0.219 ms 64 bytes from 192.168.1.1: icmp_seq=1 ttl=255 time=0.200 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=255 time=0.187 ms [...] </verb></tscreen> messages. <p>One important thing to look at in these two examples is that the names (loopback and curly) correctly correlate to their IP addresses (127.0.0.1 and 192.168.1.1). This verifies that the <tt>/etc/hosts</tt> files is correct. <p>If the IP address for "curly" isn't 192.168.1.1 or the address for "localhost" isn't 127.0.0.1, return to Section 3.4 and review your entries in '<tt>/etc/hosts</tt>'. <p>If the names and addresses are indicated correctly in the result of the ping command but there are errors displayed then something is amiss with the interface configuration(s). Return to Section 3.1 and verify everything again. <p>If everything here checks out, proceed with the next section. </sect> <sect> <heading>Configuring the PPP Dial-Out Connection</heading> <p>There are two basic modes of operation of the ppp driver: "Interactive" and "Automatic". In Interactive mode you:<p> <itemize> <item>Manually establish a connection to your ISP, <item>Browse, surf, transfer files and mail, etc..., <item>Manually disconnect from your ISP. </itemize> <p>In Automatic mode, the PPP program silently watches what goes on inside the FreeBSD system and automagically connects and disconnects with your ISP as required to make the Internet a seamless element of your network. <p>In this section we'll address the configuration(s) for both modes with emphasis on configuring your `ppp` environment to operate in "Automatic" mode. <sect1> <heading>Backing up the original PPP configuration files</heading> <p>Before making any changes to the files which are used by PPP you should make a copy of the default files that were created when the FreeBSD system was installed. Log in as the 'root' user and perform the following steps: Change to the '<tt>/etc</tt> directory: <p><tt># cd /etc</tt> Make a backup copy the original files in the 'ppp' directory: <p><tt># cp -R ppp ppp.ORIGINAL</TT> <p>You should now be able to see both a '<tt>ppp</tt>' and a '<tt>ppp.ORIGINAL</tt>' subdirectory in the '<tt>/etc</tt>' directory. <sect1> <heading>Create your own PPP configuration files</heading> <p>By default, the FreeBSD installation process creates a number of sample configuration files in the /etc/ppp directory. Please take some time to review these files; they were derived from working systems and represent the features and capabilities of the PPP program. <p>I <em/strongly/ encourage you to learn from these sample files and apply them to your own configuration as necessary. <p>For detailed information about the `ppp` program, read the ppp manpage: <tscreen><verb> # man ppp </verb></tscreen> <p>For detailed information about the `chat` scripting language used by the PPP dialer, read the chat manpage: <tscreen><verb> # man chat </verb></tscreen> <p>The remainder of this section describes the recommended contents of the PPP configuration files. <sect2> <heading>The '<tt>/etc/ppp/ppp.conf</tt>' file</heading> <p>The '<tt>/etc/ppp/ppp.conf</tt>' file contains the information and settings required to set up a dial-out PPP connection. More than one configuration may be contained in this file. The FreeBSD handbook (XXX URL? XXX) describes the contents and syntax of this file in detail. <p>This section will describe only the minimal configuration to get a dial-out connection working. <p>Below is the /etc/ppp/ppp.conf file that we'll be using to provide a dial-out Internet gateway for our example LAN: <tscreen><verb> ################################################################ # PPP Configuration File ('/etc/ppp/ppp.conf') # # Default settings; These are always executed always when PPP # is invoked and apply to all system configurations. ################################################################ default: set device /dev/cuaa0 set speed 57600 disable pred1 deny pred1 disable lqr deny lqr set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0M0 OK-AT-OK\\dATDT\\T TIMEOUT 40 CONNECT" set redial 3 10 # # ################################################################ # # For interactive mode use this configuration: # # Invoke with `ppp -alias interactive` # ################################################################ interactive: set authname Your_User_ID_On_Remote_System set authkey Your_Password_On_Remote_System set phone 1-800-123-4567 set timeout 300 set openmode active accept chap # ################################################################ # # For demand-dial (automatic) mode we'll use this configuration: # # Invoke with: 'ppp -auto -alias demand' # ################################################################ demand: set authname Your_User_ID_On_Remote_System set authkey Your_Password_On_Remote_System set phone 1-800-123-4567 set timeout 300 set openmode active accept chap set ifaddr 127.1.1.1/0 127.2.2.2/0 255.255.255.0 add 0 0 127.2.2.2 ################################################################ # End of /etc/ppp/ppp.conf </verb></tscreen> This file, taken verbatim from a working system, has three relevant configuration sections: <sect3> <heading>The "<tt>default</tt>" Section</heading> <p>The '<tt>default:</tt>' section contains the values and settings used by every other section in the file. Essentially, this section is implicitly added to the configuration lines to each other section. <p>This is a good place to put "global defaults" applicable to all dial-up sessions; especially modem settings and dialing prefixes which typically don't change based on which destination system you're connecting to. <p>Following are the descriptions of each line in the "default" section of the sample '<tt>/etc/ppp/ppp.conf</tt>' file: <tscreen><verb> set device /dev/cuaa0 </verb></tscreen> This statement informs the PPP program that it should use the first serial port. Under FreeBSD the '<tt>/dev/cuaa0</tt>' device is the same port that's known as "<tt>COM1:</tt>" under DOS, Windows, Windows 95, etc.... <p>If your modem is on <tt>COM2:</tt> you should specify '<tt>/dev/cua01</tt>; <tt>COM3:</tt> would be '<tt>/dev/cua02</tt>'. <tscreen><verb> set speed 57600 </verb></tscreen> This line sets the transmit and receive speed for the connection between the serial port and the modem. While the modem used for this configuration is only a 28.8 device, setting this value to 57600 lets the serial link run at a higher rate to accommodate higher throughput as a result of the data compression built into late-model modems. If you have trouble communicating with your modem, try setting this value to 38400 or even as low as 19200. <tscreen><verb> disable pred1 deny pred1 </verb></tscreen> These two lines disable the "CCP/Predictor type 1" compression features of the PPP program. The current version of `ppp` supports data compression in accordance with draft Internet standards. Unfortunately many ISPs use equipment that does not support this capability. Since most modems try to perform on-the-fly compression anyway you're probably not losing much performance by disabling this feature on the FreeBSD side and denying the remote side from forcing it on you. <tscreen><verb> disable lqr deny lqr </verb></tscreen> These two lines control the "Line Quality Reporting" functions which are part of the complete Point-to-Point (PPP) protocol specification. (See RFC-1989 for details.) The first line, "disable lqr", instructs the PPP program to not attempt to report line quality status to the device on the remote end. The second line, "deny lqr", instructs the PPP program to deny any attempts by the remote end to reports line quality. As most modern dial-up modems have automatic error correction and detection and LQR reporting is not fully implemented in many vendor's products it's generally a safe bet to include these two lines in the default configuration. <tscreen><verb> set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0M0 OK-AT-OK\\dATDT\\T TIMEOUT 40 CONNECT" </verb></tscreen> <em>NOTE: (This statement should appear on a single line; ignore any line wrapping that may appear in this document.)</em> This line instructs the PPP program how to dial the modem and specifies some rudimentary guidelines for doing so: <itemize> <item>Attempts to dial should fail if the modem returns a "BUSY" result code, <item>Attempts to dial should also fail if the modem returns a "NO CARRIER" result code, <item>The PPP program should expect each of the following events to complete within a 5-second timeout period: <itemize> <item>The PPP program will initially expect nothing (specified above by the \"\" portion of the statement) from the modem <item>The program will send the modem initialization string "ATE1Q0M0" to the modem and await a response of "OK". If a response is not received, the program should send an attention command to the modem ("AT") and look again for a response of "OK", <item>The program should delay for one second (specified by the "\\d" part of the statement, and send the dialing string to the modem. The "ATDT" portion of the statement is the standard modem prefix to dial using tone-dialing; if you do not have touch-tone service on your local phone line, replace the "ATDT" with "ATDP". The "\\T" string is a placeholder for the actual phone number (which will be automatically inserted as specified by the "set dial 123-4567"). </itemize> <item>Finally, before a (maximum) timeout of 40 seconds, the PPP program should expect to see a "CONNECT" result code returned from the modem. </itemize> A failure at any point in this dialog will be interpreted as a dialing failure and the PPP program will fail to connect. (For a detailed description of the mini-scripting language used by the PPP dialer, refer to the "chat" manpage.) <tscreen><verb> set redial 3 10 </verb></tscreen> This line specifies that if a dial connection cannot immediately be made the PPP program should retry (up to 3 times if necessary) with a delay of 10 seconds between redialing attempts. <sect3> <heading>The "<tt>interactive</tt>" Section</heading> <p>The '<tt>interactive:</tt>' section contains the values and settings used to set up an "interactive" PPP session with a specific remote system. Settings in this section will have the lines included in the "default" section included automatically. <p>The example cited in this section of the guide presumes that you'll be connecting to a remote system that understands how to authenticate a user without any fancy scripting language. That is, this sample uses the CHAP protocol to set up the connection. <p>A good rule of thumb is that if the Windows '95 dialer can set up a connection by just clicking the "Connect" button this sample configuration should work OK. <p>If, on the other hand, when you connect to your ISP using Microsoft Windows '95 Dial-Up Networking you need to resort to using the "Dial Up Scripting Tool" from the Microsoft Plus! pack or you have to select "Bring up a terminal windows after dialing" in the Windows '95 connection options then you'll need to look at the sample PPP configuration files and the ppp manpage for examples of "expect / response" scripting to make your ISP connection. The "set login" command is used for this purpose. <p>Or even better, find an ISP who knows how to provide PAP or CHAP authentication! <p>The configuration examples shown here have been successfully used to connect to: <itemize> <item>Various Shiva LanRovers <item>The IBM Network (<url url="http://www.ibm.net">) <item>AT&T WorldNet (<url url="http://att.com/worldnet">) <item>Erol's (<url url="http://www.erols.com">) </itemize> Following are descriptions for each line in the "interactive" section of the sample '<tt>/etc/ppp/ppp.conf</tt>' file: <tscreen><verb> set authname Your_User_ID_On_Remote_System </verb></tscreen> This line specifies the name you would use to log in to the remote system. <tscreen><verb> set authkey Your_Password_On_Remote_System </verb></tscreen> This is the password you'd use to log in to the remote system. <tscreen><verb> set phone 1-800-123-4567 </verb></tscreen> This is the phone number of the remote system. If you're inside a PBX you can prepend '<tt>9, </tt>' to the number here. <tscreen><verb> set timeout 300 </verb></tscreen> This tells the PPP program that it should automatically hang up the phone if no data has be exchanged for 300 seconds (5 minutes). You may wish to tailor this number to your specific requirements. <tscreen><verb> set openmode active </verb></tscreen> This tells the PPP program that once the modems are connected it should immediately attempt to negotiate the connection. Some remote sites do this automatically, some don't. This instructs your side of the link to take the initiative and try to set up the connection. <tscreen><verb> accept chap </verb></tscreen> This tells the PPP program to use the "Challenge-Handshake Authentication Protocol" to authenticate you. The values exchanged between the local and remote side for UserID and password are taken from the 'authname' and 'authkey' entries above. <sect3> <heading>The "<tt>demand</tt>" Section</heading> <p>The "<tt>demand</tt>" section contains the values and settings used to set up a "Dial-on-demand" PPP session with a specific remote system. Settings in this section will also have the lines included in the "default" section included automatically. <p>Except for the last two lines in this section it is identical to the configuration section which defines the "interactive" configuration. <p>As noted in Paragraph ???, the examples cited in this section of the guide presume that you'll be connecting to a remote system that understands how to use the CHAP protocol to set up the connection. <p>Following are descriptions for each line in the "demand" section of the sample '<tt>/etc/ppp/ppp.conf</tt>' file: <tscreen><verb> set authname Your_User_ID_On_Remote_System </verb></tscreen> This line specifies the name you would use to log in to the remote system. <tscreen><verb> set authkey Your_Password_On_Remote_System </verb></tscreen> This is the password you'd use to log in to the remote system. <tscreen><verb> set phone 1-800-123-4567 </verb></tscreen> This is the phone number of the remote system. <tscreen><verb> set timeout 300 </verb></tscreen> This tells the PPP program that it should automatically hang up the phone if no data has be exchanged for 300 seconds (5 minutes). You may wish to tailor this number to your specific requirements. <tscreen><verb> set openmode active </verb></tscreen> This tells the PPP program that once the modems are connected it should immediately attempt to negotiate the connection. Some remote sites do this automatically, some don't. This instructs your side of the link to take the initiative and try to set up the connection. <tscreen><verb> accept chap </verb></tscreen> This tells the PPP program to use the "Challenge-Handshake Authentication Protocol" to authenticate you. The values exchanged between the local and remote side for UserID and password are taken from the 'authname' and 'authkey' entries above. <tscreen><verb> set ifaddr 127.1.1.1/0 127.2.2.2/0 255.255.255.0 </verb></tscreen> This command sets up a pair of "fake" IP addresses for the local and remote sides of the PPP link. It instructs the PPP program to create an IP address of 127.1.1.1 for the local side of the '<tt/tun0/' (tunnel) device (refer back to section ?? for a description of this device) and 127.2.2.2 for the remote side. Appending '<tt>/0</tt>' to each address tells the PPP program that zero of the bits that make up these addresses are significant and can (in fact, must!) be negotiated between the local and remote systems when the link is established. The 255.255.255.0 string tells the PPP program what Subnet mask to apply to these pseudo-interfaces. <p>Remember, we've assumed that your ISP provides the IP addresses for both ends of the link! If your ISP assigned you a specific IP address that you should use on your side when configuring your system, enter that IP address here <em/instead/ of <tt>127.1.1.1</tt>. Conversly, if your ISP gave you a specific IP address that he uses on his end you should enter that IP address here <em/instead/ of <tt>127.2.2.2</tt>. In both cases, it's probably a good idea to leave the '<tt>/0</tt>' on the end of each address. This gives the PPP program the opportunity to change the address(es) of the link if it <em/has/ to. <tscreen><verb> add 0 0 127.2.2.2 </verb></tscreen> This last line tells the PPP program that it should add a default route for IP traffic that points to the (fake) IP address of the ISP's system. <em><bf>Note: If you used an ISP-specified address instead of <tt>127.2.2.2</tt> on the preceeding line, use the same number here instead of <tt>127.2.2.2</tt></bf></em>. <p>By adding this "fake" route for IP traffic, the PPP program can, while idle: <itemize> <item>Accept packets that FreeBSD doesn't already know how to forward, <item>Establish a connection to the ISP "<em/on-the-fly/", <item>Reconfigure the IP addresses of the local and remote side of the link, <item>Forward packets between your workstation and the ISP. </itemize> automatically! <p>Once the number of seconds specified by the timeout value in the "default" section have elapsed without any TCP/IP traffic the PPP program will automatically close the dial-up connection and the process will begin again. <sect2> <heading>The '<tt>/etc/ppp/ppp.linkup</tt>' file</heading> <p>The other file needed to complete the PPP configuration is found in '<tt>/etc/ppp/ppp.linkup</tt>'. This file contains instructions for the PPP program on what actions to take after a dial-up link is established. In the case of dial-on-demand configurations the PPP program will need to delete the default route that was created to the fake IP address of the remote side (127.2.2.2 in our example in the previous section) and install a new default route that points the actual IP address of the remote end (discovered during the dial-up connection setup). A representative '<tt>/etc/ppp/ppp.linkup</tt>' file: <tscreen><verb> #########################################################################= # PPP Link Up File ('/etc/ppp/ppp.linkup') # # This file is checked after PPP establishes a network connection. # # This file is searched in the following order. # # 1) First, the IP address assigned to us is searched and # the associated command(s) are executed. # # 2) If the IP Address is not found, then the label name specified at # PPP startup time is searched and the associated command(s) # are executed. # # 3) If neither of the above are found then commands under the label # 'MYADDR:' are executed. # #########################################################################= # # This section is used for the "demand" configuration in # /etc/ppp/ppp.conf: demand: delete ALL add 0 0 HISADDR # # All other configurations in /etc/ppp/ppp.conf use this: # MYADDR: add 0 0 HISADDR ######################################################################## # End of /etc/ppp/ppp.linkup </verb></tscreen> Notice that there is a section in this file named "demand:", identical to the configuration name used in the '<tt>/etc/ppp/ppp.conf</tt>' file. This section instructs the PPP program that once a link is established using this configuration, it must: <enum> <item>Remove any IP routing information that the PPP program has created <item>Add a default route the remote end's actual address. </enum> <p>It's critical that those configurations in '<tt>/etc/ppp/ppp.conf</tt>' which include the '<tt/set ifaddr/' and '<tt/add 0 0/' statements (i.e.: those configurations used for Dial-on-Demand configurations) execute the "delete ALL" and "add 0 0 HISADDR" commands in <tt>/etc/ppp/ppp.linkup</tt>. <p><em><bf>This is the mechanism that controls the actual on-demand configuration of the link.</bf></em> <p>All configurations not explicitly named in <tt>/etc/ppp/ppp.linkup</tt> will use whatever commands are in the "MYADDR:" section of the file. This is where non-Demand-Dial configurations (such as our "interactive:" sample) will fall through to. This section simply adds a default route to the ISP's IP address (at the remote end). <sect1> <heading>IP Aliasing</heading> <p>All of the configuration steps described thus far are relevant to any FreeBSD system which will be used to connect to an ISP via dial-up connection. <p>If your sole objective in reading this guide is to connect your FreeBSD box to the Internet using dial-out ppp you can proceed to Section 6, "Testing the Network". One very attractive feature of the PPP program in on-demand mode is its ability to route IP traffic between other systems on the Local Area Network automatically. This feature is known by various names, "<em/IP Aliasing/", "<em/Network Address Translation/", "<em/Address Masquerading/" or "<em/Transparent Proxying/". <p>Regardless of the terminology used, this mode is not, however, automatic. If the PPP program is started normally then the program will not forward packets between LAN interface(s) and the dial-out connection. In effect, only the FreeBSD system is connected to the ISP; other workstations cannot "share" the same connection. For example, if the program is started with either of the following command lines: <p><tt># ppp interactive (Interactive mode)</tt><p> or <p><tt># ppp -auto demand (Dial-on-Demand mode)</tt> <p>then the system will function as an Internet-connected workstation <em/only/ for the FreeBSD box. To start the PPP program as a gateway between LAN resources and the Internet, one of the following command lines would be used instead: <p><tt># ppp -alias interactive (Interactive mode)</tt><p> or <p><tt># ppp -auto -alias demand (Dial-on-Demand mode)</tt> <p>You can alternatively use the command <tt/``alias enable yes''/ in your ppp configuration file (refer to the man page for details). <p>Keep this in mind if you intend to proceed with Section 5, "Configuring Windows Systems". </sect> <sect> <heading>Configuring Windows Systems</heading> <p>As indicated in Section 1, our example network consists of a FreeBSD system ("Curly") which acts as a gateway (or router) between a Local Area Network consisting of two different flavors of Windows Workstations. In order for the LAN nodes to use Curly as a router they need to be properly configured. Note that this section does not explain how to configure the Windows workstations for Dial-Up networking. If you need a good explanation of that procedure, I recommend <url url="http://www.aladdin.co.uk/techweb">. <sect1> <heading> Configuring Windows 95</heading> <p>Configuring Windows 95 to act as an attached resource on your LAN is relatively simple. The Windows 95 network configuration must be slightly modified to use the FreeBSD system as the default gateway to the ISP. Perform the following steps: <p><bf>Create the Windows 95 "hosts" file:</bf> <p>In order to connect to the other TCP/IP systems on the LAN you'll need to create an identical copy of the "hosts" file that you installed on the FreeBSD system in Section 3.4. <itemize> <item>Click the "Start" button; select "Run..."; enter "notepad \WINDOWS\HOSTS" (without the quotes) and click "OK" <item>In the editor, enter the addresses and system names from the hosts file shown in Section 3.4. <item>When finished editing, close the notepad application (making sure that you save the file!). </itemize> <p><bf>Configure the Windows 95 TCP/IP Network Configuation settings</bf>: <itemize> <item>Click the "Start" button on the taskbar; select "Settings" and "Control Panel". <item>Double-click the "Network" icon to open it.<p> The settings for all Network Elements are displayed. <item>With the "Configuration" tab selected, scroll down the list of installed components and highlight the "TCP/IP-><em/YourInterfaceType/" line (where "<em/YourInterfaceType/" is the name or type of Ethernet adapter in your system). <p>If TCP/IP is not listed in the list of installed network components, click the "Add" button and install it before proceeding. <p>(Hint: "Add | Protocol | Microsoft | TCP/IP | OK") <item>Click on the "Properties" button to display a list of the settings associated with the TCP component. </itemize> <p><bf>Configure the IP Address Information:</bf> <itemize> <item>Click the "IP Address" tab <item>Click the "Specify an IP address" radio button. <p>(In our example LAN the Windows 95 system is the one we've called "Larry".) <item>In the "IP Address" field enter "192.168.1.2". <item>Enter 255.255.255.0 in the "Subnet Mask" field. </itemize> <p><bf>Configure the Gateway information:</bf> <itemize> <item>Click on the "Gateway" tab <p>For our example network the FreeBSD box will be acting as our gateway to the Internet (routing packets between the Ethernet LAN and the PPP dial-up connection. Enter the IP address of the FreeBSD Ethernet interface, 192.168.1.1, in the "New gateway" field and click the "Add" button. If any other gateways are defined in the "Installed gateways" list you may wish to consider removing them. </itemize> <p><bf>Configure the DNS Information:</bf> <p>This guide assumes that your Internet Service Provider has given you a list of Domain Name Servers (or "DNS Servers") that you should use. If you wish to run a DNS server on your local FreeBSD system, refer to Section 6, "Exercise for the Interested Student" for tips on setting up DNS on your FreeBSD system. <itemize> <item>Click the "DNS Configuration" tab <item>Make sure that the "Enable DNS" radio button is selected. <p>(If this button is not selected only the entries that we put in the host file(s) will be available and your Net-Surfing will not work as you expect!) <item>In the "Host" field enter the name of the Windows 95 box, in this case: "Larry". <item>In the "Domain" field enter the name of our local network, in this case: "my.domain" <item>In the "DNS Server Search Order" section, enter the IP address of the DNS server(s) that your ISP provided, clicking the "Add" button after every address is entered. Repeat this step as many times as necessary to add all of the addresses that your ISP provided. </itemize> <p><bf>Other Windows 95 TCP/IP options:</bf> <p>For our purposes the settings under the "Advanced", "WINS Configuration" and "Bindings" tabs are not necessary. <p>If you wish to use the Windows Internet Naming Service ("WINS") your attention is invited to <url url="http://www.localnet.org"> for more information about WINS settings, specifically regarding sharing files transparently across the Internet. <p><bf>Mopping up:</bf> <itemize> <item>Click on the "OK" button to close the TCP/IP Properties window. <item>Click on the "OK" button to close the Network Control Panel. <item>Reboot your computer if prompted to do so. </itemize> <p> That's it! <sect1> <heading>Configuring Windows NT</heading> <p>Configuring Windows NT to act as a LAN resource is also relatively straightforward. The procedures for configuring Windows NT are similar to Windows 95 with minor exceptions in the user interface. <p>The steps shown here are appropriate for a Windows NT 4.0 Workstation, but the principles are the same for NT 3.5x. You may wish to refer to the "Configuring Windows for Workgroups" section if you're configuring Windows NT 3.5<it/x/, since the user interface is the same for NT 3.5 and WfW. <p>Perform the following steps: <p><bf>Create the Windows NT "hosts" file:</bf> <p>In order to connect to the other TCP/IP systems on the LAN you'll need to create an identical copy of the "hosts" file that you installed on the FreeBSD system in Section 3.4 <itemize> <item>Click the "Start" button; select "Run..."; enter "notepad \WINDOWS\SYSTEM\DRIVERS\ETC\HOSTS" (without the quotes) and click "OK" <item>In the editor, enter the addresses and system names from Section 3.4. <item>When finished editing, close the notepad application (making sure that you save the file!). </itemize> <p><bf>Configure the Windows NT TCP/IP Network Configuation settings</bf>: <itemize> <item>Click the "Start" button on the taskbar; select "Settings" and "Control Panel". <item>Double-click the "Network" icon to open it. <item>With the "Identification" tab selected, verify the "Computer Name" and "Workgroup" fields. In this example we'll use "Shemp" for the name and "Stooges" for the workgroup. Click the "Change" button and amend these entries as necessary. <item>Select the "Protocols" tab. <p>The installed Network Protocols will be displayed. There may be a number of protocols listed but the one of interest to this guide is the "TCP/IP Protocol". If "TCP/IP Protocol" is not listed, click the "Add" button to load it. <p>(Hint: "Add | TCP/IP Protocol | OK") <item>Highlight "TCP/IP Protocol" and click the "Properties" button. <p>Tabs for specifying various settings for TCP/IP will be displayed. </itemize> <p><bf>Configuring the IP Address:</bf> <p>Make sure that the Ethernet Interface is shown in the "Adapter" box; if not, scroll through the list of adapters until the correct interface is shown. <itemize> <item>Click the "Specify an IP address" radio button to enable the three text boxes. <p>In our example LAN the Windows NT system is the one we've called "Shemp" <item>In the "IP Address" field enter "192.168.1.4". <item>Enter 255.255.255.0 in the "Subnet Mask" field. </itemize> <p><bf>Configure the Gateway information:</bf> <p>For our example network the FreeBSD box will be acting as our gateway to the Internet (routing packets between the Ethernet LAN and the PPP dial-up connection. <itemize> <item>Enter the IP address of the FreeBSD Ethernet interface, 192.168.1.1, in the "New gateway" field and click the "Add" button. <p>If any other gateways are defined in the "Installed gateways" list you may wish to consider removing them. </itemize> <p><bf>Configuring DNS:</bf> <p>Again, this guide assumes that your Internet Service Provider has given you a list of Domain Name Servers (or "DNS Servers") that you should use. If you wish to run a DNS server on your local FreeBSD system, refer to Section 6, "Exercise for the Interested Student" for tips on setting up DNS on your FreeBSD system. <itemize> <item>Click the "DNS" tab <item>In the "Host Name" field enter the name of the Windows NT box, in this case: "Shemp". <item>In the "Domain" field enter the name of our local network, in this case: "my.domain" <item>In the "DNS Server Search Order" section, enter the IP address of the DNS server that your ISP provided, clicking the "Add" button after every address is entered. Repeat this step as many times as necessary to add all of the addresses that your ISP provided. </itemize> <p><bf>Other Windows NT TCP/IP options:</bf> <p>For our purposes the settings under the "WINS Address" and "Routing" tabs are not used. <p>If you wish to use the Windows Internet Naming Service ("WINS") your attention is invited to <url url="http://www.localnet.org"> for more information about WINS settings, specifically regarding sharing files transparently across the Internet. <p><bf>Mopping up:</bf> <itemize> <item>Click on the "OK" button to close the TCP/IP Properties section. <item>Click on the "Close" button to close the Network Control Panel. <item>Restart your computer if prompted to do so. </itemize> <p>That's it! <sect1> <heading>Configuring Windows for Workgroups</heading> <p>Configuring Windows for Workgroups to act as a network client requires that the Microsoft TCP/IP-32 driver diskette has been installed on the workstation. The TCP/IP drivers are not included with the WfW CD or diskettes; if you need a copy they're available at <url url="ftp://ftp.microsoft.com:/peropsys/windows/public/tcpip">. <p>Once the TCP/IP drivers have been loaded, perform the following steps: <p><bf>Create the Windows for Workgroups "hosts" file:</bf> <p>In order to connect to the other TCP/IP systems on the LAN you'll need to create an identical copy of the "hosts" file that you installed on the FreeBSD system in Section 3.4. <itemize> <item>In Program Manager, click the "File" button; select "Run"; and enter: "notepad \WINDOWS\HOSTS" (without the quotes) and click "OK" <item>In the editor, enter the addresses and system names from the hosts file shown in Section 3.4. <item>When finished editing, close the notepad application (making sure that you save the file!). </itemize> <p><bf>Configure the Windows 95 TCP/IP Network Configuation settings</bf> <itemize> <item>In the main window of Program Manager, open the "Network" group by double-clicking the icon. <item>Double click on the "Network Setup" icon. <item>In the "Network Drivers Box" double-click the "Microsoft TCP/IP-32" entry. </itemize> <p><bf>Configure the Windows for Workgroups IP Address:</bf> <p>Ensure the correct Ethernet Interface is selected in the "Adapter" list. If not, scroll down until it is displayed and select it by clicking on it. <itemize> <item>Ensure that the "Enable Automatic DHCP Configuration" check box is blank. If it is checked, click it to remove the "X". <item>In our example LAN the Windows for Workgroups system is the one we've called "Moe"; in the "IP Address" field enter "192.168.1.3". <item>Enter 255.255.255.0 in the "Subnet Mask" field. </itemize> <p><bf>Configure the Gateway information:</bf> <p>For our example network the FreeBSD box will be acting as our gateway to the Internet (routing packets between the Ethernet LAN and the PPP dial-up connection). <itemize> <item>Enter the IP address of the FreeBSD system, 192.168.1.1, in the "Default Gateway" field. </itemize> <p><bf>Configuring DNS:</bf> <p>Again, this guide assumes that your Internet Service Provider has given you a list of Domain Name Servers (or "DNS Servers") that you should use. If you wish to run a DNS server on your local FreeBSD system, refer to Section 6, "Exercise for the Interested Student" for tips on setting up DNS on your FreeBSD system. <itemize> <item>Click the "DNS" button. <item>In the "Host Name" field enter the name of the Windows for Workgroups box, in this case: "Moe". <item>In the "Domain" field enter the name of our local network, in this case: "my.domain" <item>In the "Domain Name Service (DNS) Search Order" section, enter the IP address of the DNS server that your ISP provided, clicking the "Add" button after each address is entered. Repeat this step as many times as necessary to add all of the addresses that your ISP provided. <item>Click on the "OK" button to close the DNS Configuration window. </itemize> <p><bf>Mopping up:</bf> <itemize> <item>Click on the "OK" button to close the TCP/IP Configuration window. <item>Click on the "OK" button to close the Network Setup window. <item>Reboot your computer if prompted. </itemize> <p>That's it! <sect> <heading>Testing the Network</heading> <p> Once you've completed that appropriate tasks above you should have a functioning PPP gateway to the Internet. <sect1> <heading>Testing the Dial-Up link:</heading> <p> The first thing to test is that the connection is being made between your modem and the ISP. <sect1> <heading>Testing the Ethernet LAN</heading> <p> *** TBD *** </sect> <sect> <heading>Exercises for the Interested Student</heading> <p> <sect1> <heading>Creating a mini-DNS system</heading> <p>While managing a Domain Name Service (DNS) hierarchy can be a black art, it is possible to set up a Mini-DNS server on the FreeBSD system that also acts as your gateway to your ISP. <p>Building on the files in <tt>/etc/namedb</tt> when the FreeBSD system was installed it's possible to create a name server that is both authoritative for the example network shown here as well as a front-door to the Internet DNS architecture. <p>In this minimal DNS configuration, only three files are necessary: <tscreen><verb> /etc/namedb/named.boot /etc/namedb/named.root /etc/namedb/mydomain.db </verb></tscreen> <p>The <tt>/etc/namedb/named.root</tt> file is automatically installed as part of the FreeBSD base installation; the other two files must be created manually. <sect2> <heading>The <tt>/etc/namedb/named.boot</tt> file</heading> <p>The <tt>/etc/namedb/named.boot</tt> file controls the startup settings of the DNS server. Esentially, it tells the Name Server: <enum> <item>Where to find configuration files, <item>What "domain names" it's responsible for, and <item>Where to find other DNS servers. </enum> <p>Using the '<tt/ee/' editor, create a <tt>/etc/namedb/named.boot</tt> with the following contents: <tscreen><verb> ; boot file for mini-name server directory /etc/namedb ; type domain source host/file backup file cache . named.root primary my.domain. mydomain.db </verb></tscreen> <p>Lines that begin with a semi-colon are comments. The significant lines in this file are: <itemize> <item><tt>directory /etc/namedb</tt> <p>Tells the Name Server where to find the configuration files referenced in the remaining sections of the '<tt>/etc/namedb/named.boot</tt>' file. <item><tt>cache . named.root</tt> <p>Tells the Name Server that the list of "Top-Level" DNS servers for the Internet can be found in a file called '<tt>named.root</tt>'. (This file is included in the base installation and its contents are not described in this document.) <item><tt>primary my.domain. mydomain.db</tt> <p>Tells the Name Server that it will be "authoritative" for a DNS domain called "my.domain" and that a list of names and IP addresses for the systems in "my.domain" (the local network) can be found in a file named '<tt>mydomain.db</tt>'. </itemize> <p>Once the <tt>/etc/namedb/named.boot</tt> file has been created and saved, proceed to the next section to create the <tt>/etc/namedb/mydomain.db</tt> file. <sect2> <heading>The <tt>/etc/namedb/mydomain.db</tt> file</heading> <p>The <tt>/etc/namedb/mydomain.db</tt> file lists the names and IP addresses of <em/every/ system in the Local Area Network. <p><em>For a detailed description of the statements used in this file, refer to the <tt/named/ manpage.</em> <p>The <tt>/etc/namedb/mydomain.db</tt> file for our minimal DNS server has the following contents: <tscreen><verb> @ IN SOA my.domain. root.my.domain. ( 961230 ; Serial 3600 ; Refresh 300 ; Retry 3600000 ; Expire 3600 ) ; Minimum IN NS curly.my.domain. curly.my.domain. IN A 192.168.1.1 # The FreeBSD box larry.my.domain. IN A 192.168.1.2 # The Win'95 box moe.my.domain. IN A 192.168.1.3 # The WfW box shemp.my.domain. IN A 192.168.1.4 # The Windows NT box $ORIGIN 1.168.192.IN-ADDR.ARPA IN NS curly.my.domain. 1 IN PTR curly.my.domain. 2 IN PTR larry.my.domain. 3 IN PTR moe.my.domain. 4 IN PTR shemp.my.domain. $ORIGIN 0.0.127.IN-ADDR.ARPA IN NS curly.my.domain. 1 IN PTR localhost.my.domain. </verb></tscreen> <p>In simple terms, this file declares that the local DNS server is: <itemize> <item>The Start of Authority for ("SOA") for a domain called 'my.domain', <item>The Name Server ("NS") for 'my.domain', <item>Responsible for the reverse-mapping for all IP addresses that start with '192.168.1.' and '127.0.0.' ("$ORIGIN ...") </itemize> <p>To add workstation entries to this file you'll need to add two lines for each system; one in the top section where the name(s) are mapped into Internet Addresses ("IN A"), and another line that maps the addresses back into names in the <tt>$ORIGIN 1.168.192.IN-ADDR.ARPA</tt> section. <sect2> <heading>Starting the DNS Server</heading> <p>By default the DNS server ('<tt>/usr/sbin/named</tt>') is not started when the system boots. You can modify this behavior by changing a single line in '<tt>/etc/rc.conf</tt>' as follows: <p> Using the '<tt/ee/' editor, load <tt>/etc/rc.conf</tt>. Scroll down approximately 40 lines until you come to the section that says: <tscreen><verb> --- named_enable="NO" # Run named, the DNS server (or NO). named_flags="-b /etc/namedb/named.boot" # Flags to named (if enabled). --- </verb></tscreen> Change this section to read: <tscreen><verb> --- named_enable="YES" # Run named, the DNS server (or NO). named_flags="-b /etc/namedb/named.boot" # Flags to named (if enabled). --- </verb></tscreen> Save the file and reboot. Alternatively, start the Name Server daemon by entering the following command: <tscreen><verb> # named -b /etc/namedb/named.boot </verb></tscreen> <p>Whenever you modify any of the files in <tt>/etc/namedb</tt> you'll need to kick-start the Name Server process to make it pick up the modifications. This is performed with the following system command: <tscreen><verb> # kill -HUP `cat /var/run/named.pid` </verb></tscreen> <sect1> <heading>Playing with PPP filters</heading> <p>The PPP program has the ability to apply selected filtering rules to the traffic it routes. While this is not nearly as secure as a formal firewall it does provide some access control as to how the link is used. <p>('<tt>man ipfw</tt>' for information on setting up a more secure FreeBSD system.) <p>The complete documentation for the various filters and rules under PPP are availabe in the PPP manpage. <p>There are four distinct classes of rules which may be applied to the PPP program: <itemize> <item><tt/afilter/ - Access Counter (or "Keep Alive") filters <p>These control which events are ignored by the <tt/set timeout=/ statement in the configuration file. <item><tt/dfilter/ - Dialing filters <p>These filtering rules control which events are ignored by the demand-dial mode of PPP. <item><tt/ifilter/ - Input filters <p>Control whether incoming packets should be discarded or passed into the system. <item><tt/ofilter/ - Output filters <p>Control whether outgoing packets should be discarded or passed into the system. </itemize> <p> What follows is a snippet from an operating system which provides a good foundation for "normal" Internet operations while preventing PPP from pumping <em/all/ data over the dial-up connection. Comments briefly describe the logic of each rule set: <tscreen><verb> # # KeepAlive filters # Don't keep Alive with ICMP,DNS and RIP packet # set afilter 0 deny icmp set afilter 1 deny udp src eq 53 set afilter 2 deny udp dst eq 53 set afilter 3 deny udp src eq 520 set afilter 4 deny udp dst eq 520 set afilter 5 permit 0/0 0/0 # # Dial Filters: # Note: ICMP will trigger a dial-out in this configuration! # set dfilter 0 permit 0/0 0/0 # # Allow ident packet pass through # set ifilter 0 permit tcp dst eq 113 set ofilter 0 permit tcp src eq 113 # # Allow telnet connection to the Internet # set ifilter 1 permit tcp src eq 23 estab set ofilter 1 permit tcp dst eq 23 # # Allow ftp access to the Internet # set ifilter 2 permit tcp src eq 21 estab set ofilter 2 permit tcp dst eq 21 set ifilter 3 permit tcp src eq 20 dst gt 1023 set ofilter 3 permit tcp dst eq 20 # # Allow access to DNS lookups # set ifilter 4 permit udp src eq 53 set ofilter 4 permit udp dst eq 53 # # Allow DNS Zone Transfers # set ifilter 5 permit tcp src eq 53 set ofilter 5 permit tcp dst eq 53 # # Allow access from/to local network # set ifilter 6 permit 0/0 192.168.1.0/24 set ofilter 6 permit 192.168.1.0/24 0/0 # # Allow ping and traceroute response # set ifilter 7 permit icmp set ofilter 7 permit icmp set ifilter 8 permit udp dst gt 33433 set ofilter 9 permit udp dst gt 33433 # # Allow cvsup # set ifilter 9 permit tcp src eq 5998 set ofilter 9 permit tcp dst eq 5998 set ifilter 10 permit tcp src eq 5999 set ofilter 10 permit tcp dst eq 5999 # # Allow NTP for Time Synchronization # set ifilter 11 permit tcp src eq 123 dst eq 123 set ofilter 11 permit tcp src eq 123 dst eq 123 set ifilter 12 permit udp src eq 123 dst eq 123 set ofilter 12 permit udp src eq 123 dst eq 123 # # SMTP'd be a good idea! # set ifilter 13 permit tcp src eq 25 set ofilter 13 permit tcp dst eq 25 # # # We use a lot of `whois`, let's pass that # set ifilter 14 permit tcp src eq 43 set ofilter 14 permit tcp dst eq 43 set ifilter 15 permit udp src eq 43 set ofilter 15 permit udp dst eq 43 # # If none of above rules matches, then packet is blocked. #------- </verb></tscreen> <p>Up to 20 distinct filtering rules can be applied to each class of filter. Rules in each class are number sequentially from 0 to 20 <em/but none of the rules for a particular filter class take affect until ruleset '0' is defined!/ <p>If you choose <em/not/ to use Filtering Rules in the PPP configuration then <em/ALL/ traffic will be permitted both into and out of your system while it's connected to your ISP. If you decide that you want to implement filtering rules, add the above lines to your <tt>/etc/ppp/ppp.conf</tt> file in either the "default:", "demand:", or "interactive:" section (or all of them - the choice is yours). </sect> </article> diff --git a/es_ES.ISO8859-1/FAQ/FAQ.sgml b/es_ES.ISO8859-1/FAQ/FAQ.sgml index 5597ba305a..b6b24a3e2d 100644 --- a/es_ES.ISO8859-1/FAQ/FAQ.sgml +++ b/es_ES.ISO8859-1/FAQ/FAQ.sgml @@ -1,64 +1,64 @@ -<!-- $FreeBSD$ --> +<!-- $FreeBSD: doc/es_ES.ISO_8859-1/FAQ/FAQ.sgml,v 1.7 1999/09/06 06:53:13 peter Exp $ --> <!-- The FreeBSD Documentation Spanish Project --> <!DOCTYPE linuxdoc PUBLIC "-//FreeBSD//DTD linuxdoc//EN" [ <!ENTITY preface SYSTEM "preface.sgml"> <!ENTITY install SYSTEM "install.sgml"> <!ENTITY hardware SYSTEM "hardware.sgml"> <!ENTITY troubleshoot SYSTEM "troubleshoot.sgml"> <!ENTITY commercial SYSTEM "commercial.sgml"> <!ENTITY applications SYSTEM "applications.sgml"> <!ENTITY kernelconfig SYSTEM "kernelconfig.sgml"> <!ENTITY admin SYSTEM "admin.sgml"> <!ENTITY x SYSTEM "x.sgml"> <!ENTITY network SYSTEM "network.sgml"> <!ENTITY serial SYSTEM "serial.sgml"> <!ENTITY misc SYSTEM "misc.sgml"> <!ENTITY hackers SYSTEM "hackers.sgml"> <!ENTITY acknowledgments SYSTEM "acknowledgments.sgml"> ]> <article> <title>Frequently Asked Questions para FreeBSD 2.X Proyecto de documentación de FreeBSD - $Date: 1999-09-06 06:53:13 $ + $FreeBSD$ Esta es la FAQ para sistemas FreeBSD versión 2.X. Todas las secciones están dirigidas a FreeBSD 2.0.5 y superiores. Los capítulos con <XXX> están bajo construcción. Si estás interesado en colaborar en este proyecto, envía un e-mail a la lista de distribución del proyecto de documentación de FreeBSD o a la dirección . La última versión de este documento está siempre disponible en el . Puede ser "bajada" en , o mediante HTTP. &preface; &install; &hardware; &troubleshoot; &commercial; &applications; &kernelconfig; &admin; &x; &network; &serial; &misc; &hackers; &acknowledgments;
diff --git a/es_ES.ISO8859-1/books/faq/book.sgml b/es_ES.ISO8859-1/books/faq/book.sgml index dc7e5bc742..7baf50d83e 100644 --- a/es_ES.ISO8859-1/books/faq/book.sgml +++ b/es_ES.ISO8859-1/books/faq/book.sgml @@ -1,8278 +1,8278 @@ Frequently Asked Questions para FreeBSD 2.X Proyecto de documentacion de FreeBSD -$Date: 1999-08-18 17:16:55 $ +$FreeBSD$ Esta es la FAQ para sistemas FreeBSD versión 2.X. Todas las secciones están dirigidas a FreeBSD 2.0.5 y superiores. Los capítulos con <XXX> están bajo construcción. Si estás interesado en colaborar en este proyecto, envía un e-mail a la lista de distribución del proyecto de documentación de FreeBSD <freebsd-doc@FreeBSD.org> o a la dirección faq-es@es.FreeBSD.org. La última versión de este documento está siempre disponible en el Mirror español de FreeBSD. Puede obtenerse en formato texto, o formato HTML mediante HTTP. Introducción Bienvenido a la FAQ de FreeBSD 2.X! ¿Cuál es el objetivo de esta FAQ? Como es habitual con las FAQ de los grupos de noticias (USENET), este documento pretende abarcar las preguntas más frecuentes referentes al sistema operativo FreeBSD (y por supuesto contestarlas!). Pensadas en un principio para reducir el tráfico y evitar que se hagan las mismas preguntas una y otra vez, las FAQ se han convertido en un valorado recurso de obtención de información. Todo el esfuerzo se ha hecho en intentar que esta FAQ sea lo más informativa posible; si tienes cualquier comentario o sugerencia, por favor, envía un mail a FAQ maintainer. ¿Qué es FreeBSD? De manera resumida, FreeBSD 2.X es un sistema operativo UNIX indirectamente basado en el port de Net/2 para i386 de Berkeley (conocido como 386BSD) realizado por William Jolitz's. Una descripción más detallada de FreeBSD y de como puede trabajar, se encuentra en FreeBSD home page.**** FreeBSD es usado por compañís, proveedores de Internet, profesionales de la informática, estudiantes y usuarios particulares de todo el mundo en su trabajo, educación y ocio. Puedes ver a algunos de ellos en FreeBSD Gallery. Para información más detallada sobre FreeBSD, por favor mira en FreeBSD Handbook. ¿Cuál es el objetivo de FreeBSD? El objetivo del Proyecto FreeBSD es proveer software que pueda ser usado en todos los ámbitos sin ningún tipo de atadura. Muchos de nosotros estamos significativamente involucrados en el desarrollo del código (y del proyecto) y no sería cierto decir que no esperabamos o esperamos algún tipo de financiación, pero definitivamente no estamos preparados para insistir en ello. Creemos que nuestra primera y principal "misión" es proveer el código libremente, y en cualquier ámbito, para que el código sea lo más expandido posible y produzca los mayores beneficios. Esto es, creemos en uno de los objetivos fundamentales del Software Libre y lo apoyamos de manera incondicional. El código fuente de los programas registrados bajo GNU General Public License (GPL) o GNU Library General Public License (LGPL), se provee bajo las condiciones fijadas por esas licencias. Debido a complicaciones adicionales en el uso comercial de Software GPL, intentamos reemplazar ese software por otros registrados bajo el copyright BSD, menos estricto y más permisivo. ¿Porqué se llama FreeBSD? Este sistema debe ser usado libremente, sin coste alguno incluso para fines comerciales. El código fuente completo del sistema operativo es de libre distribución, y se han marcado el menor numero posible de restricciones para su uso, distribución e incorporación a otros trabajos (comerciales o no). Cualquier persona que tenga alguna sugerencia de mejora y/o "parche" de algun "bug", es libre de enviar el código y que este sea añadido al código fuente de la distribución original (sujeto a una o dos condiciones obvias). Para todos nuestros lectores que su primer lenguaje no sea el inglés, decir que la palabra "free" es usada en dos sentidos, uno significando "sin coste" y el otro "puedes hacer lo que quieras". Aparte de una o dos cosas que no puedes hacer con el código de FreeBSD, por ejemplo decir que lo has escrito, realmente puedes hacer lo que quieras con él. ¿Cuál es la última versión de FreeBSD? La versión 3.2R es la última -stable; fue declarada definitiva (a partir de ahora "release") en Mayo de 1999. Brevemente explicado, está dirigido a proveedores de Internet y otros usuarios corporativos que quieren estabilidad y una sucesión tranquila en los cambios y actualizaciones a las nuevas versiones y sus mejoras. Sólo debes usar la rama current si estás seguro de estar preparado para su mayor "volatilidad" (relativa a -stable). Las versiones Release se hacen cada . Mientras mucha gente mantiene más al día los fuentes de FreeBSD (lee las preguntas en y , hacerlo está pensado para gente que se considere preparada para seguir el desarrollo continuo del código fuente. ¿Qué es FreeBSD-current? FreeBSD-current es la versión de desarrollo del sistema operativo, la cual acabará siendo la versión 4.0-RELEASE. Como es de suponer, esta versión es de interés solo para los desarrolladores que trabajan en el sistema y "masoquistas" de la programación. Mira la sección correspondiente en el handbook para saber como funciona esta opción. Si no estás familiarizado con el sistema operativo o no eres capaz de identificar la diferencia entre un problema real y un problema temporal, no deberías usar FreeBSD-current. Esta rama a veces avanza muy rapidamente y puede no ser compilable durante unos días. La gente que usa FreeBSD-current es capaz de analizar los problemas y solo comunicarlos si son motivo de errores. Preguntas como "al ejecutar make world obtengo un error referente a grupos" en la lista de distribución -current pueden quedar fuera de lugar. Una release snapshot corresponde al desarrollo de la rama -current; distribuciones en CDROM de esta versión están disponibles. Los objetivos de cada release snapshot son: Testear la última versión del software de instalación. Dar a la gente que le gustaría usar la versión -current pero que no tiene el tiempo suficiente para seguir el ritmo diario de actualizaciones, una manera fácil de poder instalarla en su sistema. Preservar un punto de referencia fijado en el código en cuestión, sólo en caso de que "rompamos" algo realmente importante. (De todas maneras, el CVS normalmente previene de que cosas tan horribles como estas puedean suceder :) Asegurar que las nuevas características desarrolladas puedan ser suficientemente testeadas por el mayor número de gente. No se garantiza que ningún snapshot pueda ser considerado "calidad de producción". Para conseguir estabilidad y un sistema garantizado, tendrás que usar las versiones release. Las release snapshot están directamente disponibles en ftp://current.FreeBSD.org/pub/FreeBSD/ y son generadas un promedio de una vez por día para las ramas 4.0-current y 3.0-stable. ¿Qué significa FreeBSD-stable? Cuando la versión de FreeBSD 2.0.5 fue declarada release, decidimos dividir el desarrollo de FreeBSD en dos ramas. Una rama fue llamada -stable con la intención de que solo los parches bien testeados y pequeñas actualizaciones de determinadas partes del sistema fuesen incluidas en ella (para proveedores de Internet y otras empresas para los que no resultan deseables cambios repentinos o experimentales). La otra rama fue -current, la cual ha sido, esencialmente, una línea común para el desarrollo de la versión 4.0-RELEASE. Aquí hay un pequeño gráfico ASCII para ayudar a entender este sistema de desarrollo: 2.0 | | | [2.1-stable] *BRANCH* 2.0.5 -> 2.1 -> 2.1.5 -> 2.1.6 -> 2.1.7.1 [2.1-stable ends] | (Mar 1997) | | | [2.2-stable] *BRANCH* 2.2.1 -> 2.2.2-RELEASE -> 2.2.5-RELEASE -> ... | (Mar 1997) (Oct 1997) | | 3.0-SNAPs (started Q1 1997) | | 3.0.0-RELEASE (Oct 1998) | | [3.0-stable] *BRANCH* 3.1 (Feb 1999) -> 3.2-RELEASE -> ... future 3.x releases ... | (Mayo 1999) | \|/ + [4.0-current continues] La rama -current progresa lentamente hacia la 4.0 y superiores, de la misma manera la anterior 2.2-estable fue sustituida por la release 3.0, la nueva "rama estable" también conocida como 3.0-stable. 4.0-current continuará hasta donde los desarrollos activos lleguen cuando se convierta en release 4.0. En ese punto, 4.0 se convertirá en 4.0-stable y se abrirá la nueva 4.1-current. ¿Cuando se realizan las releases de FreeBSD? Como principio general, el equipo de FreeBSD solo hace una nueva versión release de FreeBSD cuando cree que hay suficientes características nuevas y/o parches que la justifiquen y esten seguros de que con los cambios realizados no se compromete la estabilidad de la release. Muchos usuarios creen que esta precaución es una de las mejores características de FreeBSD. Las versiones release son hechas cada 6 meses aproximadamente. Para los usuarios que necesiten (o quieran) un poco más de excitación, hay SNAP-release más frecuentemente, particularmente durante el mes anterior a una release completa. ¿Está FreeBSD disponible solo para PCs? En estos momentos, sí, aunque se está trabajando en portarlo a la arquitectura DEC Alpha. Si tu máquina tiene una arquitectura diferente y necesitas un sistema de este tipo, te aconsejamos que mires en NetBSD o en OpenBSD. ¿Quién es responsable de FreeBSD? Las decisiones clave concernientes al proyecto FreeBSD como la dirección a seguir y quién está autorizado a añadir código a la distribución original, se hace a través de un grupo de unas 17 personas llamado core team. Existe también un grupo de unas 150 personas o committers que también están autorizadas a realizar cambios directamente sobre la distribución original. De todas maneras, la cambios importantes son discutidos en las en las que no existen restricciones en quien participa en las discusiones. ¿Dónde puedo conseguir FreeBSD? Todas las versiones release de FreeBSD están disponibles via ftp anónimo en el servidor FTP de FreeBSD: Para la actual 3.2-stable release, 3.2R mira en 3.2-RELEASE. Para la actual 4.0-current release, 4.0-SNAP, mira en 4.0. 2.2 Snapshot releases son hechas vía RELENG_2_2 rama (2.2.5 -> 2.2.x). Con la ocasional excepción de pequeñas variaciones, la rama RELENG_2_2 esta siendo cuidadosamente mantenida (no hay cambios experimentales y los parches son añadidos solo después de ser testeados en -current). 4.0 Snapshot releases son hechas una vez al día para la rama , siendo este un servicio puramente para testeadores y desarrolladores. FreeBSD esta también disponible via CDROM, en los siguientes lugares: Walnut Creek CDROM 4041 Pike Lane, Suite F Concord, CA 94520 USA Orders: +1 800 786-9907 Questions: +1 925 674-0783 FAX: +1 925 674-0821 email: WC Orders address WWW: WC Home page En Australia: Advanced Multimedia Distributors Factory 1/1 Ovata Drive Tullamarine, Melbourne Victoria Australia Voice: +61 3 9338 6777 CDROM Support BBS 17 Irvine St Peppermint Grove WA 6011 Voice: +61 9 385-3793 Fax: +61 9 385-2360 Y en el Reino Unido: The Public Domain & Shareware Library Winscombe House, Beacon Rd Crowborough Sussex. TN6 1UL Voice: +44 1892 663-298 Fax: +44 1892 667-473 ¿Dónde encuentro información sobre las listas de distribución de FreeBSD? Puedes encontrar toda la información en la sección de listas del Handbook. ¿Dónde encuentro información sobre el año 2000 (Y2K) en FreeBSD? Tienes toda la información disponible en la página Y2K de FreeBSD. ¿Qué grupos de noticias están disponibles sobre FreeBSD? Puedes encontrar toda la información en la sección de news del Handbook. ¿Hay algun canal IRC (Internet Relay Chat) sobre FreeBSD? Sí, muchas de las grandes redes de IRC tienen canales de chat de FreeBSD. El canal #FreeBSD en EFNet es un fórum de FreeBSD, pero no acudas allí para obtener soporte técnico o contar tus penas sobre como leer las páginas man ;). Es un canal de chat, de principio a fín, y los temas que se tratan suelen ser cosas como sexo, deportes o armas nucleares. Estás Avisado!. Disponible en el servidor irc.chat.org. El canal #FreeBSD en DALNET está disponible en el servidor irc.dal.net en USA y irc.eu.dal.net en Europa. El canal #FreeBSD en UNDERNET está disponible en us.undernet.org en USA y eu.undernet.org en Europa. Igual que en EFNET, no hagas preguntas técnicas. Es un canal de chat, no de soporte. Finalmente, puedes usar el canal #FreeBSD en BSDNET, una pequeña red de chat, en el servidor irc.FreeBSD.org. Esta red intenta ofrecer más soporte técnico y no ser tan anárquica como EFNET, UNDERNET o DALNET. Porqué no ofrecer respuestas de manera voluntaria hoy en BSDNET?. Cada uno de estos canales es diferente y no están conectados entre ellos. Sus estilos de chat difieren, por lo que podrís probarlos todos para ver cual te gusta más. Libros sobre FreeBSD El libro de Greg Lehey's ``Installing and Running FreeBSD'' está disponible en Walnut Creek y se vende con el CDROM 2.2.5. Hay también un libro más completo titulado ``The Complete FreeBSD'', el cual tiene manuales adicionales e incluye el CDROM 2.2.6. Debería estar disponible en las mejores librerías. Hay un proyecto de documentación de FreeBSD al que puedes contactar (o mejor, participar), en la lista de distribución doc: <doc@FreeBSD.org>. En esta lista se tratan todos los temas referentes a la documentación de FreeBSD. Para preguntas actuales sobre FreeBSD, existe la lista question: <questions@FreeBSD.org>. Está disponible un "manual" (handbook a patir de ahora) de FreeBSD, y se puede encontrar en: El Handbook de FreeBSD. Ten en cuenta que este es un trabajo en constante desarrollo y actualización, por lo que algunas secciones podrían estar incompletas. Teniendo en cuenta que FreeBSD 2.2.x está basado en la versión Berkeley 4.4BSD-Lite2, la mayoría de manuales de 4.4BSD con aplicables a FreeBSD 2.2.x. O'Reilly y Asociados publican estos manuales: 4.4BSD System Manager's Manual By Computer Systems Research Group, UC Berkeley 1st Edition June 1994, 804 pages ISBN: 1-56592-080-5 4.4BSD User's Reference Manual By Computer Systems Research Group, UC Berkeley 1st Edition June 1994, 905 pages ISBN: 1-56592-075-9 4.4BSD User's Supplementary Documents By Computer Systems Research Group, UC Berkeley 1st Edition July 1994, 712 pages ISBN: 1-56592-076-7 4.4BSD Programmer's Reference Manual By Computer Systems Research Group, UC Berkeley 1st Edition June 1994, 886 pages ISBN: 1-56592-078-3 4.4BSD Programmer's Supplementary Documents By Computer Systems Research Group, UC Berkeley 1st Edition July 1994, 596 pages ISBN: 1-56592-079-1 Una descripción de estos puede ser encontrada vía WWW en: Descripción de libros sobre 4.4BSD Para profundizar más en la organizacion del kernel de 4.4BSD, no puedes ir mal con los siguientes: McKusick, Marshall Kirk, Keith Bostic, Michael J Karels, and John Quarterman. The Design and Implementation of the 4.4BSD Operating System. Reading, Mass. : Addison-Wesley, 1996. ISBN 0-201-54979-4 Un buen libro en administración de sistemas es: Evi Nemeth, Garth Snyder, Scott Seebass & Trent R. Hein, ``Unix System Administration Handbook'', Prentice-Hall, 1995 ISBN: 0-13-151051-7 NOTE Asegurate de conseguir la segunda edición, con cubierta roja y no la primera. Este libro cubre las necesidades básicas, así como TCP/IP, DNS, NFS,SLIP/PPP, sendmail, INN/NNTP, impresión, etc,. Es caro, (aproximadamente unos US$45-$55), pero vale la pena. También incluye un cd-rom con las fuentes de varias herramientas, muchas de las cuales están incluidas, también, en la versión 2.2.6R (cdrom) de FreeBSD, incluso incluyendo versiones más modernas. ¿Cómo accedo a la base de datos de Problem Report? La base de datos de Problem Report puede ser consultada vía web a traves de la dirección query. También pueden ser enviados vía web a través de la dirección envio. El comando send-pr(1) también puede ser usado para el envío de reporte de problemas. ¿Dónde puedo obtener versiones ASCII/PstScript de la FAQ? La FAQ actualizada está disponible en el servidor Web de FreeBSD o en cualquiera de los mirrors en formato PostScript y texto (7 bits ASCII y 8 bits Latin-1). Formato PostScript (unos 370KB): http://www.FreeBSD.org/FAQ/FAQ.ps Formato ASCII (unos 220KB): http://www.FreeBSD.org/FAQ/FAQ.ascii Formato texto ISO 8859-1 (unos 220KB): http://www.FreeBSD.org/FAQ/FAQ.latin1 ¿Dónde puedo obtener versiones ASCII/PostScript del Handbook? El Hansbook actualizado está disponible en el servidor Web de FreeBSD o en cualquiera de los mirrors en formato PostScript y texto (7 bits ASCII y 8 bits Latin-1). Formato PostScript (unos 1.7MB): http://www.FreeBSD.org/handbook/handbook.ps Formato ASCII (unos 1080KB): http://www.FreeBSD.org/handbook/handbook.ascii Formato texto ISO 8859-1 (unos 1080KB): http://www.FreeBSD.org/handbook/handbook.latin1 El Handbook en ASCII no está en texto plano! Cierto, las versiones ASCII y Latin1 del Handbook no están estrictamente en formato de texto plano; contienen carácteres de control de impresión asumiendo que el documento será enviado a una impresora. Si necesitas tenerlos en un formato leible, pasa el fichero por el programa col: $ col -b < inputfile > outputfile Me gustaría ser Mirror del web de FreeBSD! Hay múltiples maneras de hacer mirror de las páginas web. Usando CVSUP: Puedes obtener todo el contenido del web usando el programa CVSUP desde el servidor cvsup.FreeBSD.org. Añade esta línea a tu fichero de configuración de cvsup: www release=current hostname=/home base=/usr/local/etc/cvsup prefix=/usr/local/www/data/www.FreeBSD.org delete old use-rel-suffix Usando rsync: Mira en la página de mirrors para más información. Usando mirror de FTP: Puedes bajarte la copia de los contenidos del web usando tu herramienta favorita de mirror de FTP. Simplemente empieza en ftp://ftp.FreeBSD.org/pub/FreeBSD/FreeBSD-current/www. Me gustaría traducir la documentación. Bueno, no podemos pagar, pero quizás te enviemos un cd-rom o una camiseta y añadiremos tu nombre en la sección "Contributors" del Handbook si nos envías una traducción de la documentación. Otras fuentes de información. Los siguientes grupos de news contienen temas relacionados con FreeBSD y sus usuarios: comp.unix.bsd.FreeBSD.announce (moderada) comp.unix.bsd.FreeBSD.misc comp.unix.bsd.misc Recursos Web: The FreeBSD Home Page. Si tienes un portátil asegurate de pasar por Tatsumi Hosokawa's Mobile Computing page . Información sobre SMP (Symmetric MultiProcessing), soporte de SMP. Información sobre aplicaciones multimedia. Si estás interesado específicamente en el chip Bt848 de vídeo captura, entonces sigue este link El FreeBSD handbook tiene una completa bibliografía en la sección bibliografía la cual recomendamos leer si estás interesado en comprar libros actuales relacionados con estos temas. Instalación ¿Qué fichero necesito para instalar FreeBSD? Generalmente solo es necesario un disco de 1,44Mb con una imágen del fichero floppies/boot.flp. Arranca con este disco para comenzar con el programa de instalación, el cual se encargará de realizar todas las operaciones necesarias (gestión de TCP/IP, cintas, CDROMs, floppies, particiones DOS y cualquier cosa necesaria para realizar la instalación). Si necesitas bajarte las distribuciones (para una instalación desde una partición DOS por ejemplo), estas son las distribuciones mínimas que necesitarás: bin/ manpages/ compat*/ doc/ src/ssys.* Todas las instrucciones sobre este procedimiento y una ampliación de la documentación se puede encontrar en Instalación de FreeBSD. Ayuda!, La imagen del disco de arranque no cabe en un floppy Un floppy de 1.44MB puede contener hasta 1474560 bytes de datos. La imágen de arranque es exactamente de 1474560 bytes. Los errores mas comunes en la preparación de disco de arranque son: No bajarse la imagen en modo binario cuando se usa FTP. Algunos clientes FTP intentan bajar por defecto los ficheros en modo ASCII e intentan cambiar los carácteres de final de línea recibidos por el que utilice el sistema cliente. Esto corromperá inevitablemente la imagen de arranque. Revisa el tamaño de la imagen: si no es exactamente el mismo tamaño del fichero existente en el servidor, la imagen no servirá. Solución: teclea binary en la línea de comandos del FTP después de conectar y antes de empezar a bajar la imágen. Usando el comando copy de DOS (o cualquier herramienta GUI equivalente) para transferir la imagen a un disquete. Programas como copy no funcionarán para la transferencia de la imágen a un disco. La imágen tiene el contenido completo del disco, pista por pista, y no está pensada para ser trasladada a un disquete como un fichero normal. Tienes que hacer una transferencia "raw" usando herramientas de bajo nivel como fdimage o rawrite, descritas en la guía de instalación de FreeBSD. ¿Dónde puedo encontrar las instrucciones de instalación de FreeBSD? Las instrucciones de instalación están en Instalación de FreeBSD. ¿Qué necesito para poder ejecutar FreeBSD? Necesitarás un PC con 386 o superior, 5 Mb o mas de memoria RAM y al menos 60 Mb de espacio en disco duro. Puede funcionar con tarjetas gráficas de bajo nivel (Hercules), pero para poder ejecutar X11R6 es necesario una tarjeta VGA o superior. Solo tengo 4Mb de RAM. ¿Puedo instalar FreeBSD? FreeBSD 2.1.7 fue la última version de FreeBSD que podía ser instalada en un sistema de 4Mb. Las nuevas versiones de FreeBSD, como la 2.2, necesitan al menos 5Mb para poder ser instaladas. Todas las versiones de FreeBSD, incluyendo la 3.0, funcionarán en sistemas con 4Mb de RAM, lo que no pueden ejecutar es la instalación en sistemas con 4Mb. Puedes añadir memoria extra para el proceso de instalación, y una vez instalado, volver a los 4Mb. Tambien puedes instalar tu disco en una máquina con más de 4Mb, realizar la instalación y volver el disco a su máquina con 4Mb. Hay algunas situaciones en las que FreeBSD 2.1.7 no se instalará en sistemas con 4Mb. Para ser exactos: no se instalará con 640Kb de memoria base + 3Mb de memoria extendida. Si tu placa base puede remapear algo de la memoria "perdida" fuera de los 640Kb a la región de 1Mb, entonces aun podrás instalar FreeBSD 2.1.7. Intenta entrar en el setup de tu BIOS y busca la opción "remap". Actívala. Quizás tendrás que desactivar la opción de ROM shadowing. Es más fácil añadir en la máquina 4Mb de memoria para la instalación. Crea un kernel unicamente con las opciones que necesites y vuelve a quitar los 4Mb añadidos. También puedes instalar la versión 2.0.5 y a continuación actualizar tu sistema a la 2.1.7 con la opción "upgrade" del programa de instalación de la versión 2.1.7. Después de la instalación, si te creas un kernel personalizado, funcionará en 4Mb. Algunos fueron capaces de arrancar con 2Mb (aunque después el sistema era incapaz de hacer nada mas :-)) ¿Cómo puedo hacer mi propio disco de instalación? Actualmente, no hay una manera para *sólo* hacer un disco de instalación personalizado. Hay algún código en /usr/src/release/floppies/Makefile que supuestamente es para hacer *sólo* un disco de instalación personalizado, pero no está realmente testeado todavía. ¿Puedo tener más de un sistema operativo en mi PC? Echa un vistazo en La página multi-OS. ¿Puede Windows 95 coexistir con FreeBSD? Instala primero Windows 95 y después FreeBSD. El boot manager de FreeBSD se encargará de darte la opción de arrancar con cualquiera de los dos sistemas. Si lo haces al reves, Windows 95 borrará el boot manager sin hacer ninguna pregunta previa. Si ocurre esto, pasa a la siguiente sección. Windows 95 desinstaló mi boot manager! ¿Cómo lo recupero? Puedes reinstalar el boot manager que viene con FreeBSD de dos maneras: Ejecutando el DOS, entra en el directorio tools/ de tu distribución de FreeBSD y busca el archivo bootinst.exe. Ejecútalo de la siguiente manera: bootinst.exe boot.bin Y el boot manager estará reinstalado. Arranca con el disco de instalación de FreeBSD y entra en la sección "Custom Installation". Selecciona "Partition". Escoge el disco en el cual debe estar instalado el boot manager, y cuando entres en él editor de particiones, sin hacer ningún cambio, selecciona (W)rite. Serás preguntado para confirmar la acción, responde "sí", y cuando estés en la ventana de "Boot manager selection" asegúrate de seleccionar "Boot Manager". Esto reescribirá el boot manager en el disco. Ahora, sal del programa de instalación y rearranca el ordenador de la manera habitual. ¿Puedo instalar FreeBSD en un disco con sectores erróneos? La gestión de sectores erróneos por parte de FreeBSD no está desarrollada todavía al 100% y desgraciadamente debemos decirte que si tienes discos IDE o ESDI con gran cantidad de sectores erróneos, FreeBSD no es para tí. De todas maneras, te aconsejamos que antes de descartar la instalación, hagas un intento. Ocurren cosas extrañas cuando arranco con el disco de instalación Si observas cosas como que la maquina se "cuelga" o se resetea espontaneamente cuando intentas arrancar con el disco de instalación, aquí tienes tres preguntas que debes responder tu mismo:- Estás usando un disco nuevo, recién formateado y libre de errores, o estás usando el disco de publicidad que venía con la revista que lleva guardada varios meses debajo de la cama? "Bajaste" por ftp la imágen del disco en modo binario?... (no te preocupes ya que hasta el mejor de nosotros, por lo menos una vez, ha bajado un fichero en modo ASCII) Si estás usando uno de esos nuevos sistemas operativos como Windows 95 o Windows NT, debes arrancar la máquina en modo DOS puro, ya que parece ser que los Windows no se llevan bién con los programas que escriben directamente sobre los dispositivos hardware, como hace el programa de creación de discos de instalación de FreeBSD. Han habido informaciones referentes a problemas al bajar el disco de instalación con Netscape, por lo que te recomentados que uses un programa diferente como cliente de ftp. Ayuda! No puedo instalar desde una cinta! Si estas instalando la version 2.1.7R desde una cinta, debes crear esa cinta con un tamaño de bloque de tar de 10 (5120 bytes). El tamaño por defecto de los bloques tar es de 20 (10240 bytes), y las cintas creadas con este tamaño por defecto no pueden ser usadas para instalar FreeBSD 2.1.7R; con estas cintas tendrás un error referente a un tamaño de registro demasiado grande. Conexión de dos máquinas FreeBSD vía puerto paralelo (PLIP) Coge un cable de laplink y asegurate que ambos ordenadores tienen un kernel que soporta el puerto paralelo. $ dmesg | grep lp lpt0 at 0x378-0x37f irq 7 on isa lpt0: Interrupt-driven port lp0: TCP/IP capable interface Conecta el cable en los dos puertos paralelos. Configura los parámetros de red para el interfaz lp0 (como root) en ambas máquinas. Por ejemplo, si quieres conectar la máquina max y moritz: max <-----> moritz Direccion IP 10.0.0.1 10.0.0.2 En el arranque de max # ifconfig lp0 10.0.0.1 10.0.0.2 En el arranque de moritz # ifconfig lp0 10.0.0.2 10.0.0.1 Esto es todo!!. Por favor, lee los man de lp(4) y lpt(4). También deberías añadir las máquinas en el fichero /etc/hosts: 127.0.0.1 localhost.my.domain localhost 10.0.0.1 max.my.domain max 10.0.0.2 moritz.my.domain moritz Para asegurar que funciona haz: en max: $ ifconfig lp0 lp0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 10.0.0.1 --> 10.0.0.2 netmask 0xff000000 $ netstat -r Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire moritz max UH 4 127592 lp0 $ ping -c 4 moritz PING moritz (10.0.0.2): 56 data bytes 64 bytes from 10.0.0.2: icmp_seq=0 ttl=255 time=2.774 ms 64 bytes from 10.0.0.2: icmp_seq=1 ttl=255 time=2.530 ms 64 bytes from 10.0.0.2: icmp_seq=2 ttl=255 time=2.556 ms 64 bytes from 10.0.0.2: icmp_seq=3 ttl=255 time=2.714 ms --- moritz ping statistics --- 4 packets transmitted, 4 packets received, 0% packet loss round-trip min/avg/max/stddev = 2.530/2.643/2.774/0.103 ms ¿Puedo instalar FreeBSD en mi portátil sobre PLIP (Parallel Line IP)? Conecta los dos ordenadores usando Laplink mediante el puerto paralelo y usa las siguientes características: +----------------------------------------+ |A-name A-End B-End Descr. Port/Bit | +----------------------------------------+ |DATA0 2 15 Data 0/0x01 | |-ERROR 15 2 1/0x08 | +----------------------------------------+ |DATA1 3 13 Data 0/0x02 | |+SLCT 13 3 1/0x10 | +----------------------------------------+ |DATA2 4 12 Data 0/0x04 | |+PE 12 4 1/0x20 | +----------------------------------------+ |DATA3 5 10 Strobe 0/0x08 | |-ACK 10 5 1/0x40 | +----------------------------------------+ |DATA4 6 11 Data 0/0x10 | |BUSY 11 6 1/0x80 | +----------------------------------------+ |GND 18-25 18-25 GND - | +----------------------------------------+ Mira también en la página de informática móvil. ¿Que geometría debo usar para mis discos? (Por geometría de un disco, entendemos el numero de cilindros, cabezales y sectores por pista en el disco - de ahora en adelante nos referiremos por conveniencia a estos parámetros como C/H/S. Así es como trabaja la BIOS de los PC's para gestionar la lectura/escritura. Por alguna razón, esto parece crear mucha confusión. Ante todo, la geometría física de un disco SCSI es totalmente irrelevante ya que FreeBSD trabaja en términos de bloques de disco. Con discos IDE, FreeBSD trabaja en términos de C/H/S, pero todos los discos modernos convierten estos datos en referencias internas de bloques. Para discos SCSI, la geometría a usar depende de si tenemos activado en la controladora el soporte de translación (comunmente conocido como "soporte para discos mayores de >1GB" o algo similar). Si esta opción está desactivada, entonces usa N cilindros, 64 cabezales y 32 sectores por pista, donde N es la capacidad del disco en MB. Por ejemplo, para un disco de 2GB, los parámetros correctos serían 2048 cilindros, 64 cabezales y 32 sectores. Si el soporte de translación está activado y la capacidad del disco es mayor de 1GB, usa M cilindros, 63 cabezales (*no* 64), y 255 sectores, donde M es la capacidad del disco en MB dividida por 7.844238. Para nuestro ejemplo de un disco de 2GB, los parámetros serían 261 cilindros, 62 cabezales y 255 sectores. Si no estás seguro sobre los parámetros a usar, o FreeBSD falla al detectar la geometría correcta del disco durante la instalación, el método mas simple para solucionar este problema es crear una pequeña partición DOS en el disco. Entonces, la geometría debería ser detectada correctamente (y siempre puedes borrar esa partición desde el "editor de particiones" si no quieres mantenerla). Alternativamente, existe una utilidad de libre distribución incluida en FreeBSD llamada pfdisk.exe (situada en el directorio tools del cd-rom de distribución o en cualquiera de los servidores ftp) que nos dice la geometría del disco usada por el sistema operativo DOS. Lo único que tenemos que hacer es introducir los datos obtenidos en el editor de particiones de FreeBSD. ¿Existe alguna restricción en como dividir el disco? Si. Debes asegurarte de que la partición raiz esta por debajo del cilindro 1024, para que la BIOS pueda arrancar el kernel desde ella. (Esta es una limitación de las BIOS de PC's, no de FreeBSD). Para discos SCSI, esto implica que la partición raiz debe estar instalada en los primeros 1024MB (o en los primeros 4096MB si la translación extendida esta activada). Para discos IDE, la partición raiz debe estar en los primeros 504MB. ¿Qué hay sobre los "disk managers"? FreeBSD reconoce el disk manager Ontrack. Otros disk managers no son soportados. Si quieres usar el disco solo con FreeBSD no necesitas el disk manager. Solo configura el disco para el espacio máximo que pueda manejar la BIOS (usualmente 504MB), y FreeBSD se encargará de averiguar cuanto espacio tienes realmente. Si estás usando un disco antiguo con controladora MFM, necesitarás decirle explícitamente a FreeBSD cuantos cilindros puede usar. Si quieres usar el disco con FreeBSD y otro sistema operativo, todavía puedes hacerlo sin necesitar un disk manager; solo asegurate que la partición raiz de FreeBSD y la partición de arranque del otro sistema operativo están en los primeros 1024 cilindros. Si eres cuidadoso, una partición raiz de 20MB debería ser suficiente. Cuando arranco FreeBSD obtengo ``Missing Operating System'' Esto es un clásico conflicto entre FreeBSD y DOS u otro sistema operativo sobre sus ideas de . Tendrás que reinstalar FreeBSD, pero teniendo en cuenta la información que te damos más arriba sobre este tema. No puedo pasar del prompt`F?'. Este es otro problema descrito en el parrafo anterior. La geometría de tu BIOS y los datos de configuración de FreeBSD no coinciden. Si tu controladora o BIOS soporta la translación de cilindros (también conocido como "soporte para discos de más de 1GB"), intenta activar/desactivar esta opción y reinstala FreeBSD. Tengo >16MB de RAM. ¿Puede causar esto problemas? Aparte del rendimiento, no. FreeBSD 2.X tiene buffers que permiten al "bus mastering controller" acceder a mas de 16MB. (Esto sólo es aplicable si estás usando dispositivos ISA). También mira la sección si tienes esta cantidad de memoria o si usas máquinas Compaq u otra BIOS que no da correctamente la cantidad de memoria disponible. ¿Necesito instalar las fuentes completas? En general, no. De todas maneras, te recomendamos que instales, por lo menos, el kit de fuentes base, el cual incluye muchos de de los ficheros aquí mencionados, y el kit sys, que incluye el código fuente del kernel. No hay nada en el sistema que requiera el código fuente para funcionar, a excepción del programa de configuración de kernel config. Con la excepción de las fuentes del kernel, nuestra estructura esta diseñada para que puedas montar una unidad en solo lectura via NFS en la que exista el código fuente, y aun así, ser capaz de compilar los nuevos binarios. (Debido a las restriciones de los fuentes del kernel, recomendamos que no montes estos en /usr/src directamente, sino en cualquier otra parte del disco con los links simbólicos apropiados para duplicar la estructura principal del árbol de directorios original), Teniendo los fuentes on-line y sabiendo como crear un sistema con ellas (compilar), te haremos mucho mas fácil la actualización a futuras versiones de FreeBSD. Actualmente, para seleccionar una parte del código fuente, usa la opción Custom del menú cuando estás en el menú Distributions de la herramienta de instalación. El script src/install.sh instalará solo partes de la distribución de fuentes dependiendo de los parámetros (argumentos) que se le pasen. ¿Necesito crear un nuevo kernel? La creación de un nuevo kernel era, originariamente, un paso requerido en la instalación de FreeBSD, pero en las versiones más recientes nos hemos beneficiado de la introducción de una herramienta de configuración de kernel mucho más amigable. Cuando en el prompt de arranque de FreeBSD (boot:), usamos el parámetro "-c", llegamos a una pantalla de configuración visual la cual permite configurar las opciones del kernel para la mayoría de tarjetas ISA. Todavía es recomendable la creación de un nuevo kernel conteniendo solo los drivers que nos sean necesarios para ahorrar un poco de RAM, pero no es estrictamente necesario para la mayoría de sistemas. Vivo fuera de USA. ¿Puedo usar la encriptación DES? Si no es absolutamente necesario que uses la encriptación DES, puedes usar la encriptación por defecto de FreeBSD para una mejor seguridad, y sin restricciones de importación. La encriptación por defecto de los passwords en FreeBSD está basada en MD5, y es necesario un mayor uso intensivo de CPU con programas de descubrimiento de passwords que en DES. La única razón para no usar hoy en día la encriptación MD5 sería usar un sistema de passwords compartidos entre sistemas FreeBSD y no FreeBSD. Desde que el algoritmo de encriptación DES no puede ser legalmente exportado fuera de USA, los usuarios externos a USA deberían NO bajar este software desde los servidores FTP situados en USA. Existe una alternativa para las librerías de encriptación basadas en el código escrito en Australia por David Burren. Este código está disponible en algunos mirrors de FreeBSD fuera de USA. Las fuentes de las librerías de encriptación, y los binarios de los programas que las usan pueden encntrase en los siguientes servidores FTP: South Africa ftp://ftp.internat.FreeBSD.org/pub/FreeBSD ftp://storm.sea.uct.ac.za/pub/FreeBSD Brazil ftp://ftp.iqm.unicamp.br/pub/FreeBSD Finland ftp://nic.funet.fi/pub/unix/FreeBSD/eurocrypt Los usuarios de fuera de los USA, no deben bajarse ningún software de encriptación de servidores situados en USA, ya que de no seguir esta norma, los responsables de esos servidores podrían verse envueltos en importantes problemas legales. Una distribución no americana de Kerberos está siendo desarrollada y las versiones actuales pueden obtenerse vía ftp anónimo en braae.ru.ac.za. Existe también una para la discusión de software de encriptación externo a USA. Para más información envía un email con una simplre línea diciendo "help en el cuerpo del mensaje a: <majordomo@braae.ru.ac.za>. El "boot disc" arranca pero se cuelga en la pantalla "Probing Devices..." Si tienes un ZIP ide o un JAZZ instalado, desinstalalo e intentalo de nuevo. El disco de arranque puede haberse confundido con los discos. Una vez el sistema esté instalado, puedes volver a instalar/conectar los dispositivos. Esperamos que esto sea fijado en las próximas releases. Aparece el siguiente error "panic: cant mount root" al reiniciar el ordenador después de la instalación Este error proviene de la confusión entre los bloques de arranque y lo que ve el kernel en los discos. El error se suele manifestar en sistemas con dos discos IDE, con los discos duros dispuestos como master o "single" en controladoras diferentes, estando FreeBSD instalado en la controladora IDE secundaria. Los bloques de arranque piensan que el sistema está instalado en wd1 (el segundo disco en la BIOS) mientras el kernel asigna el primer disco de la controladora secundaria wd2. Después de la detección de dispositivos, el kernel intenta montar lo que los bloques de arranque piensan que es el disco de arranque, wd1, cuando realmente es el wd2, y falla. Para solucionar el problema, haz una de las siguientes cosas: En el prompt de arranque (boot:), pon 1:wd(2,a)kernel y presiona Enter. Si el sistema arranca, ejecuta el comando: echo "1:wd(2,a)kernel" > /boot.config para actualizar la cadena de arranque por defecto. Mueve el disco de FreeBSD a la controladora IDE primaria para que los discos sean consecutivos. Crea un nuevo kernel, modifica las líneas de configuración de wd de la siguiente manera: controller wdc0 at isa? port "IO_WD1" bio irq 14 vector wdintr disk wd0 at wdc0 drive 0 # disk wd1 at wdc0 drive 1 # comment out this line controller wdc1 at isa? port "IO_WD2" bio irq 15 vector wdintr disk wd1 at wdc1 drive 0 # change from wd2 to wd1 disk wd2 at wdc1 drive 1 # change from wd3 to wd2 Instala el nuevo kernel: Si moviste los discos y quieres recuperar la configuración previa, reemplaza los discos en la configuración deseada y rearranca el sistema. Tu sistema debería arrancar sin problemas. ¿Cuál es el límite de memoria?. Para memoria, el límite (teórico) es de 4 gigabytes. Un gigabyte ha sido comprobado y funciona sin problemas: generalmente no se pueden comprar equipos i386 que soporten más cantidad de memoria. ¿Cuál es el límite del sistema de ficheros ffs? Para sistemas de ficheros ffs, el máximo teórico está en 8 terabytes (bloques de 2G), o 16TB para el tamaño de bloque por defecto de 8K. En la práctica hay un límite por soft de 1 terabyte, pero con pequeáas modificaciones es posible (y existen) sistemas de ficheros de 4 terabytes. El tamaño máximo de un ffs simple es aproximadamente de bloques de 1G (4TB) y el tamaño del bloque es de 4K. maxfilesize ---------------------------------- 2.2.7 3.0 fs block size -stable -current works should-work ------------- ------- -------- ----- ----------- 4K 4T-1 4T-1 4T-1 4+T 8K 32+G 8T-1 32+G 16T-1 16K 128+G 16T-1 128+G 32T-1 32K 512+G 32T-1 512+G 64T-1 64K 2048+G 64T-1 2048+G 128T-1 Cuando el tamaño del bloque del sistema de ficheros es de 4K, los bloques triples funcionan y todo debería estar limitado por el número máximo de bloques que puede ser representado usando los bloques triples indirectos (aproximadamente 1K^3 + 1K^2 + 1K), pero todo está limitado por un (mal) límite de 1G-1 en el número de bloques. El límite en el número de bloques debería ser de 2G-1, pero estos números de bloque son inalcancables cuando los bloques del sistema de ficheros son de 4K. ¿Cómo puede poner ficheros de 1TB en un disquete? El tamaño maximo de un fichero no depende directamente del tamaño máximo del disco. El tamaño máximo del disco es de 1TB. Es una ventaja que el tamaño del fichero pueda ser mayor que el tamaño del disco. El siguiente ejemplo crea un fichero con un tamaño de 1TB usando 32K de espacio de disco (3 bloques indirectos y 1 bloque de datos) en una pequeña partición raiz. ttyv0:bde@alphplex:/tmp/q> cat foo df . dd if=/dev/zero of=z bs=1 seek=`echo 2^43 - 2 | bc` count=1 ls -l z du z df . ttyv0:bde@alphplex:/tmp/q> sh foo Filesystem 1024-blocks Used Avail Capacity Mounted on /dev/sd0a 64479 27702 31619 47% / 1+0 records in 1+0 records out 1 bytes transferred in 0.000187 secs (5346 bytes/sec) -rw-r--r-- 1 bde bin 8796093022207 Sep 7 16:04 z 32 z Filesystem 1024-blocks Used Avail Capacity Mounted on /dev/sd0a 64479 27734 31587 47% / ttyv0:bde@alphplex:/tmp/q> exit Bruce Evans, September 1998 He compilado un nuevo kernel y al arrancar aparece el error "archsw.readin.failed". Puedes arrancar especificando el kernel directamente en el segundo estado del boot, pulsando cualquier tecla cuando veas el símbolo | justo antes de que se cargue el loader. Más específicamente, has actualizado los fuentes para tu kernel, y lo has creado y actualizado a partir de ellos sín hacer un "make world". Así no funciona. Haz un "make world". Compatibilidad hardware ¿Qué tipo de discos duros soporta FreeBSD? FreeBSD soporta discos duros EIDE y SCSI (con controladoras compatibles; mira en la siguiente sección), y todos los discos usando el interface original "Western Digital" (MFM, RLL, ESDI y por supuesto IDE). Algunas controladoras ESDI que usan interfaces propietarios quizás no funcionen correctamente. ¿Qué controladoras SCSI están soportadas? FreeBSD soporta las siguientes controladoras SCSI: Adaptec AH-1505 <ISA> AH-152x Series <ISA> AH-154x Series <ISA> AH-174x Series <EISA> Sound Blaster SCSI (AH-152x compat) <ISA> AH-2742/2842 Series <ISA/EISA> AH-2820/2822/2825 Series (Narrow/Twin/Wide) <VLB> AH-294x and aic7870 MB controllers (Narrow/Twin/Wide) <PCI> AH-394x (Narrow/Twin/Wide) Buslogic BT-445 Series <VLB> BT-545 Series <ISA> BT-742 Series <EISA> BT-747 Series <EISA> BT-946 Series <PCI> BT-956 Series <PCI> Future Domain TMC-950 Series <ISA> PCI Generic NCR 53C81x based controllers <PCI> NCR 53C82x based controllers <PCI> NCR 53C860/75 based controllers <PCI> ProAudioSpectrum Zilog 5380 based controllers <ISA> Trantor 130 based controllers <ISA> DTC DTC 3290 EISA SCSI in AHA-154x emulation. Seagate ST-01/02 Series <ISA> UltraStor UH-14f Series <ISA> UH-24f Series <EISA> UH-34f Series <VLB> Western Digital WD7000 <ISA> <No scatter/gather> ¿Qué lectores CD-ROM soporta FreeBSD? Cualquier disco SCSI conectado a una controladora soportada es soportado. Los siguientes interfaces de CD-ROM propietarios son también soportados: Mitsumi LU002 (8bit), LU005 (16bit) and FX001D (16bit 2x Speed). Sony CDU 31/33A Sound Blaster Non-SCSI CD-ROM Matsushita/Panasonic CD-ROM ATAPI compatible IDE CD-ROMs Todas las tarjetas no SCSI son conocidas por ser extremadamente lentas comparadas con los discos SCSI, y algunos CDROM ATAPI quizás no funcionen correctamente. A partir de la versión 2.2 de FreeBSD en CDROM de Walnut Creek se soporta el arranque directo (boot) desde el propio CD. ¿Soporta FreeBSD discos ZIP? FreeBSD soporta los ZIP SCSI externos. Las unidades ZIP solo pueden funcionar en los ID's SCSI 5 y 6, pero si la BIOS de tu controladora lo soporta, puedes arrancar desde él. No sabemos que controladoras dejan arrancar desde ID's diferentes de la 0 o 1... mira en tu documentación y hazmelo saber si te funciona. Los discos Zip ATAPI (IDE) son soportados en FreeBSD 2.2.6 y releases posteriores. FreeBSD ha incluido el soporte de discos ZIP por puerto paralelo desde la versión 3.0. Si estás usando una versión actualizada, debes asegurarte de que tu configuración del kernel incluye los drivers scbus0, da0, ppbus0 y vp0 (el kernel GENERIC los contiene todos excepto vp0). Con todos estos drivers presentes, el disco por puerto paralelo debería estar disponible como /dev/da0s4. Los discos se pueden montar usando mount /dev/da0s4 /mnt o (para discos dos) mount_msdos /dev/da0s4 /mnt. También mira , y . ¿Soporta FreeBSD JAZ, EZ y otros discos removibles? Aparte de la versión IDE de EZ, todos estos son dispositivos SCSI, por lo que deberían funcionar sin problemas ya que FreeBSD los toma como discos SCSI y el IDE EZ también debería funcionar sin problemas ya que se toma como un disco IDE estandard. No estoy seguro de como soporta FreeBSD el cambio de soporte mientras está funcionando. Deberás, desde luego, desmontar la unidad antes de poder cambiar el soporte, y estar seguro de que todas las unidades externas están encendidas antes de arrancar el ordenador con FreeBSD para que este pueda reconocerlas. Mira . ¿Qué tarjetas serie multipuerto son soportadas por FreeBSD? Hay una lista de ellas en la sección dispositivos varios del manual (handbook). Algunas tarjetas "sin nombre" también han funcionado, especialmente las que dicen ser compatibles AST. Mira la página sio para obtener más información sobre la configuración de estas tarjetas. Tengo un tipo de ratón no habitual. ¿Cómo lo configuro? FreeBSD soporta el "bus mouse" y el "InPort bus mouse" de fabricantes como Microsoft, Logitech y ATI. El driver de mouse estiá compilado en el GENERIC kernel (kernel por defecto que carga el sistema). Si estás haciendote un kernel a medida que incluya el driver de ratón, asegurate de añadir la siguiente línea en el fichero de configuración del kernel: device mse0 at isa? port 0x23c tty irq5 vector mseintr ¿Cómo uso mi PS/2 (``mouse port'' o ``teclado'')? Si estás usando una versión reciente de FreeBSD, el driver necesario, psm, está incluido y activado en el kernel. El propio kernel debería detectar tu ratón PS/2 en el momento de arrancar. Si estás usando una versión antigua, solo tienes que activarlo en la configuración del kernel en el momento de la instalación del sistema. Si este ya está instalado, escribe -c en el prompt boot: y actívalo. Por defecto, este driver está desactivado. Si estás usando alguna de las versiones mas antiguas, tendras que añadir la siguiente línea en el fichero de configuración del kernel y compilar uno nuevo: device psm0 at isa? port "IO_KBD" conflicts tty irq 12 vector psmintr Mira la sección configuracion del kernel si no tienes experiencia en la creación de nuevos kernel. Una vez el kernel detecta correctamente el dispositivo psm0 al arrancar, asegúrate de que existe una entrada en /dev para este dispositivo. Puedes hacerlo tecleando: cd /dev; sh MAKEDEV psm0 ¿Es posible hacer uso del ratón fuera de X Windows? Si estás usando el driver por defecto de la cónsola, syscons, puedes usar el ratón en las cónsolas de texto para realizar cut & paste. Ejecuta el demonio (daemon) de ratón moused y arranca el ratón en la cónsola virtual: moused -p /dev/xxxx -t yyyy vidcontrol -m on Donde xxxx es el nombre del dispositivo del ratón y yyyy es un tipo de protocolo para el ratón. Mira en moused para saber los tipos de protocolo soportados. Si quieres ejecutar el demonio moused automaticamente al arrancar el sistema, fija las siguientes variables en /etc/sysconfig (para versión 2.2.1). mousedtype="yyyy" mousedport="xxxx" mousedflags="" En versiones 2.2.2 o superiores, fija las siguientes variables en /etc/rc.conf. moused_type="yyyy" moused_port="xxxx" moused_flags="" A partir de la versión 2.2.6, el demonio del ratón es capaz de determinar automaticamente el protocolo correcto a utilizar. Solo tienes que especificar auto como el protocolo a usar. Cuando el demonio de ratón está funcionando, el acceso al ratón necesita ser coordinado con otros programas como X Window. Mira en para mas información. ¿Cómo hago un cut & paste con el ratón en una cónsola de texto? Una vez tienes el demonio del ratón funcionando (mira , pulsa el botón 1 (izquierdo) y mueve el ratón para seleccionar la región de texto. A continuación, pulsa el botón 2 (medio) o 3 (derecho) para hacer un paste (pegar) de la región seleccionada en el lugar en el que tengamos situado el cursor. En versiones 2.2.6 o superiores, pulsando el botón 2 hara un paste del texto seleccionado. Pulsando el botón 3 extenderemos la región seleccionada de texto. Si tu ratón no tiene el botón medio, puedes emularlo o "remapear" (reconfigurar) los botones de tu ratón con las opciones del demonio moused. MIra en moused para mas información. Mi ratón tiene una rueda de desplazamiento y botones. ¿Puedo usarlo? La respuesta es, desafortunadamente, "depende". Estos ratones con características adicionales requieren en muchos casos drivers propios y especializados. A no ser que el driver de dispositivo o el programa de usuario tenga soporte específico, el ratón se comportará como un ratón normal y corriente. ¿Cómo uso el mouse/trackball/touchpad en mi portátil? Por favor, . Mira también en la sección de ordenadores portátiles. ¿Qué tipo de dispositivos de cinta son soportados? FreeBSD soporta SCSI, QIC-36 (con controladora QIC-02) y QIC-40/80. Esto inclye dispositivos de 8mm (conocidos como Exabyte) y dispositivos DAT. Los QIC-40/80 son conocidos por ser lentos. Algunos de los primeros dispositivos de 8mm no son totalmente compatibles con SCSI2 por lo que pueden no trabajar correctamente en FreeBSD. ¿Soporta FreeBSD "tape changers"? FreeBSD 2.2 soporta SCSI changers usando el dispositivo ch y el comando chio . Los comandos de como controlar el "changer" estan en el man chio. ¿Qué tarjetas de sonido son soportadas por FreeBSD? FreeBSD soporta las tarjetas SoundBlaster, SoundBlaster Pro, SoundBlaster 16, Pro Audio Spectrum 16, AdLib y Gravis Ultrasound. Hay también soporte limitado para la tarjeta MPU-401 y compatibles midi. Las tarjetas SoundBlaster 16 ASP todavía no son soportadas. El Microsoft Sound System sí está soportado. NOTA Esto es solo para sonido!. Este driver no soporta CD-ROMs, SCSI o joysticks en estas tarjetas, a excepción de la SoundBlaster. El interface SCSI de SoundBlaster y algunos CD-ROMs no SCSI son soportados, pero no podrás arrancar el sistema desde ellos. No obtengo sonido de la tarjeta es1370 con driver pcm Puedes ejecutar el siguiente mandato cada vez que arranques el sistema: mixer pcm 100 vol 100 cd 100 ¿Qué tarjetas de red soporta FreeBSD? Mira la sección de tarjetas Ethernet en el manual para una lista más completa. de driver DEC DC21x40 and compatible PCI controllers (including 21140 100bT cards) ed driver NE2000 and 1000 WD/SMC 8003, 8013 and Elite Ultra (8216) 3Com 3c503 HP 27247B and 27252A And clones of the above le driver DEC EtherWORKS II and EtherWORKS III controllers. ie driver AT&T EN100/StarLAN 10 3COM 3c507 Etherlink 16/TP NI5210 Intel EtherExpress is driver Isolan AT 4141-0 Isolink 4110 el driver 3com 3c501 (does not support Multicast or DMA) eg driver 3com 3c505 Etherlink/+ ze driver IBM PCMCIA credit card adapter lnc drive Lance/PCnet cards (Isolan, Novell NE2100, NE32-VL)(*) ep driver 3com 3c509 (Must disable PNP support on card) cx driver Cronyx/Sigma multiport Sync/Async (Cisco and PPP framing) zp driver 3Com PCMCIA Etherlink III (aka 3c589)(A-C only) fea driver DEC DEFEA EISA FDDI controller fpa driver DEC DEFPA PCI FDDI controller fe driver Fujitsu MB86960A/MB86965A Ethernet cards NOTA Los drivers marcados con (*) pueden tener problemas. NOTA 3C598D NO esta soportada todavía. NOTA FreeBSD también soporta TCP/IP sobre líneas paralelo. En estos momentos, no somos compatibles con otras versiones, pero esperamos corregirlo en un futuro cercano. Encontrarás más información sobre este tema en la página man de lp(4). NOTA Algunas de estas tarjetas requieren una partición DOS en el disco duro para ejecutar el programa de configuración. No tengo coprocesador matemático - ¿es malo? NOTA Esto solo afectará a los ordenadores 386/486SX/486SLC. El resto de los microprocesadores tienen un coprocesador integrado. En general, esto no causará problemas, pero hay ciscunstancias en las que podrás echarlo de menos. Especialmente si trabajas en entorno X Window. Si puedes, te recomendamos que compres uno y lo instales en tu ordenador. ¿Qué otros dispositivos soporta FreeBSD 2.X? Aquí hay una lista de drivers que no se han podido catalogar en las categorías anteriores. b004.c Driver for B004 compatible Transputer boards ``ctx'' driver Driver for CORTEX-I Frame grabber ``gp'' driver Driver for National Instruments AT-GPIB and AT-GPIB/TNT boards ``pca'' driver Driver for PC speakers to allow the playing of audio files ``spigot'' driver Driver for the Creative Labs Video Spigot gsc driver Driver for the Genuis GS-4500 Hand scanner joy driver Driver for a joystick labpc driver Driver for National Instrument's Lab-PC and Lab-PC+ ``uart'' driver Stand-alone 6850 UART for MIDI psm driver PS/2 mouse port tw.c Driver for the X-10 POWERHOUSE ¿Soporta FreeBSD el "power management" en mi portátil? FreeBSD soporta APM en algunas máquinas. Por favor, mira en el fichero de configuración del kernel LINT y busca la parabra APM Los sistemas Micron se bloquean al arrancar Algunas placas base Micron tienen una implementación de PCI en la BIOS que no es estandard, lo que provoca que FreeBSD no pueda encontrar los dispositivos PCI en las direcciones en las que deberían estar. Desactiva la opción "Plug and Play Operating System" en la BIOS para solucionar el problema. Puedes encontrar más información en: http://cesdis.gsfc.nasa.gov/linux/drivers/vortex.html#micron Tengo una de las controladoras Adaptec más nuevas y FreeBSD no puede encontrarla Las nuevas controladoras Adaptec con chipset de la serie AIC789x son soportados bajo la nueva CAM SCSI que hace su debut en la version 3.0 de FreeBSD. Los parches para las versiones 3.0-CURRENT y 2.2-STABLE están en: ftp://ftp.FreeBSD.org/pub/FreeBSD/development/cam/. Un disco de arranque con soporte CAM está disponible en: http://www.FreeBSD.org/~abial/cam-boot/. En ambos casos lee el fichero README antes de empezar. Tengo un módem interno Plug & Play y FreeBSD no lo encuentra Necesitarás añadir el ID del modem PnP a la lista de ID PnP en el driver serie. Para activar el soporte PnP, compila un nuevo kernel con controller pnp0 en el fichero de configuración y rebota el sistema. El kernel mostrará por pantalla los IDs de todos los dispositivos PnP que encuentre. Copia el ID del módem en la tabla del fichero /sys/i386/isa/sio.c, sobre la línea 2777. Busca la cadena "SUP1310" en la estructura "siopnp_ids[]" para encontrar la tabla. Genera un nuevo kernel, instalalo y rearranca. Tu módem debería ser encontrado. Quizás tengas que configurar manualmente los dispositivos PnP usando el comando "pnp" en la configuración de arranque usandolo de la siguiente manera: pnp 1 0 enable os irq0 3 drq0 0 port0 0x2f8 ¿Cómo obtengo el prompt "boot:" en una cónsola serie? Crea un nuevo kernel con options COMCONSOLE. Crea el fichero /boot.config y pon como único texto en el fichero. Desconecta el teclado del ordenador. Mira el fichero /usr/src/sys/i386/boot/biosboot/README.serial para mas información. ¿Porqué no funciona mi tarjeta de red PCI 3Com con mi ordenador Micron? >Algunas placas base Micron tienen una implementación de PCI en la BIOS que no es estandard, lo que provoca que FreeBSD no pueda encontrar los dispositivos PCI en las direcciones en las que deberían estar. Para solucionar el problema, desactiva la opción "Plug and Play Operating System" en la BIOS. Puedes encontrar más información sobre este problema en http://cesdis.gsfc.nasa.gov/linux/drivers/vortex.html#micron ¿Soporta FreeBSD "Symmetric Multiproccessing (SMP)? SMP está soportado a partir de la versión 3.0-STABLE Problemas Tengo bloques erróneos en mi disco duro! Los discos SCSI deberían ser capaces de marcar estos bloques erróneos automaticamente para que no presenten problemas. Algunos discos, por alguna razón desconocida, se venden con esta característica desactivada. Para activar esta opción, tendrás que editar una de las opciones del dispositivo, lo que puede ser hecho con FreeBSD tecleando el siguiente comando (como root): scsi -f /dev/rsd0c -m 1 -e -P 3 y cambiando los valores de AWRE y ARRE de 0 a 1:- AWRE (Auto Write Reallocation Enbld): 1 ARRE (Auto Read Reallocation Enbld): 1 Para otros tipos de discos, dependes de las características de los sistemas operativos. Desafortunadamente, el comando "bad144" que se incluye en FreeBSD, necesita ser desarrollado más en profundidad. Se supone que los discos IDE incluyen de serie la posibilidad de "remapear" los bloques dañados; si tienes documentación de tu disco, podrás ver si esta opción está activada o desactivada. FreeBSD no reconoce mi Bustek 742a EISA SCSI! Esta información es específica para la tarjeta 742a, pero puede ser aplicable a otras tarjetas Buslogic. (Bustek = Buslogic) Existen dos versiones de la tarjeta 742a. Son revisiones de hardware A-G y H. La letra de revisión está situada después del número de ensamblaje. La 742a tiene 2 ROMs, una es la BIOS y la otra es el Firmware. FreeBSD no se fija en la versión de BIOS de la tarjeta, pero si en la de Firmware. Buslogic te enviará una actualización de de las ROMs si te pones en contacto con su departamento técnico. La BIOS y el Firmware son distribuidas de manera inseparable. Deberías tener la versión de Firmware más actualizada para la revisión de hardware de tu tarjeta. Las tarjetas con revisión A-G solo pueden aceptar BIOS/Firmware 2.41/2.21. La revisión H y superiores pueden aceptar las versiones más actuales 4.70/3.37. La diferencia entre las versiones de Firmware es que la 3.38 soporta "round robin". Las tarjetas Buslogic tienen un número de serie serigrafiado en ellas. Si tienes una revisión de hardware antigua, puedes llamar al departamento de RMA de Buslogic y darles el número de serie de la tarjeta para intentar cambiarla por una revisión superior del hardware. FreeBSD 2.1 solo soporta revisiones de Firmware 2.21 o superiores. Si tienes una versión inferior, tu tarjeta no será reconocida como Buslogic. Quizás sea reconocida como una Adaptec 1540. Las primeras versiones de Firmware de Buslogic contienen una modo de emulación de la AHA1540. Si tienes una revisión de hardware antigua y consigues una más actual (2.21), necesitarás chequear la posición del jumper W1 y asegurarte que está en la posición B-C (por defecto esta en B-C). Mi controladora SCSI HP Netserver's no es detectada! Este es un problema ya conocido. Las controladoras SCSI EISA integradas en la placa base en las máquinas HP Netserver, ocupan el slot numero 11. El espacio de direcciones para los slots EISA >=10 colisionan con los espacios de direcciones asignados para los dispositivos PCI, y la autoconfiguración de FreeBSD no maneja esta situación demasiado bien. Lo mejor que puedes hacer es pretender que no existan clases de rangos de direcciones :), cambiando el valor de la opción del kernel EISA_SLOTS a un valor de 12. Configura y compila un nuevo kernel como se describe en la entrada correspondiente del manual. Por supuesto, esto presenta un pequeño problema. Para poder solucionarlo, es necesario un truco en la utilidad de configuración. No uses el interface "visual", simplemente teclea lo siguiente en la línea de comando de la utilidad eisa 12 quit Esperamos que en las próximas versiones tengamos solucionados estos temas. ¿Qué ocurre con la controladora IDE CMD640? No funciona. No puede manejar comandos en los dos canales simultáneamente. Hay una solución posible y se activa automáticamente si tu sistema usa este chip. Para más detalles, referirse al man del driver de discos (man 4 wd). Si todavía estás usando FreeBSD 2.2.1 o 2.2.2 con una controladora IDE CMD640 y quieres usar el segundo canal, crea un nuevo kernel con options "CMD640" activada. Esta es la opción por defecto en la versión 2.2.5 y superiores. Tengo mensajes como ``ed1: timeout''. Esto, normalmente es causado por conflictos de interrupciones (por ejemplo, dos tarjetas usando la misma IRQ). Las versiones anteriores a la 2.0.5R eran tolerantes con los problemas de conflictos de IRQ. A partir de esa versión, los conflictos de IRQ ya no son tolerados. Arranca con la opción -c y cambia la entrada correspondiente a tu tarjeta. Si estás usando conectores BCN en tu tarjeta de red, el mensaje de error puede ser debido a una mala terminación de la red. Para chequear esto, conecta un terminador directamente a la salida BNC de la tarjeta (sin cable) y mira si el mensaje desaparece. Cuando monto el CDROM, obtengo ``Incorrect super block''. Tienes que indicar el tipo de dispositivo que quieres montar. Por defecto mount asumirá que el dispositivo que quieres montar es ``ufs''. Si quieres montar un CDROM, tienes que especificar . Esto hace que el sistema asuma que tiene que montar un sistema de ficheros con formato ISO 9660 que es lo que los CDROM deben tener. Como ejemplo, si quieres montar una unidad CDROM, /dev/cd0c, bajo /mnt, tienes que ejecutar mount -t cd9660 /dev/cd0c /mnt Ten en cuenta que el nombre de tu dispositivo (/dev/cd0c en este ejemplo) puede ser diferente dependiendo del interface que estés usando. El comando anterior puede ser acortado tecleando: mount_cd9660 /dev/cd0c /mnt Cuando monto un CDROM, obtengo ``Device not configured''. Esto, generalmente, significa que no hay ningún disco en el lector de CDROM. También puede significar que el lector no es visible para el bus. Chequea que está bién configurado en lo referente a master/slave si es IDE (ATAPI). Algunas veces un CDROM SCSI puede "desaparecer" por que no ha tenido tiempo suficiente para responder a un reset del bus. Si tienes un CDROM SCSI, añade la siguiente línea en el fichero de configuración del kernel y recompílalo. options "SCSI_DELAY=15" Mi impresora es ridiculamente lenta. ¿Qué puedo hacer? Si es paralelo, y el único problema es la lentitud, intenta configurar el puero de impresora en modo "polled": lptcontrol -p Algunas impresoras nuevas de HP son conocidas por no trabajar correctamente en modo de interrupción, aparentemente debido (y todavía no exactamente entendido), a un problema de "timing". Mis programas ocasionalmente mueren con errores ``Signal 11''. Esto puede ser por hardware erróneo (memoria, placa base, etc). Intenta ejecutar algún programa de test de memoria. Ten en cuenta que es posible que tu memoria pase el test del programa que uses, pero que falle en algunas condiciones de uso, como en compilación de kernel. La FAQ SIG11 (listada más abajo) apunta a problemas de lentitud de memoria. Incrementa el número de "wait states" en tu BIOS o instala una memoria más rápida. También puedes intentar desactivar el caché de placa base en la BIOS y comprueba si se resuelve el problema. Hay una extensa FAQ en the SIG11 problem FAQ Cuando arranco, la pantalla queda negra! Este es un problema conocido con las tarjetas de vídeo ATI Mach 64. El problema es que esta tarjeta usa la dirección 2e8, también usada por el puerto serie 4. Debido a un bug (feature?) en el driver sio.c , éste "tocará" este puerto aunque no esté instalado o esté desactivado. Hasta que el problema sea fijado, puedes hacer esto: Teclea en el prompt de arranque. Esto te llevará a la sección de configuración del kernel. Desactiva sio0, sio1, sio2 y sio3 (todos ellos). De esta manera, el driver sio no se activa. Teclea exit para seguir arrancando. Si quieres ser capaz de usar tus puertos serie, tendrás que compilar un nuevo kernel con la siguiente modificación: /usr/src/sys/i386/isa/sio.c. Busca la cadena 0x2e8 y borra esta cadena y la coma anterior (mantén la coma siguiente). Ahora, compila un nuevo kernel de la manera habitual. Después de realizar estos cambios, puedes encontrarte aun que las X Window no funcionan correctamente. Algunas tarjetas de vídeo modernas ATI Mach 64 (especialmente la ATI Mach Xpression) no funcionan con la versión actual de XFree86; la pantalla se queda negra cuando arrancas las X o ocurren cosas extrañas en su funcionamiento. Puedes instalar una versión beta del nuevo servidor X que trabaja mejor, situada en el servidor XFree86 y seguir los links hasta el download. Coge los siguientes ficheros: AccelCards, BetaReport, Cards, Devices, FILES, README.ati, README.FreeBSD, README.Mach64, RELNOTES, VGADriver.Doc, X312BMa64.tgz Reemplaza los viejos ficheros por las nuevas versiones y asegúrate de ejecutar de nuevoxf86config. Tengo 128MB de RAM pero el sistema solo usa 64MB. Debido a la forma que tiene FreeBSD de "ver" el tamaño de memoria en la BIOS, solo puede detectar 16 bits (65535 Kbytes = 64MB) (o menos... algunas BIOS fijan el tamaño de la memoria a 16MB). Para solucionar este problema, tienes que usar la opción del kernel indicada más adelante. Hay una manera de ver la información completa sobre memoria en la BIOS, pero no tenemos espacio en los bloques de arranque (bootblocks) para hacerlo. Por ahora, tenemos que trabajar con la opción del kernel. options "MAXMEM=<n>" Donde n es tu memoria en Kilobytes. Para 128MB, tendrías que usar 131072. FreeBSD 2.0 aborta con ``kmem_map too small!'' Nota El mensaje debería ser ``mb_map too small!'' La parada indica que el sistema no tiene memoria virtual suficiente para los buffers de red (específicamente, clusters mbuf). Puedes incrementar la cantidad de memoria virtual disponible para los clusters mbuf añadiendo: options "NMBCLUSTERS=<n>" al fichero de configuración del kernel, donde <n> es un número en el rango 512-4096, dependiendo del número de conexiones tcp simultáneas que necesites soportar. Te recomendamos intentar con 2048. Puedes monitorizar el número de clusters mbuf en uso con la orden netstat -m. ``CMAP busy panic'' al arrancar con un nuevo kernel. El programa que intenta detectar ficheros /var/db/kvm_*.db puede fallar y provocar el "panic" en el arranque. Si esto ocurre, arranca en mono-usuario y haz: rm /var/db/kvm_*.db ahc0: brkadrint, Illegal Host Access at seqaddr 0x0 Esto significa un conflicto con una controladora Ultrastor SCSI. Durante el proceso de arranque, entra en el menú de configuración del kernel y desactiva el dispositivo uha0. Sendmail dice ``mail loops back to myself'' Esto está contestado en la FAQ de sendmail de la siguiente manera: * Tengo el error "Local configuration error" : 553 relay.domain.net config error: mail loops back to myself 554 <user@domain.net>... Local configuration error Cómo puedo solventar el problema? Has intentado enviar un mail al dominio domain.net y que sea reenviado a un host específico (en este caso relay.domain.net) usando un registro MX, pero la máquina que tiene que aceptar ese mail, no reconoce el domimio como propio. Añade domain.net al fichero /etc/sendmail.cw (si estás usando FEATURE(use_cw_file) o añade "Cw domain.net" al fichero sendmail.cf La versión actual de la FAQ de sendmail puede ser encontrada en comp.mail.sendmail, comp.mail.misc, comp.mail.smail, comp.answers, y news.answers. Tambien puedes recibir una copia enviando un mail a mail-server@rtfm.mit.edu con el comando "send usenet/news.answers/mail/sendmail-faq" en el cuerpo del mensaje. No funcionan correctamente las aplicaciones a pantalla completa en máquinas remotas Quizás la máquina remota tiene el tipo de terminal diferente de cons25 que es el usado por la cónsola de FreeBSD. Hay diferentes maneras de solucionar este problema: Después de hacer el login en la máquina remota, configura la variable SHELL como ANSI o sco. Usa el emulador VT100 como screen local. screen te permite la posibilidad de ejecutar múltiples y concurrentes sesiones desde un terminal. Instala la base de datos del terminal cons25 en la máquina remota. Lanza las X y haz el login en la máquina remota desde xterm. Aparece el mensaje de error "calcru: negative time..." Esto puede ser causado por varios problemas de hardware o software relacionados con las interrupciones. Utilizar TCP/IP sobre el puerto paralelo con un MTU muy grande es una buena manera de provocar este error. Las tarjetas gráficas aceleradoras también lo pueden provocar, teniendo que revisar la interrupción utilizada por la tarjeta. El efecto de este error es que los procesos mueren con el mensaje "SIGXCPU exceeded cpu time limit". Para FreeBSD 3.0 y posteriores desde el 29 de Noviembre de 1998: si el problema no puede fijarse de otra manera, la solución es poner la variable sysctl a: sysctl -w kern.timecounter.method=1 Esto puede significar un impacto en el rendimiento del sistema, pero considerando la causa del problema, probablemente no lo notarás. Si el problema persiste, mantén la variable sysctl a uno y añade la opción "NTIMECOUNTER" en tu kernel para aumentar su valor. Si finalmente llegas a un valor de "NTIMECOUNTER=20" el problema no está resuelto, y las interrupciones están demasiado saturadas para ofrecer un buén rendimiento. Aplicaciones Comerciales NOTA Esta sección está todavía poco desarrollada, por lo que esperamos que las compañías nos ayuden a completarla :) . El grupo de FreeBSD no tiene ningún interés financiero en ninguna de las empresas aquí listadas, simplemente están como servicio público (y creemos que el interés comercial por FreeBSD puede tener efectos muy positivos en la viabilidad a largo término). Animamos a las empresas desarrolladoras de software que nos envíen su información para ser incluidas en esta lista. ¿Dónde puedo obtener Motif para FreeBSD? Contacta con para una distribución de Motif ELF 2.1 para FreeBSD. Esta distribución incluye: OSF/Motif manager, xmbind, panner, wsm. Kit de desarrollo con uil, mrm, xm, xmcxx, includes y ficheros Imake. Librerías ELF estáticas y dinámicas (para usar con FreeBSD 3.0 y posteriores). Applets demostrativos. Asegúrate de especificar que deseas la distribución para FreeBSD cuando hagas el pedido. También se distribuyen versiones para NetBSD y OpenBSD por Apps2go. La distribución sólo está disponible por FTP. Más información Página web de Apps2go o Ventas o Soporte o teléfono (817) 431 8775 o +1 817 431-8775 Contacta con para obtener una distribución de Motif 2.1 ELF o a.out para FreeBSD. Esta distribución incluye: OSF/Motif manager, xmbind, panner, wsm. Kit de desarrollo con uil, mrm, xm, xmcxx, includes y ficheros Imake. Librerías estáticas y dinámicas (especifica ELF para FreeBSD 3.0 y superior o a.out para FreeBSD 2.2.8 o anterior). Applets demostrativos. Páginas man preformateadas. Asegúrate de especificar que deseas la distribución para FreeBSD cuando hagas el pedido. También se distribuyen versiones para Linux por Metro Link. La distribución está disponible en CDROM o vía FTP. Contacta con para una distribución de Motif a.out 2.0 para FreeBSD. Esta distribución incluye: OSF/Motif manager, xmbind, panner, wsm. Kit de desarrollo con uil, mrm, xm, xmcxx, includes y ficheros Imake. Librerías estáticas y dinámicas (para usar con FreeBSD 2.2.8 y anteriores). Applets demostrativos. Páginas man preformateadas. Asegúrate de especificar que deseas la distribución para FreeBSD cuando hagas el pedido. También se distribuyen versiones para BSDI y Linux por Xi Graphics. La distribución se hace en cuatro disquetes... en el futuro esto se cambiará por una versión en CDROM unificada. ¿Dónde puedo conseguir CDE para FreeBSD? Contacta con para la distribucion CDE 1.0.10 para FreeBSD. Incluye Motif 1.2.5, y puede ser usada con Motif 2.0. Este es un CDROM unificado para FreeBSD y Linux. ya no vende el CDE para FreeBSD. KDE es un entorno gráfico "open source" similar a CDE en muchos aspectos. ¿Hay algún servidor X comercial de altas prestaciones? Sí, Xi Graphics y Metro Link venden el producto Accelerated-X para FreeBSD y otros sistemas basados en Intel. La oferta de Metro Link es un servidor X de altas prestaciones que ofrece una fácil configuración usando el conjunto de herramientas "FreeBSD Package", soporte de múltiples tarjetas de vídeo concurrentes y sólo se distribuye en formato binario desde su FTP. Mencionar que la oferta de Metro Link está disponible por el razonable precio de $39. Metro Link también vende el Motif ELF y a.out para FreeBSD. Más información Web de Metro Link o Ventas o Soporte. o Teléfono (954) 938-0283 o +1 954 938-0283 La oferta de Xi Graphics es un servidor X de altas prestaciones que ofrece una fácil configuración, soporte para múltiples tarjetas de vídeo concurrentes, y sólo se distribuye en formato binario, en una distribución en disquetes unificada para FreeBSD y Linux. Xi Graphics también ofrece un servidor X de altas prestaciones para ordenadores portátiles. Hay una distribución demo para testear (versión 5.0). Xi Graphics también vende el Motif y CDE para FreeBSD. Mas información Web de Xi Graphics WWW o ventas o Soporte o Teléfono (800) 946 7433 o +1 303 298-7478. ¿Hay algún sistema de base de datos para FreeBSD? Sí!. Mira en la sección Productos Comerciales del web de FreeBSD. También te recomendamos que mires en la sección Bases de Datos de la colección de Ports. ¿Puedo usar Oracle en FreeBSD? Sí. Las siguientes páginas te explican como configurar el Oracle de Linux en FreeBSD: http://www.scc.nl/~marcel/howto-oracle.html http://www.lf.net/lf/pi/oracle/install-linux-oracle-on-FreeBSD Aplicaciones de usuario ¿Dónde están las aplicaciones? Por favor, mira en la sección de ports para obtener información sobre programas y aplicaciones que han sido portados a FreeBSD. En estos momentos la lista llega a los 1800 creciendo día a día, por lo que te recomendamos que la visites habitualmente o te subscribas a la FreeBSD-announce para las actualizaciones periódicas de nuevas aportaciones. La mayoría de programas están disponibles tanto para la rama 2.2 como para la 3.x y 4.0, y muchos de ellos deberían funcionar en sistemas 2.1.x. Cada vez que se realiza una release de FreeBSD, se incluye un snapshot del arbol de aplicaciones en el directorio ports/. También trabajamos con el concepto de "package", que es, esencialmente una distribución binaria "zipada" con una pequeña información extra que realiza la instalación del programa automaticamente. Un package puede ser instalado y desinstalado fácilmente sin tener que saber los detalles de ficheros o configuraciones que esto conlleva. Usa el menú de instalación de "packages" en /stand/sysinstall (bajo la opción post-configuration del menú principal) o ejecuta el comando pkg_add(1) con el package que estás interesado en instalar. Los package pueden ser identificados por su extensión .tgz. En la distribución de CDROM existe un directorio packages/All en la que se encuentran todos los packages disponibles. También pueden conseguirse en la red en los siguientes servidores: para 2.2.8-RELEASE/2.2-stable ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-2.2.8/ for 3.2-release/3.2-stable ftp://ftp.FreeBSD.ORG/pub/FreeBSD/ports/i386/packages-3-stable/ para 4.0-current ftp://ftp.FreeBSD.ORG/pub/FreeBSD/ports/i386/packages-4-current/ o en tu mirror más cercano. Ten en cuenta que no todos los ports están disponibles como packages. Es siempre buena idea visitar periodicamente la dirección ftp.FreeBSD.org. ¿Dónde encuentro la librería libc.so.3.0? Estás intentando ejecutar un package para versión 2.2/3.x/4.0 en un sistema de versión 2.1.x. Por favor, mira en la sección anterior y usa el package adecuado para tu sistema. Ghostscript tiene muchos errores con mi 386/486SX. No tienes coprocesador matemático, verdad? Necesitarás añadir el emulador matemático en tu kernel; puedes hacerlo añadiendo lo siguiente en el fichero de configuración del kernel: options GPL_MATH_EMULATE NOTA Necesitarás eliminar la opción MATH_EMULATE. Cuando ejecuto una aplicación SCO/iBCS2, falla en socksys. Primero necesitas editar el fichero /etc/sysconfig (o /etc/rc.conf) y en la última sección cambiar la siguiente variable a YES: # Set to YES if you want ibcs2 (SCO) emulation loaded at startup ibcs2=NO El kernel caragará el módulo ibcs2 al arrancar. A continuación necesitarás configurar /compat/ibcs2/dev de la siguiente manera lrwxr-xr-x 1 root wheel 9 Oct 15 22:20 X0R@ -> /dev/null lrwxr-xr-x 1 root wheel 7 Oct 15 22:20 nfsd@ -> socksys -rw-rw-r-- 1 root wheel 0 Oct 28 12:02 null lrwxr-xr-x 1 root wheel 9 Oct 15 22:20 socksys@ -> /dev/null crw-rw-rw- 1 root wheel 41, 1 Oct 15 22:14 spx Solo necesitas el socksys para ir a /dev/null e imitar la apertura y cierre de ficheros. El código en -current gestionará el resto. Esto es mucho más limpio que la manera en la que se hacía antes. Si quieres el driver spx para un conexión, define SPX_HACK cuando compiles el kernel. ¿Cómo configuro INN (Internet News) para mi máquina? Después de la instalación del package o port de inn, un excelente lugar para empezar es Dave Barr's INN Page donde encontrarás las FAQ de INN. ¿Qué versión de Microsoft FrontPage debo usar? Usa el Port. Una versión pre-parcheada para Apache está disponible en la colección de ports. ¿FreeBSD soporta Java? Sí. Por favor, mira en http://www.FreeBSD.org/java. ¿Porqué no puedo compilar este port en mi máquina 3.x-stable? Si utilizas una versión de FreeBSD que ha quedado ligeramente anticuada con respecto a -stable o -current necesitarás el kit de actualización de ports disponible en http://www.FreeBSD.org/ports. Si tienes una versión actualizada, es posible que alguien haya modificado el port de manera que éste compile en -current pero no en -stable. Por favor, envía un informe de error con el comando send-pr(1) ya que la colección de ports está pensada para que funcione tanto en las ramas -stable como -current. ¿Dónde encuentro ld.so? Si quieres ejecutar aplicaciones a.out como Netscape en sistemas con formato de ejecución ELF como FreeBSD 3.1-RELEASE o posteriores, necesitarás la librería /usr/libexec/ld.so y algunas otras en formato a.out. Estas librerías están incluidas en la distribución compat22. Usa /stand/sysinstall o el script install.sh en el subdirectorio compat22 e instalala. También deberían consultarse los ficheros ERRATA de FreeBSD 3.1-R y 3.2-R. Configuración del Kernel Me gustaría personalizar mi kernel. ¿Es difícil? No!, primero, necesitas la distribución completa de fuentes o, por lo menos, la distribución de fuentes del kernel. De esta manera tienes los fuentes necesarios para crearte un nuevo kernel. Al contrario que muchos Unix comerciales, nosotros tenemos la política de NO vender nuestro kernel en formato binario. La instalación de los fuentes ocupa un poco más de espacio, pero te permite consultar los fuentes del kernel en caso de dificultad o entender que está ocurriendo realmente en la ejecución del sistema. Una vez tienes instalada la distribución completa de fuentes, o por lo menos la del kernel, haz lo siguiente como root: cd /usr/src/sys/i386/conf cp GENERIC MYKERNEL vi MYKERNEL config MYKERNEL cd ../../compile/MYKERNEL make depend make all make install reboot El paso 2 no es necesario si todavía tienes un fichero de configuración del kernel de una release anterior de FreeBSD 2.X. - simplemente, copia el fichero antiguo y examínalo cuidadosamente para asegurar que no haya cambiado la sintaxis da algún driver, o haya alguno anticuado. Un buen fichero de configuración para consultar es LINT, el cual contiene ejemplos documentados para todas las posibles opciones del kernel. El fichero de configuración GENERIC se usa para crear el kernel "por defacto" que es el que estarás usando si no has creado ninguno nuevo. Si no necesitas hacer ningún cambio al fichero GENERIC, puedes saltar al paso 3, donde personalizas el kernel para tu sistema. El paso 8 solo debe ejecutarse si los pasos 6 y 7 se han realizado de manera satisfactoria. Esto copiará una imágen del nuevo kernel a /kernel y realizará una copia del antiguo kernel en /kernel.old. Es muy importante recordar esto por si el nuevo kernel falla en algun momento - puedes seleccionar kernel.old en el prompt de arranque. Al hacer un reboot, por defecto se cargará el nuevo kernel. Si la compilación en el paso 7 falla por alguna razón, es recomendable que empieces desde el paso 4 substituyendo GENERIC por MYKERNEL. Si puedes generar el kernel GENERIC, significa que algo en tu fichero de configuración es incorrecto (o has decubierto un bug). Si la compilación del kernel GENERIC falla, posiblemente tengas los fuentes corruptos. Finalmente, si necesitas ver los mensajes originales de arranque del sistema para compilar un nuevo kernel, ejecuta el comando dmesg. Este comando debe imprimir en pantalla todos los mensajes producidos por el kernel al arrancar, los cuales te pueden servir en la configuración de tu nuevo kernel. NOTA Recomendamos hacer un historial fechado de los kernel que vayas creando, de la manera kernel.YYMMDD una vez estén funcionando correctamente. De esta manera, si la próxima vez que juegues con el kernel algo no funciona, puedes arrancar desde el último kernel correcto. Esto es especialmente importante si ahora estás arrancando desde una controladora no soportada por el kernel GENERIC (si, experiencia personal). La compilación del kernel falla por "_hw_float is missing." Dejame adivinar. Has borrado npx0 de tu fichero de configuración porque no tienes coprocesador matemático, no? Mal hecho :-) El dispositivo npx0 es OBLIGATORIO. Aunque no tengas coprocesador, debes incluir el dispositivo npx0 Conflicto de interrupciones con tarjeta serie multi-port. Cuando compilo el kernel con drivers para tarjetas serie multipuerto, el sistema me dice que sólo el primer puerto es testeado y el resto son obviados debido a conflictos de interrupción. Cómo soluciono esto? El problema en este caso es que FreeBSD tiene código interno que evita caidas del sistema por conflictos de hardware o software. La manera de solucionar esto es dejar en blanco la entrada correspondiente a la irq en todos los puertos excepto en uno. Aquí tienes un ejemplo: # # Multiport high-speed serial line - 16550 UARTS # device sio2 at isa? port 0x2a0 tty irq 5 flags 0x501 vector siointr device sio3 at isa? port 0x2a8 tty flags 0x501 vector siointr device sio4 at isa? port 0x2b0 tty flags 0x501 vector siointr device sio5 at isa? port 0x2b8 tty flags 0x501 vector siointr ¿Cómo activo el soporte para discos QIC-40/80? Necesitas "descomentar" la siguiente línea en el fichero genérico de configuración (o añadirla en tu propio fichero), añade un flags 0x1 en la línea fdc y recompila. controller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2 flags 0x1 vector fdintr disk fd0 at fdc0 drive 0 ^^^^^^^^^ disk fd1 at fdc0 drive 1 #tape ft0 at fdc0 drive 2 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ A continuación, crea un nuevo dispositivo llamado /dev/ft0 entrando en el directorio /dev y ejecutando el comando: sh ./MAKEDEV ft0 Para el primer dispositivo. ft1 para el segundo y así para todos los dispositivos de este tipo que tengas. Tendrás un dispositivo llamado /dev/ft0, al cual puedes escribir a través de un programa especial de manejo llamado ft - mira el man en ft para más detalles. Versiones anteriores a la tenían algunos problemas al encontrase con cintas en mal estado; si tienes problemas en los que parece que la cinta se rebovina siempre al llegar al mismo lugar, intenta utilizar la última versión del programa ft que encontrarás en /usr/src/sbin/ft en . Administración de sistema ¿Dónde están los ficheros de configuración de arranque del sistema? De la versión 2.0.5R a la 2.2.1R, el fichero principal de configuración es /etc/sysconfig. Todas las opciones son especificadas en este fichero y otros como /etc/rc y /etc/netstart. Mira en el fichero /etc/sysconfig y cambia los valores para tu sistema. Este fichero está comentado para ayudar en la configuración En versiones posteriores a la 2.2.1 y 3.0 el fichero /etc/sysconfig fue renombrado como rc.conf. La sintaxis también fue retocada para ser mas descriptiva. El fichero /etc/netstart también fue renombrado como /etc/rc.network para que todos los ficheros de configuración puedan ser copiados con el comando cp /usr/src/etc/rc* /etc. /etc/rc.local existe como siempre y debería ser usado para arrancar servicios locales adicionales como INN o programas propios. El fichero /etc/rc.serial es para la inicialización de puertos serie. El fichero /etc/rc.i386 es para especificaciones propias de Intel, como la emulación iBCS2 o la configuración de la cónsola del sistema. A partir de la versión 2.1.0R, también puedes tener un directorio en el que instalar ficheros de arranque locales especificado en /etc/sysconfig (o /etc/rc.conf): # Localización de los ficheros de arranque locales. local_startup=/usr/local/etc/rc.local.d Cada fichero acabado en .sh será ejecutado en orden alfabético. Si quieres asegurarte de un cierto orden en la ejecución sin tener que cambiar todos los nombres de los ficheros, puedes usar un esquema similar al siguiente con dígitos al principio del nombre de cada fichero: 10news.sh 15httpd.sh 20ssh.sh Puede ser visto como "malo" (o SysV :-)) pero nos provee de un esquema regular para programas añadidos localmente sin tener que hacer ediciones complicadas del fichero /etc/rc.local. Muchos de los ports/packages asumen que /usr/local/etc/rc.d es un directorio de arranque local. ¿Cómo añado un usuario facilmente? Usa el comando adduser. Para opciones más avanzadas, usa el comando pw Para borrar a un usuario, usa el comando rmuser. ¿Cómo puedo añadir mi nuevo disco a FreeBSD? Consultar el Tutorial de Formateo de Discos en www.FreeBSD.org. Tengo un nuevo disco removible, ¿como lo uso? Se trate de un disco removible como un ZIP o EA (o un floppy, si quieres usarlo de esta manera), o un nuevo disco duro, una vez instalado y reconocido por el sistema, y tengas tu cartridge/floppy/etc en su interior, las cosas son como para la mayoría de dispositivos. (esta sección esta basada en Mark Mayo's ZIP FAQ) Si es un disco ZIP o floppy, y está formateado en DOS, puedes usar el comando: mount -t msdos /dev/fd0c /floppy Si es un floppy, o este: mount -t msdos /dev/da2s4 /zip para un disco ZIP con la configuración de fábrica. Para otros discos, mira como configurarlos usando fdisk o /stand/sysinstall. El resto de ejemplos serán para un disco ZIP en da2, el tercer disco SCSI. A no ser que se trate de un floppy o disco removible, lo que planeas compartir con otros usuarios, es aconsejable convertir el formato de ficheros a BSD. Obtendrás nombre de ficheros largos, como mínimo doblarás la velocidad de acceso del disco, y mucha más estabilidad. Antes, necesitas rehacer las particiones. Puedes usar el comando fdisk o la utilidad /stand/sysinstall. Si es un disco pequeño que quieres dedicar enteramente a FreeBSD, solo tienes que eliminar la FAT y tabla de particiones, y usar el sistema de particiones de FreeBSD: dd if=/dev/zero of=/dev/rda2 count=2 disklabel -Brw da2 auto Puedes usar el comando disklabel o /stand/sysinstall para crear múltiples particiones BSD. Finalmente, crea un nuevo sistema de ficheros: newfs /dev/rda2c y montalo: mount /dev/da2c /zip Sería una buena idea añadir una línea como esta en el fichero /etc/fstab para que solo tengas que teclear "mount /zip" las siguientes veces. /dev/da2c /zip ffs rw,noauto 0 0 ¿Cómo monto una partición secundaria DOS? Las particiones DOS secundarias se encuentran después de TODAS las particiones primarias. Por ejemplo, si tienes una partición "E" como la segunda partición DOS en el segundo disco SCSI, necesitas crear los ficheros especiales para el dispositivo 5 en /dev, y después montar /dev/da1s5: # cd /dev # ./MAKEDEV da1s5 # mount -t msdos /dev/da1s5 /dos/e ¿Puedo montar otros sistemas de ficheros bajo FreeBSD? Digital UNIX UFS CDROMs pueden ser montados directamente en FreeBSD. Montar particiones de disco de Digital UNIX y otros sistemas que soportan UFS puede ser mas complejo, dependiendo de los detalles de la partición de disco del sistema operativo en cuestión. Linux: 2.2 y posteriores soportan particiones ext2fs. Mira mount_ext2fs para mas información. NT: Existe un driver de solo lectura de NTFS para FreeBSD. Para más información, mira este tutorial de Mark Ovens en http://www.users.globalnet.co.uk/~markov/ntfs_install.html. ¿Cómo puedo usar el "NT loader" para arrancar FreeBSD? La idea general es que copies el primer sector de la partición root nativa de FreeBSD en un fichero en la partición DOS/NT. Asumiento que nombras a ese fichero como c:\bootsect.bsd puedes editar el fichero c:\boot.ini para conseguir algo como esto: [boot loader] timeout=30 default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS [operating systems] multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows NT" C:\BOOTSECT.BSD="FreeBSD" C:\="DOS" Este proceso asume que DOS, NT, FreeBSD o cualquier otro sistema ha sido instalado en sus respectivas particiones en el mismo disco. En nuestro caso, DOS y NT están en la primera partición y FreeBSD en la segunda. Instalamos FreeBSD para arrancarlo desde su partición nativa y no desde el disco MBR. Monta un floppy formateado en DOS bajo la partición /mnt. dd if=/dev/rda0a of=/mnt/bootsect.bsd bs=512 count=1 Rearranca en DOS o NT. Copia el fichero bootsect.bsd y/o el fichero bootsect.lnx del floppy a C:\. Modifica los atributos a boot.ini con: attrib -s -r c:\boot.ini Edita y añade las líneas apropiadas del boot.ini mostrado enteriormente de ejemplo, y vuelve a poner los atributos originales: attrib +s +r c:\boot.ini Si FreeBSD está arrancando desde el MBR, restauralo desde el comando fdisk después de reconfigurarlos para arrancar desde sus particiones nativas. ¿Cómo arranco FreeBSD y Linux desde LILO? Si tienes FreeBSD y Linux en el mismo disco, solo tienes que seguir las instrucciones de instalación de LILO para arrancar un sistema operativo no Linux. Brevemente, son estas: Arranca Linux, y añade las siguientes líneas en el fichero /etc/lilo.conf: other=/dev/hda2 table=/dev/hda label=FreeBSD (Asumiendo que tu partición FreeBSD es conocida por Linux como /dev/hda2). A continuación, ejecuta lilo como root y ya debería estar. Si FreeBSD está en otro disco, necesitas añadir ``loader=/boot/chain.b'' al fichero lilo.conf. Por ejemplo: other=/dev/sdb4 table=/dev/sdb loader=/boot/chain.b label=FreeBSD En algunos casos necesitarás especificar el número de disco en BIOS para que el cargador del boot funcione correctamente desde el segundo disco. Por ejemplo, si tu disco SCSI con FreeBSD es visto por la BIOS como disco 1, en el prompt del cargador de arranque necesitarás especificar: Boot: 1:da(0,a)/kernel En FreeBSD 2.2.5 y posteriores, puedes configurar boot(8) para que haga esto automaticamente. El Linux+FreeBSD mini-HOWTO es una buena referencia para las opciones de interoperabilidad entre FreeBSD y Linux. ¿Cómo arranco FreeBSD y Linux usando BootEasy? Instala el LILO al inicio de la partición de arranque del Linux en lugar de hacerlo en el "Master Boot Record". Así podrás arrancar el LILO desde BootEasy. Si estas usando Windows-95 y Linux, también es recomendable hacer esto para simplificar el arranque de Linux en caso de que sea necesaria una reinstalación del Windows-95 (ya que no quiere convivir con otros sistemas operativos en el mismo Master Boot Record). ¿Puede un disco "dedicado" provocar problemas? El proceso de instalación nos permite elegir dos métodos diferentes de particionar un disco. El sistema por defecto hace que el disco sea compatible con otros sistemas operativos en la misma máquina, usando las tablas de entrada de fdisk (llamadas "slices" en FreeBSD). Opcionalmente, podemos instalar un boot-selector que nos permite seleccionar el sistema operativo con el que queremos arrancar. Mientras este es el caso más com&ún para gente proveniente del mundo de PC, para la gente proveniente del mundo Unix y quienes quieren instalar una máquina para funcionar con FreeBSD y solo FreeBSD, es más habitual usar el sistema de reservar todo el espacio del disco para un solo sistema operativo. Si seleccionas "A)ll FreeBSD" en el editor de fdisk de la utilidad sysinstall, y respondes la siguiente pregunta con "No", usarás este último sistema. Ten en cuenta que usando este sistema no te permitirá la instalación de ningún otro sistema operativo o selector de arranque (boot manager). Entonces, ¿por qué se llama "peligroso"?. Un disco en este modo no contiene lo que las utilidades normales de un PC considerarían una tabla de partición de ficheros válida. Dependiendo del diseño de estas aplicaciones, puede que dañen el sector de arranque una vez entren en contacto con el disco. Por lo menos una BIOS Award usada por máquinas HP Netservers (pero no sólo por ellos) es concocida por ignorar los disco duros que no contengan lo que la BIOS entiende por una tabla de ficheros válida. Para volver un disco "peligrosamente dedicado" a formato estandard de PC, hay básicamente dos opciones. La primera es, escribes suficientes bytes NULL sobre el MBR para hacer que las siguientes instalaciones crean que están en un disco sín usar. Puedes hacer esto así: dd if=/dev/zero of=/dev/rda0 count=15 Alternativamente, puedes hacer: fdisk /mbr que instalará un nuevo master boot record. ¿Cómo puedo añadir más espacio de swap? La mejor manera es incrementar el tamaño de tu partición de swap, o usar esta excusa para añadir un otro disco nuevo. Añadir swap en discos separados hace las cosas más rápidas que simplemente añadir swap en el mismo disco. Como ejemplo, si estás compilando código fuente en un disco, y el swap está en otro disco, es mucho más rápido que si el swap y la compilación se realizaran en el mismo disco. Esto es cierto específicamente para discos SCSI. Los discos IDE no son capaces de permitir el acceso a ambos discos en el mismo canal al mismo tiempo (FreeBSD no soporta el modo 4, ya que todas las I/O de discos IDE son "programadas"). Es realmente muy mala idea instalar el swap sobre NFS a no ser que trabajes en una red muy rápida con un muy buen servidor. Aquí hay un ejemplo para un fichero de swap de 64Mb /usr/swap0, piensa que puedes usar el nombre que quieras). Asegurate que el kernel está compilado con la línea pseudo-device vn 1 #Vnode driver (turns a file into a device) en tu fichero de configuración. El kernel GENERIC la contiene. crea un vn-device cd /dev sh ./MAKEDEV vn0 crea un swapfile (/usr/swap0) dd if=/dev/zero of=/usr/swap0 bs=1024k count=64 activa el fichero de swap en /etc/rc.conf swapfile="/usr/swap0" # Set to name of swapfile if aux swapfile desired. rebota la máquina. Para activar el fichero de swap inmediatamente teclea vnconfig -ce /dev/vn0c /usr/swap0 swap Tengo problemas para poner en marcha mi impresora. Por favor, revisa la sección de impresoras del manual. Cubre la mayoría de posibles problemas. Pásate por esta sección. Mi teclado no coincide con los carácteres de pantalla. El programa de control de teclado tiene una opción para cargar el mapa de teclado. En el directorio /usr/share/syscons/keymaps hay diferentes ficheros de mapas de teclado. Selecciona el que corresponde a tu sistema y cárgalo. kbdcontrol -l uk.iso Tanto el directorio /usr/share/syscons/keymaps como la extensión .kbd son asumidas por la orden kbdcontrol. Esto puede ser configurado en /etc/sysconfig (o rc.conf). Mira los comentarios correspondientes en el propio fichero. En la versión 2.0.5R y posteriores, todo lo referente a fuentes, teclado, etc está en /usr/share/examples/syscons. Actualmente se soportan los siguientes mapas de teclado: Belgian ISO-8859-1 Brazilian 275 keyboard Codepage 850 Brazilian 275 keyboard ISO-8859-1 Danish Codepage 865 Danish ISO-8859-1 French ISO-8859-1 German Codepage 850 German ISO-8859-1 Italian ISO-8859-1 Japanese 106 Japanese 106x Latin American Norwegian ISO-8859-1 Polish ISO-8859-2 (programmer's) Russian Codepage 866 (alternative) Russian koi8-r (shift) Russian koi8-r Spanish ISO-8859-1 Swedish Codepage 850 Swedish ISO-8859-1 Swiss-German ISO-8859-1 United Kingdom Codepage 850 United Kingdom ISO-8859-1 United States of America ISO-8859-1 United States of America dvorak United States of America dvorakx Las cuotas de usuario no funcionan correctamente. No actives las cuotas en '/', Pon el fichero de cuotas en el sistema de ficheros en el que se vayan a forzar las cuotas de usuario: FS QUOTA FILE /usr /usr/admin/quotas /home /home/admin/quotas ... Mi ccd no funciona correctamente El síntoma es: # ccdconfig -C ccdconfig: ioctl (CCDIOCSET): /dev/ccd0c: Inappropriate file type or format # Esto actualmente ocurre cuando estás intentando concatenar las particiones c'. El driver ccd requiere que la partición sea del tipo FS_BSDFFS. Edita la etiqueta del disco (disklabel) que estás intentando concatenar y cambia el tipo de partición a '4.2BSD'. ¿Porqué no puedo editar el disklabel en mi ccd? El síntoma es: # disklabel ccd0 (it prints something sensible here, so let's try to edit it) # disklabel -e ccd0 (edit, save, quit) disklabel: ioctl DIOCWDINFO: No disk label on disk; use "disklabel -r" to install initial label # Esto es porque el disklabel retornado por el ccd es actualmente uno que no corresponde con el real. Puedes resolver este problema escribiendo explícitamente: # disklabel ccd0 > /tmp/disklabel.tmp # disklabel -Rr ccd0 /tmp/disklabel.tmp # disklabel -e ccd0 (this will work now) ¿Soporta FreeBSD primitivas IPC System V? Sí, FreeBSD las soporta. Estas incluyen memoria compartida, mensajes y semáforos. Necesitas añadir las siguientes líneas en la configuración de tu kernel para activarlas. options SYSVSHM options "SHMMAXPGS=64" # 256Kb of sharable memory options SYSVSEM # enable for semaphores options SYSVMSG # enable for messaging Recompila e instala. NOTA: Quizás necesites incrementar SHMMAXPGS a un número como 4096 (16M) si quieres usar GIMP. 256K es suficiente para la memoria compartida en X11R6. ¿Cómo uso sendmail para envio de mail UUCP? La configuración de sendmail incluida en FreeBSD está preparada para sistemas que conectan directamente con Internet. Los sistemas que quieran usar UUCP para el envío de mail deben utilizar otro fichero de configuración. Retocar /etc/sendmail.cf manualmente está considerado algo para puristas. La versión 8 de sendmail incluye un nuevo sistema de configuración llamado m4, en el cual la configuración se realiza en un nivel más alto. Deberías usar los ficheros de configuración situados en /usr/src/usr.sbin/sendmail/cf Si no instalaste tu sistema con el código fuente completo, el paquete de configuración de sendmail está en una distribución aparte. Asumiendo que tienes tu CD-ROM montado, haz: cd /usr/src tar -xvzf /cdrom/dists/src/ssmailcf.aa No te preocupes, solo son unos cientos de kilobytes de tamaño. El fichero README en el directorio cf puede servir como introducción a la configuración del m4. Para envío y recepción va UUCP, te aconsejamos usar la opción mailertable. Se basa en una base de datos que sendmail puede usar como base para tomar las decisiones de enrutado del mail. Primero tienes que crear tu fichero .mc. Estos ficheros se encuentran en el directorio /usr/src/usr.sbin/sendmail/cf/cf. Si miras, encontrarás algunos ejemplos. Asumiendo que tu fichero se llama foo.com, todo lo que necesitas hacer para convertirlo en un fichero sendmail.cf válido es: cd /usr/src/usr.sbin/sendmail/cf/cf make foo.cf cp foo.cf /etc/sendmail.cf Un fichero típico .mc sería algo como: include(`../m4/cf.m4') VERSIONID(`Your version number') OSTYPE(bsd4.4) FEATURE(nodns) FEATURE(nocanonify) FEATURE(mailertable) define(`UUCP_RELAY', your.uucp.relay) define(`UUCP_MAX_SIZE', 200000) MAILER(local) MAILER(smtp) MAILER(uucp) Cw your.alias.host.name Cw youruucpnodename.UUCP Las opciones nodns y nocanonify previenen del uso del DNS durante el tráfico de correo. La cláusula UUCP_RELAY se necesita por razones imperiosas, no preguntes :). Simplemente pon un nombre de máquina de Internet que sea capaz de gestionar pseudo-dominios .UUCP; más sencillo, entrarás el mail relay de tu ISP. Una vez hayas hecho esto, necesitas el fichero llamado /etc/mailtertable. Un ejemplo típico sería: # # makemap hash /etc/mailertable.db < /etc/mailertable # horus.interface-business.de uucp-dom:horus .interface-business.de uucp-dom:if-bus interface-business.de uucp-dom:if-bus .heep.sax.de smtp8:%1 horus.UUCP uucp-dom:horus if-bus.UUCP uucp-dom:if-bus . uucp-dom:sax Como puedes ver, esto es parte de un fichero real. Las tres primeras líneas manejan casos especiales donde el correo dirigido a un dominio no debe ser enviado a través de la ruta por defecto, si no a través de un UUCP vecino para acortar el path de envío. La siguiente línea gestiona el mail del dominio local para que sea enviado vía SMTP. Finalmente, los vecinos UUCP son anotados en la parte .UUCP pseudo-domains, para poder sobreescribir las reglas por defecto. La última línea es siempre un punto, que indica el mail gateway hacia el resto del mundo. Todos los nombres de nodos detrás de uucp-dom: deben ser vecinos válidos UUCP. Como recordatorio de que este fichero debe ser convertido a una base de datos DBM antes de ser usada, la línea de comandos para realizar esta operación esta puesta como un comentario al inicio del fichero. Siempre tienes que ejecutar este comando cada vez que realices algún cambio en tu mailtertable. Si no tienes la seguridad de que una ruta de correo vaya a funcionar correctamente, recuerda la opción de sendmail. Esta opción arranca el sendmail en modo test; simplemente entra 0, seguido por la dirección de mail sobre la que quieres testear la ruta. La última línea te indica el agente interno, el host de destino y la dirección (posiblemente traducido). Sal de este modo tecleando Control-D. j@uriah 191% sendmail -bt ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter <ruleset> <address> > 0 foo@interface-business.de rewrite: ruleset 0 input: foo @ interface-business . de ... rewrite: ruleset 0 returns: $# uucp-dom $@ if-bus $: foo \ < @ interface-business . de > > ^D j@uriah 192% ¿Cómo configuro el correo para conexiones NO permanentes a Internet? Si tienes una dirección IP fija en la conexión, no necesitarás ajustar nada de lo que ya viene por defecto. Configura tu hostname como el nombre asignado a tu IP de Internet y sendmail hará el resto. Si tienes direcciones IP asignadas dinamicamente y usas una conexión ppp a Internet, probablemente tendrás un buzón en el servidor de correo de tu proveedor. Supongamos que el dominio de tu proveedor es myisp.com, y tu nombre de usuario es user. Supongamos también que has llamado a tu máquina bsd.home y que tu proveedor te ha indicado que uses la máaquina relay.myISP.com como mail realy (gateway). Para poder recoger el correo de tu buzón necesitarás instalar un agente de recogida de correo. Fetchmail es una buena opción ya que soporta diferentes protocolos. Normalmente se usa POP3. Puedes recoger automaticamente tu correo al realizar la conexión añadiendo la siguiente línea en el fichero /etc+ppp/ppp.linkup: MYADDR: !bg su user -c fetchmail Asumimos que tienes una cuenta para user en bsd.home. En el home directory de user en bsd.home, crea el fichero .fetchmailrc: poll myISP.com protocol pop3 fetchall pass MySecret; No hace falta decir que este fichero no debe ser "leible" por nadie excepto user ya que contiene el password MySecret. Para enviar el correo con la cabecera from: correcta, debes decirle al sendmail que use user@myISP.com en lugar de user@bsd.home. También deberías decirle al sendmail que envie todo el correo saliente a traves de relay.myISP.com, para una transmisión mucho más rápida. El siguiente fichero .mc debe ser suficiente: VERSIONID(`bsd.home.mc version 1.0') OSTYPE(bsd4.4)dnl FEATURE(nouucp)dnl MAILER(local)dnl MAILER(smtp)dnl Cwlocalhost Cwbsd.home CwmyISP.com MASQUERADE_AS(`myISP.com')dnl FEATURE(allmasquerade)dnl FEATURE(masquerade_envelope)dnl FEATURE(nocanonify)dnl FEATURE(nodns)dnl define(SMART_HOST, `relay.myISP.com') DmmyISP.com define(`confDOMAIN_NAME',`myISP.com')dnl define(`confDELIVERY_MODE',`deferred')dnl Mira en la sección anterior para los detalles de como convertir este fichero .mc en un sendmail.cf. No te olvides de rearrancar sendmail después de cada actualización del fichero sendmail.cf. Olvidé el password de Root!! Tranquilo!!!. Simplemenre rearranca tu sistema, teclea -s en el prompt de arranque para entrar en modo monousuario. En la pregunta sobre el shell a usar, pulsa ENTER. Aparecerá un prompt #. Teclea mount -u / para remontar tu sistema de ficheros en modo de lectura/escritura y a continuación teclea mount -a para montar todos los sistemas de ficheros. Ejecura passwd root para cambiar el password de root. Teclea exit para continuar normalmente con el arranque. ¿Cómo mantengo el control sobre Control-Alt-Delete? Edita el mapa de teclado que estás usando para la cónsola y reemplaza las palabras boot por nop. El mapa de teclado por defecto es /usr/share/syscons/keymaps/us.iso.kbd . Por supuesto si usas otro mapa de teclado adecuado a tu país, tendrías que editarlo. ¿Cómo reformateo ficheros de texto DOS a UNIX? Simplemente usando este comando de perl: perl -i.bak -npe 's/\r\n/\n/g' file ... file es el fichero a procesar. La modificación se hace en el propio fichero dejando el original grabado con extensión .bak. Alternativamente puedes usar el comando tr(1) tr -d '\r' < dos-text-file > unix-file dos-text-file es el fichero que contiene el texto DOS mientras que unix-file contendrá la salida convertida. Este sistema puede ser más rápido que usar perl. ¿Cómo puedo hace "kill" de procesos por nombre? Usa killall(1). ¿Porque el su no me dejar ser root al no estar en el ACL? El error proviene de sistema del autentificación distribuida Kerberos. El problema no es fatal pero si molesto. Puedes ejecutar el comando su con la opcion -K, o desinstalar Kerberos como se describe en la siguiente sección. ¿Cómo desinstalo Kerberos? Para eliminar Kerberos del sistema, reinstala la distribución bin de la release que estés usando. Si tienes el CDROM, puedes montar el cd (asumiremos que esta en /cdrom) y ejecutar: cd /cdrom/bin ./install.sh ¿Cómo añado pseudoterminales a mi sistema? Si tienes muchos usuarios de telnet, ssh, X, o de cónsola, probablemente terminarás desbordando el número de pseudoterminales del sistema. Aquí tienes como añadir más: Compila e instala un nuevo kernel com la línea pseudo-device pty 256 en el fichero de configuración. Ejecuta el comando # cd /dev # ./MAKEDEV pty{1,2,3,4,5,6,7} para crear 256 nodos de dispositivo para los nuevos terminales. Edita el fichero /etc/ttys y añade una línea para cada uno de los 256 terminales. Estas líneas deben seguir la estructura de las entradas existentes, algo como esto: ttyqc none network El órden de la designación de letras es tty[pqrsPQRS][0-9a-v], usando una expresión regular. Rebota el sistema con el nuevo kernel, y lo tendrás listo para funcionar. ¿Cómo puedo releer el fichero /etc/rc.conf y relanzar /etc/rc sin tener que hacer un reboot? Entra en modo monousuario y a continuación vuelve a modo multiusuario. En la consola haz: # shutdown now (Nota: sin -r o -h) # return # exit ¿Qué es un sandbox? Sandbox es un término de seguridad. Puede significar dos cosas: Un proceso que es situado en el interior de una serie de muros virtuales diseñados como prevención e imposibilitar el acceso al sistema principal en caso de que alguien comprometa la seguridad de ese proceso. Se dice que el proceso es capaz de "jugar" entre los muros. Esto significa que se supone que nada de lo que haga el proceso referente a la ejecución de código, puede ser capaz de romper los muros, así no es necesario hacer auditorías detalladas de su código para poder conocer todo lo referente a los riesgos de seguridad del proceso. Los muros pueden, por ejemplo, un userid. Esta es la definición usada en las páginas man de seguridad y del programa named. Veamos como ejemplo el servicio 'ntalk' (consultar /etc/inetd.conf). Este servicio solía ejecutarse con el userid de root. Ahora se ejecuta con el userid tty. El usuario tty esta diseñado para ser usado como usuario sandbox, dificultando así la tarea de un intruso que haya conseguido penetrar en el sistema a través del servicio ntalk. De esta manera, el intruso solo puede afectar a los servicios, programas o procesos propiedad del usuario tty. Un proceso que se ha situado en el interior de una simulación de la máquina. Esto es más hard-core. Básicamente, significa que alguien que sea capaz de penetrar en el proceso, creerá que ha penetrado en el sistema principal, pero de hecho, ha penetrado en una simulación de esa máquina y no puede modificar ningún dato real. El sistema más común de conseguir esto es crear un entorno simulado en un subdirectorio y ejecutar los procesos en ese subdirectorio mediante chroot (la raiz "/" para ese proceso es este directorio, no la raiz "/" real del sistema). Otro sistema habitual es montar un sistema de ficheros de solo lectura y a continuació,n crear un nivel de sistema de ficheros por encima del anterior que dé al proceso la sensación de encontrarse en un sistema de ficheros de lectura/escritura. El proceso creerá que es capaz de escribir esos ficheros, pero sólo el proceso ve los efectos; otros procesos del sistema no ven absolutamente nada. Se intenta crear este tipo de sandbox totalmente transparentes para que el usuario (o intruso) no se de cuenta que está en él. UNIX implementa dos tipos de sandboxes. Uno es a nivel de procesos, y el otro es a nivel de usuarios (userid). Cada proceso UNIX es totalmente independiente de cualquier otro proceso UNIX. Un proceso no puede modificar el espacio de direcciones de otro. Es diferente a los sistemas Windows en los que un proceso puede sobreescribir facilmente el espacio de direcciones de otro proceso, probocando una caida de la máquina. Un proceso UNIX es propiedad de un userid determinado. Si el userid no es el usuario root, éste solo podrá acceder a los procesos de su propiedad, evitando la intrusión en procesos ajenos. El userid también se usa como sistema de protección para datos grabados en disco. El sistema X Windows y las cónsolas virtuales Quiero ejecutar las X, ¿cómo lo hago? La manera más fácil es, simplemente, especificar que quieres usar las X durante el proceso de instalación. Entonces, lee y sigue la documentación de la herramienta xf86config, la cual te ayuda a configurar el sistema XFree86 sobre las características propias de tu sistema (tarjeta de vídeo , ratón, etc). Quizás te interesaría investigar y probar el servidor Xaccel, disponible a un precio muy razonable. Mira en la sección o para más detalles. ¿Porqué no funciona mi ratón con las X? Si estás usando syscons (el driver de cónsola por defecto), puedes configurar FreeBSD para soportar un ratón en cada cónsola virtual. Para evitar conflictos con las X, syscons soporta un dispositivo virtual llamado /dev/sysmouse. Todos los eventos recibidos desde el mouse real son escritos en el dispositivo sysmouse, usando el protocolo MouseSystems. Si quieres usar el ratón en una o más cónsolas virtuales y usar las X, te recomendamos la siguiente configuración: /etc/rc.conf: moused_type=ps/2 # or whatever your actual type is moused_port=/dev/psm0 # or whatever your real port is moused_flags= /etc/XF86Config Section Pointer Protocol "MouseSystems" Device "/dev/sysmouse" ..... Hay gente que prefiere usar /dev/mouse bajo X. Para que esto funcione, /dev/mouse debe estar lincado a /dev/sysmouse: # cd /dev # rm -f mouse # ln -s sysmouse mouse Los menus de X Window y cajas de diálogo no funcionan bien. Intenta desactivar la tecla Num Lock. Si tu tecla Num Lock está activada por defecto al arrancar el sistema, deberías añadir la siguiente línea en la sección Keyboard del fichero XF86Config. # Let the server do the NumLock processing. This should only be # required when using pre-R6 clients ServerNumLock ¿Qué es una cónsola virtual y como creo más? Las cónsolas virtuales te permiten tener sesiones simultáneas en la misma máquina sin necesidad de tener montajes complicados como una red o ejecución de X. Cuando el sistema arranca, mostrará el prompt de login en el monitor una vez finalizado el mismo. Puedes entonces teclear tu login y password y empezar a trabajar (o jugar), en la primera cónsola virtual. En algun momento, es probablemente querras iniciar otra sesion , por ejemplo, para mirar la documentación de un programa que estás ejecutando, o para leer el correo mientras esperas que termine una sesión ftp que tienes establecida. Solo haz Alt-F2 y encontrarás un prompt un prompt de login esperandote en la segunda "cónsola virtual". Cuando quieras volver a la sesión original, sólo tienes que pulsar Alt-F1. La instalación por defecto de FreeBSD tiene tres cónsolas virtuales activadas, y Alt-F1, Alt-F2 y Alt-F3 cambian entre ellas. Para activar mas cónsolas virtuales, edita /etc/ttys y añade tantas entradas como cónsolas virtuales quieras a partir de ttyv4, después del comentario "Virtual Terminals": # Edit the existing entry for ttyv3 in /etc/ttys and change # "off" to "on". ttyv3 "/usr/libexec/getty Pc" cons25 on secure ttyv4 "/usr/libexec/getty Pc" cons25 on secure ttyv5 "/usr/libexec/getty Pc" cons25 on secure ttyv6 "/usr/libexec/getty Pc" cons25 on secure ttyv7 "/usr/libexec/getty Pc" cons25 on secure ttyv8 "/usr/libexec/getty Pc" cons25 on secure ttyv9 "/usr/libexec/getty Pc" cons25 on secure ttyva "/usr/libexec/getty Pc" cons25 on secure ttyvb "/usr/libexec/getty Pc" cons25 on secure Utiliza tantas cónsolas como quieras o necesites. Cuantas más cónsolas tengas, más recursos utilizas; esto puede ser importante si tienes 8MB de RAM o menos. También te puede interesar cambiar el modo secure a insecure. NOTA IMPORTANTE si quieres usar un servidor X DEBES dejar, al menos, un terminal virtual sin usar (o desactivado). La manera más fácil de desactivar una cónsola es "apagarla". Por ejemplo, para desactivar el terminal 12, cambia esto: ttyvb "/usr/libexec/getty Pc" cons25 on secure por esto: ttyvb "/usr/libexec/getty Pc" cons25 off secure Si tu teclado solo tiene 10 teclas de función, tendras que acabar con: ttyv9 "/usr/libexec/getty Pc" cons25 off secure ttyva "/usr/libexec/getty Pc" cons25 off secure ttyvb "/usr/libexec/getty Pc" cons25 off secure (También puedes, simplemente, borrar estas líneas.) Una vez has editado el fichero /etc/ttys, el siguiente paso es asegurarte de que tienes suficientes dispositivos de terminales virtuales. La manera más fácil de hacerlo es: # cd /dev # ./MAKEDEV vty12 # For 12 devices A continuación, la manera más fácil de activar las cónsolas virtuales es rearrancar el sistema. Si, realmente no quieres rearrancarlo, puedes para el servidor de X Window y ejecutar (como root): kill -HUP 1 Es imperativo que pares el servidor de X Window si está funcionando, antes de ejecutar este comando. Si no lo haces, parecerá que tu sistema está parado/colgado después de ejecutar el comando kill. ¿Cómo accedo a las cónsolas virtuales desde X? Si la cónsola está actualmente mostrando X Window, puedes usar Ctrl-Alt-F1, etc, para cambiar entre las cónsolas virtuales. Ten en cuenta que una vez pases de una cónsola X Window a un terminal virtual, solo tienes que usar la tecla Alf- para volver a conmutar entre terminales virtuales o volver a las X. No necesitas pulsar la tecla Ctrl. Si usas la tecla Ctrl para volver a las X en alguna de las releases antiguas, puedes encontrarte que la cónsola de texto está bloqueada. Pulsa la tecla Ctrl de nuevo para desbloquearla. ¿Cómo arranco XDM desde el fichero /etc/ttys? Existen dos escuelas sobre como arrancar el xdm. Una escuela arranca el xdm desde el fichero /etc/ttys usando el ejemplo dado, mientras que la otra simplemente arranca el xdm desde el fichero rc.local o desde un script X.sh en /usr/local/etc/rc.d. Ambos métodos son igualmente válidos, y uno puede funcionar en situaciones que el otro no. En ambos casos el resultado es el mismo: el sistema X Window lanzará un prompt de login gráfico. El método ttys tiene la ventaja de documentar en que vty se lanzarán las X pasando la responsabilidad de rearrancar el servidor X al hacer el logout al proceso init. El método rc.local hace más fácil terminar con el proceso xdm en caso de problemas con el servidor X. Si arrancamos desde rc.local, xdm debe ser arrancado sin argumentos (como un daemon). xdm debe arrancar DESPUES del proceso getty, o ambos entrarán en conflicto bloqueando la cónsola. La mejor manera de evitar este problema es tener un script que retrase el arranque de xdm durante 10 segundos. Una versión previa de esta FAQ decía que debías añadir el terminal virtual usado por las X al fichero /usr/X11R6/lib/X11/xdm/Xservers. Esto no es necesario: las X usarán el primer terminal virtual que encuentre libre. Cuando arranco xconsole obtengo "Couldn't open console". Si arrancas las X con startx, los permisos en /dev/console no serán cambiados, resultando en cosas como que xterm -C y xconsole no funcionen. Esto se debe a la manera en que son fijados los permisos de la cónsola. En un sistema multiusuario, podemos no querer que cualquier usuario pueda escribir en la cónsola de sistema. Para usuarios que realizan logins directamente desde una máquina con un VTY, existe el fichero fbtab para resolver estos problemas. Asegúrate de que existe al menos una línea como esta sin comentar: /dev/ttyv0 0600 /dev/console Está en /etc/fbtab y asegurará que cualquiera que realice un login en /dev/ttyv0 será el propietario de la cónsola. Mi ratón PS/2 no funciona bien en X. Tu ratón y el driver de ratón quizás estén fuera de sincronización. En versiones 2.2.5 y anteriores, conmutando entre sesiones X y sesiones de terminales virtuales, podía provocar una desincronización. Si el problema ocurre muy amenudo, deberías añadir la siguiente opción en el fichero de configuración de tu kernel y recompilarlo. options PSM_CHECKSYNC Mira la sección si no tienes experiencia en compilar nuevos kernels. En versiones 2.2.6 y posteriores, el chequeo de sincronización es realizado de otra manera, y es estandard en el driver de ratón PS/2. Aun así, en casos extraños puedes llegar a ver mensajes de error de sincronización como este: psmintr: out of sync (xxxx != yyyy) y parecer que tu ratón no funciona adecuadamente. Si esto ocurre, desactiva el código de chequeo de sincronización poniendo los flags del driver PS/2 a 0x100. Entra en UserConfig poniendo la opción en el prompt de arranque: boot: -c Entonces, en la línea de comando de UserConfig, teclea: UserConfig> flags psm0 0x100 UserConfig> quit Mi ratón PS/2 de MouseSystems no funciona. Hemos recibido reportes de que algunos modelos de ratones PS/2 de MouseSystems solo trabajan si están configurados en modo "alta resolución". Desafortunadamente no hay solución para versiones 2.0.x y 2.1.x. En versiones 2.2.x, aplica el siguiente parche en /sys/i386/isa/psm.c y compila un nuevo kernel. diff -u psm.c.orig psm.c @@ -766,6 +766,8 @@ if (verbose >= 2) log(LOG_DEBUG, "psm%d: SET_DEFAULTS return code:%04x\n", unit, i); + set_mouse_resolution(sc->kbdc, PSMD_RES_HIGH); + #if 0 set_mouse_scaling(sc->kbdc); /* 1:1 scaling */ set_mouse_mode(sc->kbdc); /* stream mode */ En versiones 2.2.6 o posteriores, especifica el flag 0x04 al driver PS/2 para poner el ratón en modo de alta resolución. Entra en UserConfig: boot: -c y en la línea de comandos teclea: UserConfig> flags psm0 0x04 UserConfig> quit Mira en la sección anterior para posibles causas de problemas con los ratones. Cuando compilo una aplicación X. imake no puede encontrar el fichero imake.tmpl. ¿Dónde está? Imake.tmpl es parte del package Imake, una aplicación estandard de compilación de X. Tanto Imake como headers y otros ficheros necesarios para compilar aplicaciones X están en la distribución de programación X. Puedes instalarla desde el sysinstall o manualmente desde los ficheros de la distribución X. ¿Cómo invierto los botones del ratón? Ejecuta el comando xmodmap -e "pointer = 3 2 1" desde el fichero .xinitrc o .xsession. ¿Cómo instalo un "splash screen" y donde los consigo? Justo antes de la publicación de FreeBSD 3.1 se añadió una nueva característica que permite mostrar "splash screens" durante los mensajes de arranque del sistema. Los "splash screen" deben ser un bitmap de 256 colores (*.BMP) o ZSoft PCX (*.PCX). Además, deben tener una resolución de 320x200 o inferior para poder trabajar en controladoras VGA estándars. Si se compila el soporte VESA en el kernel, se pueden usar bitmaps de hasta 1024x768. Recordar que el soporte de VESA requiere que la opción VM86 sea compilada en el kernel. El soporte actual de VESA puede ser compilado directamente en el kernel con la opción de configuración VESA o cargando el módulo kld VESA durante el arranque. Para usar un "splash screen" necesitas modificar los archivos de inicio que controlan el proceso de arranque de FreeBSD. Estos archivos cambiaron con FreeBSD 3.2, así que ahora existen dos maneras de cargar un "splash screen": FreeBSD 3.1 El primer paso es encontrar una versión bitmap de tu "splash screen". La release 3.1 sólo soporta bitmaps de Windows. Una vez hayas elegido tu "splash screen" copiala en /boot/splash.bmp. A continuación necesitas tener un archivo /boot/loader.rc que contenga las siguientes líneas: load kernel load -t splash_image_data /boot/splash.bmp load splash_bmp autoboot FreeBSD 3.2+ Además de soportar los "splash screens" en formato PCX, FreeBSD 3.2 incluye un mejor sistema de configuración del proceso de arranque. Si quieres, puedes usar el método señalado para FreeBSD 3.1. Si lo haces, y quieres usar PCX, reemplaza splash_bmp con splash_pcx. Si por el contrario quieres usar la nueva configuración de arranque, necesitas crear un archivo /boot/loader.rc que contenga las siguientes líneas: include /boot/loader.4th start y otro archivo /boot/loader.conf que contenga lo siguiente: splash_bmp_load="YES" bitmap_load="YES" Esto asume que estás usando /boot/splash.bmp como tu "splash screen". Si quieres usar un archivo PCX, copialo a /boot/splash.pcx, crea un archivo /boot/loader.rc como se ha indicado anteriormente, y crea un /boot/loader.conf que contenga: splash_pcx_load="YES" bitmap_load="YES" bitmap_name="/boot/splash.pcx" Ahora todo lo que necesitas es un "splash screen". Puedes navegar por una inmejorable galería en http://www.cslab.vt.edu/~jobaldwi/splash/. Networking ¿Dónde puedo encontrar información sobre "diskless booting"? "Diskless booting" significa que una máquina FreeBSD sea arrancada sobre una red, y lea los ficheros necesarios de un servidor y no desde su disco duro. Para más detalles, por favor, lee la sección diskless booting del manual ¿Puede una máquina FreeBSD ser usada como router dedicado? Los estandards de Internet y las buenas prácticas de ingeniería nos prohiben proveer el forward de paquetes en la distribución estandard. Aun así, puedes activar esta opción cambiando la siguiente variable a YES en el fichero rc.conf: gateway_enable=YES # Set to YES if this host will be a gateway Esta opción pondrá la variable sysctl net.inet.ip.forwarding a 1. En muchos casos también necesitarás ejecutar un proceso de rutado para indicar la existencia en la red de tu router; FreeBSD incluye el daemon estandard de rutado BSD routed , aunque en situaciones más complejas quizás quieras usar GaTeD disponible por ftp en ftp.gated.Merit.EDU. Es nuestro deber advertirte que estando FreeBSD configurado de esta manera, no cumple completamente con todos los estandares de routers de Internet, pero es suficiente para uso ordinario. ¿Puedo conectar mi Win95 con Internet a través de FreeBSD? Típicamente, la gente que pregunta esto tiene dos pc's en casa, uno con FreeBSD y otro con Win95; la idea es usar FreeBSD para conectar a Internet y luego ser capaz de acceder a Internet desde el ordenador con Windows 95. Este es realmente un caso especial de la pregunta anterior. Hay un útil documento disponible que explica como configurar FreeBSD como un Router PPP NOTA: Esto requiere, al menos, tener dos direcciones IP fijas disponibles, y posiblemente tres o más, dependiendo del número de máquinas que quieras conectar. Como alternativa, si no tienes una dirección IP fija, puedes usar una de las subredes privadas e instalar un proxy como SQUID y The TIS firewall toolkit en tu FreeBSD. Mira también la sección . ¿Por que falla la compilación del último BIND del ISC? Hay un conflicto entre el fichero cdefs.h incluido en la distribución de BIND y el distribuido con FreeBSD. Solo tienes que borrar compat/include/sys/cdefs.h. ¿Soporta FreeBSD SLIP y PPP? Sí. Mira las paginas man de slattach, sliplogin, pppd y ppp. pppd y ppp soportan conexiones entrantes y salientes. Sliplogin trabaja exclusivamente con conexiones entrantes y slattach con conexiones salientes. Estos programas son descritos en las siguientes secciones del manual: Handbook entry on SLIP (server side) Handbook entry on SLIP (client side) Handbook entry on PPP (kernel version) Handbook entry on PPP (user-mode version) Si solo tienes acceso a Internet a traves de un "shell account", quizás quieras mirar el package slirp. Puede darte un (limitado) acceso a servicios como ftp y http. ¿Soporta FreeBSD NAT o Masquerading? Si tienes una red local (una o más máquinas), pero solo se te ha asignado una única dirección IP desde tu proveedor de Internet (o si recibes las direcciones de manera dinámica), te interesa mirar el programa natd. Natd te permite conectar una red entera a Internet usando solamente una dirección IP. El programa ppp tiene una funcionalidad similar incluida, a través del parámetro -alias. La librería alias es usada en ambos casos. No puedo crear el dispositivo /dev/ed0! En el sistema de trabajo de red de Berkeley, los interfaces de red solo son directamente accesibles por el código del kernel. Por favor, mira el fichero /etc/rc.network y los man de los programas de red allí mencionados. Si esto te deja totalmente confundido, entonces tendrías que conseguir algun libro de administración de red de cualquier sistema operativo basado en BSD; con algunas excepciones significativas, administrar el sistema de red en FreeBSD es básicamente igual que en SunOS 4.0 o Ultrix. ¿Cómo puedo configurar alias de ethernets? Añade ``netmask 0xffffffff'' en el comando ifconfig como el siguiente: ifconfig ed0 alias 204.141.95.2 netmask 0xffffffff ¿Cómo hago para usar el otro puerto de una 3C503? Si quieres usar los otros puertos, tendrás que especificar parámetros adicionales en el comando ifconfig. El puerto por defecto es link0. Para usar el puerto AUI en lugar del BSN, usa link2. Estos flags tendrían que ser especificados usando las variable ifconfig_* en el fichero /etc/rc.conf. Tengo problemas con NFS desde/hacia FreeBSD. Algunas tarjetas de red son mejores que otras y algunas veces pueden causar problemas con aplicaciones de uso intensivo de red como NFS Mira la entrada en el manual de NFS para mas información sobre este tema. ¿Porqué no puedo hacer NFS-mount desde Linux? Algunas versiones de NFS para Linux solo aceptan peticiones para montar unidades hechas desde un puerto privilegiado; intenta: mount -o -P linuxbox:/blah /mnt ¿Porqué no puedo hacer NFS-mount desde una Sun? Las estaciones de trabajo Sun con SunOS 4.x solo aceptan peticiones de montar unidades hechas desde puertos privilegiados; intenta mount -o -P sunbox:/blah /mnt Tengo problemas usando ppp contra máquinas NeXTStep. Intenta desactivar las extensiones TCP en url="http://www.FreeBSD.org/cgi/man.cgi?rc.conf" name="/etc/rc.conf"> cambiando la siguiente variable a NO: tcp_extensions=NO Las máquinas Xylogic's Annex también tienen este problema, por lo que tienes que hacer el mismo cambio para conectar con ellas. ¿Cómo activo soporte de IP multicast? Las operaciones multicast están totalmente soportadas en FreeBSD 2.0 y superiores. Si quieres usar tu máquina como router multicast, necesitarás cargar el módulo de kernel ip_mrouted_mod y ejecutar el programa mrouted. Para mas información: Producto Descripcion Donde --------------- ----------------------- --------------------------------------- faq.txt Mbone FAQ ftp.isi.edu:/mbone/faq.txt imm/immserv IMage Multicast ftp.hawaii.edu:/paccom/imm.src.tar.Z for jpg/gif images. nv Network Video. ftp.parc.xerox.com: /pub/net-reseach/exp/nv3.3alpha.tar.Z vat LBL Visual Audio Tool. ftp.ee.lbl.gov: /conferencing/vat/i386-vat.tar.Z wb LBL White Board. ftp.ee.lbl.gov: /conferencing/wb/i386-wb.tar.Z mmcc MultiMedia Conference ftp.isi.edu: Control program /confctrl/mmcc/mmcc-intel.tar.Z rtpqual Tools for testing the ftp.psc.edu:/pub/net_tools/rtpqual.c quality of RTP packets. vat_nv_record Recording tools for vat ftp.sics.se:archive/vat_nv_record.tar.Z and nv. ¿Qué tarjetas de red están basadas en el chipset DEC PCI? Aquí tienes una lista hecha por Glen Foster: Fabricante Modelo ---------------------------------------------- ASUS PCI-L101-TB Accton ENI1203 Cogent EM960PCI Compex ENET32-PCI D-Link DE-530 Dayna DP1203, DP2100 DEC DE435, DE450 Danpex EN-9400P3 JCIS Condor JC1260 Linksys EtherPCI Mylex LNP101 SMC EtherPower 10/100 (Model 9332) SMC EtherPower (Model 8432) TopWare TE-3500P Zynx ZX342 ¿Porqué tengo que usar el FQDN para hosts en mi servidor? Probablemente el host estará en un dominio diferente; por ejemplo, si estás en el dominio foo.bar.edu y quieres encontrar un host llamado "mumble" en el dominio bar.edu, tendrás que llamarlo por su nombre de dominio, "mumble.bar.edu", en vez de solo "mumble". Tradicionalmente, esto era permitido por los resolvers BIND BSD. La versión actual de bind que se incluye en FreeBSD no resuelve abreviaciones de nombres para hosts fuera de nuestro dominio. ``Permission denied'' para todas las operaciones de red. Si tienes el kernel compilado con la opción IPFIREWALL . debes tener en cuenta que la política por defecto es denegar explícitamente todos los paquetes que no están explícitamente permitidos. Si involuntariamente has desconfigurado el firewall de tu sistema, puedes restaurar la operatibilidad de la red tecleando el siguiente comando como usuario root: ipfw add 65534 allow all from any to any Para mas información en la configuración del firewall de FreeBSD, mira la sección del manual. ¿Cuanto tiempo retrasa IPFW el tráfico? Esta respuesta depende mucho en las reglas definidas y en la versión del procesador. Para la mayoría de aplicaciones que tienen que ver con la ethernet y pequeñas reglas, la respuesta es, prácticamente nada. Aquí tienes una lista de cosas a tener en cuenta para crear reglas de filtrado eficientes: Poner una regla "established" al inicio para manejar la mayoría de trafico TCP. No pongas ninguna regla allow tcp antes de esta. Pon las reglas más usadas antes de las menos usadas (sin modificar la permisividad del firewall). Puedes ver cuales son las reglas más usadas examinando los contadores de paquetes con la orden ipfw -a l. ¿Cómo puedo redirigir peticiones de una máquina a otra?<(/heading> Puedes redirigir peticiones FTP (y otros servicios) con el package "socket", disponible en la colección de ports categoría "sysutils". Simplemente tienes que reemplazar la línea del servicio correspondiente en el fichero /etc/services de la siguiente manera: ftp stream tcp nowait nobody /usr/local/bin/socket socket ftp.foo.com ftp donde "ftp.foo.com" y "ftp" son la máquina y puerto de destino. ¿Dónde puedo conseguir una herramienta de control de ancho de banda?. Existen dos herramientas de control de ancho de banda para FreeBSD. ALTQ es gratis; Bandwidth Manager de Emerging Technologies es un producto comercial. ¿Porqué aparece "/dev/bpf0: device not configured"? El driver Berkeley Packet Filter (bpf) necesita ser activado para ejecutar programas que lo utilizan. Añade esto al fichero de configuración de tu kernel y crea uno nuevo: pseudo-device bpfilter # Berkeley Packet Filter A continuación, después de rebotar tendrás el dispositivo. Esto puede hacerse entrando en el directorio /dev y ejecutando el siguiente comando: # sh MAKEDEV bpf0 Por favor, mira la entrada correspondiente en el handbook para más información sobre la creación de dispositivos. PPP El ppp no funciona. ¿Qué estoy haciendo mal? Primero deberías leer el man de ppp y la sección de PPP del handbook. Activa los logs con el comando set log Phase Chat Connect Carrier lcp ipcp ccp command Este comando debería ser tecleado en el prompt del ppp o incluirse en el fichero de configuración /etc/ppp/ppp.conf (al inicio de la sección default es el mejor lugar). Asegurate que el fichero url="http://www.FreeBSD.org/cgi/man.cgi?syslog.conf" name="/etc/syslog.conf"> contiene las siguientes líneas: !ppp *.* /var/log/ppp.log y que el fichero /var/log/ppp.log existe. Puedes encontrar mucha información sobre lo que está pasando en las conexiones con el fichero de log. Si tu versión de ppp no entiende el comando "set log" deberías bajarte la última versión. Esta compilará sin problemas en FreeBSD 2.1.5 y superiores. Ppp se bloquea al ejecutarlo Esto ocurre normalmente por que no se puede resolver el nombre de la máquina. La mejor manera de solucionar este problema es asegurarse que el sistema use en primer lugar el archivo /etc/hosts para hacer la resolución de nombres. Para ello, basta con editar el archivo /etc/host.conf y poner la línea hosts en primer lugar. A continuación, simplemente hay que añadir una línea para la máquina local en el archivo /etc/hosts. Si no existe una red local, modificar la línea localhost: 127.0.0.1 foo.bar.com foo localhost Añadir otra línea para la máquina local. Consultar las páginas man relevantes para más detalles. Ahora se debería poder ejecutar el siguiente mandato de forma satisfactoria ping -c1 `hostname`. PPP no quiere marcar en modo -auto Primero, asegúrate de tener una ruta por defecto. Ejecutando el comando url="http://www.FreeBSD.org/cgi/man.cgi?netstat"> name="netstat -rn"> deberías ver dos entradas como estas: Destination Gateway Flags Refs Use Netif Expire default 10.0.0.2 UGSc 0 0 tun0 10.0.0.2 10.0.0.1 UH 0 0 tun0 Esto es asumiendo que hayas usado las direcciones del manual, la página man o del fichero de ejemplo ppp.conf.sample. Si no tienes una ruta por defecto, puede ser por que estés usando una versión antigua de ppp que no entiende la palabra HISADDR en el fichero ppp.conf. Si tu versión de ppp es de antes de FreeBSD 2.2.5, cambia la línea add 0 0 HISADDR por otra diciendo add 0 0 10.0.0.2 Otra razón para la inexistencia de la ruta por defecto es que sin darte cuenta hayas creado un default router en el fichero /etc/rc.conf (anteriormente llamado /etc/sysconfig) y hayas omitido la línea delete ALL en el fichero ppp.conf. Si es este el caso vuelve a la sección configuración final del sistema en el handbook. ¿Qué significa "No route to host"? Este error se debe normalmente a la falta de la sección MYADDR: delete ALL add 0 0 HISADDR en el fichero /etc/ppp/ppp.linkup. Esto es solo necesario si tienes una direccion IP dinámica o no sabes la dirección de tu gateway. Si estás usando el modo interactivo, puedes teclear lo siguiente despues de entrar en packet mode: delete ALL add 0 0 HISADDR Pásate por la sección PPP y direcciones IP dinámicas del handbook para más información. Mi conexión se corta pasados 3 minutos El timeout de ppp por defecto es de 3 minutos. Se puede ajustar con la línea: set timeout NNN Donde NNN es el número de segundos de inactividad antes de cerrar la conexión. Si NNN es 0, la conexión no se cerrará nunca por timeout. Es posible poner este comando en el fichero ppp.conf, o teclearla en el prompt del modo interactivo. También es posible ajustarla en cualquier momento mientras la conexión esté activa conectando al socket del servidor ppp usando telnet o pppctl. Leete el man de ppp para más detalles. Mi conexión se corta en situaciones de carga Si tienes la opción Link Quality Reporting (LQR) configurada es posible que demasiados paquetes LQR se pierdan entre tu máquina y el remoto. PPP deduce que la línea es mala y corta la conexión. En versiones anteriores a la 2.2.5 de FreeBSD, LQR estaba activado por defecto. Ahora está desactivado por defecto. LQR puede ser activado con la línea disable lqr Mi conexión se corta en periodos aleatorios Algunas veces, en líneas telefónicas de baja calidad o con mucho ruido, o líneas con la opción de llamada en espera activada, el módem corta la conexión por que piensa (erróneamente) que ha perdido la portadora. Hay una opción en muchos modems para determiar la tolerancia a pérdidas temporales de portadora. En un USR Sportster por ejemplo, esta es medida por el registro S10 en décimas de segundo. Para hacer que tu módem sea más resistente, puedes añadir la siguiente secuencia "send-expect" a la cadena de llamada: set dial "...... ATS10=10 OK ......" Mira en el manual de tu módem para más detalles. No ocurre nada después del mensaje Login OK En versiones anteriores a FreeBSD 2.2.5, una vez estaba la conexión establecida, ppp espera a que el remoto inicie la negociación LCP (Line Control Protocol). Muchos proveedores de Internet no iniciarán la negociación esperando que sea el cliente el que lo haga. Para forzar al ppp a iniciar el LCP, usa la siguiente línea: set openmode active Nota: Normalmente no hay problemas si las dos partes inician la negocioacion LCP, ya que el modo abierto (open mode) está activo por defecto. De todas maneras, la siguiente sección explica cuando pueden haber problemas. Sigo teniendo errores sobre el parámetro magic Ocasionalmente, justo después de la conexión, puedes ver mensajes en el log referentes a "magic number is the same". Algunas veces, estos mensajes son inofensivos, y otras veces uno de los dos extremos finaliza la conexión. Algunas implementaciones de ppp no pueden solucionar este problema, y, aunque parezca que la conexión está establecida, verás repetidas peticiones y aceptaciones de configuración en el fichero de log hasta que una de las dos partes cierra la conexión. Esto ocurre normalmente en servidores con disco lentos que tienen problemas para gestionar eficientemente los puertos serie. También existen informes de problemas en conexiones mediante slip. La razón es que en el tiempo que tarda el servidor en salir del getty y ejecutar el ppp, el cliente manda los paquetes de inicio LCP. Al estar el ECHO todavía activo en el puerto del servidor, el cliente ppp lo único que ve son sus propios paquetes "reflejados" por el servidor. Una parte de la negociación LCP es establecer un número mágico para cada una de los dos extremos de las conexiones para que los "reflejos" puedan ser detectados. El protocolo dice que cuando el remoto intenta negociar el mismo "magic number", se debe enviar un NAK para seleccionar un nuevo "magic number". Durante el periodo de tiempo que el servidor tiene el ECHO activado en el puerto, el cliente ppp envía paquetes LCP, ve que el mismo "magic" vuelve en el paquete reflejado y lo da como no válido (envia NAK). Este todavía ve el paquete reflajado con NAK (lo que significa que el ppp debe cambiar su "magic"). Esto produce un enorme número de cambios de "magic number" que son introducidos en el buffer tty del servidor. Tan pronto como el ppp arranca en el servidor, es bombardeado con cambios de "magic numbers" e inmediatamente decide que ya ha realizado el número suficiente de negociaciones LCP y corta la conexión. Mientras tanto, el cliente, que ya no ve los paquetes reflejados, recibe sin problemas la desconexión del servidor y también cierra la conexión. Esto puede ser resuelto permitiendo que el remoto inicie la negociación, poniendo la siguiente línea en el fichero ppp.conf: set openmode passive Esto indica al ppp que espere a que el servidor comience la negociación LCP. Es posible que algunos servidores nunca inicien la negociación. Si este es el caso, puedes hacer algo como: set openmode active 3 Esto le indica al ppp que sea pasivo durante 3 segundos, y despues comience a enviar peticiones LCP. Si el remoto envía peticiones durante este periodo, ppp responderá inmediatamente sin esperar los 3 segundos establecidos. Las negociaciones LCP continuan hasta que se cierra la conexión Existe actualmente un problema de implementación en ppp en la que no asocia las respuestas LCP, CCP & IPCP con sus peticiones originales. Como resultado, si una implementación ppp es mas lenta durante 6 segundos que la remota, la remota enviará dos peticiones de configuración LCP adicionales. Esto es fatal. Considera dos implementaciones, A y B. A empieza a enviar peticiones LCP inmediatamente después de conectar y B tarda 7 segundos en arrancar. Cuando B arranca, A ha enviado 3 peticiones LCP. Estamos asumiendo que la línea tiene el ECHO desactivado, si no, veriamos los problemas de "magic number" descritos en el apartado anterior. B envía un REQ, y a continuación envía un ACK al primer REQ de A. Esto resulta en que A entra en modo OPENED y envía un ACK (el primero) a B. Mientras, B devuelve dos ACKs mas en respuesta a los dos REQs adicionales enviados por A antes de que B arrancase .B recibe el primer ACK de A y entra en modo OPENED. A recibe el segundo ACK de B y vuelve al estado REQ-SENT, enviando otro (el cuarto) REQ. Entonces recibe el tercer ACK y entra en modo OPENED. Mientras, B recibe el cuarto REQ de A, produciendo que vuelva de nuevo al estado ACK-SENT y enviando otro (el segundo) REQ y (cuarto) ACK. A recibe el REQ, entra en modo REQ-SENT y envía otro REQ. Inmediatamente recibe el siguiente ACK y entra en OPENED. Esto pasa hasta que una de las partes piensa que ya ha realizado suficientes reintentos y corta la conexión. La mejor manera de evitar esto es configurar una de las partes de manera pasiva - que es, hacer que una de las partes espere a que la otra comience la negociación. Esto puede realizarse con el comando: set openmode passive Se debe tener cuidado con esta opción. También se puede usar: set stopped N para limitar el número de veces que ppp espera a que el remoto comience la negociación. Alternativamente, puedes user el comando: set openmode active N donde N es el número de segundos que espera antes de empezar la negociación. Mira en el manual para más detalles. Ppp se bloquea al conectar Antes de la versión 2.2.5 era posible que la conexión se corte nada más iniciarse debido a un problema en la negociación de compresión Predictor1. Esto solo pasa si las dos partes intentan negociar con diferentes protocolos de control de compresión (CCP). Este problema ya está corregido, pero si estás usando una versión antigua de ppp, el problema puede solucionarse con la línea disable pred1 Ppp se bloqua al abrir un shell de test Cuando ejecutas el comando shell o !, ppp ejecuta un shell (o si has pasado argumentos, ppp ejecutará esos argumentos). Ppp esperará a que se complete el comando antes de continuar. Si intentas usar la conexión ppp mientras se ejecuta el comando, parecerá que la conexión se ha colgado. Esto es por que ppp está esperando a que se complete la ejecución del comando. Si quieres ejecutar comandos como este, usa el comando !bg en su lugar. Esto ejecutará el comando en background, y ppp continúa sin problemas con la conexión. Ppp sobre un cable null-modem no funciona No hay manera que ppp detecte automáticamente que una conexión directa se ha cortado. Es debido a las líneas que se usan en un cable serie null-modem. Cuando usamos este tipo de conexión, LQR debería estar siempre activada con el comando enable lqr LQR es aceptado por defecto si es negociado por el remoto. ¿Por que llama sin motivo el ppp en modo -auto? Si ppp llama inesperadamente, debes determinar la causa, y poner filtros (dfilters) para prevenir esas llamadas. Para determinar la causa, usa la siguiente línea: set log +tcp/ip Esto guardara todo el tráfico que pase a través de la conexión. La próxima vez que se realice una llamada no deseada, podrás ver la causa convenientemente guardada. Ahora puedes desactivar las llamadas producidas por esa causa. Usualmente, este tipo de problemas se debe a consultas de DNS. Para prevenir que las consultas de DNS puedan establecer conexiones usa la siguiente línea (esto no hará que los paquetes de DNS queden parados cuando la conexión está establecida): set dfilter 1 deny udp src eq 53 set dfilter 2 deny udp dst eq 53 set dfilter 3 permit 0/0 0/0 Esto no siempre es aconsejable, ya que puede afectar a la capacidad de realizar conexiones bajo demanda - muchos programas necesitan hacer una consulta al DNS antes de poder realizar cualquier operación. En el caso del DNS, deberías determinar que es lo que está intentando realizar esas consultas de DNS. Muchas veces, sendmail es el culpable. Debes asegurarte configurar el sendmail de manera que no realice ninguna consulta al DNS. Mira la sección para tener más detalles acerca de como crear una fichero propio de configuración de sendmail. También deberías añadir la siguiente línea en tu fichero .mc: define(`confDELIVERY_MODE', `d')dnl Esto hara que sendmail encole todo el correo hasta que no se procese la cola (usualmente, sendmail es invocado con "-bd -q30m", indicandole que procese la cola cada 30 minutos) o hasta que se ejecuta el comando "sendmail -q" (por ejemplo, desde el fichero ppp.linup). ¿Qué significan estos errores CCP? Sigo viendo los siguientes errores en el fichero de log: CCP: CcpSendConfigReq CCP: Received Terminate Ack (1) state = Req-Sent (6) Esto es porque ppp está intentando negociar compresión Predictor1, y el remoto no quiere negociar ningún tipo de compresión. Estos mensajes son sin importancia, pero si quieres eliminarlos, puedes desactivar la compresión Predictor1 localmente: disable pred1 PPP se cuelga durante transferencia de ficheros con errores I/OP En la versión FreeBSD 2.2.2 y anteriores, había un problema en el driver tun que no permitía paquetes entrantes con un tamaño mayor que el MTU del interface. La recepción de un paquete mayor que el MTU resulta en un error IO que es logueado vía syslogd. La especificación PPP dice que un MRU de 1500 siempre debería ser aceptada como mínimo, a pesar de lo que se negocie mediante LCP, de todas maneras, es posible que hayas disminuido el MTU por debajo de 1500 y tu proveedor te esté enviando paquetes de 1500, haciendo que tu conexión se bloquee. El problema puede solucionarse haciendo que el tamaño del MTU nunca sea inferior a 1500 bajo FreeBSD 2.2.2 y anteriores. ¿Por que ppp no loguea la velocidad de la conexión? Para loguear todas las líneas de "conversación" de tu módem, debes activar la siguiente opción: set log +connect Esto hará que ppp loguee todo hasta la última cadena "expect" pedida. Si quieres ver la velocidad de tu conexión y usas PAP o CHAP (y por lo tanto no tienes nada que "chatear" después del CONNECT en el script de marcado), debes estar seguro de indicarle al ppp que espera la línea "CONNECT con algo como esto: set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 4 \"\" ATZ OK-ATZ-OK ATDT\\T TIMEOUT 60 CONNECT \\c \\n" Aquí, tenemos nuestro CONNECT, enviamos nada, y esperamos un salto de línea, forzando al ppp que lea la respuesta del CONNECT. Ppp ignora el carácter `\' en mi chat script PPP lee cada línea de los ficheros de configuración para poder interpretar cadenas como set phone "123 456 789" correctamente. Para especificar un carácter ``"'', debes usar la contrabarra (``\''). Cuando el intérprete lee cada argumento, reinterpreta el argumento para buscar alguna secuencia especial de escape como ``\P'' o ``\T''. Como resultado de esta doble lectura, recuerda que has de usar el número correcto de escapes (contrabarras). Si quieres enviar un caracter ``\'' a tu módem, necesitas hacer algo como: set dial "\"\" ATZ OK-ATZ-OK AT\\\\X OK" resultando en la siguiente secuencia: ATZ OK AT\X OK o set phone 1234567 set dial "\"\" ATZ OK ATDT\\T" resultando en la siguiente secuencia: ATZ OK ATDT1234567 Ppp produce un seg-fault, pero no veo el fichero ppp.core Ppp (o cualquier otro programa de este tipo), nunca deberían hacer un core dump. Por que ppp funciona con un id de usuario 0, el sistema operativo no escribirá la imagen del core en disco. Si ppp termina con errores de "segmentation violation" o cualquier otra señal que normalmente causa un core dumped, y quieres poder hacer un debug de ese core, asegúrate de usar la última versión de ppp, y haz lo siguiente: $ tar xfz ppp-*.src.tar.gz $ cd ppp*/ppp $ echo STRIP= >>Makefile $ echo CFLAGS+=-g >>Makefile $ make clean all $ su # make install # chmod 555 /usr/sbin/ppp Ahora tendrás instalada una versión "debuggable" de ppp. Tendrás que ser root para poder ejecutar ppp ya que todos sus privilegios han sido revocados. Cuando arranques ppp, acuerdate del directorio en el que te encuentras. Ahora, cuando ppp recibe una violación de segmentación , creará un fichero core llamado ppp.core. A continuación , deberías hacer lo siguiente: $ su # gdb /usr/sbin/ppp ppp.core (gdb) bt ..... (gdb) f 0 ..... (gdb) i args ..... (gdb) l ..... Toda esta información puede hacer posible diagnosticar el problema. Si estás familiarizado con gdb, puedes encontrar otras pistas como que causó el dump y las direcciones y valores de las variables más relevantes. El proceso que fuerza una llamada en modo auto nunca funciona Este es un problema conocido cuando ppp está configurado para negociar una IP dinámica local con el remoto. Este problema ha sido solucionado en la última versión - busca en el man la palabra iface. El problema era que cuando el programa inicial llama a connect(2), el IP del interface tun es asignado al punto final del socket. El kernel crea el primer paquete saliente y establece la conexión. Si, como resultado de la asignación dinámica de IP, la dirección del interface es cambiada, el punto final del socket original será invalido. Los siguientes paquetes enviados al remoto normalmente serán descartados. Aun si no lo son, cualquier respuesta no será enrutada hacia la máquina de origen por que la dirección IP de la máquina de origen ha cambiado. Hay varias maneras teóricas de solucionar este problema. Lo mejor sería que el remoto reasignase la misma IP si fuese posible :-) La versión actual de ppp hace esto, pero otras muchas implementaciones no. El método más sencillo desde nuestra parte, sería no cambiar nunca la IP del interface tun, pero por el contrario, cambiar todos los paquetes salientes de manera que la ip de origen es cambiada del IP del interface a la IP negociada, instantaneamente. Esto es, esencialmente, lo que hacen libalias(3) y el parámetro de ppp. Otra alternativa (y probablemente la mas eficaz) es implementar una llamada al sistema que cambie todos los sockets de una IP a otra. Ppp debería usar esta llamada para modificar los sockets de todos los programas existentes cuando una nueva dirección IP es negociada. La misma llamada de sistema podría ser usada para clientes dhcp cuando son forzados a rehacer sus sockets. Una tercera opción es permitir que un interface se active sin IP. Los paquetes salientes tendrían un IP de 255.255.255.255 hasta que el primer SIOCAIFADDR ioctl este hecho. Esto permitiría que ppp cambiase el IP de origen, pero solo si el socket es 255.255.255.255 y solo el IP y el checksum necesitan cambiar. Esto, de todas maneras, requiere tocar el kernel para que puede enviar paquetes incorrectos a un interface mal configurado. ¿Porqué muchos juegos no funcionan con el parámetro -alias? La razón por la que muchos de los juegos no funcionan es por que la máquina externa intentará abrir una conexión o enviar paquetes UDP (no solicitados) a la máquina interna. El software "alias" no sabe que esos paquetes debrín enviarse a la máquina interna. Para que las cosas funcionen, asegúrate que la única cosa que está funcionando es el software con el que tienes problemas, entonces ejecuta tcpdump en el interface tun del gateway o ejecuta el log tcp/ip del ppp ("set log +tcp/ip" en el gateway. Cuando arrancas el software que no funciona, deberís ver paquetes que pasan a través del gateway. Cuando algo vuelve del exterior, será rechazado (ese es el problema). Apunta el número de puerto de esos paquetes y cierra el software que no funciona. Haz esto varias veces para comprobar si el número de puerto se repite. Si es así, la siguiente línea en el fichero de configuración del ppp /etc/ppp/ppp.conf hará que las cosas funcionen: alias port proto internalmachine:port port donde "proto" puede ser "tcp" o "udp", "internalmachine" es la máquina a la que quieres que los paquetes sean enviados y "port" es el número de puerto de destino de los paquetes. No podrás usar ese software en otras máquinas sin modificar el comando anterior, y ejecutar el software simultaneamente en dos máquinas internas no será posible - después de todo, el mundo exterior está viendo a toda tu red como una sola máquina. Si los números de puertos no se repiten, hay tres opciones más: 1) Desarrollar el soporte en libalias. Ejemplos de estos "casos especiales" los puedes encontrar en /usr/src/lib/libalias/alias_*.c (alias_ftp.c es un buén prototipo). Esto usualmente supone leer ciertos paquetes salientes conocidos, identificando la instrucción que le indica a la máquina exterior que inicie una conexión con la máquina interna en un puerto específico (aleatorio) y configurar un "ruta" en la tabla de alias para que los paquetes siguientes sepan donde ir. Esta es la solución más difícil, pero es la mejor y hará que el software funcione con múltiples máquinas. 2) Usar un proxy. La aplicación debe soportar socks5 por ejemplo, o (como en el caso del "cvsup") debería tener una opción "pasiva" que evita que el remoto intente abrir conexiones con la maquina local. 3) Redireccionar todo el tráfico a la máquina interna usando "alias addr". Esta es la solución más sencilla. ¿Ha hecho alguien una lista de puertos útiles? Todavía no, pero se podría hacer, si hay interés. En cada ejemplo, internal debe ser reemplazado por la dirección IP de la máquina que va a estar jugando. Quake alias port udp internal:6112 6112 Alternativamente, quizás estés interesado en mirar en el www.battle.netsoporte de Quake a través de proxy">. Quake 2 alias port udp internal:27901 27910 Red Alert alias port udp internal:8675 8675 alias port udp internal:5009 5009 Half Life alias port udp internal:27005 27015 PCAnywhere 8.0 alias port udp internal:5632 5632 alias port tcp internal:5631 5631 ¿Qué son los errores FCS? FCS significa Frame Check Sequence. Cada paquete ppp tiene un checksum añadido para asegurar que los datos que se reciben son los datos que han sido enviados. Si el FCS de un paquete entrante es incorrecto, el paquete es rechazado y se incremente el contador HDLC FCS. Los valores de error HDLC se pueden visualizar usando el comando show hdlc. Si tu conexión es mala (o si tu driver serie está rechazando paquetes), verás errores FCS ocasionales. En general no tienes porque preocuparte de ellos. Si tienes un módem externo, asegúrate que el cable está correctamente aislado de interferencias - esto debería erradicar el problema. Si tu conexión se corta tan pronto como has conectado y ves gran cantidad de errores FCS, puede ser por que ti conexión no es de 8 bits. Asegúrate de que tu módem no está usando control de flujo (XON/XOFF) por software. Si tu conexión de datos debe usar control de flujo por software, usa el comando set accmap 0x000a0000 para indicar al ppp que "escape" los carácteres ^Q y ^S. Otra razón para ver muchos errores FCS puede ser que el remoto haya dejado de "hablar" PPP. Deberís activar el log asíncrono para determinar si los datos entrantes son de un login o un prompt de shell. Si tienes un prompt de shell en el extremo de la conexión, es posible terminar el ppp sin cortar la conexión usando el comando close clp (usando el comando term podrás conectar de nuevo con el shell de la máquina remota. Si no hay nada en el log que indique por que se ha terminado la conexión, deberís preguntar al administrador del sistema remoto porqué ha terminado la sesión. Nada de esto me ayuda - Estoy desesperado ! Si todo falla, envía toda la información que puedas, incluyendo los ficheros de configuración, como arrancas el ppp, las partes relevantes del fichero de log y la salida del comando netstat -rn (antes y despues de la conexión) a la lista de distribución FreeBSD-questions@FreeBSD.org, a la lista de FreeBSD en castellano o al grupo de news comp.unix.bsd.FreeBSD.misc y alguien te ayudará a solucionar los problemas. Comunicaciones serie Esta sección responde las preguntas mas frecuentes sobre las comunicaciones serie con FreeBSD. PPP y SLIP se tratan en la sección . ¿Cómo se si FreeBSD ha encontrado mis puertos serie? Cuando el kernel de FreeBSD arranca, testeará los puertos serie del sistema que estén configurados en el kernel. Puedes estar atento a los mensajes de la cónsola o ejecutar el comando: dmesg | grep sio una vez el sistema esté en funcionamiento. Aquí tienes un ejemplo del resultado de la ejecución del comando: sio0 at 0x3f8-0x3ff irq 4 on isa sio0: type 16550A sio1 at 0x2f8-0x2ff irq 3 on isa sio1: type 16550A Esto muestra dos puertos serie. El primero en la irq 4 usando la dirección 0x3f8, y tiene una UART 16550A. El segundo usa el mismo tipo de chip pero está en la irq 3 y usa la dirección 0x2f8. Los módems internos son tratados como puertos serie, exceptuando que siempre tienen un módem adjuntado al puerto. El kernel GENERIC incluye soporte para dos puertos serie usando la misma irq y dirección que en el ejemplo anterior. Si estas opciones no son correctar para tu sistema, o si has añadido módems internos o tienes más puertos serie de los que están configurados en el kernel, solo tienes que reconfigurar el kernel. Mira en la sección para más detalles. ¿Cómo se si FreeBSD ha encontrado mi módem interno? Respondido en la sección anterior. He actualizado a 2.0.5 y mi tty0X no existen! No te preocupes, han sido integrados en los dispositivos ttydX. Tendrás que modificar algunos ficheros antiguos de configuración. ¿Cómo accedo a los puertos serie en FreeBSD? El tercer puerto serie, sio2 (conocido como COM3 en DOS), está en /dev/cuaa2 para dispositivos de salida (dial-out) y en /dev/ttyd2 para dispositivos de entrada (dial-in). Cuál es la diferencia entre estas dos clases de dispositivos?. Usas los ttydX para los entrantes. Al abrir /dev/ttydX en "blocking mode", un proceso esperará para que el dispositivo cuaaX correspondiente se vuelva inactivo. Cuando abres un dispositivo cuaaX, se asegura de que el puerto serie no está en uso por un dispositivo ttydX. Si el puerto está disponible, se lo "roba" al dispositivo ttydX. Al mismo tiempo, el dispositivo cuaaXX no se preocupa de la detección de portadora. Con este esquema, y un módem en respuesta automática, puedes recibir usuarios remotos y puedes hacer conexiones externas con el mismo módem, mientras el sistema se preocupa de evitar los posible conflictos. ¿Cómo activo el soporte de tarjetas serie multipuerto? Otra vez, en la sección de configuración del kernel tienes la información. Para una tarjeta multipuerto, pon una línea sio para cada puerto serie de la tarjeta en el fichero de configuración del kernel. Especifica la irq y vector solo en una de las líneas. Todos los puertos de la tarjeta compartirán la misma irq. Por consistencia, usa el último puerto serie para especificar la irq. De la misma manera, especifica la opción COM_MULTIPORT. El siguiente ejemplo es para una tarjeta AST 4-port en la irq 7: options "COM_MULTIPORT" device sio4 at isa? port 0x2a0 tty flags 0x781 device sio5 at isa? port 0x2a8 tty flags 0x781 device sio6 at isa? port 0x2b0 tty flags 0x781 device sio7 at isa? port 0x2b8 tty flags 0x781 irq 7 vector siointr Los flags indican que el puerto master tiene un número menor de 7 (0x700), los diagnósticos están activados durante el testeo (0x080), y los puertos comparten una irq (0x001). ¿Puede manejar FreeBSD tarjetas multipuerto compartiendo irq? Todavía no. Tendrás que usar una irq diferente para cada tarjeta. ¿Puedo cambiar los parámetros serie por defecto para un puerto? El dispositivo ttydX (o cuaaX) es el que querrás abrir para tus aplicaciones. Cuando un proceso abre el dispositivo, tendrá una serie de configuraciones I/O por defecto. Puedes ver estas configuraciones con el comando: stty -a -f /dev/ttyd1 Cuando le cambias la configuración a este dispositivo, este cambio se mantiene hasta que el dispositivo se cierra. Cuando se reabre, vuelve a la configuración por defecto. Para hacer cambios sobre la configuración por defecto, puedes abrir y ajustar las opciones del "estado inicial" del dispositivo. Por ejemplo, para poner el dispositivo tty5 en modo CLOCAL, 8 bits, y contro del flujo XON/XOFF, haz stty -f /dev/ttyid5 clocal cs8 ixon ixoff Un buen lugar para hacer esto es en /etc/rc.serial. Ahora, una aplicación tendrá esta configuración por defecto cuando abra el puerto ttyd5. También puedes prevenir o limitar ciertos cambios que pretenda hacer una aplicación. Para ello, ajusta el "lock state" del dispostivo. Por ejemplo, para bloquear la velocidad del puerto ttyd5 a 57600 bps, haz: stty -f /dev/ttyld5 57600 Ahora, una aplicación que abre ttyd5 e intenta cambiar la velocidad del puerto no podrá hacerlo. Naturalmente, deberías hacer que el estado inicial y el estado de bloqueo sean solo de escritura para el usuario root. El script MAKEDEV NO hace esto cuando crea el dispositivo. ¿Cómo puedo activar logins de entrada en mi módem? Quieres hacerte proveedor de Internet, eh?. Primero, necesitarás uno o mas módems que puedan responder automáticamente. Tu módem necesitará activar el carrier-detect sólo cuando detecte una portadora y no tenerla activada continuamente. Necesitará cortar la comunicación y resetearse él mismo cuando la línea DTR pase de on a off. Probablemente usaría RTS/CTS para el control de flujo. Finalmente, debe usar una velocidad constante entre el ordenador y él mismo, pero debería negociar la velocidad entre él mismo y el módem remoto. Para muchos módems compatibles Hayes, este comando creará estas configuraciones y las grabará en la memoria no volátil: AT &C1 &D3 &K3 &Q6 S0=1 &W Mira la sección para saber como enviar estas configuraciones al módem sin necesidad de un programa terminal de DOS. A continuación, añade una línea en el fichero /etc/ttys para el módem. Este fichero lista todos los puertos en los que el sistema operativo esperará los logins. La línea sería como esta: ttyd1 "/usr/libexec/getty std.57600" dialup on insecure Esta línea indica que el segundo puerto serie /dev/ttyd1 tiene un módem conectado, la velocidad es de 57600 bps y sin paridad (std.57600. El tipo de terminal para este puerto es "dialup". El puerto está "on" y es inseguro (lo que significa que los logins como root no son permitidos). Muchos usuarios, ponen un sus ficheros .profile o .login un prompt para el tipo de terminal. El ejemplo muestra el puerto como inseguro. Para ser root en ese puerto, hacer el login como un usuario normal, y ejecutar el comando su. Si en lugar de inseguro, el terminal es seguro (secure), puedes hacer login como root directamente. Despues de modificar el fichero /etc/ttys, necesitas lanzar una señal HUP al proceso init: kill -HUP 1 Esto fuerza al proceso init a releer el fichero /etc/ttys. El proceso init arrancará los procesos getty en todos los puertos configurados como "on". Puedes ver si los logins están disponibles en los puertos tecleando: ps -ax | grep '[t]tyd1' deberías ver algo como: 747 ?? I 0:00.04 /usr/libexec/getty std.57600 ttyd1 ¿Cómo puedo conectar un dumb terminal a un FreeBSD? Si estás usando otro ordenador como terminal en tu sistema FreeBSD, usa un cable null módem entre los dos puertos serie. Si ya estás usando un terminal, mira en las instrucciones del mismo. A continuación, modifica el fichero /etc/ttys Por ejemplo, si estás instalando un terminal WYSE-50 en el quinto puerto serie, usa una línea como esta: ttyd4 "/usr/libexec/getty std.38400" wyse50 on secure Este ejemplo muestra que el puerto /dev/ttyd4 tiene un terminal Wyse50 conectado a 38400 bps sin paridad y los logins de root son permitidos. ¿Porqué no puedo ejecutar tip o cu? En tu sistema, los programas tip y cu son probablemente ejecutables solo por uucp y el grupo dialer. Puedes usar el grupo dialer para controlar quien tiene acceso al módem o sistemas remotos. Sólo tienes que añadirte tu mismo al grupo dialer. Alternativamente, puedes dejar que todos los usuarios de tu sistema ejecuten tip y cu tecleando: # chmod 4511 /usr/bin/cu # chmod 4511 /usr/bin/tip Mi módem hayes no está soportado. ¿Que puedo hacer? Actualmente, el man de tip está anticuado. Hay un dialer Hayes genérico. Solo usa ``at=hayes'' en tu fichero /etc/remote. El driver Hayes no es tan desarrollado como para reconocer algunas de las características avanzadas de los módems modernos, mensajes como BUSY, NO DIALTONE o CONNECT 115200 lo pueden confundir. Deberías anular estos mensajes cuando uses tip (utilizando la cadena ATX0&W). También, el timeout de llamada para tip está en 60 segundos. Tu módem debería usar algo menor, o tip puede pensar que hay un problema de comunicación. Intenta con ATS7=45&W. ¿Cómo puedo introducir estos comandos AT? Haz lo que se llama una entrada directa en el fichero /etc/remote. Por ejemplo, si tu módem está conectado al primer puerto serie, /dev/cuaa0, escribe la siguiente línea: cuaa0:dv=/dev/cuaa0:br#19200:pa=none Usa la velocidad más alta que soporte tu módem en la sección br. A continuación teclea tip cuaa0 y estarás conectado al módem. Si no existe el dispositivo /dev/cuaa0 en tu sistema , teclea lo siguiente: # cd /dev # ./MAKEDEV cuaa0 O usa el comando cu como root con los siguientes parámetros: # cu -l``line'' -s``speed'' con line siendo el puerto serie (por ejemplo /dev/cuaa0>) y speed siendo la velocidad (por ejemplo 57600. Cuando termines de entrar los comandos AT, pulsa la tecla . para salir. El símbolo @ no funciona correctamente! El símbolo @ en la opción de números de teléfono indica a tip que busque en el fichero phone(5) un número de teléfono determinado. Pero el símbolo @ es también un carácter especial en otros ficheros y opciones como /etc/remote. Pon una contrabarra junto al carácter: pn=\@ ¿Cómo puedo llamar desde la línea de comandos? Pon lo que se llama una entrada genérica en el fichero /etc/remote. Por ejemplo: tip115200|Dial any phone number at 115200 bps:\ :dv=/dev/cuaa0:br#115200:at=hayes:pa=none:du: tip57600|Dial any phone number at 57600 bps:\ :dv=/dev/cuaa0:br#57600:at=hayes:pa=none:du: Entonces puedes hacer cosas como tip -115200 5551234. Si prefieres usar cu antes que tip, usa una entrada genérica de cu: cu115200|Use cu to dial any number at 115200bps:\ :dv=/dev/cuaa1:br#57600:at=hayes:pa=none:du: y teclea ``cu 5551234 -s 115200''. ¿Tengo que teclear la velocidad cada vez que hago esto? Pon una entrada para tip1200 o cu1200, pero puedes usar la velocidad que mejor se amolde a tus necesidades. tip piensa que una buena velocidad por defecto es 1200 bps ya que busca una entrada tip1200. No tienes por que usar 1200 bps. Accedo a diferentes hosts a través de un servidor de terminales. En lugar de esperar a que estés conectado y teclear CONNECT <host> cada vez, usa la opción cm de tip. Por ejemplo, estas entradas en el fichero /etc/remote: pain|pain.deep13.com|Forrester's machine:\ :cm=CONNECT pain\n:tc=deep13: muffin|muffin.deep13.com|Frank's machine:\ :cm=CONNECT muffin\n:tc=deep13: deep13:Gizmonics Institute terminal server:\ :dv=/dev/cua02:br#38400:at=hayes:du:pa=none:pn=5551234: Esto hará que puedas teclear tip pain o tip muffin para conectarte a las máquinas pain o muffin. ¿Puede tip intentar más de una línea para cada lugar? Este es un problema habitual en universidades con diferentes líneas de módem y unos cientos de usuarios intentado usarlas... Haz una entrada para tu universidad en el fichero /etc/remote y usa \@ para la opción pn: big-university:\ :pn=\@:tc=dialout dialout:\ :dv=/dev/cuaa3:br#9600:at=courier:du:pa=none: Entonces, lista los números de teléfono de la universidad en el fichero /etc/phones: big-university 5551111 big-university 5551112 big-university 5551113 big-university 5551114 tip intentará cada uno de estos números en el orden en el que estén listados. Si quieres que se realicen reintentos, ejecuta tip en una bucle while. ¿Porqué tengo que teclea CTRL+P dos veces para enviar CTRL+P una vez? CTRL+P es el carácter por defecto de "forzar", usado para indicarle al programa tip que el próximo carácter es un dato literal. Puedes configurar el carácter "forzar" a cualquier otro carácter con el escape ~s, el cual significa "poner una variable". Teclea ~sforce=<single-char> seguido de una nueva línea. <single-char> es cualquier carácter simple. Si dejas libre <single-char> entonces el carácter de forzar es el caracter nul, al cual puedes acceder tecleando CTRL+2 o CTRL+SPACE. Un valor más adecuado para <single-char> es SHIFT+CTRL+6, el cual solo es usado en algunos servidores de terminales. Puedes tener el carácter de forzar donde quieras, especificando lo siguiente en tu fichero $HOME/.tiprc force=<single-char> De repente, todo lo que tecleo es en mayúsculas Has debido pulsar CTRL+A, tip tiene este carácter especial para gente que tenga la tecla caps-lock estropeada. Usa ~s como en la sección anterior y pon la variable "raisechar" a un valor razonable. De hecho, puedes ponerla al mismo valor que que el carácter de forzar, si no esperas usar estas características. Aqui hay un ejemplo del fichero .tiprc perfecto para usuarios de Emacs que necesiten teclear CTRL+2 y CTRL+A muchas veces: force=^^ raisechar=^^ El simbolo ^^ es SHIFT+CTRL+6. ¿Cómo puedo hacer transferecia de ficheros con tip? Si estás conectado con otro sistema UNIX, puedes enviar y recibir ficheros con ~p (put) y ~t (take). Estos comandos ejecutan cat y echo en el sistema remoto para aceptar y enviar ficheros. La sintaxis es: ~p <local-file> [<remote-file>] ~t <remote-file> [<local-file>] No hay chequeo de errores, por lo que es mejor usar otro protocolo como zmodem. ¿Cómo puedo usar zmodem con tip? Primero, instala uno de los programas zmodem de la colección de ports (por ejemplo lrzsz y rzsz). Para recibir ficheros, inicia el programa de envío en la parte remota. A continuación, pulsa enter y teclea ~C rz'' (or ``~C lrz'' si instalaste lrzsz) para empezar a recibir localmente. Para enviar ficheros, inicia el programa de recepción en la parte remota. A continuación pulsa enter y teclea ~C sz <files>'' (o ~C lsz <files>) para enviarlos al sistema remoto. FreeBSD parece que no puede encontrar mis puertos series aún cuando la configuración es correcta. Las placas bases y tarjetas con UARTs de Acer no son detectadas correctamente por FreeBSD durante la fase de detección serie. Obten un parche de www.lemis.com para solucionar el problema. Preguntas varias FreeBSD usa más espacio de swap que Linux. Porqué? No lo hace. Deberías pensar "Porque mi swap parece lleno?". Si esto es lo que realmente querías decir, es por que poniendo los datos en swap en luar de descartarlos, hace que sea más rápido recuperarlos que si el paginador tuviese que ir a través del sistema de ficheros y usar bloques sin modificar desde un ejecutable. La cantidad actual de páginas que puedes tener en el core en una sola vez no es reducida; las páginas sin usar son desplazadas como sea necesario. ¿Porqué usar (que son) a.out y ELF como formatos ejecutables? Para entender por que FreeBSD usa el formato a.out, debes saber primero un poco sobre los tres formatos dominantes actualmente en UNIX: a.out El antiguo y clásico formato de objeto. Usa una corta y compacta cabecera con un número mágico en el inicio que es usado para caracterizar el formato (mira en a.out(5) para más detalles). Contiene tres segmentos cargados: .text, .data y .bss más una tabla de símbolos y una tabla de cadenas de carácteres. COFF El formato de objeto SVR3. La cabecera comprime una sección de tablas, de manera que puedas tener más de una sola sección .test, .data y .bss ELF El sucesor de COFF, ofreciendo múltiples secciones y valores posibles de 32 o 64 bits. Un problema importante: ELF fue diseñado con la presunción de que solo existiría un único ABI por arquitectura de sistema. Esta presunción actualmente es incorrecta, incluso en el mundo comercial (el cual tiene al menos tres ABIs: SVR4, Solaris y SCO). FreeBSD intenta solucionar este problema de manera que provee de una utilidad para marcar un ejecutable ELF con información sobre el ABI con el que es compatible. Para más información, mira el man de brandelf. FreeBSD viene del sistema clásico y tradicionalmente ha utilizado el formato a.out, una tecnología probada y testeada a través de muchas generaciones de releases de BSD. También es posible construir y ejecutar binarios nativos ELF (y kernels) en sistemas FreeBSD. FreeBSD inicialmente se resistió al salto de cambiar a ELF como su formato por defecto. Porqué?, bien, cuando el mundo Linux hizo su transición a ELF no era nada fácil abandonar el formato ejecutable a.out debido a su inflexible mecanismo de tablas basadas en librerías compartidas. Esto hizo muy difícil para los fabricantes y desarrolladores la creación de librerías compartidas. A partir del momento en el que se ofrecieron una serie de herramientas que ofrecían la solución al problema de las librerías compartidas, el coste de la migración fue aceptado como necesario y la transición se hizo. En el caso de FreeBSD, el mecanismo de librerías compartidas esta más basado en el estilo de SunOS, mucho más sencillo de usar. De todas maneras, empezando con la version 3.0, FreeBSD soportará oficialmente binarios ELF como el formato por defecto. Aunque pensamos que el formato ejecutable a.out nos ha servidor muy bién, la gente de GNU, que hacen las herramientas de compilación que usamos, ha dejado de dar soporte para el formato a.out. Esto nos ha forzado a mantener dos versiones divergentes del compilador y lincador. ¿Porqué chmod no puede cambiar los permisos de los links? Tienes que usar o junto con la opción para que funcione. Para más información, mira la página de chmod y de symlink. CUIDADO la opción hace un chmod RECURSIVO. Ten cuidado al especificar directorios o symlinks con chmod. Si quieres cambiar los permisos de un directorio referenciado por un symlink, usa chmod sin ninguna opción y sigue el symlink con una barra /. Por ejemplo, si foo es un symlink al directorio bar, y quieres cambiar los permisos de foo /actualmente bar), deberías hacer algo como esto: chmod 555 foo/ Con la barra, chmod seguira el symlink, foo, para cambiar los permisos del directorio bar. ¿Porqué están los nombres de usuario restringidos a 8 caracteres? Pensarás que es fácil y suficiente con cambiar UT_NAMESIZE y reconstruir el kernel, y todo volverá a funcionar. Desafortunadamente hay aplicaciones y programas (incluyendo herramientas de sistema) que tienen en el propio código (no siempre 8 o 9, pero si 15 o 20) en estructuras, buffers... y rompería los clientes de NIS de Sun y sin duda existirían otros problemas interactuando con otros sistemas UNIX. En FreeBSD 3.0 y superiores, se ha incrementado el número máxmimo de carácteres a 16 y todas esas utilidades con longitud de carácteres prefijada han sido encontradas y arregladas. El hecho de que este cambio afectase a muchas áreas del sistema es el motivo por el que el cambio no se ha hecho hasta la versión 3.0. Si eres absolutamente cuidadoso y quieres arreglas tu mismo este problema en versiones anteriores, edita el fichero /usr/include/utmp.h y cambia el parámetro UT_NAMESIZE a la longitud que desees. También debes editar el fichero /usr/include/sys/param.h y poner el valor de MAXLOGNAME al mismo que UT_NAMESIZE. Finalmente, recompila los fuentes, no te olvides que el contenido de /usr/include es actualizado cada vez!. En su lugar, cambia los ficheros apropiados en /usr/src/.. ¿Puedo ejecutar binarios DOS bajo FreeBSD? Sí, empezando en la versión 3.0 puedes usar la emulación DOS rundos de BSDI, la cual ha sido integrada y mejorada. Envía un mail a la Lista de discusión de emulación en FreeBSD si estás interesado en participar en la evolución de esta característica. Para sistemas pre-3.0 hay una pequeña utilidad llamada pcemu en la colección de puertos que emula un 8088 y suficientes servicios de BIOS para ejecutar aplicaciones de modo texto. Requiere el sistema de X Window. ¿Qué es sup, y como lo uso? SUP significa Software Update Protocol, y fue desarrollado por CMU para mantener sus árboles de desarrollo sincronizados. Nosotros lo usabamos para manterner el servidor central sincronizado con otros servidores remotos. SUP no es amigo del ancho de banda, y ha sido retirado. El método actual recomendado para mantener tus fuentes actualizados es CVSup ¿Existen herramientas de ahorro de energía en FreeBSD? FreeBSD usa la instrucción HLT (halt) cuando el sistema está (idle) para reducir el consumo de energía. Si tienes la opción APM (Automatic Power Management) configurado, FreeBSD puede poner la cpu en modo de baja energía. ¿Qué significa "MFC"? MFC es un acrónimo para "Merges From -CURRENT". Es usado en los logs de CVS para indicar que un cambio se ha migrado de la rama CURRENT a la rama STABLE. ¿Qué significa "BSD"? Pertenece a un lenguaje secreto que solo sus miembros conoces. No tiene traducción literal, pero basta con decir que su traducción está entre, "Equipo de Fórmula-1", "Los Pinguinos son un buén aperitivo", y "Tenermos mejor sentido del humor que Linux" :-) Seriamente, BSD es un acrónimo de "Berkeley Software Distribution", el cual es el nombre que el CSRG de Berkeley (Computer Systems Research Group) escogió para sus distribuciones de Unix. Sólo para hackers serios de FreeBSD ¿Qué son SNAPs y RELEASEs? Hay actualmente tres ramas activas/semi-activas en el desarrollo de FreeBSD y en su CVS Repository: RELENG_2_2 AKA 2.2-stable AKA "2.2 branch" RELENG_3 AKA 3.x-stable AKA "3.0 branch" HEAD AKA AKA 4.0-current HEAD no es una rama actual, como las otras dos, es simplemente una constante simbólica para la versión de desarrollo actual a la cual nos referimos simplemente como . Actualmente, es el desarrollo de la versión 4.0 y la rama 3.0-stable es RELENG_3, separada de -current en Enero de 1999. ¿Cómo puedo hacerme mi propia release personalizada? Para hacer una release necesitas hacer tres cosas: primero, necesitas usar un kernel con el driver vn configurado. Añade esto a tu fichero de configuración del kernel y crea un nuevo kernel: pseudo-device vn #Vnode driver (turns a file into a device) Segundo, debes tener las herramientas del CVS a mano. Para hacer esto, puedes usar CVSUP pero en tu supfile pon el nombre de la release a cvs y borra cualquier tag campo de fecha: *default prefix=/home/ncvs *default base=/a *default host=cvsup.FreeBSD.org *default release=cvs *default delete compress use-rel-suffix ## Main Source Tree src-all src-eBones src-secure # Other stuff ports-all www doc-all A continuación ejecuta cvsup -g supfile para tener todos los bits correctos en tu ordenador. Finalmente, necesitas una buena cantidad de espacio vacío para crear en el la release. Digamos que está en /algun/disco/grande y en el ejemplo anterior has dejado los ficheros del CVS en /home/ncvs: setenv CVSROOT /home/ncvs # or export CVSROOT=/home/ncvs cd /usr/src/release make release BUILDNAME=3.0-MY-SNAP CHROOTDIR=/algun/disco/grande/release Una release completa será creada en /algun/disco/grande/ y tendrás una instalación completa de tipo FTP en /algun/disco/grande/R/ftp cuando acabes. Si quieres crear tu SNAP usando otra rama de desarrollo diferente de -current, puedes añadir RELEASETAG=SOMETAG a la línea de comando anterior de creación de la release. Por ejemplo, RELEASETAG=RELENG_2_2 crearía un snapshot 2.2 GAMMA. ¿Cómo creo discos de instalación personalizados? El proceso completo de creacación de discos de instalación y archivos fuentes y binarios esta automatizado por varios targets en /usr/src/release/Makefile. La información alli contenida debería ser suficiente para que puedas empezar. Falta decir que este proceso necesita la ejecución del comando "make world" y quizás te use mucho tiempo y espacio en disco. ``make world'' destruye mis binarios instalados. Sí, esta es la idea general; como su nombre sugiere, "make world" rehace todos los binarios del sistema, de manera que puedas estar seguro de tener un entorno limpio y consistente al final (que es por lo que tarda tanto). Si la variable de entorno DESTDIR está definida mientras se ejecuta make world o make install, los binarios creados nuevamente seran depositados en un árbol de directorios idéntico al instalado, y a partir de ${DESTDIR}. Algunas combinaciones aleatorias de modificaciones de librerías compartidas y programas pueden causar que falle el make world. Cuando mi sistema arranca, dice (bus speed defaulted). Las controladoras SCSI Adaptec 1542 permiten al usuario configurar su velocidad de acceso al bus en software. Versiones anteriores del driver de la 1542 intentaban determinar la velocidad más alta factible y configurar la Adaptec a esta. Nos hemos encontrado con que esto hace fallar el sistema de algunos usuarios, por lo que tienes que definir la opción de configuración del kernel TUNE_1542 para que esto ocurra. En algunos sistemas puede que puede hacer que los discos vayan más rápidos, pero en otros puede que los datos queden corrompidos. ¿Puedo seguir la rama current con acceso limitado a Internet? Sí, puedes hacerlo sin bajarte todo el código fuente usando la utilidad CTM. ¿Cómo partir la distribución en ficheros de 240k? Los sistemas BSD más modernos tienen una opción para partir que les permite partir los ficheros en tamaños arbitrarios. Aqui hay un ejemplo de /usr/src/Makefile. bin-tarball: (cd ${DISTDIR}; \ tar cf - . \ gzip --no-name -9 -c | \ split -b 240640 - \ ${RELEASEDIR}/tarballs/bindist/bin_tgz.) ¿He escrito una extensión del kernel, a quien la envío? Por favor, mira en como enviar código. Y gracias por pensar en nosotros! ¿Cómo se detectan e inicializan las tarjetas ISA y PnP? Brevemente, hay unos cuantos puertos de entrada/salida a los que todas las tarjetas PnP responden cuando el ordenador pregunta si hay alguien ahí. Así, cuando comienza la rutina de prueba de PnP, pregunta si hay alguna tarjeta PnP presente y todas las tarjetas responden con su número de modelo a una lectura I/O del mismo puerto. Así el código de prueba puede conocer el ID de cada tarjeta (asignado por Microsoft/Intel). Los ID's son dos campos de 32 bits (2ˆ64) + 8 bits de checksum. Los primeros 32 bits son el identificador del fabricante. No se ha dicho publicamente, pero parece estar asumido que diferentes tipos de tarjeta del mismo fabricante pueden tener diferentes id's de fabricante. La idea de necesitar 32 bits sólo para los fabricantes parece un poco excesiva. La parte baja de 32 bits son un número de serie, dirección ethernet, algo que haga a la tarjeta única. El fabricante no debe producir nunca una segunda tarjeta que tenga los mismos 32 bits de la parte baja, aunque los 32 bits de la parte alta sean diferentes. Así puedes tener múltiples tarjetas del mismo tipo en la misma máquina y los 64 bits serán únicos para cada tarjeta. Los grupos de 32 bits nunca pueden ser todos cero. Esto permite mostrar todos los bits no-cero durante la búsqueda binaria inicial. Una vez el sistema ha identificado todos los ID's de las tarjetas presentes, reactivaráa cada tarjeta, una tras otra (a través de los mismos puertos I/O), y encontrará los recursos que cada tarjeta necesita, que opciones de interrupción están disponibles, etc. Se realiza un escaneo sobre todas y cada una de las tarjetas presentes para conocer esta información. Esta información se combina con la información de los ficheros ECU del disco y con las BIOS MLB. El soporte PnP de ECU y las BIOS para hardware en el MLB usualmente es sintético, y los periféricos no hacen PnP genuino. De todas maneras, examinando la información de la BIOS más la información ECU, la rutina de prueba puede causar que los dispositivos que no son PnP puedan evitar a esos dispositivos que el código de prueba no puede volver a posicionar. Así, los dispositivos PnP son visitados una vez más y se les asigna su I/O, DMA, IRQ, direcciones del mapa de memoria. Los dispositivos aparecerán en esas direcciones y permanecerán en ellas hasta que se vuelva a reinicializar la máquina. Todo el proceso se ha simplificado mucho, pero espero que hayas podido hacerte una idea del proceso. ¿Soporta FreeBSD arquitecturas diferentes a x86? Diferentes grupos de personas han expresado su interés en trabajar en un port multi-arquitectura de FreeBSD y FreeBSD/AXP (ALPHA) es un ejemplo de ese esfuerzo realizado, ahora disponible en forma de 3.0 SNAPshot release en ftp://ftp.FreeBSD.org/pub/FreeBSD/alpha. El port de ALPHA funciona actualmente en diferentes tipos de máquinas ALPHA, entre ellas, AlphaStation, AXPpci, PC164, Miata y Multia. Este port todavía no se considera una release completa y no lo será hasta que exista una colección completa de herramientas de instalación y una distribución completa en cdrom para instalació, incluyendo un número razonable de ports y packages funcionales. FreeBSD/AXP debe considerarse software de calidad BETA en estos momentos. Para más información del proyecto, subscríbete a la <FreeBSD-alpha@FreeBSD.org>. También se ha expresado interés en un port de FreeBSD para arquitectura SPARC. Subscríbete a <FreeBSD-sparc@FreeBSD.org> si estás interesado en participar en el proyecto. Para discusiones generales en nuevas arquitecturas, participa en <FreeBSD-platforms@FreeBSD.org>. Necesito un numero de dispositivo para un driver propio Esto depende de si quieres hacer que el driver esté públicamente disponible. Si la respuesta es afirmativa, por favor, envianos una copia del código fuente del driver y las modificaciones apropiadas del fichero files.i386, un ejemplo de configuración y el código apropiado de MAKEDEV para crear cualquier fichero especial que use tu dispositivo. Puedes enviar todo lo necesario a <FreeBSD-hackers@FreeBSD.org>. Alternativas a la política de directorios En respuesta a esta pregunta de políticas alternativas para los directorios, el esquema que está actualmente en uso no ha cambiado desde que lo escribí en 1983. Escribí esa política para el sistema de ficheros rápido original, y nunca se ha revisado. Trabaja bién manteniendo los grupos de cilindros. Como muchos de vosotros habreis notado, el rendimiento es muy pobre con "find". Muchos sistemas de ficheros son creados desde archivos que fueron creados por una primera búsqueda en profundidad (también conocido como ftw). Estos directorios terminan esparcidos a través de los grupos de cilindros. Si conociesemos el número total de directorios a crear, la solución sería crear (total / fs_ncg) por grupo de cilindros antes de moverlos. Obviamente, tendriamos que crear algún tipo de heurística para adivinar este número. Usando un número pequeño fijo (como puede ser 10) haría de orden de magnitud. Para diferencial restores de operaciones normales (cuando el algoritmo actual es probablemente más sensible), podrís usar el clustering hasta 10 si fueran todos hechos dentro de una ventana de diez segundos. De cualquier manera, mi conclusión es que este es un área para la experimentación. Kirk McKusick, Septiembre 1998 Obtener todo lo posible de un "kernel panic" [Esta sección fue extraida de un mensaje escrito por Bill Paul en la FreeBSD-current por Dag-Erling Coïdan Smørgrav, quién a fijado algunos errores y añadido algunos comentarios entre corchetes] From: Bill Paul <wpaul@skynet.ctr.columbia.edu> Subject: Re: the fs fun never stops To: ben@rosengart.com Date: Sun, 20 Sep 1998 15:22:50 -0400 (EDT) Cc: current@FreeBSD.org [<ben@rosengart.com> envió el siguiente panic] > Fatal trap 12: page fault while in kernel mode > fault virtual address = 0x40 > fault code = supervisor read, page not present > instruction pointer = 0x8:0xf014a7e5 ^^^^^^^^^^ > stack pointer = 0x10:0xf4ed6f24 > frame pointer = 0x10:0xf4ed6f28 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, def32 1, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 80 (mount) > interrupt mask = > trap number = 12 > panic: page fault [Cuando] ves un mensaje como este, no es suficiente con solo reproducirlo y enviarlo. El valor del puntero de instrucciones que he marcado arriba es importante; desafortunadamente, depende de la configuración. En otras palabras, el valor varía dependiendo de la imáden de kernel exacta que se use. Si estás usando el kernel GENERIC de uno de los snapshots, entonces es posible que alguien pueda seguir la función problemática, pero si estás usando un kernel personalizado, entonces solo puedes decirnos donde ha ocurrido el fallo. Tendrías que hacer lo siguiente: Anotar el valor del puntero de la instrucción. Ten en cuenta la parte 0x8: al inicio no es significante en este caso: es la parte 0xf0xxxxxx la que queremos. Cuando el sistema rearranca, haz lo siguiente: % nm /kernel.that.caused.the.panic | grep f0xxxxxx donde f0xxxxxx es el valor del puntero de la instrucción. El problema es que no obtendrás una búsqueda exacta ya que los símbolos en la tabla de símbolos del kernel son para los puntos de entrada de las funciones y la dirección del puntero de la instrucción estará en algún lugar dentro de una función, no al principio. Si no obtienes un resultado exacto, omite el último dígito del valor del puntero de la instrucción e intentalo otra vez, por ejemplo: % nm /kernel.that.caused.the.panic | grep f0xxxxx Si esto no da ningún resultado, elimina otro dígito. Repite la operación hasta que obtengas algún tipo de salida. El resultado será una lista de posibles funciones que causan el panic. Este no es un sistema muy exacto de búsqueda de errores, pero es mejor que nada. Veo gente que constantemente envía mensajes de panics como este, pero raramente veo que alguien se tome el tiempo de buscar la coincidencia entre el puntero de instrucción y una función en la tabla de símbolos del kernel. La mejor manera de hacer el seguimiento de la causa de un panic es capturar un "crash dump", usando gdb(1) para hacer una traza del "crash dump". Por supuesto, esto depende de que gdb(1) funcione correctamente en -current, lo que no puedo garantizar (recuerdo que alguien ha comentado que el nuevo gdb(1) en formato ELF no manejaba bién los "dumps" de un crash del kernel; alguién debería mirar esto antes de que la 3.0 salga del estado beta). En cualquier caso, el método que normalmente uso es este: Crear un fichero de configuración de kernel, opcionalmente añadiendo 'options DDB' si piensas que necesitas el debugger del kernel por algún motivo. (Uso esto principalmente para configurar puntos de salida si sospecho que existe alguna condición que crea un loop infinito). Usar config -g KERNELCONFIG para crear el directorio de configuración del kernel. cd /sys/compile/KERNELCONFIG; make Esperar a que el kernel termine de compilar. cp kernel kernel.debug strip -d kernel mv kernel /kernel.orig/ cp kernel / reboot [Nota: ahora que los kernels de FreeBSD 3.x son ELF por defecto debes usar strip -g en lugar de strip -d. Si por algún motivo tu kernel es aún a.out, usa strip -aout -d.] Ten en cuenta que TU NO QUIERES ARRANCAR CON UN KERNEL QUE TIENE TODOS LOS SIMBOLOS DE DEBUG EN EL. Un kernel compilado con puede llegar facilmente a los 10MB de tamaño. No tienes que arrancar esta imán masiva, solo lo necesitas para poder usar después gdb(1) (gdb(1) quiere la tabla de símbolos). Al contrario, quieres mantener una copia de la imágen completa y crear una segunda imágen con los símbolos de debug desactivados usando strip -d. Es esta segunda imágen la que quieres arrancar. Para asegurarte de capturar un "crash dump", necesitas editar el fichero /etc/rc.conf y apuntar dumpdev a tu partición de swap. Esto hará que el script rc(8) use el comando dumpon(8) para activar los "crash dumps". También puedes ejecutar manualmente dumpon(8). Después de un panic, el "crash dump" puede ser recuperado usando savecore(8); si dumpdev está en /etc/rc.conf, el script rc(8) ejecutará savecore(8) automaticamente y pondrá el "crash dump" en /var/crash. NOTA: los "crash dumps" de FreeBSD suelen tener el mismo tamaño que la cantidad total de memoria física del sistema. Esto significa que si tienes 64MB de RAM, obtendrás un "crash dump" de 64MB. Debido a esto, tienes que asegurarte de tener suficiente espacio libre en /var/crash. Alternativamente puedes ejecutar savecore(8) manualmente y hacer la recuparación en otro directorio donde tengas más espacio libre. Es posible limitar el tamaño del "crash dump" usando options MAXMEM=(foo) para indicar la cantidad de memoria que el kernel puede ocupar. Por ejemplo, si tienes 128MB de RAM, puedes limitar el uso de memoria del kernel a 16MB para que el "crash dump" sea de 16MB y no de 128MB. Una vez hayas recuperado el "crash dump", puedes obtener una traza del stack con gdb(1) de la manera siguiente: % gdb -k /sys/compile/KERNELCONFIG/kernel.debug /var/crash/vmcore.0 (gdb) where Es posible que aparezcan muchas líneas de información: es una buena idea usar el comando script(1) para capturarlas todas. Usando la imágen del kernel con todos los símbolos de debug deberí mostrar la línea exacta de código fuente del kernel donde ha ocurrido el panic. Normalmente, tienes que leer la traza del stack de abajo hacia arriba para poder conocer la secuencia exacta de eventos que han provocado el crash. También puedes usar gdb(1) para mostrar los contenidos de las diferentes variables o estructuras para examinar el estado del sistema en el momento del crash. Ahora, si eres realmente curioso y tienes un segundo ordenador, puedes configurar gdb(1) para hacer un debug remoto de manera que puedes usar gdb(1) en un sistema para revisar el kernel de otro sistema, de la misma manera que lo harías en la máquina local. [Bill añade: "Olvidé mencionar una cosa: si tienes DDB activado, puedes forzar un panic (y un crash dump) tecleando "panic" en el prompt del ddb. Es posible que el debugger se pare durante la fase del panic. Si esto ocurre, teclea "continue" y el crash dump finalizará"] dlsym() no funciona con ejecutables ELF! Las herramientas ELF no hacen por defecto que los símbolos definidos en un ejecutable sean visibles por el linker dinámico. Consecuentemente, dlsym() buscará en datos obtenidos desde llamadas a dlopen(NULL, flags), lo que provoca que no se encuentren esos símbolos. Si quieres buscar, usando dlsym() símbolos presentes en el ejecutable principal de un proceso, necesitas linkar el ejecutable usando la opción en el linkador ELF. Incrementando o reduciendo el espacio de direcciones del kernel Por defecto, el espacio de direcciones del kernel es de 256MB en FreeBSD 3.x y 1GB en FreeBSD 4.x. Si gestionas un servidor de red muy cargado (por ejemplo, servidores FTP o HTTP con mucho tráfico), es posible que notes que 256MB no es suficiente. Así que... como incremento el espacio de direcciones?. Hay dos aspectos a tener en cuenta. Primero, necesitas indicarle al kernel que reserve una mayor parte del espacio de direcciones para él mismo. Segundo, ya que el kernel se carga al inicio del espacio de direcciones, necesitas disminuir la dirección de carga. El primer aspecto lo solucionamos incrementando el valor de NKPDE en src/sys/i386/include/pmap.h. Esta es una entrada de ejemplo para 1GB de espacio de direcciones: #ifndef NKPDE #ifdef SMP #define NKPDE 254 /* addressable number of page tables/pde's */ #else #define NKPDE 255 /* addressable number of page tables/pde's */ #endif /* SMP */ #endif Para encontrar el valor correcto de NKPDE, divide el espacio de direcciones deseado (en megabytes) por cuatro, después resta uno por UP y dos por SMP. Para solucionar el segundo aspecto, necesitas calcular la dirección correcta de carga: simplemente resta el tamaño del espacio de direcciones (en bytes) de 0x100100000; el resultado es 0xc0100000 para 1GB de espacio de direcciones. Ajusta LOAD_ADDRESS en src/sys/i386/conf/Makefile.i386 a ese valor; a continuación pon el contador al inicio de la sección listado en src/sys/i386/conf/kernel.script al mismo valor, como sigue: OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386") OUTPUT_ARCH(i386) ENTRY(btext) SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/obj/elf/home/src/tmp/usr/i386-unknown-FreeBSDelf/lib); SECTIONS { /* Read-only sections, merged into text segment: */ . = 0xc0100000 + SIZEOF_HEADERS; .interp : { *(.interp) } Reconfigura y compila el kernel. Probablemente tengas problemas con top(1), ps(1) y programas así; haciendo un make world deberín solucionarse esos problemas (o una recompilación manual de libkvm, ps y top después de copiar el pmap.h parcheado a /usr/include/vm/. NOTA: el tamaño del espacio de direcciones debe ser un múltiplo de cuatro megabytes. [David Greenman añade: Pienso que el espacio de direcciones del kernel necesita ser una potencia de 2, pero no estoy totalmente seguro.] AGRADECIMIENTOS Si ves algún problema o error en esta FAQ, o quieres enviar información para que sea añadida, por favor, envía un mail a la dirección faq-es@es.FreeBSD.org. Apreciamos tu información e interés, y no podemos hacer una FAQ mejor sin tu ayuda. FreeBSD Spanish Documentation Project. Cristobal Talavera (cristobal@es.FreeBSD.org) Por ser uno de los mejores técnicos de Internet en España :) David Casademunt (david@es.FreeBSD.org) No hay hardware que se le resista. Nick Clayton (nick@FreeBSD.org) Gracias a su ayuda todo esto ha sido posible. Nexus Comunicacaciones (www.ncsa.es) Por mantener el mirror y darme las facilidades para hacer todo esto. Oscar Colet (oscarc@abaforum.es) Por aguantar lo que tiene que aguantar. Jordan Hubbard Actualizaciones y entradas ocasionales. Doug White Recopilaciones y respuestas en FreeBSD-questions. Joerg Wunsch Recopilaciones y respuestas en las news. Garrett Wollman Redes. Jim Lowe Información sobre multicast. Peter da Silva "Machaca de las teclas" de FreeBSD FAQ The FreeBSD Team De todo. y para todos los que hemos olvidado, disculpas y muchas gracias por todo!. Jesús Rodríguez jesusr@FreeBSD.org diff --git a/es_ES.ISO_8859-1/FAQ/FAQ.sgml b/es_ES.ISO_8859-1/FAQ/FAQ.sgml index 5597ba305a..b6b24a3e2d 100644 --- a/es_ES.ISO_8859-1/FAQ/FAQ.sgml +++ b/es_ES.ISO_8859-1/FAQ/FAQ.sgml @@ -1,64 +1,64 @@ - + ]>
Frequently Asked Questions para FreeBSD 2.X Proyecto de documentación de FreeBSD - $Date: 1999-09-06 06:53:13 $ + $FreeBSD$ Esta es la FAQ para sistemas FreeBSD versión 2.X. Todas las secciones están dirigidas a FreeBSD 2.0.5 y superiores. Los capítulos con <XXX> están bajo construcción. Si estás interesado en colaborar en este proyecto, envía un e-mail a la lista de distribución del proyecto de documentación de FreeBSD o a la dirección . La última versión de este documento está siempre disponible en el . Puede ser "bajada" en , o mediante HTTP. &preface; &install; &hardware; &troubleshoot; &commercial; &applications; &kernelconfig; &admin; &x; &network; &serial; &misc; &hackers; &acknowledgments;
diff --git a/es_ES.ISO_8859-1/books/faq/book.sgml b/es_ES.ISO_8859-1/books/faq/book.sgml index dc7e5bc742..7baf50d83e 100644 --- a/es_ES.ISO_8859-1/books/faq/book.sgml +++ b/es_ES.ISO_8859-1/books/faq/book.sgml @@ -1,8278 +1,8278 @@ Frequently Asked Questions para FreeBSD 2.X Proyecto de documentacion de FreeBSD -$Date: 1999-08-18 17:16:55 $ +$FreeBSD$ Esta es la FAQ para sistemas FreeBSD versión 2.X. Todas las secciones están dirigidas a FreeBSD 2.0.5 y superiores. Los capítulos con <XXX> están bajo construcción. Si estás interesado en colaborar en este proyecto, envía un e-mail a la lista de distribución del proyecto de documentación de FreeBSD <freebsd-doc@FreeBSD.org> o a la dirección faq-es@es.FreeBSD.org. La última versión de este documento está siempre disponible en el Mirror español de FreeBSD. Puede obtenerse en formato texto, o formato HTML mediante HTTP. Introducción Bienvenido a la FAQ de FreeBSD 2.X! ¿Cuál es el objetivo de esta FAQ? Como es habitual con las FAQ de los grupos de noticias (USENET), este documento pretende abarcar las preguntas más frecuentes referentes al sistema operativo FreeBSD (y por supuesto contestarlas!). Pensadas en un principio para reducir el tráfico y evitar que se hagan las mismas preguntas una y otra vez, las FAQ se han convertido en un valorado recurso de obtención de información. Todo el esfuerzo se ha hecho en intentar que esta FAQ sea lo más informativa posible; si tienes cualquier comentario o sugerencia, por favor, envía un mail a FAQ maintainer. ¿Qué es FreeBSD? De manera resumida, FreeBSD 2.X es un sistema operativo UNIX indirectamente basado en el port de Net/2 para i386 de Berkeley (conocido como 386BSD) realizado por William Jolitz's. Una descripción más detallada de FreeBSD y de como puede trabajar, se encuentra en FreeBSD home page.**** FreeBSD es usado por compañís, proveedores de Internet, profesionales de la informática, estudiantes y usuarios particulares de todo el mundo en su trabajo, educación y ocio. Puedes ver a algunos de ellos en FreeBSD Gallery. Para información más detallada sobre FreeBSD, por favor mira en FreeBSD Handbook. ¿Cuál es el objetivo de FreeBSD? El objetivo del Proyecto FreeBSD es proveer software que pueda ser usado en todos los ámbitos sin ningún tipo de atadura. Muchos de nosotros estamos significativamente involucrados en el desarrollo del código (y del proyecto) y no sería cierto decir que no esperabamos o esperamos algún tipo de financiación, pero definitivamente no estamos preparados para insistir en ello. Creemos que nuestra primera y principal "misión" es proveer el código libremente, y en cualquier ámbito, para que el código sea lo más expandido posible y produzca los mayores beneficios. Esto es, creemos en uno de los objetivos fundamentales del Software Libre y lo apoyamos de manera incondicional. El código fuente de los programas registrados bajo GNU General Public License (GPL) o GNU Library General Public License (LGPL), se provee bajo las condiciones fijadas por esas licencias. Debido a complicaciones adicionales en el uso comercial de Software GPL, intentamos reemplazar ese software por otros registrados bajo el copyright BSD, menos estricto y más permisivo. ¿Porqué se llama FreeBSD? Este sistema debe ser usado libremente, sin coste alguno incluso para fines comerciales. El código fuente completo del sistema operativo es de libre distribución, y se han marcado el menor numero posible de restricciones para su uso, distribución e incorporación a otros trabajos (comerciales o no). Cualquier persona que tenga alguna sugerencia de mejora y/o "parche" de algun "bug", es libre de enviar el código y que este sea añadido al código fuente de la distribución original (sujeto a una o dos condiciones obvias). Para todos nuestros lectores que su primer lenguaje no sea el inglés, decir que la palabra "free" es usada en dos sentidos, uno significando "sin coste" y el otro "puedes hacer lo que quieras". Aparte de una o dos cosas que no puedes hacer con el código de FreeBSD, por ejemplo decir que lo has escrito, realmente puedes hacer lo que quieras con él. ¿Cuál es la última versión de FreeBSD? La versión 3.2R es la última -stable; fue declarada definitiva (a partir de ahora "release") en Mayo de 1999. Brevemente explicado, está dirigido a proveedores de Internet y otros usuarios corporativos que quieren estabilidad y una sucesión tranquila en los cambios y actualizaciones a las nuevas versiones y sus mejoras. Sólo debes usar la rama current si estás seguro de estar preparado para su mayor "volatilidad" (relativa a -stable). Las versiones Release se hacen cada . Mientras mucha gente mantiene más al día los fuentes de FreeBSD (lee las preguntas en y , hacerlo está pensado para gente que se considere preparada para seguir el desarrollo continuo del código fuente. ¿Qué es FreeBSD-current? FreeBSD-current es la versión de desarrollo del sistema operativo, la cual acabará siendo la versión 4.0-RELEASE. Como es de suponer, esta versión es de interés solo para los desarrolladores que trabajan en el sistema y "masoquistas" de la programación. Mira la sección correspondiente en el handbook para saber como funciona esta opción. Si no estás familiarizado con el sistema operativo o no eres capaz de identificar la diferencia entre un problema real y un problema temporal, no deberías usar FreeBSD-current. Esta rama a veces avanza muy rapidamente y puede no ser compilable durante unos días. La gente que usa FreeBSD-current es capaz de analizar los problemas y solo comunicarlos si son motivo de errores. Preguntas como "al ejecutar make world obtengo un error referente a grupos" en la lista de distribución -current pueden quedar fuera de lugar. Una release snapshot corresponde al desarrollo de la rama -current; distribuciones en CDROM de esta versión están disponibles. Los objetivos de cada release snapshot son: Testear la última versión del software de instalación. Dar a la gente que le gustaría usar la versión -current pero que no tiene el tiempo suficiente para seguir el ritmo diario de actualizaciones, una manera fácil de poder instalarla en su sistema. Preservar un punto de referencia fijado en el código en cuestión, sólo en caso de que "rompamos" algo realmente importante. (De todas maneras, el CVS normalmente previene de que cosas tan horribles como estas puedean suceder :) Asegurar que las nuevas características desarrolladas puedan ser suficientemente testeadas por el mayor número de gente. No se garantiza que ningún snapshot pueda ser considerado "calidad de producción". Para conseguir estabilidad y un sistema garantizado, tendrás que usar las versiones release. Las release snapshot están directamente disponibles en ftp://current.FreeBSD.org/pub/FreeBSD/ y son generadas un promedio de una vez por día para las ramas 4.0-current y 3.0-stable. ¿Qué significa FreeBSD-stable? Cuando la versión de FreeBSD 2.0.5 fue declarada release, decidimos dividir el desarrollo de FreeBSD en dos ramas. Una rama fue llamada -stable con la intención de que solo los parches bien testeados y pequeñas actualizaciones de determinadas partes del sistema fuesen incluidas en ella (para proveedores de Internet y otras empresas para los que no resultan deseables cambios repentinos o experimentales). La otra rama fue -current, la cual ha sido, esencialmente, una línea común para el desarrollo de la versión 4.0-RELEASE. Aquí hay un pequeño gráfico ASCII para ayudar a entender este sistema de desarrollo: 2.0 | | | [2.1-stable] *BRANCH* 2.0.5 -> 2.1 -> 2.1.5 -> 2.1.6 -> 2.1.7.1 [2.1-stable ends] | (Mar 1997) | | | [2.2-stable] *BRANCH* 2.2.1 -> 2.2.2-RELEASE -> 2.2.5-RELEASE -> ... | (Mar 1997) (Oct 1997) | | 3.0-SNAPs (started Q1 1997) | | 3.0.0-RELEASE (Oct 1998) | | [3.0-stable] *BRANCH* 3.1 (Feb 1999) -> 3.2-RELEASE -> ... future 3.x releases ... | (Mayo 1999) | \|/ + [4.0-current continues] La rama -current progresa lentamente hacia la 4.0 y superiores, de la misma manera la anterior 2.2-estable fue sustituida por la release 3.0, la nueva "rama estable" también conocida como 3.0-stable. 4.0-current continuará hasta donde los desarrollos activos lleguen cuando se convierta en release 4.0. En ese punto, 4.0 se convertirá en 4.0-stable y se abrirá la nueva 4.1-current. ¿Cuando se realizan las releases de FreeBSD? Como principio general, el equipo de FreeBSD solo hace una nueva versión release de FreeBSD cuando cree que hay suficientes características nuevas y/o parches que la justifiquen y esten seguros de que con los cambios realizados no se compromete la estabilidad de la release. Muchos usuarios creen que esta precaución es una de las mejores características de FreeBSD. Las versiones release son hechas cada 6 meses aproximadamente. Para los usuarios que necesiten (o quieran) un poco más de excitación, hay SNAP-release más frecuentemente, particularmente durante el mes anterior a una release completa. ¿Está FreeBSD disponible solo para PCs? En estos momentos, sí, aunque se está trabajando en portarlo a la arquitectura DEC Alpha. Si tu máquina tiene una arquitectura diferente y necesitas un sistema de este tipo, te aconsejamos que mires en NetBSD o en OpenBSD. ¿Quién es responsable de FreeBSD? Las decisiones clave concernientes al proyecto FreeBSD como la dirección a seguir y quién está autorizado a añadir código a la distribución original, se hace a través de un grupo de unas 17 personas llamado core team. Existe también un grupo de unas 150 personas o committers que también están autorizadas a realizar cambios directamente sobre la distribución original. De todas maneras, la cambios importantes son discutidos en las en las que no existen restricciones en quien participa en las discusiones. ¿Dónde puedo conseguir FreeBSD? Todas las versiones release de FreeBSD están disponibles via ftp anónimo en el servidor FTP de FreeBSD: Para la actual 3.2-stable release, 3.2R mira en 3.2-RELEASE. Para la actual 4.0-current release, 4.0-SNAP, mira en 4.0. 2.2 Snapshot releases son hechas vía RELENG_2_2 rama (2.2.5 -> 2.2.x). Con la ocasional excepción de pequeñas variaciones, la rama RELENG_2_2 esta siendo cuidadosamente mantenida (no hay cambios experimentales y los parches son añadidos solo después de ser testeados en -current). 4.0 Snapshot releases son hechas una vez al día para la rama , siendo este un servicio puramente para testeadores y desarrolladores. FreeBSD esta también disponible via CDROM, en los siguientes lugares: Walnut Creek CDROM 4041 Pike Lane, Suite F Concord, CA 94520 USA Orders: +1 800 786-9907 Questions: +1 925 674-0783 FAX: +1 925 674-0821 email: WC Orders address WWW: WC Home page En Australia: Advanced Multimedia Distributors Factory 1/1 Ovata Drive Tullamarine, Melbourne Victoria Australia Voice: +61 3 9338 6777 CDROM Support BBS 17 Irvine St Peppermint Grove WA 6011 Voice: +61 9 385-3793 Fax: +61 9 385-2360 Y en el Reino Unido: The Public Domain & Shareware Library Winscombe House, Beacon Rd Crowborough Sussex. TN6 1UL Voice: +44 1892 663-298 Fax: +44 1892 667-473 ¿Dónde encuentro información sobre las listas de distribución de FreeBSD? Puedes encontrar toda la información en la sección de listas del Handbook. ¿Dónde encuentro información sobre el año 2000 (Y2K) en FreeBSD? Tienes toda la información disponible en la página Y2K de FreeBSD. ¿Qué grupos de noticias están disponibles sobre FreeBSD? Puedes encontrar toda la información en la sección de news del Handbook. ¿Hay algun canal IRC (Internet Relay Chat) sobre FreeBSD? Sí, muchas de las grandes redes de IRC tienen canales de chat de FreeBSD. El canal #FreeBSD en EFNet es un fórum de FreeBSD, pero no acudas allí para obtener soporte técnico o contar tus penas sobre como leer las páginas man ;). Es un canal de chat, de principio a fín, y los temas que se tratan suelen ser cosas como sexo, deportes o armas nucleares. Estás Avisado!. Disponible en el servidor irc.chat.org. El canal #FreeBSD en DALNET está disponible en el servidor irc.dal.net en USA y irc.eu.dal.net en Europa. El canal #FreeBSD en UNDERNET está disponible en us.undernet.org en USA y eu.undernet.org en Europa. Igual que en EFNET, no hagas preguntas técnicas. Es un canal de chat, no de soporte. Finalmente, puedes usar el canal #FreeBSD en BSDNET, una pequeña red de chat, en el servidor irc.FreeBSD.org. Esta red intenta ofrecer más soporte técnico y no ser tan anárquica como EFNET, UNDERNET o DALNET. Porqué no ofrecer respuestas de manera voluntaria hoy en BSDNET?. Cada uno de estos canales es diferente y no están conectados entre ellos. Sus estilos de chat difieren, por lo que podrís probarlos todos para ver cual te gusta más. Libros sobre FreeBSD El libro de Greg Lehey's ``Installing and Running FreeBSD'' está disponible en Walnut Creek y se vende con el CDROM 2.2.5. Hay también un libro más completo titulado ``The Complete FreeBSD'', el cual tiene manuales adicionales e incluye el CDROM 2.2.6. Debería estar disponible en las mejores librerías. Hay un proyecto de documentación de FreeBSD al que puedes contactar (o mejor, participar), en la lista de distribución doc: <doc@FreeBSD.org>. En esta lista se tratan todos los temas referentes a la documentación de FreeBSD. Para preguntas actuales sobre FreeBSD, existe la lista question: <questions@FreeBSD.org>. Está disponible un "manual" (handbook a patir de ahora) de FreeBSD, y se puede encontrar en: El Handbook de FreeBSD. Ten en cuenta que este es un trabajo en constante desarrollo y actualización, por lo que algunas secciones podrían estar incompletas. Teniendo en cuenta que FreeBSD 2.2.x está basado en la versión Berkeley 4.4BSD-Lite2, la mayoría de manuales de 4.4BSD con aplicables a FreeBSD 2.2.x. O'Reilly y Asociados publican estos manuales: 4.4BSD System Manager's Manual By Computer Systems Research Group, UC Berkeley 1st Edition June 1994, 804 pages ISBN: 1-56592-080-5 4.4BSD User's Reference Manual By Computer Systems Research Group, UC Berkeley 1st Edition June 1994, 905 pages ISBN: 1-56592-075-9 4.4BSD User's Supplementary Documents By Computer Systems Research Group, UC Berkeley 1st Edition July 1994, 712 pages ISBN: 1-56592-076-7 4.4BSD Programmer's Reference Manual By Computer Systems Research Group, UC Berkeley 1st Edition June 1994, 886 pages ISBN: 1-56592-078-3 4.4BSD Programmer's Supplementary Documents By Computer Systems Research Group, UC Berkeley 1st Edition July 1994, 596 pages ISBN: 1-56592-079-1 Una descripción de estos puede ser encontrada vía WWW en: Descripción de libros sobre 4.4BSD Para profundizar más en la organizacion del kernel de 4.4BSD, no puedes ir mal con los siguientes: McKusick, Marshall Kirk, Keith Bostic, Michael J Karels, and John Quarterman. The Design and Implementation of the 4.4BSD Operating System. Reading, Mass. : Addison-Wesley, 1996. ISBN 0-201-54979-4 Un buen libro en administración de sistemas es: Evi Nemeth, Garth Snyder, Scott Seebass & Trent R. Hein, ``Unix System Administration Handbook'', Prentice-Hall, 1995 ISBN: 0-13-151051-7 NOTE Asegurate de conseguir la segunda edición, con cubierta roja y no la primera. Este libro cubre las necesidades básicas, así como TCP/IP, DNS, NFS,SLIP/PPP, sendmail, INN/NNTP, impresión, etc,. Es caro, (aproximadamente unos US$45-$55), pero vale la pena. También incluye un cd-rom con las fuentes de varias herramientas, muchas de las cuales están incluidas, también, en la versión 2.2.6R (cdrom) de FreeBSD, incluso incluyendo versiones más modernas. ¿Cómo accedo a la base de datos de Problem Report? La base de datos de Problem Report puede ser consultada vía web a traves de la dirección query. También pueden ser enviados vía web a través de la dirección envio. El comando send-pr(1) también puede ser usado para el envío de reporte de problemas. ¿Dónde puedo obtener versiones ASCII/PstScript de la FAQ? La FAQ actualizada está disponible en el servidor Web de FreeBSD o en cualquiera de los mirrors en formato PostScript y texto (7 bits ASCII y 8 bits Latin-1). Formato PostScript (unos 370KB): http://www.FreeBSD.org/FAQ/FAQ.ps Formato ASCII (unos 220KB): http://www.FreeBSD.org/FAQ/FAQ.ascii Formato texto ISO 8859-1 (unos 220KB): http://www.FreeBSD.org/FAQ/FAQ.latin1 ¿Dónde puedo obtener versiones ASCII/PostScript del Handbook? El Hansbook actualizado está disponible en el servidor Web de FreeBSD o en cualquiera de los mirrors en formato PostScript y texto (7 bits ASCII y 8 bits Latin-1). Formato PostScript (unos 1.7MB): http://www.FreeBSD.org/handbook/handbook.ps Formato ASCII (unos 1080KB): http://www.FreeBSD.org/handbook/handbook.ascii Formato texto ISO 8859-1 (unos 1080KB): http://www.FreeBSD.org/handbook/handbook.latin1 El Handbook en ASCII no está en texto plano! Cierto, las versiones ASCII y Latin1 del Handbook no están estrictamente en formato de texto plano; contienen carácteres de control de impresión asumiendo que el documento será enviado a una impresora. Si necesitas tenerlos en un formato leible, pasa el fichero por el programa col: $ col -b < inputfile > outputfile Me gustaría ser Mirror del web de FreeBSD! Hay múltiples maneras de hacer mirror de las páginas web. Usando CVSUP: Puedes obtener todo el contenido del web usando el programa CVSUP desde el servidor cvsup.FreeBSD.org. Añade esta línea a tu fichero de configuración de cvsup: www release=current hostname=/home base=/usr/local/etc/cvsup prefix=/usr/local/www/data/www.FreeBSD.org delete old use-rel-suffix Usando rsync: Mira en la página de mirrors para más información. Usando mirror de FTP: Puedes bajarte la copia de los contenidos del web usando tu herramienta favorita de mirror de FTP. Simplemente empieza en ftp://ftp.FreeBSD.org/pub/FreeBSD/FreeBSD-current/www. Me gustaría traducir la documentación. Bueno, no podemos pagar, pero quizás te enviemos un cd-rom o una camiseta y añadiremos tu nombre en la sección "Contributors" del Handbook si nos envías una traducción de la documentación. Otras fuentes de información. Los siguientes grupos de news contienen temas relacionados con FreeBSD y sus usuarios: comp.unix.bsd.FreeBSD.announce (moderada) comp.unix.bsd.FreeBSD.misc comp.unix.bsd.misc Recursos Web: The FreeBSD Home Page. Si tienes un portátil asegurate de pasar por Tatsumi Hosokawa's Mobile Computing page . Información sobre SMP (Symmetric MultiProcessing), soporte de SMP. Información sobre aplicaciones multimedia. Si estás interesado específicamente en el chip Bt848 de vídeo captura, entonces sigue este link El FreeBSD handbook tiene una completa bibliografía en la sección bibliografía la cual recomendamos leer si estás interesado en comprar libros actuales relacionados con estos temas. Instalación ¿Qué fichero necesito para instalar FreeBSD? Generalmente solo es necesario un disco de 1,44Mb con una imágen del fichero floppies/boot.flp. Arranca con este disco para comenzar con el programa de instalación, el cual se encargará de realizar todas las operaciones necesarias (gestión de TCP/IP, cintas, CDROMs, floppies, particiones DOS y cualquier cosa necesaria para realizar la instalación). Si necesitas bajarte las distribuciones (para una instalación desde una partición DOS por ejemplo), estas son las distribuciones mínimas que necesitarás: bin/ manpages/ compat*/ doc/ src/ssys.* Todas las instrucciones sobre este procedimiento y una ampliación de la documentación se puede encontrar en Instalación de FreeBSD. Ayuda!, La imagen del disco de arranque no cabe en un floppy Un floppy de 1.44MB puede contener hasta 1474560 bytes de datos. La imágen de arranque es exactamente de 1474560 bytes. Los errores mas comunes en la preparación de disco de arranque son: No bajarse la imagen en modo binario cuando se usa FTP. Algunos clientes FTP intentan bajar por defecto los ficheros en modo ASCII e intentan cambiar los carácteres de final de línea recibidos por el que utilice el sistema cliente. Esto corromperá inevitablemente la imagen de arranque. Revisa el tamaño de la imagen: si no es exactamente el mismo tamaño del fichero existente en el servidor, la imagen no servirá. Solución: teclea binary en la línea de comandos del FTP después de conectar y antes de empezar a bajar la imágen. Usando el comando copy de DOS (o cualquier herramienta GUI equivalente) para transferir la imagen a un disquete. Programas como copy no funcionarán para la transferencia de la imágen a un disco. La imágen tiene el contenido completo del disco, pista por pista, y no está pensada para ser trasladada a un disquete como un fichero normal. Tienes que hacer una transferencia "raw" usando herramientas de bajo nivel como fdimage o rawrite, descritas en la guía de instalación de FreeBSD. ¿Dónde puedo encontrar las instrucciones de instalación de FreeBSD? Las instrucciones de instalación están en Instalación de FreeBSD. ¿Qué necesito para poder ejecutar FreeBSD? Necesitarás un PC con 386 o superior, 5 Mb o mas de memoria RAM y al menos 60 Mb de espacio en disco duro. Puede funcionar con tarjetas gráficas de bajo nivel (Hercules), pero para poder ejecutar X11R6 es necesario una tarjeta VGA o superior. Solo tengo 4Mb de RAM. ¿Puedo instalar FreeBSD? FreeBSD 2.1.7 fue la última version de FreeBSD que podía ser instalada en un sistema de 4Mb. Las nuevas versiones de FreeBSD, como la 2.2, necesitan al menos 5Mb para poder ser instaladas. Todas las versiones de FreeBSD, incluyendo la 3.0, funcionarán en sistemas con 4Mb de RAM, lo que no pueden ejecutar es la instalación en sistemas con 4Mb. Puedes añadir memoria extra para el proceso de instalación, y una vez instalado, volver a los 4Mb. Tambien puedes instalar tu disco en una máquina con más de 4Mb, realizar la instalación y volver el disco a su máquina con 4Mb. Hay algunas situaciones en las que FreeBSD 2.1.7 no se instalará en sistemas con 4Mb. Para ser exactos: no se instalará con 640Kb de memoria base + 3Mb de memoria extendida. Si tu placa base puede remapear algo de la memoria "perdida" fuera de los 640Kb a la región de 1Mb, entonces aun podrás instalar FreeBSD 2.1.7. Intenta entrar en el setup de tu BIOS y busca la opción "remap". Actívala. Quizás tendrás que desactivar la opción de ROM shadowing. Es más fácil añadir en la máquina 4Mb de memoria para la instalación. Crea un kernel unicamente con las opciones que necesites y vuelve a quitar los 4Mb añadidos. También puedes instalar la versión 2.0.5 y a continuación actualizar tu sistema a la 2.1.7 con la opción "upgrade" del programa de instalación de la versión 2.1.7. Después de la instalación, si te creas un kernel personalizado, funcionará en 4Mb. Algunos fueron capaces de arrancar con 2Mb (aunque después el sistema era incapaz de hacer nada mas :-)) ¿Cómo puedo hacer mi propio disco de instalación? Actualmente, no hay una manera para *sólo* hacer un disco de instalación personalizado. Hay algún código en /usr/src/release/floppies/Makefile que supuestamente es para hacer *sólo* un disco de instalación personalizado, pero no está realmente testeado todavía. ¿Puedo tener más de un sistema operativo en mi PC? Echa un vistazo en La página multi-OS. ¿Puede Windows 95 coexistir con FreeBSD? Instala primero Windows 95 y después FreeBSD. El boot manager de FreeBSD se encargará de darte la opción de arrancar con cualquiera de los dos sistemas. Si lo haces al reves, Windows 95 borrará el boot manager sin hacer ninguna pregunta previa. Si ocurre esto, pasa a la siguiente sección. Windows 95 desinstaló mi boot manager! ¿Cómo lo recupero? Puedes reinstalar el boot manager que viene con FreeBSD de dos maneras: Ejecutando el DOS, entra en el directorio tools/ de tu distribución de FreeBSD y busca el archivo bootinst.exe. Ejecútalo de la siguiente manera: bootinst.exe boot.bin Y el boot manager estará reinstalado. Arranca con el disco de instalación de FreeBSD y entra en la sección "Custom Installation". Selecciona "Partition". Escoge el disco en el cual debe estar instalado el boot manager, y cuando entres en él editor de particiones, sin hacer ningún cambio, selecciona (W)rite. Serás preguntado para confirmar la acción, responde "sí", y cuando estés en la ventana de "Boot manager selection" asegúrate de seleccionar "Boot Manager". Esto reescribirá el boot manager en el disco. Ahora, sal del programa de instalación y rearranca el ordenador de la manera habitual. ¿Puedo instalar FreeBSD en un disco con sectores erróneos? La gestión de sectores erróneos por parte de FreeBSD no está desarrollada todavía al 100% y desgraciadamente debemos decirte que si tienes discos IDE o ESDI con gran cantidad de sectores erróneos, FreeBSD no es para tí. De todas maneras, te aconsejamos que antes de descartar la instalación, hagas un intento. Ocurren cosas extrañas cuando arranco con el disco de instalación Si observas cosas como que la maquina se "cuelga" o se resetea espontaneamente cuando intentas arrancar con el disco de instalación, aquí tienes tres preguntas que debes responder tu mismo:- Estás usando un disco nuevo, recién formateado y libre de errores, o estás usando el disco de publicidad que venía con la revista que lleva guardada varios meses debajo de la cama? "Bajaste" por ftp la imágen del disco en modo binario?... (no te preocupes ya que hasta el mejor de nosotros, por lo menos una vez, ha bajado un fichero en modo ASCII) Si estás usando uno de esos nuevos sistemas operativos como Windows 95 o Windows NT, debes arrancar la máquina en modo DOS puro, ya que parece ser que los Windows no se llevan bién con los programas que escriben directamente sobre los dispositivos hardware, como hace el programa de creación de discos de instalación de FreeBSD. Han habido informaciones referentes a problemas al bajar el disco de instalación con Netscape, por lo que te recomentados que uses un programa diferente como cliente de ftp. Ayuda! No puedo instalar desde una cinta! Si estas instalando la version 2.1.7R desde una cinta, debes crear esa cinta con un tamaño de bloque de tar de 10 (5120 bytes). El tamaño por defecto de los bloques tar es de 20 (10240 bytes), y las cintas creadas con este tamaño por defecto no pueden ser usadas para instalar FreeBSD 2.1.7R; con estas cintas tendrás un error referente a un tamaño de registro demasiado grande. Conexión de dos máquinas FreeBSD vía puerto paralelo (PLIP) Coge un cable de laplink y asegurate que ambos ordenadores tienen un kernel que soporta el puerto paralelo. $ dmesg | grep lp lpt0 at 0x378-0x37f irq 7 on isa lpt0: Interrupt-driven port lp0: TCP/IP capable interface Conecta el cable en los dos puertos paralelos. Configura los parámetros de red para el interfaz lp0 (como root) en ambas máquinas. Por ejemplo, si quieres conectar la máquina max y moritz: max <-----> moritz Direccion IP 10.0.0.1 10.0.0.2 En el arranque de max # ifconfig lp0 10.0.0.1 10.0.0.2 En el arranque de moritz # ifconfig lp0 10.0.0.2 10.0.0.1 Esto es todo!!. Por favor, lee los man de lp(4) y lpt(4). También deberías añadir las máquinas en el fichero /etc/hosts: 127.0.0.1 localhost.my.domain localhost 10.0.0.1 max.my.domain max 10.0.0.2 moritz.my.domain moritz Para asegurar que funciona haz: en max: $ ifconfig lp0 lp0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 10.0.0.1 --> 10.0.0.2 netmask 0xff000000 $ netstat -r Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire moritz max UH 4 127592 lp0 $ ping -c 4 moritz PING moritz (10.0.0.2): 56 data bytes 64 bytes from 10.0.0.2: icmp_seq=0 ttl=255 time=2.774 ms 64 bytes from 10.0.0.2: icmp_seq=1 ttl=255 time=2.530 ms 64 bytes from 10.0.0.2: icmp_seq=2 ttl=255 time=2.556 ms 64 bytes from 10.0.0.2: icmp_seq=3 ttl=255 time=2.714 ms --- moritz ping statistics --- 4 packets transmitted, 4 packets received, 0% packet loss round-trip min/avg/max/stddev = 2.530/2.643/2.774/0.103 ms ¿Puedo instalar FreeBSD en mi portátil sobre PLIP (Parallel Line IP)? Conecta los dos ordenadores usando Laplink mediante el puerto paralelo y usa las siguientes características: +----------------------------------------+ |A-name A-End B-End Descr. Port/Bit | +----------------------------------------+ |DATA0 2 15 Data 0/0x01 | |-ERROR 15 2 1/0x08 | +----------------------------------------+ |DATA1 3 13 Data 0/0x02 | |+SLCT 13 3 1/0x10 | +----------------------------------------+ |DATA2 4 12 Data 0/0x04 | |+PE 12 4 1/0x20 | +----------------------------------------+ |DATA3 5 10 Strobe 0/0x08 | |-ACK 10 5 1/0x40 | +----------------------------------------+ |DATA4 6 11 Data 0/0x10 | |BUSY 11 6 1/0x80 | +----------------------------------------+ |GND 18-25 18-25 GND - | +----------------------------------------+ Mira también en la página de informática móvil. ¿Que geometría debo usar para mis discos? (Por geometría de un disco, entendemos el numero de cilindros, cabezales y sectores por pista en el disco - de ahora en adelante nos referiremos por conveniencia a estos parámetros como C/H/S. Así es como trabaja la BIOS de los PC's para gestionar la lectura/escritura. Por alguna razón, esto parece crear mucha confusión. Ante todo, la geometría física de un disco SCSI es totalmente irrelevante ya que FreeBSD trabaja en términos de bloques de disco. Con discos IDE, FreeBSD trabaja en términos de C/H/S, pero todos los discos modernos convierten estos datos en referencias internas de bloques. Para discos SCSI, la geometría a usar depende de si tenemos activado en la controladora el soporte de translación (comunmente conocido como "soporte para discos mayores de >1GB" o algo similar). Si esta opción está desactivada, entonces usa N cilindros, 64 cabezales y 32 sectores por pista, donde N es la capacidad del disco en MB. Por ejemplo, para un disco de 2GB, los parámetros correctos serían 2048 cilindros, 64 cabezales y 32 sectores. Si el soporte de translación está activado y la capacidad del disco es mayor de 1GB, usa M cilindros, 63 cabezales (*no* 64), y 255 sectores, donde M es la capacidad del disco en MB dividida por 7.844238. Para nuestro ejemplo de un disco de 2GB, los parámetros serían 261 cilindros, 62 cabezales y 255 sectores. Si no estás seguro sobre los parámetros a usar, o FreeBSD falla al detectar la geometría correcta del disco durante la instalación, el método mas simple para solucionar este problema es crear una pequeña partición DOS en el disco. Entonces, la geometría debería ser detectada correctamente (y siempre puedes borrar esa partición desde el "editor de particiones" si no quieres mantenerla). Alternativamente, existe una utilidad de libre distribución incluida en FreeBSD llamada pfdisk.exe (situada en el directorio tools del cd-rom de distribución o en cualquiera de los servidores ftp) que nos dice la geometría del disco usada por el sistema operativo DOS. Lo único que tenemos que hacer es introducir los datos obtenidos en el editor de particiones de FreeBSD. ¿Existe alguna restricción en como dividir el disco? Si. Debes asegurarte de que la partición raiz esta por debajo del cilindro 1024, para que la BIOS pueda arrancar el kernel desde ella. (Esta es una limitación de las BIOS de PC's, no de FreeBSD). Para discos SCSI, esto implica que la partición raiz debe estar instalada en los primeros 1024MB (o en los primeros 4096MB si la translación extendida esta activada). Para discos IDE, la partición raiz debe estar en los primeros 504MB. ¿Qué hay sobre los "disk managers"? FreeBSD reconoce el disk manager Ontrack. Otros disk managers no son soportados. Si quieres usar el disco solo con FreeBSD no necesitas el disk manager. Solo configura el disco para el espacio máximo que pueda manejar la BIOS (usualmente 504MB), y FreeBSD se encargará de averiguar cuanto espacio tienes realmente. Si estás usando un disco antiguo con controladora MFM, necesitarás decirle explícitamente a FreeBSD cuantos cilindros puede usar. Si quieres usar el disco con FreeBSD y otro sistema operativo, todavía puedes hacerlo sin necesitar un disk manager; solo asegurate que la partición raiz de FreeBSD y la partición de arranque del otro sistema operativo están en los primeros 1024 cilindros. Si eres cuidadoso, una partición raiz de 20MB debería ser suficiente. Cuando arranco FreeBSD obtengo ``Missing Operating System'' Esto es un clásico conflicto entre FreeBSD y DOS u otro sistema operativo sobre sus ideas de . Tendrás que reinstalar FreeBSD, pero teniendo en cuenta la información que te damos más arriba sobre este tema. No puedo pasar del prompt`F?'. Este es otro problema descrito en el parrafo anterior. La geometría de tu BIOS y los datos de configuración de FreeBSD no coinciden. Si tu controladora o BIOS soporta la translación de cilindros (también conocido como "soporte para discos de más de 1GB"), intenta activar/desactivar esta opción y reinstala FreeBSD. Tengo >16MB de RAM. ¿Puede causar esto problemas? Aparte del rendimiento, no. FreeBSD 2.X tiene buffers que permiten al "bus mastering controller" acceder a mas de 16MB. (Esto sólo es aplicable si estás usando dispositivos ISA). También mira la sección si tienes esta cantidad de memoria o si usas máquinas Compaq u otra BIOS que no da correctamente la cantidad de memoria disponible. ¿Necesito instalar las fuentes completas? En general, no. De todas maneras, te recomendamos que instales, por lo menos, el kit de fuentes base, el cual incluye muchos de de los ficheros aquí mencionados, y el kit sys, que incluye el código fuente del kernel. No hay nada en el sistema que requiera el código fuente para funcionar, a excepción del programa de configuración de kernel config. Con la excepción de las fuentes del kernel, nuestra estructura esta diseñada para que puedas montar una unidad en solo lectura via NFS en la que exista el código fuente, y aun así, ser capaz de compilar los nuevos binarios. (Debido a las restriciones de los fuentes del kernel, recomendamos que no montes estos en /usr/src directamente, sino en cualquier otra parte del disco con los links simbólicos apropiados para duplicar la estructura principal del árbol de directorios original), Teniendo los fuentes on-line y sabiendo como crear un sistema con ellas (compilar), te haremos mucho mas fácil la actualización a futuras versiones de FreeBSD. Actualmente, para seleccionar una parte del código fuente, usa la opción Custom del menú cuando estás en el menú Distributions de la herramienta de instalación. El script src/install.sh instalará solo partes de la distribución de fuentes dependiendo de los parámetros (argumentos) que se le pasen. ¿Necesito crear un nuevo kernel? La creación de un nuevo kernel era, originariamente, un paso requerido en la instalación de FreeBSD, pero en las versiones más recientes nos hemos beneficiado de la introducción de una herramienta de configuración de kernel mucho más amigable. Cuando en el prompt de arranque de FreeBSD (boot:), usamos el parámetro "-c", llegamos a una pantalla de configuración visual la cual permite configurar las opciones del kernel para la mayoría de tarjetas ISA. Todavía es recomendable la creación de un nuevo kernel conteniendo solo los drivers que nos sean necesarios para ahorrar un poco de RAM, pero no es estrictamente necesario para la mayoría de sistemas. Vivo fuera de USA. ¿Puedo usar la encriptación DES? Si no es absolutamente necesario que uses la encriptación DES, puedes usar la encriptación por defecto de FreeBSD para una mejor seguridad, y sin restricciones de importación. La encriptación por defecto de los passwords en FreeBSD está basada en MD5, y es necesario un mayor uso intensivo de CPU con programas de descubrimiento de passwords que en DES. La única razón para no usar hoy en día la encriptación MD5 sería usar un sistema de passwords compartidos entre sistemas FreeBSD y no FreeBSD. Desde que el algoritmo de encriptación DES no puede ser legalmente exportado fuera de USA, los usuarios externos a USA deberían NO bajar este software desde los servidores FTP situados en USA. Existe una alternativa para las librerías de encriptación basadas en el código escrito en Australia por David Burren. Este código está disponible en algunos mirrors de FreeBSD fuera de USA. Las fuentes de las librerías de encriptación, y los binarios de los programas que las usan pueden encntrase en los siguientes servidores FTP: South Africa ftp://ftp.internat.FreeBSD.org/pub/FreeBSD ftp://storm.sea.uct.ac.za/pub/FreeBSD Brazil ftp://ftp.iqm.unicamp.br/pub/FreeBSD Finland ftp://nic.funet.fi/pub/unix/FreeBSD/eurocrypt Los usuarios de fuera de los USA, no deben bajarse ningún software de encriptación de servidores situados en USA, ya que de no seguir esta norma, los responsables de esos servidores podrían verse envueltos en importantes problemas legales. Una distribución no americana de Kerberos está siendo desarrollada y las versiones actuales pueden obtenerse vía ftp anónimo en braae.ru.ac.za. Existe también una para la discusión de software de encriptación externo a USA. Para más información envía un email con una simplre línea diciendo "help en el cuerpo del mensaje a: <majordomo@braae.ru.ac.za>. El "boot disc" arranca pero se cuelga en la pantalla "Probing Devices..." Si tienes un ZIP ide o un JAZZ instalado, desinstalalo e intentalo de nuevo. El disco de arranque puede haberse confundido con los discos. Una vez el sistema esté instalado, puedes volver a instalar/conectar los dispositivos. Esperamos que esto sea fijado en las próximas releases. Aparece el siguiente error "panic: cant mount root" al reiniciar el ordenador después de la instalación Este error proviene de la confusión entre los bloques de arranque y lo que ve el kernel en los discos. El error se suele manifestar en sistemas con dos discos IDE, con los discos duros dispuestos como master o "single" en controladoras diferentes, estando FreeBSD instalado en la controladora IDE secundaria. Los bloques de arranque piensan que el sistema está instalado en wd1 (el segundo disco en la BIOS) mientras el kernel asigna el primer disco de la controladora secundaria wd2. Después de la detección de dispositivos, el kernel intenta montar lo que los bloques de arranque piensan que es el disco de arranque, wd1, cuando realmente es el wd2, y falla. Para solucionar el problema, haz una de las siguientes cosas: En el prompt de arranque (boot:), pon 1:wd(2,a)kernel y presiona Enter. Si el sistema arranca, ejecuta el comando: echo "1:wd(2,a)kernel" > /boot.config para actualizar la cadena de arranque por defecto. Mueve el disco de FreeBSD a la controladora IDE primaria para que los discos sean consecutivos. Crea un nuevo kernel, modifica las líneas de configuración de wd de la siguiente manera: controller wdc0 at isa? port "IO_WD1" bio irq 14 vector wdintr disk wd0 at wdc0 drive 0 # disk wd1 at wdc0 drive 1 # comment out this line controller wdc1 at isa? port "IO_WD2" bio irq 15 vector wdintr disk wd1 at wdc1 drive 0 # change from wd2 to wd1 disk wd2 at wdc1 drive 1 # change from wd3 to wd2 Instala el nuevo kernel: Si moviste los discos y quieres recuperar la configuración previa, reemplaza los discos en la configuración deseada y rearranca el sistema. Tu sistema debería arrancar sin problemas. ¿Cuál es el límite de memoria?. Para memoria, el límite (teórico) es de 4 gigabytes. Un gigabyte ha sido comprobado y funciona sin problemas: generalmente no se pueden comprar equipos i386 que soporten más cantidad de memoria. ¿Cuál es el límite del sistema de ficheros ffs? Para sistemas de ficheros ffs, el máximo teórico está en 8 terabytes (bloques de 2G), o 16TB para el tamaño de bloque por defecto de 8K. En la práctica hay un límite por soft de 1 terabyte, pero con pequeáas modificaciones es posible (y existen) sistemas de ficheros de 4 terabytes. El tamaño máximo de un ffs simple es aproximadamente de bloques de 1G (4TB) y el tamaño del bloque es de 4K. maxfilesize ---------------------------------- 2.2.7 3.0 fs block size -stable -current works should-work ------------- ------- -------- ----- ----------- 4K 4T-1 4T-1 4T-1 4+T 8K 32+G 8T-1 32+G 16T-1 16K 128+G 16T-1 128+G 32T-1 32K 512+G 32T-1 512+G 64T-1 64K 2048+G 64T-1 2048+G 128T-1 Cuando el tamaño del bloque del sistema de ficheros es de 4K, los bloques triples funcionan y todo debería estar limitado por el número máximo de bloques que puede ser representado usando los bloques triples indirectos (aproximadamente 1K^3 + 1K^2 + 1K), pero todo está limitado por un (mal) límite de 1G-1 en el número de bloques. El límite en el número de bloques debería ser de 2G-1, pero estos números de bloque son inalcancables cuando los bloques del sistema de ficheros son de 4K. ¿Cómo puede poner ficheros de 1TB en un disquete? El tamaño maximo de un fichero no depende directamente del tamaño máximo del disco. El tamaño máximo del disco es de 1TB. Es una ventaja que el tamaño del fichero pueda ser mayor que el tamaño del disco. El siguiente ejemplo crea un fichero con un tamaño de 1TB usando 32K de espacio de disco (3 bloques indirectos y 1 bloque de datos) en una pequeña partición raiz. ttyv0:bde@alphplex:/tmp/q> cat foo df . dd if=/dev/zero of=z bs=1 seek=`echo 2^43 - 2 | bc` count=1 ls -l z du z df . ttyv0:bde@alphplex:/tmp/q> sh foo Filesystem 1024-blocks Used Avail Capacity Mounted on /dev/sd0a 64479 27702 31619 47% / 1+0 records in 1+0 records out 1 bytes transferred in 0.000187 secs (5346 bytes/sec) -rw-r--r-- 1 bde bin 8796093022207 Sep 7 16:04 z 32 z Filesystem 1024-blocks Used Avail Capacity Mounted on /dev/sd0a 64479 27734 31587 47% / ttyv0:bde@alphplex:/tmp/q> exit Bruce Evans, September 1998 He compilado un nuevo kernel y al arrancar aparece el error "archsw.readin.failed". Puedes arrancar especificando el kernel directamente en el segundo estado del boot, pulsando cualquier tecla cuando veas el símbolo | justo antes de que se cargue el loader. Más específicamente, has actualizado los fuentes para tu kernel, y lo has creado y actualizado a partir de ellos sín hacer un "make world". Así no funciona. Haz un "make world". Compatibilidad hardware ¿Qué tipo de discos duros soporta FreeBSD? FreeBSD soporta discos duros EIDE y SCSI (con controladoras compatibles; mira en la siguiente sección), y todos los discos usando el interface original "Western Digital" (MFM, RLL, ESDI y por supuesto IDE). Algunas controladoras ESDI que usan interfaces propietarios quizás no funcionen correctamente. ¿Qué controladoras SCSI están soportadas? FreeBSD soporta las siguientes controladoras SCSI: Adaptec AH-1505 <ISA> AH-152x Series <ISA> AH-154x Series <ISA> AH-174x Series <EISA> Sound Blaster SCSI (AH-152x compat) <ISA> AH-2742/2842 Series <ISA/EISA> AH-2820/2822/2825 Series (Narrow/Twin/Wide) <VLB> AH-294x and aic7870 MB controllers (Narrow/Twin/Wide) <PCI> AH-394x (Narrow/Twin/Wide) Buslogic BT-445 Series <VLB> BT-545 Series <ISA> BT-742 Series <EISA> BT-747 Series <EISA> BT-946 Series <PCI> BT-956 Series <PCI> Future Domain TMC-950 Series <ISA> PCI Generic NCR 53C81x based controllers <PCI> NCR 53C82x based controllers <PCI> NCR 53C860/75 based controllers <PCI> ProAudioSpectrum Zilog 5380 based controllers <ISA> Trantor 130 based controllers <ISA> DTC DTC 3290 EISA SCSI in AHA-154x emulation. Seagate ST-01/02 Series <ISA> UltraStor UH-14f Series <ISA> UH-24f Series <EISA> UH-34f Series <VLB> Western Digital WD7000 <ISA> <No scatter/gather> ¿Qué lectores CD-ROM soporta FreeBSD? Cualquier disco SCSI conectado a una controladora soportada es soportado. Los siguientes interfaces de CD-ROM propietarios son también soportados: Mitsumi LU002 (8bit), LU005 (16bit) and FX001D (16bit 2x Speed). Sony CDU 31/33A Sound Blaster Non-SCSI CD-ROM Matsushita/Panasonic CD-ROM ATAPI compatible IDE CD-ROMs Todas las tarjetas no SCSI son conocidas por ser extremadamente lentas comparadas con los discos SCSI, y algunos CDROM ATAPI quizás no funcionen correctamente. A partir de la versión 2.2 de FreeBSD en CDROM de Walnut Creek se soporta el arranque directo (boot) desde el propio CD. ¿Soporta FreeBSD discos ZIP? FreeBSD soporta los ZIP SCSI externos. Las unidades ZIP solo pueden funcionar en los ID's SCSI 5 y 6, pero si la BIOS de tu controladora lo soporta, puedes arrancar desde él. No sabemos que controladoras dejan arrancar desde ID's diferentes de la 0 o 1... mira en tu documentación y hazmelo saber si te funciona. Los discos Zip ATAPI (IDE) son soportados en FreeBSD 2.2.6 y releases posteriores. FreeBSD ha incluido el soporte de discos ZIP por puerto paralelo desde la versión 3.0. Si estás usando una versión actualizada, debes asegurarte de que tu configuración del kernel incluye los drivers scbus0, da0, ppbus0 y vp0 (el kernel GENERIC los contiene todos excepto vp0). Con todos estos drivers presentes, el disco por puerto paralelo debería estar disponible como /dev/da0s4. Los discos se pueden montar usando mount /dev/da0s4 /mnt o (para discos dos) mount_msdos /dev/da0s4 /mnt. También mira , y . ¿Soporta FreeBSD JAZ, EZ y otros discos removibles? Aparte de la versión IDE de EZ, todos estos son dispositivos SCSI, por lo que deberían funcionar sin problemas ya que FreeBSD los toma como discos SCSI y el IDE EZ también debería funcionar sin problemas ya que se toma como un disco IDE estandard. No estoy seguro de como soporta FreeBSD el cambio de soporte mientras está funcionando. Deberás, desde luego, desmontar la unidad antes de poder cambiar el soporte, y estar seguro de que todas las unidades externas están encendidas antes de arrancar el ordenador con FreeBSD para que este pueda reconocerlas. Mira . ¿Qué tarjetas serie multipuerto son soportadas por FreeBSD? Hay una lista de ellas en la sección dispositivos varios del manual (handbook). Algunas tarjetas "sin nombre" también han funcionado, especialmente las que dicen ser compatibles AST. Mira la página sio para obtener más información sobre la configuración de estas tarjetas. Tengo un tipo de ratón no habitual. ¿Cómo lo configuro? FreeBSD soporta el "bus mouse" y el "InPort bus mouse" de fabricantes como Microsoft, Logitech y ATI. El driver de mouse estiá compilado en el GENERIC kernel (kernel por defecto que carga el sistema). Si estás haciendote un kernel a medida que incluya el driver de ratón, asegurate de añadir la siguiente línea en el fichero de configuración del kernel: device mse0 at isa? port 0x23c tty irq5 vector mseintr ¿Cómo uso mi PS/2 (``mouse port'' o ``teclado'')? Si estás usando una versión reciente de FreeBSD, el driver necesario, psm, está incluido y activado en el kernel. El propio kernel debería detectar tu ratón PS/2 en el momento de arrancar. Si estás usando una versión antigua, solo tienes que activarlo en la configuración del kernel en el momento de la instalación del sistema. Si este ya está instalado, escribe -c en el prompt boot: y actívalo. Por defecto, este driver está desactivado. Si estás usando alguna de las versiones mas antiguas, tendras que añadir la siguiente línea en el fichero de configuración del kernel y compilar uno nuevo: device psm0 at isa? port "IO_KBD" conflicts tty irq 12 vector psmintr Mira la sección configuracion del kernel si no tienes experiencia en la creación de nuevos kernel. Una vez el kernel detecta correctamente el dispositivo psm0 al arrancar, asegúrate de que existe una entrada en /dev para este dispositivo. Puedes hacerlo tecleando: cd /dev; sh MAKEDEV psm0 ¿Es posible hacer uso del ratón fuera de X Windows? Si estás usando el driver por defecto de la cónsola, syscons, puedes usar el ratón en las cónsolas de texto para realizar cut & paste. Ejecuta el demonio (daemon) de ratón moused y arranca el ratón en la cónsola virtual: moused -p /dev/xxxx -t yyyy vidcontrol -m on Donde xxxx es el nombre del dispositivo del ratón y yyyy es un tipo de protocolo para el ratón. Mira en moused para saber los tipos de protocolo soportados. Si quieres ejecutar el demonio moused automaticamente al arrancar el sistema, fija las siguientes variables en /etc/sysconfig (para versión 2.2.1). mousedtype="yyyy" mousedport="xxxx" mousedflags="" En versiones 2.2.2 o superiores, fija las siguientes variables en /etc/rc.conf. moused_type="yyyy" moused_port="xxxx" moused_flags="" A partir de la versión 2.2.6, el demonio del ratón es capaz de determinar automaticamente el protocolo correcto a utilizar. Solo tienes que especificar auto como el protocolo a usar. Cuando el demonio de ratón está funcionando, el acceso al ratón necesita ser coordinado con otros programas como X Window. Mira en para mas información. ¿Cómo hago un cut & paste con el ratón en una cónsola de texto? Una vez tienes el demonio del ratón funcionando (mira , pulsa el botón 1 (izquierdo) y mueve el ratón para seleccionar la región de texto. A continuación, pulsa el botón 2 (medio) o 3 (derecho) para hacer un paste (pegar) de la región seleccionada en el lugar en el que tengamos situado el cursor. En versiones 2.2.6 o superiores, pulsando el botón 2 hara un paste del texto seleccionado. Pulsando el botón 3 extenderemos la región seleccionada de texto. Si tu ratón no tiene el botón medio, puedes emularlo o "remapear" (reconfigurar) los botones de tu ratón con las opciones del demonio moused. MIra en moused para mas información. Mi ratón tiene una rueda de desplazamiento y botones. ¿Puedo usarlo? La respuesta es, desafortunadamente, "depende". Estos ratones con características adicionales requieren en muchos casos drivers propios y especializados. A no ser que el driver de dispositivo o el programa de usuario tenga soporte específico, el ratón se comportará como un ratón normal y corriente. ¿Cómo uso el mouse/trackball/touchpad en mi portátil? Por favor, . Mira también en la sección de ordenadores portátiles. ¿Qué tipo de dispositivos de cinta son soportados? FreeBSD soporta SCSI, QIC-36 (con controladora QIC-02) y QIC-40/80. Esto inclye dispositivos de 8mm (conocidos como Exabyte) y dispositivos DAT. Los QIC-40/80 son conocidos por ser lentos. Algunos de los primeros dispositivos de 8mm no son totalmente compatibles con SCSI2 por lo que pueden no trabajar correctamente en FreeBSD. ¿Soporta FreeBSD "tape changers"? FreeBSD 2.2 soporta SCSI changers usando el dispositivo ch y el comando chio . Los comandos de como controlar el "changer" estan en el man chio. ¿Qué tarjetas de sonido son soportadas por FreeBSD? FreeBSD soporta las tarjetas SoundBlaster, SoundBlaster Pro, SoundBlaster 16, Pro Audio Spectrum 16, AdLib y Gravis Ultrasound. Hay también soporte limitado para la tarjeta MPU-401 y compatibles midi. Las tarjetas SoundBlaster 16 ASP todavía no son soportadas. El Microsoft Sound System sí está soportado. NOTA Esto es solo para sonido!. Este driver no soporta CD-ROMs, SCSI o joysticks en estas tarjetas, a excepción de la SoundBlaster. El interface SCSI de SoundBlaster y algunos CD-ROMs no SCSI son soportados, pero no podrás arrancar el sistema desde ellos. No obtengo sonido de la tarjeta es1370 con driver pcm Puedes ejecutar el siguiente mandato cada vez que arranques el sistema: mixer pcm 100 vol 100 cd 100 ¿Qué tarjetas de red soporta FreeBSD? Mira la sección de tarjetas Ethernet en el manual para una lista más completa. de driver DEC DC21x40 and compatible PCI controllers (including 21140 100bT cards) ed driver NE2000 and 1000 WD/SMC 8003, 8013 and Elite Ultra (8216) 3Com 3c503 HP 27247B and 27252A And clones of the above le driver DEC EtherWORKS II and EtherWORKS III controllers. ie driver AT&T EN100/StarLAN 10 3COM 3c507 Etherlink 16/TP NI5210 Intel EtherExpress is driver Isolan AT 4141-0 Isolink 4110 el driver 3com 3c501 (does not support Multicast or DMA) eg driver 3com 3c505 Etherlink/+ ze driver IBM PCMCIA credit card adapter lnc drive Lance/PCnet cards (Isolan, Novell NE2100, NE32-VL)(*) ep driver 3com 3c509 (Must disable PNP support on card) cx driver Cronyx/Sigma multiport Sync/Async (Cisco and PPP framing) zp driver 3Com PCMCIA Etherlink III (aka 3c589)(A-C only) fea driver DEC DEFEA EISA FDDI controller fpa driver DEC DEFPA PCI FDDI controller fe driver Fujitsu MB86960A/MB86965A Ethernet cards NOTA Los drivers marcados con (*) pueden tener problemas. NOTA 3C598D NO esta soportada todavía. NOTA FreeBSD también soporta TCP/IP sobre líneas paralelo. En estos momentos, no somos compatibles con otras versiones, pero esperamos corregirlo en un futuro cercano. Encontrarás más información sobre este tema en la página man de lp(4). NOTA Algunas de estas tarjetas requieren una partición DOS en el disco duro para ejecutar el programa de configuración. No tengo coprocesador matemático - ¿es malo? NOTA Esto solo afectará a los ordenadores 386/486SX/486SLC. El resto de los microprocesadores tienen un coprocesador integrado. En general, esto no causará problemas, pero hay ciscunstancias en las que podrás echarlo de menos. Especialmente si trabajas en entorno X Window. Si puedes, te recomendamos que compres uno y lo instales en tu ordenador. ¿Qué otros dispositivos soporta FreeBSD 2.X? Aquí hay una lista de drivers que no se han podido catalogar en las categorías anteriores. b004.c Driver for B004 compatible Transputer boards ``ctx'' driver Driver for CORTEX-I Frame grabber ``gp'' driver Driver for National Instruments AT-GPIB and AT-GPIB/TNT boards ``pca'' driver Driver for PC speakers to allow the playing of audio files ``spigot'' driver Driver for the Creative Labs Video Spigot gsc driver Driver for the Genuis GS-4500 Hand scanner joy driver Driver for a joystick labpc driver Driver for National Instrument's Lab-PC and Lab-PC+ ``uart'' driver Stand-alone 6850 UART for MIDI psm driver PS/2 mouse port tw.c Driver for the X-10 POWERHOUSE ¿Soporta FreeBSD el "power management" en mi portátil? FreeBSD soporta APM en algunas máquinas. Por favor, mira en el fichero de configuración del kernel LINT y busca la parabra APM Los sistemas Micron se bloquean al arrancar Algunas placas base Micron tienen una implementación de PCI en la BIOS que no es estandard, lo que provoca que FreeBSD no pueda encontrar los dispositivos PCI en las direcciones en las que deberían estar. Desactiva la opción "Plug and Play Operating System" en la BIOS para solucionar el problema. Puedes encontrar más información en: http://cesdis.gsfc.nasa.gov/linux/drivers/vortex.html#micron Tengo una de las controladoras Adaptec más nuevas y FreeBSD no puede encontrarla Las nuevas controladoras Adaptec con chipset de la serie AIC789x son soportados bajo la nueva CAM SCSI que hace su debut en la version 3.0 de FreeBSD. Los parches para las versiones 3.0-CURRENT y 2.2-STABLE están en: ftp://ftp.FreeBSD.org/pub/FreeBSD/development/cam/. Un disco de arranque con soporte CAM está disponible en: http://www.FreeBSD.org/~abial/cam-boot/. En ambos casos lee el fichero README antes de empezar. Tengo un módem interno Plug & Play y FreeBSD no lo encuentra Necesitarás añadir el ID del modem PnP a la lista de ID PnP en el driver serie. Para activar el soporte PnP, compila un nuevo kernel con controller pnp0 en el fichero de configuración y rebota el sistema. El kernel mostrará por pantalla los IDs de todos los dispositivos PnP que encuentre. Copia el ID del módem en la tabla del fichero /sys/i386/isa/sio.c, sobre la línea 2777. Busca la cadena "SUP1310" en la estructura "siopnp_ids[]" para encontrar la tabla. Genera un nuevo kernel, instalalo y rearranca. Tu módem debería ser encontrado. Quizás tengas que configurar manualmente los dispositivos PnP usando el comando "pnp" en la configuración de arranque usandolo de la siguiente manera: pnp 1 0 enable os irq0 3 drq0 0 port0 0x2f8 ¿Cómo obtengo el prompt "boot:" en una cónsola serie? Crea un nuevo kernel con options COMCONSOLE. Crea el fichero /boot.config y pon como único texto en el fichero. Desconecta el teclado del ordenador. Mira el fichero /usr/src/sys/i386/boot/biosboot/README.serial para mas información. ¿Porqué no funciona mi tarjeta de red PCI 3Com con mi ordenador Micron? >Algunas placas base Micron tienen una implementación de PCI en la BIOS que no es estandard, lo que provoca que FreeBSD no pueda encontrar los dispositivos PCI en las direcciones en las que deberían estar. Para solucionar el problema, desactiva la opción "Plug and Play Operating System" en la BIOS. Puedes encontrar más información sobre este problema en http://cesdis.gsfc.nasa.gov/linux/drivers/vortex.html#micron ¿Soporta FreeBSD "Symmetric Multiproccessing (SMP)? SMP está soportado a partir de la versión 3.0-STABLE Problemas Tengo bloques erróneos en mi disco duro! Los discos SCSI deberían ser capaces de marcar estos bloques erróneos automaticamente para que no presenten problemas. Algunos discos, por alguna razón desconocida, se venden con esta característica desactivada. Para activar esta opción, tendrás que editar una de las opciones del dispositivo, lo que puede ser hecho con FreeBSD tecleando el siguiente comando (como root): scsi -f /dev/rsd0c -m 1 -e -P 3 y cambiando los valores de AWRE y ARRE de 0 a 1:- AWRE (Auto Write Reallocation Enbld): 1 ARRE (Auto Read Reallocation Enbld): 1 Para otros tipos de discos, dependes de las características de los sistemas operativos. Desafortunadamente, el comando "bad144" que se incluye en FreeBSD, necesita ser desarrollado más en profundidad. Se supone que los discos IDE incluyen de serie la posibilidad de "remapear" los bloques dañados; si tienes documentación de tu disco, podrás ver si esta opción está activada o desactivada. FreeBSD no reconoce mi Bustek 742a EISA SCSI! Esta información es específica para la tarjeta 742a, pero puede ser aplicable a otras tarjetas Buslogic. (Bustek = Buslogic) Existen dos versiones de la tarjeta 742a. Son revisiones de hardware A-G y H. La letra de revisión está situada después del número de ensamblaje. La 742a tiene 2 ROMs, una es la BIOS y la otra es el Firmware. FreeBSD no se fija en la versión de BIOS de la tarjeta, pero si en la de Firmware. Buslogic te enviará una actualización de de las ROMs si te pones en contacto con su departamento técnico. La BIOS y el Firmware son distribuidas de manera inseparable. Deberías tener la versión de Firmware más actualizada para la revisión de hardware de tu tarjeta. Las tarjetas con revisión A-G solo pueden aceptar BIOS/Firmware 2.41/2.21. La revisión H y superiores pueden aceptar las versiones más actuales 4.70/3.37. La diferencia entre las versiones de Firmware es que la 3.38 soporta "round robin". Las tarjetas Buslogic tienen un número de serie serigrafiado en ellas. Si tienes una revisión de hardware antigua, puedes llamar al departamento de RMA de Buslogic y darles el número de serie de la tarjeta para intentar cambiarla por una revisión superior del hardware. FreeBSD 2.1 solo soporta revisiones de Firmware 2.21 o superiores. Si tienes una versión inferior, tu tarjeta no será reconocida como Buslogic. Quizás sea reconocida como una Adaptec 1540. Las primeras versiones de Firmware de Buslogic contienen una modo de emulación de la AHA1540. Si tienes una revisión de hardware antigua y consigues una más actual (2.21), necesitarás chequear la posición del jumper W1 y asegurarte que está en la posición B-C (por defecto esta en B-C). Mi controladora SCSI HP Netserver's no es detectada! Este es un problema ya conocido. Las controladoras SCSI EISA integradas en la placa base en las máquinas HP Netserver, ocupan el slot numero 11. El espacio de direcciones para los slots EISA >=10 colisionan con los espacios de direcciones asignados para los dispositivos PCI, y la autoconfiguración de FreeBSD no maneja esta situación demasiado bien. Lo mejor que puedes hacer es pretender que no existan clases de rangos de direcciones :), cambiando el valor de la opción del kernel EISA_SLOTS a un valor de 12. Configura y compila un nuevo kernel como se describe en la entrada correspondiente del manual. Por supuesto, esto presenta un pequeño problema. Para poder solucionarlo, es necesario un truco en la utilidad de configuración. No uses el interface "visual", simplemente teclea lo siguiente en la línea de comando de la utilidad eisa 12 quit Esperamos que en las próximas versiones tengamos solucionados estos temas. ¿Qué ocurre con la controladora IDE CMD640? No funciona. No puede manejar comandos en los dos canales simultáneamente. Hay una solución posible y se activa automáticamente si tu sistema usa este chip. Para más detalles, referirse al man del driver de discos (man 4 wd). Si todavía estás usando FreeBSD 2.2.1 o 2.2.2 con una controladora IDE CMD640 y quieres usar el segundo canal, crea un nuevo kernel con options "CMD640" activada. Esta es la opción por defecto en la versión 2.2.5 y superiores. Tengo mensajes como ``ed1: timeout''. Esto, normalmente es causado por conflictos de interrupciones (por ejemplo, dos tarjetas usando la misma IRQ). Las versiones anteriores a la 2.0.5R eran tolerantes con los problemas de conflictos de IRQ. A partir de esa versión, los conflictos de IRQ ya no son tolerados. Arranca con la opción -c y cambia la entrada correspondiente a tu tarjeta. Si estás usando conectores BCN en tu tarjeta de red, el mensaje de error puede ser debido a una mala terminación de la red. Para chequear esto, conecta un terminador directamente a la salida BNC de la tarjeta (sin cable) y mira si el mensaje desaparece. Cuando monto el CDROM, obtengo ``Incorrect super block''. Tienes que indicar el tipo de dispositivo que quieres montar. Por defecto mount asumirá que el dispositivo que quieres montar es ``ufs''. Si quieres montar un CDROM, tienes que especificar . Esto hace que el sistema asuma que tiene que montar un sistema de ficheros con formato ISO 9660 que es lo que los CDROM deben tener. Como ejemplo, si quieres montar una unidad CDROM, /dev/cd0c, bajo /mnt, tienes que ejecutar mount -t cd9660 /dev/cd0c /mnt Ten en cuenta que el nombre de tu dispositivo (/dev/cd0c en este ejemplo) puede ser diferente dependiendo del interface que estés usando. El comando anterior puede ser acortado tecleando: mount_cd9660 /dev/cd0c /mnt Cuando monto un CDROM, obtengo ``Device not configured''. Esto, generalmente, significa que no hay ningún disco en el lector de CDROM. También puede significar que el lector no es visible para el bus. Chequea que está bién configurado en lo referente a master/slave si es IDE (ATAPI). Algunas veces un CDROM SCSI puede "desaparecer" por que no ha tenido tiempo suficiente para responder a un reset del bus. Si tienes un CDROM SCSI, añade la siguiente línea en el fichero de configuración del kernel y recompílalo. options "SCSI_DELAY=15" Mi impresora es ridiculamente lenta. ¿Qué puedo hacer? Si es paralelo, y el único problema es la lentitud, intenta configurar el puero de impresora en modo "polled": lptcontrol -p Algunas impresoras nuevas de HP son conocidas por no trabajar correctamente en modo de interrupción, aparentemente debido (y todavía no exactamente entendido), a un problema de "timing". Mis programas ocasionalmente mueren con errores ``Signal 11''. Esto puede ser por hardware erróneo (memoria, placa base, etc). Intenta ejecutar algún programa de test de memoria. Ten en cuenta que es posible que tu memoria pase el test del programa que uses, pero que falle en algunas condiciones de uso, como en compilación de kernel. La FAQ SIG11 (listada más abajo) apunta a problemas de lentitud de memoria. Incrementa el número de "wait states" en tu BIOS o instala una memoria más rápida. También puedes intentar desactivar el caché de placa base en la BIOS y comprueba si se resuelve el problema. Hay una extensa FAQ en the SIG11 problem FAQ Cuando arranco, la pantalla queda negra! Este es un problema conocido con las tarjetas de vídeo ATI Mach 64. El problema es que esta tarjeta usa la dirección 2e8, también usada por el puerto serie 4. Debido a un bug (feature?) en el driver sio.c , éste "tocará" este puerto aunque no esté instalado o esté desactivado. Hasta que el problema sea fijado, puedes hacer esto: Teclea en el prompt de arranque. Esto te llevará a la sección de configuración del kernel. Desactiva sio0, sio1, sio2 y sio3 (todos ellos). De esta manera, el driver sio no se activa. Teclea exit para seguir arrancando. Si quieres ser capaz de usar tus puertos serie, tendrás que compilar un nuevo kernel con la siguiente modificación: /usr/src/sys/i386/isa/sio.c. Busca la cadena 0x2e8 y borra esta cadena y la coma anterior (mantén la coma siguiente). Ahora, compila un nuevo kernel de la manera habitual. Después de realizar estos cambios, puedes encontrarte aun que las X Window no funcionan correctamente. Algunas tarjetas de vídeo modernas ATI Mach 64 (especialmente la ATI Mach Xpression) no funcionan con la versión actual de XFree86; la pantalla se queda negra cuando arrancas las X o ocurren cosas extrañas en su funcionamiento. Puedes instalar una versión beta del nuevo servidor X que trabaja mejor, situada en el servidor XFree86 y seguir los links hasta el download. Coge los siguientes ficheros: AccelCards, BetaReport, Cards, Devices, FILES, README.ati, README.FreeBSD, README.Mach64, RELNOTES, VGADriver.Doc, X312BMa64.tgz Reemplaza los viejos ficheros por las nuevas versiones y asegúrate de ejecutar de nuevoxf86config. Tengo 128MB de RAM pero el sistema solo usa 64MB. Debido a la forma que tiene FreeBSD de "ver" el tamaño de memoria en la BIOS, solo puede detectar 16 bits (65535 Kbytes = 64MB) (o menos... algunas BIOS fijan el tamaño de la memoria a 16MB). Para solucionar este problema, tienes que usar la opción del kernel indicada más adelante. Hay una manera de ver la información completa sobre memoria en la BIOS, pero no tenemos espacio en los bloques de arranque (bootblocks) para hacerlo. Por ahora, tenemos que trabajar con la opción del kernel. options "MAXMEM=<n>" Donde n es tu memoria en Kilobytes. Para 128MB, tendrías que usar 131072. FreeBSD 2.0 aborta con ``kmem_map too small!'' Nota El mensaje debería ser ``mb_map too small!'' La parada indica que el sistema no tiene memoria virtual suficiente para los buffers de red (específicamente, clusters mbuf). Puedes incrementar la cantidad de memoria virtual disponible para los clusters mbuf añadiendo: options "NMBCLUSTERS=<n>" al fichero de configuración del kernel, donde <n> es un número en el rango 512-4096, dependiendo del número de conexiones tcp simultáneas que necesites soportar. Te recomendamos intentar con 2048. Puedes monitorizar el número de clusters mbuf en uso con la orden netstat -m. ``CMAP busy panic'' al arrancar con un nuevo kernel. El programa que intenta detectar ficheros /var/db/kvm_*.db puede fallar y provocar el "panic" en el arranque. Si esto ocurre, arranca en mono-usuario y haz: rm /var/db/kvm_*.db ahc0: brkadrint, Illegal Host Access at seqaddr 0x0 Esto significa un conflicto con una controladora Ultrastor SCSI. Durante el proceso de arranque, entra en el menú de configuración del kernel y desactiva el dispositivo uha0. Sendmail dice ``mail loops back to myself'' Esto está contestado en la FAQ de sendmail de la siguiente manera: * Tengo el error "Local configuration error" : 553 relay.domain.net config error: mail loops back to myself 554 <user@domain.net>... Local configuration error Cómo puedo solventar el problema? Has intentado enviar un mail al dominio domain.net y que sea reenviado a un host específico (en este caso relay.domain.net) usando un registro MX, pero la máquina que tiene que aceptar ese mail, no reconoce el domimio como propio. Añade domain.net al fichero /etc/sendmail.cw (si estás usando FEATURE(use_cw_file) o añade "Cw domain.net" al fichero sendmail.cf La versión actual de la FAQ de sendmail puede ser encontrada en comp.mail.sendmail, comp.mail.misc, comp.mail.smail, comp.answers, y news.answers. Tambien puedes recibir una copia enviando un mail a mail-server@rtfm.mit.edu con el comando "send usenet/news.answers/mail/sendmail-faq" en el cuerpo del mensaje. No funcionan correctamente las aplicaciones a pantalla completa en máquinas remotas Quizás la máquina remota tiene el tipo de terminal diferente de cons25 que es el usado por la cónsola de FreeBSD. Hay diferentes maneras de solucionar este problema: Después de hacer el login en la máquina remota, configura la variable SHELL como ANSI o sco. Usa el emulador VT100 como screen local. screen te permite la posibilidad de ejecutar múltiples y concurrentes sesiones desde un terminal. Instala la base de datos del terminal cons25 en la máquina remota. Lanza las X y haz el login en la máquina remota desde xterm. Aparece el mensaje de error "calcru: negative time..." Esto puede ser causado por varios problemas de hardware o software relacionados con las interrupciones. Utilizar TCP/IP sobre el puerto paralelo con un MTU muy grande es una buena manera de provocar este error. Las tarjetas gráficas aceleradoras también lo pueden provocar, teniendo que revisar la interrupción utilizada por la tarjeta. El efecto de este error es que los procesos mueren con el mensaje "SIGXCPU exceeded cpu time limit". Para FreeBSD 3.0 y posteriores desde el 29 de Noviembre de 1998: si el problema no puede fijarse de otra manera, la solución es poner la variable sysctl a: sysctl -w kern.timecounter.method=1 Esto puede significar un impacto en el rendimiento del sistema, pero considerando la causa del problema, probablemente no lo notarás. Si el problema persiste, mantén la variable sysctl a uno y añade la opción "NTIMECOUNTER" en tu kernel para aumentar su valor. Si finalmente llegas a un valor de "NTIMECOUNTER=20" el problema no está resuelto, y las interrupciones están demasiado saturadas para ofrecer un buén rendimiento. Aplicaciones Comerciales NOTA Esta sección está todavía poco desarrollada, por lo que esperamos que las compañías nos ayuden a completarla :) . El grupo de FreeBSD no tiene ningún interés financiero en ninguna de las empresas aquí listadas, simplemente están como servicio público (y creemos que el interés comercial por FreeBSD puede tener efectos muy positivos en la viabilidad a largo término). Animamos a las empresas desarrolladoras de software que nos envíen su información para ser incluidas en esta lista. ¿Dónde puedo obtener Motif para FreeBSD? Contacta con para una distribución de Motif ELF 2.1 para FreeBSD. Esta distribución incluye: OSF/Motif manager, xmbind, panner, wsm. Kit de desarrollo con uil, mrm, xm, xmcxx, includes y ficheros Imake. Librerías ELF estáticas y dinámicas (para usar con FreeBSD 3.0 y posteriores). Applets demostrativos. Asegúrate de especificar que deseas la distribución para FreeBSD cuando hagas el pedido. También se distribuyen versiones para NetBSD y OpenBSD por Apps2go. La distribución sólo está disponible por FTP. Más información Página web de Apps2go o Ventas o Soporte o teléfono (817) 431 8775 o +1 817 431-8775 Contacta con para obtener una distribución de Motif 2.1 ELF o a.out para FreeBSD. Esta distribución incluye: OSF/Motif manager, xmbind, panner, wsm. Kit de desarrollo con uil, mrm, xm, xmcxx, includes y ficheros Imake. Librerías estáticas y dinámicas (especifica ELF para FreeBSD 3.0 y superior o a.out para FreeBSD 2.2.8 o anterior). Applets demostrativos. Páginas man preformateadas. Asegúrate de especificar que deseas la distribución para FreeBSD cuando hagas el pedido. También se distribuyen versiones para Linux por Metro Link. La distribución está disponible en CDROM o vía FTP. Contacta con para una distribución de Motif a.out 2.0 para FreeBSD. Esta distribución incluye: OSF/Motif manager, xmbind, panner, wsm. Kit de desarrollo con uil, mrm, xm, xmcxx, includes y ficheros Imake. Librerías estáticas y dinámicas (para usar con FreeBSD 2.2.8 y anteriores). Applets demostrativos. Páginas man preformateadas. Asegúrate de especificar que deseas la distribución para FreeBSD cuando hagas el pedido. También se distribuyen versiones para BSDI y Linux por Xi Graphics. La distribución se hace en cuatro disquetes... en el futuro esto se cambiará por una versión en CDROM unificada. ¿Dónde puedo conseguir CDE para FreeBSD? Contacta con para la distribucion CDE 1.0.10 para FreeBSD. Incluye Motif 1.2.5, y puede ser usada con Motif 2.0. Este es un CDROM unificado para FreeBSD y Linux. ya no vende el CDE para FreeBSD. KDE es un entorno gráfico "open source" similar a CDE en muchos aspectos. ¿Hay algún servidor X comercial de altas prestaciones? Sí, Xi Graphics y Metro Link venden el producto Accelerated-X para FreeBSD y otros sistemas basados en Intel. La oferta de Metro Link es un servidor X de altas prestaciones que ofrece una fácil configuración usando el conjunto de herramientas "FreeBSD Package", soporte de múltiples tarjetas de vídeo concurrentes y sólo se distribuye en formato binario desde su FTP. Mencionar que la oferta de Metro Link está disponible por el razonable precio de $39. Metro Link también vende el Motif ELF y a.out para FreeBSD. Más información Web de Metro Link o Ventas o Soporte. o Teléfono (954) 938-0283 o +1 954 938-0283 La oferta de Xi Graphics es un servidor X de altas prestaciones que ofrece una fácil configuración, soporte para múltiples tarjetas de vídeo concurrentes, y sólo se distribuye en formato binario, en una distribución en disquetes unificada para FreeBSD y Linux. Xi Graphics también ofrece un servidor X de altas prestaciones para ordenadores portátiles. Hay una distribución demo para testear (versión 5.0). Xi Graphics también vende el Motif y CDE para FreeBSD. Mas información Web de Xi Graphics WWW o ventas o Soporte o Teléfono (800) 946 7433 o +1 303 298-7478. ¿Hay algún sistema de base de datos para FreeBSD? Sí!. Mira en la sección Productos Comerciales del web de FreeBSD. También te recomendamos que mires en la sección Bases de Datos de la colección de Ports. ¿Puedo usar Oracle en FreeBSD? Sí. Las siguientes páginas te explican como configurar el Oracle de Linux en FreeBSD: http://www.scc.nl/~marcel/howto-oracle.html http://www.lf.net/lf/pi/oracle/install-linux-oracle-on-FreeBSD Aplicaciones de usuario ¿Dónde están las aplicaciones? Por favor, mira en la sección de ports para obtener información sobre programas y aplicaciones que han sido portados a FreeBSD. En estos momentos la lista llega a los 1800 creciendo día a día, por lo que te recomendamos que la visites habitualmente o te subscribas a la FreeBSD-announce para las actualizaciones periódicas de nuevas aportaciones. La mayoría de programas están disponibles tanto para la rama 2.2 como para la 3.x y 4.0, y muchos de ellos deberían funcionar en sistemas 2.1.x. Cada vez que se realiza una release de FreeBSD, se incluye un snapshot del arbol de aplicaciones en el directorio ports/. También trabajamos con el concepto de "package", que es, esencialmente una distribución binaria "zipada" con una pequeña información extra que realiza la instalación del programa automaticamente. Un package puede ser instalado y desinstalado fácilmente sin tener que saber los detalles de ficheros o configuraciones que esto conlleva. Usa el menú de instalación de "packages" en /stand/sysinstall (bajo la opción post-configuration del menú principal) o ejecuta el comando pkg_add(1) con el package que estás interesado en instalar. Los package pueden ser identificados por su extensión .tgz. En la distribución de CDROM existe un directorio packages/All en la que se encuentran todos los packages disponibles. También pueden conseguirse en la red en los siguientes servidores: para 2.2.8-RELEASE/2.2-stable ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-2.2.8/ for 3.2-release/3.2-stable ftp://ftp.FreeBSD.ORG/pub/FreeBSD/ports/i386/packages-3-stable/ para 4.0-current ftp://ftp.FreeBSD.ORG/pub/FreeBSD/ports/i386/packages-4-current/ o en tu mirror más cercano. Ten en cuenta que no todos los ports están disponibles como packages. Es siempre buena idea visitar periodicamente la dirección ftp.FreeBSD.org. ¿Dónde encuentro la librería libc.so.3.0? Estás intentando ejecutar un package para versión 2.2/3.x/4.0 en un sistema de versión 2.1.x. Por favor, mira en la sección anterior y usa el package adecuado para tu sistema. Ghostscript tiene muchos errores con mi 386/486SX. No tienes coprocesador matemático, verdad? Necesitarás añadir el emulador matemático en tu kernel; puedes hacerlo añadiendo lo siguiente en el fichero de configuración del kernel: options GPL_MATH_EMULATE NOTA Necesitarás eliminar la opción MATH_EMULATE. Cuando ejecuto una aplicación SCO/iBCS2, falla en socksys. Primero necesitas editar el fichero /etc/sysconfig (o /etc/rc.conf) y en la última sección cambiar la siguiente variable a YES: # Set to YES if you want ibcs2 (SCO) emulation loaded at startup ibcs2=NO El kernel caragará el módulo ibcs2 al arrancar. A continuación necesitarás configurar /compat/ibcs2/dev de la siguiente manera lrwxr-xr-x 1 root wheel 9 Oct 15 22:20 X0R@ -> /dev/null lrwxr-xr-x 1 root wheel 7 Oct 15 22:20 nfsd@ -> socksys -rw-rw-r-- 1 root wheel 0 Oct 28 12:02 null lrwxr-xr-x 1 root wheel 9 Oct 15 22:20 socksys@ -> /dev/null crw-rw-rw- 1 root wheel 41, 1 Oct 15 22:14 spx Solo necesitas el socksys para ir a /dev/null e imitar la apertura y cierre de ficheros. El código en -current gestionará el resto. Esto es mucho más limpio que la manera en la que se hacía antes. Si quieres el driver spx para un conexión, define SPX_HACK cuando compiles el kernel. ¿Cómo configuro INN (Internet News) para mi máquina? Después de la instalación del package o port de inn, un excelente lugar para empezar es Dave Barr's INN Page donde encontrarás las FAQ de INN. ¿Qué versión de Microsoft FrontPage debo usar? Usa el Port. Una versión pre-parcheada para Apache está disponible en la colección de ports. ¿FreeBSD soporta Java? Sí. Por favor, mira en http://www.FreeBSD.org/java. ¿Porqué no puedo compilar este port en mi máquina 3.x-stable? Si utilizas una versión de FreeBSD que ha quedado ligeramente anticuada con respecto a -stable o -current necesitarás el kit de actualización de ports disponible en http://www.FreeBSD.org/ports. Si tienes una versión actualizada, es posible que alguien haya modificado el port de manera que éste compile en -current pero no en -stable. Por favor, envía un informe de error con el comando send-pr(1) ya que la colección de ports está pensada para que funcione tanto en las ramas -stable como -current. ¿Dónde encuentro ld.so? Si quieres ejecutar aplicaciones a.out como Netscape en sistemas con formato de ejecución ELF como FreeBSD 3.1-RELEASE o posteriores, necesitarás la librería /usr/libexec/ld.so y algunas otras en formato a.out. Estas librerías están incluidas en la distribución compat22. Usa /stand/sysinstall o el script install.sh en el subdirectorio compat22 e instalala. También deberían consultarse los ficheros ERRATA de FreeBSD 3.1-R y 3.2-R. Configuración del Kernel Me gustaría personalizar mi kernel. ¿Es difícil? No!, primero, necesitas la distribución completa de fuentes o, por lo menos, la distribución de fuentes del kernel. De esta manera tienes los fuentes necesarios para crearte un nuevo kernel. Al contrario que muchos Unix comerciales, nosotros tenemos la política de NO vender nuestro kernel en formato binario. La instalación de los fuentes ocupa un poco más de espacio, pero te permite consultar los fuentes del kernel en caso de dificultad o entender que está ocurriendo realmente en la ejecución del sistema. Una vez tienes instalada la distribución completa de fuentes, o por lo menos la del kernel, haz lo siguiente como root: cd /usr/src/sys/i386/conf cp GENERIC MYKERNEL vi MYKERNEL config MYKERNEL cd ../../compile/MYKERNEL make depend make all make install reboot El paso 2 no es necesario si todavía tienes un fichero de configuración del kernel de una release anterior de FreeBSD 2.X. - simplemente, copia el fichero antiguo y examínalo cuidadosamente para asegurar que no haya cambiado la sintaxis da algún driver, o haya alguno anticuado. Un buen fichero de configuración para consultar es LINT, el cual contiene ejemplos documentados para todas las posibles opciones del kernel. El fichero de configuración GENERIC se usa para crear el kernel "por defacto" que es el que estarás usando si no has creado ninguno nuevo. Si no necesitas hacer ningún cambio al fichero GENERIC, puedes saltar al paso 3, donde personalizas el kernel para tu sistema. El paso 8 solo debe ejecutarse si los pasos 6 y 7 se han realizado de manera satisfactoria. Esto copiará una imágen del nuevo kernel a /kernel y realizará una copia del antiguo kernel en /kernel.old. Es muy importante recordar esto por si el nuevo kernel falla en algun momento - puedes seleccionar kernel.old en el prompt de arranque. Al hacer un reboot, por defecto se cargará el nuevo kernel. Si la compilación en el paso 7 falla por alguna razón, es recomendable que empieces desde el paso 4 substituyendo GENERIC por MYKERNEL. Si puedes generar el kernel GENERIC, significa que algo en tu fichero de configuración es incorrecto (o has decubierto un bug). Si la compilación del kernel GENERIC falla, posiblemente tengas los fuentes corruptos. Finalmente, si necesitas ver los mensajes originales de arranque del sistema para compilar un nuevo kernel, ejecuta el comando dmesg. Este comando debe imprimir en pantalla todos los mensajes producidos por el kernel al arrancar, los cuales te pueden servir en la configuración de tu nuevo kernel. NOTA Recomendamos hacer un historial fechado de los kernel que vayas creando, de la manera kernel.YYMMDD una vez estén funcionando correctamente. De esta manera, si la próxima vez que juegues con el kernel algo no funciona, puedes arrancar desde el último kernel correcto. Esto es especialmente importante si ahora estás arrancando desde una controladora no soportada por el kernel GENERIC (si, experiencia personal). La compilación del kernel falla por "_hw_float is missing." Dejame adivinar. Has borrado npx0 de tu fichero de configuración porque no tienes coprocesador matemático, no? Mal hecho :-) El dispositivo npx0 es OBLIGATORIO. Aunque no tengas coprocesador, debes incluir el dispositivo npx0 Conflicto de interrupciones con tarjeta serie multi-port. Cuando compilo el kernel con drivers para tarjetas serie multipuerto, el sistema me dice que sólo el primer puerto es testeado y el resto son obviados debido a conflictos de interrupción. Cómo soluciono esto? El problema en este caso es que FreeBSD tiene código interno que evita caidas del sistema por conflictos de hardware o software. La manera de solucionar esto es dejar en blanco la entrada correspondiente a la irq en todos los puertos excepto en uno. Aquí tienes un ejemplo: # # Multiport high-speed serial line - 16550 UARTS # device sio2 at isa? port 0x2a0 tty irq 5 flags 0x501 vector siointr device sio3 at isa? port 0x2a8 tty flags 0x501 vector siointr device sio4 at isa? port 0x2b0 tty flags 0x501 vector siointr device sio5 at isa? port 0x2b8 tty flags 0x501 vector siointr ¿Cómo activo el soporte para discos QIC-40/80? Necesitas "descomentar" la siguiente línea en el fichero genérico de configuración (o añadirla en tu propio fichero), añade un flags 0x1 en la línea fdc y recompila. controller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2 flags 0x1 vector fdintr disk fd0 at fdc0 drive 0 ^^^^^^^^^ disk fd1 at fdc0 drive 1 #tape ft0 at fdc0 drive 2 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ A continuación, crea un nuevo dispositivo llamado /dev/ft0 entrando en el directorio /dev y ejecutando el comando: sh ./MAKEDEV ft0 Para el primer dispositivo. ft1 para el segundo y así para todos los dispositivos de este tipo que tengas. Tendrás un dispositivo llamado /dev/ft0, al cual puedes escribir a través de un programa especial de manejo llamado ft - mira el man en ft para más detalles. Versiones anteriores a la tenían algunos problemas al encontrase con cintas en mal estado; si tienes problemas en los que parece que la cinta se rebovina siempre al llegar al mismo lugar, intenta utilizar la última versión del programa ft que encontrarás en /usr/src/sbin/ft en . Administración de sistema ¿Dónde están los ficheros de configuración de arranque del sistema? De la versión 2.0.5R a la 2.2.1R, el fichero principal de configuración es /etc/sysconfig. Todas las opciones son especificadas en este fichero y otros como /etc/rc y /etc/netstart. Mira en el fichero /etc/sysconfig y cambia los valores para tu sistema. Este fichero está comentado para ayudar en la configuración En versiones posteriores a la 2.2.1 y 3.0 el fichero /etc/sysconfig fue renombrado como rc.conf. La sintaxis también fue retocada para ser mas descriptiva. El fichero /etc/netstart también fue renombrado como /etc/rc.network para que todos los ficheros de configuración puedan ser copiados con el comando cp /usr/src/etc/rc* /etc. /etc/rc.local existe como siempre y debería ser usado para arrancar servicios locales adicionales como INN o programas propios. El fichero /etc/rc.serial es para la inicialización de puertos serie. El fichero /etc/rc.i386 es para especificaciones propias de Intel, como la emulación iBCS2 o la configuración de la cónsola del sistema. A partir de la versión 2.1.0R, también puedes tener un directorio en el que instalar ficheros de arranque locales especificado en /etc/sysconfig (o /etc/rc.conf): # Localización de los ficheros de arranque locales. local_startup=/usr/local/etc/rc.local.d Cada fichero acabado en .sh será ejecutado en orden alfabético. Si quieres asegurarte de un cierto orden en la ejecución sin tener que cambiar todos los nombres de los ficheros, puedes usar un esquema similar al siguiente con dígitos al principio del nombre de cada fichero: 10news.sh 15httpd.sh 20ssh.sh Puede ser visto como "malo" (o SysV :-)) pero nos provee de un esquema regular para programas añadidos localmente sin tener que hacer ediciones complicadas del fichero /etc/rc.local. Muchos de los ports/packages asumen que /usr/local/etc/rc.d es un directorio de arranque local. ¿Cómo añado un usuario facilmente? Usa el comando adduser. Para opciones más avanzadas, usa el comando pw Para borrar a un usuario, usa el comando rmuser. ¿Cómo puedo añadir mi nuevo disco a FreeBSD? Consultar el Tutorial de Formateo de Discos en www.FreeBSD.org. Tengo un nuevo disco removible, ¿como lo uso? Se trate de un disco removible como un ZIP o EA (o un floppy, si quieres usarlo de esta manera), o un nuevo disco duro, una vez instalado y reconocido por el sistema, y tengas tu cartridge/floppy/etc en su interior, las cosas son como para la mayoría de dispositivos. (esta sección esta basada en Mark Mayo's ZIP FAQ) Si es un disco ZIP o floppy, y está formateado en DOS, puedes usar el comando: mount -t msdos /dev/fd0c /floppy Si es un floppy, o este: mount -t msdos /dev/da2s4 /zip para un disco ZIP con la configuración de fábrica. Para otros discos, mira como configurarlos usando fdisk o /stand/sysinstall. El resto de ejemplos serán para un disco ZIP en da2, el tercer disco SCSI. A no ser que se trate de un floppy o disco removible, lo que planeas compartir con otros usuarios, es aconsejable convertir el formato de ficheros a BSD. Obtendrás nombre de ficheros largos, como mínimo doblarás la velocidad de acceso del disco, y mucha más estabilidad. Antes, necesitas rehacer las particiones. Puedes usar el comando fdisk o la utilidad /stand/sysinstall. Si es un disco pequeño que quieres dedicar enteramente a FreeBSD, solo tienes que eliminar la FAT y tabla de particiones, y usar el sistema de particiones de FreeBSD: dd if=/dev/zero of=/dev/rda2 count=2 disklabel -Brw da2 auto Puedes usar el comando disklabel o /stand/sysinstall para crear múltiples particiones BSD. Finalmente, crea un nuevo sistema de ficheros: newfs /dev/rda2c y montalo: mount /dev/da2c /zip Sería una buena idea añadir una línea como esta en el fichero /etc/fstab para que solo tengas que teclear "mount /zip" las siguientes veces. /dev/da2c /zip ffs rw,noauto 0 0 ¿Cómo monto una partición secundaria DOS? Las particiones DOS secundarias se encuentran después de TODAS las particiones primarias. Por ejemplo, si tienes una partición "E" como la segunda partición DOS en el segundo disco SCSI, necesitas crear los ficheros especiales para el dispositivo 5 en /dev, y después montar /dev/da1s5: # cd /dev # ./MAKEDEV da1s5 # mount -t msdos /dev/da1s5 /dos/e ¿Puedo montar otros sistemas de ficheros bajo FreeBSD? Digital UNIX UFS CDROMs pueden ser montados directamente en FreeBSD. Montar particiones de disco de Digital UNIX y otros sistemas que soportan UFS puede ser mas complejo, dependiendo de los detalles de la partición de disco del sistema operativo en cuestión. Linux: 2.2 y posteriores soportan particiones ext2fs. Mira mount_ext2fs para mas información. NT: Existe un driver de solo lectura de NTFS para FreeBSD. Para más información, mira este tutorial de Mark Ovens en http://www.users.globalnet.co.uk/~markov/ntfs_install.html. ¿Cómo puedo usar el "NT loader" para arrancar FreeBSD? La idea general es que copies el primer sector de la partición root nativa de FreeBSD en un fichero en la partición DOS/NT. Asumiento que nombras a ese fichero como c:\bootsect.bsd puedes editar el fichero c:\boot.ini para conseguir algo como esto: [boot loader] timeout=30 default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS [operating systems] multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows NT" C:\BOOTSECT.BSD="FreeBSD" C:\="DOS" Este proceso asume que DOS, NT, FreeBSD o cualquier otro sistema ha sido instalado en sus respectivas particiones en el mismo disco. En nuestro caso, DOS y NT están en la primera partición y FreeBSD en la segunda. Instalamos FreeBSD para arrancarlo desde su partición nativa y no desde el disco MBR. Monta un floppy formateado en DOS bajo la partición /mnt. dd if=/dev/rda0a of=/mnt/bootsect.bsd bs=512 count=1 Rearranca en DOS o NT. Copia el fichero bootsect.bsd y/o el fichero bootsect.lnx del floppy a C:\. Modifica los atributos a boot.ini con: attrib -s -r c:\boot.ini Edita y añade las líneas apropiadas del boot.ini mostrado enteriormente de ejemplo, y vuelve a poner los atributos originales: attrib +s +r c:\boot.ini Si FreeBSD está arrancando desde el MBR, restauralo desde el comando fdisk después de reconfigurarlos para arrancar desde sus particiones nativas. ¿Cómo arranco FreeBSD y Linux desde LILO? Si tienes FreeBSD y Linux en el mismo disco, solo tienes que seguir las instrucciones de instalación de LILO para arrancar un sistema operativo no Linux. Brevemente, son estas: Arranca Linux, y añade las siguientes líneas en el fichero /etc/lilo.conf: other=/dev/hda2 table=/dev/hda label=FreeBSD (Asumiendo que tu partición FreeBSD es conocida por Linux como /dev/hda2). A continuación, ejecuta lilo como root y ya debería estar. Si FreeBSD está en otro disco, necesitas añadir ``loader=/boot/chain.b'' al fichero lilo.conf. Por ejemplo: other=/dev/sdb4 table=/dev/sdb loader=/boot/chain.b label=FreeBSD En algunos casos necesitarás especificar el número de disco en BIOS para que el cargador del boot funcione correctamente desde el segundo disco. Por ejemplo, si tu disco SCSI con FreeBSD es visto por la BIOS como disco 1, en el prompt del cargador de arranque necesitarás especificar: Boot: 1:da(0,a)/kernel En FreeBSD 2.2.5 y posteriores, puedes configurar boot(8) para que haga esto automaticamente. El Linux+FreeBSD mini-HOWTO es una buena referencia para las opciones de interoperabilidad entre FreeBSD y Linux. ¿Cómo arranco FreeBSD y Linux usando BootEasy? Instala el LILO al inicio de la partición de arranque del Linux en lugar de hacerlo en el "Master Boot Record". Así podrás arrancar el LILO desde BootEasy. Si estas usando Windows-95 y Linux, también es recomendable hacer esto para simplificar el arranque de Linux en caso de que sea necesaria una reinstalación del Windows-95 (ya que no quiere convivir con otros sistemas operativos en el mismo Master Boot Record). ¿Puede un disco "dedicado" provocar problemas? El proceso de instalación nos permite elegir dos métodos diferentes de particionar un disco. El sistema por defecto hace que el disco sea compatible con otros sistemas operativos en la misma máquina, usando las tablas de entrada de fdisk (llamadas "slices" en FreeBSD). Opcionalmente, podemos instalar un boot-selector que nos permite seleccionar el sistema operativo con el que queremos arrancar. Mientras este es el caso más com&ún para gente proveniente del mundo de PC, para la gente proveniente del mundo Unix y quienes quieren instalar una máquina para funcionar con FreeBSD y solo FreeBSD, es más habitual usar el sistema de reservar todo el espacio del disco para un solo sistema operativo. Si seleccionas "A)ll FreeBSD" en el editor de fdisk de la utilidad sysinstall, y respondes la siguiente pregunta con "No", usarás este último sistema. Ten en cuenta que usando este sistema no te permitirá la instalación de ningún otro sistema operativo o selector de arranque (boot manager). Entonces, ¿por qué se llama "peligroso"?. Un disco en este modo no contiene lo que las utilidades normales de un PC considerarían una tabla de partición de ficheros válida. Dependiendo del diseño de estas aplicaciones, puede que dañen el sector de arranque una vez entren en contacto con el disco. Por lo menos una BIOS Award usada por máquinas HP Netservers (pero no sólo por ellos) es concocida por ignorar los disco duros que no contengan lo que la BIOS entiende por una tabla de ficheros válida. Para volver un disco "peligrosamente dedicado" a formato estandard de PC, hay básicamente dos opciones. La primera es, escribes suficientes bytes NULL sobre el MBR para hacer que las siguientes instalaciones crean que están en un disco sín usar. Puedes hacer esto así: dd if=/dev/zero of=/dev/rda0 count=15 Alternativamente, puedes hacer: fdisk /mbr que instalará un nuevo master boot record. ¿Cómo puedo añadir más espacio de swap? La mejor manera es incrementar el tamaño de tu partición de swap, o usar esta excusa para añadir un otro disco nuevo. Añadir swap en discos separados hace las cosas más rápidas que simplemente añadir swap en el mismo disco. Como ejemplo, si estás compilando código fuente en un disco, y el swap está en otro disco, es mucho más rápido que si el swap y la compilación se realizaran en el mismo disco. Esto es cierto específicamente para discos SCSI. Los discos IDE no son capaces de permitir el acceso a ambos discos en el mismo canal al mismo tiempo (FreeBSD no soporta el modo 4, ya que todas las I/O de discos IDE son "programadas"). Es realmente muy mala idea instalar el swap sobre NFS a no ser que trabajes en una red muy rápida con un muy buen servidor. Aquí hay un ejemplo para un fichero de swap de 64Mb /usr/swap0, piensa que puedes usar el nombre que quieras). Asegurate que el kernel está compilado con la línea pseudo-device vn 1 #Vnode driver (turns a file into a device) en tu fichero de configuración. El kernel GENERIC la contiene. crea un vn-device cd /dev sh ./MAKEDEV vn0 crea un swapfile (/usr/swap0) dd if=/dev/zero of=/usr/swap0 bs=1024k count=64 activa el fichero de swap en /etc/rc.conf swapfile="/usr/swap0" # Set to name of swapfile if aux swapfile desired. rebota la máquina. Para activar el fichero de swap inmediatamente teclea vnconfig -ce /dev/vn0c /usr/swap0 swap Tengo problemas para poner en marcha mi impresora. Por favor, revisa la sección de impresoras del manual. Cubre la mayoría de posibles problemas. Pásate por esta sección. Mi teclado no coincide con los carácteres de pantalla. El programa de control de teclado tiene una opción para cargar el mapa de teclado. En el directorio /usr/share/syscons/keymaps hay diferentes ficheros de mapas de teclado. Selecciona el que corresponde a tu sistema y cárgalo. kbdcontrol -l uk.iso Tanto el directorio /usr/share/syscons/keymaps como la extensión .kbd son asumidas por la orden kbdcontrol. Esto puede ser configurado en /etc/sysconfig (o rc.conf). Mira los comentarios correspondientes en el propio fichero. En la versión 2.0.5R y posteriores, todo lo referente a fuentes, teclado, etc está en /usr/share/examples/syscons. Actualmente se soportan los siguientes mapas de teclado: Belgian ISO-8859-1 Brazilian 275 keyboard Codepage 850 Brazilian 275 keyboard ISO-8859-1 Danish Codepage 865 Danish ISO-8859-1 French ISO-8859-1 German Codepage 850 German ISO-8859-1 Italian ISO-8859-1 Japanese 106 Japanese 106x Latin American Norwegian ISO-8859-1 Polish ISO-8859-2 (programmer's) Russian Codepage 866 (alternative) Russian koi8-r (shift) Russian koi8-r Spanish ISO-8859-1 Swedish Codepage 850 Swedish ISO-8859-1 Swiss-German ISO-8859-1 United Kingdom Codepage 850 United Kingdom ISO-8859-1 United States of America ISO-8859-1 United States of America dvorak United States of America dvorakx Las cuotas de usuario no funcionan correctamente. No actives las cuotas en '/', Pon el fichero de cuotas en el sistema de ficheros en el que se vayan a forzar las cuotas de usuario: FS QUOTA FILE /usr /usr/admin/quotas /home /home/admin/quotas ... Mi ccd no funciona correctamente El síntoma es: # ccdconfig -C ccdconfig: ioctl (CCDIOCSET): /dev/ccd0c: Inappropriate file type or format # Esto actualmente ocurre cuando estás intentando concatenar las particiones c'. El driver ccd requiere que la partición sea del tipo FS_BSDFFS. Edita la etiqueta del disco (disklabel) que estás intentando concatenar y cambia el tipo de partición a '4.2BSD'. ¿Porqué no puedo editar el disklabel en mi ccd? El síntoma es: # disklabel ccd0 (it prints something sensible here, so let's try to edit it) # disklabel -e ccd0 (edit, save, quit) disklabel: ioctl DIOCWDINFO: No disk label on disk; use "disklabel -r" to install initial label # Esto es porque el disklabel retornado por el ccd es actualmente uno que no corresponde con el real. Puedes resolver este problema escribiendo explícitamente: # disklabel ccd0 > /tmp/disklabel.tmp # disklabel -Rr ccd0 /tmp/disklabel.tmp # disklabel -e ccd0 (this will work now) ¿Soporta FreeBSD primitivas IPC System V? Sí, FreeBSD las soporta. Estas incluyen memoria compartida, mensajes y semáforos. Necesitas añadir las siguientes líneas en la configuración de tu kernel para activarlas. options SYSVSHM options "SHMMAXPGS=64" # 256Kb of sharable memory options SYSVSEM # enable for semaphores options SYSVMSG # enable for messaging Recompila e instala. NOTA: Quizás necesites incrementar SHMMAXPGS a un número como 4096 (16M) si quieres usar GIMP. 256K es suficiente para la memoria compartida en X11R6. ¿Cómo uso sendmail para envio de mail UUCP? La configuración de sendmail incluida en FreeBSD está preparada para sistemas que conectan directamente con Internet. Los sistemas que quieran usar UUCP para el envío de mail deben utilizar otro fichero de configuración. Retocar /etc/sendmail.cf manualmente está considerado algo para puristas. La versión 8 de sendmail incluye un nuevo sistema de configuración llamado m4, en el cual la configuración se realiza en un nivel más alto. Deberías usar los ficheros de configuración situados en /usr/src/usr.sbin/sendmail/cf Si no instalaste tu sistema con el código fuente completo, el paquete de configuración de sendmail está en una distribución aparte. Asumiendo que tienes tu CD-ROM montado, haz: cd /usr/src tar -xvzf /cdrom/dists/src/ssmailcf.aa No te preocupes, solo son unos cientos de kilobytes de tamaño. El fichero README en el directorio cf puede servir como introducción a la configuración del m4. Para envío y recepción va UUCP, te aconsejamos usar la opción mailertable. Se basa en una base de datos que sendmail puede usar como base para tomar las decisiones de enrutado del mail. Primero tienes que crear tu fichero .mc. Estos ficheros se encuentran en el directorio /usr/src/usr.sbin/sendmail/cf/cf. Si miras, encontrarás algunos ejemplos. Asumiendo que tu fichero se llama foo.com, todo lo que necesitas hacer para convertirlo en un fichero sendmail.cf válido es: cd /usr/src/usr.sbin/sendmail/cf/cf make foo.cf cp foo.cf /etc/sendmail.cf Un fichero típico .mc sería algo como: include(`../m4/cf.m4') VERSIONID(`Your version number') OSTYPE(bsd4.4) FEATURE(nodns) FEATURE(nocanonify) FEATURE(mailertable) define(`UUCP_RELAY', your.uucp.relay) define(`UUCP_MAX_SIZE', 200000) MAILER(local) MAILER(smtp) MAILER(uucp) Cw your.alias.host.name Cw youruucpnodename.UUCP Las opciones nodns y nocanonify previenen del uso del DNS durante el tráfico de correo. La cláusula UUCP_RELAY se necesita por razones imperiosas, no preguntes :). Simplemente pon un nombre de máquina de Internet que sea capaz de gestionar pseudo-dominios .UUCP; más sencillo, entrarás el mail relay de tu ISP. Una vez hayas hecho esto, necesitas el fichero llamado /etc/mailtertable. Un ejemplo típico sería: # # makemap hash /etc/mailertable.db < /etc/mailertable # horus.interface-business.de uucp-dom:horus .interface-business.de uucp-dom:if-bus interface-business.de uucp-dom:if-bus .heep.sax.de smtp8:%1 horus.UUCP uucp-dom:horus if-bus.UUCP uucp-dom:if-bus . uucp-dom:sax Como puedes ver, esto es parte de un fichero real. Las tres primeras líneas manejan casos especiales donde el correo dirigido a un dominio no debe ser enviado a través de la ruta por defecto, si no a través de un UUCP vecino para acortar el path de envío. La siguiente línea gestiona el mail del dominio local para que sea enviado vía SMTP. Finalmente, los vecinos UUCP son anotados en la parte .UUCP pseudo-domains, para poder sobreescribir las reglas por defecto. La última línea es siempre un punto, que indica el mail gateway hacia el resto del mundo. Todos los nombres de nodos detrás de uucp-dom: deben ser vecinos válidos UUCP. Como recordatorio de que este fichero debe ser convertido a una base de datos DBM antes de ser usada, la línea de comandos para realizar esta operación esta puesta como un comentario al inicio del fichero. Siempre tienes que ejecutar este comando cada vez que realices algún cambio en tu mailtertable. Si no tienes la seguridad de que una ruta de correo vaya a funcionar correctamente, recuerda la opción de sendmail. Esta opción arranca el sendmail en modo test; simplemente entra 0, seguido por la dirección de mail sobre la que quieres testear la ruta. La última línea te indica el agente interno, el host de destino y la dirección (posiblemente traducido). Sal de este modo tecleando Control-D. j@uriah 191% sendmail -bt ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter <ruleset> <address> > 0 foo@interface-business.de rewrite: ruleset 0 input: foo @ interface-business . de ... rewrite: ruleset 0 returns: $# uucp-dom $@ if-bus $: foo \ < @ interface-business . de > > ^D j@uriah 192% ¿Cómo configuro el correo para conexiones NO permanentes a Internet? Si tienes una dirección IP fija en la conexión, no necesitarás ajustar nada de lo que ya viene por defecto. Configura tu hostname como el nombre asignado a tu IP de Internet y sendmail hará el resto. Si tienes direcciones IP asignadas dinamicamente y usas una conexión ppp a Internet, probablemente tendrás un buzón en el servidor de correo de tu proveedor. Supongamos que el dominio de tu proveedor es myisp.com, y tu nombre de usuario es user. Supongamos también que has llamado a tu máquina bsd.home y que tu proveedor te ha indicado que uses la máaquina relay.myISP.com como mail realy (gateway). Para poder recoger el correo de tu buzón necesitarás instalar un agente de recogida de correo. Fetchmail es una buena opción ya que soporta diferentes protocolos. Normalmente se usa POP3. Puedes recoger automaticamente tu correo al realizar la conexión añadiendo la siguiente línea en el fichero /etc+ppp/ppp.linkup: MYADDR: !bg su user -c fetchmail Asumimos que tienes una cuenta para user en bsd.home. En el home directory de user en bsd.home, crea el fichero .fetchmailrc: poll myISP.com protocol pop3 fetchall pass MySecret; No hace falta decir que este fichero no debe ser "leible" por nadie excepto user ya que contiene el password MySecret. Para enviar el correo con la cabecera from: correcta, debes decirle al sendmail que use user@myISP.com en lugar de user@bsd.home. También deberías decirle al sendmail que envie todo el correo saliente a traves de relay.myISP.com, para una transmisión mucho más rápida. El siguiente fichero .mc debe ser suficiente: VERSIONID(`bsd.home.mc version 1.0') OSTYPE(bsd4.4)dnl FEATURE(nouucp)dnl MAILER(local)dnl MAILER(smtp)dnl Cwlocalhost Cwbsd.home CwmyISP.com MASQUERADE_AS(`myISP.com')dnl FEATURE(allmasquerade)dnl FEATURE(masquerade_envelope)dnl FEATURE(nocanonify)dnl FEATURE(nodns)dnl define(SMART_HOST, `relay.myISP.com') DmmyISP.com define(`confDOMAIN_NAME',`myISP.com')dnl define(`confDELIVERY_MODE',`deferred')dnl Mira en la sección anterior para los detalles de como convertir este fichero .mc en un sendmail.cf. No te olvides de rearrancar sendmail después de cada actualización del fichero sendmail.cf. Olvidé el password de Root!! Tranquilo!!!. Simplemenre rearranca tu sistema, teclea -s en el prompt de arranque para entrar en modo monousuario. En la pregunta sobre el shell a usar, pulsa ENTER. Aparecerá un prompt #. Teclea mount -u / para remontar tu sistema de ficheros en modo de lectura/escritura y a continuación teclea mount -a para montar todos los sistemas de ficheros. Ejecura passwd root para cambiar el password de root. Teclea exit para continuar normalmente con el arranque. ¿Cómo mantengo el control sobre Control-Alt-Delete? Edita el mapa de teclado que estás usando para la cónsola y reemplaza las palabras boot por nop. El mapa de teclado por defecto es /usr/share/syscons/keymaps/us.iso.kbd . Por supuesto si usas otro mapa de teclado adecuado a tu país, tendrías que editarlo. ¿Cómo reformateo ficheros de texto DOS a UNIX? Simplemente usando este comando de perl: perl -i.bak -npe 's/\r\n/\n/g' file ... file es el fichero a procesar. La modificación se hace en el propio fichero dejando el original grabado con extensión .bak. Alternativamente puedes usar el comando tr(1) tr -d '\r' < dos-text-file > unix-file dos-text-file es el fichero que contiene el texto DOS mientras que unix-file contendrá la salida convertida. Este sistema puede ser más rápido que usar perl. ¿Cómo puedo hace "kill" de procesos por nombre? Usa killall(1). ¿Porque el su no me dejar ser root al no estar en el ACL? El error proviene de sistema del autentificación distribuida Kerberos. El problema no es fatal pero si molesto. Puedes ejecutar el comando su con la opcion -K, o desinstalar Kerberos como se describe en la siguiente sección. ¿Cómo desinstalo Kerberos? Para eliminar Kerberos del sistema, reinstala la distribución bin de la release que estés usando. Si tienes el CDROM, puedes montar el cd (asumiremos que esta en /cdrom) y ejecutar: cd /cdrom/bin ./install.sh ¿Cómo añado pseudoterminales a mi sistema? Si tienes muchos usuarios de telnet, ssh, X, o de cónsola, probablemente terminarás desbordando el número de pseudoterminales del sistema. Aquí tienes como añadir más: Compila e instala un nuevo kernel com la línea pseudo-device pty 256 en el fichero de configuración. Ejecuta el comando # cd /dev # ./MAKEDEV pty{1,2,3,4,5,6,7} para crear 256 nodos de dispositivo para los nuevos terminales. Edita el fichero /etc/ttys y añade una línea para cada uno de los 256 terminales. Estas líneas deben seguir la estructura de las entradas existentes, algo como esto: ttyqc none network El órden de la designación de letras es tty[pqrsPQRS][0-9a-v], usando una expresión regular. Rebota el sistema con el nuevo kernel, y lo tendrás listo para funcionar. ¿Cómo puedo releer el fichero /etc/rc.conf y relanzar /etc/rc sin tener que hacer un reboot? Entra en modo monousuario y a continuación vuelve a modo multiusuario. En la consola haz: # shutdown now (Nota: sin -r o -h) # return # exit ¿Qué es un sandbox? Sandbox es un término de seguridad. Puede significar dos cosas: Un proceso que es situado en el interior de una serie de muros virtuales diseñados como prevención e imposibilitar el acceso al sistema principal en caso de que alguien comprometa la seguridad de ese proceso. Se dice que el proceso es capaz de "jugar" entre los muros. Esto significa que se supone que nada de lo que haga el proceso referente a la ejecución de código, puede ser capaz de romper los muros, así no es necesario hacer auditorías detalladas de su código para poder conocer todo lo referente a los riesgos de seguridad del proceso. Los muros pueden, por ejemplo, un userid. Esta es la definición usada en las páginas man de seguridad y del programa named. Veamos como ejemplo el servicio 'ntalk' (consultar /etc/inetd.conf). Este servicio solía ejecutarse con el userid de root. Ahora se ejecuta con el userid tty. El usuario tty esta diseñado para ser usado como usuario sandbox, dificultando así la tarea de un intruso que haya conseguido penetrar en el sistema a través del servicio ntalk. De esta manera, el intruso solo puede afectar a los servicios, programas o procesos propiedad del usuario tty. Un proceso que se ha situado en el interior de una simulación de la máquina. Esto es más hard-core. Básicamente, significa que alguien que sea capaz de penetrar en el proceso, creerá que ha penetrado en el sistema principal, pero de hecho, ha penetrado en una simulación de esa máquina y no puede modificar ningún dato real. El sistema más común de conseguir esto es crear un entorno simulado en un subdirectorio y ejecutar los procesos en ese subdirectorio mediante chroot (la raiz "/" para ese proceso es este directorio, no la raiz "/" real del sistema). Otro sistema habitual es montar un sistema de ficheros de solo lectura y a continuació,n crear un nivel de sistema de ficheros por encima del anterior que dé al proceso la sensación de encontrarse en un sistema de ficheros de lectura/escritura. El proceso creerá que es capaz de escribir esos ficheros, pero sólo el proceso ve los efectos; otros procesos del sistema no ven absolutamente nada. Se intenta crear este tipo de sandbox totalmente transparentes para que el usuario (o intruso) no se de cuenta que está en él. UNIX implementa dos tipos de sandboxes. Uno es a nivel de procesos, y el otro es a nivel de usuarios (userid). Cada proceso UNIX es totalmente independiente de cualquier otro proceso UNIX. Un proceso no puede modificar el espacio de direcciones de otro. Es diferente a los sistemas Windows en los que un proceso puede sobreescribir facilmente el espacio de direcciones de otro proceso, probocando una caida de la máquina. Un proceso UNIX es propiedad de un userid determinado. Si el userid no es el usuario root, éste solo podrá acceder a los procesos de su propiedad, evitando la intrusión en procesos ajenos. El userid también se usa como sistema de protección para datos grabados en disco. El sistema X Windows y las cónsolas virtuales Quiero ejecutar las X, ¿cómo lo hago? La manera más fácil es, simplemente, especificar que quieres usar las X durante el proceso de instalación. Entonces, lee y sigue la documentación de la herramienta xf86config, la cual te ayuda a configurar el sistema XFree86 sobre las características propias de tu sistema (tarjeta de vídeo , ratón, etc). Quizás te interesaría investigar y probar el servidor Xaccel, disponible a un precio muy razonable. Mira en la sección o para más detalles. ¿Porqué no funciona mi ratón con las X? Si estás usando syscons (el driver de cónsola por defecto), puedes configurar FreeBSD para soportar un ratón en cada cónsola virtual. Para evitar conflictos con las X, syscons soporta un dispositivo virtual llamado /dev/sysmouse. Todos los eventos recibidos desde el mouse real son escritos en el dispositivo sysmouse, usando el protocolo MouseSystems. Si quieres usar el ratón en una o más cónsolas virtuales y usar las X, te recomendamos la siguiente configuración: /etc/rc.conf: moused_type=ps/2 # or whatever your actual type is moused_port=/dev/psm0 # or whatever your real port is moused_flags= /etc/XF86Config Section Pointer Protocol "MouseSystems" Device "/dev/sysmouse" ..... Hay gente que prefiere usar /dev/mouse bajo X. Para que esto funcione, /dev/mouse debe estar lincado a /dev/sysmouse: # cd /dev # rm -f mouse # ln -s sysmouse mouse Los menus de X Window y cajas de diálogo no funcionan bien. Intenta desactivar la tecla Num Lock. Si tu tecla Num Lock está activada por defecto al arrancar el sistema, deberías añadir la siguiente línea en la sección Keyboard del fichero XF86Config. # Let the server do the NumLock processing. This should only be # required when using pre-R6 clients ServerNumLock ¿Qué es una cónsola virtual y como creo más? Las cónsolas virtuales te permiten tener sesiones simultáneas en la misma máquina sin necesidad de tener montajes complicados como una red o ejecución de X. Cuando el sistema arranca, mostrará el prompt de login en el monitor una vez finalizado el mismo. Puedes entonces teclear tu login y password y empezar a trabajar (o jugar), en la primera cónsola virtual. En algun momento, es probablemente querras iniciar otra sesion , por ejemplo, para mirar la documentación de un programa que estás ejecutando, o para leer el correo mientras esperas que termine una sesión ftp que tienes establecida. Solo haz Alt-F2 y encontrarás un prompt un prompt de login esperandote en la segunda "cónsola virtual". Cuando quieras volver a la sesión original, sólo tienes que pulsar Alt-F1. La instalación por defecto de FreeBSD tiene tres cónsolas virtuales activadas, y Alt-F1, Alt-F2 y Alt-F3 cambian entre ellas. Para activar mas cónsolas virtuales, edita /etc/ttys y añade tantas entradas como cónsolas virtuales quieras a partir de ttyv4, después del comentario "Virtual Terminals": # Edit the existing entry for ttyv3 in /etc/ttys and change # "off" to "on". ttyv3 "/usr/libexec/getty Pc" cons25 on secure ttyv4 "/usr/libexec/getty Pc" cons25 on secure ttyv5 "/usr/libexec/getty Pc" cons25 on secure ttyv6 "/usr/libexec/getty Pc" cons25 on secure ttyv7 "/usr/libexec/getty Pc" cons25 on secure ttyv8 "/usr/libexec/getty Pc" cons25 on secure ttyv9 "/usr/libexec/getty Pc" cons25 on secure ttyva "/usr/libexec/getty Pc" cons25 on secure ttyvb "/usr/libexec/getty Pc" cons25 on secure Utiliza tantas cónsolas como quieras o necesites. Cuantas más cónsolas tengas, más recursos utilizas; esto puede ser importante si tienes 8MB de RAM o menos. También te puede interesar cambiar el modo secure a insecure. NOTA IMPORTANTE si quieres usar un servidor X DEBES dejar, al menos, un terminal virtual sin usar (o desactivado). La manera más fácil de desactivar una cónsola es "apagarla". Por ejemplo, para desactivar el terminal 12, cambia esto: ttyvb "/usr/libexec/getty Pc" cons25 on secure por esto: ttyvb "/usr/libexec/getty Pc" cons25 off secure Si tu teclado solo tiene 10 teclas de función, tendras que acabar con: ttyv9 "/usr/libexec/getty Pc" cons25 off secure ttyva "/usr/libexec/getty Pc" cons25 off secure ttyvb "/usr/libexec/getty Pc" cons25 off secure (También puedes, simplemente, borrar estas líneas.) Una vez has editado el fichero /etc/ttys, el siguiente paso es asegurarte de que tienes suficientes dispositivos de terminales virtuales. La manera más fácil de hacerlo es: # cd /dev # ./MAKEDEV vty12 # For 12 devices A continuación, la manera más fácil de activar las cónsolas virtuales es rearrancar el sistema. Si, realmente no quieres rearrancarlo, puedes para el servidor de X Window y ejecutar (como root): kill -HUP 1 Es imperativo que pares el servidor de X Window si está funcionando, antes de ejecutar este comando. Si no lo haces, parecerá que tu sistema está parado/colgado después de ejecutar el comando kill. ¿Cómo accedo a las cónsolas virtuales desde X? Si la cónsola está actualmente mostrando X Window, puedes usar Ctrl-Alt-F1, etc, para cambiar entre las cónsolas virtuales. Ten en cuenta que una vez pases de una cónsola X Window a un terminal virtual, solo tienes que usar la tecla Alf- para volver a conmutar entre terminales virtuales o volver a las X. No necesitas pulsar la tecla Ctrl. Si usas la tecla Ctrl para volver a las X en alguna de las releases antiguas, puedes encontrarte que la cónsola de texto está bloqueada. Pulsa la tecla Ctrl de nuevo para desbloquearla. ¿Cómo arranco XDM desde el fichero /etc/ttys? Existen dos escuelas sobre como arrancar el xdm. Una escuela arranca el xdm desde el fichero /etc/ttys usando el ejemplo dado, mientras que la otra simplemente arranca el xdm desde el fichero rc.local o desde un script X.sh en /usr/local/etc/rc.d. Ambos métodos son igualmente válidos, y uno puede funcionar en situaciones que el otro no. En ambos casos el resultado es el mismo: el sistema X Window lanzará un prompt de login gráfico. El método ttys tiene la ventaja de documentar en que vty se lanzarán las X pasando la responsabilidad de rearrancar el servidor X al hacer el logout al proceso init. El método rc.local hace más fácil terminar con el proceso xdm en caso de problemas con el servidor X. Si arrancamos desde rc.local, xdm debe ser arrancado sin argumentos (como un daemon). xdm debe arrancar DESPUES del proceso getty, o ambos entrarán en conflicto bloqueando la cónsola. La mejor manera de evitar este problema es tener un script que retrase el arranque de xdm durante 10 segundos. Una versión previa de esta FAQ decía que debías añadir el terminal virtual usado por las X al fichero /usr/X11R6/lib/X11/xdm/Xservers. Esto no es necesario: las X usarán el primer terminal virtual que encuentre libre. Cuando arranco xconsole obtengo "Couldn't open console". Si arrancas las X con startx, los permisos en /dev/console no serán cambiados, resultando en cosas como que xterm -C y xconsole no funcionen. Esto se debe a la manera en que son fijados los permisos de la cónsola. En un sistema multiusuario, podemos no querer que cualquier usuario pueda escribir en la cónsola de sistema. Para usuarios que realizan logins directamente desde una máquina con un VTY, existe el fichero fbtab para resolver estos problemas. Asegúrate de que existe al menos una línea como esta sin comentar: /dev/ttyv0 0600 /dev/console Está en /etc/fbtab y asegurará que cualquiera que realice un login en /dev/ttyv0 será el propietario de la cónsola. Mi ratón PS/2 no funciona bien en X. Tu ratón y el driver de ratón quizás estén fuera de sincronización. En versiones 2.2.5 y anteriores, conmutando entre sesiones X y sesiones de terminales virtuales, podía provocar una desincronización. Si el problema ocurre muy amenudo, deberías añadir la siguiente opción en el fichero de configuración de tu kernel y recompilarlo. options PSM_CHECKSYNC Mira la sección si no tienes experiencia en compilar nuevos kernels. En versiones 2.2.6 y posteriores, el chequeo de sincronización es realizado de otra manera, y es estandard en el driver de ratón PS/2. Aun así, en casos extraños puedes llegar a ver mensajes de error de sincronización como este: psmintr: out of sync (xxxx != yyyy) y parecer que tu ratón no funciona adecuadamente. Si esto ocurre, desactiva el código de chequeo de sincronización poniendo los flags del driver PS/2 a 0x100. Entra en UserConfig poniendo la opción en el prompt de arranque: boot: -c Entonces, en la línea de comando de UserConfig, teclea: UserConfig> flags psm0 0x100 UserConfig> quit Mi ratón PS/2 de MouseSystems no funciona. Hemos recibido reportes de que algunos modelos de ratones PS/2 de MouseSystems solo trabajan si están configurados en modo "alta resolución". Desafortunadamente no hay solución para versiones 2.0.x y 2.1.x. En versiones 2.2.x, aplica el siguiente parche en /sys/i386/isa/psm.c y compila un nuevo kernel. diff -u psm.c.orig psm.c @@ -766,6 +766,8 @@ if (verbose >= 2) log(LOG_DEBUG, "psm%d: SET_DEFAULTS return code:%04x\n", unit, i); + set_mouse_resolution(sc->kbdc, PSMD_RES_HIGH); + #if 0 set_mouse_scaling(sc->kbdc); /* 1:1 scaling */ set_mouse_mode(sc->kbdc); /* stream mode */ En versiones 2.2.6 o posteriores, especifica el flag 0x04 al driver PS/2 para poner el ratón en modo de alta resolución. Entra en UserConfig: boot: -c y en la línea de comandos teclea: UserConfig> flags psm0 0x04 UserConfig> quit Mira en la sección anterior para posibles causas de problemas con los ratones. Cuando compilo una aplicación X. imake no puede encontrar el fichero imake.tmpl. ¿Dónde está? Imake.tmpl es parte del package Imake, una aplicación estandard de compilación de X. Tanto Imake como headers y otros ficheros necesarios para compilar aplicaciones X están en la distribución de programación X. Puedes instalarla desde el sysinstall o manualmente desde los ficheros de la distribución X. ¿Cómo invierto los botones del ratón? Ejecuta el comando xmodmap -e "pointer = 3 2 1" desde el fichero .xinitrc o .xsession. ¿Cómo instalo un "splash screen" y donde los consigo? Justo antes de la publicación de FreeBSD 3.1 se añadió una nueva característica que permite mostrar "splash screens" durante los mensajes de arranque del sistema. Los "splash screen" deben ser un bitmap de 256 colores (*.BMP) o ZSoft PCX (*.PCX). Además, deben tener una resolución de 320x200 o inferior para poder trabajar en controladoras VGA estándars. Si se compila el soporte VESA en el kernel, se pueden usar bitmaps de hasta 1024x768. Recordar que el soporte de VESA requiere que la opción VM86 sea compilada en el kernel. El soporte actual de VESA puede ser compilado directamente en el kernel con la opción de configuración VESA o cargando el módulo kld VESA durante el arranque. Para usar un "splash screen" necesitas modificar los archivos de inicio que controlan el proceso de arranque de FreeBSD. Estos archivos cambiaron con FreeBSD 3.2, así que ahora existen dos maneras de cargar un "splash screen": FreeBSD 3.1 El primer paso es encontrar una versión bitmap de tu "splash screen". La release 3.1 sólo soporta bitmaps de Windows. Una vez hayas elegido tu "splash screen" copiala en /boot/splash.bmp. A continuación necesitas tener un archivo /boot/loader.rc que contenga las siguientes líneas: load kernel load -t splash_image_data /boot/splash.bmp load splash_bmp autoboot FreeBSD 3.2+ Además de soportar los "splash screens" en formato PCX, FreeBSD 3.2 incluye un mejor sistema de configuración del proceso de arranque. Si quieres, puedes usar el método señalado para FreeBSD 3.1. Si lo haces, y quieres usar PCX, reemplaza splash_bmp con splash_pcx. Si por el contrario quieres usar la nueva configuración de arranque, necesitas crear un archivo /boot/loader.rc que contenga las siguientes líneas: include /boot/loader.4th start y otro archivo /boot/loader.conf que contenga lo siguiente: splash_bmp_load="YES" bitmap_load="YES" Esto asume que estás usando /boot/splash.bmp como tu "splash screen". Si quieres usar un archivo PCX, copialo a /boot/splash.pcx, crea un archivo /boot/loader.rc como se ha indicado anteriormente, y crea un /boot/loader.conf que contenga: splash_pcx_load="YES" bitmap_load="YES" bitmap_name="/boot/splash.pcx" Ahora todo lo que necesitas es un "splash screen". Puedes navegar por una inmejorable galería en http://www.cslab.vt.edu/~jobaldwi/splash/. Networking ¿Dónde puedo encontrar información sobre "diskless booting"? "Diskless booting" significa que una máquina FreeBSD sea arrancada sobre una red, y lea los ficheros necesarios de un servidor y no desde su disco duro. Para más detalles, por favor, lee la sección diskless booting del manual ¿Puede una máquina FreeBSD ser usada como router dedicado? Los estandards de Internet y las buenas prácticas de ingeniería nos prohiben proveer el forward de paquetes en la distribución estandard. Aun así, puedes activar esta opción cambiando la siguiente variable a YES en el fichero rc.conf: gateway_enable=YES # Set to YES if this host will be a gateway Esta opción pondrá la variable sysctl net.inet.ip.forwarding a 1. En muchos casos también necesitarás ejecutar un proceso de rutado para indicar la existencia en la red de tu router; FreeBSD incluye el daemon estandard de rutado BSD routed , aunque en situaciones más complejas quizás quieras usar GaTeD disponible por ftp en ftp.gated.Merit.EDU. Es nuestro deber advertirte que estando FreeBSD configurado de esta manera, no cumple completamente con todos los estandares de routers de Internet, pero es suficiente para uso ordinario. ¿Puedo conectar mi Win95 con Internet a través de FreeBSD? Típicamente, la gente que pregunta esto tiene dos pc's en casa, uno con FreeBSD y otro con Win95; la idea es usar FreeBSD para conectar a Internet y luego ser capaz de acceder a Internet desde el ordenador con Windows 95. Este es realmente un caso especial de la pregunta anterior. Hay un útil documento disponible que explica como configurar FreeBSD como un Router PPP NOTA: Esto requiere, al menos, tener dos direcciones IP fijas disponibles, y posiblemente tres o más, dependiendo del número de máquinas que quieras conectar. Como alternativa, si no tienes una dirección IP fija, puedes usar una de las subredes privadas e instalar un proxy como SQUID y The TIS firewall toolkit en tu FreeBSD. Mira también la sección . ¿Por que falla la compilación del último BIND del ISC? Hay un conflicto entre el fichero cdefs.h incluido en la distribución de BIND y el distribuido con FreeBSD. Solo tienes que borrar compat/include/sys/cdefs.h. ¿Soporta FreeBSD SLIP y PPP? Sí. Mira las paginas man de slattach, sliplogin, pppd y ppp. pppd y ppp soportan conexiones entrantes y salientes. Sliplogin trabaja exclusivamente con conexiones entrantes y slattach con conexiones salientes. Estos programas son descritos en las siguientes secciones del manual: Handbook entry on SLIP (server side) Handbook entry on SLIP (client side) Handbook entry on PPP (kernel version) Handbook entry on PPP (user-mode version) Si solo tienes acceso a Internet a traves de un "shell account", quizás quieras mirar el package slirp. Puede darte un (limitado) acceso a servicios como ftp y http. ¿Soporta FreeBSD NAT o Masquerading? Si tienes una red local (una o más máquinas), pero solo se te ha asignado una única dirección IP desde tu proveedor de Internet (o si recibes las direcciones de manera dinámica), te interesa mirar el programa natd. Natd te permite conectar una red entera a Internet usando solamente una dirección IP. El programa ppp tiene una funcionalidad similar incluida, a través del parámetro -alias. La librería alias es usada en ambos casos. No puedo crear el dispositivo /dev/ed0! En el sistema de trabajo de red de Berkeley, los interfaces de red solo son directamente accesibles por el código del kernel. Por favor, mira el fichero /etc/rc.network y los man de los programas de red allí mencionados. Si esto te deja totalmente confundido, entonces tendrías que conseguir algun libro de administración de red de cualquier sistema operativo basado en BSD; con algunas excepciones significativas, administrar el sistema de red en FreeBSD es básicamente igual que en SunOS 4.0 o Ultrix. ¿Cómo puedo configurar alias de ethernets? Añade ``netmask 0xffffffff'' en el comando ifconfig como el siguiente: ifconfig ed0 alias 204.141.95.2 netmask 0xffffffff ¿Cómo hago para usar el otro puerto de una 3C503? Si quieres usar los otros puertos, tendrás que especificar parámetros adicionales en el comando ifconfig. El puerto por defecto es link0. Para usar el puerto AUI en lugar del BSN, usa link2. Estos flags tendrían que ser especificados usando las variable ifconfig_* en el fichero /etc/rc.conf. Tengo problemas con NFS desde/hacia FreeBSD. Algunas tarjetas de red son mejores que otras y algunas veces pueden causar problemas con aplicaciones de uso intensivo de red como NFS Mira la entrada en el manual de NFS para mas información sobre este tema. ¿Porqué no puedo hacer NFS-mount desde Linux? Algunas versiones de NFS para Linux solo aceptan peticiones para montar unidades hechas desde un puerto privilegiado; intenta: mount -o -P linuxbox:/blah /mnt ¿Porqué no puedo hacer NFS-mount desde una Sun? Las estaciones de trabajo Sun con SunOS 4.x solo aceptan peticiones de montar unidades hechas desde puertos privilegiados; intenta mount -o -P sunbox:/blah /mnt Tengo problemas usando ppp contra máquinas NeXTStep. Intenta desactivar las extensiones TCP en url="http://www.FreeBSD.org/cgi/man.cgi?rc.conf" name="/etc/rc.conf"> cambiando la siguiente variable a NO: tcp_extensions=NO Las máquinas Xylogic's Annex también tienen este problema, por lo que tienes que hacer el mismo cambio para conectar con ellas. ¿Cómo activo soporte de IP multicast? Las operaciones multicast están totalmente soportadas en FreeBSD 2.0 y superiores. Si quieres usar tu máquina como router multicast, necesitarás cargar el módulo de kernel ip_mrouted_mod y ejecutar el programa mrouted. Para mas información: Producto Descripcion Donde --------------- ----------------------- --------------------------------------- faq.txt Mbone FAQ ftp.isi.edu:/mbone/faq.txt imm/immserv IMage Multicast ftp.hawaii.edu:/paccom/imm.src.tar.Z for jpg/gif images. nv Network Video. ftp.parc.xerox.com: /pub/net-reseach/exp/nv3.3alpha.tar.Z vat LBL Visual Audio Tool. ftp.ee.lbl.gov: /conferencing/vat/i386-vat.tar.Z wb LBL White Board. ftp.ee.lbl.gov: /conferencing/wb/i386-wb.tar.Z mmcc MultiMedia Conference ftp.isi.edu: Control program /confctrl/mmcc/mmcc-intel.tar.Z rtpqual Tools for testing the ftp.psc.edu:/pub/net_tools/rtpqual.c quality of RTP packets. vat_nv_record Recording tools for vat ftp.sics.se:archive/vat_nv_record.tar.Z and nv. ¿Qué tarjetas de red están basadas en el chipset DEC PCI? Aquí tienes una lista hecha por Glen Foster: Fabricante Modelo ---------------------------------------------- ASUS PCI-L101-TB Accton ENI1203 Cogent EM960PCI Compex ENET32-PCI D-Link DE-530 Dayna DP1203, DP2100 DEC DE435, DE450 Danpex EN-9400P3 JCIS Condor JC1260 Linksys EtherPCI Mylex LNP101 SMC EtherPower 10/100 (Model 9332) SMC EtherPower (Model 8432) TopWare TE-3500P Zynx ZX342 ¿Porqué tengo que usar el FQDN para hosts en mi servidor? Probablemente el host estará en un dominio diferente; por ejemplo, si estás en el dominio foo.bar.edu y quieres encontrar un host llamado "mumble" en el dominio bar.edu, tendrás que llamarlo por su nombre de dominio, "mumble.bar.edu", en vez de solo "mumble". Tradicionalmente, esto era permitido por los resolvers BIND BSD. La versión actual de bind que se incluye en FreeBSD no resuelve abreviaciones de nombres para hosts fuera de nuestro dominio. ``Permission denied'' para todas las operaciones de red. Si tienes el kernel compilado con la opción IPFIREWALL . debes tener en cuenta que la política por defecto es denegar explícitamente todos los paquetes que no están explícitamente permitidos. Si involuntariamente has desconfigurado el firewall de tu sistema, puedes restaurar la operatibilidad de la red tecleando el siguiente comando como usuario root: ipfw add 65534 allow all from any to any Para mas información en la configuración del firewall de FreeBSD, mira la sección del manual. ¿Cuanto tiempo retrasa IPFW el tráfico? Esta respuesta depende mucho en las reglas definidas y en la versión del procesador. Para la mayoría de aplicaciones que tienen que ver con la ethernet y pequeñas reglas, la respuesta es, prácticamente nada. Aquí tienes una lista de cosas a tener en cuenta para crear reglas de filtrado eficientes: Poner una regla "established" al inicio para manejar la mayoría de trafico TCP. No pongas ninguna regla allow tcp antes de esta. Pon las reglas más usadas antes de las menos usadas (sin modificar la permisividad del firewall). Puedes ver cuales son las reglas más usadas examinando los contadores de paquetes con la orden ipfw -a l. ¿Cómo puedo redirigir peticiones de una máquina a otra?<(/heading> Puedes redirigir peticiones FTP (y otros servicios) con el package "socket", disponible en la colección de ports categoría "sysutils". Simplemente tienes que reemplazar la línea del servicio correspondiente en el fichero /etc/services de la siguiente manera: ftp stream tcp nowait nobody /usr/local/bin/socket socket ftp.foo.com ftp donde "ftp.foo.com" y "ftp" son la máquina y puerto de destino. ¿Dónde puedo conseguir una herramienta de control de ancho de banda?. Existen dos herramientas de control de ancho de banda para FreeBSD. ALTQ es gratis; Bandwidth Manager de Emerging Technologies es un producto comercial. ¿Porqué aparece "/dev/bpf0: device not configured"? El driver Berkeley Packet Filter (bpf) necesita ser activado para ejecutar programas que lo utilizan. Añade esto al fichero de configuración de tu kernel y crea uno nuevo: pseudo-device bpfilter # Berkeley Packet Filter A continuación, después de rebotar tendrás el dispositivo. Esto puede hacerse entrando en el directorio /dev y ejecutando el siguiente comando: # sh MAKEDEV bpf0 Por favor, mira la entrada correspondiente en el handbook para más información sobre la creación de dispositivos. PPP El ppp no funciona. ¿Qué estoy haciendo mal? Primero deberías leer el man de ppp y la sección de PPP del handbook. Activa los logs con el comando set log Phase Chat Connect Carrier lcp ipcp ccp command Este comando debería ser tecleado en el prompt del ppp o incluirse en el fichero de configuración /etc/ppp/ppp.conf (al inicio de la sección default es el mejor lugar). Asegurate que el fichero url="http://www.FreeBSD.org/cgi/man.cgi?syslog.conf" name="/etc/syslog.conf"> contiene las siguientes líneas: !ppp *.* /var/log/ppp.log y que el fichero /var/log/ppp.log existe. Puedes encontrar mucha información sobre lo que está pasando en las conexiones con el fichero de log. Si tu versión de ppp no entiende el comando "set log" deberías bajarte la última versión. Esta compilará sin problemas en FreeBSD 2.1.5 y superiores. Ppp se bloquea al ejecutarlo Esto ocurre normalmente por que no se puede resolver el nombre de la máquina. La mejor manera de solucionar este problema es asegurarse que el sistema use en primer lugar el archivo /etc/hosts para hacer la resolución de nombres. Para ello, basta con editar el archivo /etc/host.conf y poner la línea hosts en primer lugar. A continuación, simplemente hay que añadir una línea para la máquina local en el archivo /etc/hosts. Si no existe una red local, modificar la línea localhost: 127.0.0.1 foo.bar.com foo localhost Añadir otra línea para la máquina local. Consultar las páginas man relevantes para más detalles. Ahora se debería poder ejecutar el siguiente mandato de forma satisfactoria ping -c1 `hostname`. PPP no quiere marcar en modo -auto Primero, asegúrate de tener una ruta por defecto. Ejecutando el comando url="http://www.FreeBSD.org/cgi/man.cgi?netstat"> name="netstat -rn"> deberías ver dos entradas como estas: Destination Gateway Flags Refs Use Netif Expire default 10.0.0.2 UGSc 0 0 tun0 10.0.0.2 10.0.0.1 UH 0 0 tun0 Esto es asumiendo que hayas usado las direcciones del manual, la página man o del fichero de ejemplo ppp.conf.sample. Si no tienes una ruta por defecto, puede ser por que estés usando una versión antigua de ppp que no entiende la palabra HISADDR en el fichero ppp.conf. Si tu versión de ppp es de antes de FreeBSD 2.2.5, cambia la línea add 0 0 HISADDR por otra diciendo add 0 0 10.0.0.2 Otra razón para la inexistencia de la ruta por defecto es que sin darte cuenta hayas creado un default router en el fichero /etc/rc.conf (anteriormente llamado /etc/sysconfig) y hayas omitido la línea delete ALL en el fichero ppp.conf. Si es este el caso vuelve a la sección configuración final del sistema en el handbook. ¿Qué significa "No route to host"? Este error se debe normalmente a la falta de la sección MYADDR: delete ALL add 0 0 HISADDR en el fichero /etc/ppp/ppp.linkup. Esto es solo necesario si tienes una direccion IP dinámica o no sabes la dirección de tu gateway. Si estás usando el modo interactivo, puedes teclear lo siguiente despues de entrar en packet mode: delete ALL add 0 0 HISADDR Pásate por la sección PPP y direcciones IP dinámicas del handbook para más información. Mi conexión se corta pasados 3 minutos El timeout de ppp por defecto es de 3 minutos. Se puede ajustar con la línea: set timeout NNN Donde NNN es el número de segundos de inactividad antes de cerrar la conexión. Si NNN es 0, la conexión no se cerrará nunca por timeout. Es posible poner este comando en el fichero ppp.conf, o teclearla en el prompt del modo interactivo. También es posible ajustarla en cualquier momento mientras la conexión esté activa conectando al socket del servidor ppp usando telnet o pppctl. Leete el man de ppp para más detalles. Mi conexión se corta en situaciones de carga Si tienes la opción Link Quality Reporting (LQR) configurada es posible que demasiados paquetes LQR se pierdan entre tu máquina y el remoto. PPP deduce que la línea es mala y corta la conexión. En versiones anteriores a la 2.2.5 de FreeBSD, LQR estaba activado por defecto. Ahora está desactivado por defecto. LQR puede ser activado con la línea disable lqr Mi conexión se corta en periodos aleatorios Algunas veces, en líneas telefónicas de baja calidad o con mucho ruido, o líneas con la opción de llamada en espera activada, el módem corta la conexión por que piensa (erróneamente) que ha perdido la portadora. Hay una opción en muchos modems para determiar la tolerancia a pérdidas temporales de portadora. En un USR Sportster por ejemplo, esta es medida por el registro S10 en décimas de segundo. Para hacer que tu módem sea más resistente, puedes añadir la siguiente secuencia "send-expect" a la cadena de llamada: set dial "...... ATS10=10 OK ......" Mira en el manual de tu módem para más detalles. No ocurre nada después del mensaje Login OK En versiones anteriores a FreeBSD 2.2.5, una vez estaba la conexión establecida, ppp espera a que el remoto inicie la negociación LCP (Line Control Protocol). Muchos proveedores de Internet no iniciarán la negociación esperando que sea el cliente el que lo haga. Para forzar al ppp a iniciar el LCP, usa la siguiente línea: set openmode active Nota: Normalmente no hay problemas si las dos partes inician la negocioacion LCP, ya que el modo abierto (open mode) está activo por defecto. De todas maneras, la siguiente sección explica cuando pueden haber problemas. Sigo teniendo errores sobre el parámetro magic Ocasionalmente, justo después de la conexión, puedes ver mensajes en el log referentes a "magic number is the same". Algunas veces, estos mensajes son inofensivos, y otras veces uno de los dos extremos finaliza la conexión. Algunas implementaciones de ppp no pueden solucionar este problema, y, aunque parezca que la conexión está establecida, verás repetidas peticiones y aceptaciones de configuración en el fichero de log hasta que una de las dos partes cierra la conexión. Esto ocurre normalmente en servidores con disco lentos que tienen problemas para gestionar eficientemente los puertos serie. También existen informes de problemas en conexiones mediante slip. La razón es que en el tiempo que tarda el servidor en salir del getty y ejecutar el ppp, el cliente manda los paquetes de inicio LCP. Al estar el ECHO todavía activo en el puerto del servidor, el cliente ppp lo único que ve son sus propios paquetes "reflejados" por el servidor. Una parte de la negociación LCP es establecer un número mágico para cada una de los dos extremos de las conexiones para que los "reflejos" puedan ser detectados. El protocolo dice que cuando el remoto intenta negociar el mismo "magic number", se debe enviar un NAK para seleccionar un nuevo "magic number". Durante el periodo de tiempo que el servidor tiene el ECHO activado en el puerto, el cliente ppp envía paquetes LCP, ve que el mismo "magic" vuelve en el paquete reflejado y lo da como no válido (envia NAK). Este todavía ve el paquete reflajado con NAK (lo que significa que el ppp debe cambiar su "magic"). Esto produce un enorme número de cambios de "magic number" que son introducidos en el buffer tty del servidor. Tan pronto como el ppp arranca en el servidor, es bombardeado con cambios de "magic numbers" e inmediatamente decide que ya ha realizado el número suficiente de negociaciones LCP y corta la conexión. Mientras tanto, el cliente, que ya no ve los paquetes reflejados, recibe sin problemas la desconexión del servidor y también cierra la conexión. Esto puede ser resuelto permitiendo que el remoto inicie la negociación, poniendo la siguiente línea en el fichero ppp.conf: set openmode passive Esto indica al ppp que espere a que el servidor comience la negociación LCP. Es posible que algunos servidores nunca inicien la negociación. Si este es el caso, puedes hacer algo como: set openmode active 3 Esto le indica al ppp que sea pasivo durante 3 segundos, y despues comience a enviar peticiones LCP. Si el remoto envía peticiones durante este periodo, ppp responderá inmediatamente sin esperar los 3 segundos establecidos. Las negociaciones LCP continuan hasta que se cierra la conexión Existe actualmente un problema de implementación en ppp en la que no asocia las respuestas LCP, CCP & IPCP con sus peticiones originales. Como resultado, si una implementación ppp es mas lenta durante 6 segundos que la remota, la remota enviará dos peticiones de configuración LCP adicionales. Esto es fatal. Considera dos implementaciones, A y B. A empieza a enviar peticiones LCP inmediatamente después de conectar y B tarda 7 segundos en arrancar. Cuando B arranca, A ha enviado 3 peticiones LCP. Estamos asumiendo que la línea tiene el ECHO desactivado, si no, veriamos los problemas de "magic number" descritos en el apartado anterior. B envía un REQ, y a continuación envía un ACK al primer REQ de A. Esto resulta en que A entra en modo OPENED y envía un ACK (el primero) a B. Mientras, B devuelve dos ACKs mas en respuesta a los dos REQs adicionales enviados por A antes de que B arrancase .B recibe el primer ACK de A y entra en modo OPENED. A recibe el segundo ACK de B y vuelve al estado REQ-SENT, enviando otro (el cuarto) REQ. Entonces recibe el tercer ACK y entra en modo OPENED. Mientras, B recibe el cuarto REQ de A, produciendo que vuelva de nuevo al estado ACK-SENT y enviando otro (el segundo) REQ y (cuarto) ACK. A recibe el REQ, entra en modo REQ-SENT y envía otro REQ. Inmediatamente recibe el siguiente ACK y entra en OPENED. Esto pasa hasta que una de las partes piensa que ya ha realizado suficientes reintentos y corta la conexión. La mejor manera de evitar esto es configurar una de las partes de manera pasiva - que es, hacer que una de las partes espere a que la otra comience la negociación. Esto puede realizarse con el comando: set openmode passive Se debe tener cuidado con esta opción. También se puede usar: set stopped N para limitar el número de veces que ppp espera a que el remoto comience la negociación. Alternativamente, puedes user el comando: set openmode active N donde N es el número de segundos que espera antes de empezar la negociación. Mira en el manual para más detalles. Ppp se bloquea al conectar Antes de la versión 2.2.5 era posible que la conexión se corte nada más iniciarse debido a un problema en la negociación de compresión Predictor1. Esto solo pasa si las dos partes intentan negociar con diferentes protocolos de control de compresión (CCP). Este problema ya está corregido, pero si estás usando una versión antigua de ppp, el problema puede solucionarse con la línea disable pred1 Ppp se bloqua al abrir un shell de test Cuando ejecutas el comando shell o !, ppp ejecuta un shell (o si has pasado argumentos, ppp ejecutará esos argumentos). Ppp esperará a que se complete el comando antes de continuar. Si intentas usar la conexión ppp mientras se ejecuta el comando, parecerá que la conexión se ha colgado. Esto es por que ppp está esperando a que se complete la ejecución del comando. Si quieres ejecutar comandos como este, usa el comando !bg en su lugar. Esto ejecutará el comando en background, y ppp continúa sin problemas con la conexión. Ppp sobre un cable null-modem no funciona No hay manera que ppp detecte automáticamente que una conexión directa se ha cortado. Es debido a las líneas que se usan en un cable serie null-modem. Cuando usamos este tipo de conexión, LQR debería estar siempre activada con el comando enable lqr LQR es aceptado por defecto si es negociado por el remoto. ¿Por que llama sin motivo el ppp en modo -auto? Si ppp llama inesperadamente, debes determinar la causa, y poner filtros (dfilters) para prevenir esas llamadas. Para determinar la causa, usa la siguiente línea: set log +tcp/ip Esto guardara todo el tráfico que pase a través de la conexión. La próxima vez que se realice una llamada no deseada, podrás ver la causa convenientemente guardada. Ahora puedes desactivar las llamadas producidas por esa causa. Usualmente, este tipo de problemas se debe a consultas de DNS. Para prevenir que las consultas de DNS puedan establecer conexiones usa la siguiente línea (esto no hará que los paquetes de DNS queden parados cuando la conexión está establecida): set dfilter 1 deny udp src eq 53 set dfilter 2 deny udp dst eq 53 set dfilter 3 permit 0/0 0/0 Esto no siempre es aconsejable, ya que puede afectar a la capacidad de realizar conexiones bajo demanda - muchos programas necesitan hacer una consulta al DNS antes de poder realizar cualquier operación. En el caso del DNS, deberías determinar que es lo que está intentando realizar esas consultas de DNS. Muchas veces, sendmail es el culpable. Debes asegurarte configurar el sendmail de manera que no realice ninguna consulta al DNS. Mira la sección para tener más detalles acerca de como crear una fichero propio de configuración de sendmail. También deberías añadir la siguiente línea en tu fichero .mc: define(`confDELIVERY_MODE', `d')dnl Esto hara que sendmail encole todo el correo hasta que no se procese la cola (usualmente, sendmail es invocado con "-bd -q30m", indicandole que procese la cola cada 30 minutos) o hasta que se ejecuta el comando "sendmail -q" (por ejemplo, desde el fichero ppp.linup). ¿Qué significan estos errores CCP? Sigo viendo los siguientes errores en el fichero de log: CCP: CcpSendConfigReq CCP: Received Terminate Ack (1) state = Req-Sent (6) Esto es porque ppp está intentando negociar compresión Predictor1, y el remoto no quiere negociar ningún tipo de compresión. Estos mensajes son sin importancia, pero si quieres eliminarlos, puedes desactivar la compresión Predictor1 localmente: disable pred1 PPP se cuelga durante transferencia de ficheros con errores I/OP En la versión FreeBSD 2.2.2 y anteriores, había un problema en el driver tun que no permitía paquetes entrantes con un tamaño mayor que el MTU del interface. La recepción de un paquete mayor que el MTU resulta en un error IO que es logueado vía syslogd. La especificación PPP dice que un MRU de 1500 siempre debería ser aceptada como mínimo, a pesar de lo que se negocie mediante LCP, de todas maneras, es posible que hayas disminuido el MTU por debajo de 1500 y tu proveedor te esté enviando paquetes de 1500, haciendo que tu conexión se bloquee. El problema puede solucionarse haciendo que el tamaño del MTU nunca sea inferior a 1500 bajo FreeBSD 2.2.2 y anteriores. ¿Por que ppp no loguea la velocidad de la conexión? Para loguear todas las líneas de "conversación" de tu módem, debes activar la siguiente opción: set log +connect Esto hará que ppp loguee todo hasta la última cadena "expect" pedida. Si quieres ver la velocidad de tu conexión y usas PAP o CHAP (y por lo tanto no tienes nada que "chatear" después del CONNECT en el script de marcado), debes estar seguro de indicarle al ppp que espera la línea "CONNECT con algo como esto: set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 4 \"\" ATZ OK-ATZ-OK ATDT\\T TIMEOUT 60 CONNECT \\c \\n" Aquí, tenemos nuestro CONNECT, enviamos nada, y esperamos un salto de línea, forzando al ppp que lea la respuesta del CONNECT. Ppp ignora el carácter `\' en mi chat script PPP lee cada línea de los ficheros de configuración para poder interpretar cadenas como set phone "123 456 789" correctamente. Para especificar un carácter ``"'', debes usar la contrabarra (``\''). Cuando el intérprete lee cada argumento, reinterpreta el argumento para buscar alguna secuencia especial de escape como ``\P'' o ``\T''. Como resultado de esta doble lectura, recuerda que has de usar el número correcto de escapes (contrabarras). Si quieres enviar un caracter ``\'' a tu módem, necesitas hacer algo como: set dial "\"\" ATZ OK-ATZ-OK AT\\\\X OK" resultando en la siguiente secuencia: ATZ OK AT\X OK o set phone 1234567 set dial "\"\" ATZ OK ATDT\\T" resultando en la siguiente secuencia: ATZ OK ATDT1234567 Ppp produce un seg-fault, pero no veo el fichero ppp.core Ppp (o cualquier otro programa de este tipo), nunca deberían hacer un core dump. Por que ppp funciona con un id de usuario 0, el sistema operativo no escribirá la imagen del core en disco. Si ppp termina con errores de "segmentation violation" o cualquier otra señal que normalmente causa un core dumped, y quieres poder hacer un debug de ese core, asegúrate de usar la última versión de ppp, y haz lo siguiente: $ tar xfz ppp-*.src.tar.gz $ cd ppp*/ppp $ echo STRIP= >>Makefile $ echo CFLAGS+=-g >>Makefile $ make clean all $ su # make install # chmod 555 /usr/sbin/ppp Ahora tendrás instalada una versión "debuggable" de ppp. Tendrás que ser root para poder ejecutar ppp ya que todos sus privilegios han sido revocados. Cuando arranques ppp, acuerdate del directorio en el que te encuentras. Ahora, cuando ppp recibe una violación de segmentación , creará un fichero core llamado ppp.core. A continuación , deberías hacer lo siguiente: $ su # gdb /usr/sbin/ppp ppp.core (gdb) bt ..... (gdb) f 0 ..... (gdb) i args ..... (gdb) l ..... Toda esta información puede hacer posible diagnosticar el problema. Si estás familiarizado con gdb, puedes encontrar otras pistas como que causó el dump y las direcciones y valores de las variables más relevantes. El proceso que fuerza una llamada en modo auto nunca funciona Este es un problema conocido cuando ppp está configurado para negociar una IP dinámica local con el remoto. Este problema ha sido solucionado en la última versión - busca en el man la palabra iface. El problema era que cuando el programa inicial llama a connect(2), el IP del interface tun es asignado al punto final del socket. El kernel crea el primer paquete saliente y establece la conexión. Si, como resultado de la asignación dinámica de IP, la dirección del interface es cambiada, el punto final del socket original será invalido. Los siguientes paquetes enviados al remoto normalmente serán descartados. Aun si no lo son, cualquier respuesta no será enrutada hacia la máquina de origen por que la dirección IP de la máquina de origen ha cambiado. Hay varias maneras teóricas de solucionar este problema. Lo mejor sería que el remoto reasignase la misma IP si fuese posible :-) La versión actual de ppp hace esto, pero otras muchas implementaciones no. El método más sencillo desde nuestra parte, sería no cambiar nunca la IP del interface tun, pero por el contrario, cambiar todos los paquetes salientes de manera que la ip de origen es cambiada del IP del interface a la IP negociada, instantaneamente. Esto es, esencialmente, lo que hacen libalias(3) y el parámetro de ppp. Otra alternativa (y probablemente la mas eficaz) es implementar una llamada al sistema que cambie todos los sockets de una IP a otra. Ppp debería usar esta llamada para modificar los sockets de todos los programas existentes cuando una nueva dirección IP es negociada. La misma llamada de sistema podría ser usada para clientes dhcp cuando son forzados a rehacer sus sockets. Una tercera opción es permitir que un interface se active sin IP. Los paquetes salientes tendrían un IP de 255.255.255.255 hasta que el primer SIOCAIFADDR ioctl este hecho. Esto permitiría que ppp cambiase el IP de origen, pero solo si el socket es 255.255.255.255 y solo el IP y el checksum necesitan cambiar. Esto, de todas maneras, requiere tocar el kernel para que puede enviar paquetes incorrectos a un interface mal configurado. ¿Porqué muchos juegos no funcionan con el parámetro -alias? La razón por la que muchos de los juegos no funcionan es por que la máquina externa intentará abrir una conexión o enviar paquetes UDP (no solicitados) a la máquina interna. El software "alias" no sabe que esos paquetes debrín enviarse a la máquina interna. Para que las cosas funcionen, asegúrate que la única cosa que está funcionando es el software con el que tienes problemas, entonces ejecuta tcpdump en el interface tun del gateway o ejecuta el log tcp/ip del ppp ("set log +tcp/ip" en el gateway. Cuando arrancas el software que no funciona, deberís ver paquetes que pasan a través del gateway. Cuando algo vuelve del exterior, será rechazado (ese es el problema). Apunta el número de puerto de esos paquetes y cierra el software que no funciona. Haz esto varias veces para comprobar si el número de puerto se repite. Si es así, la siguiente línea en el fichero de configuración del ppp /etc/ppp/ppp.conf hará que las cosas funcionen: alias port proto internalmachine:port port donde "proto" puede ser "tcp" o "udp", "internalmachine" es la máquina a la que quieres que los paquetes sean enviados y "port" es el número de puerto de destino de los paquetes. No podrás usar ese software en otras máquinas sin modificar el comando anterior, y ejecutar el software simultaneamente en dos máquinas internas no será posible - después de todo, el mundo exterior está viendo a toda tu red como una sola máquina. Si los números de puertos no se repiten, hay tres opciones más: 1) Desarrollar el soporte en libalias. Ejemplos de estos "casos especiales" los puedes encontrar en /usr/src/lib/libalias/alias_*.c (alias_ftp.c es un buén prototipo). Esto usualmente supone leer ciertos paquetes salientes conocidos, identificando la instrucción que le indica a la máquina exterior que inicie una conexión con la máquina interna en un puerto específico (aleatorio) y configurar un "ruta" en la tabla de alias para que los paquetes siguientes sepan donde ir. Esta es la solución más difícil, pero es la mejor y hará que el software funcione con múltiples máquinas. 2) Usar un proxy. La aplicación debe soportar socks5 por ejemplo, o (como en el caso del "cvsup") debería tener una opción "pasiva" que evita que el remoto intente abrir conexiones con la maquina local. 3) Redireccionar todo el tráfico a la máquina interna usando "alias addr". Esta es la solución más sencilla. ¿Ha hecho alguien una lista de puertos útiles? Todavía no, pero se podría hacer, si hay interés. En cada ejemplo, internal debe ser reemplazado por la dirección IP de la máquina que va a estar jugando. Quake alias port udp internal:6112 6112 Alternativamente, quizás estés interesado en mirar en el www.battle.netsoporte de Quake a través de proxy">. Quake 2 alias port udp internal:27901 27910 Red Alert alias port udp internal:8675 8675 alias port udp internal:5009 5009 Half Life alias port udp internal:27005 27015 PCAnywhere 8.0 alias port udp internal:5632 5632 alias port tcp internal:5631 5631 ¿Qué son los errores FCS? FCS significa Frame Check Sequence. Cada paquete ppp tiene un checksum añadido para asegurar que los datos que se reciben son los datos que han sido enviados. Si el FCS de un paquete entrante es incorrecto, el paquete es rechazado y se incremente el contador HDLC FCS. Los valores de error HDLC se pueden visualizar usando el comando show hdlc. Si tu conexión es mala (o si tu driver serie está rechazando paquetes), verás errores FCS ocasionales. En general no tienes porque preocuparte de ellos. Si tienes un módem externo, asegúrate que el cable está correctamente aislado de interferencias - esto debería erradicar el problema. Si tu conexión se corta tan pronto como has conectado y ves gran cantidad de errores FCS, puede ser por que ti conexión no es de 8 bits. Asegúrate de que tu módem no está usando control de flujo (XON/XOFF) por software. Si tu conexión de datos debe usar control de flujo por software, usa el comando set accmap 0x000a0000 para indicar al ppp que "escape" los carácteres ^Q y ^S. Otra razón para ver muchos errores FCS puede ser que el remoto haya dejado de "hablar" PPP. Deberís activar el log asíncrono para determinar si los datos entrantes son de un login o un prompt de shell. Si tienes un prompt de shell en el extremo de la conexión, es posible terminar el ppp sin cortar la conexión usando el comando close clp (usando el comando term podrás conectar de nuevo con el shell de la máquina remota. Si no hay nada en el log que indique por que se ha terminado la conexión, deberís preguntar al administrador del sistema remoto porqué ha terminado la sesión. Nada de esto me ayuda - Estoy desesperado ! Si todo falla, envía toda la información que puedas, incluyendo los ficheros de configuración, como arrancas el ppp, las partes relevantes del fichero de log y la salida del comando netstat -rn (antes y despues de la conexión) a la lista de distribución FreeBSD-questions@FreeBSD.org, a la lista de FreeBSD en castellano o al grupo de news comp.unix.bsd.FreeBSD.misc y alguien te ayudará a solucionar los problemas. Comunicaciones serie Esta sección responde las preguntas mas frecuentes sobre las comunicaciones serie con FreeBSD. PPP y SLIP se tratan en la sección . ¿Cómo se si FreeBSD ha encontrado mis puertos serie? Cuando el kernel de FreeBSD arranca, testeará los puertos serie del sistema que estén configurados en el kernel. Puedes estar atento a los mensajes de la cónsola o ejecutar el comando: dmesg | grep sio una vez el sistema esté en funcionamiento. Aquí tienes un ejemplo del resultado de la ejecución del comando: sio0 at 0x3f8-0x3ff irq 4 on isa sio0: type 16550A sio1 at 0x2f8-0x2ff irq 3 on isa sio1: type 16550A Esto muestra dos puertos serie. El primero en la irq 4 usando la dirección 0x3f8, y tiene una UART 16550A. El segundo usa el mismo tipo de chip pero está en la irq 3 y usa la dirección 0x2f8. Los módems internos son tratados como puertos serie, exceptuando que siempre tienen un módem adjuntado al puerto. El kernel GENERIC incluye soporte para dos puertos serie usando la misma irq y dirección que en el ejemplo anterior. Si estas opciones no son correctar para tu sistema, o si has añadido módems internos o tienes más puertos serie de los que están configurados en el kernel, solo tienes que reconfigurar el kernel. Mira en la sección para más detalles. ¿Cómo se si FreeBSD ha encontrado mi módem interno? Respondido en la sección anterior. He actualizado a 2.0.5 y mi tty0X no existen! No te preocupes, han sido integrados en los dispositivos ttydX. Tendrás que modificar algunos ficheros antiguos de configuración. ¿Cómo accedo a los puertos serie en FreeBSD? El tercer puerto serie, sio2 (conocido como COM3 en DOS), está en /dev/cuaa2 para dispositivos de salida (dial-out) y en /dev/ttyd2 para dispositivos de entrada (dial-in). Cuál es la diferencia entre estas dos clases de dispositivos?. Usas los ttydX para los entrantes. Al abrir /dev/ttydX en "blocking mode", un proceso esperará para que el dispositivo cuaaX correspondiente se vuelva inactivo. Cuando abres un dispositivo cuaaX, se asegura de que el puerto serie no está en uso por un dispositivo ttydX. Si el puerto está disponible, se lo "roba" al dispositivo ttydX. Al mismo tiempo, el dispositivo cuaaXX no se preocupa de la detección de portadora. Con este esquema, y un módem en respuesta automática, puedes recibir usuarios remotos y puedes hacer conexiones externas con el mismo módem, mientras el sistema se preocupa de evitar los posible conflictos. ¿Cómo activo el soporte de tarjetas serie multipuerto? Otra vez, en la sección de configuración del kernel tienes la información. Para una tarjeta multipuerto, pon una línea sio para cada puerto serie de la tarjeta en el fichero de configuración del kernel. Especifica la irq y vector solo en una de las líneas. Todos los puertos de la tarjeta compartirán la misma irq. Por consistencia, usa el último puerto serie para especificar la irq. De la misma manera, especifica la opción COM_MULTIPORT. El siguiente ejemplo es para una tarjeta AST 4-port en la irq 7: options "COM_MULTIPORT" device sio4 at isa? port 0x2a0 tty flags 0x781 device sio5 at isa? port 0x2a8 tty flags 0x781 device sio6 at isa? port 0x2b0 tty flags 0x781 device sio7 at isa? port 0x2b8 tty flags 0x781 irq 7 vector siointr Los flags indican que el puerto master tiene un número menor de 7 (0x700), los diagnósticos están activados durante el testeo (0x080), y los puertos comparten una irq (0x001). ¿Puede manejar FreeBSD tarjetas multipuerto compartiendo irq? Todavía no. Tendrás que usar una irq diferente para cada tarjeta. ¿Puedo cambiar los parámetros serie por defecto para un puerto? El dispositivo ttydX (o cuaaX) es el que querrás abrir para tus aplicaciones. Cuando un proceso abre el dispositivo, tendrá una serie de configuraciones I/O por defecto. Puedes ver estas configuraciones con el comando: stty -a -f /dev/ttyd1 Cuando le cambias la configuración a este dispositivo, este cambio se mantiene hasta que el dispositivo se cierra. Cuando se reabre, vuelve a la configuración por defecto. Para hacer cambios sobre la configuración por defecto, puedes abrir y ajustar las opciones del "estado inicial" del dispositivo. Por ejemplo, para poner el dispositivo tty5 en modo CLOCAL, 8 bits, y contro del flujo XON/XOFF, haz stty -f /dev/ttyid5 clocal cs8 ixon ixoff Un buen lugar para hacer esto es en /etc/rc.serial. Ahora, una aplicación tendrá esta configuración por defecto cuando abra el puerto ttyd5. También puedes prevenir o limitar ciertos cambios que pretenda hacer una aplicación. Para ello, ajusta el "lock state" del dispostivo. Por ejemplo, para bloquear la velocidad del puerto ttyd5 a 57600 bps, haz: stty -f /dev/ttyld5 57600 Ahora, una aplicación que abre ttyd5 e intenta cambiar la velocidad del puerto no podrá hacerlo. Naturalmente, deberías hacer que el estado inicial y el estado de bloqueo sean solo de escritura para el usuario root. El script MAKEDEV NO hace esto cuando crea el dispositivo. ¿Cómo puedo activar logins de entrada en mi módem? Quieres hacerte proveedor de Internet, eh?. Primero, necesitarás uno o mas módems que puedan responder automáticamente. Tu módem necesitará activar el carrier-detect sólo cuando detecte una portadora y no tenerla activada continuamente. Necesitará cortar la comunicación y resetearse él mismo cuando la línea DTR pase de on a off. Probablemente usaría RTS/CTS para el control de flujo. Finalmente, debe usar una velocidad constante entre el ordenador y él mismo, pero debería negociar la velocidad entre él mismo y el módem remoto. Para muchos módems compatibles Hayes, este comando creará estas configuraciones y las grabará en la memoria no volátil: AT &C1 &D3 &K3 &Q6 S0=1 &W Mira la sección para saber como enviar estas configuraciones al módem sin necesidad de un programa terminal de DOS. A continuación, añade una línea en el fichero /etc/ttys para el módem. Este fichero lista todos los puertos en los que el sistema operativo esperará los logins. La línea sería como esta: ttyd1 "/usr/libexec/getty std.57600" dialup on insecure Esta línea indica que el segundo puerto serie /dev/ttyd1 tiene un módem conectado, la velocidad es de 57600 bps y sin paridad (std.57600. El tipo de terminal para este puerto es "dialup". El puerto está "on" y es inseguro (lo que significa que los logins como root no son permitidos). Muchos usuarios, ponen un sus ficheros .profile o .login un prompt para el tipo de terminal. El ejemplo muestra el puerto como inseguro. Para ser root en ese puerto, hacer el login como un usuario normal, y ejecutar el comando su. Si en lugar de inseguro, el terminal es seguro (secure), puedes hacer login como root directamente. Despues de modificar el fichero /etc/ttys, necesitas lanzar una señal HUP al proceso init: kill -HUP 1 Esto fuerza al proceso init a releer el fichero /etc/ttys. El proceso init arrancará los procesos getty en todos los puertos configurados como "on". Puedes ver si los logins están disponibles en los puertos tecleando: ps -ax | grep '[t]tyd1' deberías ver algo como: 747 ?? I 0:00.04 /usr/libexec/getty std.57600 ttyd1 ¿Cómo puedo conectar un dumb terminal a un FreeBSD? Si estás usando otro ordenador como terminal en tu sistema FreeBSD, usa un cable null módem entre los dos puertos serie. Si ya estás usando un terminal, mira en las instrucciones del mismo. A continuación, modifica el fichero /etc/ttys Por ejemplo, si estás instalando un terminal WYSE-50 en el quinto puerto serie, usa una línea como esta: ttyd4 "/usr/libexec/getty std.38400" wyse50 on secure Este ejemplo muestra que el puerto /dev/ttyd4 tiene un terminal Wyse50 conectado a 38400 bps sin paridad y los logins de root son permitidos. ¿Porqué no puedo ejecutar tip o cu? En tu sistema, los programas tip y cu son probablemente ejecutables solo por uucp y el grupo dialer. Puedes usar el grupo dialer para controlar quien tiene acceso al módem o sistemas remotos. Sólo tienes que añadirte tu mismo al grupo dialer. Alternativamente, puedes dejar que todos los usuarios de tu sistema ejecuten tip y cu tecleando: # chmod 4511 /usr/bin/cu # chmod 4511 /usr/bin/tip Mi módem hayes no está soportado. ¿Que puedo hacer? Actualmente, el man de tip está anticuado. Hay un dialer Hayes genérico. Solo usa ``at=hayes'' en tu fichero /etc/remote. El driver Hayes no es tan desarrollado como para reconocer algunas de las características avanzadas de los módems modernos, mensajes como BUSY, NO DIALTONE o CONNECT 115200 lo pueden confundir. Deberías anular estos mensajes cuando uses tip (utilizando la cadena ATX0&W). También, el timeout de llamada para tip está en 60 segundos. Tu módem debería usar algo menor, o tip puede pensar que hay un problema de comunicación. Intenta con ATS7=45&W. ¿Cómo puedo introducir estos comandos AT? Haz lo que se llama una entrada directa en el fichero /etc/remote. Por ejemplo, si tu módem está conectado al primer puerto serie, /dev/cuaa0, escribe la siguiente línea: cuaa0:dv=/dev/cuaa0:br#19200:pa=none Usa la velocidad más alta que soporte tu módem en la sección br. A continuación teclea tip cuaa0 y estarás conectado al módem. Si no existe el dispositivo /dev/cuaa0 en tu sistema , teclea lo siguiente: # cd /dev # ./MAKEDEV cuaa0 O usa el comando cu como root con los siguientes parámetros: # cu -l``line'' -s``speed'' con line siendo el puerto serie (por ejemplo /dev/cuaa0>) y speed siendo la velocidad (por ejemplo 57600. Cuando termines de entrar los comandos AT, pulsa la tecla . para salir. El símbolo @ no funciona correctamente! El símbolo @ en la opción de números de teléfono indica a tip que busque en el fichero phone(5) un número de teléfono determinado. Pero el símbolo @ es también un carácter especial en otros ficheros y opciones como /etc/remote. Pon una contrabarra junto al carácter: pn=\@ ¿Cómo puedo llamar desde la línea de comandos? Pon lo que se llama una entrada genérica en el fichero /etc/remote. Por ejemplo: tip115200|Dial any phone number at 115200 bps:\ :dv=/dev/cuaa0:br#115200:at=hayes:pa=none:du: tip57600|Dial any phone number at 57600 bps:\ :dv=/dev/cuaa0:br#57600:at=hayes:pa=none:du: Entonces puedes hacer cosas como tip -115200 5551234. Si prefieres usar cu antes que tip, usa una entrada genérica de cu: cu115200|Use cu to dial any number at 115200bps:\ :dv=/dev/cuaa1:br#57600:at=hayes:pa=none:du: y teclea ``cu 5551234 -s 115200''. ¿Tengo que teclear la velocidad cada vez que hago esto? Pon una entrada para tip1200 o cu1200, pero puedes usar la velocidad que mejor se amolde a tus necesidades. tip piensa que una buena velocidad por defecto es 1200 bps ya que busca una entrada tip1200. No tienes por que usar 1200 bps. Accedo a diferentes hosts a través de un servidor de terminales. En lugar de esperar a que estés conectado y teclear CONNECT <host> cada vez, usa la opción cm de tip. Por ejemplo, estas entradas en el fichero /etc/remote: pain|pain.deep13.com|Forrester's machine:\ :cm=CONNECT pain\n:tc=deep13: muffin|muffin.deep13.com|Frank's machine:\ :cm=CONNECT muffin\n:tc=deep13: deep13:Gizmonics Institute terminal server:\ :dv=/dev/cua02:br#38400:at=hayes:du:pa=none:pn=5551234: Esto hará que puedas teclear tip pain o tip muffin para conectarte a las máquinas pain o muffin. ¿Puede tip intentar más de una línea para cada lugar? Este es un problema habitual en universidades con diferentes líneas de módem y unos cientos de usuarios intentado usarlas... Haz una entrada para tu universidad en el fichero /etc/remote y usa \@ para la opción pn: big-university:\ :pn=\@:tc=dialout dialout:\ :dv=/dev/cuaa3:br#9600:at=courier:du:pa=none: Entonces, lista los números de teléfono de la universidad en el fichero /etc/phones: big-university 5551111 big-university 5551112 big-university 5551113 big-university 5551114 tip intentará cada uno de estos números en el orden en el que estén listados. Si quieres que se realicen reintentos, ejecuta tip en una bucle while. ¿Porqué tengo que teclea CTRL+P dos veces para enviar CTRL+P una vez? CTRL+P es el carácter por defecto de "forzar", usado para indicarle al programa tip que el próximo carácter es un dato literal. Puedes configurar el carácter "forzar" a cualquier otro carácter con el escape ~s, el cual significa "poner una variable". Teclea ~sforce=<single-char> seguido de una nueva línea. <single-char> es cualquier carácter simple. Si dejas libre <single-char> entonces el carácter de forzar es el caracter nul, al cual puedes acceder tecleando CTRL+2 o CTRL+SPACE. Un valor más adecuado para <single-char> es SHIFT+CTRL+6, el cual solo es usado en algunos servidores de terminales. Puedes tener el carácter de forzar donde quieras, especificando lo siguiente en tu fichero $HOME/.tiprc force=<single-char> De repente, todo lo que tecleo es en mayúsculas Has debido pulsar CTRL+A, tip tiene este carácter especial para gente que tenga la tecla caps-lock estropeada. Usa ~s como en la sección anterior y pon la variable "raisechar" a un valor razonable. De hecho, puedes ponerla al mismo valor que que el carácter de forzar, si no esperas usar estas características. Aqui hay un ejemplo del fichero .tiprc perfecto para usuarios de Emacs que necesiten teclear CTRL+2 y CTRL+A muchas veces: force=^^ raisechar=^^ El simbolo ^^ es SHIFT+CTRL+6. ¿Cómo puedo hacer transferecia de ficheros con tip? Si estás conectado con otro sistema UNIX, puedes enviar y recibir ficheros con ~p (put) y ~t (take). Estos comandos ejecutan cat y echo en el sistema remoto para aceptar y enviar ficheros. La sintaxis es: ~p <local-file> [<remote-file>] ~t <remote-file> [<local-file>] No hay chequeo de errores, por lo que es mejor usar otro protocolo como zmodem. ¿Cómo puedo usar zmodem con tip? Primero, instala uno de los programas zmodem de la colección de ports (por ejemplo lrzsz y rzsz). Para recibir ficheros, inicia el programa de envío en la parte remota. A continuación, pulsa enter y teclea ~C rz'' (or ``~C lrz'' si instalaste lrzsz) para empezar a recibir localmente. Para enviar ficheros, inicia el programa de recepción en la parte remota. A continuación pulsa enter y teclea ~C sz <files>'' (o ~C lsz <files>) para enviarlos al sistema remoto. FreeBSD parece que no puede encontrar mis puertos series aún cuando la configuración es correcta. Las placas bases y tarjetas con UARTs de Acer no son detectadas correctamente por FreeBSD durante la fase de detección serie. Obten un parche de www.lemis.com para solucionar el problema. Preguntas varias FreeBSD usa más espacio de swap que Linux. Porqué? No lo hace. Deberías pensar "Porque mi swap parece lleno?". Si esto es lo que realmente querías decir, es por que poniendo los datos en swap en luar de descartarlos, hace que sea más rápido recuperarlos que si el paginador tuviese que ir a través del sistema de ficheros y usar bloques sin modificar desde un ejecutable. La cantidad actual de páginas que puedes tener en el core en una sola vez no es reducida; las páginas sin usar son desplazadas como sea necesario. ¿Porqué usar (que son) a.out y ELF como formatos ejecutables? Para entender por que FreeBSD usa el formato a.out, debes saber primero un poco sobre los tres formatos dominantes actualmente en UNIX: a.out El antiguo y clásico formato de objeto. Usa una corta y compacta cabecera con un número mágico en el inicio que es usado para caracterizar el formato (mira en a.out(5) para más detalles). Contiene tres segmentos cargados: .text, .data y .bss más una tabla de símbolos y una tabla de cadenas de carácteres. COFF El formato de objeto SVR3. La cabecera comprime una sección de tablas, de manera que puedas tener más de una sola sección .test, .data y .bss ELF El sucesor de COFF, ofreciendo múltiples secciones y valores posibles de 32 o 64 bits. Un problema importante: ELF fue diseñado con la presunción de que solo existiría un único ABI por arquitectura de sistema. Esta presunción actualmente es incorrecta, incluso en el mundo comercial (el cual tiene al menos tres ABIs: SVR4, Solaris y SCO). FreeBSD intenta solucionar este problema de manera que provee de una utilidad para marcar un ejecutable ELF con información sobre el ABI con el que es compatible. Para más información, mira el man de brandelf. FreeBSD viene del sistema clásico y tradicionalmente ha utilizado el formato a.out, una tecnología probada y testeada a través de muchas generaciones de releases de BSD. También es posible construir y ejecutar binarios nativos ELF (y kernels) en sistemas FreeBSD. FreeBSD inicialmente se resistió al salto de cambiar a ELF como su formato por defecto. Porqué?, bien, cuando el mundo Linux hizo su transición a ELF no era nada fácil abandonar el formato ejecutable a.out debido a su inflexible mecanismo de tablas basadas en librerías compartidas. Esto hizo muy difícil para los fabricantes y desarrolladores la creación de librerías compartidas. A partir del momento en el que se ofrecieron una serie de herramientas que ofrecían la solución al problema de las librerías compartidas, el coste de la migración fue aceptado como necesario y la transición se hizo. En el caso de FreeBSD, el mecanismo de librerías compartidas esta más basado en el estilo de SunOS, mucho más sencillo de usar. De todas maneras, empezando con la version 3.0, FreeBSD soportará oficialmente binarios ELF como el formato por defecto. Aunque pensamos que el formato ejecutable a.out nos ha servidor muy bién, la gente de GNU, que hacen las herramientas de compilación que usamos, ha dejado de dar soporte para el formato a.out. Esto nos ha forzado a mantener dos versiones divergentes del compilador y lincador. ¿Porqué chmod no puede cambiar los permisos de los links? Tienes que usar o junto con la opción para que funcione. Para más información, mira la página de chmod y de symlink. CUIDADO la opción hace un chmod RECURSIVO. Ten cuidado al especificar directorios o symlinks con chmod. Si quieres cambiar los permisos de un directorio referenciado por un symlink, usa chmod sin ninguna opción y sigue el symlink con una barra /. Por ejemplo, si foo es un symlink al directorio bar, y quieres cambiar los permisos de foo /actualmente bar), deberías hacer algo como esto: chmod 555 foo/ Con la barra, chmod seguira el symlink, foo, para cambiar los permisos del directorio bar. ¿Porqué están los nombres de usuario restringidos a 8 caracteres? Pensarás que es fácil y suficiente con cambiar UT_NAMESIZE y reconstruir el kernel, y todo volverá a funcionar. Desafortunadamente hay aplicaciones y programas (incluyendo herramientas de sistema) que tienen en el propio código (no siempre 8 o 9, pero si 15 o 20) en estructuras, buffers... y rompería los clientes de NIS de Sun y sin duda existirían otros problemas interactuando con otros sistemas UNIX. En FreeBSD 3.0 y superiores, se ha incrementado el número máxmimo de carácteres a 16 y todas esas utilidades con longitud de carácteres prefijada han sido encontradas y arregladas. El hecho de que este cambio afectase a muchas áreas del sistema es el motivo por el que el cambio no se ha hecho hasta la versión 3.0. Si eres absolutamente cuidadoso y quieres arreglas tu mismo este problema en versiones anteriores, edita el fichero /usr/include/utmp.h y cambia el parámetro UT_NAMESIZE a la longitud que desees. También debes editar el fichero /usr/include/sys/param.h y poner el valor de MAXLOGNAME al mismo que UT_NAMESIZE. Finalmente, recompila los fuentes, no te olvides que el contenido de /usr/include es actualizado cada vez!. En su lugar, cambia los ficheros apropiados en /usr/src/.. ¿Puedo ejecutar binarios DOS bajo FreeBSD? Sí, empezando en la versión 3.0 puedes usar la emulación DOS rundos de BSDI, la cual ha sido integrada y mejorada. Envía un mail a la Lista de discusión de emulación en FreeBSD si estás interesado en participar en la evolución de esta característica. Para sistemas pre-3.0 hay una pequeña utilidad llamada pcemu en la colección de puertos que emula un 8088 y suficientes servicios de BIOS para ejecutar aplicaciones de modo texto. Requiere el sistema de X Window. ¿Qué es sup, y como lo uso? SUP significa Software Update Protocol, y fue desarrollado por CMU para mantener sus árboles de desarrollo sincronizados. Nosotros lo usabamos para manterner el servidor central sincronizado con otros servidores remotos. SUP no es amigo del ancho de banda, y ha sido retirado. El método actual recomendado para mantener tus fuentes actualizados es CVSup ¿Existen herramientas de ahorro de energía en FreeBSD? FreeBSD usa la instrucción HLT (halt) cuando el sistema está (idle) para reducir el consumo de energía. Si tienes la opción APM (Automatic Power Management) configurado, FreeBSD puede poner la cpu en modo de baja energía. ¿Qué significa "MFC"? MFC es un acrónimo para "Merges From -CURRENT". Es usado en los logs de CVS para indicar que un cambio se ha migrado de la rama CURRENT a la rama STABLE. ¿Qué significa "BSD"? Pertenece a un lenguaje secreto que solo sus miembros conoces. No tiene traducción literal, pero basta con decir que su traducción está entre, "Equipo de Fórmula-1", "Los Pinguinos son un buén aperitivo", y "Tenermos mejor sentido del humor que Linux" :-) Seriamente, BSD es un acrónimo de "Berkeley Software Distribution", el cual es el nombre que el CSRG de Berkeley (Computer Systems Research Group) escogió para sus distribuciones de Unix. Sólo para hackers serios de FreeBSD ¿Qué son SNAPs y RELEASEs? Hay actualmente tres ramas activas/semi-activas en el desarrollo de FreeBSD y en su CVS Repository: RELENG_2_2 AKA 2.2-stable AKA "2.2 branch" RELENG_3 AKA 3.x-stable AKA "3.0 branch" HEAD AKA AKA 4.0-current HEAD no es una rama actual, como las otras dos, es simplemente una constante simbólica para la versión de desarrollo actual a la cual nos referimos simplemente como . Actualmente, es el desarrollo de la versión 4.0 y la rama 3.0-stable es RELENG_3, separada de -current en Enero de 1999. ¿Cómo puedo hacerme mi propia release personalizada? Para hacer una release necesitas hacer tres cosas: primero, necesitas usar un kernel con el driver vn configurado. Añade esto a tu fichero de configuración del kernel y crea un nuevo kernel: pseudo-device vn #Vnode driver (turns a file into a device) Segundo, debes tener las herramientas del CVS a mano. Para hacer esto, puedes usar CVSUP pero en tu supfile pon el nombre de la release a cvs y borra cualquier tag campo de fecha: *default prefix=/home/ncvs *default base=/a *default host=cvsup.FreeBSD.org *default release=cvs *default delete compress use-rel-suffix ## Main Source Tree src-all src-eBones src-secure # Other stuff ports-all www doc-all A continuación ejecuta cvsup -g supfile para tener todos los bits correctos en tu ordenador. Finalmente, necesitas una buena cantidad de espacio vacío para crear en el la release. Digamos que está en /algun/disco/grande y en el ejemplo anterior has dejado los ficheros del CVS en /home/ncvs: setenv CVSROOT /home/ncvs # or export CVSROOT=/home/ncvs cd /usr/src/release make release BUILDNAME=3.0-MY-SNAP CHROOTDIR=/algun/disco/grande/release Una release completa será creada en /algun/disco/grande/ y tendrás una instalación completa de tipo FTP en /algun/disco/grande/R/ftp cuando acabes. Si quieres crear tu SNAP usando otra rama de desarrollo diferente de -current, puedes añadir RELEASETAG=SOMETAG a la línea de comando anterior de creación de la release. Por ejemplo, RELEASETAG=RELENG_2_2 crearía un snapshot 2.2 GAMMA. ¿Cómo creo discos de instalación personalizados? El proceso completo de creacación de discos de instalación y archivos fuentes y binarios esta automatizado por varios targets en /usr/src/release/Makefile. La información alli contenida debería ser suficiente para que puedas empezar. Falta decir que este proceso necesita la ejecución del comando "make world" y quizás te use mucho tiempo y espacio en disco. ``make world'' destruye mis binarios instalados. Sí, esta es la idea general; como su nombre sugiere, "make world" rehace todos los binarios del sistema, de manera que puedas estar seguro de tener un entorno limpio y consistente al final (que es por lo que tarda tanto). Si la variable de entorno DESTDIR está definida mientras se ejecuta make world o make install, los binarios creados nuevamente seran depositados en un árbol de directorios idéntico al instalado, y a partir de ${DESTDIR}. Algunas combinaciones aleatorias de modificaciones de librerías compartidas y programas pueden causar que falle el make world. Cuando mi sistema arranca, dice (bus speed defaulted). Las controladoras SCSI Adaptec 1542 permiten al usuario configurar su velocidad de acceso al bus en software. Versiones anteriores del driver de la 1542 intentaban determinar la velocidad más alta factible y configurar la Adaptec a esta. Nos hemos encontrado con que esto hace fallar el sistema de algunos usuarios, por lo que tienes que definir la opción de configuración del kernel TUNE_1542 para que esto ocurra. En algunos sistemas puede que puede hacer que los discos vayan más rápidos, pero en otros puede que los datos queden corrompidos. ¿Puedo seguir la rama current con acceso limitado a Internet? Sí, puedes hacerlo sin bajarte todo el código fuente usando la utilidad CTM. ¿Cómo partir la distribución en ficheros de 240k? Los sistemas BSD más modernos tienen una opción para partir que les permite partir los ficheros en tamaños arbitrarios. Aqui hay un ejemplo de /usr/src/Makefile. bin-tarball: (cd ${DISTDIR}; \ tar cf - . \ gzip --no-name -9 -c | \ split -b 240640 - \ ${RELEASEDIR}/tarballs/bindist/bin_tgz.) ¿He escrito una extensión del kernel, a quien la envío? Por favor, mira en como enviar código. Y gracias por pensar en nosotros! ¿Cómo se detectan e inicializan las tarjetas ISA y PnP? Brevemente, hay unos cuantos puertos de entrada/salida a los que todas las tarjetas PnP responden cuando el ordenador pregunta si hay alguien ahí. Así, cuando comienza la rutina de prueba de PnP, pregunta si hay alguna tarjeta PnP presente y todas las tarjetas responden con su número de modelo a una lectura I/O del mismo puerto. Así el código de prueba puede conocer el ID de cada tarjeta (asignado por Microsoft/Intel). Los ID's son dos campos de 32 bits (2ˆ64) + 8 bits de checksum. Los primeros 32 bits son el identificador del fabricante. No se ha dicho publicamente, pero parece estar asumido que diferentes tipos de tarjeta del mismo fabricante pueden tener diferentes id's de fabricante. La idea de necesitar 32 bits sólo para los fabricantes parece un poco excesiva. La parte baja de 32 bits son un número de serie, dirección ethernet, algo que haga a la tarjeta única. El fabricante no debe producir nunca una segunda tarjeta que tenga los mismos 32 bits de la parte baja, aunque los 32 bits de la parte alta sean diferentes. Así puedes tener múltiples tarjetas del mismo tipo en la misma máquina y los 64 bits serán únicos para cada tarjeta. Los grupos de 32 bits nunca pueden ser todos cero. Esto permite mostrar todos los bits no-cero durante la búsqueda binaria inicial. Una vez el sistema ha identificado todos los ID's de las tarjetas presentes, reactivaráa cada tarjeta, una tras otra (a través de los mismos puertos I/O), y encontrará los recursos que cada tarjeta necesita, que opciones de interrupción están disponibles, etc. Se realiza un escaneo sobre todas y cada una de las tarjetas presentes para conocer esta información. Esta información se combina con la información de los ficheros ECU del disco y con las BIOS MLB. El soporte PnP de ECU y las BIOS para hardware en el MLB usualmente es sintético, y los periféricos no hacen PnP genuino. De todas maneras, examinando la información de la BIOS más la información ECU, la rutina de prueba puede causar que los dispositivos que no son PnP puedan evitar a esos dispositivos que el código de prueba no puede volver a posicionar. Así, los dispositivos PnP son visitados una vez más y se les asigna su I/O, DMA, IRQ, direcciones del mapa de memoria. Los dispositivos aparecerán en esas direcciones y permanecerán en ellas hasta que se vuelva a reinicializar la máquina. Todo el proceso se ha simplificado mucho, pero espero que hayas podido hacerte una idea del proceso. ¿Soporta FreeBSD arquitecturas diferentes a x86? Diferentes grupos de personas han expresado su interés en trabajar en un port multi-arquitectura de FreeBSD y FreeBSD/AXP (ALPHA) es un ejemplo de ese esfuerzo realizado, ahora disponible en forma de 3.0 SNAPshot release en ftp://ftp.FreeBSD.org/pub/FreeBSD/alpha. El port de ALPHA funciona actualmente en diferentes tipos de máquinas ALPHA, entre ellas, AlphaStation, AXPpci, PC164, Miata y Multia. Este port todavía no se considera una release completa y no lo será hasta que exista una colección completa de herramientas de instalación y una distribución completa en cdrom para instalació, incluyendo un número razonable de ports y packages funcionales. FreeBSD/AXP debe considerarse software de calidad BETA en estos momentos. Para más información del proyecto, subscríbete a la <FreeBSD-alpha@FreeBSD.org>. También se ha expresado interés en un port de FreeBSD para arquitectura SPARC. Subscríbete a <FreeBSD-sparc@FreeBSD.org> si estás interesado en participar en el proyecto. Para discusiones generales en nuevas arquitecturas, participa en <FreeBSD-platforms@FreeBSD.org>. Necesito un numero de dispositivo para un driver propio Esto depende de si quieres hacer que el driver esté públicamente disponible. Si la respuesta es afirmativa, por favor, envianos una copia del código fuente del driver y las modificaciones apropiadas del fichero files.i386, un ejemplo de configuración y el código apropiado de MAKEDEV para crear cualquier fichero especial que use tu dispositivo. Puedes enviar todo lo necesario a <FreeBSD-hackers@FreeBSD.org>. Alternativas a la política de directorios En respuesta a esta pregunta de políticas alternativas para los directorios, el esquema que está actualmente en uso no ha cambiado desde que lo escribí en 1983. Escribí esa política para el sistema de ficheros rápido original, y nunca se ha revisado. Trabaja bién manteniendo los grupos de cilindros. Como muchos de vosotros habreis notado, el rendimiento es muy pobre con "find". Muchos sistemas de ficheros son creados desde archivos que fueron creados por una primera búsqueda en profundidad (también conocido como ftw). Estos directorios terminan esparcidos a través de los grupos de cilindros. Si conociesemos el número total de directorios a crear, la solución sería crear (total / fs_ncg) por grupo de cilindros antes de moverlos. Obviamente, tendriamos que crear algún tipo de heurística para adivinar este número. Usando un número pequeño fijo (como puede ser 10) haría de orden de magnitud. Para diferencial restores de operaciones normales (cuando el algoritmo actual es probablemente más sensible), podrís usar el clustering hasta 10 si fueran todos hechos dentro de una ventana de diez segundos. De cualquier manera, mi conclusión es que este es un área para la experimentación. Kirk McKusick, Septiembre 1998 Obtener todo lo posible de un "kernel panic" [Esta sección fue extraida de un mensaje escrito por Bill Paul en la FreeBSD-current por Dag-Erling Coïdan Smørgrav, quién a fijado algunos errores y añadido algunos comentarios entre corchetes] From: Bill Paul <wpaul@skynet.ctr.columbia.edu> Subject: Re: the fs fun never stops To: ben@rosengart.com Date: Sun, 20 Sep 1998 15:22:50 -0400 (EDT) Cc: current@FreeBSD.org [<ben@rosengart.com> envió el siguiente panic] > Fatal trap 12: page fault while in kernel mode > fault virtual address = 0x40 > fault code = supervisor read, page not present > instruction pointer = 0x8:0xf014a7e5 ^^^^^^^^^^ > stack pointer = 0x10:0xf4ed6f24 > frame pointer = 0x10:0xf4ed6f28 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, def32 1, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 80 (mount) > interrupt mask = > trap number = 12 > panic: page fault [Cuando] ves un mensaje como este, no es suficiente con solo reproducirlo y enviarlo. El valor del puntero de instrucciones que he marcado arriba es importante; desafortunadamente, depende de la configuración. En otras palabras, el valor varía dependiendo de la imáden de kernel exacta que se use. Si estás usando el kernel GENERIC de uno de los snapshots, entonces es posible que alguien pueda seguir la función problemática, pero si estás usando un kernel personalizado, entonces solo puedes decirnos donde ha ocurrido el fallo. Tendrías que hacer lo siguiente: Anotar el valor del puntero de la instrucción. Ten en cuenta la parte 0x8: al inicio no es significante en este caso: es la parte 0xf0xxxxxx la que queremos. Cuando el sistema rearranca, haz lo siguiente: % nm /kernel.that.caused.the.panic | grep f0xxxxxx donde f0xxxxxx es el valor del puntero de la instrucción. El problema es que no obtendrás una búsqueda exacta ya que los símbolos en la tabla de símbolos del kernel son para los puntos de entrada de las funciones y la dirección del puntero de la instrucción estará en algún lugar dentro de una función, no al principio. Si no obtienes un resultado exacto, omite el último dígito del valor del puntero de la instrucción e intentalo otra vez, por ejemplo: % nm /kernel.that.caused.the.panic | grep f0xxxxx Si esto no da ningún resultado, elimina otro dígito. Repite la operación hasta que obtengas algún tipo de salida. El resultado será una lista de posibles funciones que causan el panic. Este no es un sistema muy exacto de búsqueda de errores, pero es mejor que nada. Veo gente que constantemente envía mensajes de panics como este, pero raramente veo que alguien se tome el tiempo de buscar la coincidencia entre el puntero de instrucción y una función en la tabla de símbolos del kernel. La mejor manera de hacer el seguimiento de la causa de un panic es capturar un "crash dump", usando gdb(1) para hacer una traza del "crash dump". Por supuesto, esto depende de que gdb(1) funcione correctamente en -current, lo que no puedo garantizar (recuerdo que alguien ha comentado que el nuevo gdb(1) en formato ELF no manejaba bién los "dumps" de un crash del kernel; alguién debería mirar esto antes de que la 3.0 salga del estado beta). En cualquier caso, el método que normalmente uso es este: Crear un fichero de configuración de kernel, opcionalmente añadiendo 'options DDB' si piensas que necesitas el debugger del kernel por algún motivo. (Uso esto principalmente para configurar puntos de salida si sospecho que existe alguna condición que crea un loop infinito). Usar config -g KERNELCONFIG para crear el directorio de configuración del kernel. cd /sys/compile/KERNELCONFIG; make Esperar a que el kernel termine de compilar. cp kernel kernel.debug strip -d kernel mv kernel /kernel.orig/ cp kernel / reboot [Nota: ahora que los kernels de FreeBSD 3.x son ELF por defecto debes usar strip -g en lugar de strip -d. Si por algún motivo tu kernel es aún a.out, usa strip -aout -d.] Ten en cuenta que TU NO QUIERES ARRANCAR CON UN KERNEL QUE TIENE TODOS LOS SIMBOLOS DE DEBUG EN EL. Un kernel compilado con puede llegar facilmente a los 10MB de tamaño. No tienes que arrancar esta imán masiva, solo lo necesitas para poder usar después gdb(1) (gdb(1) quiere la tabla de símbolos). Al contrario, quieres mantener una copia de la imágen completa y crear una segunda imágen con los símbolos de debug desactivados usando strip -d. Es esta segunda imágen la que quieres arrancar. Para asegurarte de capturar un "crash dump", necesitas editar el fichero /etc/rc.conf y apuntar dumpdev a tu partición de swap. Esto hará que el script rc(8) use el comando dumpon(8) para activar los "crash dumps". También puedes ejecutar manualmente dumpon(8). Después de un panic, el "crash dump" puede ser recuperado usando savecore(8); si dumpdev está en /etc/rc.conf, el script rc(8) ejecutará savecore(8) automaticamente y pondrá el "crash dump" en /var/crash. NOTA: los "crash dumps" de FreeBSD suelen tener el mismo tamaño que la cantidad total de memoria física del sistema. Esto significa que si tienes 64MB de RAM, obtendrás un "crash dump" de 64MB. Debido a esto, tienes que asegurarte de tener suficiente espacio libre en /var/crash. Alternativamente puedes ejecutar savecore(8) manualmente y hacer la recuparación en otro directorio donde tengas más espacio libre. Es posible limitar el tamaño del "crash dump" usando options MAXMEM=(foo) para indicar la cantidad de memoria que el kernel puede ocupar. Por ejemplo, si tienes 128MB de RAM, puedes limitar el uso de memoria del kernel a 16MB para que el "crash dump" sea de 16MB y no de 128MB. Una vez hayas recuperado el "crash dump", puedes obtener una traza del stack con gdb(1) de la manera siguiente: % gdb -k /sys/compile/KERNELCONFIG/kernel.debug /var/crash/vmcore.0 (gdb) where Es posible que aparezcan muchas líneas de información: es una buena idea usar el comando script(1) para capturarlas todas. Usando la imágen del kernel con todos los símbolos de debug deberí mostrar la línea exacta de código fuente del kernel donde ha ocurrido el panic. Normalmente, tienes que leer la traza del stack de abajo hacia arriba para poder conocer la secuencia exacta de eventos que han provocado el crash. También puedes usar gdb(1) para mostrar los contenidos de las diferentes variables o estructuras para examinar el estado del sistema en el momento del crash. Ahora, si eres realmente curioso y tienes un segundo ordenador, puedes configurar gdb(1) para hacer un debug remoto de manera que puedes usar gdb(1) en un sistema para revisar el kernel de otro sistema, de la misma manera que lo harías en la máquina local. [Bill añade: "Olvidé mencionar una cosa: si tienes DDB activado, puedes forzar un panic (y un crash dump) tecleando "panic" en el prompt del ddb. Es posible que el debugger se pare durante la fase del panic. Si esto ocurre, teclea "continue" y el crash dump finalizará"] dlsym() no funciona con ejecutables ELF! Las herramientas ELF no hacen por defecto que los símbolos definidos en un ejecutable sean visibles por el linker dinámico. Consecuentemente, dlsym() buscará en datos obtenidos desde llamadas a dlopen(NULL, flags), lo que provoca que no se encuentren esos símbolos. Si quieres buscar, usando dlsym() símbolos presentes en el ejecutable principal de un proceso, necesitas linkar el ejecutable usando la opción en el linkador ELF. Incrementando o reduciendo el espacio de direcciones del kernel Por defecto, el espacio de direcciones del kernel es de 256MB en FreeBSD 3.x y 1GB en FreeBSD 4.x. Si gestionas un servidor de red muy cargado (por ejemplo, servidores FTP o HTTP con mucho tráfico), es posible que notes que 256MB no es suficiente. Así que... como incremento el espacio de direcciones?. Hay dos aspectos a tener en cuenta. Primero, necesitas indicarle al kernel que reserve una mayor parte del espacio de direcciones para él mismo. Segundo, ya que el kernel se carga al inicio del espacio de direcciones, necesitas disminuir la dirección de carga. El primer aspecto lo solucionamos incrementando el valor de NKPDE en src/sys/i386/include/pmap.h. Esta es una entrada de ejemplo para 1GB de espacio de direcciones: #ifndef NKPDE #ifdef SMP #define NKPDE 254 /* addressable number of page tables/pde's */ #else #define NKPDE 255 /* addressable number of page tables/pde's */ #endif /* SMP */ #endif Para encontrar el valor correcto de NKPDE, divide el espacio de direcciones deseado (en megabytes) por cuatro, después resta uno por UP y dos por SMP. Para solucionar el segundo aspecto, necesitas calcular la dirección correcta de carga: simplemente resta el tamaño del espacio de direcciones (en bytes) de 0x100100000; el resultado es 0xc0100000 para 1GB de espacio de direcciones. Ajusta LOAD_ADDRESS en src/sys/i386/conf/Makefile.i386 a ese valor; a continuación pon el contador al inicio de la sección listado en src/sys/i386/conf/kernel.script al mismo valor, como sigue: OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386") OUTPUT_ARCH(i386) ENTRY(btext) SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/obj/elf/home/src/tmp/usr/i386-unknown-FreeBSDelf/lib); SECTIONS { /* Read-only sections, merged into text segment: */ . = 0xc0100000 + SIZEOF_HEADERS; .interp : { *(.interp) } Reconfigura y compila el kernel. Probablemente tengas problemas con top(1), ps(1) y programas así; haciendo un make world deberín solucionarse esos problemas (o una recompilación manual de libkvm, ps y top después de copiar el pmap.h parcheado a /usr/include/vm/. NOTA: el tamaño del espacio de direcciones debe ser un múltiplo de cuatro megabytes. [David Greenman añade: Pienso que el espacio de direcciones del kernel necesita ser una potencia de 2, pero no estoy totalmente seguro.] AGRADECIMIENTOS Si ves algún problema o error en esta FAQ, o quieres enviar información para que sea añadida, por favor, envía un mail a la dirección faq-es@es.FreeBSD.org. Apreciamos tu información e interés, y no podemos hacer una FAQ mejor sin tu ayuda. FreeBSD Spanish Documentation Project. Cristobal Talavera (cristobal@es.FreeBSD.org) Por ser uno de los mejores técnicos de Internet en España :) David Casademunt (david@es.FreeBSD.org) No hay hardware que se le resista. Nick Clayton (nick@FreeBSD.org) Gracias a su ayuda todo esto ha sido posible. Nexus Comunicacaciones (www.ncsa.es) Por mantener el mirror y darme las facilidades para hacer todo esto. Oscar Colet (oscarc@abaforum.es) Por aguantar lo que tiene que aguantar. Jordan Hubbard Actualizaciones y entradas ocasionales. Doug White Recopilaciones y respuestas en FreeBSD-questions. Joerg Wunsch Recopilaciones y respuestas en las news. Garrett Wollman Redes. Jim Lowe Información sobre multicast. Peter da Silva "Machaca de las teclas" de FreeBSD FAQ The FreeBSD Team De todo. y para todos los que hemos olvidado, disculpas y muchas gracias por todo!. Jesús Rodríguez jesusr@FreeBSD.org diff --git a/ja_JP.eucJP/FAQ/FAQ.sgml b/ja_JP.eucJP/FAQ/FAQ.sgml index 6d02063499..e11b290199 100644 --- a/ja_JP.eucJP/FAQ/FAQ.sgml +++ b/ja_JP.eucJP/FAQ/FAQ.sgml @@ -1,93 +1,93 @@ - + %includes; %jmembers; ]>
FreeBSD 2.X ¤Ë¤Ä¤¤¤Æ¤Î FAQ (¤è¤¯¤¢¤ë¼ÁÌä¤È¤½¤ÎÅú¤¨) The FreeBSD Documentation Project - $Date: 1999-09-06 06:53:17 $ + $FreeBSD$ ¤³¤ì¤Ï FreeBSD ¥·¥¹¥Æ¥à¥Ð¡¼¥¸¥ç¥ó 2.X ¤Ë¤Ä¤¤¤Æ¤Î FAQ ¤Ç¤¹. ÆÃ¤ËÃǤï¤ê¤¬¤Ê¤¤¸Â¤ê¤Ï¤É¤Î¹àÌܤâ FreeBSD 2.0.5 °Ê¹ß¤Î¤â¤Î¤òÁÛÄꤷ¤Æ¤¤¤Þ¤¹. <XXX>¤Î¤Ä¤¤¤Æ¤¤¤ë¹àÌܤϤޤÀºî¶ÈÃæ¤Î¤â¤Î¤Ç¤¹. ¤³¤Î FreeBSD ¥É¥­¥å¥á¥ó¥Æ¡¼¥·¥ç¥ó ¥×¥í¥¸¥§¥¯¥È¤Ë¶¨ÎϤ·¤¿¤¤¤È»×¤Ã¤¿¤é, FreeBSD ¥É¥­¥å¥á¥ó¥Æ¡¼¥·¥ç¥ó¥×¥í¥¸¥§¥¯¥È¥á¡¼¥ê¥ó¥°¥ê¥¹¥È ¤Þ¤Ç (±Ñ¸ì¤Ç) ÅŻҥ᡼¥ë¤òÁ÷¤Ã¤Æ¤¯¤À¤µ¤¤. ¤³¤Î¥É¥­¥å¥á¥ó¥È¤ÎºÇ¿·¥Ð¡¼¥¸¥ç¥ó¤Ï, ¤¤¤Ä¤Ç¤â ¤ä ¤Ç ¸«¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. ¤Þ¤¿, ·Á¼°¤Î¤â¤Î¤ò HTTP ¤Ç ¥À¥¦¥ó¥í¡¼¥É¤¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹. ¤³¤ì¤é¤ò gzip ¤Ç°µ½Ì¤·¤¿¤â¤Î¤¬ ¤ËÃÖ¤«¤ì¤Æ¤¤¤Þ¤¹. ¤Þ¤¿, ¤â²Äǽ¤Ç¤¹.

ÆüËܸìÈǤκîÀ®¤Ï FreeBSD ÆüËܸì¥É¥­¥å¥á¥ó¥Æ¡¼¥·¥ç¥ó¥×¥í¥¸¥§¥¯¥È¤¬ ¥ª¥ê¥¸¥Ê¥ë¤Î±Ñ¸ìÈǤò¤â¤È¤Ë¤·¤Æ¤ª¤³¤Ê¤Ã¤Æ¤¤¤Þ¤¹. ÆüËܸìÌõ¤ª¤è¤Ó, ÆüËܸìÈǤΤߤ˴ؤ¹¤ë¤³¤È¤Ï &a.doc-jp; ¤Ë¤ª¤¤¤ÆÆüËܸì¤ÇµÄÏÀ¤µ¤ì¤Æ¤¤¤Þ¤¹. ɬÍפ˱þ¤¸¤ÆÆüËܸì¥É¥­¥å¥á¥ó¥Æ¡¼¥·¥ç¥ó¥×¥í¥¸¥§¥¯¥È¤«¤é Ëܲȥɥ­¥å¥á¥ó¥Æ¡¼¥·¥ç¥ó¥×¥í¥¸¥§¥¯¥È¤ËÂФ·¤Æ¥Õ¥£¡¼¥É¥Ð¥Ã¥¯¤ò ¤ª¤³¤Ê¤¤¤Þ¤¹¤Î¤Ç, ±Ñ¸ì¤¬ÆÀ°Õ¤Ç¤Ê¤¤Êý¤Ï &a.doc-jp; ¤Þ¤ÇÆüËܸì¤Ç ¥³¥á¥ó¥È¤ò¤ª´ó¤»¤¯¤À¤µ¤¤.

¤Þ¤¿, ¤³¤Î FreeBSD FAQ ¤È¤ÏÊ̤Ë, ÆüËܤΠFreeBSD ¥æ¡¼¥¶Í­»Ö¤Ë¤è¤Ã¤Æ ¥á¡¼¥ê¥ó¥°¥ê¥¹¥È ¤ä ¥Ë¥å¡¼¥¹¥°¥ë¡¼¥× ¤Ê¤É¤Ø¤ÎÅê¹Æ ¤ò¤â¤È¤ËºîÀ®¤µ¤ì¤¿ ¤¬¸ø³«¤µ¤ì¤Æ¤¤¤Þ¤¹. ÆÃ¤ËÆüËܸì´Ä¶­¤Ê¤ÉÆüËܸÇÍ­¤ÎÏÃÂê ¤¬½¼¼Â¤·¤Æ¤¤¤Þ¤¹¤Î¤Ç, ¤³¤Á¤é¤â¹ç¤ï¤»¤Æ¤´Í÷¤¯¤À¤µ¤¤. &preface; &install; &hardware; &troubleshoot; &commercial; &applications; &kernelconfig; &admin; &x; &network; &serial; &misc; &hackers; &acknowledgments; &jcontrib;

diff --git a/ja_JP.eucJP/books/faq/book.sgml b/ja_JP.eucJP/books/faq/book.sgml index ab59acb095..33b6f81911 100644 --- a/ja_JP.eucJP/books/faq/book.sgml +++ b/ja_JP.eucJP/books/faq/book.sgml @@ -1,8452 +1,8452 @@ FreeBSD 2.X ¤Ë¤Ä¤¤¤Æ¤Î FAQ (¤è¤¯¤¢¤ë¼ÁÌä¤È¤½¤ÎÅú¤¨) The FreeBSD Documentation Project -$Date: 1999-08-18 22:18:16 $ +$FreeBSD$ ¤³¤ì¤Ï FreeBSD ¥·¥¹¥Æ¥à¥Ð¡¼¥¸¥ç¥ó 2.X ¤Ë¤Ä¤¤¤Æ¤Î FAQ ¤Ç¤¹. ÆÃ¤ËÃǤï¤ê¤¬¤Ê¤¤¸Â¤ê¤Ï¤É¤Î¹àÌܤâ FreeBSD 2.0.5 °Ê¹ß¤Î¤â¤Î¤òÁÛÄꤷ¤Æ¤¤¤Þ¤¹. <XXX>¤Î¤Ä¤¤¤Æ¤¤¤ë¹àÌܤϤޤÀºî¶ÈÃæ¤Î¤â¤Î¤Ç¤¹. ¤³¤Î FreeBSD ¥É¥­¥å¥á¥ó¥Æ¡¼¥·¥ç¥ó ¥×¥í¥¸¥§¥¯¥È¤Ë¶¨ÎϤ·¤¿¤¤¤È»×¤Ã¤¿¤é, FreeBSD ¥É¥­¥å¥á¥ó¥Æ¡¼¥·¥ç¥ó¥×¥í¥¸¥§¥¯¥È¥á¡¼¥ê¥ó¥°¥ê¥¹¥È <freebsd-doc@FreeBSD.ORG> ¤Þ¤Ç (±Ñ¸ì¤Ç) ÅŻҥ᡼¥ë¤òÁ÷¤Ã¤Æ¤¯¤À¤µ¤¤. ¤³¤Î¥É¥­¥å¥á¥ó¥È¤ÎºÇ¿·¥Ð¡¼¥¸¥ç¥ó¤Ï, ¤¤¤Ä¤Ç¤â ÆüËܹñÆâÈÇ FreeBSD World Wide Web ¥µ¡¼¥Ð¤ä FreeBSD World Wide Web ¥µ¡¼¥Ð¤Ç ¸«¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. ¤Þ¤¿, HTML ·Á¼°¤Î¤â¤Î¤ò HTTP ¤Ç ¥À¥¦¥ó¥í¡¼¥É¤¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹. ¤³¤ì¤é¤ò gzip ¤Ç°µ½Ì¤·¤¿¤â¤Î¤¬ FreeBSD FTP ¥µ¡¼¥Ð ¤ËÃÖ¤«¤ì¤Æ¤¤¤Þ¤¹. ¤Þ¤¿, FAQ ¤Î¸¡º÷¤â²Äǽ¤Ç¤¹. ÆüËܸìÈǤκîÀ®¤Ï FreeBSD ÆüËܸì¥É¥­¥å¥á¥ó¥Æ¡¼¥·¥ç¥ó¥×¥í¥¸¥§¥¯¥È¤¬ ¥ª¥ê¥¸¥Ê¥ë¤Î±Ñ¸ìÈǤò¤â¤È¤Ë¤·¤Æ¤ª¤³¤Ê¤Ã¤Æ¤¤¤Þ¤¹. ÆüËܸìÌõ¤ª¤è¤Ó, ÆüËܸìÈǤΤߤ˴ؤ¹¤ë¤³¤È¤Ï FreeBSD ÆüËܸì¥É¥­¥å¥á¥ó¥Æ¡¼¥·¥ç¥ó¥×¥í¥¸¥§¥¯¥È <doc-jp@jp.FreeBSD.ORG> ¤Ë¤ª¤¤¤ÆÆüËܸì¤ÇµÄÏÀ¤µ¤ì¤Æ¤¤¤Þ¤¹. ɬÍפ˱þ¤¸¤ÆÆüËܸì¥É¥­¥å¥á¥ó¥Æ¡¼¥·¥ç¥ó¥×¥í¥¸¥§¥¯¥È¤«¤é Ëܲȥɥ­¥å¥á¥ó¥Æ¡¼¥·¥ç¥ó¥×¥í¥¸¥§¥¯¥È¤ËÂФ·¤Æ¥Õ¥£¡¼¥É¥Ð¥Ã¥¯¤ò ¤ª¤³¤Ê¤¤¤Þ¤¹¤Î¤Ç, ±Ñ¸ì¤¬ÆÀ°Õ¤Ç¤Ê¤¤Êý¤Ï FreeBSD ÆüËܸì¥É¥­¥å¥á¥ó¥Æ¡¼¥·¥ç¥ó¥×¥í¥¸¥§¥¯¥È <doc-jp@jp.FreeBSD.ORG> ¤Þ¤ÇÆüËܸì¤Ç ¥³¥á¥ó¥È¤ò¤ª´ó¤»¤¯¤À¤µ¤¤. ¤Þ¤¿, ¤³¤Î FreeBSD FAQ ¤È¤ÏÊ̤Ë, ÆüËܤΠFreeBSD ¥æ¡¼¥¶Í­»Ö¤Ë¤è¤Ã¤Æ ¥á¡¼¥ê¥ó¥°¥ê¥¹¥È FreeBSD-users-jp ¤ä ¥Ë¥å¡¼¥¹¥°¥ë¡¼¥× fj.os.bsd.freebsd ¤Ê¤É¤Ø¤ÎÅê¹Æ ¤ò¤â¤È¤ËºîÀ®¤µ¤ì¤¿ QandA ¤¬¸ø³«¤µ¤ì¤Æ¤¤¤Þ¤¹. ÆÃ¤ËÆüËܸì´Ä¶­¤Ê¤ÉÆüËܸÇÍ­¤ÎÏÃÂê ¤¬½¼¼Â¤·¤Æ¤¤¤Þ¤¹¤Î¤Ç, ¤³¤Á¤é¤â¹ç¤ï¤»¤Æ¤´Í÷¤¯¤À¤µ¤¤. ¤Þ¤¨¤¬¤­ Ìõ: ¤¯¤ê¤ä¤Þ <kuriyama@opt.phys.waseda.ac.jp>, ²Ö°æ ¹ÀÇ· <hanai@jp.FreeBSD.org>, Ãæ°æ ¹¬Çî <nakai@mlab.t.u-tokyo.ac.jp>, º£Ìî ¸µÇ· <motoyuki@jp.FreeBSD.ORG>, ¿ù¼ µ®»Î <sugimura@jp.FreeBSD.org>. 5 November 1997. FreeBSD 2.X FAQ ¤Ø¤è¤¦¤³¤½! ¤³¤Î FAQ ¤ÎÌÜŪ¤Ï? Usenet ¤Î FAQ ¤¬¤½¤¦¤Ç¤¢¤ë¤è¤¦¤Ë, ¤³¤Îʸ½ñ¤â FreeBSD ¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à¤Ë´Ø¤·¤ÆÉÑÈˤ˿Ҥͤé¤ì¤ë¼ÁÌä¤ò ÌÖÍ夹¤ë¤³¤È¤òÌÜŪ¤È¤·¤Æ¤¤¤Þ¤¹ (¤â¤Á¤í¤ó¤½¤ì¤ËÂФ¹¤ëÅú¤¨¤â!). FAQ ¤ÏËÜÍè¥Ð¥ó¥ÉÉý¤ò¸º¤é¤·, Ʊ¤¸¼ÁÌ䤬²¿Å٤ⷫ¤êÊÖ¤µ¤ì¤ë¤Î¤ò Èò¤±¤ë¤¿¤á¤Ëºî¤é¤ì¤¿¤â¤Î¤Ç¤¹¤¬, ºÇ¶á¤ÏÍ­ÍѤʾðÊó¸»¤È ¸«¤Ê¤µ¤ì¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤­¤Þ¤·¤¿. ¤³¤Î FAQ ¤ò¤Ç¤­¤ë¸Â¤êÍ­ÍѤʤâ¤Î¤Ë¤·¤è¤¦¤È, ¤¢¤é¤æ¤ëÅØÎϤ¬ ¤Ï¤é¤ï¤ì¤Æ¤¤¤Þ¤¹. ¤â¤·²¿¤«¤·¤é¤Î²þÁ±°Æ¤¬É⤫¤ó¤À¤é, ¤¼¤Ò FAQ ´ÉÍý¼Ô ¤Þ¤Ç ¥á¡¼¥ë¤òÁ÷¤Ã¤Æ¤¯¤À¤µ¤¤. FreeBSD ¤Ã¤Æ²¿? FreeBSD 2.X ¤Ï¥«¥ê¥Õ¥©¥ë¥Ë¥¢Âç³Ø¥Ð¡¼¥¯¥ì¥¤¹»¤¬ i386 ·Ï¤Î ¥×¥é¥Ã¥È¥Õ¥©¡¼¥à¸þ¤±¤Ë¥ê¥ê¡¼¥¹¤·¤¿ 4.4BSD-lite ¤ò¤â¤È¤Ë¤·¤¿ UN*X ¥é¥¤¥¯¤Ê¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à¤Ç¤¹. ´ÖÀÜŪ¤Ë¤ÏƱ¤¸ ¥Ð¡¼¥¯¥ì¥¤¹»¤Î Net/2 ¤ò William Jolitz ¤¬ i386 ·Ï¤Ë°Ü¿¢¤·¤¿ 386BSD ¤â´ð¤Ë¤·¤Æ¤¤¤Þ¤¹¤¬, 386BSD ¤Î¥³¡¼¥É¤Ï¤Û¤È¤ó¤É»Ä¤Ã¤Æ ¤¤¤Þ¤»¤ó. FreeBSD ¤Ë¤Ä¤¤¤Æ¤Î¾ÜºÙ¤È, ²¿¤¬¤Ç¤­¤ë¤«¤Ë¤Ä¤¤¤Æ¤Ï FreeBSD ¤Î¥Û¡¼¥à¥Ú¡¼¥¸ ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤. FreeBSD ¤Ï´ë¶È¤ä¥¤¥ó¥¿¡¼¥Í¥Ã¥È¥µ¡¼¥Ó¥¹¥×¥í¥Ð¥¤¥À, ¸¦µæ¼Ô, ¥³¥ó¥Ô¥å¡¼¥¿ÀìÌç²È, ³ØÀ¸, ²ÈÄí¤Î¥æ¡¼¥¶¤Ê¤É¤Ë¤è¤ê, ¶È̳¤ä¶µ°é, ¸ä³Ú¤ËÍѤ¤¤é¤ì¤Æ¤¤¤Þ¤¹. ¤³¤ì¤é¤Ë´Ø¤·¤Æ¤Ï FreeBSD ¥®¥ã¥é¥ê¡¼ ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤. FreeBSD ¤Ë´Ø¤¹¤ë¤è¤ê¾Ü¤·¤¤¾ðÊó¤Ï FreeBSD ¥Ï¥ó¥É¥Ö¥Ã¥¯ ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤. FreeBSD ¤¬Ìܻؤ·¤Æ¤¤¤ë¤â¤Î FreeBSD ¥×¥í¥¸¥§¥¯¥È¤ÎÌÜŪ¤Ï, ¤¤¤«¤Ê¤ëÍÑÅӤˤâ»ÈÍѤǤ­, ²¿¤é À©¸Â¤Î¤Ê¤¤¥½¥Õ¥È¥¦¥§¥¢¤ò¶¡µë¤¹¤ë¤³¤È¤Ç¤¹. »ä¤¿¤Á¤Î¿¤¯¤Ï, ¥³¡¼¥É (¤½¤·¤Æ¥×¥í¥¸¥§¥¯¥È) ¤ËÂФ·¤Æ¤«¤Ê¤ê¤ÎÅê»ñ¤ò¤·¤Æ¤­¤Æ¤ª¤ê, ¤³¤ì¤«¤é¤â¿¾¯¤ÎÂå½þ¤Ï¤¢¤Ã¤Æ¤âÅê»ñ¤ò³¤±¤Æ¹Ô¤¯¤Ä¤â¤ê¤Ç¤¹. ¤¿¤À, ¾¤Î¿Íã¤Ë¤âƱ¤¸¤è¤¦¤ÊÉéô¤ò¤¹¤ë¤è¤¦¤Ë¼çÄ¥¤·¤Æ¤¤¤ë ¤ï¤±¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó. FreeBSD ¤Ë¶½Ì£¤ò»ý¤Ã¤Æ¤¤¤ë°ì¿Í»Ä¤é¤º Á´¤Æ¤Î¿Í¡¹¤Ë, ÌÜŪ¤ò¸ÂÄꤷ¤Ê¤¤¤Ç¥³¡¼¥É¤òÄ󶡤¹¤ë¤³¤È. ¤³¤ì¤¬, »ä¤¿¤Á¤ÎºÇ½é¤Î¤½¤·¤ÆºÇÂç¤Î¡ÖǤ̳¡×¤Ç¤¢¤ë¤È¿®¤¸¤Æ ¤¤¤Þ¤¹. ¤½¤¦¤¹¤ì¤Ð, ¥³¡¼¥É¤Ï²Äǽ¤Ê¸Â¤ê¹­¤¯»È¤ï¤ì, ºÇÂç¤Î ²¸·Ã¤ò¤â¤¿¤é¤¹¤³¤È¤¬¤Ç¤­¤ë¤Ç¤·¤ç¤¦. ¤³¤ì¤¬, »ä¤¿¤Á¤¬Ç®Îõ¤Ë »Ù»ý¤·¤Æ¤¤¤ë¥Õ¥ê¡¼¥½¥Õ¥È¥¦¥§¥¢¤ÎºÇ¤â´ðËÜŪ¤ÊÌÜŪ¤Ç¤¢¤ë¤È, »ä¤Ï¿®¤¸¤Æ¤¤¤Þ¤¹. »ä¤¿¤Á¤Î¥½¡¼¥¹¥Ä¥ê¡¼¤Ë´Þ¤Þ¤ì¤ë¥½¡¼¥¹¤Î¤¦¤Á, GNU °ìÈ̸øÍ­»ÈÍѵöÂú (GPL) ¤Þ¤¿¤Ï GNU ¥é¥¤¥Ö¥é¥ê °ìÈ̸øÍ­»ÈÍѵöÂú (GLPL) ¤Ë½¾¤Ã¤Æ¤¤¤ë¤â¤Î¤Ë¤Ä¤¤¤Æ¤Ï, ¿¾¯À©¸Â¤¬ ²Ê¤µ¤ì¤Æ¤¤¤Þ¤¹. ¤¿¤À¤·, ¥½¡¼¥¹¥³¡¼¥É¤Ø¤Î¥¢¥¯¥»¥¹¤Î ÊݾڤȤ¤¤¦, °ìÈ̤ÎÀ©¸Â¤È¤Ï¤¤¤ï¤ÐµÕ¤ÎÀ©¸Â (ÌõÃí1) ¤Ç¤¹. ¤¿¤À¤· GPL ¥½¥Õ¥È¥¦¥§¥¢¤ò¾¦ÍѤÇÍøÍѤ¹¤ë¾ì¹ç, ¤µ¤é¤ËÊ£»¨¤Ë¤Ê¤ë¤Î¤Ï Èò¤±¤é¤ì¤Þ¤»¤ó. ¤½¤Î¤¿¤á, ¤½¤ì¤é¤Î¥½¥Õ¥È¥¦¥§¥¢¤ò, ¤è¤êÀ©¸Â¤Î ¾¯¤Ê¤¤ BSD Ãøºî¸¢¤Ë½¾¤Ã¤¿¥½¥Õ¥È¥¦¥§¥¢¤ÇÃÖ¤­´¹¤¨¤ëÅØÎϤò, ²Äǽ¤Ê¸Â¤êÆü¡¹Â³¤±¤Æ¤¤¤Þ¤¹. (ÌõÃí1) GPL ¤Ç¤Ï, ¡Ö¥½¡¼¥¹¥³¡¼¥É¤ò¼ÂºÝ¤Ë¼õ¤±¼è¤ë¤«, ¤¢¤ë¤¤¤Ï, ´õ˾¤·¤µ¤¨¤¹¤ì¤Ð¤½¤ì¤òÆþ¼ê¤¹¤ë¤³¤È¤¬²Äǽ¤Ç¤¢¤ë¤³¤È¡×¤òµá¤á¤Æ¤¤¤Þ¤¹. ¤É¤¦¤·¤Æ FreeBSD ¤È¸Æ¤Ð¤ì¤Æ¤¤¤ë¤Î¤Ç¤¹¤«? ̵ÎÁ (free) ¤Ç»È¤¦¤³¤È¤¬¤Ç¤­¤ë (¾¦ÍøÍѤâ´Þ¤à). ¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à¤Î´°Á´¤Ê¥½¡¼¥¹¥³¡¼¥É¤¬¼«Í³¤Ë (freely) ¼ê¤ËÆþ¤ê, ¾¦ÍøÍÑ¡¦Èó¾¦ÍøÍѤˤ«¤«¤ï¤é¤º, ºÇÄã¸Â¤ÎÀ©¸Â¤Ç¾¤Î»Å»ö¤Ø¤ÎÍøÍÑ, ÇÛÉÛ, ƳÆþ¤¬²Äǽ. ²þÎɤä¥Ð¥°¥Õ¥£¥Ã¥¯¥¹¤¬¤¢¤ë¾ì¹ç, ï¤Ç¤â (free) ¤½¤Î ¥³¡¼¥É¤òÄó½Ð¤Ç¤­, ¥½¡¼¥¹¥Ä¥ê¡¼¤Ë²Ã¤¨¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹ (¤¤¤¯¤Ä¤«¤Î´Êñ¤Ê¾ò·ï¤Ë¤Ï½¾¤Ã¤Æ¤â¤é¤¤¤Þ¤¹). Êì¹ñ¸ì¤¬±Ñ¸ì¤Ç¤Ê¤¤ÆÉ¼Ô¤Î¤¿¤á¤Ë, ¤³¤³¤Ç¤Ï ``free'' ¤È¤¤¤¦Ã±¸ì¤¬ ÆóÄ̤ê¤ËÍѤ¤¤é¤ì¤Æ¤¤¤ë¤³¤È¤ò»ØÅ¦¤·¤Æ¤ª¤¯¤È¤ï¤«¤ê¤ä¤¹¤¤¤«¤â ¤·¤ì¤Þ¤»¤ó. ¤Ò¤È¤Ä¤Ï¡Ö̵ÎÁ¤Ç¤¢¤ë¡×¤È¤¤¤¦¤³¤È, ¤â¤¦¤Ò¤È¤Ä¤Ï ¡Ö¼«Ê¬¤Î¤ä¤ê¤¿¤¤¤è¤¦¤Ë¤Ç¤­¤ë¡×¤È¤¤¤¦¤³¤È¤Ç¤¹. FreeBSD ¤Î¥³¡¼¥É¤Ç ¤Ç¤­¤Ê¤¤ ¤¤¤¯¤Ä¤«¤Î¤³¤È (¼«Ê¬¤¬½ñ¤¤¤¿¤â¤Î¤À¤Èµ¶¤ë¤Ê¤É) ¤ò ½ü¤±¤Ð, ¤¢¤Ê¤¿¤Ï¼«Ê¬¤Î¤ä¤ê¤¿¤¤¤³¤È¤ò¤ä¤ë¤³¤È¤¬²Äǽ¤Ê¤Î¤Ç¤¹. FreeBSD ¤ÎºÇ¿·¥Ð¡¼¥¸¥ç¥ó¤Ï? 3.1 ¤¬ºÇ¿·¤Î stable ¥Ð¡¼¥¸¥ç¥ó¤Ç, 1999 ǯ 2 ·î¤Ë¥ê¥ê¡¼¥¹¤µ¤ì¤Þ¤·¤¿. ¤Þ¤¿, ¤³¤ì¤ÏºÇ¿·¤Î release ¥Ð¡¼¥¸¥ç¥ó¤Ç¤â¤¢¤ê¤Þ¤¹. ´Êñ¤Ë¸À¤Ã¤Æ¤·¤Þ¤¦¤È, -stable ¤ÏºÇ¿·¤Î -current ¤Î¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¤Î¤¹¤Ð¤é¤·¤¤¿·µ¡Ç½¤Î¿ô¡¹¤è¤ê¤â, °ÂÄêÀ­¤ÈÊѹ¹²ó¿ô¤Î ¾¯¤Ê¤µ¤ò¹¥¤à ISP ¤ä¾¤Î´ë¶È¤Î¥æ¡¼¥¶¤ò¥¿¡¼¥²¥Ã¥È¤Ë¤·¤Æ¤¤¤Þ¤¹. FreeBSD-current¤Ã¤Æ²¿? FreeBSD-current ¤Ï ¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à¤Î¤Î³«È¯¥Ð¡¼¥¸¥ç¥ó¤Ç, ¤ä¤¬¤Æ 4.0-RELEASE ¤È¤Ê¤ê¤Þ¤¹. ¤è¤Ã¤Æ¤³¤ì¤Ï, ¤½¤³¤Ë·È¤ï¤Ã¤Æ¤¤¤ë³«È¯¼Ô¤ä, ¤É¤ó¤Ê¾ã³²¤ò¤â¾è¤ê±Û¤¨¤Æ¤¤¤±¤ë¥¿¥Õ¤Ê°¦¹¥²È¤¿¤Á¤Ë¤È¤Ã¤Æ¤Î¤ß ¶½Ì£¿¼¤¤¤â¤Î¤Ç¤¹. -current ¤Î»ÈÍѤ˺ݤ·¤Æ¤Î¾ÜºÙ¤Ï ¥Ï¥ó¥É¥Ö¥Ã¥¯ ¤Î ´ØÏ¢¤¹¤ë¥»¥¯¥·¥ç¥ó ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤. ¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à¤ËÆëÀ÷¤ß¤¬¤Ê¤¤¾ì¹ç¤ä°ì»þŪ¤ÊÌäÂ꤫ ËÜʪ¤ÎÌäÂ꤫¤ò¸«¶Ë¤á¤ëǽÎϤ¬¤Ê¤¤¾ì¹ç¤Ï, FreeBSD-current ¤ò »È¤¦¤Ù¤­¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó. ¤³¤Î¥Ö¥é¥ó¥Á¤Ï»þ¡¹µÞ·ã¤Ë³ÈÄ¥¤µ¤ì¤¿¤ê, ¥Ó¥ë¥É¤Ç¤­¤Ê¤¤¾õÂ֤ˤʤ뤳¤È¤â¤Á¤ç¤Ã¤Á¤å¤¦¤¢¤ê¤Þ¤¹. FreeBSD-current ¤ò»È¤¦¿Í¤Ï, ÌäÂê¤òʬÀϤ·¤Æ¡Ö¾®¤µ¤Ê·ç´Ù¡×¤Ç¤Ï ¤Ê¤¯´Ö°ã¤¤¤Ç¤¢¤ë¤È»×¤ï¤ì¤ë¤â¤Î¤À¤±¤òÊó¹ð¤Ç¤­¤ë¤â¤Î¤ÈÁÛÄꤵ¤ì ¤Æ¤¤¤Þ¤¹. ¡Ömake world ¤·¤¿¤é group ´Ø·¸¤Ç¥¨¥é¡¼¤¬¤Ç¤Þ¤·¤¿¡× ¤Î¤è¤¦¤Ê¼ÁÌä¤Ï -current ¥á¡¼¥ê¥ó¥°¥ê¥¹¥È¤Ç¤Ï·ÚÊΤδ㺹¤·¤Ç ¤¢¤·¤é¤ï¤ì¤ë¤³¤È¤â¤¢¤ê¤Þ¤¹. »þ¤¿¤Þ, -current ¤Î³«È¯¥³¡¼¥É¤«¤é snapshot ¤¬ºîÀ®¤µ¤ì, snapshot ¤ÎÃæ¤«¤é¤Ï ÇÛÉÛ CD-ROM ¤¬ºîÀ®¤µ¤ì¤ë¤³¤È¤â¤¢¤ê¤Þ¤¹. ¤½¤ì¤¾¤ì¤Î snapshot ¤Ë¤Ï°Ê²¼¤Î¤è¤¦¤ÊÌÜŪ¤¬¤¢¤ê¤Þ¤¹: ¥¤¥ó¥¹¥È¡¼¥ë¥×¥í¥°¥é¥à¤ÎºÇ¿·ÈǤΥƥ¹¥È. »î¤·¤Æ¤ß¤¿¤¤¤±¤ì¤É, ´ðÁÃŪ¤Ê½ê¤«¤éËèÆüÊѤï¤ë¤è¤¦¤Ê ¤â¤Î¤òÄɤ¤¤«¤±¤ë»þ´Ö¤â¥Ð¥ó¥ÉÉý¤â̵¤¤, ¤È¤¤¤¦¿Í¤Ë¤â -current ¤ò»È¤¨¤ë¤è¤¦¤Ë¤¹¤ë. ¤Þ¤¿, ¤½¤Î¤è¤¦¤Ê¿Í¤¿¤Á ¤Î¥·¥¹¥Æ¥à°Ü¹Ô¤Î¤¿¤á¤Î¼ê¤Ã¼è¤êÁᤤÊýË¡¤òÄ󶡤¹¤ë. ¤¢¤È¤Ç¤È¤ó¤Ç¤â¤Ê¤¤¤³¤È¤ò¤·¤Æ¤·¤Þ¤Ã¤¿»þ¤Î¤¿¤á¤Ë, ÌäÂê¤È¤Ê¤ë¥³¡¼¥É¤ÎÆÃÄê¤Î»²¾È´ð½àÅÀ¤òÊݸ¤·¤Æ¤ª¤¯. (Ä̾ï¤Ï CVS ¤¬¤³¤¦¤¤¤¦¥Ï¥×¥Ë¥ó¥°¤Î¤è¤¦¤Ê¶²¤í¤·¤¤»öÂÖ¤òËɻߤ·¤Æ ¤¤¤ë¤ó¤Ç¤¹¤±¤É¤Í :) ¥Æ¥¹¥È¤¬É¬Íפʿ·¤·¤¤µ¡Ç½¤ò, ¤Ç¤­¤ë¸Â¤ê¿¤¯¤Î ±£¤ì¥Æ¥¹¥¿¡¼¤Ë»î¤·¤Æ¤â¤é¤¦. ¤É¤ó¤ÊÌÜŪ¤Ç¤¢¤ì, snapshot ¤¬¡ÖÀ½ÉÊ¥ì¥Ù¥ë¤ÎÉʼÁ¡×¤Ç¤¢¤ë¤È¤Î¹Í¤¨¤Ë ´ð¤Å¤¯Í×µá¤Ï¹Ô¤ï¤Ê¤¤¤Ç¤¯¤À¤µ¤¤. °ÂÄêÀ­¤ä¥Æ¥¹¥È½½Ê¬À­¤Ë¤³¤À¤ï¤ë¿Í¤Ï ´°Á´¤Ê¥ê¥ê¡¼¥¹¤«¤éÎ¥¤ì¤Æ¤Ï¤¤¤±¤Þ¤»¤ó. 4.0-current ¤ª¤è¤Ó 3.0-stable ¥Ö¥é¥ó¥ÁξÊý¤Î snapshot ¤Ï, Ê¿¶ÑŪ¤Ë°ìÆü¤Ë°ìÅÙÀ¸À®¤µ¤ì¤Æ¤ª¤ê, ftp://current.freebsd.org/pub/FreeBSD/ ¤«¤éľÀÜÆþ¼ê¤¹¤ë¤³¤È¤¬ ¤Ç¤­¤Þ¤¹. FreeBSD-stable ¤Î¥³¥ó¥»¥×¥È¤Ã¤Æ²¿? FreeBSD 2.0.5 ¤¬¥ê¥ê¡¼¥¹¤µ¤ì¤¿¸å, »ä¤¿¤Á¤Ï FreeBSD ¤Î³«È¯¤ò 2 ·ÏÅý¤Ëʬ³ä¤¹¤ë¤³¤È¤Ë¤·¤Þ¤·¤¿. °ì¤Ä¤Ï -stable ¤È¤¤¤¦¥Ö¥é¥ó¥Á¤Ç, ¥Ð¥°¤Î½¤Àµ¤Ï¤·¤Ã¤«¤ê¥Æ¥¹¥È¤µ¤ì, µ¡Ç½¤Î¶¯²½¤Ï¾¯¤·¤º¤Ä¤·¤«¹Ô¤ï¤ì¤Þ¤»¤ó (µÞ¤ÊÊѹ¹¤ä¼Â¸³Åªµ¡Ç½¤ò˾¤Þ¤Ê¤¤, ¥¤¥ó¥¿¡¼¥Í¥Ã¥È¥µ¡¼¥Ó¥¹¥×¥í¥Ð¥¤¥À¤ä±ÄÍø´ë¶È¸þ¤±). ¤â¤¦°ìÊý¤Î¥Ö¥é¥ó¥Á¤Ï -current ¤Ç, 2.0 ¤¬¥ê¥ê¡¼¥¹¤µ¤ì¤Æ°ÊÍè 4.0-RELEASE (¤½¤·¤Æ¤½¤Î¸å¤â) ¤Ø¸þ¤±¤ÆÌ®¡¹¤È ³¤¤¤Æ¤¤¤ë¤â¤Î¤Ç¤¹. ASCII ¤ÇÉÁ¤¤¤¿´Êñ¤Ê¿Þ¤¬¤ï¤«¤ê¤ä¤¹¤¤¤«¤Ï¼«¿®¤¬¤¢¤ê¤Þ¤»¤ó¤¬, ¤³¤ó¤Ê´¶¤¸¤Ë¤Ê¤ê¤Þ¤¹: 2.0 | | | [2.1-stable] *BRANCH* 2.0.5 -> 2.1 -> 2.1.5 -> 2.1.6 -> 2.1.7.1 [2.1-stable ½ªÎ»] | (1997ǯ3·î) | | | [2.2-stable] *BRANCH* 2.2.1 -> 2.2.2-RELEASE -> 2.2.5 -> 2.2.6 -> 2.2.7 -> 2.2.8 [½ªÎ»] | (1997ǯ3·î) (97ǯ10·î) (98ǯ4·î)(98ǯ7·î)(98ǯ12·î) | | 3.0-SNAPs (1997ǯÂè°ì»ÍȾ´ü³«»Ï) | | 3.0.0-RELEASE (1998ǯ10·î) | | [3.0-stable] *BRANCH* 3.1 (Feb 1999) -> ... º£¸å¤Î 3.x ¥ê¥ê¡¼¥¹·² ... | | \|/ + [4.0-current ¤È¤·¤Æ·ÑÂ³Ãæ] -current ¥Ö¥é¥ó¥Á¤Ï 4.0 ¤È¤½¤ÎÀè¤Ø¸þ¤±¤Æ¤æ¤Ã¤¯¤ê¤È¿Ê²½¤ò³¤±¤Æ¤ª¤ê, °ÊÁ°¤Î 2.2-stable ¥Ö¥é¥ó¥Á¤¬ 2.2.8 ¤Î¥ê¥ê¡¼¥¹¤ò¤â¤Ã¤Æ½ªÎ»¤·¤Þ¤·¤¿. 3.0-stable ¤¬¤½¤ì¤ËÂØ¤ê, ¼¡¤Î¥ê¥ê¡¼¥¹ 3.1 ¤¬ 1999ǯ½éƬ¤ËͽÄꤵ¤ì¤Æ¤¤¤Þ¤¹. 4.0-current ¤¬¸½ºß¤Î "current branch" ¤Ç¤¢¤ê, ºÇ½é¤Î 4.0 ·ÏÎó¤Î ¥ê¥ê¡¼¥¹¤Ï 2000ǯÂè°ì»ÍȾ´ü¤ÎͽÄê¤Ç¤¹. 2.1-stable ¥Ö¥é¥ó¥Á¤¬ 2.1.7.1 ¤Ç½ª¤ï¤Ã¤¿¤Î¤Ï¤Ê¤¼¤Ç¤¹¤«? »°¤Ä¤Î¥Ö¥é¥ó¥Á¤Î³«È¯¤ò³¤±¤¿¤¤¤Î¤Ï¤ä¤Þ¤ä¤Þ¤Ê¤Î¤Ç¤¹¤¬, »Äǰ¤Ê¤¬¤é ¤³¤Î¤è¤¦¤Ê¾õ¶·¤ò¸úΨŪ¤Ë°·¤¨¤ë¥Ð¡¼¥¸¥ç¥ó´ÉÍý¥Ä¡¼¥ë¤¬¤Þ¤À ¸ºß¤·¤Ê¤¤¤Î¤Ç¤¹. ¸½ºß²æ¡¹¤¬»È¤Ã¤Æ¤¤¤ë¥Ä¡¼¥ë¤Ç, Ê£¿ô¤Î¥Ö¥é¥ó¥Á¤ò¿ô¥ö·î°Ê¾å¤Î Ĺ´ü´Ö¤ËÅϤäÆÊ¹Ԥ·¤Æ¥Ð¡¼¥¸¥ç¥ó´ÉÍý¤·Â³¤±¤ë¤³¤È¤Ï, ¤Þ¤µ¤Ë °­Ì´¤Î¤è¤¦¤Êºî¶È¤Ê¤Î¤Ç¤¹. °ìÊý¤Ç 2.1-stable ¥Ö¥é¥ó¥Á¤Ï°ìǯ°Ê¾å¤â³¤¤¤Æ¤¤¤Þ¤¹¤«¤é, FreeBSD ¤Î³«È¯¼Ô¤¿¤Á¤Îºî¶È¤ÎÂçÊѤµ¤ò¹Í¤¨¤ë¤È, ¤³¤Î¤Þ¤Þ·Ñ³¤¹¤ë¤³¤È¤Ï ¿¼¹ï¤ÊÌäÂê¤Ë´Ù¤ê¤«¤Í¤Þ¤»¤ó. ¤ª¤½¤é¤¯¤ß¤ó¤Ê¤¬Ë¾¤à¤â¤Î¤òÄ󶡤·¤Æ¤¯¤ì¤ë¤è¤¦¤ÊÊýË¡¤¬¤½¤Î¤¦¤Á ¹Í¤¨½Ð¤µ¤ì¤ë¤Ç¤·¤ç¤¦¤·, ¤Þ¤¿, ²æ¡¹¤â¤½¤Î¤è¤¦¤ÊÊýË¡¤Ë¤Ä¤¤¤Æ ¸¡Æ¤Ãæ¤Ê¤Î¤Ç¤¹¤¬, ¸½¾õ¤Ç¤Ï¸Å¤¤ -stable ¥Ö¥é¥ó¥Á¤ò 2.1.7.1-RELEASE (2.1.7 ¤Î¸å¤ÎºÇ½ª¥ê¥ê¡¼¥¹) ¤Ç½ªÎ»¤·, 2.2.2 ¤«¤é¤ò¿·¤¿¤Ê -stable ¤È¤¹¤ë¤³¤È¤¬ ºÇÁ±¤Î¼êÃʤǤ¢¤ë¤È¹Í¤¨¤Æ¤¤¤Þ¤¹. FreeBSD ¤Î¥ê¥ê¡¼¥¹¤Ï¤¤¤Äºî¤é¤ì¤ë¤Î¤Ç¤¹¤«? ¸¶Â§Åª¤Ë¤Ï, FreeBSD ¥³¥¢¥Á¡¼¥à¤Ï¿·¤·¤¤µ¡Ç½¤ä¥Ð¥°¥Õ¥£¥Ã¥¯¥¹¤¬ ½¼Ê¬½¸¤Þ¤ê, ¥ê¥ê¡¼¥¹¤Î°ÂÄêÀ­¤ò»¤Ê¤¦¤³¤È¤¬Ìµ¤¤¤è¤¦¤Ë¤µ¤Þ¤¶¤Þ ¤ÊÊѹ¹¤¬½½Ê¬¤Ë°ÂÄꤷ¤Æ¤¤¤ë¤È¤¤¤¦¾ò·ï¤òËþ¤¿¤·¤Æ¤¤¤ë¾ì¹ç¤Ë¤Î¤ß, ¿·¤·¤¤¥Ð¡¼¥¸¥ç¥ó¤Î FreeBSD ¤ò¥ê¥ê¡¼¥¹¤·¤Þ¤¹. ¤¿¤È¤¨¤³¤ÎÍÑ¿´¿¼¤µ¤¬¿·¤·¤¤µ¡Ç½¤¬»È¤¨¤ë¤è¤¦¤Ë¤Ê¤ë¤³¤È¤ò ÂÔ¤Á˾¤ó¤Ç¤¤¤ë¥æ¡¼¥¶¤òÍßµáÉÔËþ¤Ë¤µ¤»¤ë¤È¤·¤Æ¤â, ¿¤¯¤Î¥æ¡¼¥¶¤Ï ¤³¤Î¤³¤È¤ò FreeBSD ¤ÎºÇ¤âÎɤ¤½ê¤Î°ì¤Ä¤À¤È¹Í¤¨¤Æ¤¤¤Þ¤¹. Ê¿¶ÑŪ¤Ë¤Ï, ¤À¤¤¤¿¤¤ 4 ¥ö·î¤´¤È¤Ë¥ê¥ê¡¼¥¹¤¬ºîÀ®¤µ¤ì¤Þ¤¹. ¤â¤¦¾¯¤·»É·ã¤¬Íߤ·¤¤ (¤¢¤ë¤¤¤ÏÂÔ¤Á±ó¤·¤¤) Êý¡¹¸þ¤±¤Ë SNAP ¤È¤¤¤¦¤â¤Î¤¬Â¸ºß¤·, ¤³¤ì¤ÏÆÃ¤Ë¥ê¥ê¡¼¥¹¤Ë¶áÉÕ¤¤¤Æ¤­¤¿¿ô¥ö·î ¤°¤é¤¤¤Î´ü´Ö¤Ë¤è¤êÉÑÈˤ˸ø³«¤µ¤ì¤Þ¤¹. FreeBSD ¤Ï PC ÍѤÀ¤±¤·¤«¤Ê¤¤¤Î? ¸½ºß FreeBSD 3.x ¤Ï x86 ¥¢¡¼¥­¥Æ¥¯¥Á¥ã¤ÈƱÍÍ, DEC Alpha ¤Ç¤âưºî¤·¤Þ¤¹. ¤Þ¤¿, SPARC ¤Ø¤Î°Ü¿¢¤È¤¤¤¦¶½Ì£¿¼¤¤Ïä⤢¤ê¤Þ¤¹¤¬, ¤³¤Î¥×¥í¥¸¥§¥¯¥È¤Î¾ÜºÙ¤Ë¤Ä¤¤¤Æ¤Ï̤¤ÀÉÔÆ©ÌÀ¤Ç¤¹. °Û¤Ê¤ë¥¢¡¼¥­¥Æ¥¯¥Á¥ã¤Î¥Þ¥·¥ó¤ò »ý¤Ã¤Æ¤¤¤Æ, ¤æ¤Ã¤¯¤êÂԤƤʤ¤¤È¤¤¤¦¾ì¹ç¤Ë¤Ï¼¡¤Î URL ¤ò »²¾È¤·¤Æ¤¯¤À¤µ¤¤. NetBSD ¤Þ¤¿¤Ï OpenBSD. 郎 FreeBSD ¤ÎÀÕǤ¼Ô? ¥×¥í¥¸¥§¥¯¥È¤ÎÁ´ÂÎŪ¤ÊÊý¸þÀ­¤ä, ï¤Ë¥½¡¼¥¹¥Ä¥ê¡¼¤Ë¥³¡¼¥É¤Î ½ñ¤­¹þ¤ß¸¢¸Â¤òÍ¿¤¨¤ë¤«, ¤Ê¤É¤È¤¤¤Ã¤¿ FreeBSD ¥×¥í¥¸¥§¥¯¥È¤Ë´Ø¤¹¤ë ½ÅÍפʰջ׷èÄê¤Ï 15 ̾¤«¤é¤Ê¤ë ¥³¥¢¥Á¡¼¥à ¤Ë¤è¤Ã¤Æ¤Ê¤µ¤ì¤Þ¤¹. ¥½¡¼¥¹¥Ä¥ê¡¼¤òľÀÜÊѹ¹¤Ç¤­¤ë¿Í¤Ï¤â¤Ã¤È¿¤¯, 150 ̾°Ê¾å¤Î ¥½¡¼¥¹¥Ä¥ê¡¼´ÉÍý¼Ô (committer) ¤¬¤¤¤Þ¤¹. ¤·¤«¤·, Ä̾ï¤ÎÊѹ¹¤Ç¤Ï¤Ê¤¤¤â¤Î¤Ï¤ÇÀè¹Ô¤·¤ÆµÄÏÀ¤µ¤ì¤Þ¤¹¤¬, ¤³¤ÎµÄÏÀ¤Ø¤Î»²²Ã¤Ë¤Ä¤¤¤Æ¤Ï°ìÀÚ¤ÎÀ©¸Â¤Ï¤¢¤ê¤Þ¤»¤ó. ¤É¤³¤«¤é FreeBSD ¤òÆþ¼ê¤Ç¤­¤Þ¤¹¤«? FreeBSD ¤Î¤¹¤Ù¤Æ¤Î¼çÍפʥê¥ê¡¼¥¹¤Ï anonymous FTP ·Ðͳ¤Ç FreeBSD FTP ¥µ¥¤¥È ¤«¤éÆþ¼ê¤Ç¤­¤Þ¤¹: ¸½ºß¤Î 2.2-stable ¥ê¥ê¡¼¥¹, 2.2.8R ¤Ï FreeBSD 2.2.8-RELEASE ¤Ë¤¢¤ê¤Þ¤¹. ¸½ºß¤Î 3.0-stable, 3.0-RELEASE ¤Ï 3.0-RELEASE ¤Ë¤¢¤ê¤Þ¤¹. ¥á¥ó¥Æ¥Ê¥ó¥¹¥â¡¼¥É¤ËÆþ¤Ã¤Æ¤¤¤ë RELENG_2_2 ¥Ö¥é¥ó¥Á (2.2.8 °Ê¹ß) ¤Ë´ð¤Å¤­°ìÆü¤Ë°ì²ó, 2.2 Snapshot ¥ê¥ê¡¼¥¹¤¬ºîÀ®¤µ¤ì¤Þ¤¹. RELENG_2_2 ¥Ö¥é¥ó¥Á¤Ï¸½ºß, ÊݼéÍ×°÷¤Ë¤è¤Ã¤ÆÃí°Õ¿¼¤¯Êݼ餵¤ì¤Æ¤ª¤ê, ¥»¥­¥å¥ê¥Æ¥£¤ä¿®ÍêÀ­Ì̤Ǥζ¯¤¤É¬Í×À­¤¬¤Ê¤±¤ì¤Ð, Êѹ¹¤¬²Ã¤¨¤é¤ì¤ë ¤³¤È¤Ï¤¢¤ê¤Þ¤»¤ó. 3.1-RELEASE ¤Ø¸þ¤±¤¿ 3.0 Snapshot ¥ê¥ê¡¼¥¹¤â°ìÆü¤Ë°ì²ó, RELENG_3 ¥Ö¥é¥ó¥Á (3.0-release °Ê¹ß) ¤Ë´ð¤Å¤¤¤ÆºîÀ®¤µ¤ì¤Þ¤¹. 4.0 Snapshot ¥ê¥ê¡¼¥¹¤Ï ¥Ö¥é¥ó¥ÁÍѤ˰ìÆü¤Ë°ì²ó ºîÀ®¤µ¤ì¤Æ¤ª¤ê, ¤³¤ì¤é¤Ï½ã¿è¤ËºÇÀèü¤Î³«È¯¼Ô¤ª¤è¤Ó¥Æ¥¹¥¿¡¼¤Î¤¿¤á¤Ë Ä󶡤µ¤ì¤Æ¤¤¤Þ¤¹. ¤Þ¤¿, FreeBSD ¤Ï CD-ROM ¤Ç¤âÆþ¼ê¤Ç¤­, ¼¡¤Î¤È¤³¤í¤Ç¥ª¡¼¥À¤Ç¤­¤Þ¤¹. Walnut Creek CDROM 4041 Pike Lane, Suite F Concord, CA 94520 USA Orders: +1 800 786-9907 Questions: +1 925 674-0783 FAX: +1 925 674-0821 email: WC Orders address WWW: WC Home page ¥ª¡¼¥¹¥È¥é¥ê¥¢¤Ç¤Ï, ¼¡¤Î¤È¤³¤í¤ËÌ䤤¹ç¤ï¤»¤Æ¤¯¤À¤µ¤¤. Advanced Multimedia Distributors Factory 1/1 Ovata Drive Tullamarine, Melbourne Victoria Australia Voice: +61 3 9338 6777 CDROM Support BBS 17 Irvine St Peppermint Grove WA 6011 Voice: +61 9 385-3793 Fax: +61 9 385-2360 ¥¤¥®¥ê¥¹¤Î¾ì¹ç¤Ï¼¡¤Î¤È¤³¤í¤Ç¤¹. The Public Domain & Shareware Library Winscombe House, Beacon Rd Crowborough Sussex. TN6 1UL Voice: +44 1892 663-298 Fax: +44 1892 667-473 FreeBSD ¤Î¥á¡¼¥ê¥ó¥°¥ê¥¹¥È¤Ë¤Ä¤¤¤ÆÃΤꤿ¤¤¤Î¤Ç¤¹¤¬? ´°Á´¤Ê¾ðÊó¤¬ ¥Ï¥ó¥É¥Ö¥Ã¥¯¤Î¥á¡¼¥ê¥ó¥°¥ê¥¹¥È¤ÎÀá¤Ë¤¢¤ê¤Þ¤¹. FreeBSD ¤Î¥Ë¥å¡¼¥¹¥°¥ë¡¼¥×¤Ï²¿¤¬¤¢¤ê¤Þ¤¹¤«? ´°Á´¤Ê¾ðÊó¤¬ ¥Ï¥ó¥É¥Ö¥Ã¥¯¤Î¥Ë¥å¡¼¥¹¥°¥ë¡¼¥×¤ÎÀá¤Ë¤¢¤ê¤Þ¤¹. FreeBSD ¤Î IRC (Internet Relay Chat) ¤Ë¤Ä¤¤¤Æ²¿¤«¾ðÊó¤Ï¤¢¤ê¤Þ¤¹¤«? ¤¢¤ê¤Þ¤¹. FreeBSD ¥Á¥ã¥Ã¥È¥Á¥ã¥ó¥Í¥ë¤Î¤â¤Ã¤È¤â¼çÍ×¤Ê IRC ¥Í¥Ã¥È¥ï¡¼¥¯¥Û¥¹¥È¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹: EFNet ¤Î Channel #FreeBSD ¤Ï FreeBSD ´Ø·¸¤Î ¥Õ¥©¡¼¥é¥à¤Ç¤¹¤¬, ¤½¤³¤Ç¤Ïµ»½ÑŪ¥µ¥Ý¡¼¥È¤ò´üÂÔ¤·¤Æ¤Ï ¤¤¤±¤Þ¤»¤ó. ¤½¤³¤Ë¤¤¤ë¿Í¤¿¤Á¤Ï¤¢¤Ê¤¿¤ò¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤ò ÆÉ¤à¤È¤«¸¦µæ¤ò¤¹¤ë¤È¤«¤È¤¤¤Ã¤¿¶ìÏ«¤«¤é±ó¤¶¤±¤è¤¦¤È¤·¤Þ¤¹. ¤Þ¤ºÂè°ì¤Ë, ¤³¤ì¤Ï¥Á¥ã¥Ã¥È¥Á¥ã¥ó¥Í¥ë¤Ç¤¢¤ê, ¤½¤³¤Ë¤¢¤ë ¥È¥Ô¥Ã¥¯¥¹¤ÏÎø¿ÍÊ罸, ¥¹¥Ý¡¼¥Ä, ³Ëʼ´ï¤È¤¤¤Ã¤¿¤è¤¦¤Ê¤â¤Î¤Ç¤¢¤ê, FreeBSD ¤âƱÎó¤Ë°·¤ï¤ì¤Æ¤¤¤Þ¤¹. °ì±þÃí°Õ¤·¤Þ¤·¤¿¤«¤é¤Í! irc.chat.org ¤Î¥µ¡¼¥Ð¡¼¾å¤Ë¤¢¤ê¤Þ¤¹. DALNET ¤Î Channel #FreeBSD ¤Ï¥¢¥á¥ê¥«¤Ç¤Ï irc.dal.net, ¥è¡¼¥í¥Ã¥Ñ¤Ç¤Ï irc.eu.dal.net ¤Ë¤¢¤ê¤Þ¤¹. UNDERNET ¤Î Channel #FreeBSD ¤Ï¥¢¥á¥ê¥«¤Ç¤Ï us.undernet.org, ¥è¡¼¥í¥Ã¥Ñ¤Ç¤Ï eu.undernet.org ¤Ë¤¢¤ê¤Þ¤¹. ¤³¤³¤â EFNet ¤ÈƱÍͤΤ³¤È¤¬¤¤¤¨¤Þ¤¹. ½õ¤±¤Æ¤â¤é¤¤¤¿¤¯¤Æ¼ÁÌ䤷¤¿¤ê ¤«¤·¤³¤Þ¤Ã¤Æ¶µ¤¨¤ò¸ð¤¦¤³¤È¤Ï¤·¤Æ¤Ï¤¤¤±¤Þ¤»¤ó. ¤³¤³¤Ï ¥Á¥ã¥Ã¥È¥Á¥ã¥ó¥Í¥ë¤Ç¤¢¤ê¥Ø¥ë¥×¥Á¥ã¥ó¥Í¥ë¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó. ºÇ¸å¤Ë, BSDNET ¤Î #FreeBSD ¤ËÆþ¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹. BSD ÀìÍѤµ¤Ê¥Á¥ã¥Ã¥È¥Í¥Ã¥È¥ï¡¼¥¯¤Ç irc.FreeBSD.org ¤Ë¤¢¤ê¤Þ¤¹. ¤³¤Î¥Í¥Ã¥È¥ï¡¼¥¯¤Ï EFNET, UNDERNET, DALNET ¤Î¤è¤¦¤Ê̵ˡÃÏÂӤǤϤʤ¯, ¤è¤êµ»½ÑŪ¤Ê¥µ¥Ý¡¼¥È¤ò¤ª¤³¤Ê¤ª¤¦¤È¤·¤Æ¤¤¤Þ¤¹¤¬, ´×¸ÅÄ»¤¬ÌĤ¤¤Æ¤¤¤ë ¾õÂ֤Ǥ¹. ¤Ê¤¼ BSDNET ¤Ç FreeBSD ´Ø·¸¤Î¼ÁÌä¤ËÅú¤¨¤Æ¤¯¤ì¤ë ¥Ü¥é¥ó¥Æ¥£¥¢¤¬¤¤¤Ê¤¤¤Î¤Ç¤·¤ç¤¦? ¤½¤ì¤¾¤ì¤Î¥Á¥ã¥ó¥Í¥ë¤ÏÊ̸ĤΤâ¤Î¤Ç¸ß¤¤¤ËÀܳ¤µ¤ì¤Æ¤¤¤Þ¤»¤ó. ¥Á¥ã¥Ã¥È¤Î¥¹¥¿¥¤¥ë¤â°ã¤Ã¤Æ¤¤¤ë¤Î¤Ç¼«Ê¬¤Î¥Á¥ã¥Ã¥È¤Î¥¹¥¿¥¤¥ë¤Ë¤¢¤Ã¤¿ ¤â¤Î¤ò¸«¤Ä¤±¤ë¤¿¤á¤Ë°ì¤Ä°ì¤Ä»î¤¹¤Î¤â¤¤¤¤¤Ç¤·¤ç¤¦. ¤¢¤é¤æ¤ë¼ïÎà¤Î IRC ¥È¥é¥Õ¥£¥Ã¥¯¤Î¤¿¤á, ¼ºÎé¤Ê¤³¤È¤ò¤¤¤¦¼ã¤¤¿Í¤¿¤Á (ǯÇÚ¤ÎÊý¤Ï¾¯¿ô¤Ç¤¹) ¤Ëµ¡·ù¤ò»¤Í¤¿¤ê¼ê¤ËÉ館¤Ê¤¯¤Ê¤Ã¤Æ¤â µ¤¤Ë¤·¤Æ¤Ï¤¤¤±¤Þ¤»¤ó. FreeBSD ¤ÎËÜ FreeBSD ¥É¥­¥å¥á¥ó¥Æ¡¼¥·¥ç¥ó¥×¥í¥¸¥§¥¯¥È¤¬¤¢¤ê¤Þ¤¹¤Î¤Ç, doc ¥á¡¼¥ê¥ó¥°¥ê¥¹¥È¤Ë¥³¥ó¥¿¥¯¥È¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤ (¤µ¤é¤Ë»²²Ã¤¹¤ì¤Ð¤â¤Ã¤È¤è¤¤¤Ç¤·¤ç¤¦). <freebsd-doc@FreeBSD.ORG>. ¤³¤Î¥ê¥¹¥È¤Ï FreeBSD ¤Î¥É¥­¥å¥á¥ó¥È¤Ë´Ø¤·¤ÆµÄÏÀ¤¹¤ë¤¿¤á¤Î¤â¤Î¤Ç¤¹. FreeBSD ¤Ë´Ø¤¹¤ë¼ÁÌä¤ËÂФ·¤Æ¤Ï questions ¤È¤¤¤¦¥á¡¼¥ê¥ó¥°¥ê¥¹¥È¤¬¤¢¤ê¤Þ¤¹: <freebsd-questions@FreeBSD.ORG>. FreeBSD ¤Î¡Ö¥Ï¥ó¥É¥Ö¥Ã¥¯¡×¤â¤¢¤ê, FreeBSD ¥Ï¥ó¥É¥Ö¥Ã¥¯ ¤«¤éÆÉ¤à¤³¤È¤¬¤Ç¤­¤Þ¤¹. ¸½ºßºî¶ÈÃæ¤Ç¤¹¤Î¤ÇÉÔ´°Á´¤ÊÉôʬ¤â¤¢¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤. FreeBSD ¤Î¥¬¥¤¥ÉËܤηèÄêÈÇ¤Ï Greg Lehey ¤¬½ñ¤¤¤¿ ``The Complete FreeBSD'' ¤Ç Walnut Creek CDROM Books ¤«¤é½ÐÈǤµ¤ì¤Æ ¤¤¤Þ¤¹. ¸½ºß¤ÏÂèÆóÈǤˤʤäƤ¤¤Æ, ¥¤¥ó¥¹¥È¡¼¥ë, ¥·¥¹¥Æ¥à´ÉÍý¥¬¥¤¥É, ¥×¥í¥°¥é¥àÀßÄê¤Î¥Ø¥ë¥×, ¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Þ¤Ç¤ÎÆâÍÆ¤¬ 1,750 ¥Ú¡¼¥¸¤Ë ¤ï¤¿¤Ã¤Æ½ñ¤«¤ì¤Æ¤¤¤Þ¤¹. ¤³¤ÎËÜ¤Ï (¤½¤·¤Æ¸½ºß¤Î FreeBSD ¥ê¥ê¡¼¥¹¤Ï) Walnut Creek, CheapBytes, ¤Þ¤¿¤Ï ºÇ´ó¤ê¤Î½ñʤÇÃíʸ¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. ISBN ¥³¡¼¥É¤Ï 1-57176-227-2 ¤Ç¤¹. ¤·¤«¤·, FreeBSD 2.2.X ¤Ï Berkeley 4.4BSD-Lite2 ¥Ù¡¼¥¹¤Ê¤Î¤Ç, ¤Û¤È¤ó¤É¤Î 4.4BSD ¤Î¥Þ¥Ë¥å¥¢¥ë¤¬ FreeBSD 2.2.X ¤Ë¤â±þÍѤǤ­¤Þ¤¹. O'Reilly and Associates ¤¬°Ê²¼¤Î¥Þ¥Ë¥å¥¢¥ë¤ò½ÐÈǤ·¤Æ¤¤¤Þ¤¹. 4.4BSD System Manager's Manual By Computer Systems Research Group, UC Berkeley 1st Edition June 1994, 804 pages ISBN: 1-56592-080-5 4.4BSD User's Reference Manual By Computer Systems Research Group, UC Berkeley 1st Edition June 1994, 905 pages ISBN: 1-56592-075-9 4.4BSD User's Supplementary Documents By Computer Systems Research Group, UC Berkeley 1st Edition July 1994, 712 pages ISBN: 1-56592-076-7 4.4BSD Programmer's Reference Manual By Computer Systems Research Group, UC Berkeley 1st Edition June 1994, 886 pages ISBN: 1-56592-078-3 4.4BSD Programmer's Supplementary Documents By Computer Systems Research Group, UC Berkeley 1st Edition July 1994, 596 pages ISBN: 1-56592-079-1 WWW ·Ðͳ¤Ç°Ê²¼¤Î URL ¤«¤é, ¤³¤ì¤é¤Î¾ÜºÙ¤ÊÀâÌÀ¤òÆÉ¤à¤³¤È¤¬¤Ç¤­¤Þ¤¹. 4.4BSD books description. ÈÎÇä¿ô¤¬¾¯¤Ê¤¤¤¿¤á¤³¤ì¤é¤Î ¥Þ¥Ë¥å¥¢¥ë¤ÏÆþ¼ê¤·¤Ë¤¯¤¤¤«¤â¤·¤ì¤Þ¤»¤ó. 4.4BSD ¤Î¥«¡¼¥Í¥ë¹½À®¤Ë¤Ä¤¤¤Æ¤è¤êŰÄìŪ¤ËÃΤꤿ¤¤¤Î¤Ê¤é, ¤³¤ì¤Ê¤é´Ö°ã¤¤¤Ê¤¤¤Ç¤·¤ç¤¦: McKusick, Marshall Kirk, Keith Bostic, Michael J Karels, and John Quarterman. The Design and Implementation of the 4.4BSD Operating System. Reading, Mass. : Addison-Wesley, 1996. ISBN 0-201-54979-4 ¥·¥¹¥Æ¥à´ÉÍý¤Ë¤Ä¤¤¤Æ»²¹Í¤Ë¤Ê¤ëËܤϼ¡¤Î¤â¤Î¤Ç¤¹. Evi Nemeth, Garth Snyder, Scott Seebass & Trent R. Hein, ``Unix System Administration Handbook'', Prentice-Hall, 1995 ISBN: 0-13-151051-7 Ãí°Õ ½éÈǤΤâ¤Î¤Ç¤Ï¤Ê¤¯, ÀÖ¤¤¥«¥Ð¡¼¤ÎÂèÆóÈǤǤ¢¤ë¤« ³Îǧ¤·¤Æ¤¯¤À¤µ¤¤. ¤³¤ÎËÜ¤Ï TCP/IP ¤À¤±¤Ç¤Ê¤¯ DNS, NFS, SLIP/PPP, sendmail, INN/NNTP, °õºþ¤Ê¤É¤Î´ðÁäò°·¤Ã¤Æ¤¤¤Þ¤¹. ¹â²Á¤Ç¤¹¤¬ (¤ª¤è¤½ US$45-$55), Ç㤦²ÁÃͤϤ¢¤ê¤Þ¤¹. ¤Þ¤¿, ¿§¡¹¤Ê¥Ä¡¼¥ë¤Î¥½¡¼¥¹¥³¡¼¥É¤¬Æþ¤Ã¤¿ CD-ROM ¤¬ÉÕ°¤·¤Æ¤¤¤Þ¤¹. ¤·¤«¤·, ¤½¤ì¤é¤Î¤Û¤È¤ó¤É¤Ï FreeBSD 2.2.6R CD-ROM ¤Ë¼ýÏ¿¤µ¤ì¤Æ¤¤¤Þ¤¹ (¤µ¤é¤Ë FreeBSD CD-ROM ¤Î¼ýϿʪ¤ÎÊý¤¬¤è¤ê¿·¤·¤¤¾ì¹ç¤¬¤¢¤ê¤Þ¤¹). Problem Report (¾ã³²Êó¹ð) ¥Ç¡¼¥¿¥Ù¡¼¥¹¤Ë¥¢¥¯¥»¥¹¤¹¤ëÊýË¡¤Ï? ¥æ¡¼¥¶Êѹ¹Í×µá¤Î¤¹¤Ù¤Æ¤¬¸ø³«¤µ¤ì¤Æ¤¤¤ë Problem Report ¥Ç¡¼¥¿¥Ù¡¼¥¹¤Ï ¾ã³²Êó¹ð¤Î Äó½Ð ¤È Ì䤤¹ç¤ï¤» ¤Î web ¥Ù¡¼¥¹¤Î¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤òÄ̤·¤Æ, Ì䤤¹ç¤ï¤» (¤Þ¤¿¤ÏÄó½Ð) ¤ò¤ª¤³¤Ê¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹. ¤Þ¤¿, send-pr(1) ¥³¥Þ¥ó¥É¤ò»ÈÍѤ·¤Æ, ÅŻҥ᡼¥ë·Ðͳ¤Ç¾ã³²Êó¹ð¤äÊѹ¹Í×µá¤òÄó½Ð¤¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹. FAQ ¤Î ASCII/Postscript ÈǤϤɤ³¤Ç¼ê¤ËÆþ¤ê¤Þ¤¹¤«? ºÇ¿·¤Î FAQ ¤Ï FreeBSD Web ¥µ¡¼¥Ð¤ä¤Û¤«¤Î¥ß¥é¡¼¥µ¥¤¥È¤«¤é Postscript ·Á¼°¤ä¥×¥ì¥¤¥ó¥Æ¥­¥¹¥È¤Ç¼è¤Ã¤Æ¤¯¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. (7 ¥Ó¥Ã¥È ASCII ¤È 8-bit Latin1) PostScript ¤È¤·¤Æ (Ìó 370KB): http://www.freebsd.org/FAQ/FAQ.ps ASCII ¥Æ¥­¥¹¥È¤È¤·¤Æ (Ìó 220KB): http://www.freebsd.org/FAQ/FAQ.ascii ISO 8859-1 ¥Æ¥­¥¹¥È¤È¤·¤Æ (Ìó 220KB): http://www.freebsd.org/FAQ/FAQ.latin1 ¥Ï¥ó¥É¥Ö¥Ã¥¯¤Î ASCII/Postscript ÈǤϤɤ³¤Ç¼ê¤ËÆþ¤ê¤Þ¤¹¤«? ºÇ¿·¤Î¥Ï¥ó¥É¥Ö¥Ã¥¯¤Ï FreeBSD Web ¥µ¡¼¥Ð¤ä¤Û¤«¤Î¥ß¥é¡¼¥µ¥¤¥È¤«¤é Postscript ·Á¼°¤ä¥×¥ì¥¤¥ó¥Æ¥­¥¹¥È¤Ç¼è¤Ã¤Æ¤¯¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. (7 ¥Ó¥Ã¥È ASCII ¤È 8-bit Latin1) PostScript ¤È¤·¤Æ (Ìó 1.7MB): http://www.freebsd.org/handbook/handbook.ps ASCII ¥Æ¥­¥¹¥È¤È¤·¤Æ (Ìó 1080KB): http://www.freebsd.org/handbook/handbook.ascii ISO 8859-1 ¥Æ¥­¥¹¥È¤È¤·¤Æ (Ìó 1080KB): http://www.freebsd.org/handbook/handbook.latin1 ASCII ¤Î¥Ï¥ó¥É¥Ö¥Ã¥¯¤Ï¥×¥ì¥¤¥ó¥Æ¥­¥¹¥È¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó! Àµ³Î¤Ë¤Ï, FAQ ¤ä¥Ï¥ó¥É¥Ö¥Ã¥¯¤Î ASCII ¤ä Latin1 ¤ÎÈǤϸ·Ì©¤Ê ¥×¥ì¥¤¥ó¥Æ¥­¥¹¥È¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó. ¤½¤ì¤é¤Ï¥É¥Ã¥È¥Þ¥È¥ê¥¯¥¹¥×¥ê¥ó¥¿¤Ø ľÀܽÐÎϤ¹¤ë¤¿¤á¤Î²¼Àþ¤ä½Å¤Íºþ¤êʸ»ú¤¬´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹. ¤â¤·¤½¤ì¤é¤ò ¿Í´Ö¤¬ÆÉ¤á¤ë·Á¤Ë¤Ê¤Ã¤¿¤â¤Î¤¬Íߤ·¤«¤Ã¤¿¤é, ¤½¤Î¥Õ¥¡¥¤¥ë¤ò col ¤Ë Ä̤·¤Æ¤¯¤À¤µ¤¤. $ col -b < inputfile > outputfile FreeBSD ¤Î Web ¤Î¥ß¥é¡¼¥µ¥¤¥È¤Ë¤Ê¤ê¤¿¤¤¤Ç¤¹! ¾µÃΤ·¤Þ¤·¤¿! Web ¥Ú¡¼¥¸¤ò¥ß¥é¡¼¤¹¤ë¤Ë¤Ï¤¤¤¯¤Ä¤«¤Î¼êÃʤ¬¤¢¤ê¤Þ¤¹. CVSUP ¤ò»È¤¤¤Þ¤¹. cvsup.freebsd.org ¤«¤é CVSUP ¤ò»È¤¦¤³¤È¤Ç À°·Á¤µ¤ì¤¿¥Õ¥¡¥¤¥ë¤ò¼è¤Ã¤Æ¤¯¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. ¼¡¤Î¹Ô¤ò¤¢¤Ê¤¿¤Î cvsup ¥Õ¥¡¥¤¥ë¤Ë²Ã¤¨¤Æ¤¯¤À¤µ¤¤. www release=current hostname=/home base=/usr/local/etc/cvsup prefix=/usr/local/www/data/www.freebsd.org delete old use-rel-suffix rsync ¤ò»È¤¤¤Þ¤¹. the mirroring page ¤ò¸«¤Æ¤¯¤À¤µ¤¤. ftp mirror ¤ò»È¤¤¤Þ¤¹. ¤¢¤Ê¤¿¤Î¹¥¤­¤Ê ftp mirror ¥Ä¡¼¥ë¤ò»È¤Ã¤Æ FTP ¥µ¡¼¥Ð¤ËÃÖ¤¤¤Æ¤¢¤ë web ¥µ¥¤¥È¤Î¥³¥Ô¡¼¤ò¥À¥¦¥ó¥í¡¼¥É¤¹¤ë¤³¤È¤¬ ¤Ç¤­¤Þ¤¹. ñ¤Ë ftp://ftp.freebsd.org/pub/FreeBSD/FreeBSD-current/www ¤«¤é»Ï¤á¤Æ¤ß¤Þ¤·¤ç¤¦. ¤³¤Î¥É¥­¥å¥á¥ó¥È¤ò²¿¸ì¤«¤ËËÝÌõ¤·¤¿¤¤¤Î¤Ç¤¹¤¬. Ê󽷤ϻÙʧ¤¨¤Þ¤»¤ó¤¬, ¤â¤·¥É¥­¥å¥á¥ó¥È¤ÎËÝÌõ¤òÄó½Ð¤·¤Æ¤¯¤À¤µ¤Ã¤¿¤é ¥Õ¥ê¡¼¤Î CD ¤ä T ¥·¥ã¥Ä, ¤½¤·¤Æ¥Ï¥ó¥É¥Ö¥Ã¥¯¤Ë¤¢¤ë¹×¸¥¼Ô°ìÍ÷¤ËÅÐÏ¿¤¹¤ë ¤È¤¤¤Ã¤¿¼êÇۤϹԤ¦¤³¤È¤Ç¤·¤ç¤¦. ¤½¤Î¾¤Î¾ðÊó °Ê²¼¤Î¥Ë¥å¡¼¥¹¥°¥ë¡¼¥×¤Ë¤Ï FreeBSD ¥æ¡¼¥¶¤ËľÀÜ´Ø·¸¤Î¤¢¤ë µÄÏÀ¤¬¹Ô¤ï¤ì¤Æ¤Þ¤¹. comp.unix.bsd.freebsd.announce (moderated) comp.unix.bsd.freebsd.misc comp.unix.bsd.misc Web ¾å¤Î¥ê¥½¡¼¥¹: FreeBSD ¤Î Home Page. ¥é¥Ã¥×¥È¥Ã¥× PC ¤ò»ý¤Ã¤Æ¤¤¤ëÊý¤Ï, ̤¦¤³¤È¤Ê¤¯ ÆüËܤκÙÀî ã¸Ê»á¤Î Mobile Computing ¤Î¥Ú¡¼¥¸ ¤ò¸«¤Þ¤·¤ç¤¦. SMP (Symmetric MultiProcessing) ¤Ë´Ø¤¹¤ë¾ðÊó¤Ï, SMP ¥µ¥Ý¡¼¥È¥Ú¡¼¥¸¤ò¤´Í÷¤¯¤À¤µ¤¤. FreeBSD ¤Î¥Þ¥ë¥Á¥á¥Ç¥£¥¢ ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ë´Ø¤¹¤ë¾ðÊó¤Ï, ¥Þ¥ë¥Á¥á¥Ç¥£¥¢¤Î¥Ú¡¼¥¸¤ò¤´Í÷¤¯¤À¤µ¤¤. ÆÃ¤Ë Bt848 ¥Ó¥Ç¥ª¥­¥ã¥×¥Á¥ã¡¼¥Á¥Ã¥×¤Ë¶½Ì£¤Î¤¢¤ëÊý¤Ï, ¥ê¥ó¥¯¤ò¤¿¤É¤Ã¤Æ¤ß¤Æ¤¯¤À¤µ¤¤. FreeBSD handbook ¤Ë¤ÏËÜÅö¤Ë´°àú¤Ê »²¹Í¿Þ½ñ ¤Î°ìÍ÷¤¬¤¢¤ê, Ç㤦¤Ù¤­Ëܤò¤µ¤¬¤·¤Æ¤¤¤ëÊý¤ÏÆÉ¤à²ÁÃͤ¬¤¢¤ê¤Þ¤¹. ¥¤¥ó¥¹¥È¡¼¥ë Ìõ: ´äºê Ëþ <iwasaki@jp.FreeBSD.org> ¤à¤é¤¿¤·¤å¤¦¤¤¤Á¤í¤¦ <mrt@mickey.ai.kyutech.ac.jp> .8 November 1997. FreeBSD ¤òÆþ¼ê¤¹¤ë¤Ë¤Ï¤É¤Î¥Õ¥¡¥¤¥ë¤ò¥À¥¦¥ó¥í¡¼¥É¤¹¤ì¤Ð¤¤¤¤¤Ç¤¹¤«? Ä̾ï¤Ï floppies/boot.flp ¤È¤¤¤¦¥Õ¥¡¥¤¥ë¤Î ¥Õ¥í¥Ã¥Ô¡¼¥Ç¥£¥¹¥¯¥¤¥á¡¼¥¸¤¬°ì¤Ä¤À¤±É¬Íפˤʤê¤Þ¤¹. 1.44MB ¤Î ¥Õ¥í¥Ã¥Ô¡¼¥Ç¥£¥¹¥¯¤Ë½ñ¤­¹þ¤ß, ¤½¤³¤«¤é¥Ö¡¼¥È¤·¤Æ¤½¤Î¾¤Î¥Õ¥¡¥¤¥ë·²¤ò ¥À¥¦¥ó¥í¡¼¥É¤·¤Þ¤¹ (¥¤¥ó¥¹¥È¡¼¥ë¥×¥í¥°¥é¥à¤¬ TCP/IP Àܳ, ¥Æ¡¼¥×, CD-ROM, ¥Õ¥í¥Ã¥Ô¡¼¥Ç¥£¥¹¥¯, DOS ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Ê¤É, ¥¤¥ó¥¹¥È¡¼¥ë¤ËɬÍפʤâ¤Î ¤¹¤Ù¤Æ¤Ë´Ø¤¹¤ë½èÍý¤òôÅö¤·¤Þ¤¹). ¼«Ê¬¤ÇÇÛÉÛ¥Õ¥¡¥¤¥ë¤ò¥À¥¦¥ó¥í¡¼¥É¤¹¤ëɬÍפ¬¤¢¤ë¾ì¹ç (¤¿¤È¤¨¤Ð DOS ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤«¤é¤Î¥¤¥ó¥¹¥È¡¼¥ë¤Ê¤É), ¤ª¤¹¤¹¤á¤ÎÇÛÉÛ¥Õ¥¡¥¤¥ë¹½À®¤Ï °Ê²¼¤ÎÄ̤ê¤Ç¤¹. bin/ manpages/ compat*/ doc/ src/ssys.* ¤³¤Î¼ê³¤­¤Î´°Á´¤ÊÀâÌÀ¤È, °ìÈÌŪ¤Ê¥¤¥ó¥¹¥È¡¼¥ë»þ¤ÎÌäÂê¤Ë¤Ä¤¤¤Æ¤Ï ¥Ï¥ó¥É¥Ö¥Ã¥¯¤Î¥¤¥ó¥¹¥È¡¼¥ë¤ÎÀá ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤. ¥Ö¡¼¥È¥Õ¥í¥Ã¥Ô¡¼¥¤¥á¡¼¥¸¤¬°ìËç¤Î¥Õ¥í¥Ã¥Ô¡¼¥Ç¥£¥¹¥¯¤ËǼ¤Þ¤é¤Ê¤¤¤ß¤¿¤¤! 3.5 ¥¤¥ó¥Á (1.44MB) ¤Î¥Õ¥í¥Ã¥Ô¡¼¥Ç¥£¥¹¥¯¤Ë¤Ï 1474560 ¥Ð¥¤¥È¤Î¥Ç¡¼¥¿¤ò ³ÊǼ¤Ç¤­¤Þ¤¹. ¥Ö¡¼¥È¥¤¥á¡¼¥¸¤Ï¤Á¤ç¤¦¤É 1474560 ¥Ð¥¤¥È¤ÎÂ礭¤µ¤Ç¤¹. ¥Ö¡¼¥È¥Õ¥í¥Ã¥Ô¡¼¥Ç¥£¥¹¥¯¤ò½àÈ÷¤¹¤ëºÝ¤Î¤è¤¯¤¢¤ë´Ö°ã¤¤¤Ë¤Ï °Ê²¼¤Î¤â¤Î¤¬¤¢¤ê¤Þ¤¹. FTP ¤Ë¤è¤Ã¤Æ¥Õ¥í¥Ã¥Ô¡¼¥¤¥á¡¼¥¸¤ò¥À¥¦¥ó¥í¡¼¥É¤¹¤ëºÝ¤Ë, binary ¥â¡¼¥É¤Ë¤·¤Æ¤¤¤Ê¤«¤Ã¤¿. FTP ¥¯¥é¥¤¥¢¥ó¥È¤ÎÃæ¤Ë¤ÏžÁ÷¥â¡¼¥É¤Î¥Ç¥Õ¥©¥ë¥È¤ò ascii ¥â¡¼¥É¤Ë¤·¤Æ¥¯¥é¥¤¥¢¥ó¥È¦¥·¥¹¥Æ¥à¤Î´·½¬¤Ë¤¢¤¦¤è¤¦¤Ë¤¹¤Ù¤Æ¤Î¹ÔËö¤Î ʸ»ú¤òÊѹ¹¤¹¤ë¤â¤Î¤¬¤¢¤ê¤Þ¤¹. ¤³¤Î¾ì¹ç¤Ï¾ï¤Ë¥Ö¡¼¥È¥¤¥á¡¼¥¸¤¬ ²õ¤ì¤¿¤â¤Î¤Ë¤Ê¤ê¤Þ¤¹. ¥À¥¦¥ó¥í¡¼¥É¤·¤¿¥Ö¡¼¥È¥¤¥á¡¼¥¸¤Î¥µ¥¤¥º¤ò ¥Á¥§¥Ã¥¯¤·¤Æ¤¯¤À¤µ¤¤. ¥µ¡¼¥Ð¾å¤Î¤â¤Î¤È Àµ³Î¤Ë Ʊ¤¸¤Ç¤Ê¤¤¾ì¹ç, ¥À¥¦¥ó¥í¡¼¥É¤Î½èÍý¤òµ¿¤¤¤Þ¤·¤ç¤¦. ¤³¤ì¤ò²óÈò¤¹¤ë¤Ë¤Ï, ¥µ¡¼¥Ð¤ËÀܳ¤·¤Æ¥¤¥á¡¼¥¸¤Î¥À¥¦¥ó¥í¡¼¥É¤ò ³«»Ï¤¹¤ëÁ°¤Ë, FTP ¤Î¥³¥Þ¥ó¥É¥×¥í¥ó¥×¥È¤Ç binary ¤È¥¿¥¤¥×¤·¤Þ¤¹. ¥Ö¡¼¥È¥¤¥á¡¼¥¸¤ò DOS ¤Î copy ¥³¥Þ¥ó¥É (¤Þ¤¿¤Ï GUI ¤ÎƱÅù¤Î¥Ä¡¼¥ë) ¤Ç¥Õ¥í¥Ã¥Ô¡¼¥Ç¥£¥¹¥¯¤ØÅ¾Á÷¤·¤¿. copy ¤Î¤è¤¦¤Ê¥×¥í¥°¥é¥à¤Ï, ľÀܵ¯Æ°¤¹¤ë¤è¤¦¤ËºîÀ®¤µ¤ì¤¿ ¥Ö¡¼¥È¥¤¥á¡¼¥¸¤Ë´Ø¤·¤Æ¤Ï¤¦¤Þ¤¯½èÍý¤Ç¤­¤Þ¤»¤ó. ¥¤¥á¡¼¥¸¤Ë¤Ï¥Õ¥í¥Ã¥Ô¡¼¥Ç¥£¥¹¥¯¤Î´°Á´¤ÊÃæ¿È¤¬¥È¥é¥Ã¥¯Ã±°Ì¤Ç ³ÊǼ¤µ¤ì¤Æ¤ª¤ê, ¥Õ¥í¥Ã¥Ô¡¼¥Ç¥£¥¹¥¯¾å¤ËÄ̾ï¤Î¥Õ¥¡¥¤¥ë¤È¤·¤Æ ³ÊǼ¤µ¤ì¤ë¤è¤¦¤Ë¤ÏÁÛÄꤵ¤ì¤Æ¤¤¤Þ¤»¤ó. FreeBSD ¤Î¥¤¥ó¥¹¥È¡¼¥ë ¤Ëµ­½Ò¤µ¤ì¤Æ¤¤¤ë¤è¤¦¤Ë, ¥í¡¼¥ì¥Ù¥ë¤Î¥Ä¡¼¥ë (Îã fdimage ¤Þ¤¿¤Ï rawrite) ¤ò»ÈÍѤ·¤Æ ``raw'' ¤Î¾õÂ֤ǥեí¥Ã¥Ô¡¼¥Ç¥£¥¹¥¯¤Ë žÁ÷¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹. FreeBSD ¤Î¥¤¥ó¥¹¥È¡¼¥ë¤Ë¤Ä¤¤¤Æ¤ÎÀâÌÀ½ñ¤Ï¤É¤³¤Ë¤¢¤ê¤Þ¤¹¤«? ¥¤¥ó¥¹¥È¡¼¥ë¤ÎÀâÌÀ½ñ¤Ï¼¡¤Î¤È¤³¤í¤Ë¤¢¤ê¤Þ¤¹. ¥Ï¥ó¥É¥Ö¥Ã¥¯¤Î¡ÖFreeBSD ¤Î¥¤¥ó¥¹¥È¡¼¥ë¡×¤Î¾Ï FreeBSD ¤òưºî¤µ¤»¤ë¤Ë¤Ï²¿¤¬É¬ÍפǤ¹¤«? 386 °Ê¾å¤Î PC, 5MB °Ê¾å¤Î RAM, ¤½¤·¤ÆºÇÄã 60MB ¤Î ¥Ï¡¼¥É¥Ç¥£¥¹¥¯ÍÆÎ̤¬É¬ÍפȤʤê¤Þ¤¹. ¥í¡¼¥¨¥ó¥É¤Î MDA ¥«¡¼¥É ¤Ç¤âưºî¤·¤Þ¤¹¤¬, X11R6 ¤ò»È¤¦¤Ë¤Ï VGA ¤«¤½¤ì°Ê¾å¤Î¥Ó¥Ç¥ª¥«¡¼¥É ¤¬É¬ÍפȤʤê¤Þ¤¹. ¤ÎÀá¤âÊ»¤»¤Æ¤´Í÷¤¯¤À¤µ¤¤. 4 MB ¤·¤«¥á¥â¥ê¤¬¤Ê¤¤¤Î¤Ç¤¹¤¬, ¥¤¥ó¥¹¥È¡¼¥ë¤Ç¤­¤Þ¤¹¤«? 4MB ¤Î¥·¥¹¥Æ¥à¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤Ç¤­¤¿ FreeBSD ¤ÎºÇ¿·ÈÇ¤Ï FreeBSD 2.1.7 ¤Ç¤·¤¿. 2.2 ¤Î¤è¤¦¤Ë, 2.2 ¤Ê¤É¤Î¤è¤ê¿·¤·¤¤¥Ð¡¼¥¸¥ç¥ó¤Î FreeBSD ¤Ï¿·µ¬¤Î¥¤¥ó¥¹¥È¡¼¥ë¤ËºÇÄã 5MB ¤ÏɬÍפˤʤê¤Þ¤¹. ¥¤¥ó¥¹¥È¡¼¥ë¥×¥í¥°¥é¥à¤¬ 4MB ¤Ç¤Ïưºî¤·¤Ê¤¤¤À¤±¤Ç, 3.0 ¤ò´Þ¤à FreeBSD ¤Î¤¹¤Ù¤Æ¤Î¥Ð¡¼¥¸¥ç¥ó¤Ï 4MB ¤Î RAM ¤Çưºî²Äǽ¤Ç¤¹. ¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë»þ¤À¤±¤µ¤é¤Ë 4MB Äɲ䷤Ƥª¤­, ¥·¥¹¥Æ¥à¤¬ ¥»¥Ã¥È¥¢¥Ã¥×¤µ¤ì¤ÆÆ°ºî¤¹¤ë¤è¤¦¤Ë¤Ê¤Ã¤¿¸å¤Ë, ¤Þ¤¿ 4MB¤ò¼è¤ê½Ð¤·¤Æ ¤â¤È¤ËÌ᤹¤³¤È¤â¤Ç¤­¤Þ¤¹. ¤¢¤ë¤¤¤Ï 4MB ¤è¤ê¿¤¯¥á¥â¥ê¤òÅëºÜ ¤·¤¿¥·¥¹¥Æ¥à¤Ë¥Ç¥£¥¹¥¯¤ò»ý¤Ã¤Æ¤¤¤­, ¤½¤Î¥Þ¥·¥ó¤Ç¥¤¥ó¥¹¥È¡¼¥ë ¤·¤¿¸å¤Ë¥Ç¥£¥¹¥¯¤òÌ᤹¤³¤È¤â¤Ç¤­¤Þ¤¹. ¤Þ¤¿, FreeBSD 2.1.7 ¤Ç¤â 4MB ¤Ç¤Ï¥¤¥ó¥¹¥È¡¼¥ë¤Ç¤­¤Ê¤¤¾ì¹ç¤â ¤¢¤ê¤Þ¤¹. Àµ³Î¤Ë¤Ï, 640KB ¤Î¥Ù¡¼¥¹¥á¥â¥ê + 3MB ¤Î³ÈÄ¥¥á¥â¥ê ¤Ç¤Ï¥¤¥ó¥¹¥È¡¼¥ë¤Ï¤Ç¤­¤Þ¤»¤ó. ¤â¤·¥Þ¥·¥ó¤Î¥Þ¥¶¡¼¥Ü¡¼¥É¤¬ 640KB ¤«¤é 1MB ¤ÎÎΰè¤Ç¡Ö¼º¤ï¤ì¤¿¡×¥á¥â¥ê¤òºÆ¥Þ¥Ã¥×¤Ç¤­¤ë ¾ì¹ç¤Ï, FreeBSD 2.1.7 ¤ò¥¤¥ó¥¹¥È¡¼¥ë¤Ç¤­¤ë¤«¤â¤·¤ì¤Þ¤»¤ó. BIOS ¤Î¥»¥Ã¥È¥¢¥Ã¥×²èÌ̤Ç, `remap' ¤Î¥ª¥×¥·¥ç¥ó¤òõ¤·¤Æ Í­¸ú (Enable) ¤Ë¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤. ¤Þ¤¿, ROM shadowing ¤ò̵¸ú (Disable) ¤Ë¤·¤Æ¤ª¤«¤Ê¤¯¤Æ¤Ï¤Ê¤ê¤Þ¤»¤ó. ´Êñ¤Ê¤ä¤êÊý¤È¤·¤Æ¤Ï, ¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë»þ¤À¤±¤¢¤È 4MB Äɲà ¤·¤Æ¤ª¤¯ÊýË¡¤¬¤¢¤ê¤Þ¤¹. ɬÍפʥª¥×¥·¥ç¥ó¤À¤±¤òÁªÂò¤·¤Æ ¥«¥¹¥¿¥à¥«¡¼¥Í¥ë¤ò¹½ÃÛ¤·, ¤Þ¤¿ 4MB ¤ò¼è¤ê½Ð¤·¤Æ¤â¤È¤ËÌ᤻¤Ð ¤¤¤¤¤Î¤Ç¤¹. ¤Þ¤¿, 2.0.5 ¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ, ¤½¤ì¤«¤é 2.1.7 ¤Î¥¤¥ó¥¹¥È¡¼¥é ¤Î ``upgrade'' ¥ª¥×¥·¥ç¥ó¤Ç¥·¥¹¥Æ¥à¤ò 2.1.7 ¤Ø¥¢¥Ã¥×¥°¥ì¡¼¥É ¤¹¤ë¤È¤¤¤¦¤ä¤êÊý¤â¤¢¤ê¤Þ¤¹. ¥¤¥ó¥¹¥È¡¼¥ë¤·¤¿¤¢¤È¤Ç¥«¥¹¥¿¥à¥«¡¼¥Í¥ë¤Î¹½ÃÛ¤ò¤·¤¿¾ì¹ç, 4MB ¤Ç¤âưºî¤·¤Þ¤¹. 2MB¤Ç¥Ö¡¼¥È¤ËÀ®¸ù¤·¤¿¿Í¤â¤¤¤Þ¤¹. (¤Ç¤â¤½¤Î ¥·¥¹¥Æ¥à¤Ï¤Û¤È¤ó¤É»È¤¤¤â¤Î¤Ë¤Ê¤ê¤Þ¤»¤ó¤Ç¤·¤¿ :-)) ¼«Ê¬ÍѤΥ¤¥ó¥¹¥È¡¼¥ë¥Õ¥í¥Ã¥Ô¡¼¤òºî¤ë¤Ë¤Ï? ¸½ºß¤Ï¥«¥¹¥¿¥à¥¤¥ó¥¹¥È¡¼¥ë¥Õ¥í¥Ã¥Ô¡¼¥Ç¥£¥¹¥¯¡Ö¤À¤±¡×¤òºî¤ëÊýË¡¤Ï¤¢¤ê¤Þ¤»¤ó. ¥«¥¹¥¿¥à¥¤¥ó¥¹¥È¡¼¥ë¥Õ¥í¥Ã¥Ô¡¼¥Ç¥£¥¹¥¯¥¤¥á¡¼¥¸¤ò´Þ¤à, release ´Ä¶­Á´ÂΤò ¿·¤¿¤Ëºî¤ëɬÍפ¬¤¢¤ê¤Þ¤¹. /usr/src/release/floppies/Makefile ¤Ë¤¢¤ë¥³¡¼¥É¤Ç¥Õ¥í¥Ã¥Ô¡¼¥Ç¥£¥¹¥¯¥¤¥á¡¼¥¸¡Ö¤À¤±¡×¤òºî¤ì¤ë¤Ï¤º¤Ç¤¹¤¬, ¤Þ¤À´°Á´¤Ê¤â¤Î¤Ë¤Ï¤Ê¤Ã¤Æ¤¤¤Þ¤»¤ó. ¥«¥¹¥¿¥à¤Î release ´Ä¶­¤ò¤Ä¤¯¤ë¤Ë¤Ï ¤Î»Ø¼¨¤Ë¤·¤¿¤¬¤Ã¤Æ¤¯¤À¤µ¤¤. ¼«Ê¬¤Î PC ¤ËÊ£¿ô¤Î¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à¤òÆþ¤ì¤ë¤Ë¤Ï? multi-OS ¤Î¥Ú¡¼¥¸ ¤ò¤´Í÷¤¯¤À¤µ¤¤. Ʊ¤¸¥Þ¥·¥ó¤Ç Windows 95 ¤È¶¦Â¸¤Ç¤­¤Þ¤¹¤«? ¤Þ¤º Windows 95 ¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ, ¤½¤Î¤¢¤È¤Ç FreeBSD ¤ò ¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤¯¤À¤µ¤¤. FreeBSD ¤Î¥Ö¡¼¥È¥Þ¥Í¡¼¥¸¥ã¤¬ Win95 ¤È FreeBSD ¤Î¥Ö¡¼¥È´ÉÍý¤ò¤·¤Æ¤¯¤ì¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹. Windows 95 ¤ò¸å¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤·¤¿¾ì¹ç¤Ï¤Ò¤É¤¤¤³¤È¤Ë, Ì䤤¹ç¤ï¤»¤ë¤³¤È¤â¤Ê¤¯¥Ö¡¼¥È¥Þ¥Í¡¼¥¸¥ã¤ò¾å½ñ¤­¤·¤Æ¤·¤Þ¤¤¤Þ¤¹. ¤½¤¦¤Ê¤Ã¤Æ¤·¤Þ¤Ã¤¿¾ì¹ç¤Ï¼¡¤ÎÀá¤ò¤´Í÷¤¯¤À¤µ¤¤. Windows 95 ¤¬¥Ö¡¼¥È¥Þ¥Í¡¼¥¸¥ã¤òÄÙ¤·¤Á¤ã¤Ã¤¿! ¤É¤¦¤ä¤Ã¤ÆÌ᤹¤Î? ¥Ö¡¼¥È¥Þ¥Í¡¼¥¸¥ã¤ÎºÆ¥¤¥ó¥¹¥È¡¼¥ë¤ÎÊýË¡¤È¤·¤Æ, FreeBSD ¤Ç¤Ï °Ê²¼¤Ë¼¨¤¹ÆóÄ̤ê¤ÎÊýË¡¤¬ÍѰդµ¤ì¤Æ¤¤¤Þ¤¹: DOS ¤òµ¯Æ°¤·, FreeBSD ¤ÎÇÛÉÛʪ¤ÎÃæ¤Ë¤¢¤ë tools/ ¥Ç¥£¥ì¥¯¥È¥ê ¤Ø°Üư¤·, bootinst.exe ¤òõ¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤. ¤½¤·¤Æ¼¡¤Î¤è¤¦¤Ë¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤: bootinst.exe boot.bin ¥Ö¡¼¥È¥Þ¥Í¡¼¥¸¥ã¤¬ºÆ¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Þ¤¹. FreeBSD ¤Î¥Ö¡¼¥È¥Õ¥í¥Ã¥Ô¡¼¥Ç¥£¥¹¥¯¤«¤éµ¯Æ°¤·, ¡Ö¥«¥¹¥¿¥à¡× ¥¤¥ó¥¹¥È¡¼¥ë¥á¥Ë¥å¡¼¤òÁªÂò¤·, ³¤¤¤Æ¡Ö¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¡×¤ò ÁªÂò¤·¤Þ¤¹. ¥Ö¡¼¥È¥Þ¥Í¡¼¥¸¥ã¤¬¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤¿¥É¥é¥¤¥Ö (¿ʬºÇ½é¤Î¤â¤Î) ¤òÁªÂò¤·, ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¥¨¥Ç¥£¥¿¤Ë¤¿¤É¤êÃ夤¤¿¤é, (²¿¤âÊѹ¹¤»¤º) ¤½¤Î¤Þ¤Þ (W)rite ¤ò»ØÄꤷ¤Þ¤¹. ³Îǧ¤Î¥á¥Ã¥»¡¼¥¸ ¤¬½Ð¤Þ¤¹¤Î¤Ç¡Ö¤Ï¤¤¡×¤ÈÅú¤¨, ¥Ö¡¼¥È¥Þ¥Í¡¼¥¸¥ãÁªÂò¤Î²èÌÌ¤Ç³Î¼Â¤Ë "Boot Manager" ¤òÁªÂò¤·¤Þ¤¹. ¤³¤ì¤Ç¥Ö¡¼¥È¥Þ¥Í¡¼¥¸¥ã¤¬¥Ç¥£¥¹¥¯¤ËºÆ¤Ó½ñ¤­¹þ¤Þ¤ì¤Þ¤¹. ¥¤¥ó¥¹¥È¡¼¥ë¥á¥Ë¥å¡¼¤«¤éÈ´¤±¤Æ¥ê¥Ö¡¼¥È¤¹¤ë¤È¥Ï¡¼¥É¥Ç¥£¥¹¥¯¤Ï ¸µÄ̤ê¤Ë¤Ê¤ê¤Þ¤¹. ÉÔÎÉ¥Ö¥í¥Ã¥¯¤Î¤¢¤ë¥Ç¥£¥¹¥¯¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤Ç¤­¤Þ¤¹¤«? FreeBSD ¤ÎÉÔÎÉ¥Ö¥í¥Ã¥¯¤Î°·¤¤ (bad144 ¥³¥Þ¥ó¥É) ¤Ï, (¤Ò¤¤¤­Ìܤ˸«¤Æ¤â) 100% ´°Á´¤Ç¤Ï¤Ê¤¯, »Äǰ¤Ê¤¬¤é ¿¿ô¤ÎÉÔÎÉ¥Ö¥í¥Ã¥¯¤Î¤¢¤ë IDE ¤ä ESDI ¥É¥é¥¤¥Ö¤Ï FreeBSD ¤Ç¤Ï»ÈÍѤǤ­¤Ê¤¤¤È¸À¤ï¤¶¤ë¤ò¤¨¤Þ¤»¤ó! ¤Ç¤â, Èó¾ï¤Ë¿¤¯¤Î IDE ¥Ù¡¼¥¹¤Î¥·¥¹¥Æ¥à¤Çưºî¤·¤Æ¤¤¤ë¤è¤¦¤Ç¤¹¤Î¤Ç, ´Êñ¤Ë¤¢¤­¤é¤á¤Æ ¤·¤Þ¤¦Á°¤Ë¤È¤ê¤¢¤¨¤º»î¤·¤Æ¤ß¤Þ¤·¤ç¤¦. ÉÔÎÉ¥Ö¥í¥Ã¥¯¤Î¤¢¤ë SCSI ¥É¥é¥¤¥Ö¤Î¾ì¹ç¤Ï, ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤. ¥¤¥ó¥¹¥È¡¼¥é¤«¤é¥Ö¡¼¥È¤·¤¿¤éÊѤʤ³¤È¤Ë¤Ê¤ê¤Þ¤·¤¿! ¥¤¥ó¥¹¥È¡¼¥é¤«¤é¥Ö¡¼¥È¤·¤è¤¦¤È¤·¤¿¤È¤­¤Ë, ¥Þ¥·¥ó¤¬¸Ç¤Þ¤Ã¤Æ¤· ¤Þ¤¦¤È¤«¼«Á³¤È¥ê¥Ö¡¼¥È¤·¤Æ¤·¤Þ¤¦¤È¤¤¤Ã¤¿¸½¾Ý¤Ç¤¢¤ì¤Ð, ¼¡¤Î»°¤Ä¤Î¹àÌܤò³Îǧ¤·¤Æ¤¯¤À¤µ¤¤:- ¿·ÉʤÎ, ¥Õ¥©¡¼¥Þ¥Ã¥È¤·¤¿¤Æ¤Î, ¥¨¥é¡¼¥Õ¥ê¡¼¤Î ¥Õ¥í¥Ã¥Ô¡¼¥Ç¥£¥¹¥¯¤ò»È¤Ã¤Æ¤¤¤Þ¤¹¤«? (»°Ç¯´Ö¤â¥Ù¥Ã¥É¤Î²¼¤Ë ÊüÃÖ¤µ¤ì¤Æ¤¤¤¿»¨»ï¤ÎÉÕÏ¿¤ß¤¿¤¤¤Ê¤ä¤Ä¤Ç¤Ï¤Ê¤¯¤Æ, Çã¤Ã¤Æ¤­¤¿¤Ð¤«¤ê¤Î¿·Éʤ¬¹¥¤Þ¤·¤¤¤Ç¤¹¤Í) ¥Õ¥í¥Ã¥Ô¡¼¥¤¥á¡¼¥¸¤ò¥Ð¥¤¥Ê¥ê¥â¡¼¥É¤Ç¥À¥¦¥ó¥í¡¼¥É ¤·¤Þ¤·¤¿¤«? (º¤¤Ã¤¿´é¤ò¤·¤Ê¤¤¤Ç¤¯¤À¤µ¤¤. »ä¤¿¤Á¤ÎÃæ ¤Ç°ìÈÖÍ¥½¨¤Ê¿Í¤Ç¤µ¤¨, ¾¯¤Ê¤¯¤È¤â°ì²ó¤Ï¥Ð¥¤¥Ê¥ê¥Õ¥¡¥¤¥ë¤ò ASCII ¥â¡¼¥É¤Ç»×¤¤¤¬¤±¤º¥À¥¦¥ó¥í¡¼¥É¤·¤¿¤³¤È¤¬¤¢¤ë¤Î¤Ç¤¹!) Windows95 ¤ä Windows NT ¤Î¤è¤¦¤ÊºÇ¶á¤´Î®¹Ô¤Î ¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à¤ò»ÈÍѤ·¤Æ¤¤¤ë¾ì¹ç, ¥·¥¹¥Æ¥à¤ò ¥·¥ã¥Ã¥È¥À¥¦¥ó¤·¤Æ¤¢¤ê¤Î¤Þ¤Þ¤ÎËÜʪ¤Î DOS ¤òºÆµ¯Æ° ¤·¤Þ¤·¤¿¤«? ¤³¤ì¤é¤Î OS ¤Ï, ¥Ç¥£¥¹¥¯ºîÀ®¥×¥í¥°¥é¥à ¤Î¤è¤¦¤Ê¥Ï¡¼¥É¥¦¥§¥¢¤ËľÀܽñ¤­¹þ¤ß¤ò¤ª¤³¤Ê¤¦¥×¥í¥°¥é¥à¤Ë ´³¾Ä¤Ç¤­¤Þ¤¹: GUI ¤ÎÃæ¤Î DOS ¥·¥§¥ëÆâÉô¤Çưºî¤·¤Æ¤¤¤ë ¾ì¹ç¤Ç¤â, ¤³¤ÎÌäÂê¤ÏȯÀ¸¤·¤Þ¤¹. ¤Þ¤¿, Netscape ¤Ç¥Ö¡¼¥È¥¤¥á¡¼¥¸¤ò¥À¥¦¥ó¥í¡¼¥É¤¹¤ë¾ì¹ç¤âÌäÂê ¤¬¤¢¤ë¤³¤È¤¬Êó¹ð¤µ¤ì¤Æ¤¤¤Þ¤¹¤Î¤Ç, ¤Ç¤­¤ì¤ÐÊ̤ΠFTP ¥¯¥é¥¤¥¢¥ó¥È ¤ò»È¤¦¤Î¤¬¤è¤¤¤Ç¤·¤ç¤¦. ¤¢¤ì! ¥Æ¡¼¥×¤«¤é¥¤¥ó¥¹¥È¡¼¥ë¤Ç¤­¤Þ¤»¤ó! 2.1.7R ¤ò¥Æ¡¼¥×¤«¤é¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¾ì¹ç, tar ¥Ö¥í¥Ã¥¯¥µ¥¤¥º ¤ò 10 (5120 ¥Ð¥¤¥È) ¤Ë¤·¤¿¥Æ¡¼¥×¤òºî¤ëɬÍפ¬¤¢¤ê¤Þ¤¹. ¥Ç¥Õ¥©¥ë¥È ¤Î tar ¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤Ï 20 (10240 ¥Ð¥¤¥È) ¤Ç, ¤³¤Î¥Ç¥Õ¥©¥ë¥È¥µ¥¤¥º¤Çºî¤é¤ì¤¿¥Æ¡¼¥×¤Ç¤Ï 2.1.7R ¤ò ¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó. ¤â¤·¤³¤¦¤·¤¿¥Æ¡¼¥×¤ò»È¤¦¤È, ¥ì¥³¡¼¥É¥µ¥¤¥º¤¬Â礭²á¤®¤ë¤È¤¤¤¦¥¨¥é¡¼¤¬µ¯¤­¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹. ¥Ñ¥é¥ì¥ë¥é¥¤¥ó (PLIP) ·Ðͳ¤Ç¤Õ¤¿¤Ä¤Î FreeBSD box ¤òÀܳ¤·¤¿¤¤ Laplink ¥Ñ¥é¥ì¥ë¥±¡¼¥Ö¥ë¤òÍѰդ·¤Æ¤¯¤À¤µ¤¤. ξÊý¤Î PC ¤Î kernel ¤Ë lpt ¥É¥é¥¤¥Ð¤¬ÁȤ߹þ¤Þ¤ì¤Æ¤¤¤ë¤³¤È¤ò³Îǧ¤·¤Æ¤¯¤À¤µ¤¤. $ dmesg | grep lp lpt0 at 0x378-0x37f irq 7 on isa lpt0: Interrupt-driven port lp0: TCP/IP capable interface ¥Ñ¥é¥ì¥ë¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Ë Laplink ¥Ñ¥é¥ì¥ë¥±¡¼¥Ö¥ë¤òÀܳ¤·¤Þ¤¹. root ¤Ë¤Ê¤Ã¤ÆÎ¾Êý¤Ç lp0 ¤Î¥Í¥Ã¥È¥ï¡¼¥¯¥¤¥ó¥¿¥Õ¥§¡¼¥¹¥Ñ¥é¥á¡¼¥¿¤òÀßÄꤷ¤Þ¤¹. Î㤨¤Ð, ¥Û¥¹¥È max ¤È moritz ¤òÀܳ¤·¤¿¤¤¾ì¹ç, max <-----> moritz IP Address 10.0.0.1 10.0.0.2 max ¦¤Ç¼¡¤Î¤è¤¦¤Ë¤·¤Æ # ifconfig lp0 10.0.0.1 10.0.0.2 moritz ¦¤Ç¤â # ifconfig lp0 10.0.0.2 10.0.0.1 ¤Î¤è¤¦¤Ë¤·¤Þ¤¹. °Ê¾å¤Ç¤¹! lp(4) ¤È lpt(4) ¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤â»²¾È¤·¤Æ¤¯¤À¤µ¤¤. ¤Þ¤¿, /etc/hosts ¤Ë¥Û¥¹¥È¤ÎÄɲä⤷¤Þ¤·¤ç¤¦. 127.0.0.1 localhost.my.domain localhost 10.0.0.1 max.my.domain max 10.0.0.2 moritz.my.domain moritz ưºî³Îǧ¤Ï¼¡¤Î¤è¤¦¤Ë¤·¤Þ¤¹: max ¦: $ ifconfig lp0 lp0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 10.0.0.1 --> 10.0.0.2 netmask 0xff000000 $ netstat -r Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire moritz max UH 4 127592 lp0 $ ping -c 4 moritz PING moritz (10.0.0.2): 56 data bytes 64 bytes from 10.0.0.2: icmp_seq=0 ttl=255 time=2.774 ms 64 bytes from 10.0.0.2: icmp_seq=1 ttl=255 time=2.530 ms 64 bytes from 10.0.0.2: icmp_seq=2 ttl=255 time=2.556 ms 64 bytes from 10.0.0.2: icmp_seq=3 ttl=255 time=2.714 ms --- moritz ping statistics --- 4 packets transmitted, 4 packets received, 0% packet loss round-trip min/avg/max/stddev = 2.530/2.643/2.774/0.103 ms ¥é¥Ã¥×¥È¥Ã¥× PC ¤Ë PLIP (¥Ñ¥é¥ì¥ë¥é¥¤¥ó IP) ·Ðͳ¤Ç¥¤¥ó¥¹¥È¡¼¥ë¤Ç¤­¤Þ¤¹¤«? ¼¡¤Î¤è¤¦¤Ë¤·¤ÆÆó¤Ä¤Î¥³¥ó¥Ô¥å¡¼¥¿¤ò Laplink ¥Ñ¥é¥ì¥ë¥±¡¼¥Ö¥ë ¤òÄ̤·¤ÆÀܳ¤·¤Æ¤¯¤À¤µ¤¤: +----------------------------------------+ |A-name A-End B-End Descr. Port/Bit | +----------------------------------------+ |DATA0 2 15 Data 0/0x01 | |-ERROR 15 2 1/0x08 | +----------------------------------------+ |DATA1 3 13 Data 0/0x02 | |+SLCT 13 3 1/0x10 | +----------------------------------------+ |DATA2 4 12 Data 0/0x04 | |+PE 12 4 1/0x20 | +----------------------------------------+ |DATA3 5 10 Strobe 0/0x08 | |-ACK 10 5 1/0x40 | +----------------------------------------+ |DATA4 6 11 Data 0/0x10 | |BUSY 11 6 1/0x80 | +----------------------------------------+ |GND 18-25 18-25 GND - | +----------------------------------------+ ¤Þ¤¿, Mobile Computing ¤Ë¤Ä¤¤¤Æ¤Î ¥Ú¡¼¥¸¤â¤´Í÷¤¯¤À¤µ¤¤. ¥Ï¡¼¥É¥Ç¥£¥¹¥¯¥É¥é¥¤¥Ö¤Ë¤Ï, ¤É¤Î¥¸¥ª¥á¥È¥ê¤ò»È¤¦¤Ù¤­¤Ç¤·¤ç¤¦¤«? (¤³¤³¤Ç¥Ç¥£¥¹¥¯¤Î¡Ö¥¸¥ª¥á¥È¥ê¡×¤È¤Ï, ¥Ç¥£¥¹¥¯¤Î¥·¥ê¥ó¥À, ¥Ø¥Ã¥À, ¥È¥é¥Ã¥¯Åö¤ê¤Î¥»¥¯¥¿¤Î¿ô¤ò°ÕÌ£¤·¤Æ¤¤¤Þ¤¹ - ÊØµ¹¾å, C/H/S ¤È¤¹¤ë¤³¤È¤Ë¤·¤Þ¤¹. ¤³¤ì¤Ï¥Ç¥£¥¹¥¯¤Î¤É¤ÎÎΰè¤ÇÆÉ¤ß½ñ¤­¤ò ¤ª¤³¤Ê¤¦¤«¤ò PC ¤Î BIOS ¤¬·èÄꤹ¤ë¼êÃʤȤʤê¤Þ¤¹.) ¤³¤ì¤Ë¤Ä¤¤¤Æ¤Ï¤¢¤ëÍýͳ¤Î¤¿¤á¤Ë, ¸í²ò¤µ¤ì¤Æ¤¤¤ëÅÀ¤¬Â¿¤¤¤è¤¦¤Ç¤¹. ¤Þ¤ººÇ½é¤Ë, FreeBSD ¤Ï¥Ç¥£¥¹¥¯¥Ö¥í¥Ã¥¯¤Çưºî¤·¤Æ¤¤¤ë¤¿¤á, SCSI ¥É¥é¥¤¥Ö¤ÎʪÍýŪ¤Ê¥¸¥ª¥á¥È¥ê¤È¤¤¤¦¸À¤¤Êý¤Ï, ¤Þ¤Ã¤¿¤¯¸«Åö°ã¤¤¤Î¤â¤Î¤Ç¤¹. »ö¼Â, ¥»¥¯¥¿¤ÎÌ©Å٤ϥǥ£¥¹¥¯ ¤Ë¤è¤Ã¤Æ¤Þ¤Á¤Þ¤Á¤Ç¤¢¤ë¤¿¤á, ʪÍýŪ¤Ê¥¸¥ª¥á¥È¥ê¤È¤¤¤¦¤â¤Î¤Ï ¸ºß¤·¤Þ¤»¤ó - À½Â¤¼Ô¤¬¡ÖËÜÅö¤Î¡×ʪÍýŪ¤Ê¥¸¥ª¥á¥È¥ê¤È¸øÉ½ ¤·¤Æ¤¤¤ë¤â¤Î¤ÏÄ̾ï, Èà¤é¤¬¸¡ºº¤·¤ÆÆÀ¤¿ºÇ¾®¤Î»ÈÍÑÉÔ²ÄÍÆÎ̤Π·ë²Ì¤Î¥¸¥ª¥á¥È¥ê¤Î¤³¤È¤Ç¤¹. IDE ¤Î¾ì¹ç¤Ï, FreeBSD ¤Ï C/H/S ¤Çưºî¤·¤Þ¤¹¤¬, ºÇ¶á¤Î¥É¥é¥¤¥Ö¤¹¤Ù¤Æ¤ÏƱÍͤˤ³¤ì¤òÆâÉô¤Ç»²¾È ¤¹¤ë¥Ö¥í¥Ã¥¯¤ËÊÑ´¹¤·¤Æ¤¤¤Þ¤¹. ¤¹¤Ù¤Æ¤ÎÌäÂê¤ÏÏÀÍýŪ¤Ê¥¸¥ª¥á¥È¥ê¤Ç¤¹ - ¤³¤ì¤Ï BIOS ¤¬ ¤½¤Î¥Ç¥£¥¹¥¯¤Î¥¸¥ª¥á¥È¥ê¤Ë¤Ä¤¤¤ÆÄ´¤Ù¤¿ºÝ¤Ë¼èÆÀ¤µ¤ì¤ë¤â¤Î¤Ç¤¢¤ê, ¤½¤Î¸å¤Î¥Ç¥£¥¹¥¯¤Ø¤Î¥¢¥¯¥»¥¹¤Ë»ÈÍѤ·¤Þ¤¹. FreeBSD ¤Ï¥Ö¡¼¥È»þ¤Ë BIOS ¤ò»ÈÍѤ¹¤ë¤¿¤á, ¤³¤ì¤òÀµ¤·¤¯¼èÆÀ¤¹¤ë¤³¤È¤ÏÈó¾ï¤Ë½ÅÍ×¤Ê ¤³¤È¤Ê¤Î¤Ç¤¹. ¼ÂºÝ¤Ë, ¥Ç¥£¥¹¥¯¾å¤ËÊ£¿ô¤Î¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥° ¥·¥¹¥Æ¥à¤¬¤¢¤ë¾ì¹ç¤Ï, ¥¸¥ª¥á¥È¥ê¤Ï¤É¤³¤«¤é¤Ç¤âƱ¤¸¤è¤¦¤Ë²ò¼á ¤µ¤ì¤ëɬÍפ¬¤¢¤ê, ¤µ¤â¤Ê¤¤¤È¥Ö¡¼¥È¤ÎºÝ¤Ë¿¼¹ï¤ÊÌäÂê¤Ë¤Ê¤ê¤Þ¤¹. SCSI ¥Ç¥£¥¹¥¯¤Ç¤Ï, »ÈÍѤ¹¤ë¥¸¥ª¥á¥È¥ê¤Ï¥³¥ó¥È¥í¡¼¥é¤Î³ÈÄ¥ BIOS ¥È¥é¥ó¥¹¥ì¡¼¥·¥ç¥ó¤¬Í­¸ú¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤«¤É¤¦¤«¤Ë¤è¤ê¤Þ¤¹ (``>1GB ¤Î DOS ¥Ç¥£¥¹¥¯¥É¥é¥¤¥Ö¤Î¥µ¥Ý¡¼¥È'' ¤È¤â¸Æ¤Ð¤ì¤Þ¤¹). ̵¸ú¤Ë¤Ê¤Ã¤Æ¤¤¤ë¾ì¹ç, N ¥·¥ê¥ó¥À, 64 ¥Ø¥Ã¥É, 32 ¥»¥¯¥¿/¥È¥é¥Ã¥¯ ¤ò»ÈÍѤ·¤Þ¤¹¤¬, ¤³¤³¤Ç `N' ¤Ï MB ñ°Ì¤Î¥Ç¥£¥¹¥¯ÍÆÎ̤Ǥ¹. Î㤨¤Ð, 2GB ¥Ç¥£¥¹¥¯¤Ï¸«¤«¤±¾å 2048 ¥·¥ê¥ó¥À, 64 ¥Ø¥Ã¥É, 32 ¥»¥¯¥¿/¥È¥é¥Ã¥¯¤È¤Ê¤ê¤Þ¤¹. ¤½¤ì¤¬¡ÖÍ­¸ú¡×¤Ë¤Ê¤Ã¤Æ¤ª¤ê (MS-DOS ¤Ç¤Ï¤³¤ÎÊýË¡¤Ç, ¤¢¤ëÀ©¸Â ¤ò²óÈò¤¹¤ë¾ì¹ç¤â¤¢¤ê¤Þ¤¹), ¥Ç¥£¥¹¥¯ÍÆÎ̤¬ 1GB ¤ò±Û¤¨¤ë¾ì¹ç¤Ï, M ¥·¥ê¥ó¥À, 63 ¥»¥¯¥¿/¥È¥é¥Ã¥¯ (64 ¡Ö¤Ç¤Ï¤Ê¤¯¡×), 255 ¥Ø¥Ã¥É ¤ò»ÈÍѤ·¤Þ¤¹. `M' ¤Ï MB ñ°Ì¤Î¥Ç¥£¥¹¥¯ÍÆÎ̤ò 7.844238 (!) ¤Ç³ä¤Ã¤¿ÃͤȤʤê¤Þ¤¹. ¤È¤¤¤¦¤³¤È¤Ç, 2GB ¥Ç¥£¥¹¥¯¤ÎÎã¤Ç¤Ï, 261 ¥·¥ê¥ó¥À, 63 ¥»¥¯¥¿/¥È¥é¥Ã¥¯, 255 ¥Ø¥Ã¥É¤È¤Ê¤ê¤Þ¤¹. (ÌõÃí: °Ê¾å¤Ï Adaptec ¼Ò¤È NCR ¼ÒÀ½¤Î SCSI ¥¢¥À¥×¥¿¤Î¾ì¹ç¤Ç¤¹. SCSI ¥¢¥À¥×¥¿¤Ë¤è¤Ã¤ÆÊÑ´¹¤Î¿ôÃͤ¬ÊѤï¤Ã¤Æ¤¯¤ë¤Î¤Ç¥Þ¥Ë¥å¥¢¥ë¤ò »²¾È¤·¤Æ¤¯¤À¤µ¤¤.) ¤³¤ì¤Ë¤Ä¤¤¤Æ¤è¤¯Ê¬¤«¤é¤Ê¤¤¾ì¹ç¤ä FreeBSD ¤¬¥¤¥ó¥¹¥È¡¼¥ëÃæ¤Ë Àµ¤·¤¯¥¸¥ª¥á¥È¥ê¤ò¼èÆÀ¤Ç¤­¤Ê¤¤¾ì¹ç, ¤³¤ì¤ò²óÈò¤¹¤ë¤â¤Ã¤È¤â ´Êñ¤ÊÊýË¡¤Ï¥Ç¥£¥¹¥¯¤Ë¾®¤µ¤Ê DOS ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤òºî¤ë¤³¤È¤Ç¤¹. ¤½¤¦¤¹¤ë¤ÈÀµ¤·¤¤¥¸¥ª¥á¥È¥ê¤¬¼èÆÀ¤µ¤ì¤ë¤Ï¤º¤Ç¤¹ (¤½¤·¤Æ, »Ä¤·¤Æ¤ª¤­¤¿¤¯¤Ê¤¤¤È¤«¥Í¥Ã¥È¥ï¡¼¥¯¥«¡¼¥É¤Î¥×¥í¥°¥é¥ß¥ó¥°ÍÑ¤Ë »È¤¤¤¿¤¤¾ì¹ç¤Ê¤É¤Ë¤Ï, ¤¤¤Ä¤Ç¤â¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¥¨¥Ç¥£¥¿¤Ç DOS ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤òºï½ü¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹). ¤â¤¦°ì¤Ä¤ÎÊýË¡¤È¤·¤Æ, FreeBSD¤È°ì½ï¤Ë¤ËÇÛÉÛ¤µ¤ì¤Æ¤¤¤ë¥Õ¥ê¡¼ ¤Ç»È¤¨¤ë¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ë ``pfdisk''(FreeBSD CD-ROM ¤Î tools¥Ç¥£¥ì¥¯¥È¥ê¤«¤¤¤í¤¤¤í¤Ê FTP ¥µ¥¤¥È¤Ë¤¢¤ê¤Þ¤¹) ¤È¸Æ¤Ð¤ì¤ë¤â¤Î¤¬¤¢¤ê, ¥Ç¥£¥¹¥¯¾å¤Î¾¤Î¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à ¤¬»ÈÍѤ·¤Æ¤¤¤ë¥¸¥ª¥á¥È¥ê¤òÄ´¤Ù¤ë¤Î¤ËÌòΩ¤Á¤Þ¤¹. ¤½¤·¤Æ, ¤³¤Î ¥¸¥ª¥á¥È¥ê¾ðÊó¤ò¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¥¨¥Ç¥£¥¿¤ËÆþÎϤ¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. ¥Ç¥£¥¹¥¯¤Îʬ³ä¤Î»ÅÊý¤Ç²¿¤«À©¸Â¤Ï¤¢¤ê¤Þ¤¹¤«? ¤Ï¤¤. BIOS ¤¬¥«¡¼¥Í¥ë¤ò¥Ö¡¼¥È¤Ç¤­¤ë¤è¤¦¤Ë¥ë¡¼¥È¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤¬ 1024 ¥·¥ê¥ó¥À°ÊÆâ¤Ë¤¢¤ë¤³¤È¤ò³Îǧ¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹ (¤³¤ì¤Ï FreeBSD ¤Ç¤Ï¤Ê¤¯ PC ¤Î BIOS ¤ÎÀ©¸Â¤Ç¤¹). SCSI ¥É¥é¥¤¥Ö¤Ç¤Ï, Ä̾ï¤Ï¥ë¡¼¥È¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤¬ºÇ½é¤Î 1024MB ¤Ë¼ý¤Þ¤Ã¤Æ¤¤¤ë¤³¤È¤¬Á°Äó¤È¤Ê¤ê¤Þ¤¹ (¤Þ¤¿¤Ï³ÈÄ¥ BIOS ¥È¥é¥ó¥¹¥ì¡¼¥·¥ç¥ó ¤¬Í­¸ú¤Ë¤Ê¤Ã¤Æ¤¤¤ë¾ì¹ç¤ÏºÇ½é¤Î 4096MB - ¾¤Î¼ÁÌä¤ò¤´Í÷¤¯¤À¤µ¤¤). IDE ¤Ç¤½¤ì¤ËÁêÅö¤¹¤ëÃÍ¤Ï 504MB ¤È¤Ê¤ê¤Þ¤¹. (ÌõÃí: E-IDE Âбþ¤Î BIOS ÅëºÜ¥Þ¥·¥ó¤Î¾ì¹ç¤Ï IDE ¤Î 504MB ¤È¤¤¤¦ À©¸Â¤Ï¤¢¤ê¤Þ¤»¤ó.) ÂçÍÆÎ̥ǥ£¥¹¥¯¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹¤¬, ¥Ç¥£¥¹¥¯¥Þ¥Í¡¼¥¸¥ã¤Ï»È¤¨¤Þ¤¹¤«? FreeBSD ¤Ï Ontrack Disk Manager ¤òǧ¼±¤·, ¤³¤ì¤ò¹Íθ¤Ë¤¤¤ì¤Þ¤¹. ¾¤Î¥Ç¥£¥¹¥¯¥Þ¥Í¡¼¥¸¥ã¤Ï¥µ¥Ý¡¼¥È¤·¤Þ¤»¤ó. ¥Ç¥£¥¹¥¯Á´ÂΤò FreeBSD ¤Ç»È¤¤¤¿¤¤¾ì¹ç¤Ï, ¥Ç¥£¥¹¥¯¥Þ¥Í¡¼¥¸¥ã ¤ÏɬÍפ¢¤ê¤Þ¤»¤ó. BIOS ¤¬°·¤¨¤ëÍÆÎ̤¤¤Ã¤Ñ¤¤¤Ç (Ä̾ï¤Ï 504MB) ¥Ç¥£¥¹¥¯¤ÎÀßÄê¤ò¤ª¤³¤Ê¤¦¤È, FreeBSD ¤Ï¼ÂºÝ¤ÎÍÆÎ̤ò»»½Ð¤¹¤ë ¤Ï¤º¤Ç¤¹. MFM ¥³¥ó¥È¥í¡¼¥éÉÕ¤­¤Î¸Å¤¤¥Ç¥£¥¹¥¯¤ò»È¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï, FreeBSD ¤Ë»ÈÍѤ¹¤ë¥·¥ê¥ó¥À¿ô¤ò¾ÜºÙ¤Ë»ØÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹. FreeBSD ¤È¾¤Î¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à¤¬Æþ¤Ã¤Æ¤¤¤ë¥Ç¥£¥¹¥¯¤ò »ÈÍѤ·¤¿¤¤¾ì¹ç¤Ï, ¥Ç¥£¥¹¥¯¥Þ¥Í¡¼¥¸¥ã¤Ê¤·¤Ç¤â¤Ç¤­¤ë¤Ç¤·¤ç¤¦: FreeBSD ¤Î¥Ö¡¼¥È¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤È¾¤Î¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à ÍѤΥ¹¥é¥¤¥¹¤¬ºÇ½é¤Î 1024 ¥·¥ê¥ó¥ÀÆâ¤Ë¼ý¤Þ¤Ã¤Æ¤¤¤ë»ö¤ò³Îǧ ¤¹¤ë¤À¤±¤Ç¤¹. µ¤¤Ë¤Ê¤ëÊý¤Ï, ¥Ö¡¼¥È¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤ò 20 ¥á¥¬¥Ð¥¤¥È ¤°¤é¤¤¤Ë¤·¤ÆÂ礭¤á¤Ë¤¹¤ë¤È¤È¤è¤¤¤Ç¤·¤ç¤¦. FreeBSD ¤Î¥Ö¡¼¥È»þ¤Ë ``Missing Operationg System'' ¤Èɽ¼¨¤µ¤ì¤Þ¤¹ ¤³¤ì¤Ï FreeBSD ¤ä DOS, ¤½¤Î¤Û¤«¤Î OS ¤¬¥Ç¥£¥¹¥¯ÎÎ°è ¤Î¤È¤é¤¨Êý¤Ç¾×ÆÍ ¤·¤¢¤Ã¤Æ¤¤¤ë¤³¤È¤«¤éµ¯¤³¤ëŵ·¿Åª¤ÊÎã¤Ç¤¹. ¤³¤¦¤Ê¤Ã¤¿¤é FreeBSD ¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·Ä¾¤¹°Ê³°¤Ë¤Ï¤¢¤ê¤Þ¤»¤ó¤¬, ¾¤Î¤È¤³¤í¤ÇÀâÌÀ¤·¤¿¼ê½ç¤Ë¤·¤¿¤¬¤Ã¤Æ¤ä¤ì¤Ð, ¤Û¤Ü´Ö°ã¤¤¤Ê¤¯¤¦¤Þ¤¯¤¤¤¯¤Ï¤º¤Ç¤¹. ¥Ö¡¼¥È¥Þ¥Í¡¼¥¸¥ã¤Î `F?' ¥×¥í¥ó¥×¥È¤¬É½¼¨¤µ¤ì¤Þ¤»¤ó. ¤³¤ì¤Ï¤¹¤Ç¤ËÁ°¤Ë¼ÁÌ䤵¤ì¤Æ¤¤¤ëÌäÂê¤Î¤â¤¦°ì¤Ä¤Î¾É¾õ¤Ç¤¹. BIOS ¤Î¥¸¥ª¥á¥È¥ê¤È FreeBSD ¤Î¥¸¥ª¥á¥È¥êÀßÄ꤬°ìÃפ·¤Æ¤¤¤Ê¤¤¤Î¤Ç¤¹! ¥³¥ó¥È¥í¡¼¥é¤ä BIOS ¤¬¥·¥ê¥ó¥À¤ÎÊÑ´¹ (``>1GB ¥É¥é¥¤¥Ö¤Î ¥µ¥Ý¡¼¥È'' ¤È¤â¸Æ¤Ð¤ì¤Þ¤¹) ¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤¿¤é, ¤½¤ÎÀßÄê¤ò̵¸ú²½¤·¤Æ FreeBSD ¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·Ä¾¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤. 16MB ¤ò±Û¤¨¤ë¥á¥â¥ê¤òÅëºÜ¤·¤Æ¤¤¤Þ¤¹¤¬, ²¿¤«ÌäÂ꤬µ¯¤³¤ê¤Þ¤¹¤«? À­Ç½ÌäÂê°Ê³°¤Ï̵¤·¤Ç¤¹. FreeBSD 2.X ¤Ï bounce-buffer ¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤ª¤ê, ¥Ð¥¹¥Þ¥¹¥¿¥ê¥ó¥°¥³¥ó¥È¥í¡¼¥é¤Ï 16MB ¤è¤ê¾å¤Î¥á¥â¥êÎΰè¤Ë ¥¢¥¯¥»¥¹¤Ç¤­¤Þ¤¹. (ISA ¥Ç¥Ð¥¤¥¹¤ò»ÈÍѤ·¤Æ¤¤¤ë¾ì¹ç¤Î¤ßɬÍ× ¤È¤Ê¤ê¤Þ¤¹¤¬, °ìÉô¤Î EISA ¤È VLB ¥Ç¥Ð¥¤¥¹¤Ç¤âɬÍפʾì¹ç ¤¬¤¢¤ê¤Þ¤¹.) ¤Þ¤¿, ¤â¤Ã¤È¿¤¯¤Î¥á¥â¥ê¤òÅëºÜ¤·¤Æ¤¤¤ë¾ì¹ç, Compaq ¤äÍøÍѲÄǽ¤Ê ¥á¥â¥ê¥µ¥¤¥º¤òÀµ¤·¤¯Êó¹ð¤·¤Ê¤¤Â¾¤Î BIOS ¤ò»ÈÍѤ·¤Æ¤¤¤ë¾ì¹ç¤Ï, ¤ÎÀá¤ò¤´Í÷¤¯¤À¤µ¤¤. ¥½¡¼¥¹¤òÁ´Éô¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ëɬÍפϤ¢¤ê¤Þ¤¹¤«? °ìÈÌŪ¤Ë¤Ï¡Ö¤¤¤¤¤¨¡×¤Ç¤¹. ¤·¤«¤·ºÇÄã¤Ç¤â, ``base'' ¥½¡¼¥¹¥­¥Ã¥È (¤³¤ì¤Ë¤Ï¤³¤Î FAQ ¤Ç½Ò¤Ù¤é¤ì¤Æ¤¤¤ë¥Õ¥¡¥¤¥ë¤Î ¤¤¤¯¤Ä¤«¤¬´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹) ¤È, ``sys'' (kernel) ¥½¡¼¥¹¥­¥Ã¥È (¤³¤ì¤Ë¤Ï¥«¡¼¥Í¥ë¤Î¥½¡¼¥¹¤¬´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹) ¤ò¥¤¥ó¥¹¥È¡¼¥ë ¤¹¤ë»ö¤ò¶¯¤¯¤ª¤¹¤¹¤á¤·¤Þ¤¹. Ä̾ï, ²¿¤«¤Î¼Â¹Ô¤Ë¥½¡¼¥¹¤¬É¬Í× ¤Ë¤Ê¤ë»ö¤Ï¤¢¤ê¤Þ¤»¤ó. ¤·¤«¤·, ¥«¡¼¥Í¥ë¤ò¥³¥ó¥Õ¥£¥°¥ì¡¼¥·¥ç¥ó ¤¹¤ë¤¿¤á¤Î¥×¥í¥°¥é¥à config ¤ò¼Â¹Ô¤¹¤ë»þ¤ÏÎã³°¤Ç¤¹. ¥«¡¼¥Í¥ë¤Î¥½¡¼¥¹¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Ê¤¯¤Æ¤â¤è¤¤Îã¤È¤·¤Æ, ¤É¤³¤« Ê̤ξì½ê¤«¤é¥«¡¼¥Í¥ë¤Î¥½¡¼¥¹¤òÆÉ¤ß¹þ¤ßÀìÍÑ¤Ç NFS ¥Þ¥¦¥ó¥È¤¹¤ë »ö¤¬¤Ç¤­, ¤Þ¤¿¤½¤³¤«¤é¿·¤·¤¤¥Ð¥¤¥Ê¥ê¤òºîÀ®¤Ç¤­¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ ¤¤¤Þ¤¹. (¥«¡¼¥Í¥ë¥½¡¼¥¹¤ÎÀ©¸Â¤¬¤¢¤ë¤Î¤Ç, ľÀÜ /usr/src ¤ò ¥Þ¥¦¥ó¥È¤¹¤ë»ö¤Ï¤ª¤¹¤¹¤á¤Ç¤­¤Þ¤»¤ó. ¤½¤ì¤è¤ê¤â¤É¤³¤«Ê̤Π¥Ç¥£¥ì¥¯¥È¥ê¤Ë¥Þ¥¦¥ó¥È¤·¤Æ, ¥½¡¼¥¹¥Ä¥ê¡¼¤ÎÊ£À½¤¬¤Ç¤­¤ë¤è¤¦¤Ë ŬÀڤ˥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤òÄ¥¤Ã¤Æ¤¯¤À¤µ¤¤.) ¥½¡¼¥¹¤ò¥Í¥Ã¥È¥ï¡¼¥¯¾å¤Ë»ý¤Á, ¤½¤³¤«¤é¥·¥¹¥Æ¥à¤ò¥Ó¥ë¥É ¤¹¤ë¤è¤¦¤Ë¤·¤Æ¤ª¤±¤Ð, FreeBSD ¤Î¾­Íè¤Î¥ê¥ê¡¼¥¹¤Ø¤Î¥¢¥Ã¥×¥°¥ì¡¼¥É ¤¬¤º¤Ã¤È´Êñ¤Ë¤Ê¤ê¤Þ¤¹. ¼ÂºÝ¤Ë¥½¡¼¥¹¤Î¥µ¥Ö¥»¥Ã¥È¤òÁªÂò¤¹¤ë¤Ë¤Ï, ¥·¥¹¥Æ¥à¥¤¥ó¥¹¥È¡¼¥ë ¥Ä¡¼¥ë¤Î¡ÖÇÛÉÛ¥Õ¥¡¥¤¥ë¡×¥á¥Ë¥å¡¼¤Ë¤¢¤ë¡Ö¥«¥¹¥¿¥à¡×¥á¥Ë¥å¡¼ ¤ò»ÈÍѤ·¤Þ¤¹. ¤Þ¤¿, src/install.sh ¥¹¥¯¥ê¥×¥È¤Ç¤â Í¿¤¨¤ë°ú¿ô¤Ë¤è¤Ã¤Æ¥½¡¼¥¹ÇÛÉÛ¥Õ¥¡¥¤¥ë¤Î°ìÉôʬ¤ò¥¤¥ó¥¹¥È¡¼¥ë¤Ç¤­¤Þ¤¹. ¥«¡¼¥Í¥ë¤Ïºî¤êľ¤µ¤Ê¤¯¤Á¤ã¤Ê¤é¤Ê¤¤¤ó¤Ç¤¹¤«? ¥«¡¼¥Í¥ë¤ò¿·¤·¤¯ºî¤êľ¤¹¤Î¤Ï¸µ¡¹ FreeBSD ¤Î¥¤¥ó¥¹¥È¡¼¥ë»þ¤Ë ¤É¤¦¤·¤Æ¤âɬÍפʤ³¤È¤Ç¤·¤¿. ¤Ç¤âºÇ¶á¤Î¥ê¥ê¡¼¥¹¤Ç¤Ï, ¤È¤Æ¤â ¥æ¡¼¥¶¥Õ¥ì¥ó¥É¥ê¤Ê¥«¡¼¥Í¥ëÀßÄê¥Ä¡¼¥ë¤Î²¸·Ã¤ò¼õ¤±¤Æ¤¤¤Þ¤¹. FreeBSD ¤Î¥Ö¡¼¥È¥×¥í¥ó¥×¥È (boot:) ¤Ç "-c" ¤ÈÂǤƤР¥Ó¥¸¥å¥¢¥ë¤ÊÀßÄê²èÌ̤ˤʤê, ¤Û¤È¤ó¤É¤Î°ìÈÌŪ¤Ê ISA ¥«¡¼¥É¤Ë ¤Ä¤¤¤Æ¤Î¥«¡¼¥Í¥ë¤ÎÀßÄê¤ò¤¹¤ë¤³¤È¤¬¤Ç¤­¤ë¤Î¤Ç¤¹. º£¤Ç¤â, ɬÍפʥǥХ¤¥¹¥É¥é¥¤¥Ð¤À¤±¤òÁȤ߹þ¤ó¤À¥«¡¼¥Í¥ë¤ò ºî¤ë¤³¤È¤Ï¤è¤¤»ö¤È¤µ¤ì¤Æ¤¤¤Þ¤¹. ¤Û¤ó¤Î¤Á¤ç¤Ã¤È¤À¤±¥á¥â¥ê¤ò ÀáÌó¤Ç¤­¤Þ¤¹¤«¤é¤Í. ¤Ç¤â¤Û¤È¤ó¤É¤Î¥·¥¹¥Æ¥à¤Ç¤Ï, ¤â¤Ï¤ä ¤É¤¦¤·¤Æ¤â¤ä¤é¤Ê¤¯¤Á¤ã¤Ê¤é¤Ê¤¤¤³¤È¤Ç¤Ï¤Ê¤¤¤Î¤Ç¤¹. ¥¢¥á¥ê¥«¹ç½°¹ñ¹ñ³°¤Ë½»¤ó¤Ç¤¤¤Þ¤¹¤¬, DES °Å¹æ²½¥½¥Õ¥È¥¦¥§¥¢¤Ï»È¤¨¤Þ¤¹¤«? DES ¥¹¥¿¥¤¥ë¤Î°Å¹æ²½¥³¡¼¥É¤Î»ÈÍѤ¬ÀäÂÐÈò¤±¤é¤ì¤Ê¤¤¤â¤Î¤Ç¤Ê¤¤ ¾ì¹ç¤Ï, ¤è¤ê¤è¤¤¥»¥­¥å¥ê¥Æ¥£¤ÇÍ¢½Ðµ¬À©¤Î¤Ê¤¤ FreeBSD ¤Î ¥Ç¥Õ¥©¥ë¥È¤Î°Å¹æ²½¥³¡¼¥É¤¬»ÈÍѤǤ­¤Þ¤¹. FreeBSD 2.0 ¤Ç¤Ï¥Ñ¥¹¥ï¡¼¥É¤Î ¥Ç¥Õ¥©¥ë¥È¤Î¥¹¥¯¥é¥ó¥Ö¥é¤Ï MD5 ¥Ù¡¼¥¹¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹. ¤³¤ì¤Ï, ¥Ñ¥¹¥ï¡¼¥ÉÇˤê¤Î¥×¥í¥°¥é¥à¤ËÂФ·¤Æ DES ¤è¤ê¤â CPU ¥Ñ¥ï¡¼¤òÍ׵ᤷ, ¤Þ¤¿¤è¤êŤ¤¥Ñ¥¹¥ï¡¼¥É¤ò»È¤¦¤³¤È¤Ç¤­¤Þ¤¹. ¤¤¤Þ¤É¤­ MD5 ¥Ù¡¼¥¹¤Î crypt ¤ò»ÈÍѤ·¤Ê¤¤Íýͳ¤¬¤¢¤ë¤È¤¹¤ì¤Ð, ¤½¤ì¤Ï FreeBSD ¤È¤½¤ì°Ê³°¤Î¥·¥¹¥Æ¥à¤ÇƱ¤¸ password ¥¨¥ó¥È¥ê¤ò »ÈÍѤ·¤Æ¤¤¤ë¤°¤é¤¤¤Î¤â¤ó¤Ç¤·¤ç¤¦. DES °Å¹æ²½¥¢¥ë¥´¥ê¥º¥à¤ò¹çˡŪ¤Ë¹ç½°¹ñ¹ñ³°¤Ë»ý¤Á½Ð¤¹»ö ¤¬¤Ç¤­¤Ê¤¤¤¿¤á, ¹ç½°¹ñ¹ñ³°¤Î¥æ¡¼¥¶¤Ï¹ç½°¹ñ¤Î FTP ¥µ¥¤¥È ¤«¤é³ºÅö¤¹¤ë¥½¥Õ¥È¥¦¥§¥¢ (secrdist ¤ÎÉôʬ) ¤ò »ý¤Á½Ð¤·¤Æ¤Ï¤¤¤±¤Þ¤»¤ó. ¤·¤«¤·, ¤³¤ì¤ËÂå¤ï¤ë libcrypt ¤¬, ¥ª¡¼¥¹¥È¥é¥ê¥¢¤Î David Burren ¤Ë¤è¤Ã¤Æ½ñ¤«¤ì¤¿¥½¡¼¥¹¤ò¥Ù¡¼¥¹¤Ëºî¤é¤ì¤Æ¤¤¤Þ¤¹. ¤³¤ì¤Ï¹ç½°¹ñ¹ñ³°¤Î¤¤¤¯¤Ä¤«¤Î FTP ¥ß¥é¡¼¥µ¥¤¥È¤Ç¸ø³«¤µ¤ì¤Æ¤¤¤Þ¤¹. ¤³¤ÎÀ©¸Â¤Î²Ý¤»¤é¤ì¤Æ¤¤¤Ê¤¤ libcrypt ¤Î¥½¡¼¥¹¤È, ¤½¤ì¤ò »È¤Ã¤¿¥×¥í¥°¥é¥à¤Î¥Ð¥¤¥Ê¥ê¤Ï, °Ê²¼¤Î FTP ¥µ¥¤¥È¤«¤éÆþ¼ê¤¹¤ë »ö¤¬¤Ç¤­¤Þ¤¹: Æî¥¢¥Õ¥ê¥« ftp://ftp.internat.freebsd.org/pub/FreeBSD ftp://storm.sea.uct.ac.za/pub/FreeBSD ¥Ö¥é¥¸¥ë ftp://ftp.iqm.unicamp.br/pub/FreeBSD ¥Õ¥£¥ó¥é¥ó¥É ftp://nic.funet.fi/pub/unix/FreeBSD/eurocrypt ÌõÃí: ÆüËܹñÆâ¤Ç¤Ï°Ê²¼¤Î¥µ¥¤¥È¤Ë¤¢¤ê¤Þ¤¹. ÆüËÜ ftp://jaz.jp.freebsd.org/pub/FreeBSD-internat ¤³¤Î¹ç½°¹ñ¹ñ³°¸þ¤±¤Î securdist ¤Ï, ¹ç½°¹ñ¹ñÆâ¸þ¤±¤Î securedist ¤ò¤Á¤ç¤¦¤ÉÃÖ¤­´¹¤¨¤ë¤è¤¦¤Ë»È¤¦»ö¤¬¤Ç¤­¤Þ¤¹. ¤³¤Î securedist ¤Ï¹ç½°¹ñ¹ñÆâÈǤΥѥ屡¼¥¸¤ÈƱ¤¸ÊýË¡¤Ç ¥¤¥ó¥¹¥È¡¼¥ë¤Ç¤­¤Þ¤¹ (¾Ü¤·¤¤ÊýË¡¤Ï¥¤¥ó¥¹¥È¡¼¥ë¥Î¡¼¥È¤ò ¤´Í÷¤¯¤À¤µ¤¤). DES °Å¹æ²½¥³¡¼¥É¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤¿¤¤¾ì¹ç¤Ï, ¾¤Î¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤ò¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ëÁ°¤Ë, ¤Ê¤ë¤Ù¤¯ÁᤤÃʳ¬¤Ç ¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤ª¤¯É¬Íפ¬¤¢¤ê¤Þ¤¹. ¹ç½°¹ñ¹ñ³°¤Î¥æ¡¼¥¶¤Ï, ¤ª´ê¤¤¤Ç¤¹¤«¤é¤¤¤«¤Ê¤ë°Å¹æ²½¥½¥Õ¥È¥¦¥§¥¢ ¤â¹ç½°¹ñÆâ¤«¤é¥À¥¦¥ó¥í¡¼¥É¤·¤Ê¤¤¤Ç¤¯¤À¤µ¤¤. ¥À¥¦¥ó¥í¡¼¥É¤µ¤ì¤¿ ¥µ¥¤¥È¤Î´ÉÍý¼Ô¤Ï, ˡΧŪ¤Ë¤È¤Æ¤âÆñ¤·¤¯º¤Æñ¤ÊΩ¾ì¤ËΩ¤¿¤µ¤ì¤ë »ö¤Ë¤Ê¤ê¤Þ¤¹. ¹ç½°¹ñ°Ê³°¸þ¤±¤Î Kerberos ¤â³«È¯¤µ¤ì¤Ä¤Ä¤¢¤ê¤Þ¤¹. ¸½ºß¤Î ¥Ð¡¼¥¸¥ç¥ó¤Ï anonymous FTP ¤Ç braae.ru.ac.za ¤«¤é Æþ¼ê¤Ç¤­¤Þ¤¹. ¤Þ¤¿, ¹ç½°¹ñ¹ñ³°¸þ¤±¤Î°Å¹æ²½¥½¥Õ¥È¥¦¥§¥¢¤Ë´Ø¤¹¤ëµÄÏÀ¤Î¤¿¤á¤Î ¤â¤¢¤ê¤Þ¤¹. ¤è¤ê¾Ü¤·¤¤¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï, ¥á¡¼¥ë¤ÎËÜʸ¤Ë ``help'' ¤È¤À¤±½ñ¤¤¤Æ <majordomo@braae.ru.ac.za> ¤Þ¤ÇÁ÷¤Ã¤Æ¤¯¤À¤µ¤¤. ¥Ö¡¼¥È¥Õ¥í¥Ã¥Ô¡¼¤Çµ¯Æ°¤¹¤ë¤È, ``Probing Devices...'' ¤Î²èÌ̤ǥϥ󥰥¢¥Ã¥×¤·¤Þ¤¹. IDE Zip ¤« Jaz ¥É¥é¥¤¥Ö¤¬Àܳ¤µ¤ì¤Æ¤¤¤¿¤é, ¤½¤ì¤ò¼è¤ê³°¤·¤Æ ¤â¤¦°ìÅٻ¤Æ¤ß¤Þ¤·¤ç¤¦. ¥Ö¡¼¥È¥Õ¥í¥Ã¥Ô¡¼¤Ï¤³¤Î¼ï¤Î¥É¥é¥¤¥Ö¤ò¸íǧ¤·¤Æ ¤·¤Þ¤¦¤Î¤Ç¤¹. ¥·¥¹¥Æ¥à¤¬¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤¿¸å¤Ï, ¤½¤Î¥É¥é¥¤¥Ö¤òºÆÅÙÀܳ¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. ¤¦¤Þ¤¯¤¤¤±¤Ð¤³¤ÎÌäÂê¤Ï¾­Íè¤Î¥ê¥ê¡¼¥¹¤Ç²ò·è¤µ¤ì¤ë¤Ç¤·¤ç¤¦. ¥¤¥ó¥¹¥È¡¼¥ë½ªÎ»¸å¤Ë¥·¥¹¥Æ¥à¤ò¥ê¥Ö¡¼¥È¤¹¤ë¤È, ``panic: cant mount root'' ¤Î¥¨¥é¡¼¤È¤Ê¤ê¤Þ¤¹. ¤³¤Î¥¨¥é¡¼¤Ï¥Ç¥£¥¹¥¯¥Ç¥Ð¥¤¥¹¤Ë¤Ä¤¤¤Æ¥Ö¡¼¥È¥Ö¥í¥Ã¥¯¤È¥«¡¼¥Í¥ë¤Î ǧ¼±¤¬º®Í𤷤Ƥ¤¤ë¤¿¤á¤Ëµ¯¤³¤ê¤Þ¤¹. ¤³¤Î¥¨¥é¡¼¤ÏÄ̾ï 2 Âæ¤Î IDE ¥Ç¥£¥¹¥¯¤¬¤½¤ì¤¾¤ìÊ̤ΠIDE ¥³¥ó¥È¥í¡¼¥é¤Î¥Þ¥¹¥¿¡¼¤«¥·¥ó¥°¥ë¥Ç¥Ð¥¤¥¹ ¤È¤·¤ÆÀܳ¤µ¤ì¤Æ¤¤¤ë¥·¥¹¥Æ¥à¤Ë¤ª¤¤¤Æ, FreeBSD ¤¬¥»¥«¥ó¥À¥ê IDE ¥³¥ó¥È¥í¡¼¥é¤ËÀܳ¤µ¤ì¤¿¥Ç¥£¥¹¥¯¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤ËȯÀ¸¤·¤Þ¤¹. ¥Ö¡¼¥È¥Ö¥í¥Ã¥¯¤Ï FreeBSD ¤¬ wd1 (2 ÂæÌܤΠBIOS ¥Ç¥£¥¹¥¯) ¤Ë¥¤¥ó¥¹¥È¡¼¥ë ¤µ¤ì¤Æ¤¤¤ë¤Èǧ¼±¤¹¤ë¤Î¤ËÂФ·, ¥«¡¼¥Í¥ë¤Ï ¥»¥«¥ó¥À¥ê IDE ¤Î 1 ÂæÌܤΠ¥Ï¡¼¥É¥Ç¥£¥¹¥¯¤Ç¤¢¤ë wd2 ¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¤Èǧ¼±¤¹¤ë¤Î¤Ç¤¹. ¥Ç¥Ð¥¤¥¹¥×¥í¡¼¥Ö¤Î¸å¤Ç, ¥«¡¼¥Í¥ë¤Ï¥Ö¡¼¥È¥Ö¥í¥Ã¥¯¤¬¥Ö¡¼¥È¥Ç¥£¥¹¥¯¤À¤È ǧ¼±¤·¤¿¥Ç¥£¥¹¥¯¤Ç¤¢¤ë wd1 ¤ò mount ¤·¤è¤¦¤È¤·¤Þ¤¹. ¼ÂºÝ¤Ë¤Ï ¥Ö¡¼¥È¥Ç¥£¥¹¥¯¤Ï wd2 ¤Ê¤Î¤Ç¼ºÇÔ¤·¤Æ¤·¤Þ¤¦¤Î¤Ç¤¹. ¤³¤ÎÌäÂê¤ò²ò·è¤¹¤ë¤Ë¤Ï, °Ê²¼¤Î¤É¤ì¤«°ì¤Ä¤ò¹Ô¤Ã¤Æ¤¯¤À¤µ¤¤: Boot: ¥×¥í¥ó¥×¥È¤Ç, 1:wd(2,a)kernel ¤ÈÆþÎϤ·¤Æ¥¨¥ó¥¿¡¼¥­¡¼¤ò²¡¤·¤Þ¤¹. ¥·¥¹¥Æ¥à¤¬µ¯Æ°¤·¤¿¤é, echo "1:wd(2,a)kernel" > /boot.config ¤È¤¤¤¦¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Æ¤³¤ì¤ò¥Ç¥Õ¥©¥ë¥È¤Î¥Ö¡¼¥Èʸ»úÎó¤È¤·¤Þ¤¹. FreeBSD ¤Î¥Ç¥£¥¹¥¯¤ò¥×¥é¥¤¥Þ¥ê IDE ¥³¥ó¥È¥í¡¼¥é¤ËÀܳ¤·¤Æ, ¥Ï¡¼¥É¥Ç¥£¥¹¥¯¤¬Ï¢Â³¤·¤¿¥É¥é¥¤¥ÖÈÖ¹æ¤Çǧ¼±¤µ¤ì¤ë¤è¤¦¤Ë¤·¤Þ¤¹. ¥«¡¼¥Í¥ë¤Î¥³¥ó¥Õ¥£¥°¥ì¡¼¥·¥ç¥ó¥Õ¥¡¥¤¥ë¤Ç wd ¤Î¹Ô¤ò°Ê²¼¤Î¤è¤¦¤Ë Êѹ¹¤·¤Æ¤«¤é¥«¡¼¥Í¥ë¤òºÆ¹½ÃÛ ¤ò¹Ô¤¤, ¿·¤·¤¤¥«¡¼¥Í¥ë¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Þ¤¹. controller wdc0 at isa? port "IO_WD1" bio irq 14 vector wdintr disk wd0 at wdc0 drive 0 # disk wd1 at wdc0 drive 1 # ¤³¤Î¹Ô¤ò¥³¥á¥ó¥È¥¢¥¦¥È controller wdc1 at isa? port "IO_WD2" bio irq 15 vector wdintr disk wd1 at wdc1 drive 0 # wd2 ¤«¤é wd1 ¤ØÊѹ¹ disk wd2 at wdc1 drive 1 # wd3 ¤«¤é wd2 ¤ØÊѹ¹ ¥Ç¥£¥¹¥¯¤ÎÀܳ¤òÊѹ¹¤·¤Æ¸µ¤ÎÀßÄê¤ËÌᤷ¤¿¤¤¾ì¹ç¤Ï, ¥Ç¥£¥¹¥¯¤ò ¤ªË¾¤ß¤ÎÀßÄê¤ÎÄ̤ê¤ÎÀܳ¤ËÌᤷ¤Æ¤«¤é¥ê¥Ö¡¼¥È¤·¤Þ¤¹. ¥·¥¹¥Æ¥à¤ÏÀµ¾ï¤Ëµ¯Æ°¤¹¤ë¤Ï¤º¤Ç¤¹. ¥á¥â¥ê¤ÎÂ礭¤µ¤ÎÀ©¸Â¤Ï? ¥á¥â¥ê¤Ï, (ÏÀÍýŪ¤Ê) ¸Â³¦¤Ï 4 ¥®¥¬¥Ð¥¤¥È¤Ç¤¹. 1 ¥®¥¬¥Ð¥¤¥È¤Î¤â¤Î¤Ï ¤¹¤Ç¤Ë¥Æ¥¹¥È¤¬¤µ¤ì¤Æ¤¤¤Þ¤¹. ÉáÄÌ¤Ï i386 ¤Î PC ¤Ç¤Ï¤½¤ì°Ê¾å¤Î¥á¥â¥ê¤ò ¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¤â¤Î¤òÇ㤦¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó. ffs ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ÎÂ礭¤µ¤ÎÀ©¸Â¤Ï? ffs ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ï, ÏÀÍýŪ¤ÊºÇÂç¤Î¾å¸Â¤Ï 8 ¥Æ¥é¥Ð¥¤¥È (2G ¥Ö¥í¥Ã¥¯) ¤«, ¥Ç¥Õ¥©¥ë¥È¤Î¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤ò 8K ¤È¤¹¤ë¤È 16 ¥Æ¥é¥Ð¥¤¥È¤È¤Ê¤ê¤Þ¤¹. ¼ÂºÝÌäÂê¤È¤·¤Æ, 1 ¥Æ¥é¥Ð¥¤¥È¤Î¥½¥Õ¥È¥¦¥§¥¢¤Î¸Â³¦¤¬¤¢¤ê¤Þ¤¹¤¬, ½¤Àµ¤¹¤ì¤Ð 4 ¥Æ¥é¥Ð¥¤¥È¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤¬²Äǽ¤Ç¤¹ (¼ÂºÝ¤Ë¸ºß¤·¤Þ¤¹). °ì¤Ä¤Î ffs ¤Î¥Õ¥¡¥¤¥ë¤ÎºÇÂç¤Î¥µ¥¤¥º¤Ï, ¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤¬ 4K ¤Î¾ì¹ç¤Ç Ìó 1 ¥®¥¬¥Ö¥í¥Ã¥¯ (4 ¥Æ¥é¥Ð¥¤¥È) ¤Ç¤¹. maxfilesize ---------------------------------- 2.2.7 3.0 fs block size -stable -current works should-work ------------- ------- -------- ----- ----------- 4K 4T-1 4T-1 4T-1 4+T 8K 32+G 8T-1 32+G 16T-1 16K 128+G 16T-1 128+G 32T-1 32K 512+G 32T-1 512+G 64T-1 64K 2048+G 64T-1 2048+G 128T-1 fs ¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤¬ 4K ¤Î¾ì¹ç¤Ï»°½Å´ÖÀÜ¥Ö¥í¥Ã¥¯¤¬»ÈÍѤµ¤ì, ¤¤¤Å¤ì¤Î¾ì¹ç¤Ç¤â»°½Å´ÖÀÜ¥Ö¥í¥Ã¥¯¤ò»ÈÍѤ·¤ÆÉ½¸½¤Ç¤­¤ëºÇÂç¤Î fs ¥Ö¥í¥Ã¥¯ÈÖ¹æ (¤ª¤è¤½ 1K^3 + 1K^2 + 1K) ¤ËÀ©¸Â¤µ¤ì¤ë¤Ï¤º¤Ê¤Î¤Ç¤¹¤¬, ¼ÂºÝ¤Ï fs ¥Ö¥í¥Ã¥¯ÈÖ¹æ¤Î (´Ö°ã¤Ã¤¿) ¾å¸Â 1G-1 ¤ÇÀ©¸Â¤µ¤ì¤Þ¤¹. fs ¥Ö¥í¥Ã¥¯ÈÖ¹æ¤ÎÀ©¸Â¤Ï 2G-1 ¤È¤Ê¤ë¤Ï¤º¤Ç¤¹. 2G-1 ÉÕ¶á¤Ë fs ¥Ö¥í¥Ã¥¯ÈÖ¹æ¤Î¥Ð¥°¤¬Â¿¾¯¤¢¤ê¤Þ¤¹¤¬, fs ¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤¬ 4K ¤Î¾ì¹ç¤Ï, ¤³¤³¤Þ¤Ç¤Î¥Ö¥í¥Ã¥¯ÈÖ¹æ¤Ë¤ÏÅþ㤷¤Þ¤»¤ó. ¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤¬ 8K °Ê¾å¤Î¾ì¹ç, ¤¤¤Å¤ì¤Î¾ì¹ç¤â fs ¥Ö¥í¥Ã¥¯ÈÖ¹æ¤Î ¾å¸Â 2G-1 ¤ÇÀ©¸Â¤µ¤ì¤ë¤Ï¤º¤Ç¤¹¤¬, ¼ÂºÝ¤Ï fs ¥Ö¥í¥Ã¥¯ÈÖ¹æ¤Î¾å¸Â 1G-1 ¤ÇÀ©¸Â¤µ¤ì¤Þ¤¹. Î㳰Ū¤Ë -stable ¤Ç¤Ï»°½Å´ÖÀÜ¥Ö¥í¥Ã¥¯¤Þ¤Ç¤Ï Åþ㤷¤Ê¤¤¤¿¤á, À©¸Â¤ÏÆó½Å´ÖÀÜ¥Ö¥í¥Ã¥¯¤Çɽ¸½¤Ç¤­¤ëºÇÂç¤Î fs ¥Ö¥í¥Ã¥¯ÈÖ¹æ (¤ª¤è¤½ (blocksize/4)^2 + (blocksize/4)) ¤È¤Ê¤ê¤Þ¤¹. -current ¤Ç¤Ï¤³¤ÎÀ©¸Â¤òͤ¨¤ë¤ÈÌäÂê¤ò°ú¤­µ¯¤³¤¹¤«¤â¤·¤ì¤Þ¤»¤ó. Àµ¤·¤¤À©¸ÂÃͤǤ¢¤ë 2G-1 ¥Ö¥í¥Ã¥¯¤ò»ÈÍѤ¹¤ë¤ÈÌÀ¤é¤«¤ËÌäÂ꤬½Ð¤Þ¤¹. ¥Õ¥í¥Ã¥Ô¡¼¤Ë 1 ¥Æ¥é¥Ð¥¤¥È¤Î¥Õ¥¡¥¤¥ë¤ò³ÊǼ¤¹¤ë¤Ë¤Ï? ¤ï¤¿¤·¤Î¤È¤³¤í¤Ç¤Ï¥Õ¥í¥Ã¥Ô¡¼¤Ë¤¤¤¯¤Ä¤«¤Î¼ÂºÝ¤Î¥Õ¥¡¥¤¥ë¤òÊݸ¤·¤Æ¤¤¤Þ¤¹ :-). ºÇÂç¤Î¥Õ¥¡¥¤¥ë¥µ¥¤¥º¤ÏºÇÂç¤Î¥Ç¥£¥¹¥¯¥µ¥¤¥º¤È¤Ï¤¢¤Þ¤ê´Ø·¸¤Ï¤¢¤ê¤Þ¤»¤ó. ºÇÂç¤Î¥Ç¥£¥¹¥¯¥µ¥¤¥º¤Ï 1TB ¤Ç¤¹. ¥Õ¥¡¥¤¥ë¥µ¥¤¥º¤¬¥Ç¥£¥¹¥¯¥µ¥¤¥º¤è¤ê Â礭¤¯¤Ê¤ê¤¦¤ë¤È¤¤¤¦¤Î¤Ï»ÅÍͤǤ¹. °Ê²¼¤ÎÎã¤Ï, 32K ¤Î¥Ç¥£¥¹¥¯ÍÆÎÌ (3 ¤Ä¤Î´ÖÀÜ¥Ö¥í¥Ã¥¯¤È 1 ¤Ä¤Î¥Ç¡¼¥¿¥Ö¥í¥Ã¥¯) ¤ò»È¤Ã¤Æ, ¾®¤µ¤Ê¥ë¡¼¥È¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Ë 8T-1 ¤ÎÂ礭¤µ¤Î¥Õ¥¡¥¤¥ë¤òºîÀ®¤·¤Þ¤¹. ¤³¤³¤Ç¤Î dd ¥³¥Þ¥ó¥É¤Ï Â礭¤Ê¥Õ¥¡¥¤¥ë¤¬°·¤¨¤ë¤â¤Î¤¬É¬ÍפǤ¹. ttyv0:bde@alphplex:/tmp/q> cat foo df . dd if=/dev/zero of=z bs=1 seek=`echo 2^43 - 2 | bc` count=1 ls -l z du z df . ttyv0:bde@alphplex:/tmp/q> sh foo Filesystem 1024-blocks Used Avail Capacity Mounted on /dev/sd0a 64479 27702 31619 47% / 1+0 records in 1+0 records out 1 bytes transferred in 0.000187 secs (5346 bytes/sec) -rw-r--r-- 1 bde bin 8796093022207 Sep 7 16:04 z 32 z Filesystem 1024-blocks Used Avail Capacity Mounted on /dev/sd0a 64479 27734 31587 47% / ttyv0:bde@alphplex:/tmp/q> exit Bruce Evans, September 1998 ¥Ï¡¼¥É¥¦¥§¥¢¥³¥ó¥Ñ¥Á¥Ó¥ê¥Æ¥£ Ìõ: ¤Ë¤·¤« <nishika@cheerful.com>.12 November 1997. FreeBSD ¤Ï, ¤É¤ó¤Ê¥Ï¡¼¥É¥Ç¥£¥¹¥¯¥É¥é¥¤¥Ö¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¤Î¤Ç¤¹¤«? FreeBSD ¤Ï, EIDE ¤È SCSI ¥Ï¡¼¥É¥Ç¥£¥¹¥¯¥É¥é¥¤¥Ö¤ò¥µ¥Ý¡¼¥È ¤·¤Æ¤¤¤Þ¤¹ (¸ß´¹¥³¥ó¥È¥í¡¼¥é¤â´Þ¤ß¤Þ¤¹: ¼¡¤ÎÀỲ¾È). ¤Þ¤¿ ¥ª¥ê¥¸¥Ê¥ë¤Î "Western Digital" ¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤ò»ÈÍѤ·¤Æ¤¤¤ë ¤¹¤Ù¤Æ¤Î¥É¥é¥¤¥Ö¤â (MFM, RLL, ESDI, ¤â¤Á¤í¤ó IDE ¤â) ¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹. ÆÈ¼«»ÅÍͤΥ¤¥ó¥¿¥Õ¥§¡¼¥¹¤ò»ÈÍѤ¹¤ë ESDI ¥³¥ó¥È¥í¡¼¥é¤Ç¤Ïưºî¤·¤Ê¤¤¤â¤Î¤¬¤¢¤ê, WD1002/3/6/7 ¤È¤½¤Î¸ß´¹¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤È¾×ÆÍ¤·¤Þ¤¹. ¤É¤Î SCSI ¥³¥ó¥È¥í¡¼¥é¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¤Î¤Ç¤¹¤«? ¥Ï¥ó¥É¥Ö¥Ã¥¯ ¤Ëµ­¤µ¤ì¤Æ¤¤¤ë´°Á´¤Ê¥ê¥¹¥È¤ò»²¾È ¤·¤Æ¤¯¤À¤µ¤¤. ¤É¤ó¤Ê CD-ROM ¥É¥é¥¤¥Ö¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¤Î¤Ç¤¹¤«? ¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë SCSI ¥³¥ó¥È¥í¡¼¥é¤ËÀܳ¤Ç¤­¤ë SCSI ¥É¥é¥¤¥Ö¤¹¤Ù¤Æ¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹. ¤Þ¤¿, °Ê²¼¤ÎÀìÍÑ CD-ROM ¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤â¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹. ¥ß¥Ä¥ß LU002 (8bit), LU005 (16bit) ¤ª¤è¤Ó FX001D (16bit 2ÇÜ®). ¥½¥Ë¡¼ CDU 31/33A Sound Blaster Èó SCSI ¥¿¥¤¥×¤Î CD-ROM ¾¾²¼ / Panasonic CD-ROM ATAPI ¸ß´¹¤Î IDE CD-ROM SCSI ¤Ç¤Ê¤¤¥«¡¼¥É¤Ï¤¹¤Ù¤Æ, SCSI ¥É¥é¥¤¥Ö¤è¤ê¤â¶Ë¤á¤ÆÆ°ºî®ÅÙ¤¬ ÃÙ¤¤¤³¤È¤¬ÃΤé¤ì¤Æ¤ª¤ê, ATAPI CD-ROM ¤Ë¤Ïưºî¤·¤Ê¤¤¤â¤Î¤â¤¢¤ë¤è¤¦¤Ç¤¹. Walnut Creek ¤Î FreeBSD 2.2 CD-ROM ¤«¤é¤Ï CD ¤«¤é¤ÎľÀÜ¥Ö¡¼¥È¤¬ ¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤¹. ZIP ¥É¥é¥¤¥Ö¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¤«? ¤â¤Á¤í¤ó, FreeBSD ¤Ï SCSI ZIP ¥É¥é¥¤¥Ö (³°ÉÕ¤±) ¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹. ZIP ¥É¥é¥¤¥Ö¤Ï SCSI ID ¤ò 5 ¤« 6 ¤ËÀßÄꤷ¤¿¾õÂ֤Ǥʤé»ÈÍѤǤ­¤Þ¤¹¤¬, ¤â¤· SCSI ¥Û¥¹¥È¥¢¥À¥×¥¿¤Î BIOS ¤¬¥µ¥Ý¡¼¥È¤·¤Æ¤µ¤¨¤¤¤ì¤Ð ZIP ¥É¥é¥¤¥Ö¤«¤é¥Ö¡¼¥È¤µ¤»¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹. »ä¤Ï¤É¤Î¥Û¥¹¥È¥¢¥À¥×¥¿¤¬ SCSI ID ¤ò 0 ¤ä 1 °Ê³°¤ËÀßÄꤷ¤¿¥Ç¥Ð¥¤¥¹¤«¤é¥Ö¡¼¥È¤Ç¤­¤ë¤Î¤«ÃΤê¤Þ¤»¤ó¤¬... ¥É¥­¥å¥á¥ó¥È¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤ (¤¦¤Þ¤¯¤¤¤Ã¤¿¾ì¹ç¤Ï¶µ¤¨¤Æ¤¯¤À¤µ¤¤). ATAPI (IDE) ZIP ¥É¥é¥¤¥Ö¤¬, FreeBSD 2.2.6 °Ê¹ß¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¤Ï ¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤¹. ¥Ð¡¼¥¸¥ç¥ó 3.0 °Ê¹ß¤Î FreeBSD ¤Ç¤Ï¥Ñ¥é¥ì¥ë¥Ý¡¼¥ÈÀܳ¤Î ZIP ¥É¥é¥¤¥Ö ¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹. ºÇ¶á¤Î¥Ð¡¼¥¸¥ç¥ó¤Î FreeBSD ¤ò¤ª»È¤¤¤Ç¤·¤¿¤é, kernel¥³¥ó¥Õ¥£¥°¥ì¡¼¥·¥ç¥ó¥Õ¥¡¥¤¥ë¤Ë scbus0, da0, ppbus0, vp0 ¤Î³Æ¥É¥é¥¤¥Ð¤¬µ­½Ò¤µ¤ì¤Æ¤¤¤ë¤³¤È¤ò ³Îǧ¤·¤Æ¤¯¤À¤µ¤¤. (GENERIC kernel ¤Ë¤Ï vp0 °Ê³°¤ÎÁ´¤Æ¤¬Æþ¤Ã¤Æ¤¤¤Þ¤¹). ¤³¤ì¤éÁ´¤Æ¤Î¥É¥é¥¤¥Ð¤¬¤¢¤ì¤Ð, ¥Ñ¥é¥ì¥ë¥Ý¡¼¥È¤Î¥É¥é¥¤¥Ö¤Ï /dev/da0s4 ¤È¤Ê¤ê¤Þ¤¹. ¥Ç¥£¥¹¥¯¤Ï mount /dev/da0s4 /mnt ¤Þ¤¿¤Ï mount_msdos /dev/da0s4 /mnt (DOS ¥Ç¥£¥¹¥¯¤Î¾ì¹ç) ¤Ç¥Þ¥¦¥ó¥È ¤Ç¤­¤Þ¤¹. ¤½¤ì¤«¤é ¤ª¤è¤Ó ¤Ë¤Ä¤¤¤Æ¤â ³Îǧ¤·¤Æ¤ª¤¤¤Æ¤¯¤À¤µ¤¤. ¤Ç¤Ï, JAZ ¤ä EZ, ¤½¤ì¤«¤é¤½¤Î¾¤Î¥ê¥à¡¼¥Ð¥Ö¥ë¥É¥é¥¤¥Ö¤Ï¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¤«? FreeBSD ¤Ç¤Ï, IDE ¥Ð¡¼¥¸¥ç¥ó¤Î EZ ¥É¥é¥¤¥Ö¤ò½ü¤¯¤¹¤Ù¤Æ¤Î SCSI ¥Ç¥Ð¥¤¥¹¤Ï, SCSI ¤Î¥Ç¥£¥¹¥¯¤ÈƱÅù¤Ë°·¤ï¤ì¤Þ¤¹. ¤Þ¤¿ IDE EZ ¤Ï IDE ¥É¥é¥¤¥Ö¤ÈƱÅù¤È¤Ê¤ê¤Þ¤¹. ¥·¥¹¥Æ¥à²ÔÆ¯Ãæ¤Î¥á¥Ç¥£¥¢¸ò´¹¤Ë¤Ä¤¤¤Æ FreeBSD ¤¬ ¤É¤ì¤Û¤É¤¦¤Þ¤¯Æ°¤¯¤«Ä꤫¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó. ¤â¤Á¤í¤ó¥á¥Ç¥£¥¢¤òÆþ¤ìÂØ¤¨¤ëÁ°¤Ë ¤½¤Î¥É¥é¥¤¥Ö¤ò¥Þ¥¦¥ó¥È²ò½ü¤·¤Ê¤±¤ì¤Ð¤¤¤±¤Ê¤¤¤Ç¤·¤ç¤¦¤·, FreeBSD ¤¬¤½¤ì¤é¤òǧ¼±¤¹¤ë¤Ë¤Ï¥Ö¡¼¥È»þ¤Ë³°Éô¥æ¥Ë¥Ã¥È¤Ë¤âÅŸ»¤¬ÅêÆþ¤µ¤ì¤Æ¤¤¤ë ¤³¤È¤ò³Îǧ¤·¤Ê¤±¤ì¤Ð¤¤¤±¤Ê¤¤¤Ç¤·¤ç¤¦. ¤â»²¾È. ¤É¤Î¥Þ¥ë¥Á¥Ý¡¼¥È¥·¥ê¥¢¥ë¥«¡¼¥É¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¤«? °ìÍ÷¤Ï ¤½¤Î¾¤Î¥Ç¥Ð¥¤¥¹ ¤ÎÀá¤Ë¤¢¤ê¤Þ¤¹. ̵̾¤Î¥«¡¼¥É¤Ë¤â¤¦¤Þ¤¯Æ°¤¯¤â¤Î¤¬¤¢¤ê, ÆÃ¤Ë AST ¸ß´¹¤È¤¤¤ï¤ì¤Æ¤¤¤ë¤â¤Î¤Ë¿¤¯¸«¤é¤ì¤Þ¤¹. ¥«¡¼¥ÉÀßÄê¤Î¾ÜºÙ¤Ê¾ðÊó¤Ï, sio ¥ª¥ó¥é¥¤¥ó¥Þ¥Ë¥å¥¢¥ë¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤. ÄÁ¤·¤¤¥Ð¥¹¥Þ¥¦¥¹¤ò»ý¤Ã¤Æ¤¤¤ë¤Î¤Ç¤¹¤¬, ¤É¤Î¤è¤¦¤ËÀßÄꤹ¤ì¤Ð¤¤¤¤¤Î¤Ç¤¹¤«? FreeBSD ¤Ï Microsoft, Logitech, ATI Åù¤Î¥á¡¼¥«¡¼¤«¤é½Ð¤Æ¤¤¤ë¥Ð¥¹¥Þ¥¦¥¹ ¤È InPort ¥Ð¥¹¥Þ¥¦¥¹¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹. ¥Ð¥¹¥Þ¥¦¥¹¤Î¥Ç¥Ð¥¤¥¹¥É¥é¥¤¥Ð ¤Ï GENERIC ¥«¡¼¥Í¥ë¤Ëɸ½à¤Ç´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹. ¤â¤·¥Ð¥¹¥Þ¥¦¥¹¤Î¥Ç¥Ð¥¤¥¹ ¥É¥é¥¤¥Ð¤ò´Þ¤à¥«¡¼¥Í¥ë¤ò¼«Ê¬¤Ç¹½ÃÛ¤¹¤ë¾ì¹ç¤Ë¤Ï, ¥«¡¼¥Í¥ë¥³¥ó¥Õ¥£¥°¥ì¡¼¥·¥ç¥ó¥Õ¥¡¥¤¥ë¤Ë°Ê²¼¤Î¹Ô¤ò˺¤ì¤º¤Ë²Ã¤¨¤Æ²¼¤µ¤¤. device mse0 at isa? port 0x23c tty irq5 vector mseintr Ä̾ï¥Ð¥¹¥Þ¥¦¥¹¤Ë¤ÏÀìÍѤΥ¤¥ó¥¿¥Õ¥§¡¼¥¹¥«¡¼¥É¤¬Éí°¤·¤Æ¤¤¤Þ¤¹. ¥¤¥ó¥¿¥Õ¥§¡¼¥¹¥«¡¼¥É¤Ë¤è¤Ã¤Æ¤Ï¥Ý¡¼¥È¥¢¥É¥ì¥¹¤ä³ä¤ê¹þ¤ßÈÖ¹æ¤ò¾åµ­¤Î ÀßÄê°Ê³°¤ËÊѹ¹¤Ç¤­¤ë¤«¤â¤·¤ì¤Þ¤»¤ó. ¾Ü¤·¤¯¤Ï¥Ð¥¹¥Þ¥¦¥¹¤Î¥Þ¥Ë¥å¥¢¥ë¤È mse ¥ª¥ó¥é¥¤¥ó¥Þ¥Ë¥å¥¢¥ë¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤. PS/2 ¥Þ¥¦¥¹(¥Þ¥¦¥¹¥Ý¡¼¥È¥Þ¥¦¥¹, ¥­¡¼¥Ü¡¼¥É¥Þ¥¦¥¹) ¤ò»È¤¦¤Ë¤Ï, ¤É¤Î¤è¤¦¤ËÀßÄꤹ¤ì¤Ð¤¤¤¤¤Î¤Ç¤¹¤«? ¤¢¤Ê¤¿¤¬ 2.2.5 °Ê¹ß¤Î¥Ð¡¼¥¸¥ç¥ó FreeBSD ¤ò»È¤Ã¤Æ¤¤¤ë¤Î¤Ê¤é, ɬÍפʥɥ饤¥Ð¤Î psm ¤Ï¥«¡¼¥Í¥ë¤Ë´Þ¤Þ¤ì¤Æ¤¤¤ÆÍ­¸ú¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹. ¥«¡¼¥Í¥ë¤Ï¥Ö¡¼¥È»þ¤Ë PS/2 ¥Þ¥¦¥¹¤ò¸¡½Ð¤¹¤ë¤Ç¤·¤ç¤¦. ¤¢¤Ê¤¿¤Î»È¤Ã¤Æ¤¤¤ë FreeBSD ¤¬Èæ³ÓŪ¿·¤·¤¤¤±¤ì¤ÉÁ°¤Î¥Ð¡¼¥¸¥ç¥ó (2.1.x °Ê¹ß) ¤Î¤â¤Î¤Ê¤é, ¥¤¥ó¥¹¥È¡¼¥ë¤Î»þ¤Ë, ñ¤Ë¥«¡¼¥Í¥ë¤Î¥³¥ó¥Õ¥£¥°¥ì¡¼¥·¥ç¥ó¤Î¥á¥Ë¥å¡¼¾å¤Ç PS/2 ¥Þ¥¦¥¹¤òÍ­¸ú²½¤¹¤ë¤À¤±¤Ç¤¹, ¤¢¤ë¤¤¤Ï¸å¤Ç boot: ¥×¥í¥ó¥×¥È¾å¤Ç -c ¤ò»ØÄꤹ¤ë¤³¤È¤Ç¤â¥á¥Ë¥å¡¼¤Ï¸½¤ì¤Þ¤¹. ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï̵¸ú¤ËÀßÄꤵ¤ì¤Æ¤¤¤Þ¤¹¤Î¤Ç, ÌÀ¼¨Åª¤Ë Í­¸ú²½¤·¤Æ¤¢¤²¤Ê¤¤¤È¤¤¤±¤Þ¤»¤ó. ¤¢¤Ê¤¿¤Î»È¤Ã¤Æ¤¤¤ë FreeBSD ¤¬Èæ³ÓۏŤ¤¤â¤Î¤Ê¤é, ¥«¡¼¥Í¥ë¥³¥ó¥Õ¥£¥°¥ì¡¼¥·¥ç¥ó¥Õ¥¡¥¤¥ë¤Ë°Ê²¼¤Î¹Ô¤ò²Ã¤¨¤Æ ¥«¡¼¥Í¥ë¤òºÆ¥³¥ó¥Ñ¥¤¥ë¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹. device psm0 at isa? port "IO_KBD" conflicts tty irq 12 vector psmintr ¥«¡¼¥Í¥ë¤ÎºÆ¹½ÃۤˤĤ¤¤Æ¤è¤¯ÃΤé¤Ê¤¤¤Î¤Ç¤¢¤ì¤Ð, ¥Ï¥ó¥É¥Ö¥Ã¥¯¤Î FreeBSD ¥«¡¼¥Í¥ë¤Î¥³¥ó¥Õ¥£¥°¥ì¡¼¥·¥ç¥ó ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤. ¥Ö¡¼¥È»þ¤Ë¥«¡¼¥Í¥ë¤¬ psm0 ¤ò¸¡½Ð¤·¤¿¤é, psm0 ¤Î¥¨¥ó¥È¥ê¤¬ /dev ¤ÎÃæ¤Ë¤¢¤ë¤³¤È¤ò³Îǧ¤·¤Æ¤¯¤À¤µ¤¤. °Ê²¼¤Î¤è¤¦¤Ë¤·¤Þ¤¹. cd /dev; sh MAKEDEV psm0 ¤³¤ì¤Ï root ¤Ç¥í¥°¥¤¥ó¤·¤Æ¤¤¤ë¤È¤­¤Ë¤ª¤³¤Ê¤Ã¤Æ¤¯¤À¤µ¤¤. X Window System °Ê³°¤Î´Ä¶­¤Ç¥Þ¥¦¥¹¤ò»È¤¦¤³¤È¤Ï²Äǽ¤Ç¤¹¤«? ¤â¤·¥Ç¥Õ¥©¥ë¥È¤Î¥³¥ó¥½¡¼¥ë¥É¥é¥¤¥Ð¤Ç¤¢¤ë syscons ¤ò»È¤Ã¤Æ¤¤¤ë¤Î¤Ç ¤¢¤ì¤Ð, ¥Æ¥­¥¹¥È¥³¥ó¥½¡¼¥ë¾å¤Ç¥Þ¥¦¥¹¤ò»È¤Ã¤Æ¥Æ¥­¥¹¥È¤Î¥«¥Ã¥È¥¢¥ó¥É ¥Ú¡¼¥¹¥È¤¬¤Ç¤­¤Þ¤¹. ¥Þ¥¦¥¹¥Ç¡¼¥â¥ó¤Ç¤¢¤ë moused ¤òµ¯Æ°¤·, ²¾ÁÛ¥³¥ó¥½¡¼¥ë ¤Ç¥Þ¥¦¥¹¥Ý¥¤¥ó¥¿¤òÍ­¸ú¤Ë¤·¤Æ²¼¤µ¤¤. moused -p /dev/xxxx -t yyyy vidcontrol -m on ¤³¤³¤Ç xxxx ¤Ï¥Þ¥¦¥¹¤Î¥Ç¥Ð¥¤¥¹Ì¾, yyyy ¤Ï¥Þ¥¦¥¹¤Î ¥×¥í¥È¥³¥ë¥¿¥¤¥×¤Ç¤¹. ¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¥×¥í¥È¥³¥ë¥¿¥¤¥×¤Ë¤Ä¤¤¤Æ¤Ï moused ¥ª¥ó¥é¥¤¥ó¥Þ¥Ë¥å¥¢¥ë¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤. ¥·¥¹¥Æ¥à¤òµ¯Æ°¤¹¤ë»þ¤Ë¼«Æ°Åª¤Ë moused ¤òµ¯Æ°¤·¤¿¤¤¾ì¹ç¤Ë¤Ï, FreeBSD 2.2.1 ¤Ç¤Ï°Ê²¼¤ÎÊÑ¿ô¤ò /etc/sysconfig ¤ÇÀßÄꤷ¤Æ²¼¤µ¤¤. mousedtype="yyyy" mousedport="xxxx" mousedflags="" FreeBSD 2.2.2 °Ê¹ß¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¤Ï /etc/rc.conf ¤Ç°Ê²¼¤Î¤è¤¦¤Ë ÀßÄꤷ¤Æ²¼¤µ¤¤. moused_type="yyyy" moused_port="xxxx" moused_flags="" FreeBSD 2.2.6 °Ê¹ß¤Ç¤Ï, ¥Þ¥¦¥¹¥Ç¡¼¥â¥ó¤ÏÈæ³ÓۏŤ¤¥·¥ê¥¢¥ë¥Þ¥¦¥¹ ¤Ç¤Ê¤¤¸Â¤ê¥Þ¥¦¥¹¤Î¥×¥í¥È¥³¥ë¥¿¥¤¥×¤ò¼«Æ°È½Ê̤Ǥ­¤Þ¤¹. ¥×¥í¥È¥³¥ë¥¿¥¤¥× ¤È¤·¤Æ ``auto'' ¤ò»ØÄꤹ¤ë¤È¼«Æ°È½Ê̤ò¹Ô¤Ê¤ª¤¦¤È¤·¤Þ¤¹. ¥Þ¥¦¥¹¥Ç¡¼¥â¥ó¤ò¼Â¹ÔÃæ¤Ï, ¥Þ¥¦¥¹¥Ç¡¼¥â¥ó¤È¾¤Î¥×¥í¥°¥é¥à, Î㤨¤Ð X Window System, ¤Î´Ö¤Ç¥Þ¥¦¥¹¤Ø¤Î¥¢¥¯¥»¥¹¤òÄ´À°¤·¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó. ¤³¤ÎÌäÂê¤Ë ¤Ä¤¤¤Æ¤Ï ¤ò¸æÍ÷²¼¤µ¤¤. ¥Æ¥­¥¹¥È¥³¥ó¥½¡¼¥ë¤Ç¥Þ¥¦¥¹¤ò»È¤Ã¤Æ¥Æ¥­¥¹¥È¤Î¥«¥Ã¥È¥¢¥ó¥É¥Ú¡¼¥¹¥È¤ò¤¹¤ë¤Ë¤Ï¤É¤¦¤·¤¿¤é¤è¤¤¤Î¤Ç¤¹¤«? ¥Þ¥¦¥¹¥Ç¡¼¥â¥ó¤òµ¯Æ°¤·¤¿¤¢¤È ( ¤ò»²¾È¤·¤Æ²¼¤µ¤¤), ¥Ü¥¿¥ó1 (º¸¥Ü¥¿¥ó)¤ò²¡¤·¤Ê¤¬¤é¥Þ¥¦¥¹¤òư¤«¤·¤ÆÈϰϤò»ØÄꤷ¤Æ²¼¤µ¤¤. ¥Ü¥¿¥ó2 (Ãæ¥Ü¥¿¥ó)¤Þ¤¿¤Ï¥Ü¥¿¥ó3 (±¦¥Ü¥¿¥ó)¤ò¥¯¥ê¥Ã¥¯¤¹¤ë¤È¥Æ¥­¥¹¥È ¥«¡¼¥½¥ë¤Î°ÌÃÖ¤ËÁªÂò¤·¤¿ÈϰϤΥƥ­¥¹¥È¤¬¥Ú¡¼¥¹¥È¤µ¤ì¤Þ¤¹. FreeBSD 2.2.6 °Ê¹ß¤Ç¤Ï¥Ü¥¿¥ó2 ¤ò¥¯¥ê¥Ã¥¯¤¹¤ë¤È¥Ú¡¼¥¹¥È¤µ¤ì, ¥Ü¥¿¥ó3 ¤ò¥¯¥ê¥Ã¥¯¤·¤¿¾ì¹ç¤Ë¤Ï´û¸¤ÎÁªÂòÈϰϤ¬¸½ºß¤Î¥Þ¥¦¥¹¥Ý¥¤¥ó¥¿¤Î°ÌÃÖ¤Þ¤Ç ±äĹ¤Þ¤¿¤Ïû½Ì¤µ¤ì¤Þ¤¹. ¤â¤·¥Þ¥¦¥¹¤ËÃæ¥Ü¥¿¥ó¤¬¤Ê¤¤¤Ê¤é, moused ¤Î ¥ª¥×¥·¥ç¥ó¤ò»È¤Ã¤ÆÃæ¥Ü¥¿¥ó¤Î¥¨¥ß¥å¥ì¡¼¥·¥ç¥ó¤ò¤¹¤ë¤«, ¾¤Î¥Ü¥¿¥ó¤ò Ãæ¥Ü¥¿¥ó¤È¤·¤Æ»È¤¦»ö¤¬¤Ç¤­¤Þ¤¹. ¾Ü¤·¤¯¤Ï moused ¥ª¥ó¥é¥¤¥ó¥Þ¥Ë¥å¥¢¥ë¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤. »ä¤Î¥Þ¥¦¥¹¤Ë¤Ï²Ä°¦¤¤¥Û¥¤¡¼¥ë¤ä¥Ü¥¿¥ó¤¬¤Ä¤¤¤Æ¤¤¤ë¤Î¤Ç¤¹¤¬, ¤³¤ì¤Ï FreeBSD ¤Ç¤Ï»È¤¨¤ë¤Î¤Ç¤¹¤«? Åú¤¨¤Ï»Äǰ¤Ê¤¬¤é¡Ö¾ì¹ç¤Ë¤è¤ê¤Þ¤¹¡×¤Ç¤¹. ¤³¤¦¤·¤¿¥Þ¥¦¥¹¤ÎÉÕ²ÃŪ¤Êµ¡Ç½¤Ï ÂçÄñ¤Î¾ì¹çÆÃ¼ì¤Ê¥É¥é¥¤¥Ð¤òɬÍפȤ·¤Þ¤¹. ¥Þ¥¦¥¹¤Î¥Ç¥Ð¥¤¥¹¥É¥é¥¤¥Ð¤ä ¥æ¡¼¥¶¤Î¥×¥í¥°¥é¥à¤¬¤½¤Î¥Þ¥¦¥¹¤ËÂФ¹¤ë¸ÇÍ­¤Î¥µ¥Ý¡¼¥È¤ò¤·¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ë¤Ï ɸ½àŪ¤Ê 2¥Ü¥¿¥ó¤Þ¤¿¤Ï 3¥Ü¥¿¥ó¥Þ¥¦¥¹¤Î¤è¤¦¤Ë¿¶Éñ¤¤¤Þ¤¹. ¥é¥Ã¥×¥È¥Ã¥× PC ¤Î¥Þ¥¦¥¹/¥È¥é¥Ã¥¯¥Ü¡¼¥ë/¥¿¥Ã¥Á¥Ñ¥Ã¥É¤Ï»È¤¨¤Þ¤¹¤«? ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤. ²Ã¤¨¤Æ, ¤Ë¤¢¤ë¥â¡¼¥Ð¥¤¥ë¥³¥ó¥Ô¥å¡¼¥Æ¥£¥ó¥°¤Î ¥Ú¡¼¥¸¤â¤´Í÷¤¯¤À¤µ¤¤. ¤É¤ó¤Ê¥Æ¡¼¥×¥É¥é¥¤¥Ö¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¤«? FreeBSD ¤Ï SCSI, QIC-36 (QIC-02 ¥¤¥ó¥¿¥Õ¥§¡¼¥¹ÉÕ¤­) ¤ª¤è¤Ó QIC-40/80 (¥Õ¥í¥Ã¥Ô¡¼¥Ù¡¼¥¹) ¥Æ¡¼¥×¥É¥é¥¤¥Ö¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹. ¤³¤ì¤é¤Ë¤Ï 8-mm (Exabyte ¤È¸Æ¤Ð¤ì¤Æ¤¤¤Þ¤¹) ¤ä DAT ¥É¥é¥¤¥Ö¤â´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹. QIC-40/80 ¥É¥é¥¤¥Ö¤ÏÃÙ¤¤¤³¤È¤¬ÃΤé¤ì¤Æ¤¤¤Þ¤¹. ½é´ü¤Î 8-mm ¥É¥é¥¤¥Ö¤ÎÃæ¤Ë¤Ï SCSI-2 ¤È¤Þ¤Ã¤¿¤¯¸ß´¹À­¤ò»ý¤¿¤Ê¤¤¤â¤Î¤¬¤¢¤ê¤Þ¤¹. ¤³¤ì¤é¤Ï FreeBSD ¾å¤Ç¤Ïưºî¤·¤Þ¤»¤ó. ¤É¤ó¤Ê¥Æ¡¼¥×¥Á¥§¥ó¥¸¥ã¡¼¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¤«? FreeBSD 2.2 ¤Ï ch ¥Ç¥Ð¥¤¥¹¤È chio ¥³¥Þ¥ó¥É¤ò»ÈÍѤ·¤¿ SCSI ¥Á¥§¥ó¥¸¥ã¡¼¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹. ¼ÂºÝ¤Î¥Á¥§¥ó¥¸¥ã¡¼¤ÎÀ©¸æÊýË¡¤Î¾ÜºÙ¤Ï, chio ¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ë¤¢¤ê¤Þ¤¹. »ÈÍѤ·¤Æ¤¤¤ëÀ½Éʤ¬, AMANDA ¤Ê¤É¤Î¤è¤¦¤Ë¥Á¥§¥ó¥¸¥ã¡¼¤ËÂбþºÑ¤ß¤Î¤â¤Î¤Ç¤Ê¤¤¾ì¹ç¤Ï, ¼¡¤Î¤³¤È¤Ë¤Ä¤¤¤ÆÎ±°Õ¤·¤Æ¤¯¤À¤µ¤¤. ¤½¤ì¤é¤ÎÀ½ÉʤÏǤ°Õ¤Î¥Ý¥¤¥ó¥È´Ö¤Î¥Æ¡¼¥×¤Î°Üư¤òÀ©¸æ¤¹¤ë¤À¤±¤Ê¤Î¤Ç, ¥Æ¡¼¥×¤¬¤É¤Î¥¹¥í¥Ã¥È¤ËÆþ¤Ã¤Æ¤¤¤ë¤«, ¸½ºß¥É¥é¥¤¥Ö¤Ë¤¢¤ë¥Æ¡¼¥×¤¬ ¤É¤Î¥¹¥í¥Ã¥È¤ËÌá¤ë¤Ù¤­¤«¤òÇİ®¤·¤Æ¤ª¤¯É¬Íפ¬¤¢¤ê¤Þ¤¹. ¤É¤ó¤Ê¥µ¥¦¥ó¥É¥«¡¼¥É¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¤«? FreeBSD ¤Ï SoundBlaster, SoundBlaster Pro, SoundBlaster 16, Pro Audio Spectrum 16, AdLib ¤½¤ì¤«¤é Gravis UltraSound ¥µ¥¦¥ó¥É¥«¡¼¥É¤ò ¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹. MPU-401 ¤ä¤½¤Î¸ß´¹¥«¡¼¥É¤âµ¡Ç½¤ËÀ©¸Â¤Ï¤¢¤ë¤â¤Î¤Î ¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤¹. ¥Þ¥¤¥¯¥í¥½¥Õ¥È¥µ¥¦¥ó¥É¥·¥¹¥Æ¥à¤Î¥¹¥Ú¥Ã¥¯¤Ë½àµò ¤·¤¿¥«¡¼¥É¤â, pcm ¥É¥é¥¤¥Ð¤Ç¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤¹. Ãí ¤³¤ì¤é¤Ï¥µ¥¦¥ó¥É¤Ë¤Ä¤¤¤Æ¤Î¤ß¤ÎÏäǤ¹! ¤³¤ì¤é¤Î¥É¥é¥¤¥Ð¤Ï CD-ROM, SCSI, ¥«¡¼¥É¾å¤Ë¤¢¤ë¥¸¥ç¥¤¥¹¥Æ¥£¥Ã¥¯¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤»¤ó (SoundBlaster ¤ÏÎã³°¤Ç¤¹). SoundBlaster SCSI ¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤ÈÈó SCSI CD-ROM ¤Ï¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¤¬, ¤½¤Î¥Ç¥Ð¥¤¥¹¤«¤é¤Ï¥Ö¡¼¥È¤Ç¤­¤Þ¤»¤ó. ¤É¤ó¤Ê¥Í¥Ã¥È¥ï¡¼¥¯¥«¡¼¥É¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¤«? ¤è¤ê´°Á´¤Ê°ìÍ÷¤Ë¤Ä¤¤¤Æ¤Ï ¥¤¡¼¥µ¥Í¥Ã¥È¥«¡¼¥É ¤ÎÀá¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤. ¿ôÃͱ黻¥³¥×¥í¥»¥Ã¥µ¤ò»ý¤Ã¤Æ¤¤¤Þ¤»¤ó - ²¿¤«¤Þ¤º¤¤¤Ç¤·¤ç¤¦¤«? Ãí°Õ ¤³¤ì¤é¤Ï 386/486SX/486SLC ¤ò»ý¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ë±Æ¶Á¤·¤Þ¤¹ - ¤Û¤«¤Î¥Þ¥·¥ó¤Ç¤Ï CPU ¤ËÆâ¢¤µ¤ì¤Æ¤¤¤Þ¤¹. °ìÈ̤ˤ³¤ì¤é¤ÏÌäÂê¤È¤Ï¤Ê¤ê¤Þ¤»¤ó. ¤·¤«¤·, ¿ôÃͱ黻¥¨¥ß¥å¥ì¡¼¥·¥ç¥ó¥³¡¼¥É¤Î ¥Ñ¥Õ¥©¡¼¥Þ¥ó¥¹¤«Àµ³Î¤µ¤Î¤¤¤º¤ì¤«¤òÁªÂò¤¹¤ë¾õ¶·¤¬¤¢¤ê¤Þ¤¹. ( ¤Ë¤Ä¤¤¤Æ¤ÎÀá¤ò¤´Í÷¤¯¤À¤µ¤¤). ¤È¤¯¤Ë, X ¾å¤Ç¸Ì¤òÉÁ¤¯ºÝ¤Ë¤È¤Æ¤âÃÙ¤¯¤Ê¤ë¤³¤È¤Ç¤·¤ç¤¦. ¿ôÃͱ黻¥³¥×¥í¥»¥Ã¥µ¤ò¹ØÆþ¤µ¤ì¤ë¤³¤È¤ò¶¯¤¯¤ª¤¹¤¹¤á¤·¤Þ¤¹. ¤È¤Æ¤âÌòΩ¤Ä¤³¤È¤Ç¤·¤ç¤¦. Ãí ¾¤Î¿ôÃͱ黻¥³¥×¥í¥»¥Ã¥µ¤è¤ê¤âÍ¥¤ì¤¿¥³¥×¥í¥»¥Ã¥µ¤â¤¢¤ê¤Þ¤¹. ¤³¤ì¤Ï¸À¤¤¤Ë¤¯¤¤¤³¤È¤Ê¤Î¤Ç¤¹¤¬, Intel ¤òÇ㤦¤¿¤á¤ËÌöµ¯¤Ë¤Ê¤ë¿Í¤â¤¤¤Ê¤¤¤Ç¤·¤ç¤¦. ¤½¤ì¤¬ FreeBSD ¾å¤Çư¤¯¤È¤¤¤¦³Î¿®¤¬¤Ê¤¤¤Î¤Ê¤é, ¥¯¥í¡¼¥ó¤Ë¤´ÍÑ¿´¤ò. 2.x ¤Ç, ¾¤Ë¤É¤Î¥É¥é¥¤¥Ð¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤¹¤«? ¥Ï¥ó¥É¥Ö¥Ã¥¯ ¤Ëµ­¤µ¤ì¤Æ¤¤¤ë, ¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¾¤Î¥Ç¥Ð¥¤¥¹¤Î°ìÍ÷¤ò»²¾È¤·¤Æ²¼¤µ¤¤. ¥Ñ¥ï¡¼¥Þ¥Í¡¼¥¸¥á¥ó¥Èµ¡Ç½ÉÕ¤­¤Î¥é¥Ã¥×¥È¥Ã¥× PC ¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹. FreeBSD ¤Ï°ìÉô¤Î¥Þ¥·¥ó¤Î APM ¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹. LINT ¥«¡¼¥Í¥ë¥³¥ó¥Õ¥£¥°¥Õ¥¡¥¤¥ë ¤Î APM ¤ÎÉôʬ¤ò¤´Í÷¤¯¤À¤µ¤¤. Micron ¥·¥¹¥Æ¥à¤¬¥Ö¡¼¥È»þ¤Ë¸Ç¤Þ¤Ã¤Æ¤·¤Þ¤¤¤Þ¤¹. ÆÃÄê¤Î Micron À½¤Î¥Þ¥¶¡¼¥Ü¡¼¥É¤ÎÃæ¤Ë¤Ï, PCI BIOS ¤¬µ¬³ÊÄ̤ê¤Ë ¼ÂÁõ¤µ¤ì¤Æ¤¤¤Ê¤¤¤¿¤á¤Ë FreeBSD ¤Îµ¯Æ°¤Ë¼ºÇÔ¤¹¤ë¤â¤Î¤¬¤¢¤ê¤Þ¤¹. ¤½¤Î BIOS ¤Ï, PCI ¥Ç¥Ð¥¤¥¹¤ò¤¢¤ë¥¢¥É¥ì¥¹¤ÇÀßÄꤷ¤¿¤ÈÊó¹ð¤¹¤ë¤Ë¤â ´Ø¤ï¤é¤º, ¼ÂºÝ¤Ë¤Ï¤½¤¦¤·¤Æ¤¤¤Ê¤¤¤Î¤Ç¤¹. ¤³¤ÎÌäÂê¤ò²óÈò¤¹¤ë¤Ë¤Ï, BIOS ¤Î ``Plug and Play Operating System'' ¤ò̵¸ú¤ËÀßÄꤷ¤Æ²¼¤µ¤¤. ¤è¤ê¾Ü¤·¤¤¾ðÊó¤Ï http://cesdis.gsfc.nasa.gov/linux/drivers/vortex.html#micron ¤ò¸æÍ÷²¼¤µ¤¤. ¿·¤·¤¤ Adaptec ¥³¥ó¥È¥í¡¼¥é¤ò»ý¤Ã¤Æ¤¤¤ë¤Î¤Ç¤¹¤¬, FreeBSD ¤¬¸¡½Ð¤Ç¤­¤Ê¤¤¤è¤¦¤Ç¤¹. ¿·¤·¤¤ AIC789x ¥·¥ê¡¼¥º¤Î Adaptec ¥Á¥Ã¥×¤Ï, 3.0 ¤Ç¥Ç¥Ó¥å¡¼¤·¤¿ CAM SCSI ¥Õ¥ì¡¼¥à¥ï¡¼¥¯¤Ç¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤¹. 2.2-STABLE ¤Î¥Ñ¥Ã¥Á¤Ï ftp://ftp.freebsd.org/pub/FreeBSD/development/cam/ ¤Ë¤¢¤ê¤Þ¤¹. CAM ¥·¥¹¥Æ¥à¤¬ Æþ¤Ã¤Æ¤¤¤ë¹âµ¡Ç½¥Ö¡¼¥È¥Õ¥í¥Ã¥Ô¡¼¤Ï http://www.freebsd.org/~abial/cam-boot/ ¤Ë¤¢¤ê¤Þ¤¹. ¤É¤Á¤é¤Î¾ì¹ç¤Ë ¤·¤Æ¤â, ºî¶È¤ò»Ï¤á¤ëÁ°¤Ë README ¤ò¤ªÆÉ¤ß²¼¤µ¤¤. Æâ¢¤Î Plug & Play ¥â¥Ç¥à¤ò»ý¤Ã¤Æ¤¤¤ë¤Î¤Ç¤¹¤¬, FreeBSD ¤¬¸¡½Ð¤Ç¤­¤Ê¤¤¤è¤¦¤Ç¤¹. ¥â¥Ç¥à¤Î PnP ID ¤ò ¥·¥ê¥¢¥ë¥É¥é¥¤¥Ð¤Î PnP ID ¥ê¥¹¥È¤ËÄɲ乤ëɬÍפ¬ ¤¢¤ë¤Ç¤·¤ç¤¦. Plug & Play ¥µ¥Ý¡¼¥È¤òÍ­¸ú¤Ë¤¹¤ë¤Ë¤Ï, controller pnp0 ¤ò¥³¥ó¥Õ¥£¥°¥ì¡¼¥·¥ç¥ó¥Õ¥¡¥¤¥ë¤ËÉÕ¤±²Ã¤¨¤¿¿·¤·¤¤¥«¡¼¥Í¥ë¤ò¥³¥ó¥Ñ¥¤¥ë¤·¤Æ, ¤½¤Î¸å¥·¥¹¥Æ¥à¤ò¥ê¥Ö¡¼¥È¤·¤Æ²¼¤µ¤¤. ¥«¡¼¥Í¥ë¤Ï, ¸¡½Ð¤·¤¿Á´¤Æ¤Î¥Ç¥Ð¥¤¥¹¤Î PnP ID ¤òɽ¼¨¤·¤Þ¤¹. ¥â¥Ç¥à¤ÎÍó¤Ë¤¢¤ë PnP ID ¤ò /sys/i386/isa/sio.c ¤Î 2777 ¹ÔÌܤ¯¤é¤¤¤Ë¤¢¤ë¥Æ¡¼¥Ö¥ë¤Ë½ñ¤­Æþ¤ì¤Æ²¼¤µ¤¤. ¥Æ¡¼¥Ö¥ë¤ò¸«¤Ä¤±¤ë¤Ë¤Ï, ¹½Â¤ÂÎ ``siopnp_ids[]'' ¤Îʸ»úÎó ``SUP1310'' ¤òõ¤¹¤è¤¦¤Ë¤·¤Æ²¼¤µ¤¤. ¥«¡¼¥Í¥ë¤òºî¤êľ¤·¤¿¤é, ¥¤¥ó¥¹¥È¡¼¥ë¤·, ¥ê¥Ö¡¼¥È¤·¤Æ²¼¤µ¤¤. ¥â¥Ç¥à¤¬¸¡½Ð ¤µ¤ì¤ë¤Ï¤º¤Ç¤¹. µ¯Æ°»þ¤Î¥³¥ó¥Õ¥£¥°¥ì¡¼¥·¥ç¥ó¤ÎºÝ¤Ë, `pnp' ¥³¥Þ¥ó¥É¤ò»ÈÍѤ·¤Æ PnP ¤Î ÀßÄê¤ò¥Þ¥Ë¥å¥¢¥ë¤Ç¹Ô¤Ê¤ï¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¤«¤â¤·¤ì¤Þ¤»¤ó. ¤½¤Î¾ì¹ç, ¥â¥Ç¥à¤ò ¸¡½Ð¤µ¤»¤ë¤¿¤á¤Î¥³¥Þ¥ó¥É¤Ï pnp 1 0 enable os irq0 3 drq0 0 port0 0x2f8 ¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹. ¥·¥ê¥¢¥ë¥³¥ó¥½¡¼¥ë¤Ç boot: ¥×¥í¥ó¥×¥È¤òɽ¼¨¤¹¤ë¤Ë¤Ï¤É¤¦¤¹¤ì¤Ð¤¤¤¤? options COMCONSOLE ¤ò»ØÄꤷ¤Æ¥«¡¼¥Í¥ë¤ò¹½ÃÛ¤·¤Æ²¼¤µ¤¤. ¤½¤·¤Æ /boot.config ¤òºîÀ®¤·¤Æ ¤È¤À¤±½ñ¤­Æþ¤ì¤Æ²¼¤µ¤¤. ¤½¤Î¸å, ¥­¡¼¥Ü¡¼¥É¤ò¥·¥¹¥Æ¥à¤«¤éÈ´¤¤¤Æ²¼¤µ¤¤. /usr/src/sys/i386/boot/biosboot/README.serial ¤Ë¤³¤Î¾ðÊó¤¬ µ­¤µ¤ì¤Æ¤¤¤Þ¤¹. ¤Ê¤¼ Micron ¥³¥ó¥Ô¥å¡¼¥¿¤Ç 3Com PCI ¥Í¥Ã¥È¥ï¡¼¥¯¥«¡¼¥É¤¬Æ°¤«¤Ê¤¤¤Î¤Ç¤·¤ç¤¦? ÆÃÄê¤Î Micron À½¤Î¥Þ¥¶¡¼¥Ü¡¼¥É¤ÎÃæ¤Ë¤Ï, PCI BIOS ¤¬µ¬³ÊÄ̤ê¤Ë ¼ÂÁõ¤µ¤ì¤Æ¤¤¤Ê¤¤¤¿¤á¤Ë FreeBSD ¤Îµ¯Æ°¤Ë¼ºÇÔ¤¹¤ë¤â¤Î¤¬¤¢¤ê¤Þ¤¹. ¤½¤Î BIOS ¤Ï, PCI ¥Ç¥Ð¥¤¥¹¤ò¤¢¤ë¥¢¥É¥ì¥¹¤ÇÀßÄꤷ¤¿¤ÈÊó¹ð¤¹¤ë¤Ë¤â ´Ø¤ï¤é¤º, ¼ÂºÝ¤Ë¤Ï¤½¤¦¤·¤Æ¤¤¤Ê¤¤¤Î¤Ç¤¹. ¤³¤ÎÌäÂê¤ò²óÈò¤¹¤ë¤Ë¤Ï, BIOS ¤Î ``Plug and Play Operating System'' ¤ò̵¸ú¤ËÀßÄꤷ¤Æ²¼¤µ¤¤. ¤³¤ÎÌäÂê¤Ë¤Ä¤¤¤Æ¤Î¤è¤ê¾Ü¤·¤¤¾ðÊó¤Ï http://cesdis.gsfc.nasa.gov/linux/drivers/vortex.html#micron ¤ò¸æÍ÷²¼¤µ¤¤. Âоη¿¥Þ¥ë¥Á¥×¥í¥»¥Ã¥·¥ó¥° (SMP) ¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¤«? SMP ¤Ï 3.0-STABLE ¤È°Ê¸å¤Î¥ê¥ê¡¼¥¹¤Ç¤·¤«¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤»¤ó. ¥È¥é¥Ö¥ë¥·¥å¡¼¥Æ¥£¥ó¥° Ìõ: ÆâÀî ´î¾Ï <yoshiaki@kt.rim.or.jp>.10 November 1997. ¥Ï¡¼¥É¥Ç¥£¥¹¥¯¤ËÉÔÎÉ¥Ö¥í¥Ã¥¯¤¬¤¢¤ê¤Þ¤¹! SCSI ¥Ç¥£¥¹¥¯¤Î¾ì¹ç¤Ï¼«Æ°Åª¤ËºÆ¥Þ¥Ã¥×¤¹¤ëµ¡Ç½¤¬¤¢¤ë¤Ï¤º¤Ç¤¹. ¤·¤«¤·, Íý²ò¤·Æñ¤¤Íýͳ¤«¤é¿¤¯¤Î¥É¥é¥¤¥Ö¤¬¤³¤Îµ¡Ç½¤¬Ìµ¸ú²½ ¤µ¤ì¤Æ½Ð²Ù¤µ¤ì¤Æ¤¤¤Þ¤¹... ¤³¤ì¤òÍ­¸ú²½¤¹¤ë¤Ë¤Ï, ºÇ½é¤Î¥Ç¥Ð¥¤¥¹¤Î¥â¡¼¥É¥Ú¡¼¥¸¤òÊѹ¹¤¹¤ë ɬÍפ¬¤¢¤ê¤Þ¤¹. ¤³¤ì¤Ï¼¡¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë¤³¤È¤Ç, FreeBSD ¾å¤Ç¤ª¤³¤Ê¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹ (root ¸¢¸Â¤Ç¤ª¤³¤Ê¤¤¤Þ¤¹). scsi -f /dev/rsd0c -m 1 -e -P 3 ¤½¤·¤Æ, AWRE ¤È ARRE ¤ÎÃͤò 0 ¤«¤é 1 ¤ØÊѹ¹¤·¤Þ¤¹:- AWRE (Auto Write Reallocation Enbld): 1 ARRE (Auto Read Reallocation Enbld): 1 °Ê²¼¤Ï, Ted Mittelstaedt ¤«¤é´ó¤»¤é¤ì¤¿¤â¤Î¤Ç¤¹. IDE ¥É¥é¥¤¥Ö¤Î¾ì¹ç¤ÏÄ̾ï, ÉÔÎÉ¥Ö¥í¥Ã¥¯¤ÏÀøºßŪ¤Ê¾ã³²¤ÎÃû¸õ¤Ç¤¹. ºÇ¶á¤Î IDE ¥É¥é¥¤¥Ö¤Ï, ÆâÉô¤ÎÉÔÎÉ¥Ö¥í¥Ã¥¯ºÆ¥Þ¥Ã¥Ô¥ó¥°µ¡Ç½¤òÍ­¸ú¤Ë¤·¤¿¾õÂÖ¤Ç ½Ð²Ù¤µ¤ì¤Æ¤¤¤Þ¤¹. ¤Þ¤¿, º£Æü¤Î IDE ¥Ï¡¼¥É¥Ç¥£¥¹¥¯¥á¡¼¥«¤Ï, ½Ð²Ù°Ê¹ß¤ËÉÔÎÉ¥Ö¥í¥Ã¥¯¤¬È¯À¸¤¹¤ë¤³¤È¤Ë´Ø¤·¤ÆÊݾڤòÄ󶡤·¤Æ¤¤¤Æ, ÉÔÎÉ¥Ö¥í¥Ã¥¯¤Î¤¢¤ë¥Ç¥£¥¹¥¯¥É¥é¥¤¥Ö¤ò¸ò´¹¤¹¤ë¥µ¡¼¥Ó¥¹¤ò¹Ô¤Ê¤Ã¤Æ¤¤¤Þ¤¹. ¤â¤·, ÉÔÎÉ¥Ö¥í¥Ã¥¯¤Î¤¢¤ë IDE ¥Ç¥£¥¹¥¯¥É¥é¥¤¥Ö¤òÉüµì¤·¤è¤¦¤È»×¤¦¤Ê¤é, IDE ¥É¥é¥¤¥Ö¥á¡¼¥«¤¬Ä󶡤¹¤ë IDE ¿ÇÃÇ¥×¥í¥°¥é¥à¤ò¥À¥¦¥ó¥í¡¼¥É¤·¤Æ, ¤½¤Î¥É¥é¥¤¥Ö¤Ë»È¤Ã¤Æ¤ß¤Æ¤¯¤À¤µ¤¤. ¤³¤Î¼ï¤Î¥×¥í¥°¥é¥à¤ÏÂçÄñ, ¥É¥é¥¤¥Ö¤ÎÀ©¸æÉôʬ¤ËÂФ·¤ÆÉÔÎÉ¥Ö¥í¥Ã¥¯¤òºÆÁöºº¤·, ÉÔÎÉ¥Ö¥í¥Ã¥¯¤ò»ÈÍÑÉÔǽ¤Ë¤¹¤ë¤è¤¦¤Ë¥»¥Ã¥È¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. ESDI, RLL ¤ª¤è¤Ó MFM ¥É¥é¥¤¥Ö¤Î¾ì¹ç, ÉÔÎÉ¥Ö¥í¥Ã¥¯¤Ï¥É¥é¥¤¥Ö¤Î Àµ¾ï¤ÊÉôʬ¤Ç¤¢¤ê, °ìÈÌŪ¤Ë¸À¤Ã¤Æ¾ã³²¤òɽ¤¹¤â¤Î¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó. PC ¤Ç¤Ï, ¥Ç¥£¥¹¥¯¥É¥é¥¤¥Ö¥³¥ó¥È¥í¡¼¥é¥«¡¼¥É¤È BIOS ¤¬ÉÔÎÉ¥Ö¥í¥Ã¥¯¤Î »ÈÍÑÉÔǽ²½¤Îºî¶È¤ò¹Ô¤Ê¤¤¤Þ¤¹. DOS ¤Ê¤É, ¥Ç¥£¥¹¥¯¥¢¥¯¥»¥¹¤Ë BIOS ¤ò·Ðͳ¤¹¤ë OS ¤Ë¤È¤Ã¤Æ¤ÏÍ­¸ú¤ËƯ¤­¤Þ¤¹¤¬, FreeBSD ¤Î¥Ç¥£¥¹¥¯¥É¥é¥¤¥Ð¤Ï BIOS ¤òÍøÍѤ·¤Þ¤»¤ó. ¤½¤Î¤¿¤á, ÂåÂØ¤È¤·¤Æ bad144 ¤È¤¤¤¦µ¡¹½¤¬Â¸ºß¤·¤Þ¤¹. bad144 ¤Ï, wd ¥É¥é¥¤¥Ð¤Ë¤À¤±ºîÍѤ·, SCSI ¥É¥é¥¤¥Ð¤ËÍøÍѤ¹¤ë¤³¤È¤Ï *¤Ç¤­¤Þ¤»¤ó*. bad144 ¤Ï, ¸¡½Ð¤µ¤ì¤¿ÉÔÎÉ¥»¥¯¥¿¤ò¥¹¥Ú¥·¥ã¥ë¥Õ¥¡¥¤¥ë¤Ë µ­Ï¿¤¹¤ë¤È¤¤¤¦Æ¯¤­¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹. bad144 ¤òÍøÍѤ¹¤ë¾å¤Ç, Ãí°Õ¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤ÅÀ¤¬°ì¤Ä¤¢¤ê¤Þ¤¹. ¤½¤ì¤Ï, ÉÔÎÉ¥Ö¥í¥Ã¥¯¥¹¥Ú¥·¥ã¥ë¥Õ¥¡¥¤¥ë¤Ï, ¥Ç¥£¥¹¥¯¤ÎºÇ½ª¥È¥é¥Ã¥¯¤Ë ÃÖ¤«¤ì¤ë¤È¤¤¤¦¤³¤È¤Ç¤¹. ¤³¤Î¥Õ¥¡¥¤¥ë¤Ë¤Ï, ¥Ç¥£¥¹¥¯¤ÎÀèÆ¬¤ÎÉÕ¶á, /kernel ¥Õ¥¡¥¤¥ë¤¬°ÌÃÖ¤·¤Æ¤¤¤ë¤Ç¤¢¤í¤¦Éôʬ¤ÇȯÀ¸¤·¤¿ÉÔÎÉ¥»¥¯¥¿¤¬ µ­Ï¿¤µ¤ì¤Æ¤¤¤Þ¤¹. ¤·¤¿¤¬¤Ã¤Æ, ¤³¤Î¥Õ¥¡¥¤¥ë¤Ï BIOS ¥³¡¼¥ë¤ò»È¤Ã¤Æ ¥«¡¼¥Í¥ë¥Õ¥¡¥¤¥ë¤òÆÉ¤ß¹þ¤àµ¯Æ°¥×¥í¥°¥é¥à¤¬¥¢¥¯¥»¥¹²Äǽ¤Ç¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó. ¤³¤ì¤Ï¤Ä¤Þ¤ê, bad144 ¤òÍøÍѤ¹¤ë¥Ç¥£¥¹¥¯¤Ï, 1024 ¥·¥ê¥ó¥À, 16 ¥Ø¥Ã¥É, 63 ¥»¥¯¥¿¤òͤ¨¤Æ¤Ï¤Ê¤é¤Ê¤¤¤È¤¤¤¦¤³¤È¤ò°ÕÌ£¤·, bad144 ¤òÍøÍѤ·¤¿¥Ç¥£¥¹¥¯¤¬¼Â¼Á 500MB ¤òͤ¨¤é¤ì¤Ê¤¤¤³¤È¤Ë¤Ê¤ê¤Þ¤¹. bad144 ¤ò»È¤¦¤Ë¤Ï, FreeBSD ¤Î¥¤¥ó¥¹¥È¡¼¥ë»þ¤Ëɽ¼¨¤µ¤ì¤ë fdisk ²èÌ̤Ç, "Bad Block" Áöºº¤ò ON ¤ËÀßÄꤹ¤ë¤À¤±¤Ç¤¹. ¤³¤ì¤Ï, FreeBSD 2.2.7 °Ê¹ß¤Ç µ¡Ç½¤·¤Þ¤¹. ¥Ç¥£¥¹¥¯¤Ï, 1024 ¥·¥ê¥ó¥À°ÊÆâ¤Ç¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó. ¥Ç¥£¥¹¥¯¥É¥é¥¤¥Ö¤Ï»öÁ°¤Ë¾¯¤Ê¤¯¤È¤â 4 »þ´Ö, ¥Ç¥£¥¹¥¯¤¬²¹Å٤ˤè¤Ã¤ÆËÄÄ¥¤·, ¥È¥é¥Ã¥¯¤Ë¶Ê¤¬¤ê¤¬½Ð¤ë¤Þ¤Ç²óž¤µ¤»¤ë¤³¤È¤ò¤ªÁ¦¤á¤·¤Þ¤¹(ÌõÃí: ²¹ÅÙÊѲ½¤Ë ÂФ¹¤ëËÄÄ¥¤Ë¤è¤Ã¤Æ, ¥Ç¥£¥¹¥¯¤¬Èù¾®ÊÑ·Á¤¹¤ë¤³¤È¤Ë¤è¤êȯÀ¸¤¹¤ëÉÔÎÉ¥»¥¯¥¿¤ò ³Î¼Â¤Ë¸¡½Ð¤¹¤ë¤¿¤á¤Ç¤¹). ÂçÍÆÎ̤ΠESDI ¥É¥é¥¤¥Ö¤Î¤è¤¦¤Ë, 1024 ¥·¥ê¥ó¥À¤òͤ¨¤ë¥Ç¥£¥¹¥¯¤Î¾ì¹ç, DOS ¾å¤Ç¤½¤Î¥Ç¥£¥¹¥¯¤¬ÍøÍѤǤ­¤ë¤è¤¦¤Ë, ESDI ¥³¥ó¥È¥í¡¼¥é¤ÏÆÃ¼ì¤ÊÊÑ´¹¥â¡¼¥É¤ò ÍøÍѤ·¤Þ¤¹. fdisk ¤Î "set geometry" ¥³¥Þ¥ó¥É¤ò»È¤Ã¤Æ "ÊÑ´¹¤µ¤ì¤¿(translated)" ¥¸¥ª¥á¥È¥ê¤ËÀÚÂØ¤¨¤ë¤È, wd ¥É¥é¥¤¥Ð¤Ï ¤³¤ÎÊÑ´¹¥â¡¼¥É¤ò²ò¼á¤Ç¤­¤Þ¤¹. ¤½¤ÎºÝ, FreeBSD ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤òºîÀ®¤¹¤ë¤Î¤Ë "dangerously dedicated" ¥â¡¼¥É¤ò ÍøÍѤ·¤Æ¤Ï¤¤¤±¤Þ¤»¤ó. ¤³¤Î¥â¡¼¥É¤Ï, ¤½¤Î¤è¤¦¤Ê¥¸¥ª¥á¥È¥ê¤ò̵»ë¤¹¤ë¤«¤é¤Ç¤¹. ¤¿¤È¤¨ fdisk ¤¬¥ª¡¼¥Ð¡¼¥é¥¤¥É¤µ¤ì¤¿¥¸¥ª¥á¥È¥ê¾ðÊó¤ò»È¤Ã¤¿¤È¤·¤Æ¤â, ÖáÁ³¤È¤·¤Æ¥Ç¥£¥¹¥¯¤Î¿¿¤ÎÂ礭¤µ¤òÊÝ»ý¤·¤Æ¤¤¤ë¤¿¤á, Â礭¤¹¤®¤ë FreeBSD ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤òºîÀ®¤·¤è¤¦¤È¤·¤Æ¤·¤Þ¤¦¤Ç¤·¤ç¤¦. ¥Ç¥£¥¹¥¯¥¸¥ª¥á¥È¥ê¾ðÊó¤¬ÊÑ´¹¤µ¤ì¤¿¥¸¥ª¥á¥È¥ê¾ðÊó¤Ë¤«¤ï¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï, ¼êư¤Ç¥Ö¥í¥Ã¥¯¿ô¤òÆþÎϤ·, ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤òºîÀ®¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹. ÂçÍÆÎ̤ΠESDI ¥Ç¥£¥¹¥¯¤ò ESDI ¥³¥ó¥È¥í¡¼¥é¤Ç¥»¥Ã¥È¥¢¥Ã¥×¤¹¤ë¤Ë¤Ï, ¤Á¤ç¤Ã¤È¤·¤¿¥È¥ê¥Ã¥¯¤ò»È¤¤¤Þ¤¹. ¤Þ¤º, DOS ¤Î¥Ç¥£¥¹¥¯¤Çµ¯Æ°¤·¤Æ ¤½¤Î¥Ç¥£¥¹¥¯¤ò DOS ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤È¤·¤Æ¥Õ¥©¡¼¥Þ¥Ã¥È¤·¤Þ¤¹. ¤½¤·¤Æ FreeBSD ¤òµ¯Æ°¤·, ¥¤¥ó¥¹¥È¡¼¥é¤Î fdisk ²èÌÌ¤Ç DOS ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Î¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤È¥Ö¥í¥Ã¥¯¿ô¤òÆÉ¤ß¤È¤ê, ¥á¥â¤·¤Æ¤ª¤­¤Þ¤¹. ¥¸¥ª¥á¥È¥ê¾ðÊó¤ò DOS ¤¬ÍøÍѤ·¤Æ¤¤¤ë¤â¤Î¤ÈƱ°ì¤ËºÆÀßÄꤷ, DOS ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤òºï½ü¤·¤Æ "cooperative" FreeBSD ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤ò ÀèÄøµ­Ï¿¤·¤¿¥Ö¥í¥Ã¥¯¥µ¥¤¥º¤ò»È¤Ã¤ÆºîÀ®¤·¤Æ²¼¤µ¤¤. ¤½¤Î¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤òµ¯Æ°²Äǽ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤ËÀßÄꤷ, ÉÔÎÉ¥Ö¥í¥Ã¥¯Áöºº¤ò Í­¸ú¤Ë¤·¤Æ²¼¤µ¤¤. ¼ÂºÝ¤Î¥¤¥ó¥¹¥È¡¼¥ë¤Ç¤Ï, ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤¬ºîÀ®¤µ¤ì¤ëÁ°¤Ë bad144 ¤¬ºÇ½é¤Ë¼Â¹Ô¤µ¤ì¤Þ¤¹(Alt-F2 ¤ò²¡¤¹¤³¤È¤Ç¾õ¶·¤ò³Îǧ¤Ç¤­¤Þ¤¹). ÉÔÎÉ¥»¥¯¥¿¥Õ¥¡¥¤¥ë¤òºîÀ®Ãæ¤Ë²¿¤é¤«¤Î¾ã³²¤¬È¯À¸¤·¤¿¤Ê¤é, ¥·¥¹¥Æ¥à¤òºÆµ¯Æ°¤·¤Æ, ¤â¤¦°ìÅٺǽ餫¤é¤ä¤êľ¤·¤Ë¤Ê¤ê¤Þ¤¹. ¤ª¤½¤é¤¯¥Ç¥£¥¹¥¯¥¸¥ª¥á¥È¥ê¾ðÊó¤ÎÀßÄê¤òÂ礭¤¯¤·¤¹¤®¤Æ¤¤¤ë¤Î¤Ç¤·¤ç¤¦. (¤ä¤êľ¤·¤Ï, DOS ¤Ë¤è¤ë¥Õ¥©¡¼¥Þ¥Ã¥È¤È¥Ñ¡¼¥Æ¥£¥·¥ç¥ó³ÎÊݤò´Þ¤ß¤Þ¤¹) ¤â¤·, ÉÔÎÉ¥Ö¥í¥Ã¥¯¤ÎºÆ¥Þ¥Ã¥Ô¥ó¥°¤òÍ­¸ú¤Ë¤·¤Æ¤¤¤ÆÉÔÎÉ¥Ö¥í¥Ã¥¯¤¬¸«ÉÕ¤«¤Ã¤¿¤é, ¥É¥é¥¤¥Ö¤Î¸ò´¹¤ò¹Í¤¨¤Æ²¼¤µ¤¤. ÉÔÎÉ¥Ö¥í¥Ã¥¯¤Ï, »þ´Ö¤È¤È¤â¤Ë°­²½¤¹¤ë¤«¤é¤Ç¤¹. Bustek 742a EISA SCSI ¤¬Ç§¼±¤µ¤ì¤Þ¤»¤ó. ¤³¤Î¾ðÊó¤Ï 742a ¤Î¤¿¤á¤Î¤â¤Î¤Ç¤¹¤¬, ¾¤Î Buslogic ¥«¡¼¥É¤Ë¤Ä¤¤¤Æ¤â ƱÍͤΤ³¤È¤¬¸À¤¨¤Þ¤¹. (Bustek = Buslogic) 742a ¥«¡¼¥É¤Ë¤ÏÂ礭¤¯¤ï¤±¤Æ 2¤Ä¤Î¥Ð¡¼¥¸¥ç¥ó¤¬Â¸ºß¤·¤Þ¤¹. ¥Ï¡¼¥É¥¦¥§¥¢¥ê¥Ó¥¸¥ç¥ó¤Î A-G ¤È H °Ê¹ß¤Ç¤¹. ¥ê¥Ó¥¸¥ç¥ó¤Î ʸ»ú¤Ï¥«¡¼¥É¤Î¶ù¤Ë¤¢¤ë¥¢¥»¥ó¥Ö¥êÈÖ¹æ¤Î¸å¤í¤Ë¤¢¤ê¤Þ¤¹. 742a ¤ÏÆó¤Ä¤Î ROM ¥Á¥Ã¥×¤ò»ý¤Ã¤Æ¤ª¤ê, °ì¤Ä¤Ï BIOS ¥Á¥Ã¥×¤Ç ¤â¤¦°ì¤Ä¤Ï¥Õ¥¡¡¼¥à¥¦¥§¥¢¥Á¥Ã¥×¤Ç¤¹. FreeBSD ¤Ï¤¢¤Ê¤¿¤Î »ý¤Ã¤Æ¤¤¤ë¤â¤Î¤¬¤É¤Î BIOS ¥Ð¡¼¥¸¥ç¥ó¤«¤ÏÌäÂꤢ¤ê¤Þ¤»¤ó¤¬, ¥Õ¥¡¡¼¥à¥¦¥§¥¢¥Ð¡¼¥¸¥ç¥ó¤Ë¤Ä¤¤¤Æ¤ÏÌäÂê¤È¤Ê¤ê¤Þ¤¹. Buslogic ¤Îµ»½Ñ¥µ¥Ý¡¼¥ÈÉôÌç¤ËÏ¢Íí¤¹¤ì¤Ð, ¥¢¥Ã¥×¥°¥ì¡¼¥ÉÈǤΠROM ¤òÁ÷¤Ã¤Æ¤¯¤ì¤ë¤³¤È¤Ç¤·¤ç¤¦. BIOS ¥Á¥Ã¥×¤È ¥Õ¥¡¡¼¥à¥¦¥§¥¢¥Á¥Ã¥×¤Ï¥Ú¥¢¤Ç½Ð²Ù¤µ¤ì¤Þ¤¹. ¥¢¥À¥×¥¿¥«¡¼¥É¤Î¥Ï¡¼¥É¥¦¥§¥¢¥ê¥Ó¥¸¥ç¥ó¤Ë¤¢¤ï¤»¤¿ ºÇ¤â¿·¤·¤¤¥Õ¥¡¡¼¥à¥¦¥§¥¢ ROM ¤ò»ÈÍѤ·¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó. ¥ê¥Ó¥¸¥ç¥ó A-G ¤Î¥«¡¼¥É¤Ë¤Ï, 2.41/2.21 ¤Þ¤Ç¤Î BIOS/¥Õ¥¡¡¼¥à¥¦¥§¥¢¤Î¥»¥Ã¥È¤ò»ÈÍѤ¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. ¥ê¥Ó¥¸¥ç¥ó H °Ê¹ß¤Î¥«¡¼¥É¤Ë¤Ï, ºÇ¿·¤Î¤â¤Î¤Ç¤¢¤ë 4.70/3.37 ¤Î BIOS/¥Õ¥¡¡¼¥à¥¦¥§¥¢¤Î¥»¥Ã¥È¤ò »ÈÍѤ¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. ¤³¤ì¤é¤Î¥Õ¥¡¡¼¥à¥¦¥§¥¢¤Î°ã¤¤¤Ï, ¥Õ¥¡¡¼¥à¥¦¥§¥¢ 3.37 ¤¬ ¡Ö¥é¥¦¥ó¥É¥í¥Ó¥óÊý¼°¡× ¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¤È¤³¤í¤«¤é¤­¤Æ¤¤¤Þ¤¹. Buslogic ¤Î¥«¡¼¥É¤Ë¤Ï, À½Â¤ÈÖ¹æ¤â¹ï°õ¤µ¤ì¤Æ¤¤¤Þ¤¹. ¸Å¤¤ ¥Ï¡¼¥É¥¦¥§¥¢¥ê¥Ó¥¸¥ç¥ó¤Î¥«¡¼¥É¤ò»ý¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï, Buslogic ¤Î RMA ÉôÌç¤ËÌ䤤¹ç¤ï¤»¤ÆÀ½Â¤ÈÖ¹æ¤òÅÁ¤¨¤ë¤È, ¿·¤·¤¤¥Ï¡¼¥É¥¦¥§¥¢¥ê¥Ó¥¸¥ç¥ó¤Î ¥«¡¼¥É¤Ë¸ò´¹¤¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹. ¤â¤·¥«¡¼¥É¤¬½½Ê¬¿·¤·¤±¤ì¤Ð, Èà¤é¤Ï ¸ò´¹¤Ë±þ¤¸¤Æ¤¯¤ì¤ë¤Ç¤·¤ç¤¦. FreeBSD 2.1 ¤Ï ¥Õ¥¡¡¼¥à¥¦¥§¥¢¥ê¥Ó¥¸¥ç¥ó 2.21 °Ê¹ß¤Î¤â¤Î¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹. ¤³¤ì¤è¤ê¤â¸Å¤¤¥Õ¥¡¡¼¥à¥¦¥§¥¢¥ê¥Ó¥¸¥ç¥ó¤Î¤â¤Î¤Ï, Buslogic ¥«¡¼¥É¤È¤·¤ÆÀµ¾ï¤Ëǧ¼±¤µ¤ì¤Þ¤»¤ó. ¤·¤«¤·, Adaptec 1540 ¤È¤·¤ÆÇ§¼±¤µ¤ì¤ë¤«¤â¤·¤ì¤Þ¤»¤ó. ½é´ü¤Î Buslogic ¤Î¥Õ¥¡¡¼¥à¥¦¥§¥¢¤Ï AHA1540 ¸ß´¹¥â¡¼¥É¤ò »ý¤Ã¤Æ¤¤¤Þ¤¹. ¤·¤«¤·, EISA ¥«¡¼¥É¤Ë¤È¤Ã¤Æ¤³¤ì¤Ï ¤è¤¤¤³¤È¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó. ¸Å¤¤¥Ï¡¼¥É¥¦¥§¥¢¥ê¥Ó¥¸¥ç¥ó¤Î¥«¡¼¥É¤ò»ý¤Ã¤Æ¤¤¤Æ¥Õ¥¡¡¼¥à¥¦¥§¥¢ 2.21 ¤òÆþ¼ê¤¹¤ë¤Î¤Ç¤¢¤ì¤Ð, ¥¸¥ã¥ó¥Ñ W1 ¤Î°ÌÃÖ¤ò¥Ç¥Õ¥©¥ë¥È¤Î A-B ¤«¤é B-C ¤Ë¹ç¤ï¤»¤ëɬÍפ¬¤¢¤ë¤Ç¤·¤ç¤¦. 742a EISA ¥«¡¼¥É¤Ë¤Ï, ¤ÎÀá¤ÇÀâÌÀ¤·¤Æ¤¤¤ë ¡Ö16 MB ¤ò±Û¤¨¤ë¡×¤³¤È¤Ë¤è¤ëÌäÂê¤Ï¤¢¤ê¤Þ¤»¤ó. ¤³¤ì¤Ï Vesa-Local Buslogic SCSI ¥«¡¼¥É¤ÇȯÀ¸¤¹¤ëÌäÂê¤Ç¤¹. HP Netserver ¾å¤Î¥ª¥ó¥Ü¡¼¥É SCSI ¥³¥ó¥È¥í¡¼¥é¤¬Ç§¼±¤µ¤ì¤Þ¤»¤ó. ´ðËÜŪ¤Ë¤³¤ì¤Ï´ûÃΤÎÌäÂê¤Ç¤¹. HP Netserver ¥Þ¥·¥ó¤Î EISA ¥ª¥ó¥Ü¡¼¥É SCSI ¥³¥ó¥È¥í¡¼¥é¤Ï EISA ¤Î¥¹¥í¥Ã¥ÈÈÖ¹æ 11 ¤òÀêÍ­¤·¤Þ¤¹¤¬, ¡ÖËÜÅö¤Î¡×EISA ¥¹¥í¥Ã¥È¤Ï¤¹¤Ù¤Æ¤½¤ì¤è¤ê¤â Á°¤Î¥¢¥É¥ì¥¹¤ËÇÛÃÖ¤µ¤ì¤Æ¤¤¤ë¤Î¤Ç¤¹. »Äǰ¤Ê¤¬¤é, 10 Èְʾå¤Î EISA ¥¹¥í¥Ã¥È¤Ï PCI ¤Ë³ä¤êÅö¤Æ¤é¤ì¤¿¥¢¥É¥ì¥¹¶õ´Ö ¤È¾×ÆÍ¤·, FreeBSD ¤Î¼«Æ°¥³¥ó¥Õ¥£¥°¥ì¡¼¥·¥ç¥ó¤Ï, ¸½¾õ¤Ç¤Ï¤¦¤Þ¤¯¤³¤Î¾õ¶·¤ò ½èÍý¤Ç¤­¤Æ¤¤¤Ê¤¤¤Î¤Ç¤¹. ¤Ç¤¹¤«¤é¸½»þÅÀ¤Ç¤ÎºÇÎɤÎÊýË¡¤Ï, ¥«¡¼¥Í¥ë¥ª¥×¥·¥ç¥ó¤Î EISA_SLOTS ¤ò 12 ¤ËÊѤ¨, ¥¢¥É¥ì¥¹¶õ´Ö¤Î¾×ÆÍ¤¬¤Ê¤¤¤«¤Î ¤è¤¦¤Ê¤Õ¤ê¤ò¤µ¤»¤ë¤³¤È¤Ç¤¹ :) ¥Ï¥ó¥É¥Ö¥Ã¥¯¤Î¥«¡¼¥Í¥ë¤Î¹½ÃÛ ¤Ëµ­½Ò¤µ¤ì¤Æ¤¤¤ë¤è¤¦¤Ë¤·¤Æ¥«¡¼¥Í¥ë¤ò¥³¥ó¥Ñ¥¤¥ë¤·, ¹½ÃÛ¤·¤Æ¤¯¤À¤µ¤¤. ¤â¤Á¤í¤ó, ¤³¤ì¤Ï¤³¤Î¤è¤¦¤Ê¥Þ¥·¥ó¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ëºÝ¤Ë Íñ¤¬À褫·Ü¤¬À褫¡×¤È¤¤¤Ã¤¿ÌäÂê¤òÀ¸¤ß½Ð¤¹¤³¤È¤Ë¤Ê¤ê¤Þ¤¹. ¤³¤ÎÌäÂê¤ò²óÈò¤¹¤ë¤¿¤á¤Ë, ¥æ¡¼¥¶¥³¥ó¥Õ¥£¥° (UserConfig) ¤ÎÃæ¤Ë¤ÏÆÃÊ̤ʻÅÁȤߤ¬ÁȤ߹þ¤Þ¤ì¤Æ¤¤¤Þ¤¹. ¤³¤Î¤È¤­ ``visual'' ¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Ï»ÈÍѤ»¤º, ¥³¥Þ¥ó¥É¥é¥¤¥ó¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤. ñ½ã¤Ë eisa 12 quit ¤È¥×¥í¥ó¥×¥È¾å¤«¤éÂǤÁ¹þ¤ß, ¸å¤ÏÉáÄ̤˥¤¥ó¥¹¥È¡¼¥ë¤ò¤ª¤³¤Ê¤Ã¤Æ¤¯¤À¤µ¤¤. ¤È¤Ë¤«¤¯¥«¥¹¥¿¥à¥«¡¼¥Í¥ë¤Î¥³¥ó¥Ñ¥¤¥ë¤È¥¤¥ó¥¹¥È¡¼¥ë¤ò¤ª¤³¤Ê¤¦¤³¤È¤ò ¤ª¤¹¤¹¤á¤·¤Þ¤¹¤¬, dset ¤â¸½»þÅÀ¤Ç¤Ï¤³¤ÎÃͤÎÊѹ¹¤òǧ¼±¤¹¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹. ¤¦¤Þ¤¯¤¤¤±¤Ð, ¾­Íè¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¤Ï¤³¤ÎÌäÂ꤬²ò·è¤·¤Æ¤¤¤ë¤³¤È¤Ç¤·¤ç¤¦. Ãí: HP Netserver ¤Ç¤Ï´í¸±³Ð¸ç¤ÎÀìÍѥǥ£¥¹¥¯¤Ï »ÈÍѤǤ­¤Þ¤»¤ó. ¾ÜºÙ¤Ë¤Ä¤¤¤Æ¤Ï ¤ò¤´Í÷¤¯¤À¤µ¤¤. ¤³¤Î CMD640 IDE ¥³¥ó¥È¥í¡¼¥é¤Ï¤É¤³¤«¤ª¤«¤·¤¤¤è¤¦¤Ç¤¹. ¤½¤ì¤Ï²õ¤ì¤Æ¤¤¤ë¤Î¤Ç¤¹. ξÊý¤Î¥Á¥ã¥ó¥Í¥ë¤òƱ»þ¤ËÀ©¸æ¤Ç¤­¤Ê¤¤¤Î¤Ç¤¹. ¸½ºß¤Ç¤Ï¤³¤Î¥Á¥Ã¥×¤ò»È¤Ã¤Æ¤¤¤ë¥·¥¹¥Æ¥à¤Ç¤Ï¼«Æ°Åª¤Ë¸¡½Ð¤·¤Æ ¤¦¤Þ¤¯Æ°¤«¤¹¤¿¤á¤Î¤·¤¯¤ß¤¬»È¤¨¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹. ¤¯¤ï¤·¤¯¤Ï ¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Î¥Ç¥£¥¹¥¯¥É¥é¥¤¥Ð (man 4 wd) ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤. CMD640 IDE ¥³¥ó¥È¥í¡¼¥é¤ò»È¤Ã¤Æ¤¤¤ë¥·¥¹¥Æ¥à¤Ç FreeBSD 2.2.1 ¤¢¤ë¤¤¤Ï 2.2.2 ¤ò»È¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ç¥»¥«¥ó¥À¥ê¤Î¥Á¥ã¥Í¥ë¤ò »È¤¤¤¿¤¤¤Î¤Ç¤¢¤ì¤Ð options "CMD640" ¤òÍ­¸ú¤Ë¤·¤Æ¥«¡¼¥Í¥ë¤ò ºî¤êľ¤·¤Æ¤¯¤À¤µ¤¤. ¤³¤ì¤Ï 2.2.5 °Ê¹ß¤Ç¤Ï¥Ç¥Õ¥©¥ë¥È¤Ë¤Ê¤ê¤Þ¤¹. ``ed1: timeout'' ¤Î¤è¤¦¤Ê¥á¥Ã¥»¡¼¥¸¤¬¤¤¤Ä¤â½Ð¤Þ¤¹. ¤¿¤Ö¤ó IRQ ¤Î¾×ÆÍ¤¬¸¶°ø¤Ç¤·¤ç¤¦ (Æó¤Ä¤Î¥Ü¡¼¥É¤¬Æ±¤¸ IRQ ¤ò»ÈÍѤ·¤Æ¤¤¤ë¤Ê¤É). FreeBSD 2.0.5R °ÊÁ°¤Ç¤Ï, ¤³¤ì¤Ë´Ø¤·¤Æ¤Ï ´²Âç¤Ç IRQ ¤Î¾×ÆÍ¤¬¤¢¤Ã¤Æ¤â¥Í¥Ã¥È¥ï¡¼¥¯¥É¥é¥¤¥Ð¤Ïµ¡Ç½¤·¤Æ ¤¤¤Þ¤·¤¿. ¤·¤«¤· 2.0.5R °Ê¹ß¤Ï IRQ ¤Î¾×ÆÍ¤Ï¤â¤Ï¤ä´²Âç¤Ç¤Ï ¤¢¤ê¤Þ¤»¤ó. -c ¥ª¥×¥·¥ç¥ó¤ò¤Ä¤±¤Æ¥Ö¡¼¥È¤·¤Æ ed0/de0/... ¤Î ¥¨¥ó¥È¥ê¤ò¥Ü¡¼¥É¤ÎÀßÄê¤Ë¹ç¤ï¤»¤Æ¤¯¤À¤µ¤¤. ¥Í¥Ã¥È¥ï¡¼¥¯¥«¡¼¥É¤Î BNC ¥³¥Í¥¯¥¿ (ÌõÃí: 10BASE-2 ¥¿¥¤¥× ¤Î¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹) ¤ò»È¤Ã¤Æ¤¤¤ë¾ì¹ç, ¥Ç¥Ð¥¤¥¹¤Î¥¿¥¤¥à¥¢¥¦¥È ¤Ï¥¿¡¼¥ß¥Í¡¼¥·¥ç¥ó¤ÎÉÔÎɤˤè¤Ã¤Æ¤âµ¯¤­¤Þ¤¹. ¤³¤ì¤ò¥Á¥§¥Ã¥¯¤¹¤ë¤Ë¤Ï¥±¡¼¥Ö¥ë¤ò³°¤·¤Æ¥¿¡¼¥ß¥Í¡¼¥¿¤òľÀÜ NIC ¤ËÀܳ¤·¤Þ¤¹. ¤½¤·¤Æ¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤¬¾Ã¤¨¤ë¤«¤É¤¦¤« ³Îǧ¤·¤Þ¤¹. NE2000 ¥³¥ó¥Ñ¥Á¥Ö¥ë¥«¡¼¥É¤Î¤Ê¤«¤Ë¤Ï UTP ¥Ý¡¼¥È¤Î¥ê¥ó¥¯¤¬ ¤Ê¤«¤Ã¤¿¤ê¥±¡¼¥Ö¥ë¤¬Àܳ¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ë¤³¤Î¥¨¥é¡¼¤ò½Ð¤¹ ¤â¤Î¤¬¤¢¤ê¤Þ¤¹. CDROM ¤ò¥Þ¥¦¥ó¥È¤·¤è¤¦¤È¤¹¤ë¤È ``Incorrect super block'' ¤È¸À¤ï¤ì¤Þ¤¹. mount ¤Ë¥Þ¥¦¥ó¥È¤·¤¿¤¤¥Ç¥Ð¥¤¥¹¤Î¥¿¥¤¥×¤ò»ØÄꤹ¤ëɬÍ× ¤¬¤¢¤ê¤Þ¤¹. ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï mount ¤Ï¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò ``ufs'' ¤È¤ß¤Ê¤·¤Þ¤¹. CDROM ¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò ¥Þ¥¦¥ó¥È¤·¤¿¤¤¤Î¤Ç¤¢¤ì¤Ð ``'' ¤È mount ¥ª¥×¥·¥ç¥ó¤ò¤Ä¤±¤ÆÌÀ¼¨¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹. ¤³¤ì¤Ï¤â¤Á¤í¤ó CDROM ¤¬ ISO 9660 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ç¤¢¤ë¾ì¹ç¤Ç¤¹. ¤Û¤È¤ó¤É¤Î CDROM ¤Ï¤³¤Î·Á¼°¤Ç¤¹. 1.1R ¤Î FreeBSD ¤Ç¤Ï (ÌõÃí: ¸½¹Ô¤Î 2.1.5R, 2.2R ¤Ç¤âƱÍͤǤ¹) ¼«Æ°Åª¤Ë Rock Ridge ³ÈÄ¥ (Ť¤¥Õ¥¡¥¤¥ë̾¤Ø¤ÎÂбþ) ¤ò¤¦¤Þ¤¯²ò¼á¤·¤Þ¤¹. CDROM ¤Î¥Ç¥Ð¥¤¥¹ ``/dev/cd0c'' ¤ò /mnt ¤Ë¥Þ¥¦¥ó¥È¤·¤¿¤¤¾ì¹ç¤ÎÎã¤Ç¤Ï, ¼¡¤Î¤è¤¦¤Ë¤·¤Þ¤¹: mount -t cd9660 /dev/cd0c /mnt ¥Ç¥Ð¥¤¥¹¤Î̾Á°¤Ï¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Ë¤è¤Ã¤Æ¤ÏÊ̤Î̾Á°¤Ë¤Ê¤Ã¤Æ¤¤¤ë ¤«¤â¤·¤ì¤Ê¤¤¤Î¤ÇÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤ (``/dev/cd0c'' ¤Ï ¤³¤Î¾ì¹ç¤ÎÎã¤Ç¤¹). ¥ª¥×¥·¥ç¥ó ``'' ¤Ë¤è¤Ã¤Æ ``mount_cd9660'' ¥³¥Þ¥ó¥É¤¬¼Â¹Ô¤µ¤ì¤ë¤³¤È¤ËÃí°Õ ¤·¤Æ¤¯¤À¤µ¤¤. ¤³¤Î¤¿¤áÎã¤Ï¼¡¤Î¤è¤¦¤Ë¤¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹: mount_cd9660 /dev/cd0c /mnt CDROM ¤ò¥Þ¥¦¥ó¥È¤·¤è¤¦¤È¤¹¤ë¤È ``Device not configured'' ¤È¸À¤ï¤ì¤Þ¤¹. ¤³¤ì¤Ï °ìÈÌŪ¤Ë CDROM ¥É¥é¥¤¥Ö¤ÎÃæ¤Ë CDROM ¤¬Æþ¤Ã¤Æ¤¤¤Ê¤¤¤«, ¥É¥é¥¤¥Ö¤¬¥Ð¥¹¾å¤Ë¸«¤¨¤Ê¤¤¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹. ¥É¥é¥¤¥Ö¤Ë CDROM ¤òÆþ¤ì¤ë¤«, IDE (ATAPI) ¤Ç¤¢¤ì¤Ð master/slave ¤Î¾õÂÖ¤ò¥Á¥§¥Ã¥¯ ¤·¤Æ¤¯¤À¤µ¤¤. CDROM ¥É¥é¥¤¥Ö¤Ë CDROM ¤òÆþ¤ì¤Æ¤«¤éǧ¼±¤¹¤ë¤Þ¤Ç ¿ôÉ䫤«¤ê¤Þ¤¹¤Î¤Ç¾¯¤·ÂԤäƤߤƤ¯¤À¤µ¤¤. SCSI CDROM ¤Ç¤Ï¥Ð¥¹¥ê¥»¥Ã¥È¤Ø¤Î±þÅú»þ´Ö¤¬ÃÙ¤¤¤¿¤á¤Ë¼ºÇÔ¤¹¤ë ¤³¤È¤¬¤¢¤ë¤«¤â¤·¤ì¤Þ¤»¤ó. SCSI CDROM ¤ò»ý¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï ¥«¡¼¥Í¥ë¥³¥ó¥Õ¥£¥°¥ì¡¼¥·¥ç¥ó¥Õ¥¡¥¤¥ë¤Ë°Ê²¼¤Î¹Ô¤ò²Ã¤¨¤Æ ºÆ¥³¥ó¥Ñ¥¤¥ë¤·¤Æ»î¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤. options "SCSI_DELAY=15" (ÌõÃí: ¸½ºß¤Î GENERIC ¥«¡¼¥Í¥ë¤Ç¤Ï¾å¤ÎÀßÄê¤Ï¥Ç¥Õ¥©¥ë¥È¤Ë ¤Ê¤Ã¤Æ¤¤¤Þ¤¹. ÌäÂê¤Î¤¢¤ë¾ì¹ç¤Ï SCSI_DELAY ¤Î¿ôÃͤòÁý¤ä¤·¤Æ ¤ß¤Æ¤¯¤À¤µ¤¤.) »ä¤Î¥×¥ê¥ó¥¿¤Ï¤È¤Æ¤Ä¤â¤Ê¤¯ÃÙ¤¤¤Î¤Ç¤¹. ¤É¤¦¤·¤¿¤é¤è¤¤¤Î¤Ç¤·¤ç¤¦? ¥Ñ¥é¥ì¥ë¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Ç, ÌäÂê¤Ï¤È¤ó¤Ç¤â¤Ê¤¯ÃÙ¤¤¤À¤±¤Ç¤¢¤ë¤Ê¤é, ¥×¥ê¥ó¥¿¥Ü¡¼¥È¤ò ``polled'' ¥â¡¼¥É¤ËÀßÄꤷ¤Æ¤ß¤Æ¤¯¤À¤µ¤¤: lptcontrol -p HP ¤Î¿·¤·¤¤¥×¥ê¥ó¥¿¤Î¤¤¤¯¤Ä¤«¤Ï³ä¤ê¹þ¤ß¥â¡¼¥É¤Ç¤Ï »È¤¨¤Ê¤¤¤è¤¦¤Ç¤¹. (´°Á´¤Ë¤ï¤«¤Ã¤¿¤ï¤±¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¤¬) ¥¿¥¤¥ß¥ó¥°¤ÎÌäÂê¤Î¤è¤¦¤Ë»×¤ï¤ì¤Þ¤¹. »ä¤Î¥×¥í¥°¥é¥à¤Ï»þ¡¹ ``Signal 11'' ¤Î¥¨¥é¡¼¤Ç»ß¤Þ¤Ã¤Æ¤·¤Þ¤¤¤Þ¤¹. ¤³¤ì¤Ï¥Ï¡¼¥É¥¦¥§¥¢ (¥á¥â¥ê, ¥Þ¥¶¡¼¥Ü¡¼¥É¤Ê¤É) ¤ÎÉÔ¶ñ¹ç¤¤¤¬ ¸¶°ø¤Ç¤¹. PC ¤Ç¥á¥â¥ê¥Æ¥¹¥È¥×¥í¥°¥é¥à¤òư¤«¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤. ¤¿¤À¤·¥á¥â¥ê¤¬Àµ¾ï¤Ëưºî¤·¤Æ¤¤¤ë¤ÈÊó¹ð¤µ¤ì¤¿¤È¤·¤Æ¤â, ¤®¤ê¤®¤ê¤Ç ¥á¥â¥ê¥Æ¥¹¥È¤Ë¥Ñ¥¹¤·¤¿¥á¥â¥ê¤Ï, ½èÍý¤ÎÆâÍÆ (Î㤨¤Ð kernel ¤Î¥³¥ó¥Ñ¥¤¥ë¤äÆÃ¤Ë¥·¥¹¥Æ¥à¤ÎÉé²Ù¤¬¹â¤¤¤è¤¦¤Ê¾ì¹ç¤Ë¤Ï, Adaptec 1542 ¤Ê¤É¤Î SCSI ¥³¥ó¥È¥í¡¼¥é¤Î¥Ð¥¹¥Þ¥¹¥¿ DMA ¤Ê¤É) ¤Ë¤è¤Ã¤Æ¤ÏÌäÂ꤬µ¯¤­¤ë²ÄǽÀ­¤ÏÂ礤¤Ë¤¢¤ê¤Þ¤¹. SIG11 FAQ (¸å¤Ç URL¤ò¼¨¤·¤Þ¤¹) ¤Ç¤ÏÃÙ¤¤¥á¥â¥ê¤¬°ìÈÌŪ¤ËÌäÂê ¤òµ¯¤³¤·¤¬¤Á¤Ç¤¢¤ë¤³¤È¤ò»ØÅ¦¤·¤Æ¤¤¤Þ¤¹. BIOS ¥»¥Ã¥È¥¢¥Ã¥×¤Ç ¥¦¥¨¥¤¥È¥¹¥Æ¡¼¥È¿ô¤òÁý¤ä¤¹¤«¥á¥â¥ê¤ò®¤¤¤â¤Î¤Ë¸ò´¹¤·¤Æ¤¯¤À¤µ¤¤. »ä¤Î¾ì¹ç¤Ï¥­¥ã¥Ã¥·¥å RAM ¤ä¥ª¥ó¥Ü¡¼¥É¥­¥ã¥Ã¥·¥å¥³¥ó¥È¥í¡¼¥é ¤ÎÌäÂê¤Ç¤·¤¿. ¤³¤Î¤è¤¦¤ÊÌäÂê¤Ç¤Ï¤Ê¤¤¤«³Îǧ¤¹¤ë¤¿¤á¤Ë BIOS ¥»¥Ã¥È¥¢¥Ã¥×¤Ç¥ª¥ó¥Ü¡¼¥É (¥»¥«¥ó¥À¥ê) ¥­¥ã¥Ã¥·¥å¤ò̵¸ú¤Ë¤·¤Æ ¤ß¤Æ¤¯¤À¤µ¤¤. °Ê²¼¤Î¤È¤³¤í¤Ë¤Ï¹­¤¤ÈϰϤΠFAQ ¤¬¤¢¤ê¤Þ¤¹. the SIG11 problem FAQ ¥Ö¡¼¥È¤Î»þ¤Ë²èÌ̤¬¿¿¤Ã°Å¤Ë¤Ê¤Ã¤ÆÆ±´ü¤â¼è¤ì¤Þ¤»¤ó. ¤³¤ì¤Ï ATI Mach 64 ¥Ó¥Ç¥ª¥«¡¼¥É¤Î´ûÃΤÎÌäÂê¤Ç¤¹. ¤³¤ÎÌäÂê¤Ï¥«¡¼¥É¤¬¥¢¥É¥ì¥¹2e8¤ò»È¤¤, 4ÈÖÌܤΥ·¥ê¥¢¥ë¥Ý¡¼¥È ¤â¤³¤³¤ò»È¤¦¤È¤¤¤¦¤³¤È¤Ë¤¢¤ê¤Þ¤¹. sio.c ¥É¥é¥¤¥Ð¤Î¥Ð¥° (»ÅÍÍ?) ¤Î¤¿¤á4ÈÖÌܤΥ·¥ê¥¢¥ë¥Ý¡¼¥È¤¬¤Ê¤¯¤Æ¤â, Ä̾盧¤Î ¥¢¥É¥ì¥¹¤ò»È¤¦ sio3 (4 ÈÖÌܤΥݡ¼¥È¤Ë¤¢¤¿¤ê¤Þ¤¹) ¤ò̵¸ú¤Ë¤·¤Æ¤â, ¥É¥é¥¤¥Ð¤Ï¤³¤Î¥¢¥É¥ì¥¹¤ò¤µ¤ï¤ê¤Þ¤¹. ¥Ð¥°¤¬½¤Àµ¤µ¤ì¤ë¤Þ¤Ç¤Ï, ¼¡¤Î¤è¤¦¤Ë¤·¤ÆÂн褷¤Æ¤¯¤À¤µ¤¤. ¥Ö¡¼¥È¥×¥í¥ó¥×¥È¤¬½Ð¤¿¤é ¤ÈÆþÎϤ·¤Þ¤¹ (¤³¤ì¤Ë¤è¤ê¥«¡¼¥Í¥ë¤Ï¥³¥ó¥Õ¥£¥°¥ì¡¼¥·¥ç¥ó¥â¡¼¥É¤ËÆþ¤ê¤Þ¤¹). sio0, sio1, sio2 ,sio3 (¤³¤ì¤é¤¹¤Ù¤Æ) ¤ò̵¸ú¤Ë¤·¤Þ¤¹. ¤³¤ì¤Ë¤è¤Ã¤Æ sio ¥É¥é¥¤¥Ð¤Ï ưºî¤·¤Ê¤¯¤Ê¤ê¤Þ¤¹ -> ÌäÂê¤Ï¤¢¤ê¤Þ¤»¤ó. exit ¤È¥¿¥¤¥×¤·¤Æ¥Ö¡¼¥È¤ò³¹Ô¤·¤Þ¤¹. ¤â¤·¥·¥ê¥¢¥ë¥Ý¡¼¥È¤òÍ­¸ú¤Ë¤·¤¿¤¤¤Î¤Ç¤¢¤ì¤Ð°Ê²¼¤ÎÊѹ¹¤ò¤ª¤³¤Ê¤Ã¤Æ ¿·¤·¤¤¥«¡¼¥Í¥ë¤òºî¤ëɬÍפ¬¤¢¤ê¤Þ¤¹. /usr/src/sys/i386/isa/sio.c ¤ÎÃæ¤Ç1¥õ½ê¤¢¤ë 0x2e8 ¤È¤¤¤¦Ê¸»úÎó¤òõ¤·, ¤³¤Îʸ»úÎó¤È¤½¤Î¼êÁ°¤Ë¤¢¤ë ¥³¥ó¥Þ¤òºï½ü¤·¤Þ¤¹ (¸å¤í¤Î¥³¥ó¥Þ¤Ï»Ä¤·¤Þ¤¹). ¸å¤ÏÄ̾ï¤Î¼ê³¤­ ¤Ë¤·¤¿¤¬¤Ã¤Æ¿·¤·¤¤¥«¡¼¥Í¥ë¤òºî¤ê¤Þ¤¹. ¤³¤ÎÂнè¤ò¤ª¤³¤Ê¤Ã¤¿¸å¤Ç¤â¤Þ¤À X ¥¦¥£¥ó¥É¥¦¥·¥¹¥Æ¥à¤Ï¤¦¤Þ¤¯ ư¤«¤Ê¤¤¤«¤â¤·¤ì¤Þ¤»¤ó. ¤¤¤¯¤Ä¤«¤Î¿·¤·¤¤ ATI Mach 64 ¥Ó¥Ç¥ª¥«¡¼¥É (ÆÃ¤Ë ATI Mach Xpression) ¤Ï¸½ºß¤Î¥Ð¡¼¥¸¥ç¥ó¤Î XFree86 ¤Ç¤Ïư¤­¤Þ¤»¤ó. X ¤òµ¯Æ°¤¹¤ë¤È¥¹¥¯¥ê¡¼¥ó¤¬¿¿¤Ã°Å ¤Ë¤Ê¤Ã¤¿¤ê, ´ñ̯¤Êư¤­Êý¤ò¤·¤¿¤ê¤·¤Þ¤¹. ¤è¤ê¿·¤·¤¤ X ¥µ¡¼¥Ð ¤Ï¤â¤Ã¤È¤¦¤Þ¤¯Æ°¤­¤Þ¤¹. the XFree86 site ¤ò¸«¤Æ¥Ù¡¼¥¿¥ê¥ê¡¼¥¹¤Ø¤Î¥ê¥ó¥¯¤òÄɤäƤ¯¤À¤µ¤¤. °Ê²¼¤Î¥Õ¥¡¥¤¥ë¤ò»ý¤Ã¤Æ¤­¤Þ¤·¤ç¤¦. AccelCards, BetaReport, Cards, Devices, FILES, README.ati, README.FreeBSD, README.Mach64, RELNOTES, VGADriver.Doc, X312BMa64.tgz ¸Å¤¤¥Õ¥¡¥¤¥ë¤ò¤³¤Î¿·¤·¤¤¥Ð¡¼¥¸¥ç¥ó¤Î¥Õ¥¡¥¤¥ë¤ËÃÖ¤­´¹¤¨, xf86config ¤ò¤â¤¦°ìÅټ¹Ԥ·¤Þ¤¹. 128MB ¤Î RAM ¤¬¤¢¤ë¤Î¤Ç¤¹¤¬, 64MB ¤·¤«Ç§¼±¤·¤Þ¤»¤ó. FreeBSD ¤¬¥á¥â¥ê¤Î¥µ¥¤¥º¤ò BIOS ¤«¤é¼èÆÀ¤¹¤ëÊýË¡¤ÎÀ©¸Â¤Ë¤è¤ê, KB ñ°Ì¤Ç 16 ¥Ó¥Ã¥Èʬ¤Þ¤Ç¤·¤«¸¡½Ð¤Ç¤­¤Þ¤»¤ó (¤¹¤Ê¤ï¤ÁºÇÂç 65535Kb=64MB ¤Ç¤¹)(¤³¤ì¤è¤ê¾¯¤Ê¤¤¾ì¹ç¤â¤¢¤ê¤Þ¤¹. ¤¢¤ë BIOS ¤Î¾ì¹ç¤Ï¥á¥â¥ê¥µ¥¤¥º¤¬ 16MB ¤ËÀ©¸Â¤µ¤ì¤Þ¤¹). 64MB °Ê¾å¤Î¥á¥â¥ê¤òÀѤó¤Ç¤¤¤ë¾ì¹ç, FreeBSD ¤Ï¤½¤ì¤ò¸¡½Ð¤·¤è¤¦¤È¤· ¤Þ¤¹. ¤·¤«¤·¤½¤Î»î¤ß¤Ï¼ºÇÔ¤¹¤ë¤«¤â¤·¤ì¤Þ¤»¤ó. ¤³¤ÎÌäÂê¤ò²óÈò¤¹¤ë¤Ë¤Ï, °Ê²¼¤Ë¼¨¤¹¥«¡¼¥Í¥ë¥ª¥×¥·¥ç¥ó¤ò »ÈÍѤ¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹. ´°Á´¤Ê¥á¥â¥ê¾ðÊó¤ò BIOS ¤«¤é¼èÆÀ¤¹¤ë ÊýË¡¤â¤¢¤ê¤Þ¤¹¤¬, ¥Ö¡¼¥È¥Ö¥í¥Ã¥¯¤Ë¶õ¤­¤¬Ìµ¤¤¤¿¤á¼ÂÁõ¤Ç¤­¤Þ¤»¤ó. ¥Ö¡¼¥È¥Ö¥í¥Ã¥¯¤ÎÌäÂ꤬²ò·è¤µ¤ì¤ì¤Ð, ¤¤¤Ä¤«³ÈÄ¥ BIOS µ¡Ç½¤ò»ÈÍѤ·¤Æ´°Á´¤Ê¥á¥â¥ê¾ðÊó¤ò¼èÆÀ¤Ç¤­¤ë¤è¤¦¤Ë¤Ê¤ë¤Ç¤·¤ç¤¦. ¤È¤ê¤¢¤¨¤º¸½ºß¤Ï, ¥«¡¼¥Í¥ë¥ª¥×¥·¥ç¥ó¤ò»È¤Ã¤Æ¤¯¤À¤µ¤¤. options "MAXMEM=<n>" n ¤Ë¤Ï, ¥­¥í¥Ð¥¤¥Èñ°Ì¤Ç¥á¥â¥ê¤ÎÎ̤ò»ØÄꤷ¤Þ¤¹. 128MB ¤Î¾ì¹ç¤Ï, 131072 ¤È¤Ê¤ê¤Þ¤¹. FreeBSD 2.0 ¤¬ ``kmem_map too small!'' ¤È¸À¤Ã¤Æ¥Ñ¥Ë¥Ã¥¯¤·¤Þ¤¹. Ãí: ¥á¥Ã¥»¡¼¥¸¤Ï, ``mb_map too small!'' ¤Î¾ì¹ç¤â¤¢¤ê¤Þ¤¹. ¤³¤Î¥Ñ¥Ë¥Ã¥¯¤Ï, ¥Í¥Ã¥È¥ï¡¼¥¯¥Ð¥Ã¥Õ¥¡ (ÆÃ¤Ë mbuf ¥¯¥é¥¹¥¿) ¤Î²¾ÁÛ¥á¥â¥ê¤¬Ìµ¤¯¤Ê¤Ã¤¿¤³¤È¤ò¼¨¤·¤Þ¤¹. °Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤ò ¥«¡¼¥Í¥ë¥³¥ó¥Õ¥£¥°¥Õ¥¡¥¤¥ë¤ËÄɲä·¤Æ mbuf ¥¯¥é¥¹¥¿¤Ë»ÈÍѤǤ­¤ë ²¾ÁÛ¥á¥â¥ê¤ÎÎ̤òÁý¤ä¤·¤Æ¤¯¤À¤µ¤¤. options "NMBCLUSTERS=<n>" <n> ¤Ë¤Ï, Ʊ»þ¤Ë»ÈÍѤ·¤¿¤¤ TCP ¥³¥Í¥¯¥·¥ç¥ó¤Î¿ô¤Ë±þ¤¸¤Æ 512 ¤«¤é 4096 ¤Þ¤Ç¤Î¿ôÃͤò»ØÄê¤Ç¤­¤Þ¤¹. ¤È¤ê¤¢¤¨¤º 2048 ¤ò »î¤·¤Æ¤ß¤ë¤Î¤ò´«¤á¤Þ¤¹. ¤³¤ì¤Ç¥Ñ¥Ë¥Ã¥¯¤Ï´°Á´¤ÎͽËɤǤ­¤ë¤Ï¤º¤Ç¤¹. mbuf ¥¯¥é¥¹¥¿¤Î³ä¤êÅö¤Æ¡¿»ÈÍѾõ¶·¤Ë¤Ä¤¤¤Æ¤Ï, netstat -m ¤ÇÃΤ뤳¤È¤¬¤Ç¤­¤Þ¤¹. name="netstat -m"> ¤ÇÃΤ뤳¤È¤¬¤Ç¤­¤Þ¤¹. NMBCLUSTERS ¤Î ¥Ç¥Õ¥©¥ë¥ÈÃÍ¤Ï 512 + MAXUSERS * 16 ¤Ç¤¹. ¿·¤·¤¤¥«¡¼¥Í¥ë¤Ç¥ê¥Ö¡¼¥È¤¹¤ë¤È ``CMAP busy panic'' ¤È¤Ê¤Ã¤Æ¥Ñ¥Ë¥Ã¥¯¤òµ¯¤³¤·¤Æ¤·¤Þ¤¤¤Þ¤¹. ¥Õ¥¡¥¤¥ë /var/db/kvm_*.db ¤Ë¤ª¤¤¤ÆÈϰϳ°¤Î¥Ç¡¼¥¿¤ò ¸¡½Ð¤¹¤ë¤¿¤á¤Î¥í¥¸¥Ã¥¯¤Ï¼ºÇÔ¤¹¤ë¤³¤È¤¬¤¢¤ê, ¤³¤¦¤·¤¿Ì·½â¤Î¤¢¤ë ¥Õ¥¡¥¤¥ë¤ò»ÈÍѤ¹¤ë¤³¤È¤Ç¥Ñ¥Ë¥Ã¥¯¤ò°ú¤­µ¯¤³¤¹¤³¤È¤¬¤¢¤ê¤Þ¤¹. ¤³¤ì¤¬µ¯¤³¤Ã¤¿¤Ê¤é, ¥·¥ó¥°¥ë¥æ¡¼¥¶¤Ç¥ê¥Ö¡¼¥È¤·¤¿¸å¤Ë, °Ê²¼¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤. rm /var/db/kvm_*.db ahc0: brkadrint, Illegal Host Access at seqaddr 0x0 ¤È¤¤¤¦¥¨¥é¡¼¤¬½Ð¤Þ¤¹ ¤³¤ì¤Ï Ultrastor SCSI Host Adapter ¤È¾×ÆÍ¤·¤Æ¤¤¤Þ¤¹. ¥Ö¡¼¥È»þ¤Ë kernel configuration ¥á¥Ë¥å¡¼¤ËÆþ¤ê, ÌäÂê¤òµ¯¤³¤·¤Æ¤¤¤ë uha0 ¤ò disable ¤Ë¤·¤Þ¤·¤ç¤¦. sendmail¤¬ ``mail loops back to myself'' ¤È¤¤¤¦¥á¥Ã¥»¡¼¥¸¤ò½Ð¤¹¤Î¤Ç¤¹¤¬. ¤³¤Î»ö¤Ï, sendmail FAQ ¤Ë¼¡¤Î¤è¤¦¤Ë½ñ¤¤¤Æ¤¢¤ê¤Þ¤¹. * "Local configuration error" ¤È¤¤¤¦¥á¥Ã¥»¡¼¥¸¤¬½Ð¤Þ¤¹. Î㤨¤Ð: 553 relay.domain.net config error: mail loops back to myself 554 <user@domain.net>... Local configuration error ¤Î¤è¤¦¤Êʪ¤Ç¤¹¤¬, ¤É¤Î¤è¤¦¤Ë¤·¤¿¤é¤³¤ÎÌäÂê¤ò²ò·è¤Ç¤­¤Þ¤¹¤«? ¤³¤ì¤Ï, Î㤨¤Ð domain.net ¤Î¤è¤¦¤Ê¥É¥á¥¤¥ó°¸¤Æ¤Î¥á¡¼¥ë¤ò MX record ¤ÇÆÃÄê¤Î¥Û¥¹¥È (¤³¤³¤Ç¤Ï relay.domain.net) ¤ËÁ÷¤í¤¦ ¤È¤·¤¿¤Î¤Ë, ¤½¤Î¥Û¥¹¥È¤Ç¤Ï domain.net °¸¤Æ¤Î¥á¡¼¥ë¤ò¼õ¤±¼è¤ì¤ë ¤è¤¦¤ÊÀßÄê¤Ë¤Ê¤Ã¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ç¤¹. ÀßÄê¤ÎºÝ¤Ë FEATURE(use_cw_file) ¤ò»ØÄꤷ¤Æ¤¢¤ë¾ì¹ç¤Ë¤Ï/etc/sendmail.cw ¤ÎÃæ¤Ë domain.net ¤òÄɲ䷤Ƥ¯¤À¤µ¤¤. ¤â¤·¤¯¤Ï, /etc/sendmail.cf ¤ÎÃæ¤Ë "Cw domain.net" ¤òÄɲ䷤Ƥ¯¤À¤µ¤¤. ¤â¤Ï¤ä¸½ºß¤Î sendmail FAQ ¤Ï sendmail release ¤È¤Ï°ì½ï¤Ë¤ÏÊݼ餵¤ì¤Æ ¤¤¤Þ¤»¤ó. ¤·¤«¤·¼¡¤Î¥Í¥Ã¥È¥Ë¥å¡¼¥¹¤ËÄê´üŪ¤ËÅê¹Æ¤µ¤ì¤Æ¤Þ¤¹. comp.mail.sendmail, comp.mail.misc, comp.mail.smail, comp.answers, news.answers. ¤Þ¤¿, ¥á¡¼¥ë·Ðͳ¤Ç¥³¥Ô¡¼¤òÆþ¼ê¤¹¤ë¾ì¹ç¤Ï mail-server@rtfm.mit.edu °¸¤Þ¤ÇËÜʸ¤Ë "send usenet/news.answers/mail/sendmail-faq" ¤È½ñ¤¤¤ÆÁ÷¤ê¤Þ¤¹. ¥ê¥â¡¼¥È¥Þ¥·¥ó¾å¤Î¥Õ¥ë¥¹¥¯¥ê¡¼¥ó¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤¬¤¦¤Þ¤¯Æ°¤«¤Ê¤¤ ¥ê¥â¡¼¥È¥Þ¥·¥ó¤Î¥¿¡¼¥ß¥Ê¥ë¥¿¥¤¥×¤¬ FreeBSD ¤Î¥³¥ó¥½¡¼¥ë¤Ç ¤Ä¤«¤ï¤ì¤Æ¤¤¤ë cons25 °Ê³°¤Î¤â¤Î¤Ç¤¹. ¤³¤ÎÌäÂê¤ò²ò·è¤¹¤ëÊýË¡¤Ï¤¤¤í¤¤¤í¤¢¤ê¤Þ¤¹: ¥ê¥â¡¼¥È¥Þ¥·¥ó¤Ë login ¤·¤¿¸å, shell ÊÑ¿ô¤Î TERM ¤Ë ansi ¤« sco ¤Î¤¤¤º¤ì¤«¤òÀßÄꤷ¤Þ¤¹. ¥í¡¼¥«¥ë¦¤Ç screen ¤Î¤è¤¦¤Ê VT100 ¥¨¥ß¥å¥ì¡¼¥¿¤ò»ÈÍѤ·¤Þ¤¹. screen ¤Ï°ì¤Ä¤Î¥¿¡¼¥ß¥Ê¥ë¤ÎÃæ¤ÇÊ£¿ô¤Î¥»¥Ã¥·¥ç¥ó¤ò ÊÂÎóÆ°ºî¤µ¤»¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¤·, ËÜÍè¤Îµ¡Ç½¤âÍ¥¤ì¤Æ¤¤¤Þ¤¹. ¥ê¥â¡¼¥È¥Þ¥·¥ó¤Î¥¿¡¼¥ß¥Ê¥ë¥Ç¡¼¥¿¥Ù¡¼¥¹¤Ë cons25 ¤Î¥¨¥ó¥È¥ê¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Þ¤¹. X¤òµ¯Æ°¤·¤Æ¥ê¥â¡¼¥È¥Þ¥·¥ó¤Ë xterm ¤«¤é login ¤·¤Þ¤¹. (ÌõÃí: ÆüËܸ줬ɬÍפʾì¹ç¤Ï kterm Åù¤ò ÍøÍѤ·¤Þ¤¹) »ä¤Î¥Þ¥·¥ó¤Ç "calcru: negative time..." ¤Èɽ¼¨¤µ¤ì¤ë¤Î¤Ç¤¹¤¬ ¤³¤ì¤Ï, ³ä¤ê¹þ¤ß¤Ë´ØÏ¢¤¹¤ë¤µ¤Þ¤¶¤Þ¤ÊÉÔ¶ñ¹ç¤Ë¤è¤Ã¤ÆÈ¯À¸¤·¤Þ¤¹. ¤¢¤ë¤¤¤Ï, ¤¢¤ë¥Ç¥Ð¥¤¥¹¤¬¸µ¡¹»ý¤Ã¤Æ¤¤¤ë¥Ð¥°¤¬É½Ì̲½¤·¤¿¤Î¤«¤âÃΤì¤Þ¤»¤ó. ¤³¤Î¾É¾õ¤òºÆ¸½¤µ¤»¤ë°ì¤Ä¤ÎÊýË¡¤È¤·¤Æ, ¥Ñ¥é¥ì¥ë¥Ý¡¼¥È¾å¤Ç, TCP/IP ¤ò Â礭¤Ê MTU ¤ÇÁö¤é¤»¤ë¤È¤¤¤¦¤â¤Î¤¬¤¢¤ê¤Þ¤¹. ¥°¥é¥Õ¥£¥Ã¥¯¥¢¥¯¥»¥é¥ì¡¼¥¿¤¬¤³¤Î¾É¾õ¤òµ¯¤³¤¹¤³¤È¤¬¤¢¤ê¤Þ¤¹¤¬, ¤½¤Î¾ì¹ç¤Ï¤Þ¤º, ¥«¡¼¥É¤Î³ä¤ê¹þ¤ßÀßÄê¤ò³Îǧ¤·¤Æ²¼¤µ¤¤. ¤³¤ÎÌäÂê¤ÎÉûºîÍѤȤ·¤Æ, ¥×¥í¥»¥¹¤¬ "SIGXCPU exceeded cpu time limit" ¤È¤¤¤¦¥á¥Ã¥»¡¼¥¸¤È¤È¤â¤Ë½ªÎ»¤·¤Æ¤·¤Þ¤¦, ¤È¤¤¤¦¤â¤Î¤¬¤¢¤ê¤Þ¤¹. 1998 ǯ 11 ·î 29 Æü¤Ë¸ø³«¤µ¤ì¤¿ FreeBSD 3.0 °Ê¹ß¤Ç ¤³¤ÎÌäÂ꤬²ò·è¤·¤Ê¤¤¤Ê¤é, ¼¡¤Î sysctl ÊÑ¿ô¤ò¥»¥Ã¥È¤·¤Æ¤¯¤À¤µ¤¤. sysctl -w kern.timecounter.method=1 ¤³¤ì¤Ï, ¥Ñ¥Õ¥©¡¼¥Þ¥ó¥¹¤Ø¶¯¤¤±Æ¶Á¤òÍ¿¤¨¤Þ¤¹¤¬, ÌäÂê¤ÎȯÀ¸¤ËÈæ¤Ù¤ì¤Ð ¤ª¤½¤é¤¯µ¤¤Ë¤Ê¤é¤Ê¤¤ÄøÅ٤Ǥ·¤ç¤¦. ¤â¤·, ¤³¤ì¤Ç¤â¤Þ¤ÀÌäÂ꤬»Ä¤ë¤è¤¦¤Ê¤é, ¥«¡¼¥Í¥ë¥ª¥×¥·¥ç¥ó¤Î "NTIMECOUNTER" ¤òÂ礭¤ÊÃͤËÁý¤ä¤·¤Æ²¼¤µ¤¤. "NTIMECOUNTER=20" ¤Ë¤Þ¤ÇÁý¤ä¤·¤Æ¤â²ò·è¤·¤Ê¤¤¾ì¹ç¤Ï, ·×»þ½èÍý¤Î¿®ÍêÀ­¤¬ÊݤƤʤ¤Äø¤Î³ä¤ê¹þ¤ß¤¬, ¤½¤Î¥Þ¥·¥ó¾å¤Çµ¯¤³¤Ã¤Æ¤¤¤ë¤³¤È¤ò °ÕÌ£¤·¤Þ¤¹. ¾¦ÍÑ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó Ìõ: »³²¼ ½ß <junkun@esys.tsukuba.ac.jp>.10 November 1997. Ãí ¤³¤Î¾Ï¤Ï¤Þ¤À¤Þ¤À¾ðÊó¤¬Â­¤ê¤Þ¤»¤ó. ¾ðÊó¤òÄɲ䷤Ƥ¯¤ì¤ë ¤è¤¦¤Ê´ë¶È¤òÂÔ¤Á˾¤ó¤Ç¤¤¤Þ¤¹. FreeBSD ¥°¥ë¡¼¥×¤Ï¤³¤³¤ËºÜ¤Ã¤Æ¤¤¤ë ´ë¶È¤«¤é¤Î¶âÁ¬Åª¤Ê»Ù±ç¤ò´üÂÔ¤·¤Æ¤Ï¤¤¤Þ¤»¤ó¤Î¤Ç, Êô»Åºî¶È¤Î °ì¤Ä¤È¤·¤Æ·ÇºÜ¤·¤Æ¤¤¤Þ¤¹ (¤½¤·¤Æ FreeBSD ¤¬·¸¤ï¤ëÀëÅÁ¤Ï, Ť¤ÌܤǸ«¤ë¤È FreeBSD ¤ËÂФ·¤Æ¤è¤¤Êý¸þ¤ØÆ¯¤¯¤È»×¤Ã¤Æ¤¤¤Þ¤¹). »ä¤¿¤Á¤Ï¾¦ÍÑ¥½¥Õ¥È¥¦¥§¥¢¥Ù¥ó¥À¡¼¤Ë, ¤³¤³¤ÇÀ½ÉʤòÀëÅÁ¤·¤Æ¤â¤é¤¦ ¤³¤È¤ò˾¤ó¤Ç¤¤¤Þ¤¹. ¾Ü¤·¤¯¤Ï, ¾¦ÍÑ¥½¥Õ¥È¥¦¥¨¥¢¥Ù¥ó¥À°ìÍ÷¤Î¥Ú¡¼¥¸ ¤ò¤´Í÷¤¯¤À¤µ¤¤. FreeBSD ÍѤΠMotif ¤Ï¤É¤¦¤ä¤Ã¤¿¤é¼ê¤ËÆþ¤ê¤Þ¤¹¤« FreeBSD ÍѤΠELF ÈÇ Motif 2.1 ¤Ë´Ø¤¹¤ë¾ðÊó¤Ï ¤«¤é ¼ê¤ËÆþ¤ì¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. ¤³¤ÎÀ½Éʤϰʲ¼¤Îʪ¤¬´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹: OSF/Motif manager, xmbind, panner, wsm. uil, mrm, xm, xmcxx, ¥¤¥ó¥¯¥ë¡¼¥É¥Õ¥¡¥¤¥ë¤ä Imake ¥Õ¥¡¥¤¥ë¤È¤¤¤Ã¤¿³«È¯¼Ô¸þ¤±¥­¥Ã¥È FreeBSD 3.0 °Ê¹ß¤ÇÍøÍѤǤ­¤ë ELF ÈÇ¥¹¥¿¥Æ¥£¥Ã¥¯¥é¥¤¥Ö¥é¥ê, ¤ª¤è¤Ó¥À¥¤¥Ê¥ß¥Ã¥¯¥é¥¤¥Ö¥é¥ê ¥Ç¥â¥ó¥¹¥È¥ì¡¼¥·¥ç¥ó¥×¥í¥°¥é¥à Ãíʸ¤¹¤ëºÝ¤Ë¤Ï FreeBSD ÍѤΠMotif ¤Ç¤¢¤ë¤³¤È¤ò¤­¤Á¤ó¤È ³Îǧ¤·¤Æ¤¯¤À¤µ¤¤. NetBSD ¤ä OpenBSD ÍѤΠMotif ¤â¤Þ¤¿, Apps2go ¤«¤éÈÎÇ䤵¤ì¤Æ¤¤¤Þ¤¹. ¸½ºß, FTP ¤Ë¤è¤ë¥À¥¦¥ó¥í¡¼¥É¤Î¤ßÍøÍѲÄǽ¤Ç¤¹. ¤è¤ê¾Ü¤·¤¤¾ðÊó¤Ï Apps2go WWW page Ì䤤¹ç¤ï¤»¤Ï Sales ¤Þ¤¿¤Ï Support ÅŻҥ᡼¥ë¥¢¥É¥ì¥¹. ¤â¤·¤¯¤Ï phone (817) 431 8775 or +1 817 431-8775 ¾¤Î FreeBSD ÍÑ Motif 2.1(ELF ÈÇ, a.out ÈÇ) ¤Ë´Ø¤¹¤ë¾ðÊó¤Ï ¤«¤é¼ê¤ËÆþ¤ì¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. ¤³¤ÎÀ½Éʤϰʲ¼¤Îʪ¤¬´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹: OSF/Motif manager, xmbind, panner, wsm. uil, mrm, xm, xmcxx, ¥¤¥ó¥¯¥ë¡¼¥É¥Õ¥¡¥¤¥ë¤ä Imake ¥Õ¥¡¥¤¥ë¤È¤¤¤Ã¤¿³«È¯¼Ô¸þ¤±¥­¥Ã¥È ¥¹¥¿¥Æ¥£¥Ã¥¯¥é¥¤¥Ö¥é¥ê, ¤ª¤è¤Ó¥À¥¤¥Ê¥ß¥Ã¥¯¥é¥¤¥Ö¥é¥ê. (FreeBSD 3.0 °Ê¹ß¤ÇÍøÍѤǤ­¤ë ELF ÈǤ«, FreeBSD 2.2.8 °ÊÁ°¤ÇÍøÍѤǤ­¤ë a.out ÈǤò»ØÄꤷ¤Æ²¼¤µ¤¤) ¥Ç¥â¥ó¥¹¥È¥ì¡¼¥·¥ç¥ó¥×¥í¥°¥é¥à À°·ÁºÑ¤ß¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸ Ãíʸ¤¹¤ëºÝ¤Ë¤Ï FreeBSD ÍѤΠMotif ¤Ç¤¢¤ë¤³¤È¤ò¤­¤Á¤ó¤È ³Îǧ¤·¤Æ¤¯¤À¤µ¤¤. Linux ÍѤΠMotif ¤â Metri Link ¤«¤éÈÎÇ䤵¤ì¤Æ¤¤¤Þ¤¹. ¸½ºß, CDROM ¤ª¤è¤Ó FTP ¤Ë¤è¤ë¥À¥¦¥ó¥í¡¼¥É¤¬ÍøÍѲÄǽ¤Ç¤¹. FreeBSD ÍѤΠa.out ÈÇ Motif 2.0 ¤Ë´Ø¤¹¤ë¾ðÊó¤Ï ¤«¤é ¼ê¤ËÆþ¤ì¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. ¤³¤ÎÀ½Éʤϰʲ¼¤Îʪ¤¬´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹: OSF/Motif manager, xmbind, panner, wsm. uil, mrm, xm, xmcxx, ¥¤¥ó¥¯¥ë¡¼¥É¥Õ¥¡¥¤¥ë¤ä Imake ¥Õ¥¡¥¤¥ë¤È¤¤¤Ã¤¿³«È¯¼Ô¸þ¤±¥­¥Ã¥È FreeBSD 2.2.8 °ÊÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤ÇÍøÍѤǤ­¤ë¥¹¥¿¥Æ¥£¥Ã¥¯¥é¥¤¥Ö¥é¥ê, ¤ª¤è¤Ó¥À¥¤¥Ê¥ß¥Ã¥¯¥é¥¤¥Ö¥é¥ê ¥Ç¥â¥ó¥¹¥È¥ì¡¼¥·¥ç¥ó¥×¥í¥°¥é¥à À°·ÁºÑ¤ß¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸ Ãíʸ¤¹¤ëºÝ¤Ë¤Ï FreeBSD ÍѤΠMotif ¤Ç¤¢¤ë¤³¤È¤ò¤­¤Á¤ó¤È ³Îǧ¤·¤Æ¤¯¤À¤µ¤¤. BSDI ¤ä Linux ÍѤΠMotif ¤â¤Þ¤¿, Xi Graphics ¤«¤éÈÎÇ䤵¤ì¤Æ¤¤¤Þ¤¹. ¸½ºß¥Õ¥í¥Ã¥Ô¡¼¥Ç¥£¥¹¥¯ 4ËçÁȤǤ¹¤¬, ¾­ÍèŪ¤Ë¤Ï CDE ¤Î¤è¤¦¤ËÅý¹ç¤µ¤ì¤¿ CD ¤ËÊѤï¤ë¤Ç¤·¤ç¤¦. FreeBSD ÍѤΠCDE ¤Ï¤É¤¦¤ä¤Ã¤¿¤é¼ê¤ËÆþ¤ê¤Þ¤¹¤« °ÊÁ° ¤¬ FreeBSD ÍѤΠCDE ¤òÈÎÇ䤷¤Æ¤¤¤Þ¤·¤¿¤¬, ¸½ºß¤ÏÈÎÇ䤷¤Æ¤¤¤Þ¤»¤ó. KDE ¤Ï¿¤¯¤ÎÅÀ¤Ç CDE ¤Ë»÷¤¿¥ª¡¼¥×¥ó¥½¡¼¥¹¤Î X11 ¥Ç¥¹¥¯¥È¥Ã¥×¤Ç¤¹. ¹âµ¡Ç½¤Ê¾¦ÍÑ X ¥µ¡¼¥Ð¤Ã¤Æ¤¢¤ë¤ó¤Ç¤¹¤«? ¤Ï¤¤, Xi Graphics ¤È Metro Link ¤«¤é, FreeBSD ¤Û¤« Intel ¥Ù¡¼¥¹¤Î¥·¥¹¥Æ¥à¤Çưºî¤¹¤ë Accelerated-X ¤È¤¤¤¦À½Éʤ¬ÈÎÇ䤵¤ì¤Æ¤¤¤Þ¤¹. Metro Link ¤Ï, FreeBSD ¤Î¥Ñ¥Ã¥±¡¼¥¸Áàºî¥Ä¡¼¥ë¤òÍøÍѤ¹¤ë¤³¤È¤Ç ÍÆ°×¤ËÀßÄ꤬¹Ô¤Ê¤¨¤ë¤Û¤«, ¿ô¿¤¯¤Î¥Ó¥Ç¥ª¥Ü¡¼¥É¤ò¥µ¥Ý¡¼¥È¤·¤¿ ¹âµ¡Ç½¤Ê X ¥µ¡¼¥Ð¤òÄ󶡤·¤Æ¤¤¤Þ¤¹. ÇÛÉۤϥХ¤¥Ê¥ê·Á¼°¤Î¤ß¤Ç, FTP ¤¬ÍøÍѲÄǽ¤Ç¤¹. ¤â¤Á¤í¤ó, ¤È¤Æ¤â°Â²Á($39)¤Ë¼ê¤ËÆþ¤ì¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. ¤Þ¤¿, Metro Link ¤Ï ELF ÈÇ, a.out ÈǤΠFreeBSD ÍÑ Motif ¤âÈÎÇ䤷¤Æ¤¤¤Þ¤¹(Á°¤ò»²¾È). ¤è¤ê¾Ü¤·¤¤¾ðÊó¤Ï Metro Link WWW page Ì䤤¹ç¤ï¤»¤Ï Sales ¤Þ¤¿¤Ï Support ÅŻҥ᡼¥ë¥¢¥É¥ì¥¹ ¤â¤·¤¯¤Ï phone (954) 938-0283 or +1 954 938-0283 Xi Graphics ¤¬Ä󶡤·¤Æ¤¤¤ë¹âÀ­Ç½¤Ê X ¥µ¡¼¥Ð¤Ï³Ú¤ËÀßÄê¤ò¤ª¤³¤Ê¤¨¤ë¤Û¤«, ¿ô¿¤¯¤Î¥Ó¥Ç¥ª¥Ü¡¼¥É ¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹. ¥µ¡¼¥Ð¤Ï¥Ð¥¤¥Ê¥ê¤Î¤ß¤¬´Þ¤Þ¤ì¤Þ¤¹. FreeBSD ÍÑ¤È Linux ÍѤÎÅý¹ç¤µ¤ì¤¿¥Õ¥í¥Ã¥Ô¡¼¥Ç¥£¥¹¥¯¤ËÆþ¤Ã¤Æ¤¤¤Þ¤¹. Xi Graphics ¤Ï Laptop ¥µ¥Ý¡¼¥È¤ËÆÃ²½¤·¤¿¹âÀ­Ç½ X ¥µ¡¼¥Ð¤âÄ󶡤·¤Æ¤¤¤Þ¤¹. ¥Ð¡¼¥¸¥ç¥ó 5.0 ¤Î¡Ö¸ß´¹¥Ç¥â¡×¤¬ÌµÎÁ¤ÇÆþ¼ê¤Ç¤­¤Þ¤¹. ¤Þ¤¿ Xi Graphics ¤Ï FreeBSD ÍѤΠMotif ¤È CDE ¤âÈÎÇ䤷¤Æ¤¤¤Þ¤¹ (Á°¤ò»²¾È). ¤è¤ê¾Ü¤·¤¤¾ðÊó¤Ï Xi Graphics WWW page Ì䤤¹ç¤»¤Ï Sales ¤Þ¤¿¤Ï Support ¤â¤·¤¯¤Ï phone (800) 946 7433 or +1 303 298-7478. FreeBSD ÍѤΥǡ¼¥¿¥Ù¡¼¥¹¥·¥¹¥Æ¥à¤Ï¤¢¤ê¤Þ¤¹¤«? ¤â¤Á¤í¤ó¤¢¤ê¤Þ¤¹! FreeBSD ¤Î Web ¥µ¥¤¥È¤Î ¾¦ÍÑ¥Ù¥ó¥À¡¼ ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤. ports ¥³¥ì¥¯¥·¥ç¥ó¤Î ¥Ç¡¼¥¿¥Ù¡¼¥¹ ¤Î¹à¤â¤´Í÷¤¯¤À¤µ¤¤. FreeBSD ¤Ç Oracle ¤Ïư¤­¤Þ¤¹¤«? ¤â¤Á¤í¤ó¤Ç¤¹. °Ê²¼¤Î¥Ú¡¼¥¸¤Ë Linux-Oracle ¤ò FreeBSD ¤Ç ư¤«¤¹Àµ³Î¤ÊÊýË¡¤¬ºÜ¤Ã¤Æ¤¤¤Þ¤¹: http://www.scc.nl/~marcel/howto-oracle.html http://www.lf.net/lf/pi/oracle/install-linux-oracle-on-freebsd ¥æ¡¼¥¶¥¢¥×¥ê¥±¡¼¥·¥ç¥ó Ìõ: »³²¼ ½ß <junkun@esys.tsukuba.ac.jp> ¹­À¥ ¾»°ì <shou@kt.rim.or.jp> .8 November 1997. ¤½¤¦¤¤¤¦¥æ¡¼¥¶¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ï¤É¤³¤Ë¤¢¤ë¤Î? FreeBSD¤Ë port (°Ü¿¢) ¤µ¤ì¤¿¥½¥Õ¥È¥¦¥§¥¢¥Ñ¥Ã¥±¡¼¥¸¤Ë¤Ä¤¤¤Æ¤Ï, ports ¤Î¥Ú¡¼¥¸ ¤ò¤´Í÷²¼¤µ¤¤. ¤³¤Î¥ê¥¹¥È¤Ë¤Ï¸½ºß 1800 ¤ò±Û¤¨¤ë¹àÌܤ¬¤¢¤ê, ¤·¤«¤âËèÆü¹¹¿·¤µ¤ì¤Æ¤¤¤Þ¤¹. ¤³¤Î¥Ú¡¼¥¸¤ò¾®¤Þ¤á¤Ëˬ¤ì¤ë¤«, freebsd-announce ¤ò¹ØÆÉ¤¹¤ë¤È, ¿·¤·¤¯Æþ¤Ã¤¿ ports ¤òÄê´üŪ¤Ë¥Á¥§¥Ã¥¯¤¹¤ë¤³¤È¤¬ ¤Ç¤­¤Þ¤¹. ÂçÉôʬ¤Î ports ¤Ï 2.2 ¤È 3.x ¤ª¤è¤Ó 4.0 ¥Ö¥é¥ó¥Á¤ÇÍøÍѤǤ­¤ë¤Ï¤º¤Ç¤¹. ¿¤¯¤Ï 2.1.x ·Ï¤Î¥·¥¹¥Æ¥à¤Ç¤âƱÍÍ¤ËÆ°ºî¤¹¤ë¤Ç¤·¤ç¤¦. FreeBSD ¤Î¥ê¥ê¡¼¥¹¤¬½Ð¤ëÅÙ¤Ë, ¤½¤Î¥ê¥ê¡¼¥¹¤Î»þÅÀ¤Ç¤Î ports ¥Ä¥ê¡¼¤Î ¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¤¬»£¤é¤ì, ports/ ¥Ç¥£¥ì¥¯¥È¥ê¤Ë Ǽ¤á¤é¤ì¤ë¤³¤È¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹. ¤Þ¤¿, ``package'' ¤È¤¤¤¦¹Í¤¨¤âºÎÍѤµ¤ì¤Æ¤¤¤Þ¤¹. ¤³¤ì¤Ï´ðËÜŪ¤Ë¤Ï gzip ¤µ¤ì¤¿¥Ð¥¤¥Ê¥ê¥Ç¥£¥¹¥È¥ê¥Ó¥å¡¼¥·¥ç¥ó¤Ë, ¥¤¥ó¥¹¥È¡¼¥ë»þ¤Ë ´Ä¶­¤Ë¹ç¤ï¤»¤¿ºî¶È¤¬É¬Íפˤʤ俾ì¹ç¤Ë¤½¤ì¤ò¼¹¤ê¹Ô¤¦Â¿¾¯¤Î±ÑÃΤò ÉÕ¤±²Ã¤¨¤¿¤â¤Î¤Ç¤¹. package ¤ò»È¤¨¤Ð, ¤É¤Î¤è¤¦¤Ê¥Õ¥¡¥¤¥ë¤¬ ÇÛÉÛʪ¤È¤·¤Æ´Þ¤Þ¤ì¤Æ¤¤¤ë¤«¤È¸À¤Ã¤¿ºÙ¤«¤¤»öÊÁ¤Ë¤¤¤Á¤¤¤ÁÈѤ蘆¤ì¤ë ¤³¤È¤Ê¤¯, ´Êñ¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤ä¥¢¥ó¥¤¥ó¥¹¥È¡¼¥ë¤ò·«¤êÊÖ¤¹ ¤³¤È¤¬¤Ç¤­¤Þ¤¹. ¥¤¥ó¥¹¥È¡¼¥ë¤·¤¿¤¤ package ¤¬¤¢¤ë¤Ê¤é, /stand/sysinstall ¤Î, ¡Ö¥¤¥ó¥¹¥È¡¼¥ë¸å¤Î FreeBSD ¤ÎÀßÄê¤ò¹Ô¤¦¡×¤Î²¼¤Ë¤¢¤ë package ¤Î¥¤¥ó¥¹¥È¡¼¥ë¥á¥Ë¥å¡¼¤ò»È¤¦¤«, package ¤Î¥Õ¥¡¥¤¥ë̾¤ò »ØÄꤷ¤Æ pkg_add(1) ¤ò»ÈÍѤ·¤Æ²¼¤µ¤¤. package ¤Î ¥Õ¥¡¥¤¥ë̾¤Ë¤ÏÄ̾ïËöÈø¤Ë .tgz ¤¬¤Ä¤¤¤Æ¤¤¤Þ¤¹. CDROM ¤ò¤´»ÈÍѤÎÊý¤Ï, CD ¤Î packages/All ¥Ç¥£¥ì¥¯¥È¥ê¤«¤é ¤½¤ì¤é¤Î¥Õ¥¡¥¤¥ë¤òÍøÍѤ¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. ¤Þ¤¿, °Ê²¼¤Î¾ì½ê¤«¤é, FreeBSD ¤Î³Æ¼ï¥Ð¡¼¥¸¥ç¥ó¤Ë¤¢¤ï¤»¤¿ package ¤ò¥À¥¦¥ó¥í¡¼¥É¤¹¤ë ¤³¤È¤â¤Ç¤­¤Þ¤¹. 2.2.8-release/2.2.8-stable ÍÑ ftp://ftp.FreeBSD.ORG/pub/FreeBSD/ports/i386/packages-2.2.8/ 4.0-current ÍÑ ftp://ftp.FreeBSD.ORG/pub/FreeBSD/ports/i386/packages-3.0/ ¤ª¶á¤¯¤Î¥ß¥é¡¼¥µ¥¤¥È¤â¤´ÍøÍѲ¼¤µ¤¤. ¿·¤·¤¤ ports ¤¬Â³¡¹¤ÈÄɲäµ¤ì¤Æ¤¤¤ë¾õÂ֤ʤΤÇ, Á´¤Æ¤Î ports ¤Ë Âбþ¤¹¤ë package ¤¬Â¸ºß¤¹¤ë¤ï¤±¤Ç¤Ï¤Ê¤¤¤³¤È¤ò³Ð¤¨¤Æ¤ª¤¤¤Æ¤¯¤À¤µ¤¤. Äê´üŪ¤Ë ftp.freebsd.org ¥Þ¥¹¥¿¡¼¥µ¥¤¥È¤òˬ¤ì¤Æ, ¤É¤Î¤è¤¦¤Ê package ¤¬ÍøÍѤǤ­¤ë¤Î¤«¥Á¥§¥Ã¥¯¤¹¤ë¤Î¤âÎɤ¤¤Ç¤·¤ç¤¦. libc.so.3.0 ¤Ï¤É¤³¤Ë¤¢¤ê¤Þ¤¹¤«? 2.1.x ¤Î¥·¥¹¥Æ¥à¤Ç 2.2/3.x/4.0 ÍѤΠpackage ¤òư¤«¤½¤¦¤È¤·¤Æ¤¤¤Þ¤¹¤Í. Á°¤Î¥»¥¯¥·¥ç¥ó¤òÆÉ¤ó¤Ç, ¥·¥¹¥Æ¥à¤Ë¹ç¤Ã¤¿Àµ¤·¤¤ port/package ¤ò Æþ¼ê¤·¤Æ¤¯¤À¤µ¤¤. 386/486SX ¤Î¥Þ¥·¥ó¤Ç ghostscript ¤òư¤«¤¹¤È¥¨¥é¡¼¤¬¤Ç¤Þ¤¹. ¤¢¤Ê¤¿¤Î¥Þ¥·¥ó¤Ë¤Ï¿ôÃͱ黻¥×¥í¥»¥Ã¥µ¤¬ÅãºÜ¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¤Í? ¥«¡¼¥Í¥ë¤Ë¥³¥×¥í¥»¥Ã¥µ¤ÎÂå¤ï¤ê¤È¤Ê¤ë¿ôÃͱ黻¥¨¥ß¥å¥ì¡¼¥¿¤ò Äɲ乤ëɬÍפ¬¤¢¤ê¤Þ¤¹. °Ê²¼¤Î¥ª¥×¥·¥ç¥ó¤ò¥«¡¼¥Í¥ë¤Î¥³¥ó¥Õ¥£¥°¥ì¡¼¥·¥ç¥ó¥Õ¥¡¥¤¥ë¤Ë Äɲä·¤Æ, ¥«¡¼¥Í¥ë¤òºÆ¹½ÃÛ¤·¤Æ¤¯¤À¤µ¤¤. options GPL_MATH_EMULATE Ãí ¤³¤Î¥ª¥×¥·¥ç¥ó¤òÄɲ乤ë¾ì¹ç, MATH_EMULATE ¤Î¹Ô¤òºï½ü¤·¤Æ¤¯¤À¤µ¤¤. SCO/iBCS2 ¤Î¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤ò¼Â¹Ô¤¹¤ë¤È, socksys ¤ÇÍî¤Á¤Æ¤·¤Þ¤¤¤Þ¤¹. ¤Þ¤ººÇ½é¤Ë /etc/sysconfig (¤Þ¤¿¤Ï /etc/rc.conf) ¤ÎÃæ¤Î ºÇ¸å¤Î¥»¥¯¥·¥ç¥ó¤òÊÔ½¸¤·, °Ê²¼¤ÎÊÑ¿ô¤òYES¤Ëľ¤·¤Þ¤¹. # Set to YES if you want ibcs2 (SCO) emulation loaded at startup ibcs2=NO ¤³¤ì¤Ç¥·¥¹¥Æ¥à¤Îµ¯Æ°»þ¤Ë ibcs2 ¥«¡¼¥Í¥ë¥â¥¸¥å¡¼¥ë¤¬ÆÉ¤ß¹þ¤Þ¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹. ¼¡¤Ë /compat/ibcs2/dev/ ¤ò°Ê²¼¤Î¤è¤¦¤ËÊÔ½¸¤·¤Þ¤¹: lrwxr-xr-x 1 root wheel 9 Oct 15 22:20 X0R@ -> /dev/null lrwxr-xr-x 1 root wheel 7 Oct 15 22:20 nfsd@ -> socksys -rw-rw-r-- 1 root wheel 0 Oct 28 12:02 null lrwxr-xr-x 1 root wheel 9 Oct 15 22:20 socksys@ -> /dev/null crw-rw-rw- 1 root wheel 41, 1 Oct 15 22:14 spx open ¤ä close ¤Î½èÍý¤Ï, socksys¤«¤é /dev/null ¤Ø ¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤òÄ¥¤ë¤³¤È¤ÇÂåÍѤ·¤Þ¤¹. »Ä¤ê¤Î½èÍý¤Ï, -current ¤ËÆþ¤Ã¤Æ¤¤¤ë¥³¡¼¥É¤¬Ã´Åö¤·¤Æ¤¤¤Þ¤¹. ¤³¤ì¤Ï°ÊÁ°¤Î¤â¤Î¤è¤ê ¤º¤Ã¤È¥¹¥Ã¥­¥ê¤·¤¿ÊýË¡¤Ç¤¹. ¥í¡¼¥«¥ë¤Ç¤Î X ¤Î¥½¥±¥Ã¥ÈÀܳ¤Ë spx ¥É¥é¥¤¥Ð¤ò»È¤¤¤¿¤¤ ¤Î¤Ç¤¢¤ì¤Ð, ¥·¥¹¥Æ¥à¤ò¥³¥ó¥Ñ¥¤¥ë¤¹¤ëºÝ¤ËSPX_HACK ¤òÄêµÁ¤·¤Æ¤¯¤À¤µ¤¤. INN (¥¤¥ó¥¿¡¼¥Í¥Ã¥È¥Ë¥å¡¼¥¹) ¤ÎÀßÄêÊýË¡¤Ï? inn ¤Î package ¤ä port ¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤¿¤¢¤È¤Ë Dave Barr's INN Page ¤ò¸«¤Æ¤ß¤Þ¤·¤ç¤¦. ½é¿´¼Ô¸þ¤±¤Î INN FAQ ¤¬¤¢¤ê¤Þ¤¹. ¤É¤Î¥Ð¡¼¥¸¥ç¥ó¤Î Microsoft FrontPage ¤òÆþ¼ê¤¹¤ì¤Ð¤¤¤¤¤Î? Port ¤ò»È¤Ã¤Æ¤¯¤À¤µ¤¤! ¥Ñ¥Ã¥Á¤ÎÅö¤¿¤Ã¤¿¥Ð¡¼¥¸¥ç¥ó¤Î Apache ¤¬ ports ¥Ä¥ê¡¼¤Ë¤¢¤ê¤Þ¤¹. FreeBSD ¤Ï Java ¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¤«? ¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹. http://www.freebsd.org/java ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤. ÆüËܸìÌõ ¤â¤¢¤ê¤Þ¤¹. ld.so ¤Ï¤É¤³¤Ë¤¢¤ê¤Þ¤¹¤«? 3.1-R °Ê¹ß¤Ê¤É¤Î Elf ²½¤µ¤ì¤¿¥Þ¥·¥ó¤Ç Netscape Navigator ¤Ê¤É¤Î aout ·Á¼°¤Î¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤òư¤«¤¹¤È¤­¤Ë¤Ï, /usr/libexec/ld.so ¤È aout ¥é¥¤¥Ö¥é¥ê¤Î¥Õ¥¡¥¤¥ë¤¬É¬ÍפǤ¹. ¤½¤ì¤é¤ÏÇÛÉÛʪ¤Î compat22 ¤ËǼ¤á¤é¤ì¤Æ¤¤¤Þ¤¹. /stand/sysinstall ¤ä compat22 ¥µ¥Ö¥Ç¥£¥ì¥¯¥È¥êÆâ¤Î install.sh ¤ò »È¤Ã¤Æ compat22 ¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤¯¤À¤µ¤¤. ¹ç¤ï¤»¤Æ 3.1-R ¤È 3.2-R ¤Î ERRATA ¤â¤ªÆÉ¤ß¤¯¤À¤µ¤¤. ¥«¡¼¥Í¥ë¥³¥ó¥Õ¥£¥°¥ì¡¼¥·¥ç¥ó Ìõ: ¤Ï¤é¤À ¤­¤í¤¦ <kiroh@jp.FreeBSD.org>.10 November 1997. ¥«¡¼¥Í¥ë¤ò¥«¥¹¥¿¥Þ¥¤¥º¤·¤¿¤¤¤ó¤Ç¤¹¤¬, Æñ¤·¤¤¤Ç¤¹¤«? Á´Á³Æñ¤·¤¯¤¢¤ê¤Þ¤»¤ó. ¥Ï¥ó¥É¥Ö¥Ã¥¯¤Î¥«¡¼¥Í¥ë¥³¥ó¥Õ¥£¥°¥ì¡¼¥·¥ç¥ó¤ÎÀá¤òÄ´¤Ù¤Æ¤¯¤À¤µ¤¤. Ãí: ¤¦¤Þ¤¯Æ°ºî¤¹¤ë¥«¡¼¥Í¥ë¤¬¤Ç¤­¤¿¤é, ÆüÉÕÆþ¤ê¤Î¥«¡¼¥Í¥ë ¤Î¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È¤ò kernel.YYMMDD ¤Î¤è¤¦¤ËºîÀ®¤¹¤ë¤³¤È¤ò ¤ª¤¹¤¹¤á¤·¤Þ¤¹. ¤³¤¦¤·¤Æ¤ª¤±¤Ð, ¼¡¤Ë¥«¡¼¥Í¥ë¤Î¹½ÃÛ¤ò¤ä¤Ã¤Æ¤¦¤Þ¤¯ ¤¤¤«¤Ê¤¯¤Ê¤Ã¤Æ¤·¤Þ¤Ã¤Æ¤â, kernel.GENERIC ¤Ë¤ï¤¶¤ï¤¶Ìá¤ë ɬÍפ¬¤Ê¤¯¤Ê¤ê¤Þ¤¹. ¤³¤ì¤Ï, GENERIC kernel ¤Ç¥µ¥Ý¡¼¥È¤µ¤ì¤Ê¤¤ ¥Ç¥Ð¥¤¥¹¤«¤é¥Ö¡¼¥È¤·¤Æ¤¤¤ë¾ì¹ç¤Ï, ÆÃ¤Ë½ÅÍפǤ¹ (·Ð¸³¼Ô¤Ï¸ì¤ë¤Ã¤Æ¤ä¤Ä¤Ç¤¹). _hw_float ¤¬Ìµ¤¤¤Î¤Ç, ¥«¡¼¥Í¥ë¤Î¥³¥ó¥Ñ¥¤¥ë¤¬¤¦¤Þ¤¯¤¤¤­¤Þ¤»¤ó. ¿ä¬¤Ç¤¹¤±¤É, ¿ôÃͱ黻¥³¥×¥í¥»¥Ã¥µ¤ò»ý¤Ã¤Æ¤Ê¤¤¤«¤é¤È»×¤Ã¤Æ, npx0 ¤ò¥«¡¼¥Í¥ë¥³¥ó¥Õ¥£¥°¥Õ¥¡¥¤¥ë¤«¤éºï½ü¤·¤Á¤ã¤Ã¤¿¤ó¤¸¤ã ¤Ê¤¤¤Ç¤¹¤«? npx0 ¤Ïɬ¿Ü¤Ç¤¹. ¥³¥×¥í¥»¥Ã¥µ¤¬¤Ê¤¯¤Æ¤â, npx0 ¥Ç¥Ð¥¤¥¹¤Ïºï½ü¤·¤Æ¤Ï¤¤¤±¤Þ¤»¤ó. ¥Þ¥ë¥Á¥Ý¡¼¥È¥·¥ê¥¢¥ë´ØÏ¢¤Î¥³¡¼¥É¤Ç¤Î, ³ä¤ê¹þ¤ß¤Î¶¥¹ç Q. ¥Þ¥ë¥Á¥Ý¡¼¥È¥·¥ê¥¢¥ë¤ò¥µ¥Ý¡¼¥È¤¹¤ë¥³¡¼¥É¤ò´Þ¤ó¤À ¥«¡¼¥Í¥ë¤ò¥³¥ó¥Ñ¥¤¥ë¤·¤è¤¦¤È¤¹¤ë¤È, ºÇ½é¤Î¥Ý¡¼¥È¤À¤±¸¡½Ð¤µ¤ì, »Ä¤ê¤Î¥Ý¡¼¥È¤Ï³ä¤ê¹þ¤ß¤Î¶¥¹ç¤Î¤¿¤á¥¹¥­¥Ã¥×¤µ¤ì¤¿¤È¸À¤ï¤ì¤Þ¤¹. ¤É¤¦¤ä¤Ã¤¿¤é¤¤¤¤¤Ç¤·¤ç¤¦¤«? A. ¤³¤³¤Ç¤ÎÌäÂê¤Ï, FreeBSD ¤Ë¤Ï¥Ï¡¼¥É¥¦¥§¥¢¤Þ¤¿¤Ï ¥½¥Õ¥È¥¦¥§¥¢¤Î¶¥¹ç¤Ë¤è¤Ã¤Æ¥«¡¼¥Í¥ë¤¬¥¯¥é¥Ã¥·¥å¤¹¤ë¤Î¤òËɤ° ¥³¡¼¥É¤¬´Þ¤Þ¤ì¤Æ¤¤¤ë¤È¤¤¤¦ÅÀ¤Ç¤¹. ²ò·è¤¹¤ë¤Ë¤Ï, ºÇ½é¤Î¥Ý¡¼¥È ¤Ë¤À¤± IRQ ¤ÎÀßÄê¤ò½ñ¤­, »Ä¤ê¤Ï IRQ ¤ÎÀßÄê¤òºï½ü¤·¤Þ¤¹. °Ê²¼¤ËÎã¤ò¼¨¤·¤Þ¤¹. # # Multiport high-speed serial line - 16550 UARTS # device sio2 at isa? port 0x2a0 tty irq 5 flags 0x501 vector siointr device sio3 at isa? port 0x2a8 tty flags 0x501 vector siointr device sio4 at isa? port 0x2b0 tty flags 0x501 vector siointr device sio5 at isa? port 0x2b8 tty flags 0x501 vector siointr QIC-40/80 ¥É¥é¥¤¥Ö¤Î¥µ¥Ý¡¼¥È¤òÍ­¸ú¤Ë¤¹¤ë¤Ë¤Ï? GENERIC ¥³¥ó¥Õ¥£¥°¥Õ¥¡¥¤¥ë¤Î°Ê²¼¤Î¹Ô¤Î¥³¥á¥ó¥È¤ò³°¤·¤Æ ¤¯¤À¤µ¤¤ (¤â¤·¤¯¤Ï»ÈÍѤ¹¤ë¥³¥ó¥Õ¥£¥°¥Õ¥¡¥¤¥ë¤ËÄɲ䷤Ƥ¯¤À¤µ¤¤). ¤½¤·¤Æ fdc ¤Î¹Ô¤Ë, ``flags 0x1'' ¤òÄɲ䷤Ƥ¯¤À¤µ¤¤. controller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2 flags 0x1 vector fdintr disk fd0 at fdc0 drive 0 ^^^^^^^^^ disk fd1 at fdc0 drive 1 #tape ft0 at fdc0 drive 2 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ¼¡¤Ë, /dev/ft0 ¥Ç¥Ð¥¤¥¹¤òºîÀ®¤·¤Þ¤¹. /dev/ ¤Ë°Üư¤·¤Æ, °Ê²¼¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Þ¤¹. sh ./MAKEDEV ft0 ¤³¤ì¤Ï, 1 ÈÖÌܤΥɥ饤¥Ö¤ÎÎã¤Ç¤¹. 2 ÈÖÌÜ¤Ë¤Ï ft1 ¤ò»È¤¤, °Ê¹ß¤ÏƱÍͤˤ·¤Æ¤¯¤À¤µ¤¤. /dev/ft0 ¥Ç¥Ð¥¤¥¹¤Ï, ``ft'' ¤È¸Æ¤Ð¤ì¤ëÆÃÊÌ¤Ê ¥³¥Þ¥ó¥É¤ò»ÈÍѤ·¤Æ½ñ¤­¹þ¤ß¤ò¤ª¤³¤Ê¤¨¤Þ¤¹. ¾ÜºÙ¤Ë¤Ä¤¤¤Æ¤Ï ft ¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤. °ÊÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤Î ft ¤Ë¤Ï, ÉÔÎɥơ¼¥×¥á¥Ç¥£¥¢¤Î°·¤¤¤ËÌäÂ꤬¤¢¤ê¤Þ¤¹. ft ¤¬¥Æ¡¼¥×¤ÎƱ¤¸Éôʬ¤ò¹Ô¤Ã¤¿¤êÍ褿¤ê¤·¤Æ¤¤¤ë¤è¤¦¤Ç¤¢¤ì¤Ð, ¤Î /usr/src/sbin/ft ¤«¤éºÇ¿·¤Î ft ¤ò¼èÆÀ¤·¤Æ»î¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤. ¥·¥¹¥Æ¥à´ÉÍý Ìõ: ¤Ë¤·¤« <nishika@cheerful.com>.12 November 1997. ¥·¥¹¥Æ¥à¥¹¥¿¡¼¥È¥¢¥Ã¥×¥Õ¥¡¥¤¥ë¤Ï¤É¤³¤Ë¤¢¤ë¤Î¤Ç¤¹¤«? 2.0.5R ¤«¤é 2.2.1R ¤Þ¤Ç¤Ï, ¥×¥é¥¤¥Þ¥ê¥³¥ó¥Õ¥£¥°¥ì¡¼¥·¥ç¥ó¥Õ¥¡¥¤¥ë¤Ï /etc/sysconfig ¤Ë¤¢¤ê¤Þ¤¹. ¥ª¥×¥·¥ç¥ó¤Ï¤¹¤Ù¤Æ, ¤³¤Î¥Õ¥¡¥¤¥ë¤È /etc/rc ¤ª¤è¤Ó /etc/netstart¤È¤¤¤Ã¤¿, Ê̤Υե¡¥¤¥ë¤Ë»ØÄꤵ¤ì¤Æ¤¤¤Þ¤¹. ¥Õ¥¡¥¤¥ë /etc/sysconfig ¤ò¸«¤Æ, ¥·¥¹¥Æ¥à¤ËŬ¹ç¤¹¤ë¤è¤¦¤Ë Êѹ¹¤·¤Æ¤¯¤À¤µ¤¤. ¤³¤Î¥Õ¥¡¥¤¥ë¤Ï¤½¤ì¤¾¤ì¤Î¾ì½ê¤Ë²¿¤ò½ñ¤±¤Ð¤¤¤¤¤Î¤«¤òɽ¤¹ ¥³¥á¥ó¥È¤¬¤¿¤¯¤µ¤ó½ñ¤«¤ì¤Æ¤¤¤Þ¤¹. 2.2.2 ¤Ë³¤¯¥ê¥ê¡¼¥¹ ¤È 3.0 ¤Ç¤Ï, /etc/sysconfig ¤Ï, ¤è¤êʬ¤ê¤ä¤¹¤¤Ì¾Á°¤Î rc.conf ¤Ë²þ̾¤µ¤ì, ¤½¤ì¤Ë½¾¤Ã¤Æ ½ñ¼°¤â¤¤¤¯¤Ö¤ó²þ¤á¤é¤ì¤Þ¤¹. /etc/netstart ¤â /etc/rc.network ¤Ë²þ̾¤µ¤ì, Á´Éô¤Î¥Õ¥¡¥¤¥ë¤ò cp /usr/src/etc/rc* /etc¤Ç°ìÅ٤˥³¥Ô¡¼¤¹¤ë¤³¤È¤¬ ½ÐÍè¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹. ¥Õ¥¡¥¤¥ë /etc/rc.local ¤Ï¾ï¤Ë¤³¤³¤Ë¤¢¤ê, INN ¤ä http ¤È¤¤¤Ã¤¿ÄɲäΥµ¡¼¥Ó¥¹³«»Ï¤ä ¥«¥¹¥¿¥à¥ª¥×¥·¥ç¥ó¤òµ­½Ò¤¹¤ë¤¿¤á¤Ë»È¤ï¤ì¤ë¤Ç¤·¤ç¤¦. ¥Õ¥¡¥¤¥ë /etc/rc.serial ¤Ï¥·¥ê¥¢¥ë¥Ý¡¼¥È¤Î½é´ü²½ (Î㤨¤Ð¥Ý¡¼¥È¤ÎÀßÄê¤ò¸ÇÄꤷ¤¿¤êÅù¡¹) ¤Î¤¿¤á¤Ë¤¢¤ê¤Þ¤¹. ¥Õ¥¡¥¤¥ë /etc/rc.i386 ¤Ï iBCS2 ¥¨¥ß¥å¥ì¡¼¥·¥ç¥ó¤Î¤è¤¦¤Ê Intel ¥¢¡¼¥­¥Æ¥¯¥Á¥ã¸ÇÍ­¤ÎÀßÄê¤ä PC ¥·¥¹¥Æ¥à¥³¥ó¥½¡¼¥ëÀßÄê¤Î¤¿¤á¤Ë¤¢¤ê¤Þ¤¹. 2.1.0R ¤«¤é¤Ï, "¥í¡¼¥«¥ë" ¥¹¥¿¡¼¥È¥¢¥Ã¥×¥Õ¥¡¥¤¥ë¤ò¥Ç¥£¥ì¥¯¥È¥ê /etc/sysconfig (¤Þ¤¿¤Ï /etc/rc.conf) ¤ÎÃæ¤Ëºî¤Ã¤Æ»ØÄꤹ¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹: # Location of local startup files. local_startup=/usr/local/etc/rc.local.d .sh ¤Ç½ª¤ï¤ë¤½¤ì¤¾¤ì¤Î¥Õ¥¡¥¤¥ë¤Ï, ¥¢¥ë¥Õ¥¡¥Ù¥Ã¥È½ç¤Ë¼Â¹Ô¤µ¤ì¤Þ¤¹. ¥Õ¥¡¥¤¥ë̾¤òÊѤ¨¤ë¤³¤È¤Ê¤¯¤¢¤ë°ìÄê¤Î½ç½ø¤Ç³Î¼Â¤Ë¼Â¹Ô¤·¤¿¤¤¤Î¤Ç¤¢¤ì¤Ð, ½ç½ø¤¬Êݾڤµ¤ì¤ë¤è¤¦¤Ë°Ê²¼¤Î¤è¤¦¤Ë¤·¤Æ, ¤½¤ì¤¾¤ì¤Î¥Õ¥¡¥¤¥ë¤ÎƬ¤Ë¿ôÃͤò¤Ä¤±¤ë¤è¤¦¤Ê¥Ç¥¶¥¤¥ó¤ò »È¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹: 10news.sh 15httpd.sh 20ssh.sh ¤³¤ÎÊýË¡¤Ï¸«¶ì¤·¤¯ (¤¢¤ë¤¤¤Ï SysV ¤Î¤è¤¦¤Ë :-)) ¤Ê¤ê¤Þ¤¹¤¬, /etc/rc.local ¤ò ¼êÉʤΤ褦¤ÊÊÔ½¸¤Ç¥½¡¼¥È¤¹¤ë¤è¤¦¤Ê¤³¤È¤Ê¤¯ ¥í¡¼¥«¥ë¤ÎÄɲåѥ屡¼¥¸¤ò»È¤¦¤¿¤á¤Ë¤Ï, ¥·¥ó¥×¥ë¤Ç¤·¤«¤â¤è¤¯»È¤ï¤ì¤ë ¼êË¡¤Ç¤Ï¤¢¤ê¤Þ¤¹. ¤Û¤È¤ó¤É¤Î ports/packages ¤Ï /usr/local/etc/rc.d ¤ò¥í¡¼¥«¥ë¥¹¥¿¡¼¥È¥¢¥Ã¥×¥Ç¥£¥ì¥¯¥È¥ê ¤Ç¤¢¤ë¤È²¾Äꤷ¤Æ¤¤¤Þ¤¹. ´Êñ¤Ë¥æ¡¼¥¶¤òÄɲ乤ë¤Ë¤Ï¤É¤¦¤¹¤ì¤Ð¤¤¤¤¤Î¤Ç¤¹¤«? adduser ¥³¥Þ¥ó¥É¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤. Ollivier Robert ¤Ë¤è¤Ã¤Æ Perl ¤Ç½ñ¤«¤ì¤¿ ``new-account'' ¤È ¸Æ¤Ð¤ì¤ë¥Ñ¥Ã¥±¡¼¥¸¤â¤¢¤ê¤Þ¤¹. ¤³¤ì¤Ë¤Ä¤¤¤Æ¤Ï <roberto@FreeBSD.ORG> ¤Ë¤¿¤º¤Í¤Æ¤ß¤Æ¤¯¤À¤µ¤¤. ¸½ºß¤µ¤é¤Ê¤ë³«È¯¤ò¤ª¤³¤Ê¤Ã¤Æ¤¤¤Þ¤¹. ¤Þ¤¿, ¥æ¡¼¥¶¤òºï½ü¤¹¤ë¤Ë¤Ï rmuser ¥³¥Þ¥ó¥É¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤. FreeBSD ¥·¥¹¥Æ¥à¤Ë¿·¤·¤¤¥Ï¡¼¥É¥Ç¥£¥¹¥¯¤òÄɲ乤ë¤Ë¤Ï? www.freebsd.org ¤Ë½ñ¤«¤ì¤Æ¤¤¤ë¥Ç¥£¥¹¥¯¥Õ¥©¡¼¥Þ¥Ã¥È ¥Á¥å¡¼¥È¥ê¥¢¥ë¤ò»²¾È¤·¤Æ²¼¤µ¤¤. ¿·¤·¤¤¥ê¥à¡¼¥Ð¥Ö¥ë¥É¥é¥¤¥Ö¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹¤¬, ¤É¤¦¤ä¤Ã¤Æ»È¤¦¤Î? ¤½¤Î¥ê¥à¡¼¥Ð¥Ö¥ë¥É¥é¥¤¥Ö¤¬ ZIP ¤Ç¤¢¤ì EZ drive ¤Ç¤¢¤ì (¤¢¤ë¤¤¤Ï¤â¤·¤½¤¦¤¤¤¦É÷¤Ë»È¤¤¤¿¤¤¤Î¤Ê¤é, ¥Õ¥í¥Ã¥Ô¡¼¤Ç¤¢¤ì), ¤Þ¤¿¥Ï¡¼¥É¥Ç¥£¥¹¥¯¤Ç¤¢¤ì, °ìö¥·¥¹¥Æ¥à¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤ÆÇ§¼±¤µ¤ì, ¥«¡¼¥È¥ê¥Ã¥¸, ¥Õ¥í¥Ã¥Ô¡¼Åù¡¹¤¬ÁÞÆþ¤µ¤ì¤Æ¤¤¤ì¤Ð, ¤³¤È¤Ï¤É¤Î¥Ç¥Ð¥¤¥¹¤Ç¤âÁ´¤¯Æ±¤¸¤è¤¦¤Ë¿Ê¤ß¤Þ¤¹. (¤³¤Î¥»¥¯¥·¥ç¥ó¤ÏMark Mayo's ZIP FAQ ¤Ë´ð¤Å¤¤¤Æ¤¤¤Þ¤¹.) ZIP ¥É¥é¥¤¥Ö¤ä¥Õ¥í¥Ã¥Ô¡¼¤Ç, ¤¹¤Ç¤Ë DOS ¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ç ¥Õ¥©¡¼¥Þ¥Ã¥È¤·¤Æ¤¢¤ë¾ì¹ç, ¼¡¤Î¥³¥Þ¥ó¥É¤ò»È¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹. ¤³¤ì¤Ï¥Õ¥í¥Ã¥Ô¡¼¤Î¾ì¹ç¤Ç¤¹. mount -t msdos /dev/fd0c /floppy ½Ð²Ù»þ¤ÎÀßÄê¤Î ZIP ¥Ç¥£¥¹¥¯¤Ç¤Ï¤³¤¦¤Ç¤¹. mount -t msdos /dev/sd2s4 /zip ¤½¤Î¾¤Î¥Ç¥£¥¹¥¯¤Ë´Ø¤·¤Æ¤Ï, fdisk ¤ä /stand/sysinstall ¤ò»È¤Ã¤Æ, ¤É¤Î¤è¤¦¤Ë¥ì¥¤¥¢¥¦¥È ¤µ¤ì¤Æ¤¤¤ë¤«³Î¤«¤á¤Æ¤¯¤À¤µ¤¤. °Ê¹ß¤Ï ZIP ¥É¥é¥¤¥Ö¤¬ 3 ÈÖÌܤΠSCSI ¥Ç¥£¥¹¥¯¤Ç, sd2 ¤Èǧ¼±¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤ÎÎã¤Ç¤¹. ¾¿Í¤È¶¦Í­¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¥Õ¥í¥Ã¥Ô¡¼¤ä¥ê¥à¡¼¥Ð¥Ö¥ë¥Ç¥£¥¹¥¯ ¤Ç¤Ê¤±¤ì¤Ð, BSD ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤òºÜ¤»¤Æ¤·¤Þ¤¦¤Î¤¬Îɤ¤¹Í¤¨¤Ç¤·¤ç¤¦. ¥í¥ó¥°¥Õ¥¡¥¤¥ë̾¤â¥µ¥Ý¡¼¥È¤µ¤ì, ¥Ñ¥Õ¥©¡¼¥Þ¥ó¥¹¤Ï¾¯¤Ê¤¯¤È¤â 2 Çܤϸþ¾å¤·¤Þ¤¹¤·, ¤ª¤Þ¤±¤Ë¤º¤Ã¤È°ÂÄꤷ¤Æ¤¤¤Þ¤¹. ¤Þ¤ººÇ½é¤Ë, DOS ¥ì¥Ù¥ë¤Ç¤Î¥Ñ¡¼¥Æ¥£¥·¥ç¥ó / ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò ̵¸ú¤Ë¤·¤Æ¤ª¤¯É¬Íפ¬¤¢¤ê¤Þ¤¹. »ÈÍѤ¹¤ë¤Î¤Ï fdisk ¤Ç¤â /stand/sysinstall ¤Ç¤â·ë¹½¤Ç¤¹. Ê£¿ô¤Î¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à¤òÆþ¤ì¤ë¤³¤È¤ò¹Íθ¤¹¤ë ɬÍפ¬¤Ê¤¤¤è¤¦¤ÊÍÆÎ̤µ¤Ê¥É¥é¥¤¥Ö¤Î¾ì¹ç¤Ï, ¼¡¤Î¤è¤¦¤Ë FAT ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¥Æ¡¼¥Ö¥ë (¥¹¥é¥¤¥¹) Á´ÂΤòÈô¤Ð¤·¤Æ, BSD ¤Î¥Ñ¡¼¥Æ¥£¥·¥ç¥óÀßÄê¤ò¹Ô¤¦¤À¤±¤ÇÎɤ¤¤Ç¤·¤ç¤¦. dd if=/dev/zero of=/dev/rsd2 count=2 disklabel -Brw sd2 auto Ê£¿ô¤Î BSD ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤ò¤Ä¤¯¤ë¾ì¹ç, disklabel ¤« /stand/sysinstall ¤ò»È¤¤¤Þ¤¹. ¸ÇÄê¥Ç¥£¥¹¥¯¾å¤Ë¥¹¥ï¥Ã¥×ÎÎ°è ¤ò²Ã¤¨¤ë¾ì¹ç¤Ï¤½¤¦¤¤¤¦¤³¤È¤ò¤·¤¿¤¤¤È»×¤¦¤Î¤Ï¤â¤Ã¤È¤â¤Ç¤¹¤¬, ZIP ¤Î¤è¤¦¤Ê¥ê¥à¡¼¥Ð¥Ö¥ë¥É¥é¥¤¥Ö¤Î¾å¤Ç¤Ï¤½¤¦¤¤¤¦¹Í¤¨¤ÏÉÔŬÀÚ ¤Ç¤·¤ç¤¦. ºÇ¸å¤Ë, ¿·¤·¤¤¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò¤Ä¤¯¤ê¤Þ¤¹. ¥Ç¥£¥¹¥¯Á´ÂΤò»ÈÍѤ¹¤ë ZIP ¥É¥é¥¤¥Ö¤Î¾ì¹ç¤Ï, °Ê²¼¤Î¤è¤¦¤Ë¤·¤Þ¤¹. newfs /dev/rsd2c ¼¡¤Ë¥Þ¥¦¥ó¥È¤·¤Þ¤¹. mount /dev/sd2c /zip ¤Þ¤¿, ¼¡¤Î¤è¤¦¤Ê¹Ô¤ò /etc/fstab ¤ËÆþ¤ì¤Æ¤ª¤¯¤Î¤âÎɤ¤¹Í¤¨¤Ç¤·¤ç¤¦. "mount /zip" ¤ÈÆþÎϤ¹¤ë¤À¤±¤Ç¥Þ¥¦¥ó¥È¤Ç¤­¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹. /dev/sd2c /zip ffs rw,noauto 0 0 ¤É¤Î¤è¤¦¤Ë¤·¤¿¤é DOS ¤Î³ÈÄ¥¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤ò¥Þ¥¦¥ó¥È¤Ç¤­¤Þ¤¹¤«? DOS ³ÈÄ¥¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Ï¤¹¤Ù¤Æ¤Î´ðËܥѡ¼¥Æ¥£¥·¥ç¥ó¤Î¸å¤Ë ǧ¼±¤µ¤ì¤Þ¤¹. ¤¿¤È¤¨¤Ð, 2ÂæÌܤΠSCSI¥É¥é¥¤¥Ö¤Î³ÈÄ¥¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Ë "E" ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤¬¤¢¤ë¤È¤·¤Þ¤¹¤È, ¤³¤ì¤Ï /dev ¤Ë¥¹¥é¥¤¥¹ 5 ¤Î¥¹¥Ú¥·¥ã¥ë¥Õ¥¡¥¤¥ë¤òºî¤ëɬÍפ¬¤¢¤ê, /dev/sd1s5 ¤È¤·¤Æ¥Þ¥¦¥ó¥È¤µ¤ì¤Þ¤¹. # cd /dev # ./MAKEDEV sd1s5 # mount -t msdos /dev/sd1s5 /dos/e ¾¤Î¥·¥¹¥Æ¥à¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò FreeBSD ¤Ç¥Þ¥¦¥ó¥È¤¹¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤¹¤«? Digital UNIX UFS CDROM ¤ÏľÀÜ FreeBSD ¤Ç¥Þ¥¦¥ó¥È ¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. Digital UNIX ¤ä¤½¤ì°Ê³°¤Î¥·¥¹¥Æ¥à¤Î¥µ¥Ý¡¼¥È¤¹¤ë UFS ¤Î¥Ç¥£¥¹¥¯¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤ò¥Þ¥¦¥ó¥È¤¹¤ë¤³¤È¤Ï¤â¤Ã¤ÈÊ£»¨ ¤Ê¤³¤È¤Ç, ¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à¤Î¥Ç¥£¥¹¥¯¥Ñ¡¼¥Æ¥£¥·¥ç¥ó ¤Î¾ÜºÙ¤Ë°Í¸¤·¤Þ¤¹. Linux: 2.2 °Ê¹ß¤Ï ext2fs ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤ò¥µ¥Ý¡¼¥È¤·¤Þ¤¹. ¥Þ¥Ë¥å¥¢¥ë¤Î mount_ext2fs ¤ò¸«¤Æ¤¯¤À¤µ¤¤. ¤è¤ê¿¤¯¤Î¾ðÊ󤬤¢¤ê¤Þ¤¹. NT: FreeBSD ÍÑ¤ÎÆÉ¤ß¤À¤·¤Î¤ß²Äǽ¤Ê NTFS ¥É¥é¥¤¥Ð¤¬¤¢¤ê¤Þ¤¹. ¤è¤ê¾Ü¤·¤¯¤Ï, Mark Ovens »á¤Ë¤è¤Ã¤Æ½ñ¤«¤ì¤¿¥Á¥å¡¼¥È¥ê¥¢¥ë http://www.users.globalnet.co.uk/~markov/ntfs_install.html ¤ò ¸«¤Æ¤¯¤À¤µ¤¤. ¤³¤ÎÌäÂê¤Ë¤Ä¤¤¤ÆÂ¾¤Î¾ðÊ󤬤¢¤ì¤Ð, ¾¤Î¿Í¤«¤é´¶¼Õ¤µ¤ì¤ë¤Ç¤·¤ç¤¦. ¤É¤Î¤è¤¦¤Ë¤·¤¿¤é FreeBSD ¤ò NT ¥í¡¼¥À¡¼¤«¤é¥Ö¡¼¥È¤µ¤»¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¤«? FreeBSD ¤Î¥Í¥¤¥Æ¥£¥Ö¥ë¡¼¥È¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤ÎºÇ½é¤Î¥»¥¯¥¿¤ò ¥Õ¥¡¥¤¥ë¤Ë¤·¤Æ DOS/NT ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¾å¤ËÃÖ¤¯¤È¤¤¤¦²è´üŪ¤Ê ¥¢¥¤¥Ç¥£¥¢¤¬¤¢¤ê¤Þ¤¹. ¥Õ¥¡¥¤¥ë̾¤ò c:\bootsect.bsd (c:\bootsect.dos ¤«¤é¤ÎȯÁۤǤ¹) ¤È¤·¤¿¤È¤·¤Þ¤¹. c:\boot.ini ¥Õ¥¡¥¤¥ë¤ò¼¡¤Î¤è¤¦¤ËÊÔ½¸¤·¤Þ¤¹: [boot loader] timeout=30 default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS [operating systems] multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows NT" C:\BOOTSECT.BSD="FreeBSD" C:\="DOS" ¤³¤Î¼ê½ç¤Ç¤Ï DOS, NT, FreeBSD ¤½¤Î¾¤¬Æ±¤¸¥Ç¥£¥¹¥¯¤Î¤½¤ì¤¾¤ì¤Î fdisk ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¤È¤·¤Æ¤¤¤Þ¤¹. »ä¤Î¾ì¹ç¤Ï, DOS ¤È NT ¤ÏºÇ½é¤Î¥Ñ¡¼¥Æ¥£¥·¥ç¥ó, FreeBSD¤Ï 2ÈÖÌܤˤ¢¤ê¤Þ¤¹. ¤Þ¤¿, FreeBSD ¤Ï MBR ¤ò»È¤ï¤º¤Ë, ¥Í¥¤¥Æ¥£¥Ö¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤«¤é ¥Ö¡¼¥È¤¹¤ë¤è¤¦¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤¢¤ê¤Þ¤¹. (ÌõÃí: FreeBSD ¤Î¥¤¥ó¥¹¥È¡¼¥ë¤Ç¤Ï¥Ö¡¼¥È¥Þ¥Í¥¸¥ã¤ò»È¤ï¤º¤Ëɸ½à MBR ¤ò»È¤¦¾ì¹ç¤ËÁêÅö¤·¤Þ¤¹) (¤â¤· NTFS ¤ËÊÑ´¹¤·¤Æ¤·¤Þ¤Ã¤Æ¤¤¤ë¤Ê¤é) DOS ¥Õ¥©¡¼¥Þ¥Ã¥È¤Î ¥Õ¥í¥Ã¥Ô¡¼¥Ç¥£¥¹¥¯¤« FAT ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤ò /mnt ¤Ë DOS ¥Þ¥¦¥ó¥È¤·¤Þ¤¹. dd if=/dev/rsd0a of=/mnt/bootsect.bsd bs=512 count=1 ¥ê¥Ö¡¼¥È¤·¤Æ DOS ¤« NT ¤ËÀÚÂØ¤¨¤Þ¤¹. NTFS ¥æ¡¼¥¶¤Ï bootsect.bsd ¤ä bootsect.lnx ¤ò¥Õ¥í¥Ã¥Ô¡¼¥Ç¥£¥¹¥¯¤«¤é C:\ ¤Ø¥³¥Ô¡¼¤·¤Þ¤¹. boot.ini ¤Î¥Õ¥¡¥¤¥ë°À­ (¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó) ¤ÎÊѹ¹¤ò°Ê²¼¤Î¤è¤¦¤Ë¤ª¤³¤Ê¤¤¤Þ¤¹: attrib -s -r c:\boot.ini ¾å¤ÎÎã¤Î boot.ini ¤Ç¼¨¤·¤¿¤è¤¦¤ÊÀµ¤·¤¤¥¨¥ó¥È¥ê¤ò²Ã¤¨, ¥Õ¥¡¥¤¥ë°À­¤ò¸µ¤ËÌᤷ¤Þ¤¹. attrib -r -s c:\boot.ini FreeBSD ¤¬ MBR ¤«¤é¥Ö¡¼¥È¤¹¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤ë¾ì¹ç, ¤½¤ì¤¾¤ì¤Î¥Í¥¤¥Æ¥£¥Ö¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤«¤é¥Ö¡¼¥È¤¹¤ë¤è¤¦¤ËÀßÄꤷ¤¿¸å¤Ç, DOS ¤«¤é ``fdisk'' ¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Æ¸µ¤ËÌᤷ¤Æ¤¯¤À¤µ¤¤. FreeBSD ¤È Linux ¤ò LILO ¤«¤é¥Ö¡¼¥È¤¹¤ë¤Ë¤Ï? FreeBSD ¤È Linux ¤¬Æ±¤¸¥Ç¥£¥¹¥¯¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¾ì¹ç, ñ¤Ë Linux °Ê³°¤Î OS ¤ò¥Ö¡¼¥È¤¹¤ë¤¿¤á¤Î LILO ¤Î¥¤¥ó¥¹¥È¡¼¥ë¼ê½ç¤Ë ½¾¤¨¤Ð¤¤¤¤¤À¤±¤Ç¤¹. Èó¾ï¤Ë´Êñ¤Ë¤Ç¤Ï¤¢¤ê¤Þ¤¹¤¬, µ­¤·¤Æ¤ß¤Þ¤·¤ç¤¦: Linux ¤ò¥Ö¡¼¥È¤·, /etc/lilo.conf ¤Ë°Ê²¼¤Î¹Ô¤ò²Ã¤¨¤Æ ¤¯¤À¤µ¤¤: other=/dev/hda2 table=/dev/hda label=FreeBSD (¾åµ­¤Î¼ê½ç¤Ï FreeBSD ¤Î¥¹¥é¥¤¥¹¤¬ Linux ¤«¤é /dev/hda2 ¤È¤¤¤¦Ì¾Á°¤Ç¸«¤¨¤Æ¤¤¤ë¤È²¾Äꤷ¤Æ¤¤¤Þ¤¹; ¤¢¤Ê¤¿¤ÎÀßÄê¤Ë¤¢¤ï¤»¤Æ ¤¯¤À¤µ¤¤) ¤½¤Î¸å, lilo ¤ò root ¤Ç¼Â¹Ô¤¹¤ì¤Ð´°Î»¤Ç¤¹. FreeBSD ¤¬Ê̤Υǥ£¥¹¥¯¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Æ¤¤¤ë¤Î¤Ê¤é, LILO ¤Î ¥¨¥ó¥È¥ê¤Ë ``loader=/boot/chain.b'' ¤òÄɲ䷤Ƥ¯¤À¤µ¤¤. Î㤨¤Ð, ¤³¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹: other=/dev/sdb4 table=/dev/sdb loader=/boot/chain.b label=FreeBSD ¾ì¹ç¤Ë¤è¤Ã¤Æ¤Ï, Æó¤ÄÌܤΥǥ£¥¹¥¯¤òÀµ¤·¤¯µ¯Æ°¤¹¤ë¤¿¤á¤Ë FreeBSD ¥Ö¡¼¥È¥í¡¼¥À¤Ë BIOS ¥É¥é¥¤¥ÖÈÖ¹æ¤ò»ØÄꤹ¤ëɬÍפ¬¤¢¤ë¤«¤â¤·¤ì¤Þ¤»¤ó. Î㤨¤Ð, FreeBSD SCSI ¥Ç¥£¥¹¥¯¤¬ BIOS ¤Ë¤è¤Ã¤Æ BIOS ¥Ç¥£¥¹¥¯ 1 ¤È ¤·¤ÆÇ§¼±¤µ¤ì¤ë¤Î¤Ê¤é, FreeBSD ¤Î¥Ö¡¼¥È¥í¡¼¥À¤Î¥×¥í¥ó¥×¥È¤Ç, ¼¡¤Î ¤è¤¦¤Ë»ØÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹: Boot: 1:sd(0,a)/kernel FreeBSD 2.2.5 ¤ä¤½¤ì°Ê¹ß¤ÎÈǤǤÏ, ¥Ö¡¼¥È»þ¤Ë¾åµ­¤Î¤³¤È¤ò¹Ô¤Ê¤¦ ¤À¤±¤Ç¼«Æ°Åª¤Ë boot(8) ¤¬ÀßÄꤵ¤ì¤Þ¤¹. Linux+FreeBSD mini-HOWTO ¤¬ FreeBSD ¤È Linux ¤È¤òÁê¸ß¤Ë »È¤¨¤ë¤è¤¦¤Ë¤¹¤ë¤¿¤á¤Î¤è¤¤»²¹Í»ñÎÁ¤Ë¤Ê¤ë¤Ç¤·¤ç¤¦. FreeBSD ¤È Linux ¤ò BootEasy ¤«¤é¥Ö¡¼¥È¤¹¤ë¤Ë¤Ï? LILO ¤ò¥Þ¥¹¥¿¡¼¥Ö¡¼¥È¥ì¥³¡¼¥É (MBR) ¤Ç¤Ï¤Ê¤¯ Linux ¤Î¥Ö¡¼¥È ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤¯¤À¤µ¤¤. ¤³¤ì¤Ç BootEasy ¤«¤é LILO ¤ò¥Ö¡¼¥È¤Ç¤­¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹. Windows95 ¤È Linux ¤ò»ÈÍѤ·¤Æ¤¤¤ë¾ì¹ç¤Ï, ¤¤¤º¤ì¤Ë¤»¤è¸å¼Ô¤ÎÊý¤¬ ¤ª´«¤á¤Ç¤¹. Windows95 ¤òºÆ¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ëɬÍפˤ«¤é¤ì¤¿¤È¤­, Linux ¤ò¥Ö¡¼¥È²Äǽ¤ËÌ᤹¼ê³¤­¤¬´Êñ¤Ç¤¹¤à¤«¤é¤Ç¤¹ (Windows95 ¤ÏÊжþ¤Ê¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à¤Ç, ¥Þ¥¹¥¿¡¼¥Ö¡¼¥È¥ì¥³¡¼¥É (MBR) ¤«¤é¾¤Î¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à¤òÄɤ¤Ê§¤Ã¤Æ¤·¤Þ¤¦¤Î¤Ç¤¹). ¡Ö´í¸±³Ð¸ç¤ÎÀìÍÑ (dangerously dedicated) ¥Ç¥£¥¹¥¯¡×¤Ï·ò¹¯¤Ë°­¤¤¤Î? ¥¤¥ó¥¹¥È¡¼¥ëºî¶ÈÃæ, ¥Ï¡¼¥É¥Ç¥£¥¹¥¯¤Î¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤òÀÚ¤ëºÝ¤Ë 2 ¤Ä¤ÎÊýË¡¤òÁª¤Ö¤³¤È¤¬¤Ç¤­¤Þ¤¹. ¥Ç¥Õ¥©¥ë¥È¤ÎÊýË¡¤Ç¤Ï, fdisk ¤Î ¥Æ¡¼¥Ö¥ë¥¨¥ó¥È¥ê (FreeBSD ¤Ç¤Ï¥¹¥é¥¤¥¹¤È¸Æ¤Ð¤ì¤ë) ¤ò»È¤Ã¤Æ, ¼«¿È¤Î¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤ò»ÈÍѤ¹¤ë FreeBSD ¤Î¥¹¥é¥¤¥¹¤ò, Ʊ¤¸¥Þ¥·¥ó ¤Î¾¤Î¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à¤È¸ß´¹À­¤Î¤¢¤ë·Á¤Ë¤·¤Þ¤¹. ¤½¤ì¤ËÉտ路¤Æ, ¥Ö¡¼¥È¥»¥ì¥¯¥¿¤ò¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ì¤Ð, ¥Ç¥£¥¹¥¯¾å¤Î »ÈÍѲÄǽ¤Ê¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à¤òÀÚ¤êÂØ¤¨¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. ¤â¤¦°ì¤Ä¤ÎÊýË¡¤Ï¥Ç¥£¥¹¥¯Á´¤Æ¤ò FreeBSD ¤Ç»È¤¦¤È¤¤¤¦¤â¤Î¤Ç, ¤³¤Î ¾ì¹ç¤Û¤«¤Î¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à¤È¤Î¸ß´¹À­¤ò¹Íθ¤·¤Ê¤¤¤³¤È¤Ë ¤Ê¤ê¤Þ¤¹. ¤Ç¤Ï, ¤Ê¤¼¤³¤ì¤¬ ¡Ö´í¸±³Ð¸ç¤Î¡×¤È¸À¤ï¤ì¤ë¤Î¤Ç¤·¤ç¤¦? ¤³¤Î¥â¡¼¥É¤Î¥Ç¥£¥¹¥¯¤¬, Ä̾ï¤Î PC ¤Î¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤¬Í­¸ú¤Ê fdisk ¥Æ¡¼¥Ö¥ë¤È¸«¤Ê¤¹¾ðÊó¤ò»ý¤Ã¤Æ¤¤¤Ê¤¤¤«¤é¤Ç¤¹. ¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Î½ÐÍè Ç¡²¿¤Ë¤è¤ê¤Þ¤¹¤¬, ¤½¤Î¤è¤¦¤Ê¥Ç¥£¥¹¥¯¤òȯ¸«¤·¤¿¤È¤­, ·Ù¹ð¤ò ½Ð¤¹¤â¤Î¤â¤¢¤ê¤Þ¤¹. ¤Þ¤¿, ¤â¤Ã¤È°­¤¤¾ì¹ç, ³Îǧ¤âÄ̹ð¤â¤Ê¤·¤Ë BSD ¤Î¥Ö¡¼¥È¥¹¥È¥é¥Ã¥×¤Ë¥À¥á¡¼¥¸¤òÍ¿¤¨¤ë¤â¤Î¤â¤¢¤ë¤Ç¤·¤ç¤¦. ¤µ¤é¤Ë¤Ï, ¡Ö´í¸±³Ð¸ç¤Î¡×¥Ç¥£¥¹¥¯¥ì¥¤¥¢¥¦¥È¤Ï¿¿ô¤Î BIOS, AWARD (Î㤨¤Ð HP Netserver ¤ä Micronics ¥·¥¹¥Æ¥à, ¾¿¿ô¤Ç »ÈÍѤµ¤ì¤Æ¤¤¤¿) ¤ä Symbios/NCR (¿Íµ¤¤Î¤¢¤ëSCSI ¥³¥ó¥È¥í¡¼¥é 53C8xx ÍÑ) ¤Ê¤É¤òº®Í𤵤»¤ë¤³¤È¤¬Ê¬¤«¤Ã¤Æ¤¤¤Þ¤¹. ¤³¤ì¤Ï´°Á´¤Ê ¥ê¥¹¥È¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó. ¾¤Ë¤â¤Þ¤À¤Þ¤À¤¢¤ê¤Þ¤¹. ¤³¤Îº®Íð¤ÎÃû¸õ¤Ï, µ¯Æ°»þ¤Ë¥·¥¹¥Æ¥à¤¬¥í¥Ã¥¯¤¹¤ë¤È¤¤¤¦¤À¤±¤Ç¤Ê¤¯, FreeBSD ¤Î¥Ö¡¼¥È ¥¹¥È¥é¥Ã¥×¤¬¼«Ê¬¼«¿È¤ò¸«¤Ä¤±¤é¤ì¤Ê¤¤¤¿¤á¤Ëɽ¼¨¤¹¤ë "read error" ¤È¤¤¤¦¥á¥Ã¥»¡¼¥¸¤Ê¤É¤Ë¤â¸½¤ì¤ë¤³¤È¤Ç¤·¤ç¤¦. ¤½¤â¤½¤â¤¤¤Ã¤¿¤¤¤Ê¤¼¤³¤Î¥â¡¼¥É¤¬¤¢¤ë¤Î¤Ç¤·¤ç¤¦¤«? ¤³¤ì¤Ï ¤ï¤º¤«¤Ë¿ô¥­¥í¥Ð¥¤¥È¤Î¥Ç¥£¥¹¥¯ÍÆÎ̤òÀáÌ󤹤ë¤Î¤ß¤Ç¤¢¤ê, ¿·µ¬ ¥¤¥ó¥¹¥È¡¼¥ë¤Ç¼ÂºÝ¤ËÌäÂê¤òÀ¸¤º¤ë¤Î¤Ç¤¹. ¡Ö´í¸±³Ð¸ç¤Î¡×¥â¡¼¥É¤Î µ¯¸»¤Ï¿·¤·¤¤ FreeBSD ¥¤¥ó¥¹¥È¡¼¥é¤Ç¤Î, BIOS ¤«¤é¸«¤¨¤ë¥Ç¥£¥¹¥¯¤Î ¡Ö¥¸¥ª¥á¥È¥ê¡×¤ÎÃͤȥǥ£¥¹¥¯¼«¿È¤È¤ÎÀ°¹çÀ­¤È¤¤¤¦, ¤â¤Ã¤È¤â°ìÈÌŪ¤Ê ÌäÂê¤Î¤Ò¤È¤Ä¤ò²óÈò¤·¤¿¤¤¤È¤¤¤¦Í×µá¤¬ÇØ·Ê¤Ë¤¢¤ê¤Þ¤¹. ¡Ö¥¸¥ª¥á¥È¥ê¡×¤Ï»þÂåÃÙ¤ì¤Î³µÇ°¤Ç¤¹¤¬, ̤¤À¤Ë PC BIOS ¤È ¥Ç¥£¥¹¥¯¤Ø¤ÎÁê¸ßºîÍѤÎÃæ³Ë¤ò¤Ê¤·¤Æ¤¤¤Þ¤¹. FreeBSD ¤Î¥¤¥ó¥¹¥È¡¼¥é¤¬ ¥¹¥é¥¤¥¹¤òºî¤ë»þ, ¥Ç¥£¥¹¥¯¾å¤Î¥¹¥é¥¤¥¹¤ò BIOS ¤¬¸«¤Ä¤±¤é¤ì¤ë ¤è¤¦¤Ë¥¹¥é¥¤¥¹°ÌÃÖ¤ò¥Ç¥£¥¹¥¯¾å¤Ëµ­Ï¿¤·¤Þ¤¹. ¤½¤ì¤¬¸í¤Ã¤Æ¤¤¤ì¤Ð, µ¯Æ°¤Ç¤­¤Ê¤¯¤Ê¤Ã¤Æ¤·¤Þ¤¦¤Ç¤·¤ç¤¦. ¡Ö´í¸±³Ð¸ç¤Î¡×¥â¡¼¥É¤Ï¤³¤ì¤ò, ÌäÂê¤òñ½ã¤Ë¤¹¤ë¤³¤È¤Ç ²óÈò¤·¤è¤¦¤È¤·¤Þ¤¹. ¾õ¶·¤Ë¤è¤Ã¤Æ¤Ï¤³¤ì¤Ç¤¦¤Þ¤¯¤¤¤­¤Þ¤¹. ¤·¤«¤·¼¡Á±¤Îºö¤È¤·¤Æ»È¤ï¤ì¤Æ¤¤¤ë¤Ë²á¤®¤Þ¤»¤ó. ¤³¤ÎÌäÂê¤ò ²ò·è¤¹¤ë¤â¤Ã¤ÈÎɤ¤ÊýË¡¤Ï¤¤¤¯¤é¤Ç¤â¤¢¤ë¤Î¤Ç¤¹. ¤Ç¤Ï, ¥¤¥ó¥¹¥È¡¼¥ë»þ¤Ë¡Ö´í¸±³Ð¸ç¤ÎÀìÍѡץ⡼¥É¤¬É¬Í×¤Ë¤Ê¤ë ¾õ¶·¤ò²óÈò¤¹¤ë¤Ë¤Ï¤É¤¦¤¹¤ì¤Ð¤è¤¤¤Î¤Ç¤·¤ç¤¦¤«? ¤Þ¤º BIOS ¤¬Êó¹ð¤¹¤ë¥Ç¥£¥¹¥¯¤Î¥¸¥ª¥á¥È¥ê¤ÎÃͤò³Ð¤¨¤Æ¤ª¤¯¤³¤È¤«¤é ¤Ï¤¸¤á¤Þ¤·¤ç¤¦. ``boot:'' ¥×¥í¥ó¥×¥È¤Ç ``-v'' ¤ò»ØÄꤹ¤ë¤« ¥í¡¼¥À¤Ç ``boot -v'' ¤È»ØÄꤷ¤Æ, ¥Ö¡¼¥È»þ¤Ë¥«¡¼¥Í¥ë¤Ë¤³¤ÎÃͤò ɽ¼¨¤µ¤»¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. ¥¤¥ó¥¹¥È¡¼¥é¤¬µ¯Æ°¤¹¤ëľÁ°¤Ë, ¥«¡¼¥Í¥ë¤¬¥¸¥ª¥á¥È¥êÃͤΥꥹ¥È¤òɽ¼¨¤¹¤ë¤Ç¤·¤ç¤¦. ¥Ñ¥Ë¥Ã¥¯¤òµ¯¤³¤µ¤Ê¤¤¤Ç¤¯¤À¤µ¤¤. ¥¤¥ó¥¹¥È¡¼¥é¤¬µ¯Æ°¤¹¤ë¤Î¤òÂÔ¤Á, µÕ¥¹¥¯¥í¡¼¥ë¤Ç¤µ¤«¤Î¤Ü¤Ã¤ÆÃͤò³Îǧ¤·¤Æ¤¯¤À¤µ¤¤. ÉáÄÌ¤Ï BIOS ¥Ç¥£¥¹¥¯¥æ¥Ë¥Ã¥ÈÈÖ¹æ¤Ï, FreeBSD ¤¬¥Ç¥£¥¹¥¯¤ò¸¡½Ð¤¹¤ë½ç½ø¤ÈƱÍͤǤ¢¤ê, ºÇ½é¤Ë IDE, ¼¡¤Ë SCSI ¤È¤Ê¤ê¤Þ¤¹. ¥Ç¥£¥¹¥¯¤ò¥¹¥é¥¤¥·¥ó¥°¤¹¤ëºÝ¤Ë, FDISK ¤Î²èÌ̤Çɽ¼¨¤µ¤ì¤ë ¥Ç¥£¥¹¥¯¤Î¥¸¥ª¥á¥È¥ê¤¬Àµ¤·¤¤¤³¤È¤ò³Îǧ¤·¤Æ¤¯¤À¤µ¤¤ (BIOS ¤Î ÊÖ¤¹ÃͤȰìÃפ·¤¤¤ë¤«). Ëü°ì¤Á¤¬¤Ã¤Æ¤¤¤¿¤é ``g'' ¤ò²¡¤·¤Æ ½¤Àµ¤·¤Æ¤¯¤À¤µ¤¤. ¥Ç¥£¥¹¥¯¤Ë¤Þ¤Ã¤¿¤¯¤Ê¤Ë¤â¤Ê¤¤¾ì¹ç¤ä¾¤Î ¥·¥¹¥Æ¥à¤«¤é»ý¤Ã¤Æ¤­¤¿¥Ç¥£¥¹¥¯¤Î¾ì¹ç¤Ï, ¤³¤ì¤ò¤ª¤³¤Ê¤¦É¬Íפ¬ ¤¢¤ë¤«¤â¤·¤ì¤Þ¤»¤ó. ¤³¤ì¤Ï¤½¤Î¥Ç¥£¥¹¥¯¤«¤éµ¯Æ°¤µ¤»¤è¤¦¤È ¤·¤Æ¤¤¤ë¾ì¹ç¤Ë¤Î¤ßÌäÂê¤Ë¤Ê¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤. FreeBSD ¤Ï¤½¤Î¥Ç¥£¥¹¥¯¤ò¤¦¤Þ¤¤¶ñ¹ç¤¤¤Ë¾¤Î¥Ç¥£¥¹¥¯¤È¶èÊ̤·¤Æ ¤¯¤ì¤Þ¤¹. ¥Ç¥£¥¹¥¯¤Î¥¸¥ª¥á¥È¥ê¤Ë¤Ä¤¤¤Æ BIOS ¤È FreeBSD ´Ö¤Ç°ìÃפµ¤»¤ë ¤³¤È¤¬¤Ç¤­¤¿¤é, ¤³¤ÎÌäÂê¤Ï¤Û¤Ü²ò·è¤·¤¿¤È»×¤Ã¤Æ¤è¤¤¤Ç¤·¤ç¤¦. ¤½¤·¤Æ¤â¤Ï¤ä¡Ö´í¸±³Ð¸ç¤ÎÀìÍѡץ⡼¥É¤ÏɬÍפ¢¤ê¤Þ¤»¤ó. ¤·¤«¤·, ¤Þ¤À¥Ö¡¼¥È»þ¤Ë¶²ÉݤΠ``read error'' ¥á¥Ã¥»¡¼¥¸¤¬½Ð¤ë¤è¤¦¤Ç ¤¢¤ì¤Ð, ¤ªµ§¤ê¤òÊû¤²¤Æ¿·¤·¤¤¥Ç¥£¥¹¥¯¤òÇ㤤¤Þ¤·¤ç¤¦. ¤â¤¦¼º¤¦¤â¤Î¤Ï²¿¤â¤¢¤ê¤Þ¤»¤ó. ¡Ö´í¸±³Ð¸ç¤ÎÀìÍѥǥ£¥¹¥¯¡×¤òÄ̾ï¤Î PC ¤Ç¤Î»ÈÍÑË¡¤Ë Ì᤹¤Ë¤Ï, ¸¶Â§¤È¤·¤Æ 2 ¤ÄÊýË¡¤¬¤¢¤ê¤Þ¤¹. 1 ¤Ä¤Ï½½Ê¬¤Ê NULL ¥Ð¥¤¥È¤ò MBR ¤Ë½ñ¤­¹þ¤ó¤Ç, ¤­¤¿¤ë¤Ù¤­¥¤¥ó¥¹¥È¡¼¥é¤Ë¥Ç¥£¥¹¥¯ ¤Ï¤Þ¤Ã¤µ¤é¤À¤È»×¤¤¹þ¤Þ¤»¤ëÊýË¡¤Ç¤¹. Î㤨¤Ð, ¤³¤ó¤Ê´¶¤¸¤Ç¤¹. dd if=/dev/zero of=/dev/rsd0 count=15 ¤Þ¤¿, ¥Þ¥Ë¥å¥¢¥ë¤Ë¤Ï½ñ¤«¤ì¤Æ¤¤¤Ê¤¤ DOS ¤Î¡Öµ¡Ç½¡× fdisk /mbr ¤Ï, BSD ¥Ö¡¼¥È¥¹¥È¥é¥Ã¥×¤òÄɤ¤Ê§¤Ã¤Æ¤¯¤ì¤ë¾å¤Ë, ¿·¤·¤¤¥Þ¥¹¥¿¡¼¥Ö¡¼¥È¥ì¥³¡¼¥É¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤¯¤ì¤Þ¤¹. ¤É¤Î¤è¤¦¤Ë¤·¤¿¤é¥¹¥ï¥Ã¥×Îΰè¤òÁý¤ä¤»¤Þ¤¹¤«? ¥¹¥ï¥Ã¥×¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Î¥µ¥¤¥º¤òÁý¤ä¤¹¤Î¤¬ºÇÎɤÎÊýË¡¤Ç¤¹¤¬, Ê̤Υǥ£¥¹¥¯¤òÄɲ䷤ʤ¯¤ÆºÑ¤à¤È¤¤¤¦ÍøÅÀ¤Î¤¢¤ëÊýË¡¤¬¤¢¤ê¤Þ¤¹. ·Ð¸³¤«¤éÆÀ¤¿°ìÈÌŪ¤ÊÊýË¡¤Ï¥á¥¤¥ó¥á¥â¥ê¤Î 2ÇÜÄøÅ٤Υ¹¥ï¥Ã¥×Îΰè¤ò ¤È¤ë¤È¤¤¤¦¤â¤Î¤Ç¤¹. ¤·¤«¤·¤´¤¯¾®¤µ¤Ê¥á¥¤¥ó¥á¥â¥ê¤·¤«¤Ê¤¤¾ì¹ç¤Ï, ¤½¤ì°Ê¾å¤Î¥¹¥ï¥Ã¥×¤ò¹½À®¤·¤¿¤¤¤È»×¤¦¤Ç¤·¤ç¤¦. ¤Þ¤¿, ¾­Íè¤Î¥á¥â¥ê¤Î ¥¢¥Ã¥×¥°¥ì¡¼¥É¤ËÈ÷¤¨, ¸å¤Ç¥¹¥ï¥Ã¥×¤Î¹½À®¤òÊѹ¹¤¹¤ëɬÍפ¬¤Ê¤¤¤è¤¦¤Ë ½½Ê¬¤Ê¥¹¥ï¥Ã¥×¤ò¹½À®¤·¤Æ¤ª¤¯¤³¤È¤ÏÎɤ¤¹Í¤¨¤Ç¤¹. ¥¹¥ï¥Ã¥×¤òÊ̤Υǥ£¥¹¥¯¾å¤ËÄɲ乤뤳¤È¤Ï, ñ½ã¤ËƱ¤¸¥Ç¥£¥¹¥¯¾å ¤Ë¥¹¥ï¥Ã¥×¤òÄɲ乤ë¾ì¹ç¤è¤ê¤â¹â®¤Ëưºî¤¹¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹. Îã¤Ëµó¤²¤ì¤Ð, ¤¢¤ë¥Ç¥£¥¹¥¯¾å¤Î¥½¡¼¥¹¤ò¥³¥ó¥Ñ¥¤¥ë¤·¤Æ¤¤¤ë¤È¤·¤Æ, ¥¹¥ï¥Ã¥×¤¬Ê̤Υǥ£¥¹¥¯¾å¤Ëºî¤é¤ì¤Æ¤¤¤ì¤Ð, ¤³¤ì¤é¤¬Æ±¤¸¥Ç¥£¥¹¥¯¾å ¤Ë¤¢¤ë¾ì¹ç¤è¤ê¤âÃÇÁ³Â®¤¤¤Ç¤¹. SCSI ¥Ç¥£¥¹¥¯¤Î¾ì¹ç¤ÏÆÃ¤Ë¤½¤¦¤À¤È¸À¤¨¤Þ¤¹. ¥Ç¥£¥¹¥¯¤¬Ê£¿ô¤¢¤ë¾ì¹ç, ¥¹¥ï¥Ã¥×¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤ò³Æ¥Ç¥£¥¹¥¯¤Ë ºî¤ë¤è¤¦¤Ë¹½À®¤¹¤ë¤È, »ÈÍÑÃæ¤Î¥Ç¥£¥¹¥¯¾å¤Ë¥¹¥ï¥Ã¥×¤òÃÖ¤¤¤¿¤È¤·¤Æ¤â, Ä̾ï¤Î¾ì¹ç¤ÏÍ­±×¤Ç¤¹. °ìÈÌŪ¤Ë, ¥·¥¹¥Æ¥à¤Ë¤¢¤ë¹â®¤Ê¥Ç¥£¥¹¥¯¤Ë¤Ï ¥¹¥ï¥Ã¥×¤òºî¤ë¤è¤¦¤Ë¤¹¤Ù¤­¤Ç¤·¤ç¤¦. FreeBSD ¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç¥¤¥ó¥¿¡¼¥ê¡¼¥Ö¤Ê¥¹¥ï¥Ã¥×¥Ç¥Ð¥¤¥¹¤ò 4¤Ä¤Þ¤Ç ¥µ¥Ý¡¼¥È¤·¤Þ¤¹. Ê£¿ô¤Î¥¹¥ï¥Ã¥×¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤ò¹½À®¤¹¤ëºÝ¤Ë, ÉáÄ̤Ϥ½¤ì¤é¤òÂçÂÎÆ±¤¸¤¯¤é¤¤¤ÎÂ礭¤µ¤Ë¤·¤Æºî¤ê¤¿¤¤¤È¤³¤í¤Ç¤¹¤¬, ¥«¡¼¥Í¥ë¤Î¥³¥¢¥À¥ó¥×¤ò¼è¤ë¤Î¤ËÅԹ礬Îɤ¤¤è¤¦¤Ë¥á¥¤¥ó¤Î ¥¹¥ï¥Ã¥×¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤òÂ礭¤á¤Ë¤È¤ë¿Í¤â¤¤¤Þ¤¹. ¥á¥¤¥ó¤Î¥¹¥ï¥Ã¥×¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Ï¥«¡¼¥Í¥ë¤Î¥³¥¢¤¬¤È¤ì¤ë¤è¤¦¤Ë ºÇÄã¤Ç¤â¼Â¥á¥â¥ê¤ÈƱ¤¸Â礭¤µ¤Ë¤¹¤Ù¤­¤Ç¤·¤ç¤¦. IDE ¥É¥é¥¤¥Ö¤ÏƱ»þ¤ËƱ¤¸¥Á¥ã¥Í¥ë¾å¤ÎÊ£¿ô¤Î¥É¥é¥¤¥Ö¤Ë¤Ï ¥¢¥¯¥»¥¹¤Ç¤­¤Þ¤»¤ó (FreeBSD ¤Ï mode 4 ¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Ê¤¤¤Î¤Ç, ¤¹¤Ù¤Æ¤Î IDE ¥Ç¥£¥¹¥¯ I/O ¤Ï ``programmed'' ¤Ç¤¹). IDE ¤Î¾ì¹ç¤Ç¤¢¤Ã¤Æ¤â¤ä¤Ï¤ê, ¥¹¥ï¥Ã¥×¤òÊ̤Υϡ¼¥É¥Ç¥£¥¹¥¯¾å¤Ë ºîÀ®¤¹¤ë¤³¤È¤ò¤ª¤¹¤¹¤á¤·¤Þ¤¹. ¥É¥é¥¤¥Ö¤Ï¼Â¤Ë°Â¤¤¤â¤Î¤Ç¤¹, ¿´ÇÛ¤¹¤ë¤À¤±ÌµÂ̤Ǥ¹. NFS ±Û¤·¤Ë¥¹¥ï¥Ã¥Ô¥ó¥°¤µ¤»¤ëÊýË¡¤Ï, ¥¹¥ï¥Ã¥×ÍѤΠ¥í¡¼¥«¥ë¥Ç¥£¥¹¥¯¤¬Ìµ¤¤¾ì¹ç¤Ë¤Î¤ß¿ä¾©¤µ¤ì¤Þ¤¹. NFS ±Û¤·¤Î¥¹¥ï¥Ã¥Ô¥ó¥°¤ÏÃÙ¤¯, FreeBSD 4.x ¤è¤êÁ°¤Î¥ê¥ê¡¼¥¹¤Ç¤Ï ¸úΨ¤¬°­¤¤¤Î¤Ç¤¹¤¬, 4.0 °Ê¹ß¤Ç¤Ï¤½¤ì¤Ê¤ê¤Ë¹â®¤Ë¤Ê¤ê¤Þ¤¹. ¤½¤¦¤Ï¤¤¤Ã¤Æ¤â, ÍøÍѤǤ­¤ë¥Í¥Ã¥È¥ï¡¼¥¯¤ÎÂÀ¤µ¤ËÀ©¸Â¤µ¤ì¤Þ¤¹¤·, NFS ¥µ¡¼¥Ð¤Ë;·×¤ÊÉé²Ù¤¬¤«¤«¤ê¤Þ¤¹. ¤³¤ì¤Ï 64MB¤Î vn-swap ¤òºî¤ëÎã¤Ç¤¹ (¤³¤³¤Ç¤Ï /usr/swap0 ¤È¤·¤Þ¤¹¤¬, ¤â¤Á¤í¤ó¹¥¤­¤Ê̾Á°¤ò»È¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹). ¥«¡¼¥Í¥ë¤¬¼¡¤Î¹Ô¤ò´Þ¤à¥³¥ó¥Õ¥£¥°¥Õ¥¡¥¤¥ë¤«¤é¹½À®¤µ¤ì¤Æ¤¤¤ë¤«¤ò ³Îǧ¤·¤Þ¤¹. GENERIC ¥«¡¼¥Í¥ë¤Ë¤Ï, ¤³¤Î¹Ô¤¬´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹. pseudo-device vn 1 #Vnode driver (turns a file into a device) vn ¥Ç¥Ð¥¤¥¹¤òºî¤ê¤Þ¤¹ cd /dev sh ./MAKEDEV vn0 ¥¹¥ï¥Ã¥×¥Õ¥¡¥¤¥ë¤òºî¤ê¤Þ¤¹ (/usr/swap0) dd if=/dev/zero of=/usr/swap0 bs=1024k count=64 /etc/rc.conf ¤Ç¥¹¥ï¥Ã¥×¥Õ¥¡¥¤¥ë¤òÍ­¸ú²½¤µ¤»¤Þ¤¹ swapfile="/usr/swap0" # Set to name of swapfile if aux swapfile desired. ¥Þ¥·¥ó¤ò¥ê¥Ö¡¼¥È¤·¤Þ¤¹ ¥¹¥ï¥Ã¥×¥Õ¥¡¥¤¥ë¤ò¤¹¤°¤ËÍ­¸ú²½¤µ¤»¤¿¤¤¤Î¤Ê¤é°Ê²¼¤Î¤è¤¦¤Ë¥¿¥¤¥×¤·¤Þ¤¹ vnconfig -ce /dev/vn0c /usr/swap0 swap ¥×¥ê¥ó¥¿¤Î¥»¥Ã¥È¥¢¥Ã¥×¤ÇÌäÂ꤬¤¢¤ê¤Þ¤¹ ¥Ï¥ó¥É¥Ö¥Ã¥¯¤Î¥×¥ê¥ó¥¿¤ÎÉôʬ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤. õ¤·¤Æ¤¤¤ëÌäÂê¤Î¤Û¤È¤ó¤É¤¬½ñ¤«¤ì¤Æ¤¤¤ë¤Ï¤º¤Ç¤¹. ¥Ï¥ó¥É¥Ö¥Ã¥¯Ãæ¤Î¥×¥ê¥ó¥¿¤ÎÍøÍѤò¤´Í÷¤¯¤À¤µ¤¤. »ä¤Î¥·¥¹¥Æ¥à¤Î¥­¡¼¥Ü¡¼¥É¥Þ¥Ã¥Ô¥ó¥°¤Ï´Ö°ã¤Ã¤Æ¤¤¤Þ¤¹. kbdcontrol ¥×¥í¥°¥é¥à¤Ï, ¥­¡¼¥Ü¡¼¥É¥Þ¥Ã¥×¥Õ¥¡¥¤¥ë¤òÆÉ¤ß¹þ¤à¤¿¤á¤Î ¥ª¥×¥·¥ç¥ó¤òÈ÷¤¨¤Æ¤¤¤Þ¤¹. /usr/share/syscons/keymaps ¤Î²¼¤Ë¤¿¤¯¤µ¤ó¤Î¥Þ¥Ã¥×¥Õ¥¡¥¤¥ë¤¬¤¢¤ê¤Þ¤¹. ¥·¥¹¥Æ¥à¤Ë´ØÏ¢¤Î¤¢¤ë¤â¤Î¤ò°ì¤ÄÁª¤ó¤Ç, ¥í¡¼¥É¤·¤Æ¤¯¤À¤µ¤¤. kbdcontrol -l uk.iso /usr/share/syscons/keymaps ¤È³ÈÄ¥»Ò .kbd ¤Ï ¤É¤Á¤é¤â kbdcontrol ¤Ë¤è¤Ã¤Æ»ÈÍѤµ¤ì¤Þ¤¹. ¤³¤ì¤Ï /etc/sysconfig (¤Þ¤¿¤Ï rc.conf) Ãæ¤ÇÀßÄꤹ¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. ¤³¤Î¥Õ¥¡¥¤¥ëÃæ¤Ë¤¢¤ë¤½¤ì¤¾¤ì¤Î¥³¥á¥ó¥È¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤. 2.0.5R ¤ä¤½¤ì°Ê¹ß¤ÎÈǤǤÏ, ¥Æ¥­¥¹¥È¥Õ¥©¥ó¥È¤ä¥­¡¼¥Ü¡¼¥É¥Þ¥Ã¥Ô¥ó¥°¤Ë ´Ø·¸¤Î¤¢¤ë¤â¤Î¤Ï¤¹¤Ù¤Æ, /usr/share/examples/syscons ¤ÎÃæ¤Ë¤ª¤µ¤á¤é¤ì¤Æ¤¤¤Þ¤¹. ¸½ºß°Ê²¼¤Î¥Þ¥Ã¥Ô¥ó¥°¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤¹: Belgian ISO-8859-1 Brazilian 275 keyboard Codepage 850 Brazilian 275 keyboard ISO-8859-1 Danish Codepage 865 Danish ISO-8859-1 French ISO-8859-1 German Codepage 850 German ISO-8859-1 Italian ISO-8859-1 Japanese 106 Japanese 106x Latin American Norwegian ISO-8859-1 Polish ISO-8859-2 (programmer's) Russian Codepage 866 (alternative) Russian koi8-r (shift) Russian koi8-r Spanish ISO-8859-1 Swedish Codepage 850 Swedish ISO-8859-1 Swiss-German ISO-8859-1 United Kingdom Codepage 850 United Kingdom ISO-8859-1 United States of America ISO-8859-1 United States of America dvorak United States of America dvorakx ¥æ¡¼¥¶¥Ç¥£¥¹¥¯¥¯¥©¡¼¥¿¤¬Àµ¾ï¤Ëưºî¤·¤Æ¤¤¤Ê¤¤¤è¤¦¤Ç¤¹. '/' ¤Ë¤Ï¥Ç¥£¥¹¥¯¥¯¥©¡¼¥¿¤òÀßÄꤷ¤Ê¤¤¤Ç¤¯¤À¤µ¤¤, ¥¯¥©¡¼¥¿¥Õ¥¡¥¤¥ë¤¬ÃÖ¤«¤ì¤ë¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¾å¤Ë ¥¯¥©¡¼¥¿¥Õ¥¡¥¤¥ë¤òÃÖ¤¯¤è¤¦¤Ë¤·¤Æ¤¯¤À¤µ¤¤. ¤Ä¤Þ¤ê: FS QUOTA FILE /usr /usr/admin/quotas /home /home/admin/quotas ... ¤ï¤¿¤·¤Î ccd ¤Î²¿¤¬Å¬¹ç¤·¤Æ¤¤¤Ê¤¤ (Inappropriate) ¤Î¤Ç¤·¤ç¤¦? ¤³¤Î¤è¤¦¤Ê¾É¾õ¤¬¸½¤ì¤Þ¤¹: # ccdconfig -C ccdconfig: ioctl (CCDIOCSET): /dev/ccd0c: Inappropriate file type or format # Ä̾盧¤Î¸½¾Ý¤Ï¥¿¥¤¥×¤ò ' ̤»ÈÍÑ (unused)' ¤Î¤Þ¤ÞÊü¤Ã¤Æ¤ª¤«¤ì¤¿ 'c' ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤ò¤Ä¤Ê¤²¤è¤¦¤È¤·¤¿¾ì¹ç¤Ë¸½¤ì¤Þ¤¹. ccd ¥É¥é¥¤¥Ð¤Ï FS_BSDFFS ¥¿¥¤¥×¤ò¥Ù¡¼¥¹¤È¤¹¤ë¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤òÍ׵ᤷ¤Þ¤¹. ¤Ä¤Ê¤²¤è¤¦¤È¤·¤Æ¤¤¤ë¥Ç¥£¥¹¥¯¤Î¥Ç¥£¥¹¥¯¥é¥Ù¥ë¤òÊÔ½¸¤·¤Æ, ¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Î¥¿¥¤¥×¤ò '4.2BSD' ¤ËÊѹ¹¤·¤Æ¤¯¤À¤µ¤¤. ¤É¤¦¤·¤Æ¤ï¤¿¤·¤Î ccd ¤Î¥Ç¥£¥¹¥¯¥é¥Ù¥ë¤òÊѹ¹¤¹¤ë¤³¤È¤¬¤Ç¤­¤Ê¤¤¤Î¤Ç¤·¤ç¤¦? ¤³¤Î¤è¤¦¤Ê¾É¾õ¤¬¸½¤ì¤Þ¤¹: # disklabel ccd0 (it prints something sensible here, so let's try to edit it) # disklabel -e ccd0 (edit, save, quit) disklabel: ioctl DIOCWDINFO: No disk label on disk; use "disklabel -r" to install initial label # ¤³¤ì¤Ï ccd ¤«¤éÊÖ¤µ¤ì¤ë¥Ç¥£¥¹¥¯¥é¥Ù¥ë¤¬, ¼Â¤Ï¥Ç¥£¥¹¥¯¾å¤Ë¤Ï¤Ê¤¤ ¤Þ¤Ã¤¿¤¯¤Îµ¶¤Î¾ðÊó¤À¤«¤é¤Ç¤¹. ¤³¤ì¤òÌÀ¼¨Åª¤Ë½ñ¤­Ä¾¤¹¤³¤È¤Ç ÌäÂê¤ò²ò¾Ã¤Ç¤­¤Þ¤¹, ¤³¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹: # disklabel ccd0 > /tmp/disklabel.tmp # disklabel -Rr ccd0 /tmp/disklabel.tmp # disklabel -e ccd0 (this will work now) FreeBSD ¤Ï System V ¤Î IPC ¥×¥ê¥ß¥Æ¥£¥Ö¤ò¥µ¥Ý¡¼¥È¤·¤Þ¤¹¤«? ¤Ï¤¤. FreeBSD ¤Ï System-V ¥¹¥¿¥¤¥ë¤Î IPC ¤ò¥µ¥Ý¡¼¥È¤·¤Þ¤¹. ¶¦Í­¥á¥â¥ê, ¥á¥Ã¥»¡¼¥¸, ¥»¥Þ¥Õ¥©¤¬´Þ¤Þ¤ì¤Þ¤¹. °Ê²¼¤Î¹Ô¤ò ¥«¡¼¥Í¥ë¥³¥ó¥Õ¥£¥°¥Õ¥¡¥¤¥ë¤Ë²Ã¤¨¤ë¤È, ¥µ¥Ý¡¼¥È¤¬Í­¸ú¤Ë¤Ê¤ê¤Þ¤¹. options SYSVSHM options "SHMMAXPGS=64" # 256Kb of sharable memory options SYSVSEM # enable for semaphores options SYSVMSG # enable for messaging ¥³¥ó¥Ñ¥¤¥ë¤·¤Æ¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤¯¤À¤µ¤¤. Ãí: GIMP ¤ò¼Â¹Ô¤·¤¿¤¤¾ì¹ç¤Ï, SHMMAXPGS ¤ò 4096(16M) ¤¯¤é¤¤Çϼ¯¤Ç¤«¤¤¿ô»ú¤ËÁý¤ä¤¹É¬Íפ¬¤¢¤ê¤Þ¤¹. X11R6 ¤Î¶¦Í­¥á¥â¥ê¤Ï 256Kb ¤Ç½½Ê¬¤Ç¤¹. UUCP ¤Ç mail ¤òÇÛÁ÷¤¹¤ë¤Ë¤Ï sendmail ¤ò¤É¤¦»È¤¨¤Ð¤è¤¤¤Î¤Ç¤¹¤«? FreeBSD ¤ËÉÕ°¤·¤Æ¤¤¤ë sendmail ¤Ï, ¥¤¥ó¥¿¡¼¥Í¥Ã¥È¤ËľÀÜ ¤Ä¤Ê¤¬¤Ã¤Æ¤¤¤ë¥µ¥¤¥È¤Ë¤¢¤ï¤»¤ÆÀßÄꤷ¤Æ¤¢¤ê¤Þ¤¹. UUCP ·Ðͳ¤Ç mail ¤ò¸ò´¹¤·¤¿¤¤¾ì¹ç¤Ë¤Ï sendmail ¤ÎÀßÄê¥Õ¥¡¥¤¥ë¤ò²þ¤á¤Æ¥¤¥ó¥¹¥È¡¼¥ë ¤·¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó. /etc/sendmail.cf¤ò¼«Ê¬¤Î¼ê¤Ç²þ¤¤¹¤ë¤Î¤Ï½ã¿è¼çµÁ¼Ô¤Î ¤ä¤ë¤è¤¦¤Ê»ö¤Ç¤¹. sendmail¤Î version 8 ¤Ï m4 ¤Î¤è¤¦¤Ê ¥×¥ê¥×¥í¥»¥Ã¥µ¤òÄ̤·¤ÆÀßÄê¥Õ¥¡¥¤¥ë¤òÀ¸À®¤¹¤ë¿·¤·¤¤¥¢¥×¥í¡¼¥Á¤ò ¼è¤Ã¤Æ¤ª¤ê, ¤è¤êÃê¾Ý²½¤µ¤ì¤¿¥ì¥Ù¥ë¤ÎÀßÄê¥Õ¥¡¥¤¥ë¤òÊÔ½¸¤·¤Þ¤¹. °Ê²¼¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ÎÃæ¤Ë¤¢¤ëÀßÄê¥Õ¥¡¥¤¥ë¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤. /usr/src/usr.sbin/sendmail/cf ¤â¤·¤¹¤Ù¤Æ¤Î¥½¡¼¥¹¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ë¤Ï sendmail ¤ÎÀßÄê¥Ä¡¼¥ë¤Ï, Ê̤Πtar ¥Õ¥¡¥¤¥ë¤Ë¤Þ¤È¤á¤Æ¤¢¤ê¤Þ¤¹. CD-ROM ¤¬ mount ¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï, ¼¡¤Î¤è¤¦¤Ë¤·¤Æ¤¯¤À¤µ¤¤. cd /usr/src tar -xvzf /cdrom/dists/src/ssmailcf.aa ¤³¤ì¤Ï¤¿¤Ã¤¿¿ô 100Kbyte ¤Ç¤¹¤«¤é¿´Çۤʤ¤¤Ç¤·¤ç¤¦. cf ¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤¢¤ë README ¤Ë, m4 ¤Ç¤ÎÀßÄê¤Î´ðËÜŪ¤ÊÀâÌÀ¤¬¤¢¤ê¤Þ¤¹. UUCP ¤Ç¤ÎÇÛÁ÷¤Î¤¿¤á¤Ë¤Ï, mailertable ¤ò»ÈÍѤ¹¤ì¤Ð ¤è¤¤¤Ç¤·¤ç¤¦. ¤³¤ì¤Ë¤è¤Ã¤Æ, sendmail ¤¬ÇÛÁ÷Êý¼°¤ò·èÄꤹ¤ë¥Ç¡¼¥¿¥Ù¡¼¥¹¤ò ºîÀ®¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. ¤Þ¤º¤Ï¤¸¤á¤Ë, .mc ¥Õ¥¡¥¤¥ë¤òºîÀ®¤·¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó. /usr/src/usr.sbin/sendmail/cf/cf ¤È¤¤¤¦¥Ç¥£¥ì¥¯¥È¥ê¤¬, ¤³¤ì¤é¤Î¥Õ¥¡¥¤¥ë¤òºîÀ®¤¹¤ë¾ì½ê¤Ç¤¹. ´û¤Ë¤¤¤¯¤Ä¤«Î㤬¤¢¤ë¤È»×¤¤¤Þ¤¹. ¤³¤ì¤«¤éºîÀ®¤¹¤ë¥Õ¥¡¥¤¥ë¤Î̾Á°¤ò foo.mc ¤È¤¹¤ë¤È, sendmail.cf ¤òµá¤á¤Æ¤¤¤ë¤è¤¦¤Ê·Á¼°¤ËÊÑ´¹¤¹¤ë¤Ë¤Ï, ¼¡¤Î¤è¤¦¤Ë¤·¤Æ¤¯¤À¤µ¤¤. cd /usr/src/usr.sbin/sendmail/cf/cf make foo.cf cp foo.cf /etc/sendmail.cf ɸ½àŪ¤Ê .mc ¥Õ¥¡¥¤¥ë¤Ï¼¡¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹. include(`../m4/cf.m4') VERSIONID(`Your version number') OSTYPE(bsd4.4) FEATURE(nodns) FEATURE(nocanonify) FEATURE(mailertable) define(`UUCP_RELAY', your.uucp.relay) define(`UUCP_MAX_SIZE', 200000) MAILER(local) MAILER(smtp) MAILER(uucp) Cw your.alias.host.name Cw youruucpnodename.UUCP nodns ¤È nocanonify ¤È¤¤¤¦»ØÄê¤ò¤¹¤ë¤³¤È¤Ç, mail ¤ÎÇÛÁ÷¤Ë DNS ¤ò»ÈÍѤ·¤Ê¤¯¤Ê¤ê¤Þ¤¹. UUCP_RELAY ¤È¤¤¤¦ ¹Ô¤Ë´Ø¤·¤Æ¤Ï, ¤¢¤ëÍýͳ¤«¤éɬÍפǤ¹¤¬¤½¤ì¤Ïʹ¤«¤Ê¤¤¤Ç¤¯¤À¤µ¤¤. .UUCP¤Ç½ª¤ï¤ë²¾Áۥɥᥤ¥ó¤ò½èÍý¤¹¤ë¤³¤È¤Î¤Ç¤­¤ë¥¤¥ó¥¿¡¼¥Í¥Ã¥È¾å¤Ç¤Î ¥Û¥¹¥È̾¤ò¤³¤³¤Ë½ñ¤¤¤Æ¤¯¤À¤µ¤¤. Ä̾ï¤Ï, ISP ¤Î mail ¥ê¥ì¡¼¥Û¥¹¥È¤ò ½ñ¤¯¤³¤È¤Ë¤Ê¤ë¤È»×¤¤¤Þ¤¹. ¤³¤ì¤¬½ªÎ»¤·¤¿¤é, ¼¡¤Ë /etc/mailertable ¤È¤¤¤¦¥Õ¥¡¥¤¥ë ¤¬É¬ÍפǤ¹. ɸ½àŪ¤ÊÎã¤Ï¼¡¤Î¤È¤ª¤ê¤Ç¤¹. # # makemap hash /etc/mailertable.db < /etc/mailertable # horus.interface-business.de uucp-dom:horus .interface-business.de uucp-dom:if-bus interface-business.de uucp-dom:if-bus .heep.sax.de smtp8:%1 horus.UUCP uucp-dom:horus if-bus.UUCP uucp-dom:if-bus . uucp-dom:sax ¸«¤ì¤Ðʬ¤«¤ë¤è¤¦¤Ë, ¤³¤ì¤Ï¼Âºß¤¹¤ëÀßÄê¤Î¥Õ¥¡¥¤¥ë¤Ç¤¹. ¤Ï¤¸¤á¤Î 3 ¹Ô¤Ï¥É¥á¥¤¥ó̾¤Ç»ØÄꤵ¤ì¤¿¥á¡¼¥ë¤¬ default ¤Î·ÐÏ©¤ÇÇÛÁ÷¤µ¤ì¤º¤Ë, ``¶áÆ»'' ¤¹¤ë¤¿¤á¤Ë UUCP ¤ÇÎÙ¤ê¤Î¥µ¥¤¥È¤ËÁ÷¤ë¤¿¤á¤ÎÆÃÊ̤ʾõ¶·¤ò ½èÍý¤¹¤ë¤â¤Î¤Ç¤¹. ¼¡¤Î¹Ô¤Ï Ethernet ¤Ç¤Ä¤Ê¤¬¤Ã¤Æ¤¤¤ë¥í¡¼¥«¥ë¤Î¥É¥á¥¤¥ó¤ËÂФ·¤Æ¤Ï SMTP ¤ÇÁ÷¤ë¤¿¤á¤ÎÀßÄê¤Ç¤¹. ºÇ¸å¤Ë, UUCP ¤Ç¤ÎÎÙ¤ê¤Î¥µ¥¤¥È¤¬. UUCP ¤Ç½ª¤ï¤ë²¾Áۥɥᥤ¥ó¤Î½ñ¼°¤Ç »ØÄꤵ¤ì¤Æ¤ª¤ê, default ¤Î rule ¤ò ``uucp-neighbour!recipient'' ¤Ç¾å½ñ¤­¤¹¤ë¤¿¤á¤Î¤â¤Î¤Ç¤¹. °ìÈֺǸå¤Î¹Ô¤Ï¤¤¤Ä¤â¥É¥Ã¥È¤ò°ì¤Ä½ñ¤­¤Þ¤¹. ¤³¤ì¤Ï, ¤³¤³¤Þ¤Ç¤Î¹Ô¤Ç¥Þ¥Ã¥Á¤·¤Ê¤«¤Ã¤¿¤¹¤Ù¤Æ¤Î¥Û¥¹¥È¤Ë¥Þ¥Ã¥Á¤·, ¤³¤Î¥µ¥¤¥È¤«¤éÀ¤³¦¤Ë¸þ¤±¤Æ½Ð¤Æ¤¤¤¯¤¿¤á¤Î mail gateway ¤Ë UUCP ¤ÇÇÛÁ÷¤¹¤ë¤¿¤á¤Î¤â¤Î¤Ç¤¹. uucp-dom: ¤Ë³¤±¤Æ½ñ¤«¤ì¤Æ¤¤¤ë¥Î¡¼¥É̾¤Ï, uuname ¥³¥Þ¥ó¥É¤Ç»ØÄꤹ¤ë¤³¤È¤Ë¤è¤Ã¤Æ UUCP ¤ÇľÀÜÇÛÁ÷¤µ¤ì¤ëÀµ¤·¤¤¥Î¡¼¥É̾¤Ç¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó. ºÇ¸å¤Ë, ¤³¤Î¥Õ¥¡¥¤¥ë¤Ï»ÈÍѤ¹¤ëÁ°¤Ë DBM ¥Ç¡¼¥¿¥Ù¡¼¥¹¤Î¥Õ¥¡¥¤¥ë¤Ë ÊÑ´¹¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹. ¤³¤ì¤ò¤ª¤³¤Ê¤¦¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ï mailertable ¤ÎºÇ½é¤Î¥³¥á¥ó¥È¤Ë½ñ¤¤¤Æ¤¢¤ê¤Þ¤¹. mailertable ¤òÊѹ¹¤·¤¿»þ¤Ë¤Ï, ɬ¤º¤³¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤. ºÇ¸å¤Î¥Ò¥ó¥È¤Ç¤¹: ¤â¤·ÆÃÄê¤Î¥á¡¼¥ëÇÛÁ÷¤¬¤¦¤Þ¤¯ºîư¤¹¤ë¤«¤É¤¦¤« ³Î¤«¤á¤¿¤¤¾ì¹ç¤Ë¤Ï, sendmail ¤Î ¥ª¥×¥·¥ç¥ó¤ò »ÈÍѤ·¤Æ¤¯¤À¤µ¤¤. ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ë¤è¤Ã¤Æ sendmail ¤Ï ¥¢¥É¥ì¥¹¥Æ¥¹¥È¥â¡¼¥É¤Çµ¯Æ°¤·¤Þ¤¹. ``0 '' ¤Î¸å¤Ë ÇÛÁ÷¤·¤¿¤¤¥¢¥É¥ì¥¹¤ò½ñ¤¤¤Æ¤¯¤À¤µ¤¤. ºÇ¸å¤Î¹Ô¤Ë, ¼ÂºÝ¤Ë»ÈÍѤµ¤ì¤ë mail agent, ¤³¤Î mail agent ¤ÇÁ÷¤é¤ì¤ëÁ÷¿®Àè¤Î¥Û¥¹¥È, ¤½¤·¤Æ (¿ʬÊÑ´¹¤µ¤ì¤Æ¤¤¤ë) ¥¢¥É¥ì¥¹¤¬É½¼¨¤µ¤ì¤Þ¤¹. ¤³¤Î¥â¡¼¥É¤òÈ´¤±¤ë¤Ë¤Ï Control-D ¤ò²¡¤·¤Æ¤¯¤À¤µ¤¤. j@uriah 191% sendmail -bt ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter <ruleset> <address> > 0 foo@interface-business.de rewrite: ruleset 0 input: foo @ interface-business . de ... rewrite: ruleset 0 returns: $# uucp-dom $@ if-bus $: foo \ < @ interface-business . de > > ^D j@uriah 192% ¥À¥¤¥¢¥ë¥¢¥Ã¥×¤Ç¥¤¥ó¥¿¡¼¥Í¥Ã¥È¤ËÀܳ¤¹¤ë´Ä¶­¤Ç¥á¡¼¥ë¤ò¥»¥Ã¥È¥¢¥Ã¥×¤¹¤ë¤Ë¤Ï¤É¤¦¤ä¤ë¤Î? ÀÅŪ¤Ë IP ¥¢¥É¥ì¥¹¤¬³ä¤êÅö¤Æ¤é¤ì¤ë¾ì¹ç¤Ï, ¥Ç¥Õ¥©¥ë¥È¤Î¾õÂÖ¤ò Êѹ¹¤¹¤ëɬÍפϤ¢¤ê¤Þ¤»¤ó. ³ä¤êÅö¤Æ¤é¤ì¤¿Ì¾Á°¤ò¥Û¥¹¥È¥Í¡¼¥à¤È ¤¹¤ë¤À¤±¤Ç, sendmail ¤¬¸å¤Î¤³¤È¤ò°ú¤­¼õ¤±¤Æ¤¯¤ì¤Þ¤¹. ¥À¥¤¥¢¥ë¥¢¥Ã¥× ppp ¤ò¥¤¥ó¥¿¡¼¥Í¥Ã¥ÈÀܳ¤Ë»ÈÍѤ·, ưŪ¤Ë IP ¥¢¥É¥ì¥¹¤¬³ä¤êÅö¤Æ¤é¤ì¤ë¾ì¹ç¤Ï, ¥¤¥ó¥¿¡¼¥Í¥Ã¥È¥µ¡¼¥Ó¥¹¥×¥í¥Ð¥¤¥À (ISP) ¤Î¥á¡¼¥ë¥µ¡¼¥Ð¤Ë¥á¡¼¥ë¥Ü¥Ã¥¯¥¹¤¬¤¢¤ë¤Ï¤º¤Ç¤¹. ISP ¤Î¥É¥á¥¤¥ó ¤¬ myISP.com ¤Ç, ¤¢¤Ê¤¿¤Î¥æ¡¼¥¶Ì¾¤¬ user ¤À¤È²¾Äꤷ¤Þ¤¹. ¤Þ¤¿, ¤¢¤Ê¤¿¤¬¼«Ê¬¤Î¥Þ¥·¥ó¤ò bsd.home ¤È¸Æ¤ó¤Ç¤ª¤ê, ISP ¤¬ relay.myISP.com ¤ò¥á¡¼¥ë¥ê¥ì¡¼¤È¤·¤Æ»ÈÍѤǤ­¤ë¤È¸À¤Ã¤Æ¤¤¤ë¤È ¤·¤Þ¤·¤ç¤¦. ¥á¡¼¥ë¥Ü¥Ã¥¯¥¹¤«¤é¥á¡¼¥ë¤ò¼è¤Ã¤Æ¤¯¤ë¤¿¤á¤Ë¤Ï, retrieval (²ó¼ý) ¥¨¡¼¥¸¥§¥ó¥È¤ò¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹. Fetchmail ¤Ï ¿¼ï¿Íͤʥץí¥È¥³¥ë¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¤Î¤Ç¤ª´«¤á¤Ç¤¹. ISP ¤¬ »ÈÍѤ·¤Æ¤¤¤ë¤Î¤ÏÂçÄñ POP3 ¥×¥í¥È¥³¥ë¤Ç¤¹. ¥æ¡¼¥¶ ppp ¤ò»ÈÍѤ·¤Æ¤¤¤ë¾ì¹ç, /etc/ppp/ppp.linkup ¤Ë°Ê²¼¤Î¤è¤¦¤Ëµ­½Ò¤¹¤ë¤È, ¥¤¥ó¥¿¡¼¥Í¥Ã¥È¤È Àܳ¤¬´°Î»¤·¤¿»þÅÀ¤Ç¼«Æ°Åª¤Ë¥á¡¼¥ë¤ò¼èÆÀ¤¹¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹. MYADDR: !bg su user -c fetchmail non-local ¤Ê¥¢¥«¥¦¥ó¥È¤Ë¥á¡¼¥ë¤òÇÛÁ÷¤¹¤ë¤Î¤Ë sendmail ¤ò»ÈÍѤ·¤Æ¤¤¤ë¾ì¹ç (¸å½Ò), ¾å¤Ë¼¨¤·¤¿¥¨¥ó¥È¥ê¤Î¸å¤Ë !bg su user -c "sendmail -q" ¤òµ­½Ò¤·¤Þ¤¹. ¤³¤ì¤Ï¥Í¥Ã¥È¥ï¡¼¥¯Àܳ¤¬³ÎΩ¤·¤¿¤é¤¹¤°¤Ë sendmail ¤Ëί¤Ã¤Æ¤¤¤ë mailqueue ¤ò¶¯À©Åª¤Ë½èÍý¤µ¤»¤ë¤è¤¦¤Ë¤·¤Þ¤¹. ¤³¤ÎÎã¤Ç¤Ï, user ¤¬ bsd.home ¤Ë¥¢¥«¥¦¥ó¥È¤ò»ý¤Á, bsd.home ¾å¤Î user ¤Î¥Û¡¼¥à¥Ç¥£¥ì¥¯¥È¥ê¤Ë, °Ê²¼¤Î¤è¤¦¤Ê .fetchmailrc ¥Õ¥¡¥¤¥ë¤¬¤Ä¤¯¤é¤ì¤Æ¤¤¤ë¤³¤È¤òÁÛÄꤷ¤Æ¤¤¤Þ¤¹. poll myISP.com protocol pop3 fetchall pass MySecret; ¸À¤¦¤Þ¤Ç¤â¤Ê¤¯, ¤³¤Î¥Õ¥¡¥¤¥ë¤Ï user °Ê³°¤Î¥æ¡¼¥¶¤¬ÆÉ¤à¤³¤È¤¬ ½ÐÍè¤Ê¤¤¤è¤¦¤Ë¤·¤Ê¤¯¤Æ¤Ï¤Ê¤ê¤Þ¤»¤ó. ÆâÍÆ¤Ë¥Ñ¥¹¥ï¡¼¥É MySecret ¤¬ ´Þ¤Þ¤ì¤Æ¤¤¤ë¤«¤é¤Ç¤¹. Àµ¤·¤¤ from: ¥Ø¥Ã¥À¤ò¤Ä¤±¤Æ¥á¡¼¥ë¤òÁ÷¤ë¤¿¤á¤Ë¤Ï, sendmail ¤Ë user@bsd.home ¤Ç¤Ï¤Ê¤¯ user@myISP.com ¤ò»ÈÍѤ¹¤ë¤è¤¦¶µ¤¨¤ë ɬÍפ¬¤¢¤ê¤Þ¤¹. ¥á¡¼¥ë¤ò¤è¤êÁ᤯žÁ÷¤¹¤ë¤¿¤á¤Ë, Á´¤Æ¤Î¥á¡¼¥ë¤ò relay.myISP.com ¤ØÁ÷¤ë¤è¤¦¤Ë sendmail ¤Ë»Ø¼¨¤·¤Æ¤ª¤¯¤Î¤âÎɤ¤ ¤Ç¤·¤ç¤¦. ¾å¤ÎÍ×·ï¤òËþ¤¿¤¹¤Ë¤Ï, °Ê²¼¤Î¤è¤¦¤Ê .mc ¥Õ¥¡¥¤¥ë¤¬Å¬¤·¤Æ¤¤¤Þ¤¹. VERSIONID(`bsd.home.mc version 1.0') OSTYPE(bsd4.4)dnl FEATURE(nouucp)dnl MAILER(local)dnl MAILER(smtp)dnl Cwlocalhost Cwbsd.home MASQUERADE_AS(`myISP.com')dnl FEATURE(allmasquerade)dnl FEATURE(masquerade_envelope)dnl FEATURE(nocanonify)dnl FEATURE(nodns)dnl define(SMART_HOST, `relay.myISP.com') Dmbsd.home define(`confDOMAIN_NAME',`bsd.home')dnl define(`confDELIVERY_MODE', `deferred')dnl .mc ¥Õ¥¡¥¤¥ë¤«¤é sendmail.cf ¤Ø¤ÎÊÑ´¹ÊýË¡¤Ë¤Ä¤¤¤Æ¤Ï, Á°¤Î¥»¥¯¥·¥ç¥ó¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤. sendmail.cf ¤ò¹¹¿·¤·¤¿¸å¤Ë sendmail ¤ò¥ê¥¹¥¿¡¼¥È¤¹¤ë¤Î¤â¤ªËº¤ì¤Ê¤¯. ¤·¤Þ¤Ã¤¿! root ¤Î¥Ñ¥¹¥ï¡¼¥É¤ò˺¤ì¤Æ¤·¤Þ¤Ã¤¿! ¤¢¤ï¤Æ¤Ê¤¤¤Ç²¼¤µ¤¤! ñ¤Ë¥·¥¹¥Æ¥à¤òºÆµ¯Æ°¤·, ¥·¥ó¥°¥ë¥æ¡¼¥¶¥â¡¼¥É ¤Ë°Ü¤ë¤¿¤á¤Ë Boot: ¤Èɽ¼¨¤µ¤ì¤ë¥×¥í¥ó¥×¥È¤Ç -s ¤ÈÆþÎϤ·¤Æ¤¯¤À¤µ¤¤. ¤É¤Î¥·¥§¥ë¤ò»È¤¦¤Î¤«¤È¤¤¤¦¼ÁÌä¤Ë¤Ï, ENTER ¥­¡¼¤ò²¡¤·¤Æ¤¯¤À¤µ¤¤. # ¥×¥í¥ó¥×¥È¤Ë°Ü¤ë¤³¤È¤¬¤Ç¤­¤ë¤Ç¤·¤ç¤¦. mount -a ¤ÈÆþÎÏ ¤·¤Æ, root ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤òÆÉ¤ß½ñ¤­¤Ç¤­¤ë¤è¤¦¤Ë¥Þ¥¦¥ó¥È¤·Ä¾¤·¤¿¸å, passwd root ¤ÈÆþÎϤ·¤Æ root ¤Î¥Ñ¥¹¥ï¡¼¥É¤òÀßÄꤷľ¤·¤Æ²¼¤µ¤¤. ¤½¤Î¸å, exit ¤ÈÆþÎϤ¹¤ì¤Ð, ¥Ö¡¼¥È¤¬Â³¤±¤é¤ì¤Þ¤¹. Control-Alt-Delete ¤Ç¥·¥¹¥Æ¥à¤¬¥ê¥Ö¡¼¥È¤·¤Ê¤¤¤è¤¦¤Ë¤¹¤ë¤Ë¤Ï¤É¤¦¤¹¤ì¤Ð¤¤¤¤? ¥³¥ó¥½¡¼¥ë¤Ç»È¤Ã¤Æ¤¤¤ë¥­¡¼¥Þ¥Ã¥×¤òÊÔ½¸¤·¤Æ, boot ¤È¤¤¤¦ ¥­¡¼¥ï¡¼¥É¤ò nop ¤ËÃÖ¤­´¹¤¨¤Æ²¼¤µ¤¤. ¥Ç¥Õ¥©¥ë¥È¥­¡¼¥Þ¥Ã¥×¤Ï, /usr/share/syscons/keymaps/us.iso.kbd ¤Ë¤¢¤ê¤Þ¤¹. ¤½¤Î Êѹ¹¤òÈ¿±Ç¤µ¤»¤è¤¦¤È¤·¤Æ, ¤³¤Î¥­¡¼¥Þ¥Ã¥×¤Î¥í¡¼¥É¤òÌÀ¼¨Åª¤Ë¹Ô¤Ê¤¦ ¤¿¤á¤Ë, /etc/rc.conf ¤ò¼Â¹Ô¤¹¤Ù¤­¤«¤â¤·¤ì¤Þ¤»¤ó. ¤â¤Á¤í¤ó ¾¤Î¹ñ¤Î¥­¡¼¥Þ¥Ã¥×¤ò»È¤Ã¤Æ¤¤¤ë¤Î¤Ç¤¢¤ì¤Ð, Âå¤ï¤ê¤Ë¤½¤Î¥­¡¼¥Þ¥Ã¥× ¥Õ¥¡¥¤¥ë¤òÊÔ½¸¤·¤Æ²¼¤µ¤¤. DOS ¤Î¥Æ¥­¥¹¥È¥Õ¥¡¥¤¥ë¤ò UNIX ¤Î¥Æ¥­¥¹¥È¥Õ¥¡¥¤¥ë¤ËÀ°·Á¤¹¤ë¤Ë¤Ï¤É¤¦¤¹¤ì¤Ð¤¤¤¤? ñ¤Ë¼¡¤Î perl ¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤: perl -i.bak -npe 's/\r\n/\n/g' file ... file ¤ÎÉôʬ¤Ë¤Ï½èÍý¤¹¤ë¥Õ¥¡¥¤¥ë¤ò»ØÄꤷ¤Æ²¼¤µ¤¤. À°·Á¸å¤Î¥Õ¥¡¥¤¥ë¤Ï ¸µ¤Î¥Õ¥¡¥¤¥ë̾¤ÇºîÀ®¤µ¤ì, À°·ÁÁ°¤Î¥Õ¥¡¥¤¥ë¤Ï¥Ð¥Ã¥¯¥¢¥Ã¥×¤È¤·¤Æ¸µ¤Î ¥Õ¥¡¥¤¥ë̾¤ÎËöÈø¤Ë³ÈÄ¥»Ò .bak ¤Î¤Ä¤±¤é¤ì¤¿Ì¾Á°¤ÇºîÀ®¤µ¤ì¤Þ¤¹. ¤¢¤ë¤¤¤Ï tr(1) ¥³¥Þ¥ó¥É¤ò»È¤¦¤³¤È¤â¤Ç¤­¤Þ¤¹: tr -d '\r' < dos-text-file > unix-file dos-text-file ¤Ï DOS ·Á¼°¤Î¥Æ¥¹¥È¥Õ¥¡¥¤¥ë, unix-file ¤Ë¤ÏÊÑ´¹¤µ¤ì¤¿½ÐÎϤ¬³ÊǼ¤µ¤ì¤Þ¤¹. perl ¤ò»È¤¦¤è¤ê¤Û¤ó¤Î¤Á¤ç¤Ã¤Ô¤ê®¤¯¤Ê¤ê¤Þ¤¹. ̾Á°¤Ç»ØÄꤷ¤Æ¥×¥í¥»¥¹¤Ë¥·¥°¥Ê¥ë¤òÁ÷¤ë¤Ë¤Ï¤É¤¦¤¹¤ì¤Ð¤¤¤¤? killall(1) ¤ò »È¤Ã¤Æ²¼¤µ¤¤. su ¤¬ not in root's ACL ¤È¸À¤Ã¤Æ»ä¤òǺ¤Þ¤»¤ë¤Î¤Ï¤Ê¤¼? Kerberos ¤Îǧ¾Ú¥·¥¹¥Æ¥à¤«¤é¤¯¤ë¥¨¥é¡¼¤Ç¤¹. ¤³¤ÎÌäÂê¤ÏÃ×̿Ū¤Ê¤â¤Î ¤Ç¤Ï¤Ê¤¯, ¤¦¤Ã¤È¤ª¤·¤¤¤È¤¤¤Ã¤¿¤â¤Î¤Ç¤¹. su ¤Ë -K ¥ª¥×¥·¥ç¥ó¤ò¤Ä¤±¤Æ µ¯Æ°¤¹¤ë¤«, ¼¡¤Î¼ÁÌä¤ÇÀâÌÀ¤µ¤ì¤Æ¤¤¤ëÊýË¡¤Ç Kerberos ¤ò¥¢¥ó¥¤¥ó¥¹¥È¡¼¥ë ¤·¤Æ²¼¤µ¤¤. Kerberos ¤ò¥¢¥ó¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤Ë¤Ï¤É¤¦¤¹¤ì¤Ð¤¤¤¤¤Î? ¥·¥¹¥Æ¥à¤«¤é Kerberos ¤òºï½ü¤¹¤ë¤Ë¤Ï, ¤¢¤Ê¤¿¤Îư¤«¤·¤Æ¤¤¤ë¥ê¥ê¡¼¥¹¤Î bin ¥Ç¥£¥¹¥È¥ê¥Ó¥å¡¼¥·¥ç¥ó¤òºÆ¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ²¼¤µ¤¤. ¤â¤· CDROM ¤ò »ý¤Ã¤Æ¤¤¤ë¤Î¤Ê¤é, ¤½¤Î CDROM ¤ò¥Þ¥¦¥ó¥È (¥Þ¥¦¥ó¥È¥Ý¥¤¥ó¥È¤Ï /cdrom ¤È ²¾Äê) ¤·¤Æ, ¼¡¤Î¤è¤¦¤ËÆþÎϤ·¤Æ²¼¤µ¤¤. cd /cdrom/bin ./install.sh µ¿»÷¥¿¡¼¥ß¥Ê¥ë¤òÄɲ乤ë¤Ë¤Ï? telnet, ssh, X, screen ¤ò¤¿¤¯¤µ¤óÍøÍѤµ¤ì¤Æ¤¤¤ë¾ì¹ç, µ¿»÷¥¿¡¼¥ß¥Ê¥ë¤¬Â­¤ê¤Ê¤¯¤Ê¤Ã¤Æ¤¤¤ë²ÄǽÀ­¤¬¤¢¤ê¤Þ¤¹. ¤³¤ì¤òÁý¤ä¤¹¤Ë¤Ï¼¡¤Î¤è¤¦¤Ë¤·¤Þ¤¹: ¼¡¤Î¹Ô¤ò¥«¡¼¥Í¥ë¥³¥ó¥Õ¥£¥°¥ì¡¼¥·¥ç¥ó¥Õ¥¡¥¤¥ë¤ËÄɲä·¤Æ pseudo-device pty 256 ¿·¤¿¤Ë¥«¡¼¥Í¥ë¤òºî¤ê¥¤¥ó¥¹¥È¡¼¥ë¤·¤Þ¤¹. ¼¡¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Æ # cd /dev # ./MAKEDEV pty{1,2,3,4,5,6,7} ¿·¤¿¤Ê¥¿¡¼¥ß¥Ê¥ëÍѤΠ256 ¸Ä¤Î¥Ç¥Ð¥¤¥¹¥Î¡¼¥É¤òºî¤ê¤Þ¤¹. /etc/ttys ¤òÊÔ½¸¤· 256 ¸Ä¤Î¥¿¡¼¥ß¥Ê¥ë¤´¤È¤ÎÄêµÁ¤òÄɲä·¤Þ¤¹. ´û¸¤Î¥¨¥ó¥È¥ê¡¼¤Î·Á¼°¤Ë¤¢¤ï¤»¤ëɬÍפ¬¤¢¤ë¤Ç¤·¤ç¤¦. Î㤨¤Ð¤³¤ó¤Ê´¶¤¸¤Ç¤¹. ttyqc none network Àµµ¬É½¸½¤ò»È¤Ã¤¿»ØÄê¤Ï tty[pqrsPQRS][0-9a-v] ¤È¤Ê¤ê¤Þ¤¹. ¿·¤·¤¤¥«¡¼¥Í¥ë¤Ç¥·¥¹¥Æ¥à¤ò¥ê¥Ö¡¼¥È¤¹¤ë¤È´°Î»¤Ç¤¹. ¥ê¥Ö¡¼¥È¤»¤º¤Ë¤â¤¦°ìÅÙ /etc/rc.conf ¤òÆÉ¤ß¹þ¤ó¤Ç /etc/rc ¤ò³«»Ï¤µ¤»¤ë¤Ë¤Ï? ¥·¥ó¥°¥ë¥æ¡¼¥¶¥â¡¼¥É¤Ë°Ü¹Ô¤·¤Æ¡¢¥Þ¥ë¥Á¥æ¡¼¥¶¥â¡¼¥É¤ËÌá¤Ã¤Æ¤¯¤À¤µ¤¤. ¥³¥ó¥½¡¼¥ë¤Ç¼¡¤Î¤è¤¦¤Ë¼Â¹Ô¤·¤Þ¤¹: # shutdown now (Ãí: -r ¤ä -h ¤ÏÉÕ¤±¤Þ¤»¤ó) # return # exit X Window System ¤È²¾ÁÛ¥³¥ó¥½¡¼¥ë Ìõ: º£Ìî ¸µÇ· <motoyuki@jp.FreeBSD.ORG>.13 November 1997. X ¤òư¤«¤·¤¿¤¤¤Î¤Ç¤¹¤¬, ¤É¤¦¤¹¤ì¤Ð¤¤¤¤¤Î¤Ç¤¹¤«? ¤â¤Ã¤È¤â´Êñ¤ÊÊýË¡¤Ï (ÌõÃí: FreeBSD ¤Î) ¥¤¥ó¥¹¥È¡¼¥ë¤ÎºÝ¤Ë X ¤òư¤«¤¹¤³¤È¤ò»ØÄꤹ¤ë¤À¤±¤Ç¤¹. ¤½¤ì¤«¤é xf86config ¥Ä¡¼¥ë¤Î¥É¥­¥å¥á¥ó¥È¤òÆÉ¤ó¤Ç¤³¤ì¤Ë½¾¤Ã¤Æ¤¯¤À¤µ¤¤. ¤³¤Î¥Ä¡¼¥ë¤Ï¤¢¤Ê¤¿¤Î¥°¥é¥Õ¥£¥Ã¥¯¥«¡¼¥É¤ä¥Þ¥¦¥¹¤Ê¤É¤Ë¹ç¤ï¤»¤Æ XFree86(tm) ¤ÎÀßÄê¤ò¹Ô¤¦¤Î¤ò½õ¤±¤Æ¤¯¤ì¤Þ¤¹. Xaccel ¥µ¡¼¥Ð¡¼¤Ë¤Ä¤¤¤ÆÄ´¤Ù¤Æ¤ß¤ë¤Î¤â¤¤¤¤¤Ç¤·¤ç¤¦. ¾Ü¤·¤¯¤Ï ¤« ¤ò¤´Í÷¤¯¤À¤µ¤¤. »ä¤Î¥Þ¥¦¥¹¤Ï¤Ê¤¼ X ¤Çư¤«¤Ê¤¤¤Î¤Ç¤·¤ç¤¦¤«? syscons (¥Ç¥Õ¥©¥ë¥È¤Î¥³¥ó¥½¡¼¥ë¥É¥é¥¤¥Ð) ¤ò»È¤Ã¤Æ¤¤¤ë¤Î¤Ç¤¢¤ì¤Ð, ¤½¤ì¤¾¤ì¤Î²¾ÁÛ¥¹¥¯¥ê¡¼¥ó¤Ç¥Þ¥¦¥¹¥Ý¥¤¥ó¥¿¡¼¤ò¥µ¥Ý¡¼¥È¤¹¤ë¤è¤¦¤Ë FreeBSD ¤òÀßÄê¤Ç¤­¤Þ¤¹. X ¤Ç¤Î¥Þ¥¦¥¹¤Î¾×ÆÍ¤òÈò¤±¤ë¤¿¤á¤Ë, syscons ¤Ï ``/dev/sysmouse'' ¤È¤¤¤¦²¾ÁۥǥХ¤¥¹¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹. ËÜʪ¤Î¥Þ¥¦¥¹¥Ç¥Ð¥¤¥¹¤«¤éÆþÎϤµ¤ì¤¿Á´¤Æ¤Î¥Þ¥¦¥¹¤Î¥¤¥Ù¥ó¥È¤Ï sysmouse ¥Ç¥Ð¥¤¥¹¤Ø MouseSystems ¥×¥í¥È¥³¥ë¤Ç½ÐÎϤµ¤ì¤Þ¤¹. °ì¤Ä°Ê¾å¤Î²¾ÁÛ¥³¥ó¥½¡¼¥ë¤È X ¤Î ξÊý¤Ç ¥Þ¥¦¥¹¤ò»È¤¤¤¿¤¤¾ì¹ç, °Ê²¼¤Î¤è¤¦¤ËÀßÄꤹ¤ë¤³¤È¤ò¤ª´«¤á¤·¤Þ¤¹: /etc/rc.conf: moused_type=ps/2 # ¼ÂºÝ¤Î¥Þ¥¦¥¹¤Î¥¿¥¤¥× moused_port=/dev/psm0 # ¼ÂºÝ¤Î¥Þ¥¦¥¹¥Ý¡¼¥È moused_flags= /etc/XF86Config Section Pointer Protocol "MouseSystems" Device "/dev/sysmouse" ..... X ¤Ç ``/dev/mouse'' ¤ò»È¤¦¤Î¤ò¹¥¤à¿Í¤â¤¤¤Þ¤¹. ¤³¤Î¾ì¹ç¤Ï, ``/dev/mouse'' ¤ò /dev/sysmouse ¤Ë¥ê¥ó¥¯¤·¤Æ¤¯¤À¤µ¤¤: # cd /dev # rm -f mouse # ln -s sysmouse mouse X ¤Î¥á¥Ë¥å¡¼¤ä¥À¥¤¥¢¥í¥°¥Ü¥Ã¥¯¥¹¤¬¤¦¤Þ¤¯Æ°¤­¤Þ¤»¤ó. Num Lock ¥­¡¼¤ò¥ª¥Õ¤Ë¤·¤Æ¤¯¤À¤µ¤¤. Num Lock ¥­¡¼¤¬¥Ç¥Õ¥©¥ë¥È¤Ç¥Ö¡¼¥È»þ¤Ë¥ª¥ó¤Ë¤Ê¤ë¾ì¹ç¤Ï, XF86Config ¥Õ¥¡¥¤¥ë¤Î ``Keyboard'' ¥»¥¯¥·¥ç¥ó¤Ë °Ê²¼¤Î¹Ô¤ò²Ã¤¨¤Æ¤â¤¤¤¤¤Ç¤·¤ç¤¦. # Let the server do the NumLock processing. This should only be # required when using pre-R6 clients ServerNumLock ÌõÃí: ¤³¤ÎÌäÂê¤Ï XFree86 3.2 °Ê¹ß¤Ç¤Ï²ò·è¤·¤Æ¤¤¤Þ¤¹. ²¾ÁÛ¥³¥ó¥½¡¼¥ë¤È¤Ï²¿¤Ç¤¹¤«? ¤É¤¦¤ä¤Ã¤¿¤é»È¤¨¤Þ¤¹¤«? ²¾ÁÛ¥³¥ó¥½¡¼¥ë¤Ï, ´Êñ¤Ë¤¤¤¦¤È, ¥Í¥Ã¥È¥ï¡¼¥¯¤ä X ¤òư¤«¤¹¤Ê¤É¤ÎÊ£»¨¤Ê¤³¤È¤ò¤ª¤³¤Ê¤ï¤º¤Ë, ¤¤¤¯¤Ä¤«¤Î¥»¥Ã¥·¥ç¥ó¤ò Ʊ»þ¤Ë¤ª¤³¤Ê¤¦¤³¤È¤ò²Äǽ¤Ë¤·¤Þ¤¹. ¥·¥¹¥Æ¥à¤Î¥¹¥¿¡¼¥È»þ¤Ë¤Ï, ¥Ö¡¼¥È¥á¥Ã¥»¡¼¥¸¤¬½Ð¤¿¸å¤Ë login ¥×¥í¥ó¥×¥È¤¬É½¼¨¤µ¤ì¤Þ¤¹. ¤½¤³¤Ç login ¥Í¡¼¥à¤È¥Ñ¥¹¥ï¡¼¥É¤ò ÆþÎϤ¹¤ë¤È 1 ÈÖÌܤβ¾ÁÛ¥³¥ó¥½¡¼¥ë¾å¤Ç»Å»ö (¤¢¤ë¤¤¤ÏÍ·¤Ó) ¤ò »Ï¤á¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. ¾¤Î¥»¥Ã¥·¥ç¥ó¤ò»Ï¤á¤¿¤¤¾ì¹ç¤â¤¢¤ë¤Ç¤·¤ç¤¦. ¤½¤ì¤Ïư¤«¤·¤Æ¤¤¤ë ¥×¥í¥°¥é¥à¤Î¥É¥­¥å¥á¥ó¥È¤ò¸«¤¿¤ê, FTP ¤ÎžÁ÷¤¬½ª¤ï¤ë¤Þ¤ÇÂÔ¤Ä´Ö ¥á¡¼¥ë¤òÆÉ¤â¤¦¤È¤·¤¿¤ê¤¹¤ë¤³¤È¤«¤â¤·¤ì¤Þ¤»¤ó. Alt-F2 ¤ò²¡¤¹ (Alt ¥­¡¼¤ò²¡¤·¤Ê¤¬¤é F2 ¥­¡¼¤ò²¡¤¹) ¤È 2 ÈÖÌܤΠ¡Ö²¾ÁÛ¥³¥ó¥½¡¼¥ë¡×¤Ç login ¥×¥í¥ó¥×¥È¤¬ÂÔµ¡¤·¤Æ¤¤¤ë¤³¤È¤¬ ¤ï¤«¤ê¤Þ¤¹. ºÇ½é¤Î¥»¥Ã¥·¥ç¥ó¤ËÌá¤ê¤¿¤¤¤È¤­¤Ï Alt-F1 ¤ò²¡¤·¤Þ¤¹. ɸ½à¤Î FreeBSD¥¤¥ó¥¹¥È¡¼¥ë¤Ç¤Ï 3 Ëç¤Î²¾ÁÛ¥³¥ó¥½¡¼¥ë¤¬ Í­¸ú¤Ë¤Ê¤Ã¤Æ¤¤¤Æ, Alt-F1, Alt-F2, Alt-F3 ¤Ç²¾ÁÛ¥³¥ó¥½¡¼¥ë´Ö¤Î ÀÚÂØ¤¨¤ò¤ª¤³¤Ê¤¤¤Þ¤¹. ¤è¤ê¿¤¯¤Î²¾ÁÛ¥³¥ó¥½¡¼¥ë¤òÍ­¸ú¤Ë¤¹¤ë¤Ë¤Ï, /etc/ttys ¤òÊÔ½¸¤·¤Æ ``Virtual terminals'' ¤Î¥³¥á¥ó¥È¹Ô¤Î¸å¤Ë ``ttyv4'' ¤«¤é ``ttyvc'' ¤Î¼êÁ°¤Þ¤Ç¤Î¥¨¥ó¥È¥ê¤ò²Ã¤¨¤Þ¤¹ (°Ê²¼¤ÎÎã¤ÏÀèÆ¬¤Ë¤Ï¶õÇò¤ÏÆþ¤ê¤Þ¤»¤ó) : # /etc/ttys ¤Ë¤Ï ttyv3 ¤¬¤¢¤ê¤Þ¤¹¤Î¤Ç # "off" ¤ò "on" ¤ËÊѹ¹¤·¤Þ¤¹. ttyv3 "/usr/libexec/getty Pc" cons25 on secure ttyv4 "/usr/libexec/getty Pc" cons25 on secure ttyv5 "/usr/libexec/getty Pc" cons25 on secure ttyv6 "/usr/libexec/getty Pc" cons25 on secure ttyv7 "/usr/libexec/getty Pc" cons25 on secure ttyv8 "/usr/libexec/getty Pc" cons25 on secure ttyv9 "/usr/libexec/getty Pc" cons25 on secure ttyva "/usr/libexec/getty Pc" cons25 on secure ttyvb "/usr/libexec/getty Pc" cons25 on secure ¿¤¯¤¹¤ë¤«¾¯¤Ê¤¯¤¹¤ë¤«¤Ï¤¢¤Ê¤¿¤Î¼«Í³¤Ç¤¹. ¤è¤ê¿¤¯¤Î²¾ÁÛ ¥¿¡¼¥ß¥Ê¥ë¤ò»È¤¦¤È¤è¤ê¿¤¯¤Î¥ê¥½¡¼¥¹¤ò»È¤¦¤³¤È¤Ë¤Ê¤ê¤Þ¤¹. 8MB °Ê²¼¤Î¥á¥â¥ê¤·¤«¤Ê¤¤¾ì¹ç¤Ï¤³¤ì¤Ï½ÅÍפÊÌäÂê¤Ç¤¹. ¤â¤·É¬Íפ¬¤¢¤ì¤Ð ``secure'' ¤ò ``insecure'' ¤ËÊѹ¹¤·¤Æ¤¯¤À¤µ¤¤. ½ÅÍ× X ¤ò»È¤¤¤¿¤¤¤Î¤Ç¤¢¤ì¤Ð, ºÇÄã°ì¤Ä¤Î²¾ÁÛ¥¿¡¼¥ß¥Ê¥ë (¤Î¥¨¥ó¥È¥ê) ¤ò»È¤ï¤º¤Ë»Ä¤·¤Æ¤ª¤¯¤«, off ¤Ë¤·¤Æ¤ª¤¯É¬Íפ¬¤¢¤ê¤Þ¤¹. ¤Ä¤Þ¤ê, 12 ¸Ä¤Î Alt-¥Õ¥¡¥ó¥¯¥·¥ç¥ó¥­¡¼Á´¤Æ¤Ç¥í¥°¥¤¥ó¥×¥í¥ó¥×¥È¤ò ½Ð¤·¤¿¤¤¤Î¤Ê¤é¤ÐÉÔ±¿¤Ë¤â X ¤Ï»È¤¨¤Ê¤¤, ¤È¤¤¤¦¤³¤È¤Ç¤¹. Ʊ¤¸¥Þ¥·¥ó¤Ç X ¥µ¡¼¥Ð¡¼¤âư¤«¤·¤¿¤¤¤Î¤Ê¤é¤Ð 11 ¸Ä¤·¤«»È¤¨¤Þ¤»¤ó. ²¾ÁÛ¥³¥ó¥½¡¼¥ë¤ò̵¸ú¤Ë¤¹¤ë¤â¤Ã¤È¤â´Êñ¤ÊÊýË¡¤Ï¥³¥ó¥½¡¼¥ë¤ò off ¤Ë¤¹¤ë¤³¤È¤Ç¤¹. Î㤨¤Ð 12 ¸ÄÁ´¤Æ¤Î¥¿¡¼¥ß¥Ê¥ë¤ò³ä¤êÅö¤Æ¤Æ¤¤¤ë ¾õÂÖ¤Ç X ¤òư¤«¤·¤¿¤¤¤È¤­¤Ï²¾ÁÛ¥¿¡¼¥ß¥Ê¥ë 12 ¤òÊѹ¹¤·¤Þ¤¹: ttyvb "/usr/libexec/getty Pc" cons25 on secure ¤³¤ì¤ò¼¡¤Î¤è¤¦¤ËÊѹ¹¤·¤Þ¤¹: ttyvb "/usr/libexec/getty Pc" cons25 off secure ¥­¡¼¥Ü¡¼¥É¤Ë¥Õ¥¡¥ó¥¯¥·¥ç¥ó¥­¡¼¤¬ 10 ¸Ä¤·¤«¤Ê¤¤¤Î¤Ç¤¢¤ì¤Ð ¼¡¤Î¤è¤¦¤ËÀßÄꤷ¤Þ¤¹. ttyv9 "/usr/libexec/getty Pc" cons25 off secure ttyva "/usr/libexec/getty Pc" cons25 off secure ttyvb "/usr/libexec/getty Pc" cons25 off secure (¤³¤ì¤é¤Î¹Ô¤ò¾Ã¤¹¤À¤±¤Ç¤â¤¤¤¤¤Ç¤¹.) /etc/ttys ¤òÊÔ½¸¤·¤¿¤é¼¡¤Ï½½Ê¬¤Ê¿ô¤Î²¾ÁÛ¥¿¡¼¥ß¥Ê¥ë¥Ç¥Ð¥¤¥¹¤ò ºî¤é¤Ê¤¯¤Æ¤Ï¤Ê¤ê¤Þ¤»¤ó. ¤â¤Ã¤È¤â´Êñ¤ÊÊýË¡¤ò¼¨¤·¤Þ¤¹: # cd /dev # ./MAKEDEV vty12 # For 12 devices ¤µ¤Æ, ²¾ÁÛ¥³¥ó¥½¡¼¥ë¤òÍ­¸ú¤Ë¤¹¤ë¤Î¤Ë¤â¤Ã¤È¤â´Êñ (¤½¤·¤Æ³Î¼Â) ¤ÊÊýË¡¤Ï¥ê¥Ö¡¼¥È¤¹¤ë¤³¤È¤Ç¤¹. ¤·¤«¤·, ¥ê¥Ö¡¼¥È¤·¤¿¤¯¤Ê¤¤¾ì¹ç¤Ï, X ¥¦¥£¥ó¥É¥¦¥·¥¹¥Æ¥à¤ò½ªÎ»¤µ¤»¤Æ¼¡¤ÎÆâÍÆ¤ò¼Â¹Ô¤·¤Þ¤¹ (root ¸¢¸Â¤Ç) : kill -HUP 1 ½ÅÍפÊÅÀ¤Ï¤³¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ëÁ°¤Ë X ¥¦¥£¥ó¥É¥¦¥·¥¹¥Æ¥à¤ò ´°Á´¤Ë½ªÎ»¤µ¤»¤Æ¤ª¤¯¤³¤È¤Ç¤¹. ¤â¤·¤½¤¦¤·¤Ê¤¤¤È kill ¥³¥Þ¥ó¥É¤ò ¼Â¹Ô¤·¤¿¸å¤Ë¥·¥¹¥Æ¥à¤Ï¤ª¤½¤é¤¯¥Ï¥ó¥°¥¢¥Ã¥×¤¹¤ë¤Ç¤·¤ç¤¦. X ¤«¤é²¾ÁÛ¥³¥ó¥½¡¼¥ë¤ËÀÚÂØ¤¨¤ë¤Ë¤Ï¤É¤¦¤¹¤ì¤Ð¤è¤¤¤Î¤Ç¤¹¤«? ¥³¥ó¥½¡¼¥ë¤¬ X ¤Îɽ¼¨¤ò¤·¤Æ¤¤¤ë¾ì¹ç¤Ï, Ctrl-Alt-F1 ¤Ê¤É¤ò»È¤Ã¤Æ ²¾ÁÛ¥³¥ó¥½¡¼¥ë¤ÎÀÚÂØ¤¨¤ò¤ª¤³¤Ê¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹. ¤¿¤À¤·, X ¤«¤éÎ¥¤ì¤Æ²¾ÁÛ¥¿¡¼¥ß¥Ê¥ë¤Ø°Ü¤Ã¤Æ¤¤¤ë»þ¤Ï Alt-¥Õ¥¡¥ó¥¯¥·¥ç¥ó¥­¡¼¤ò »È¤Ã¤ÆÂ¾¤Î²¾ÁÛ¥¿¡¼¥ß¥Ê¥ë¤ØÀÚÂØ¤¨¤¿¤ê X ¤ØÌá¤Ã¤¿¤ê¤·¤Þ¤¹. ¥³¥ó¥È¥í¡¼¥ë¥­¡¼¤Ï²¡¤µ¤Ê¤¤¤Ç¤¯¤À¤µ¤¤. Ctrl-Alt-¥Õ¥¡¥ó¥¯¥·¥ç¥ó¥­¡¼¤Î Áȹ礻¤Ï X ¤«¤é²¾ÁÛ¥¿¡¼¥ß¥Ê¥ë¤Ë°Ü¤ë»þ¤À¤±ÍøÍѤ·¤Æ¤¯¤À¤µ¤¤. ¥³¥ó¥È¥í¡¼¥ë¥­¡¼¤ò²¡¤·¤Æ¤·¤Þ¤¦¤È ``control-lock'' ¥â¡¼¥É¤Ë¤Ê¤ê ¥Æ¥­¥¹¥È¥³¥ó¥½¡¼¥ë¤¬»ß¤Þ¤Ã¤Æ¤·¤Þ¤¤¤Þ¤¹. ¥³¥ó¥È¥í¡¼¥ë¥­¡¼¤ò²¡¤·¤Æ ²óÉü¤µ¤»¤Æ¤¯¤À¤µ¤¤. ÌõÃí: X ¤ËÌá¤ë¤Ë¤Ï 3Ëç¤Î²¾ÁÛ¥³¥ó¥½¡¼¥ë¤¬Í­¸ú¤Ë¤Ê¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï Alt-F4 ¤Ç¤¹. Í­¸ú¤Ê²¾ÁÛ¥³¥ó¥½¡¼¥ë¤Î¿ô +1 ¤Î¥Õ¥¡¥ó¥¯¥·¥ç¥ó¥­¡¼¤Î °ÌÃÖ¤Ë X ¤¬³ä¤êÅö¤Æ¤é¤ì¤Þ¤¹. XDM ¤ò¥Ö¡¼¥È»þ¤Ëµ¯Æ°¤µ¤»¤ë¤Ë¤Ï¤É¤¦¤·¤Þ¤¹¤«? xdm ¤Îµ¯Æ°ÊýË¡¤Ë¤Ä¤¤¤Æ, ¤½¤Î¹Í¤¨Êý¤Ë¤ÏÆó¤Ä¤ÎήÇɤ¬¤¢¤ê¤Þ¤¹. ¤¢¤ëήÇɤǤÏÄ󶡤µ¤ì¤¿Îã¤ò»ÈÍѤ·¤Æ xdm ¤ò /etc/ttys ¤«¤éµ¯Æ°¤·, ¾¤ÎήÇÉ¤Ç¤Ï xdm ¤òñ¤Ë rc.local ¤Þ¤¿¤Ï /usr/local/etc/rc.d ¤Ë¤¢¤ë X.sh ¥¹¥¯¥ê¥×¥È¤«¤éµ¯Æ°¤·¤Þ¤¹. ¤É¤Á¤é¤âÀµ¤·¤¯, ÊÒÊý¤¬Æ°ºî¤·¤Ê¤¤¾ì¹ç¤Ï, ¤â¤¦ÊÒÊý¤¬Æ°ºî¤¹¤ë¤Ç¤·¤ç¤¦. ¤É¤Á¤é¤â¾ì¹ç¤Ç¤â·ë²Ì¤ÏƱ¤¸¤Ç¤¢¤ê, X ¤Ï¥°¥é¥Õ¥£¥«¥ë¤Ê login: ¥×¥í¥ó¥×¥È¤òɽ¼¨¤·¤Þ¤¹. ttys ¤òÍøÍѤ¹¤ëÊýË¡¤ÎÍøÅÀ¤Ï, ¤É¤Î vty ¤Ç X ¤¬µ¯Æ°¤·¤¿¤«¤Îµ­Ï¿¤¬ »Ä¤»¤ë¤³¤È¤È, ¥í¥°¥¢¥¦¥È»þ¤Ë X ¥µ¡¼¥Ð¤òºÆµ¯Æ°¤¹¤ëÀÕǤ¤ò init ¤Ë ²¡¤·¤Ä¤±¤ë¤³¤È¤¬¤Ç¤­¤ë¤³¤È¤Ç¤·¤ç¤¦. rc.local ¤«¤é¥í¡¼¥É¤µ¤ì¤ë¾ì¹ç, xdm ¤Ï°ú¿ô¤ò»ý¤¿¤º¤Ëµ¯Æ°¤·¤Þ¤¹. (¤¹¤Ê¤ï¤Á, ¥Ç¡¼¥â¥ó¤È¤·¤Æµ¯Æ°¤·¤Þ¤¹.) xdm ¤Ï getty ¤¬µ¯Æ°¤·¤¿¸å¤Ë ¥í¡¼¥É¤µ¤ì¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó. ¤½¤¦¤Ç¤Ê¤¤¤È, xdm ¤Ï getty ¤È¾×ÆÍ¤·, ¥³¥ó¥½¡¼¥ë¤ò¥í¥Ã¥¯¥¢¥¦¥È¤·¤Æ¤·¤Þ¤¤¤Þ¤¹. ¤³¤ÎÌäÂê¤ËÂн褹¤ëºÇÁ±¤ÎÊýË¡¤Ï µ¯Æ°¥¹¥¯¥ê¥×¥È(ÌõÃí: rc.local ¤Î¤³¤È)¤Ç 10ÉäۤɤΠsleep¤ò¼Â¹Ô¤µ¤», ¤½¤Î¸å¤Ë xdm ¤ò¥í¡¼¥É¤¹¤ë¤³¤È¤Ç¤¹. °ÊÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤Î FAQ ¤Ç¤Ï /usr/X11R6/lib/X11/xdm/Xservers ¥Õ¥¡¥¤¥ë¤Ë X ¤Î»È¤¦ vt ¤ò²Ã¤¨¤ë¤è¤¦¤Ë½ñ¤¤¤Æ¤¢¤ê¤Þ¤¹. ¤³¤ì¤ÏɬÍפ¢¤ê¤Þ¤»¤ó: X ¤ÏºÇ½é¤Ë¸«¤Ä¤±¤¿ÍøÍѲÄǽ¤Ê vt ¤ò»È¤¤¤Þ¤¹. xconsole ¤òư¤«¤½¤¦¤È¤¹¤ë¤È ``Couldn't open console'' ¤È¥¨¥é¡¼¤¬½Ð¤Þ¤¹. X ¤ò startx ¤Çµ¯Æ°¤·¤Þ¤¹¤È, /dev/console ¤Î¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó¤Ï Êѹ¹¤¬¤Ç¤­¤Ê¤¤ ¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¤Î¤Ç, xterm -C ¤ä xconsole ¤Ïư¤­¤Þ¤»¤ó. ¤³¤ì¤Ï¥³¥ó¥½¡¼¥ë¤Î¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó¤¬É¸½à¤Ç¤Ï¤½¤Î¤è¤¦¤Ë ÀßÄꤵ¤ì¤Æ¤¤¤ë¤«¤é¤Ç¤¹. ¥Þ¥ë¥Á¥æ¡¼¥¶¥·¥¹¥Æ¥à¤Ç¤Ï, ¥æ¡¼¥¶¤Îï¤â¤¬ ¥·¥¹¥Æ¥à¥³¥ó¥½¡¼¥ë¤Ë½ñ¤­¹þ¤à¤³¤È¤¬²Äǽ¤Ç¤¢¤ëɬÍפÏɬ¤º¤·¤â¤¢¤ê¤Þ¤»¤ó. VTY ¤ò»È¤¤ ľÀÜ¥Þ¥·¥ó¤Ë¥í¥°¥¤¥ó¤¹¤ë¥æ¡¼¥¶¤Î¤¿¤á¤Ë, ¤³¤Î¤è¤¦¤ÊÌäÂê¤ò²ò·è¤¹¤ë¤¿¤á¤Ë fbtab ¤È¤¤¤¦¥Õ¥¡¥¤¥ë¤¬¤¢¤ê¤Þ¤¹. Í×ÅÀ¤ò½Ò¤Ù¤ë¤È, ¼¡¤Î¤è¤¦¤Ê·Á¼°¤Î¹Ô¤ò fbtab ¤Ë²Ã¤¨¤Þ¤¹. /dev/ttyv0 0600 /dev/console ¤½¤¦¤¹¤ë¤È, /dev/ttyv0 ¤«¤é¥í¥°¥¤¥ó¤·¤¿¥æ¡¼¥¶¤¬ ¥³¥ó¥½¡¼¥ë¤ò½êÍ­¤¹¤ë¤³¤È¤Ë¤Ê¤ë¤Ç¤·¤ç¤¦. »ä¤Î PS/2 ¥Þ¥¦¥¹¤Ï X ¥¦¥£¥ó¥É¥¦¥·¥¹¥Æ¥à¾å¤Ç¤¦¤Þ¤¯Æ°¤­¤Þ¤»¤ó. ¤¢¤Ê¤¿¤Î¥Þ¥¦¥¹¤È¥Þ¥¦¥¹¥É¥é¥¤¥Ð¤¬¤¦¤Þ¤¯Æ±´ü¤·¤Æ¤¤¤Ê¤¤¤«¤é¤«¤â ¤·¤ì¤Þ¤»¤ó. FreeBSD 2.2.5 ¤Þ¤Ç¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¤Ï, X ¤«¤é²¾ÁÛ¥¿¡¼¥ß¥Ê¥ë¤Ø ÀÚÂØ¤¨¤Æ¤Þ¤¿ X ¤ØÌá¤ë¤ÈºÆÆ±´ü¤¹¤ë¤«¤â¤·¤ì¤Þ¤»¤ó. ¤³¤ÎÌäÂ꤬¤è¤¯µ¯¤­¤ë¤è¤¦¤Ç¤¢¤ì¤Ð, ¥«¡¼¥Í¥ë¥³¥ó¥Õ¥£¥°¥ì¡¼¥·¥ç¥ó ¥Õ¥¡¥¤¥ë¤Ë¼¡¤Î¥ª¥×¥·¥ç¥ó¤ò½ñ¤¤¤Æ¥«¡¼¥Í¥ë¤òºÆ¹½À®¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤. options PSM_CHECKSYNC ¤â¤·, ¥«¡¼¥Í¥ë¤ÎºÆ¹½ÃÛ¤ò¤ª¤³¤Ê¤Ã¤¿¤³¤È¤¬¤Ê¤¤¤Î¤Ç¤¢¤ì¤Ð ¤Î¥»¥¯¥·¥ç¥ó¤ò ¸«¤Æ¤¯¤À¤µ¤¤. ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ë¤è¤ê, ¥Þ¥¦¥¹¤È¥É¥é¥¤¥Ð¤ÎƱ´ü¤ÎÌäÂê¤Îµ¯¤­¤ë ²ÄǽÀ­¤Ï¾¯¤Ê¤¯¤Ê¤ë¤Ç¤·¤ç¤¦. ¤â¤·¤½¤ì¤Ç¤â¤³¤ÎÌäÂ꤬µ¯¤­¤ë¤è¤¦¤Ê¤é¤Ð, ºÆÆ±´ü¤µ¤»¤ë¤Ë¤Ï¥Þ¥¦¥¹¤òư¤«¤µ¤Ê¤¤¤è¤¦¤Ë¤·¤Æ¤ª¤¤¤Æ ¥Þ¥¦¥¹¥Ü¥¿¥ó¤Î¤É¤ì¤«¤ò²¡¤·¤Æ¤¯¤À¤µ¤¤. ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ï»Äǰ¤Ê¤¬¤é, ¤¹¤Ù¤Æ¤Î¥·¥¹¥Æ¥à¤ÇƯ¤¯¤ï¤±¤Ç¤Ï¤Ê¤¯ ¤Þ¤¿, PS/2 ¥Þ¥¦¥¹¥Ý¡¼¥È¤Ë¤Ä¤Ê¤¬¤ì¤Æ¤¤¤ë¤Î¤¬ ``tap'' ¤ÎÆÃ¿§¤ò »ý¤Ä ALPS GlidePoint ¥Ç¥Ð¥¤¥¹¤Î¾ì¹ç, ``tap'' ¤¬Ìµ¸ú¤È¤Ê¤Ã¤Æ¤·¤Þ¤¤¤Þ¤¹. FreeBSD 2.2.6 °Ê¹ß¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¤Ï, Ʊ´ü¤Î¥Á¥§¥Ã¥¯ÊýË¡¤¬¾¯¤·²þÁ± ¤µ¤ì¤¿¤Î¤Çɸ½à¤ÇÍ­¸ú¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹. GlidePoint ¤Ç¤â¤¦¤Þ¤¯Æ¯¤­¤Þ¤¹ (Ʊ´ü¥Á¥§¥Ã¥¯¤¬É¸½à¤Îµ¡Ç½¤Ë¤Ê¤Ã¤¿¤Î¤Ç PSM_CHECKSYNC ¥ª¥×¥·¥ç¥ó¤Ï ¤³¤ì¤é¤Î¥Ð¡¼¥¸¥ç¥ó¤«¤é¤Ïºï½ü¤µ¤ì¤Þ¤·¤¿). ¤·¤«¤·¤Ê¤¬¤é, µ©¤ì¤Ë ¥É¥é¥¤¥Ð¤¬´Ö°ã¤Ã¤Æ(ÌõÃí: ÌäÂ꤬¤Ê¤¤¤Î¤Ë)Ʊ´ü¤Ë´Ø¤·¤ÆÌäÂ꤬¤¢¤ë¤ÈÊó¹ð¤·, ¥«¡¼¥Í¥ë¤«¤é psmintr: out of sync (xxxx != yyyy) ¤È¤¤¤¦¥á¥Ã¥»¡¼¥¸¤¬½ÐÎϤµ¤ì¤Æ, ¥Þ¥¦¥¹¤¬Àµ¤·¤¯Æ°ºî¤·¤Æ¤¤¤Ê¤¤¤è¤¦¤Ë¸«¤¨¤ë ¤³¤È¤¬¤¢¤ë¤«¤â¤·¤ì¤Þ¤»¤ó. ¤â¤·¤³¤Î¤è¤¦¤Ê¤³¤È¤¬µ¯¤³¤ë¾ì¹ç¤Ë¤Ï, PS/2 ¥Þ¥¦¥¹¥É¥é¥¤¥Ð¤Î¥Õ¥é¥°¤Ë 0x100 ¤ò»ØÄꤷ¤ÆÆ±´ü¥Á¥§¥Ã¥¯¤ò̵¸ú¤Ë¤·¤Æ²¼¤µ¤¤. ¥·¥¹¥Æ¥à¤Îµ¯Æ°»þ¤Ë ``'' ¥Ö¡¼¥È¥ª¥×¥·¥ç¥ó¤òÍ¿¤¨¤Æ UserConfig ¤ËÆþ¤ê¤Þ¤¹. boot: -c UserConfig ¤Î¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç°Ê²¼¤Î¤è¤¦¤ËÆþÎϤ·¤Æ²¼¤µ¤¤. > flags psm0 0x100 > quit MouseSystems ¤Î PS/2 ¥Þ¥¦¥¹¤¬¤¦¤Þ¤¯Æ°¤­¤Þ¤»¤ó. MouseSystems ¤Î PS/2 ¥Þ¥¦¥¹¤Î¤¢¤ë¥â¥Ç¥ë¤Ï, ¹â²òÁüÅ٥⡼¥É¤Î¾ì¹ç ¤Ë¤Î¤ßÀµ¤·¤¯Æ°ºî¤¹¤ë¤È¤¤¤¦¤³¤È¤¬Êó¹ð¤µ¤ì¤Æ¤¤¤Þ¤¹. ¤½¤ì°Ê³°¤Î¥â¡¼¥É¤Ç¤Ï ¥Þ¥¦¥¹¥«¡¼¥½¥ë¤¬¤·¤ç¤Ã¤Á¤å¤¦¥¹¥¯¥ê¡¼¥óº¸¾å¤Ë¹Ô¤Ã¤Æ¤·¤Þ¤¦¤«¤â¤·¤ì¤Þ¤»¤ó. »Äǰ¤Ê¤¬¤é FreeBSD 2.0.X ¤ä 2.1.X ¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¤Ï¤³¤ÎÌäÂê¤Î²ò·è¤¹¤ë ÊýË¡¤Ï¤¢¤ê¤Þ¤»¤ó. 2.2 ¤«¤é 2.2.5 ¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¤Ï°Ê²¼¤Î¥Ñ¥Ã¥Á¤ò /sys/i386/isa/psm.c ¤ËŬÍѤ·¥«¡¼¥Í¥ë¤ÎºÆ¹½ÃÛ¤ò¹Ô¤Ê¤Ã¤Æ²¼¤µ¤¤. ¤â¤·, ¥«¡¼¥Í¥ë¤ÎºÆ¹½ÃÛ¤ò¤ª¤³¤Ê¤Ã¤¿¤³¤È¤¬¤Ê¤¤¤Î¤Ç¤¢¤ì¤Ð ¤Î¥»¥¯¥·¥ç¥ó¤ò ¸«¤Æ¤¯¤À¤µ¤¤. diff -u psm.c.orig psm.c @@ -766,6 +766,8 @@ if (verbose >= 2) log(LOG_DEBUG, "psm%d: SET_DEFAULTS return code:%04x\n", unit, i); + set_mouse_resolution(sc->kbdc, PSMD_RES_HIGH); + #if 0 set_mouse_scaling(sc->kbdc); /* 1:1 scaling */ set_mouse_mode(sc->kbdc); /* stream mode */ FreeBSD 2.2.6 °Ê¹ß¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¤Ï, PS/2 ¥Þ¥¦¥¹¥É¥é¥¤¥Ð¤Î¥Õ¥é¥°¤Ë 0x04 ¤ò»ØÄꤷ¤Æ¥Þ¥¦¥¹¤ò¹â²òÁüÅ٥⡼¥É¤Ë¤·¤Þ¤¹. ¥·¥¹¥Æ¥à¤Îµ¯Æ°»þ¤Ë ``'' ¥Ö¡¼¥È¥ª¥×¥·¥ç¥ó¤òÍ¿¤¨¤Æ UserConfig ¤ËÆþ¤ê¤Þ¤¹. boot: -c UserConfig ¤Î¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ç°Ê²¼¤Î¤è¤¦¤ËÆþÎϤ·¤Æ²¼¤µ¤¤. > flags psm0 0x04 > quit ¥Þ¥¦¥¹¤Ë´Ø¤¹¤ëÉÔ¶ñ¹ç¤Î¾¤Î¸¶°ø¤Î²ÄǽÀ­¤Ë¤Ä¤¤¤Æ¤ÏľÁ°¤Î¥»¥¯¥·¥ç¥ó¤â ¸«¤Æ¤ß¤Æ²¼¤µ¤¤. X ¤Î¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤ò¹½ÃÛ¤¹¤ë»þ¤Ë, imake can't find Imake.tmpl ¤È¤Ê¤ê¤Þ¤¹. ¤É¤³¤Ë¤¢¤ë¤Î¤Ç¤·¤ç¤¦¤«? Imake.tmpl ¤Ï X ¤Îɸ½à¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¹½Ãۥġ¼¥ë¤Ç¤¢¤ë Imake ¥Ñ¥Ã¥±¡¼¥¸¤Î°ìÉô¤Ç¤¹. Imake.tmpl ¤Ï X ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Î¹½ÃÛ¤ËɬÍפÊ¿¤¯¤Î¥Ø¥Ã¥À¥Õ¥¡¥¤¥ë¤È ƱÍͤË, X ¤Î¥×¥í¥°¥é¥à¥Ç¥£¥¹¥È¥ê¥Ó¥å¡¼¥·¥ç¥ó¤Ë´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹. sysinstall ¤ò»È¤¦¤«¼êư¤Ç X ¤Î¥Ç¥£¥¹¥È¥ê¥Ó¥å¡¼¥·¥ç¥ó¥Õ¥¡¥¤¥ë¤«¤é ¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. ¥Þ¥¦¥¹¤Î¥Ü¥¿¥ó¤òÆþ¤ìÂØ¤¨¤ëÊýË¡¤Ï¤¢¤ê¤Þ¤¹¤«? .xinitrc ¤« .xsession ¤Ç xmodmap -e "pointer = 3 2 1" ¤È¤¤¤¦¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤. ¥Í¥Ã¥È¥ï¡¼¥­¥ó¥° Ìõ: ͭ¼ ¸÷À² <arimura@jp.FreeBSD.org> ¹­À¥ ¾»°ì <shou@kt.rim.or.jp> ¤Ë¤·¤« <nishika@cheerful.com> ¤Ï¤é¤À ¤­¤í¤¦ <kiroh@jp.FreeBSD.org> . 4 October 1998. ``diskless boot'' ¤Ë´Ø¤¹¤ë¾ðÊó¤Ï¤É¤³¤ÇÆÀ¤é¤ì¤Þ¤¹¤«? ``diskless boot'' ¤È¤¤¤¦¤Î¤Ï, FreeBSD ¤¬¥Í¥Ã¥È¥ï¡¼¥¯¾å¤Çµ¯Æ°¤·, ɬÍפʥե¡¥¤¥ë¤ò¼«Ê¬¤Î¥Ï¡¼¥É¥Ç¥£¥¹¥¯¤Ç¤Ï¤Ê¤¯¤Æ¥µ¡¼¥Ð¤«¤éÆÉ¤ß¹þ¤à¤â¤Î¤Ç¤¹. ¾ÜºÙ¤Ë¤Ä¤¤¤Æ¤Ï ¥Ï¥ó¥É¥Ö¥Ã¥¯¤Î¥Ç¥£¥¹¥¯¥ì¥¹¥Ö¡¼¥È¤Ë´Ø¤¹¤ëÀá ¤òÆÉ¤ó¤Ç¤¯¤À¤µ¤¤. FreeBSD ¤ò¥Í¥Ã¥È¥ï¡¼¥¯¤Î router ¤È¤·¤Æ»ÈÍѤ¹¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤¹¤«? ¥¤¥ó¥¿¡¼¥Í¥Ã¥Èɸ½à¤ä¤³¤ì¤Þ¤Ç¤Î¤è¤¤·Ð¸³¤Ë¤è¤Ã¤Æ»ØÅ¦¤µ¤ì¤Æ¤¤¤ëÄ̤ê, FreeBSD ¤Ïɸ½à¤Ç¤Ï¥Ñ¥±¥Ã¥È¤ò forward ¤¹¤ë¤è¤¦¤ËÀßÄꤵ¤ì¤Æ¤¤¤Þ¤»¤ó. ¤·¤«¤·, rc.conf ¤ÎÃæ¤Ç¼¡¤ÎÊÑ¿ô¤ÎÃͤò YES ¤È¤¹¤ë»ö¤Ë¤è¤Ã¤Æ¤³¤Îµ¡Ç½¤òÍ­¸ú¤Ë¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. gateway_enable=YES # Set to YES if this host will be a gateway ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ë¤è¤Ã¤Æsysctl ¤ÎÊÑ¿ô net.inet.ip.forwarding ¤¬ 1 ¤Ë¤Ê¤ê¤Þ¤¹. ¤Û¤È¤ó¤É¤Î¾ì¹ç, router ¤Ë¤Ä¤¤¤Æ¤Î¾ðÊó¤òƱ¤¸¥Í¥Ã¥È¥ï¡¼¥¯ ¤Î¾¤Î·×»»µ¡Åù¤ËÃΤ餻¤ë¤¿¤á¤Ë, ·ÐÏ©À©¸æ¤Î¤¿¤á¤Î¤Î process ¤òÁö¤é¤»¤ëɬÍפ¬¤¢¤ë¤Ç¤·¤ç¤¦. FreeBSD ¤Ë¤Ï BSD ¤Îɸ½à·ÐÏ©À©¸æ¥Ç¡¼¥â¥ó ¤Ç¤¢¤ë routed ¤¬ÉÕ°¤·¤Æ¤¤¤Þ¤¹¤¬, ¤è¤êÊ£»¨¤Ê¾õ¶·¤ËÂн褹¤ë¤¿¤á¤Ë¤Ï GaTeD (ftp.gated.Merit.EDU ¤«¤é FTP ¤Ç¼ê¤ËÆþ¤ì¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹) ¤ò»ÈÍѤ¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹. 3_5Alpha7 ¤Ë¤ª¤¤¤Æ FreeBSD ¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Þ¤¹. Ãí°Õ¤·¤Æ¤Û¤·¤¤¤Î¤Ï, FreeBSD ¤ò¤³¤Î¤è¤¦¤Ë¤·¤Æ»ÈÍѤ·¤Æ¤¤¤ë¾ì¹ç¤Ç¤â, router ¤Ë´Ø¤¹¤ë¥¤¥ó¥¿¡¼¥Í¥Ã¥Èɸ½à¤ÎɬÍ×¾ò·ï¤ò´°Á´¤Ë¤ÏËþ¤¿¤·¤Æ¤¤¤Ê¤¤ ¤È¤¤¤¦¤³¤È¤Ç¤¹. ¤·¤«¤·, ÉáÄ̤˻ÈÍѤ¹¤ë¾ì¹ç¤Ë¤Ï¤Û¤È¤ó¤ÉÌäÂꤢ¤ê¤Þ¤»¤ó. Win95 ¤ÎÁö¤Ã¤Æ¤¤¤ë¥Þ¥·¥ó¤ò, FreeBSD ·Ðͳ¤Ç¥¤¥ó¥¿¡¼¥Í¥Ã¥È¤ËÀܳ¤Ç¤­¤Þ¤¹¤«? Ä̾ï, ¤³¤Î¼ÁÌ䤬½Ð¤Æ¤¯¤ë¾õ¶·¤Ï¼«Âð¤ËÆóÂæ¤Î PC ¤¬¤¢¤ê, °ìÂæ¤Ç¤Ï FreeBSD ¤¬, ¤â¤¦°ìÂæ¤Ç¤Ï Win95 ¤¬Áö¤Ã¤Æ¤¤¤ë¤è¤¦¤Ê¾ì¹ç¤Ç¤¹. ¤³¤³¤Ç¤ä¤í¤¦¤È¤·¤Æ¤¤¤¦»ö¤ÏFreeBSD¤ÎÁö¤Ã¤Æ¤¤¤ë·×»»µ¡¤ò¥¤¥ó¥¿¡¼¥Í¥Ã¥È ¤ËÀܳ¤·, Win95 ¤ÎÁö¤Ã¤Æ¤¤¤ë¥Þ¥·¥ó¤«¤é¤Ï FreeBSD ¤ÎÁö¤Ã¤Æ¤¤¤ë¥Þ¥·¥ó¤ò ·Ðͳ¤·¤ÆÀܳ¤ò¤ª¤³¤Ê¤¦»ö¤Ç¤¹. ¤³¤ì¤ÏÆó¤ÄÁ°¤Î¼ÁÌä¤ÎÆÃÊ̤ʾì¹ç¤ËÁêÅö¤·¤Þ¤¹. FreeBSD¤òPPP ¤Î Dialup ¥ë¡¼¥¿¤È¤·¤ÆÀßÄꤹ¤ëÊýË¡¤Ë¤Ä¤¤¤Æ¤Ï, Ìò¤ËΩ¤Äʸ½ñ¤¬¤¢¤ê¤Þ¤¹. Ãí: ¤³¤ì¤Ë¤Ï, Windows ¤ÎÁö¤Ã¤Æ¤¤¤ë¥Þ¥·¥ó¤«¤é¤É¤ì¤À¤±¤Î ºî¶È¤òƱ»þ¤Ë¤ª¤³¤Ê¤¦¤«¤Ë¤è¤Ã¤Æ, ºÇÄã 2 ¸Ä, ¾ì¹ç¤Ë¤è¤Ã¤Æ¤Ï¤â¤Ã¤È¿¤¯¤Î ¸ÇÄꤷ¤¿ IP ¥¢¥É¥ì¥¹¤¬É¬ÍפǤ¹. ¤â¤·¸ÇÄꤷ¤¿ IP ¥¢¥É¥ì¥¹¤¬¤Ê¤¤¾ì¹ç¤Ë¤Ï, ¥×¥é¥¤¥Ù¡¼¥È¤Ê IP ¥¢¥É¥ì¥¹¤òÍѤ¤¤¿¥µ¥Ö¥Í¥Ã¥È¤ò»ÈÍѤ·, FreeBSD ¾å¤Ç SQUID¤ä TIS firewall ¥Ä¡¼¥ë¥­¥Ã¥È ¤Î¤è¤¦¤Ê proxy ¤òÍѤ¤¤ë¤³¤È¤Ë¤è¤Ã¤Æ¼Â¸½¤¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹. ¤Þ¤¿, ¤Ë´Ø¤¹¤ëÀá¤â»²¾È¤·¤Æ¤¯¤À¤µ¤¤. ISC ¤«¤é¥ê¥ê¡¼¥¹¤µ¤ì¤Æ¤¤¤ë BIND ¤ÎºÇ¿·ÈÇ¤Ï compile ¤Ç¤­¤Ê¤¤¤ó¤Ç¤·¤ç¤¦¤«? BIND ¤ÎÇÛÉÛʪ¤È FreeBSD ¤È¤Ç¤Ï ``cdefs.h'' ¤È¤¤¤¦¥Õ¥¡¥¤¥ë¤ÎÃæ¤Ç, ¥Ç¡¼¥¿·¿¤ÎÌ·½â¤¬¤¢¤ê¤Þ¤¹. compat/include/sys/cdefs.h ¤òºï½ü¤·¤Æ¤¯¤À¤µ¤¤. FreeBSD ¤Ç SLIP ¤È PPP ¤Ï»È¤¨¤Þ¤¹¤«? »È¤¨¤Þ¤¹. FreeBSD ¤òÍѤ¤¤ÆÂ¾¤Î¥µ¥¤¥È¤ËÀܳ¤¹¤ë¾ì¹ç¤Ë¤Ï, slattach, sliplogin, pppd ¤½¤·¤Æ ppp ¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤ò¸«¤Æ¤¯¤À¤µ¤¤. pppd ¤È ppp ¤Ï PPP ¤Î¥µ¡¼¥Ð, ¥¯¥é¥¤¥¢¥ó¥ÈξÊý¤Î µ¡Ç½¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹. Sliplogin ¤Ï SLIP ¤Î¥µ¡¼¥ÐÀìÍѤÇ, slattach ¤Ï SLIP ¤Î¥¯¥é¥¤¥¢¥ó¥ÈÀìÍѤǤ¹. ¤³¤ì¤é¤Î¥×¥í¥°¥é¥à¤Î²òÀ⤬, ¥Ï¥ó¥É¥Ö¥Ã¥¯ ¤Î°Ê²¼¤Î¥»¥¯¥·¥ç¥ó¤Ë¤¢¤ê¤Þ¤¹. ¥Ï¥ó¥É¥Ö¥Ã¥¯¤Î SLIP (¥µ¡¼¥Ð¦) ¤ÎÀá ¥Ï¥ó¥É¥Ö¥Ã¥¯¤Î SLIP (¥¯¥é¥¤¥¢¥ó¥È¦) ¤ÎÀá ¥Ï¥ó¥É¥Ö¥Ã¥¯¤Î PPP (kernel ¥Ð¡¼¥¸¥ç¥ó) ¤ÎÀá ¥Ï¥ó¥É¥Ö¥Ã¥¯¤Î PPP (user ¥â¡¼¥É¥Ð¡¼¥¸¥ç¥ó) ¤ÎÀá ¡Ö¥·¥§¥ë¥¢¥«¥¦¥ó¥È¡×¤òÄ̤¸¤Æ¤Î¤ß¥¤¥ó¥¿¡¼¥Í¥Ã¥È¤Ø¥¢¥¯¥»¥¹²Äǽ¤Ê¾ì¹ç, slirp package ¤ß¤¿¤¤¤Ê¤â¤Î¤¬Íߤ·¤¯¤Ê¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¤Í. ¤³¤ì¤ò»È¤¨¤Ð, ¥í¡¼¥«¥ë¥Þ¥·¥ó¤«¤éľÀÜ ftp ¤ä http ¤Î¤è¤¦¤Ê¥µ¡¼¥Ó¥¹¤Ë (¸ÂÄêŪ¤Ç¤Ï¤¢¤ê¤Þ¤¹¤¬) ¥¢¥¯¥»¥¹¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. FreeBSD ¤Ï NAT ¤« IP ¥Þ¥¹¥«¥ì¡¼¥É¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹¤«? ¥í¡¼¥«¥ë¤Ê¥µ¥Ö¥Í¥Ã¥È (°ìÂæ°Ê¾å¤Î¥í¡¼¥«¥ë¥Þ¥·¥ó) ¤ò»ý¤Ã¤Æ¤¤¤ë¤¬, ¥¤¥ó¥¿¡¼¥Í¥Ã¥È¥×¥í¥Ð¥¤¥À¤«¤é 1 ¤Ä¤·¤« IP ¥¢¥É¥ì¥¹¤Î³ä¤êÅö¤Æ¤ò ¼õ¤±¤Æ¤¤¤Ê¤¤¾ì¹ç (¤Þ¤¿¤Ï IP ¥¢¥É¥ì¥¹¤òưŪ¤Ë³ä¤êÅö¤Æ¤é¤ì¤Æ¤¤¤ë¾ì¹ç¤Ç¤â), natd ¥×¥í¥°¥é¥à¤ò»È¤¤¤¿¤¯¤Ê¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¤Í. Natd ¤ò»È¤¨¤Ð, 1 ¤Ä¤·¤« IP ¥¢¥É¥ì¥¹¤ò»ý¤Ã¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ç¤â, ¥µ¥Ö¥Í¥Ã¥ÈÁ´ÂΤò¥¤¥ó¥¿¡¼¥Í¥Ã¥È¤ËÀܳ¤µ¤»¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. ppp ¤â, ƱÍͤε¡Ç½¤ò»ý¤Ã¤Æ¤ª¤ê, ¥¹¥¤¥Ã¥Á¤ÇÍ­¸ú¤Ë¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. ¤É¤Á¤é¤Î¾ì¹ç¤â alias library ¤¬»È¤ï¤ì¤Þ¤¹. /dev/ed0 ¥Ç¥Ð¥¤¥¹¤òºîÀ®¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤»¤ó. Berkeley UNIX ¤Ë¤ª¤±¤ë¥Í¥Ã¥È¥ï¡¼¥¯¤Î¹½À®¤Ë¤ª¤¤¤Æ¤Ï, ¥Í¥Ã¥È¥ï¡¼¥¯ ¤Î¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤Ï kernel ¤Î¥³¡¼¥É¤«¤é¤Î¤ßľÀܤ¢¤Ä¤«¤¦¤³¤È¤¬ ¤Ç¤­¤Þ¤¹. ¤è¤ê¾Ü¤·¤¯ÃΤꤿ¤¤¾ì¹ç¤Ï, /etc/rc.network ¤È¤¤¤¦¥Õ¥¡¥¤¥ë¤ä, ¤³¤Î¥Õ¥¡¥¤¥ë¤ÎÃæ¤Ë½ñ¤¤¤Æ¤¢¤ë¤µ¤Þ¤¶¤Þ¤Ê¥×¥í¥°¥é¥à ¤Ë¤Ä¤¤¤Æ¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤ò¸«¤Æ¤¯¤À¤µ¤¤. ¤½¤ì¤Ç¤â¤Þ¤Àʬ¤«¤é¤Ê¤¤¾ì¹ç¤Ë¤Ï, ¾¤Î BSD ·Ï¤Î OS ¤Î¥Í¥Ã¥È¥ï¡¼¥¯´ÉÍý¤Ë¤Ä¤¤¤Æ¤ÎËܤòÆÉ¤à¤Ù¤­¤Ç¤·¤ç¤¦. ¤´¤¯¾¯¤·¤ÎÎã³°¤ò¤Î¤¾¤¤¤Æ¤Ï, FreeBSD ¤Î¥Í¥Ã¥È¥ï¡¼¥¯´ÉÍý¤Ï SunOS 4.0 ¤ä Ultrix ¤È´ðËÜŪ¤ËƱ¤¸¤Ç¤¹. Ethernet ¥¢¥É¥ì¥¹¤Î¥¨¥¤¥ê¥¢¥¹¤Ï¤É¤Î¤è¤¦¤Ë¤·¤ÆÀßÄê¤Ç¤­¤Þ¤¹¤«? ifconfig ¤Î¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ë ``netmask 0xffffffff'' ¤òÄɲä·¤Æ, ¼¡¤Î¤è¤¦¤Ë½ñ¤¤¤Æ¤¯¤À¤µ¤¤. ifconfig ed0 alias 204.141.95.2 netmask 0xffffffff 3C503 ¤Ç¾¤Î¥Í¥Ã¥È¥ï¡¼¥¯¤Î port ¤ò»ÈÍѤ¹¤ë¤Ë¤Ï¤É¤Î¤è¤¦¤Ë¤¹¤ì¤Ð¤è¤¤¤Ç¤¹¤«? ¾¤Î port ¤ò»ÈÍѤ·¤¿¤¤¾ì¹ç¤Ë¤Ï, ifconfig ¤Î¥³¥Þ¥ó¥É¥é¥¤¥ó¤Ë¥Ñ¥é¥á¡¼¥¿¤ò Äɲ䷤ʤ±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó. default ¤Ï ``link0'' ¤¬ÍѤ¤¤é¤ì¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹. BNC ¤Î¤«¤ï¤ê¤Ë AUI port ¤ò»ÈÍѤ·¤¿¤¤¾ì¹ç¤Ë¤Ï ``link2'' ¤È¤¤¤¦¥Ñ¥é¥á¡¼¥¿¤ò Äɲ䷤Ƥ¯¤À¤µ¤¤. ¤³¤ì¤é¤Î¥Õ¥é¥°¤Ï /etc/rc.conf. ¤Î using the ifconfig_* ¤ÎÊÑ¿ô¤ò»È¤Ã¤Æ»ØÄꤵ¤ì¤ë¤Ï¤º¤Ç¤¹. FreeBSD ¤È¤Î´Ö¤Ç NFS ¤¬¤¦¤Þ¤¯¤Ç¤­¤Þ¤»¤ó. PC ÍѤΥͥåȥ¥¯¥«¡¼¥É¤Ë¤è¤Ã¤Æ¤Ï NFS ¤Î¤è¤¦¤Ê¥Í¥Ã¥È¥ï¡¼¥¯¤ò ¹ó»È¤¹¤ë¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ë¤ª¤¤¤ÆÌäÂê¤òµ¯¤³¤¹¤â¤Î¤¬¤¢¤ê¤Þ¤¹. ¤³¤ÎÅÀ¤Ë´Ø¤·¤Æ¤Ï ¥Ï¥ó¥É¥Ö¥Ã¥¯¤Î NFS ¤Ë¤Ä¤¤¤Æ¤ÎÀá ¤ò¸«¤Æ¤¯¤À¤µ¤¤. ²¿¸Î Linux ¤Î¥Ç¥£¥¹¥¯¤ò NFS ¥Þ¥¦¥ó¥È¤Ç¤­¤Ê¤¤¤Î¤Ç¤·¤ç¤¦¤«? Linux ¤Î NFS ¤Î¥³¡¼¥É¤Ë¤è¤Ã¤Æ¤Ïµö²Ä¤µ¤ì¤¿port¤«¤é¤Î ¥ê¥¯¥¨¥¹¥È¤«¤é¤·¤«¼õ¤±¤Ä¤±¤Ê¤¤¤â¤Î¤¬¤¢¤ê¤Þ¤¹. °Ê²¼¤ò»î¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤. mount -o -P linuxbox:/blah /mnt ²¿¸Î Sun ¤Î¥Ç¥£¥¹¥¯¤ò NFS ¥Þ¥¦¥ó¥È¤Ç¤­¤Ê¤¤¤Î¤Ç¤·¤ç¤¦¤«? SunOS 4.X ¤¬Áö¤Ã¤Æ¤¤¤ë Sun Workstation ¤Ïµö²Ä¤µ¤ì¤¿ port ¤«¤é¤Î mount ¤Î¥ê¥¯¥¨¥¹¥È¤·¤«¼õ¤±¤Ä¤±¤Þ¤»¤ó. °Ê²¼¤ò»î¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤. mount -o -P sunbox:/blah /mnt PPP ¤Ç NeXTStep ¤ËÀܳ¤¹¤ëºÝ¤ËÌäÂ꤬¤¢¤ë¤Î¤Ç¤¹¤¬. /etc/rc.conf ¤ÎÃæ¤Ç¼¡¤ÎÊÑ¿ô¤ò NO ¤Ë¤·¤Æ, TCP extension ¤ò̵¸ú¤Ë¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤. tcp_extensions=NO Xylogic ¤Î Annex ¤âƱÍͤÎÌäÂ꤬¤¢¤ê¤Þ¤¹¤Î¤Ç, Annex ·Ðͳ¤Ç PPP ¤ò¤ª¤³¤Ê¤¦ ¾ì¹ç¤Ë¤â¤³¤ÎÊѹ¹¤ò¹Ô¤Ã¤Æ¤¯¤À¤µ¤¤. IP multicast ¤òÍ­¸ú¤Ë¤¹¤ë¤Ë¤Ï? 2.0 ¤«¤½¤ì°Ê¹ß¤Î FreeBSD ¤Ï, ɸ½à¤Î¾õÂ֤Ǵ°Á´¤Ë multicast ¤ËÂбþ¤·¤Æ¤¤¤Þ¤¹. ¸½ºß»ÈÍѤ·¤Æ¤¤¤ë·×»»µ¡¤ò multicast ¤Î router ¤È¤·¤Æ»ÈÍѤ¹¤ë¤Ë¤Ï, MROUTING ¤È¤¤¤¦¥ª¥×¥·¥ç¥ó¤òÄêµÁ¤·¤¿¥«¡¼¥Í¥ë¤òºî¤Ã¤¿¤¦¤¨¤Ç, mrouted ¤òÁö¤é¤»¤ëɬÍפ¬¤¢¤ê¤Þ¤¹. 2.2 ¤«¤½¤ì°Ê¹ß¤Î FreeBSD ¤Ê¤é¤Ð, /etc/rc.conf ¤Ç¥Õ¥é¥° mrouted_enable ¤ò "YES" ¤Ë¥»¥Ã¥È¤·¤Æ ¤ª¤¯¤³¤È¤Ç, ¥Ö¡¼¥È»þ¤Ë mrouted ¤òµ¯Æ°¤Ç¤­¤Þ¤¹. MBONEÍѤΥġ¼¥ë¤Ï ports Æâ¤ÎÀìÍѤΥ«¥Æ¥´¥ê¡¼ mbone ¤Ë¤¢¤ê¤Þ¤¹. vic ¤ä vat ¤È¤¤¤Ã¤¿²ñµÄÍѤΥġ¼¥ë¤òõ¤·¤Æ¤¤¤ë¾ì¹ç¤Ï¤³¤Î¾ì½ê¤ò ¸«¤Æ¤¯¤À¤µ¤¤. ¾Ü¤·¤¤¾ðÊó¤Ï Mbone Information Web ¤Ë¤¢¤ê¤Þ¤¹. DEC ¤Î PCI ¥Á¥Ã¥×¥»¥Ã¥È¤òÍѤ¤¤Æ¤¤¤ë network ¥«¡¼¥É¤Ë¤Ï¤É¤Î¤è¤¦¤Êʪ¤¬¤¢¤ê¤Þ¤¹¤«? Glen Foster ¤Ë¤è¤ë°ìÍ÷¤Ë, ¤è¤êmodern¤Êʪ¤òÄɲä·¤¿¤â¤Î¤ò °Ê²¼¤Ë¼¨¤·¤Þ¤¹. Vendor Model ---------------------------------------------- ASUS PCI-L101-TB Accton ENI1203 Cogent EM960PCI Compex ENET32-PCI D-Link DE-530 Dayna DP1203, DP2100 DEC DE435 Danpex EN-9400P3 JCIS Condor JC1260 Linksys EtherPCI Mylex LNP101 SMC EtherPower 10/100 (Model 9332) SMC EtherPower (Model 8432) TopWare TE-3500P Zynx ZX342 ²¿¸Î¼«Ê¬¤Î¥µ¥¤¥È¤Î¥Û¥¹¥È¤ËÂФ·¤Æ FQDN ¤ò»ÈÍѤ¹¤ëɬÍפ¬¤¢¤ë¤Î¤Ç¤¹¤«? ¼ÂºÝ¤Ë¤Ï¤½¤Î¥Û¥¹¥È¤ÏÊ̤Υɥᥤ¥ó¤Ë¤¢¤ë¤Î¤Ç¤Ï¤Ê¤¤¤Ç¤¹¤«. ¤¿¤È¤¨¤Ð, foo.bar.edu ¤È¤¤¤¦¥É¥á¥¤¥ó¤ÎÃæ¤«¤é, bar.edu ¥É¥á¥¤¥ó¤Ë¤¢¤ë ``mumble'' ¤È¤¤¤¦¥Û¥¹¥È¤ò»ØÄꤷ¤¿¤¤¾ì¹ç¤Ë¤Ï, ``mumble'' ¤À¤±¤Ç¤Ï ÂÌÌܤÇ, ``mumble.bar.edu'' ¤È¤¤¤¦ fully-qualified domain name ¤Ç »ØÄꤷ¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó. ÅÁÅýŪ¤Ë, BSD ¤Î BIND ¤Î resolver ¤Ç¤Ï¤³¤Î¤è¤¦¤Ê»ö¤Ï²Äǽ¤Ç¤·¤¿¤¬, FreeBSD ¤ËÆþ¤Ã¤Æ¤¤¤ë bind ¤Î¸½ºß¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¤Ï, ¼«Ê¬°Ê³°¤Î¥É¥á¥¤¥ó¤ËÂФ·¤Æ FQDN ¤Ç¤Ê¤¤ÊÌ̾¤ò¼«Æ°Åª¤Ë¤Ä¤±¤Æ¤¯¤ì¤ë¤è¤¦¤Ê»ö¤Ï¤¢¤ê¤Þ¤»¤ó. ¤·¤¿¤¬¤Ã¤Æ mumble ¤È¤¤¤¦¥Û¥¹¥È̾¤Ï mumble.foo.bar.edu ¤È¤¤¤¦Ì¾Á°¤«, ¤â¤·¤¯¤Ï root ¥É¥á¥¤¥óÆâ¤Ë¤¢¤ë¾ì¹ç¤Ë¤·¤«Å¬ÍѤµ¤ì¤Þ¤»¤ó. ¤³¤ì¤Ï, mumble.bar.edu ¤È mumble.edu ¤È¤¤¤¦¤³¤È¤Ê¤Ã¤¿¥É¥á¥¤¥ó̾¤ËÂФ·¤Æ¥Û¥¹¥È̾¤Î¥µ¡¼¥Á¤¬¤ª¤³¤Ê¤ï¤ì¤Æ¤¤¤¿ °ÊÁ°¤Î¿¶¤ëÉñ¤¤¤È¤Ï°Û¤Ê¤Ã¤¿¤â¤Î¤Ç¤¹. ¤³¤Î¤è¤¦¤Ê»ö¤¬°­¤¤Îã¤â¤·¤¯¤Ï ¥»¥­¥å¥ê¥Æ¥£¥Û¡¼¥ë¤È¤ß¤Ê¤µ¤ì¤ëÍýͳ¤Ë¤Ä¤¤¤Æ¤Ï RFC 1535 ¤ò¸«¤Æ¤¯¤À¤µ¤¤. /etc/resolv.conf ¤ÎÃæ¤Ç domain foo.bar.edu ¤È½ñ¤¤¤Æ¤¢¤ë¹Ô¤ò search foo.bar.edu bar.edu ¤Î¤è¤¦¤Ë½ñ¤­¤«¤¨¤ë¤³¤È¤Ç, ¾å¤Î¤è¤¦¤Ê»ö¤¬¤Ç¤­¤Þ¤¹. ¤·¤«¤·, RFC 1535 ¤Ë¤¢¤ë¤è¤¦¤Ë, search order ¤¬ ``¥í¡¼¥«¥ë¤Ê´ÉÍý¤È ¥Ñ¥Ö¥ê¥Ã¥¯¤Ê´ÉÍý¤Î¶­³¦'' ¤ò¤Þ¤¿¤¬¤Ê¤¤¤è¤¦¤Ë¤·¤Æ¤¯¤À¤µ¤¤. ¤¹¤Ù¤Æ¤Î¥Í¥Ã¥È¥ï¡¼¥¯¤ÎÁàºî¤ËÂФ·¤Æ ``Permission denied'' ¤È¤¤¤¦¥á¥Ã¥»¡¼¥¸¤¬É½¼¨¤µ¤ì¤ë¤Î¤Ç¤¹¤¬. IPFIREWALL ¥ª¥×¥·¥ç¥ó¤òÉÕ¤±¤Æ¥«¡¼¥Í¥ë¤ò¥³¥ó¥Ñ¥¤¥ë¤·¤¿¾ì¹ç¤Ë¤Ï, 2.1-STABLE ¤Î³«È¯¤ÎÅÓÃæ¤«¤éÊѹ¹¤Ë¤Ê¤Ã¤¿ 2.1.7R ¤Îɸ½àŪ¤ÊÊý¿Ë¤È¤·¤Æ, ÌÀ¼¨Åª¤Ëµö²Ä¤µ¤ì¤Æ¤¤¤Ê¤¤¤¹¤Ù¤Æ¤Î¥Ñ¥±¥Ã¥È¤ÏÍî¤È¤µ¤ì¤ëÀßÄê ¤Ë¤Ê¤Ã¤Æ¤¤¤ë»ö¤ò³Ð¤¨¤Æ¤ª¤¤¤Æ¤¯¤À¤µ¤¤. ¤â¤·¥Õ¥¡¥¤¥¢¥¦¥©¡¼¥ë¤ÎÀßÄê¤ò´Ö°ã¤¨¤¿¾ì¹ç¤Ë¥Í¥Ã¥È¥ï¡¼¥¯¤ÎÁàºî¤¬ºÆ¤Ó¤Ç¤­¤ë ¤è¤¦¤Ë¤¹¤ë¤Ë¤Ï, root ¤Ç¥í¥°¥¤¥ó¤·¤Æ¼¡¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤. ipfw add 65534 allow all from any to any /etc/rc.conf ¤Ë "firewall_type='open'" ¤òÄɲ䷤Ƥâ¤è¤¤ ¤Ç¤·¤ç¤¦. FreeBSD ¤Î¥Õ¥¡¥¤¥¢¥¦¥©¡¼¥ë¤ÎÀßÄê¤Ë¤Ä¤¤¤Æ¤Î¾ðÊó¤Ï FreeBSD ¥Ï¥ó¥É¥Ö¥Ã¥¯ ¤Ë¤¢¤ê¤Þ¤¹. IPFW ¤Î¥ª¡¼¥Ð¡¼¥Ø¥Ã¥É¤Ï¤É¤Î¤¯¤é¤¤¤Ç¤·¤ç¤¦¤«? ¤³¤ÎÅú¤¨¤Ï¤¢¤Ê¤¿¤Î¥ë¡¼¥ë¥»¥Ã¥È¤È¥×¥í¥»¥Ã¥µ¤Î¥¹¥Ô¡¼¥É¤Ë¤è¤Ã¤Æ ¤Û¤È¤ó¤É·è¤Þ¤ê¤Þ¤¹. ¥¤¡¼¥µ¥Í¥Ã¥È¤ËÂФ·¤Æ¾¯¤·¤Î¥ë¡¼¥ë¥»¥Ã¥È¤À¤±¤ò»È¤Ã ¤Æ¤¤¤ë¤Û¤É¤ó¤É¤Î¾ì¹ç¤Ë¤Ï, ¤½¤Î±Æ¶Á¤Ï̵»ë¤Ç¤­¤ëÄøÅ٤Ǥ¹. ¼Â ºÝ¤Î¬ÄêÃͤò¸«¤Ê¤¤¤ÈËþ­¤Ç¤­¤Ê¤¤Êý¡¹¤Î¤¿¤á¤Ë, ¼ÂºÝ¤Î¬Äê·ë ²Ì¤ò¤ª¸«¤»¤·¤Þ¤·¤ç¤¦. ¼¡¤Î¬Äê¤Ï 486-66(ÌõÃí: Intel ¼ÒÀ½ CPU i486, 66MHz ¤Î¤³¤È)¾å¤Ç 2.2.5-STABLE ¤ò»ÈÍѤ·¤Æ¤ª¤³¤Ê¤ï¤ì¤Þ¤·¤¿. IPFW ¤ÏÊѹ¹¤¬²Ã¤¨¤é¤ì¤Æ, ip_fw_chk ¥ë¡¼¥Á¥óÆâ¤Ç¤«¤«¤ë»þ´Ö¤ò ¬Äꤷ¤Æ 1000 ¥Ñ¥±¥Ã¥ÈËè¤Ë·ë²Ì¤ò¥³¥ó¥½¡¼¥ë¤Ëɽ¼¨¤¹¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹. ¤½¤ì¤¾¤ì 1000 ¤º¤Ä¤Î¥ë¡¼¥ë¤¬Æþ¤Ã¤Æ¤¤¤ë 2 ¤Ä¤Î¥ë¡¼¥ë¥»¥Ã¥È¤Ç¥Æ¥¹¥È¤¬ ¤ª¤³¤Ê¤ï¤ì¤Þ¤·¤¿. ¤Ò¤È¤ÄÌܤΥ롼¥ë¥»¥Ã¥È¤ÏºÇ°­¤Î¥±¡¼¥¹¤ò¸«¤ë¤¿¤á¤Ë ipfw add deny tcp from any to any 55555 ¤È¤¤¤¦¥ë¡¼¥ë¤ò·«¤êÊÖ¤·¤¿¤â¤Î¤Ç¤¹. ¥Ñ¥±¥Ã¥È¤¬(¥Ý¡¼¥ÈÈÖ¹æ¤Î¤»¤¤¤Ç)¤³¤Î¥ë¡¼¥ë¤Ë¥Þ¥Ã¥Á¤·¤Ê¤¤¤³¤È¤¬¤ï¤«¤ë¤Þ¤Ç¤Ë, ²¿ÅÙ¤â¼Â¹Ô¤µ¤ì¤ë IPFW ¤Î¥Ñ¥±¥Ã¥È¥Á¥§¥Ã¥¯¥ë¡¼¥Á¥ó¤Ë¤è¤Ã¤Æ, ¤³¤ì¤ÏºÇ°­¤Î¥±¡¼¥¹¤ò¼¨¤·¤Þ¤¹. ¤³¤Î¥ë¡¼¥ë¤ò 999 ¸Ä·«¤êÊÖ¤·Ê¤٤¿¸å¤Ë allow ip from any to any¤¬ ½ñ¤«¤ì¤Æ¤¤¤Þ¤¹. 2¤ÄÌܤΥ롼¥ë¥»¥Ã¥È¤Ï, ¤Ê¤ë¤Ù¤¯Á᤯¥Á¥§¥Ã¥¯¤¬½ªÎ»¤¹¤ë¤è¤¦¤Ë½ñ¤«¤ì¤¿¤â¤Î¤Ç¤¹: ipfw add deny ip from 1.2.3.4 to 1.2.3.4 ¤³¤Î¥ë¡¼¥ë¤Ç¤Ï, ȯ¿®¸µ¤Î IP ¥¢¥É¥ì¥¹¤¬¥Þ¥Ã¥Á¤·¤Ê¤¤¤Î¤Ç¥Á¥§¥Ã¥¯¤Ï ¤¹¤°¤Ë½ªÎ»¤·¤Þ¤¹. ¾å¤Î¥ë¡¼¥ë¥»¥Ã¥È¤È¤ª¤Ê¤¸¤è¤¦¤Ë, 1000 ¸ÄÌܤÎrule¤Ï allow ip from any to any¤Ç¤¹. 1 ¤ÄÌܤΥ롼¥ë¥»¥Ã¥È¤Ç¤Ï, ¥Ñ¥±¥Ã¥È¤¢¤¿¤ê¤Î¥ª¡¼¥Ð¥Ø¥Ã¥É¤Ï¤ª¤è¤½ 2.703ms/packet, ¤³¤ì¤Ï¤À¤¤¤¿¤¤ 1 ¤Ä¤Î¥ë¡¼¥ë¤¢¤¿¤ê 2.7 ¥Þ¥¤¥¯¥íÉà ¤«¤«¤Ã¤Æ¤¤¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹. ¤·¤¿¤¬¤Ã¤Æ, ¤³¤Î¥ë¡¼¥ë¤Ë¤ª¤±¤ë¥Ñ¥±¥Ã¥È½èÍý»þ´Ö¤ÎÍýÏÀŪ¤Ê¸Â³¦¤Ï, ËèÉÃÌó 370 ¥Ñ¥±¥Ã¥È¤Ç¤¹. 10Mbps ¤Î¥¤¡¼¥µ¥Í¥Ã¥È¤Ç 1500 ¥Ð¥¤¥È°Ê²¼¤Î¥Ñ¥±¥Ã¥È¥µ¥¤¥º¤ò²¾Äꤹ¤ë¤È, ¥Ð¥ó¥ÉÉý¤ÎÍøÍѸúΨ¤Ï 55.5% ¤¬¸Â³¦¤È¤Ê¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹. 2 ¤ÄÌܤΥ롼¥ë¥»¥Ã¥È¤Ç¤Ï, ¤½¤ì¤¾¤ì¤Î¥Ñ¥±¥Ã¥È¤¬¤ª¤è¤½ 1.172ms¤Ç½èÍý¤µ¤ì¤Æ¤¤¤Þ¤¹¤Î¤Ç, ¤À¤¤¤¿¤¤ 1 ¤Ä¤Î¥ë¡¼¥ë¤¢¤¿¤ê 1.2 ¥Þ¥¤¥¯¥íÉà ¤«¤«¤Ã¤Æ¤¤¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹. ¥Ñ¥±¥Ã¥È½èÍý»þ´Ö¤ÎÍýÏÀŪ¤Ê¸Â³¦¤Ï, ËèÉÃÌó 853 ¥Ñ¥±¥Ã¥È¤È¤Ê¤ê¤Þ¤¹¤Î¤Ç, 10Mbps Ethernet¤Î¥Ð¥ó¥ÉÉý¤ò»È¤¤Àڤ뤳¤È¤¬¤Ç¤­¤Þ¤¹. ¤³¤Î¥Æ¥¹¥È¤Ç¤Î¥ë¡¼¥ë¿ô¤Ï¿²á¤®¤ë¤¿¤á, ¼ÂºÝ¤Ë»ÈÍѤ¹¤ëºÝ¤Î ·ë²Ì¤òÈ¿±Ç¤·¤Æ¤¤¤ëÌõ¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó. ¤³¤ì¤é¤Ï¾å¤Ë¼¨¤·¤¿¿ôÃͤò½Ð¤¹ ¤¿¤á¤À¤±¤ËÍѤ¤¤é¤ì¤¿¤â¤Î¤Ç¤¹. ¸úΨ¤ÎÎɤ¤¥ë¡¼¥ë¥»¥Ã¥È¤òºî¤ë¤¿¤á¤Ë¤Ï, ¼¡¤Î¤è¤¦¤Ê»ö¤ò¹Í¤¨¤Æ¤ª¤±¤Ð¤è¤¤¤Ç¤·¤ç¤¦. `³ÎÄꤷ¤Æ¤¤¤ë' ¥ë¡¼¥ë¤ÏÀèÆ¬¤ÎÊý¤Ë»ý¤Ã¤Æ¤­¤Æ¤¯¤À¤µ¤¤. ¤³¤ì¤Ï, ¿¿ô¤Î TCP ¤Î¥È¥é¥Õ¥£¥Ã¥¯¤¬¤³¤Î¥ë¡¼¥ë¤Ç½èÍý¤µ¤ì¤ë¤¿¤á¤Ç¤¹. ¤½¤·¤Æ¤³¤Î¥ë¡¼¥ë¤ÎÁ°¤Ë¤Ï allow tcp ¤È¤¤¤¦µ­½Ò¤òÃÖ¤«¤Ê¤¤¤Ç¤¯¤À¤µ¤¤. Îɤ¯»È¤ï¤ì¤ë¥ë¡¼¥ë¤ò, ¤¢¤Þ¤êÎɤ¯»È¤ï¤ì¤Ê¤¤¥ë¡¼¥ë¤è¤ê¤â Á°¤ÎÊý¤Ë(¤â¤Á¤í¤ó¥Õ¥¡¥¤¥¢¥¦¥©¡¼¥ë¤Îµö²ÄÀßÄê¤òÊѤ¨¤Ê¤¤ÈϰϤÇ) »ý¤Ã¤Æ¤­¤Æ¤¯¤À¤µ¤¤. ipfw -a l ¤Î¤è¤¦¤·¤Æ¥Ñ¥±¥Ã¥È¿ô¤ÎÅý·×¤ò¼è¤ë¤³¤È¤Ç, ¤É¤Î¥ë¡¼¥ë¤¬ºÇ¤â¤è¤¯»È¤ï¤ì¤Æ¤¤¤ë¤«¤òÄ´¤Ù¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. ¥µ¡¼¥Ó¥¹Í×µá¤ò¾¤Î¥Þ¥·¥ó¤Ë¥ê¥À¥¤¥ì¥¯¥È¤¹¤ë¤Ë¤Ï? FTP ¤Ê¤É¤Î¥µ¡¼¥Ó¥¹¤Î¥ê¥¯¥¨¥¹¥È¤Ï, 'socket' ¥Ñ¥Ã¥±¡¼¥¸¤òÍøÍÑ ¤·¤Æ¥ê¥À¥¤¥ì¥¯¥È¤Ç¤­¤Þ¤¹. 'socket' ¥Ñ¥Ã¥±¡¼¥¸¤Ï ports ¤Î 'sysutils' ¥«¥Æ¥´¥ê¤Ë´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹. ¥ê¥À¥¤¥ì¥¯¥È¤·¤¿¤¤¥µ¡¼¥Ó ¥¹(/etc/inet.conf¤Î¥³¥Þ¥ó¥É¹Ô¤ò¥½¥±¥Ã¥È¤ò¸Æ¤Ö¤è¤¦¤ËÊÑ ¹¹¤·¤Æ¤¯¤À¤µ¤¤. Êѹ¹Îã: ftp stream tcp nowait nobody /usr/local/bin/socket socket ftp.foo.com ftp ¤³¤³¤Ç 'ftp.foo.com' ¤Ï¥ê¥À¥¤¥ì¥¯¥ÈÀè¤Î¥Û¥¹¥È̾, ¹Ô¤ÎºÇ¸å¤Î'ftp' ¤Ï¥Ý¡¼¥È¤Ç¤¹. ¥Ð¥ó¥ÉÉý¤Î´ÉÍý¤ò¹Ô¤Ê¤¨¤ë¥Ä¡¼¥ë¤Ï¤É¤³¤Ç¼ê¤ËÆþ¤ì¤é¤ì¤Þ¤¹¤«? FreeBSD ÍѤΥХó¥ÉÉý´ÉÍý¥Ä¡¼¥ë¤Ë¤Ï, ̵ÎÁ¤Ç¼ê¤ËÆþ¤ì¤é¤ì¤ë ALTQ ¤È, Emerging Technologies ¤«¤éÆþ¼ê¤Ç¤­¤ë Bandwidth Manager ¤È¤¤¤¦»ÔÈΤΤâ¤Î¤Î 2 ¼ïÎब¤¢¤ê¤Þ¤¹. ¤Ê¤¼ ``/dev/bpf0: device not configured" ¤¬½Ð¤ë¤Î¤Ç¤·¤ç¤¦¤«? ¥Ð¡¼¥¯¥ì¡¼¥Ñ¥±¥Ã¥È¥Õ¥£¥ë¥¿(bpf) ¥É¥é¥¤¥Ð¤Ï, ¤½¤ì¤òÍøÍѤ¹¤ë¥×¥í¥°¥é¥à¤ò¼Â¹Ô¤¹¤ëÁ°¤ËÍ­¸ú¤Ë¤·¤Æ¤ª¤¯É¬Íפ¬¤¢¤ê¤Þ¤¹. ¥«¡¼¥Í¥ë¥³¥ó¥Õ¥£¥°¥Õ¥¡¥¤¥ë¤Ë, ¼¡¤Î¤è¤¦¤ËÄɲ䷤ƥ«¡¼¥Í¥ë¤ÎºÆ¹½ÃÛ¤ò¤·¤Æ²¼¤µ¤¤. pseudo-device bpfilter # Berkeley Packet Filter ¤½¤·¤ÆºÆµ¯Æ°¤·¤Æ¤«¤é, ¼¡¤Ë¥Ç¥Ð¥¤¥¹¥Î¡¼¥É¤òºîÀ®¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹. ¤³¤ì¤Ï, ¼¡¤Î¤è¤¦¤ËÆþÎϤ·, /dev ¤òÊѹ¹¤¹¤ë¤³¤È¤Ç¹Ô¤Ê¤¤¤Þ¤¹. # sh MAKEDEV bpf0 ¥Ç¥Ð¥¤¥¹¥Î¡¼¥É¤ÎºîÀ®¤Î¾ÜºÙ¤Ï, FreeBSD ¥Ï¥ó¥É¥Ö¥Ã¥¯¤Î¥Ç¥Ð¥¤¥¹¥Î¡¼¥É¤Ë´Ø¤¹¤ëÀá ¤ò»²¾È¤·¤Æ²¼¤µ¤¤. PPP ppp ¤¬Æ°¤­¤Þ¤»¤ó. ¤É¤³¤ò´Ö°ã¤¨¤Æ¤¤¤ë¤Î¤Ç¤·¤ç¤¦? ¤Þ¤º ppp ¤Î¥Þ¥Ë¥å¥¢¥ë¤È, ¥Ï¥ó¥É¥Ö¥Ã¥¯¤Î ppp ¤Î¥»¥¯¥·¥ç¥ó¤òÆÉ¤ó¤Ç¤ß¤Þ¤·¤ç¤¦. ¼¡¤Ë, set log Phase Chat Connect Carrier lcp ipcp ccp command ¤È¤¤¤¦Ì¿Îá¤ò ppp ¤Î¥³¥Þ¥ó¥É¥×¥í¥ó¥×¥È¤ËÂФ·¤ÆÂǤÁ¹þ¤à¤«, ÀßÄê¥Õ¥¡¥¤¥ë /etc/ppp/ppp.conf ¤Ë²Ã¤¨¤Æ (default ¥»¥¯¥·¥ç¥ó¤ÎÀèÆ¬¤Ë²Ã¤¨¤ë¤Î¤¬°ìÈÖÎɤ¤¤Ç¤·¤ç¤¦) ¥í¥°¤òÍ­¸ú¤Ë¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤. ¤½¤ÎºÝ, /etc/syslog.conf ¤Ë !ppp *.* /var/log/ppp.log ¤È½ñ¤«¤ì¤¿¹Ô¤¬´Þ¤Þ¤ì¤Æ¤¤¤ë¤«, ¤Þ¤¿, /var/log/ppp.log ¤¬Â¸ºß¤·¤Æ¤¤¤ë¤«¤É¤¦¤«³Î¤«¤á¤Æ¤ª¤¤¤Æ¤¯¤À¤µ¤¤. ¤µ¤Æ, ¤³¤ì¤Ç ²¿¤¬µ¯¤­¤Æ¤¤¤ë¤Î¤«ÆÍ¤­»ß¤á¤ë¤¿¤á¤Ë, ¥í¥°¥Õ¥¡¥¤¥ë¤«¤é¤¿¤¯¤µ¤ó¤Î ¾ðÊó¤òÆÀ¤é¤ì¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤·¤¿. ¥í¥°¤ËÌõ¤Îʬ¤é¤Ê¤¤Éôʬ¤¬¤¢¤Ã¤Æ¤â ¿´ÇÛ¤´ÌµÍÑ. ¤¢¤Ê¤¿¤¬½õ¤±¤òµá¤á¤¿Ã¯¤«¤Ë¤È¤Ã¤Æ¤Ï, ¤½¤ÎÉôʬ¤¬ °ÕÌ£¤ò¤Ê¤¹¾ì¹ç¤¬¤¢¤ë¤Î¤Ç¤¹. ÌõÃí: ¥í¥°¤Î¼èÆÀ¤Ë syslog ¤ò»ÈÍѤ¹¤ë¤è¤¦¤Ë¤Ê¤Ã¤¿¤Î¤Ï 2.2.5 °Ê¹ß¤«¤é¤Ç¤¹. »ÈÍÑÃæ¤Î ppp ¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç "set log" Ì¿Îá¤ò²ò¼á¤·¤Ê¤¤¾ì¹ç¤Ï, ºÇ¿·ÈÇ ¤ò¥À¥¦¥ó¥í¡¼¥É¤¹¤Ù¤­¤Ç¤¹. FreeBSD ¤Î 2.1.5 °Ê¹ß¤Ç¥Ó¥ë¥É¤Ç¤­¤Þ¤¹. ppp ¤ò¼Â¹Ô¤¹¤ë¤È¥Ï¥ó¥°¤·¤Þ¤¹ ¥Û¥¹¥È̾¤Î²ò·è¤¬¤¦¤Þ¤¯¤¤¤Ã¤Æ¤¤¤Ê¤¤¤Î¤Ç¤·¤ç¤¦. ¤Þ¤º, ¥ê¥¾¥ë¥Ð¤¬ /etc/hosts¤ò»²¾È¤¹¤ë¤è¤¦¤Ë, /etc/host.conf ¤ÎºÇ½é¤Î¹Ô¤Ë host ¤È½ñ¤­¹þ¤ó¤Ç¤¯¤À¤µ¤¤. ¤Ä¤®¤Ë, /etc/hosts¤Ë»ÈÍѤ·¤Æ¤¤¤ë¥Þ¥·¥ó¤Î¥¨¥ó¥È¥ê¤ò ½ñ¤­²Ã¤¨¤Þ¤¹. ¥í¡¼¥«¥ë¤Ç¥Í¥Ã¥È¥ï¡¼¥¯¤ò»ÈÍѤ·¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï, localhost ¤Î¹Ô¤ò°Ê²¼¤Î¤è¤¦¤ËÊѹ¹¤·¤Æ¤¯¤À¤µ¤¤: 127.0.0.1 foo.bar.com foo localhost »ÈÍѤ·¤Æ¤¤¤ë¥Û¥¹¥È¤Î¥¨¥ó¥È¥ê¤òÄɲ䷤Ƥ⤫¤Þ¤¤¤Þ¤»¤ó. ¾ÜºÙ¤Ï´ØÏ¢¤¹¤ë¥Þ¥ó¥Ú¡¼¥¸¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤. ppp ¤¬ -auto ¥â¡¼¥É¤Ç¥À¥¤¥¢¥ë¤·¤Æ¤¯¤ì¤Ê¤¤ ¤Þ¤ººÇ½é¤Ë, ¥Ç¥Õ¥©¥ë¥È¥ë¡¼¥È¤¬³ÎΩ¤·¤Æ¤¤¤ë¤«¤É¤¦¤«¥Á¥§¥Ã¥¯¤·¤Æ ¤¯¤À¤µ¤¤. netstat -rn ¤ò¼Â¹Ô¤¹¤ë¤È, °Ê²¼¤Î¤è¤¦¤Ê¾ðÊó¤¬É½¼¨¤µ¤ì¤ë¤Ï¤º¤Ç¤¹. Destination Gateway Flags Refs Use Netif Expire default 10.0.0.2 UGSc 0 0 tun0 10.0.0.2 10.0.0.1 UH 0 0 tun0 ¤³¤ì¤Ï¤¢¤Ê¤¿¤¬¥Ï¥ó¥É¥Ö¥Ã¥¯¤ä¥Þ¥Ë¥å¥¢¥ë, ppp.conf.sample ¤ÎÃæ¤Ç ½Ð¤Æ¤¯¤ë¥¢¥É¥ì¥¹¤ò»ÈÍѤ·¤Æ¤¤¤ë¤È²¾Äꤷ¤¿¾ì¹ç¤ÎÎã¤Ç¤¹. ¥Ç¥Õ¥©¥ë¥È¥ë¡¼¥È¤¬³ÎΩ¤·¤Æ¤¤¤Ê¤¤¾ì¹ç, ppp.conf ¤ÎÃæ¤Î HISADDR ¤¬Íý²ò¤Ç¤­¤Ê¤¤, ¸Å¤¤¥Ð¡¼¥¸¥ç¥ó¤Î ppp ¤¬Áö¤Ã¤Æ¤¤¤ë²ÄǽÀ­¤¬¤¢¤ê¤Þ¤¹. FreeBSD 2.2.5 ¤è¤êÁ°¤Î ¥Ð¡¼¥¸¥ç¥ó¤ËÉÕ°¤·¤Æ¤¤¤¿ ppp ¤ò»ÈÍѤ·¤Æ¤¤¤ë¾ì¹ç, add 0 0 HISADDR ¤È½ñ¤«¤ì¤¿¹Ô¤ò°Ê²¼¤Î¤è¤¦¤Ë½¤Àµ¤·¤Æ¤¯¤À¤µ¤¤. add 0 0 10.0.0.2 netstat -rn ¤Ç¥Ç¥Õ¥©¥ë¥È¥ë¡¼¥È¤Î¾ðÊó¤¬É½¼¨¤µ¤ì¤Ê¤¤¾ì¹ç, ¤â¤¦°ì¤Ä, /etc/rc.conf (2.2.2 ¤è¤êÁ°¤Î¥ê¥ê¡¼¥¹¤Ç¤Ï /etc/sysconfig ¤È¸Æ¤Ð¤ì¤Æ¤¤¤Þ¤·¤¿) ¤ÎÃæ¤Ç¥Ç¥Õ¥©¥ë¥È¤Î ¥ë¡¼¥¿¤ò¸í¤Ã¤ÆÀßÄꤷ, ppp.conf ¤«¤é delete ALL ¤Î¹Ô¤ò¤¦¤Ã¤«¤ê¾Ã¤·¤Æ¤·¤Þ¤Ã¤¿²ÄǽÀ­¤¬¤¢¤ê¤Þ¤¹. ¤³¤Î¾ì¹ç¤Ï, ¥Ï¥ó¥É¥Ö¥Ã¥¯¤Î ¥·¥¹¥Æ¥à¤ÎºÇ½ªÀßÄê ¤Î¹à¤òÆÉ¤ßľ¤·¤Æ¤¯¤À¤µ¤¤. "No route to host" ¤È¤Ï¤É¤¦¤¤¤¦°ÕÌ£¤Ç¤¹¤«? ¤³¤Î¥¨¥é¡¼¤ÏÄ̾ï, /etc/ppp/ppp.linkup ¤Ë°Ê²¼¤Î¤è¤¦¤Ê ¥»¥¯¥·¥ç¥ó¤¬Ìµ¤¤¾ì¹ç¤Ëµ¯¤³¤ê¤Þ¤¹. MYADDR: delete ALL add 0 0 HISADDR ¤³¤ì¤ÏưŪ IP ¥¢¥É¥ì¥¹¤ò»ÈÍѤ·¤Æ¤¤¤ë¾ì¹ç, ¤Þ¤¿¤Ï¥²¡¼¥È¥¦¥§¥¤¤Î ¥¢¥É¥ì¥¹¤òÃΤé¤Ê¤¤¾ì¹ç¤Ë¤Î¤ßɬÍפÊÀßÄê¤Ç¤¹. ¥¤¥ó¥¿¥é¥¯¥Æ¥£¥Ö¥â¡¼¥É ¤ò»ÈÍѤ·¤Æ¤¤¤ë¾ì¹ç, ¥Ñ¥±¥Ã¥È¥â¡¼¥É ¤ËÆþ¤Ã¤¿¸å¤Ç (¥×¥í¥ó¥×¥È¤¬ PPP ¤ÈÂçʸ»ú¤ËÊѤï¤Ã¤¿¤é¥Ñ¥±¥Ã¥È¥â¡¼¥É¤ËÆþ¤Ã¤¿¤·¤ë¤·¤Ç¤¹), °Ê²¼¤ÎÌ¿Îá¤òÆþÎϤ·¤Æ¤¯¤À¤µ¤¤. delete ALL add 0 0 HISADDR ¾Ü¤·¤¤¾ðÊó¤Ë¤Ä¤¤¤Æ¤Ï, ¥Ï¥ó¥É¥Ö¥Ã¥¯¤Î PPP ¤ÈưŪ IP ÀßÄê ¤Î¹à¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤. 3 ʬ¤Û¤É·Ð¤Ä¤ÈÀܳ¤¬ÀÚ¤ì¤Æ¤·¤Þ¤¦ ppp ¤Î¥¿¥¤¥à¥¢¥¦¥È¤Ï ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï 3 ʬ¤Ç¤¹. ¤³¤ì¤Ï set timeout NNN ¤È¤¤¤¦Ì¿Îá¤Ë¤è¤Ã¤ÆÄ´À°¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. NNN ¤Ë¤Ï Àܳ¤¬ÀÚ¤ì¤ë¤Þ¤Ç¤Î¥¢¥¤¥É¥ë»þ´Ö¤¬Éÿô¤ÇÆþ¤ê¤Þ¤¹. NNN ¤¬ 0 ¤Î¾ì¹ç, ¥¿¥¤¥à¥¢¥¦¥È¤Ë¤è¤ëÀÚÃǤϵ¯¤³¤ê¤Þ¤»¤ó. ¤³¤Î¥³¥Þ¥ó¥É¤Ï ppp.conf ¤ËÆþ¤ì¤ë¤³¤È¤â, ¥¤¥ó¥¿¥é¥¯¥Æ¥£¥Ö¥â¡¼¥É¤Ç¥×¥í¥ó¥×¥È¤«¤éÆþÎϤ¹¤ë¤³¤È¤â ¤Ç¤­¤Þ¤¹. ¥½¥±¥Ã¥È¤òÍѤ¤¤ë telnet ¤« pppctl ¤ò»ÈÍѤ·, ppps ¥µ¡¼¥Ð¤ËÀܳ¤¹¤ë¤³¤È¤Ë¤è¤Ã¤Æ, ²óÀþ¤¬¥¢¥¯¥Æ¥£¥Ö¤Ê´Ö¤Ë¸ÂÄꤷ¤Æ¥¿¥¤¥à¥¢¥¦¥È¤Î»þ´Ö¤òÄ´À°¤¹¤ë¤³¤È¤â ²Äǽ¤Ç¤¹. ÌõÃí pppctl ¤Ï 2.2.5R ¤«¤é¤Ç¤¹. ¾Ü¤·¤¤¾ðÊó¤Ï ppp ¤Î¥Þ¥Ë¥å¥¢¥ë¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤. Éé²Ù¤¬¹â¤¤¤ÈÀܳ¤¬ÀÚ¤ì¤Æ¤·¤Þ¤¦ Link Quality Reporting (LQR) ¤ÎÀßÄê¤ò¹Ô¤Ã¤Æ¤¤¤ë¾ì¹ç, ¥Þ¥·¥ó¤ÈÀܳÀè¤Î´Ö¤ÇÈó¾ï¤Ë¤¿¤¯¤µ¤ó¤Î LQR ¥Ñ¥±¥Ã¥È¤¬¼º¤ï¤ì¤Æ¤¤¤ë ²ÄǽÀ­¤¬¤¢¤ê¤Þ¤¹. ·ë²Ì¤È¤·¤Æ ppp ¤Ï²óÀþ¤Î¶ñ¹ç¤¤¤¬°­¤¤¤È¹Í¤¨, ²óÀþ¤òÀÚÃǤ¹¤ë¤Î¤Ç¤¹. 2.2.5 ¤è¤êÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤Î FreeBSD ¤Ç¤Ï LQR ¤Ï¥Ç¥Õ¥©¥ë¥È¤ÇÍ­¸ú¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹. ¸½ºß¤Ç¤Ï¥Ç¥Õ¥©¥ë¥È¤Î¾õÂÖ¤Ç Ìµ¸ú¤Ç¤¹. LQR ¤Ï°Ê²¼¤ÎÌ¿Îá¤Ç̵¸ú¤Ë¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. disable lqr Àܳ¤¬¥é¥ó¥À¥à¤ËÀÚ¤ì¤Æ¤·¤Þ¤¦ »þ¡¹, ¥Î¥¤¥º¤Î¿¤¤²óÀþ, ¤¢¤ë¤¤¤ÏÂÔ¤Áµ¡Ç½ÉÕ¤­¤Î²óÀþ¤Ç¤Ï, ¥â¥Ç¥à¤¬ (¸í¤Ã¤Æ) ¥­¥ã¥ê¥¢¤ò¼º¤Ã¤¿¤È»×¤¤¹þ¤ß, ¥Ï¥ó¥°¥¢¥Ã¥×¤·¤Æ¤·¤Þ¤¦ ¤³¤È¤¬¤¢¤ê¤Þ¤¹. Âç¿¿ô¤Î¥â¥Ç¥à¤Ç¤Ï, °ì»þŪ¤Ê¥­¥ã¥ê¥¢¤ÎÁÓ¼º¤Ë¤É¤ì¤À¤±²æËý¤¹¤ë¤« ÀßÄê¤Ç·è¤á¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. Î㤨¤Ð USR Sportster ¤Ç¤Ï, S10 ¥ì¥¸¥¹¥¿ ¤ÎÃͤò 10 Çܤ·¤¿Éÿô¤¬¤½¤ÎÃͤˤʤê¤Þ¤¹. ¤³¤Î¾ì¹ç, ¥â¥Ç¥à¤ò¤â¤Ã¤È ¤Î¤ó¤Ó¤ê²°¤µ¤ó¤Ë¤¹¤ë¤Ë¤Ï, dial ¹Ô¤Ë¼¡¤Î¤è¤¦¤Êʸ»úÎó¤ò²Ã¤¨¤ë¤È Îɤ¤¤Ç¤·¤ç¤¦. set dial "...... ATS10=10 OK ......" ¾Ü¤·¤¯¤Ï¤ª»È¤¤¤Î¥â¥Ç¥à¤Î¥Þ¥Ë¥å¥¢¥ë¤ò¤´Í÷¤¯¤À¤µ¤¤. Àܳ¤¬ÉÔµ¬Â§¤Ë¥Ï¥ó¥°¥¢¥Ã¥×¤·¤Æ¤·¤Þ¤¦ ¤¿¤¯¤µ¤ó¤Î¿Í¤¬, ¸¶°øÉÔÌÀ¤Î¥Ï¥ó¥°¥¢¥Ã¥×¤ò·Ð¸³¤·¤Æ¤¤¤Þ¤¹. ¸¡¾Ú¤Î¤¿¤á¤ËɬÍפʤΤÏ, ¤Þ¤º¤É¤Á¤é¦¤Î¥ê¥ó¥¯¤Ç¤½¤ì¤¬µ¯¤³¤Ã¤Æ¤¤¤ë¤«, ¤È¤¤¤¦¤³¤È¤Ç¤¹. ³°ÉôÀܳ·¿¥â¥Ç¥à¤òÍøÍѤ·¤Æ¤¤¤ë¤Ê¤é, ñ¤Ë ping ¤ò»È¤¦¤³¤È¤Ç, ¥Ç¡¼¥¿¤òÁ÷¿®¤¹¤ë¤È¤­¤Ë TD ¥é¥ó¥×¤¬ÅÀÅô¤¹¤ë¤«¤É¤¦¤«¤ò³Îǧ¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. ¤â¤·, TD ¥é¥ó¥×¤¬ÅÀÅô¤·¤Æ, RD ¥é¥ó¥×¤¬ÅÀÅô¤·¤Ê¤±¤ì¤Ð, ÌäÂê¤Ï²óÀþ¤Î¸þ¤³¤¦Â¦¤Ë¤¢¤ê¤Þ¤¹. TD ¤¬ÅÀÅô¤·¤Ê¤±¤ì¤Ð, ÌäÂê¤Ï²óÀþ¤Î¤³¤Á¤é¦¤Ç¤¹. Æâ¢·¿¥â¥Ç¥à¤Î¾ì¹ç, ppp.conf ¥Õ¥¡¥¤¥ë¤Ë set server ¥³¥Þ¥ó¥É¤òÆþ¤ì¤ëɬÍפ¬¤¢¤ë¤Ç¤·¤ç¤¦. ²óÀþ¤¬ÀÚÃǤµ¤ì¤¿¤È¤­, pppctl ¤ò»È¤Ã¤Æ ppp ¤ËÀܳ¤·¤Æ¤¯¤À¤µ¤¤. ¤½¤Î¤È¤­, ¥Í¥Ã¥È¥ï¡¼¥¯Àܳ¤¬µÞ¤ËÉüµì(¿ÇÃÇ¥½¥±¥Ã¥È¤Ø¤Î¥¢¥¯¥»¥¹¤Ç, ppp ¤¬Éü³è¤·¤Þ¤¹)¤¹¤ë¤«, ¤â¤·¤¯¤ÏÀܳ¼«ÂΤ¬Á´¤¯¤Ç¤­¤Ê¤¤ (¤¿¤À¤·, ppp µ¯Æ°»þ¤Ë set socket ¥³¥Þ¥ó¥É¤¬¤Á¤ã¤ó¤È¼Â¹Ô¤µ¤ì¤Æ¤¤¤ë¤È¤·¤Þ¤¹)¤È¤·¤¿¤é, ÌäÂê¤Ï²óÀþ¤Î¤³¤Á¤é¦¤Ç¤¹. ¤â¤·, Àܳ²Äǽ¤Ç, ¤«¤Ä¾õ¶·¤¬ÊѲ½¤·¤Ê¤±¤ì¤Ð, set log local async ¤ò»È¤Ã¤Æ¥í¡¼¥«¥ëÈ󯱴ü¥í¥°(async logging)¤òÍ­¸ú¤Ë¤·, ping ¤ò¾¤Î¥¦¥£¥ó¥É¥¦¤«¥¿¡¼¥ß¥Ê¥ë¤«¤é»È¤Ã¤Æ¤¯¤À¤µ¤¤. È󯱴ü¥í¥°¤Ë¤Ï, ¤³¤Á¤é¦¤Î¥ê¥ó¥¯¤ÎÁ÷¼õ¿®¥Ç¡¼¥¿¤¬µ­Ï¿¤µ¤ì¤Þ¤¹. ¤â¤·, ¥Ç¡¼¥¿¤¬Á÷¿®¤µ¤ì¤¿¤Ë¤â¤«¤«¤ï¤é¤ºÊ֤äÆÍè¤Æ¤¤¤Ê¤±¤ì¤Ð, ÌäÂê¤Ï²óÀþ¤Î¸þ¤³¤¦Â¦¤Ë¤¢¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹. ÌäÂ꤬²óÀþ¤Î¤É¤Á¤é¦¤«¤Ë¤¢¤ë¤³¤È¤¬Ê¬¤«¤Ã¤¿¤é, ¤Ä¤®¤ÎÆó¤Ä¤Î²ÄǽÀ­¤¬¹Í¤¨¤é¤ì¤ë¤Ç¤·¤ç¤¦. ²óÀþ¤Î¸þ¤³¤¦Â¦¤Ç¤ÎÈ¿±þ¤¬¤Ê¤¤ ¤³¤ì¤ËÂнè¤Ç¤­¤ë¤³¤È¤Ï¤Û¤È¤ó¤É¤¢¤ê¤Þ¤»¤ó. ÂçÉôʬ¤Î ISP ¤Ï, Microsoft ¼ÒÀ½ OS °Ê³°¤ÎÍøÍѼԤËÂФ·¤Æ¤Î¥µ¥Ý¡¼¥È¤òµñÈݤ¹¤ë¤Ç¤·¤ç¤¦. ppp.conf ¥Õ¥¡¥¤¥ë¤ÎÃæ¤Ë enable lqr ¤òµ­½Ò¤¹¤ë¤³¤È¤Ç ppp ¤¬²óÀþ¤Î¸þ¤³¤¦Â¦¤ÇȯÀ¸¤¹¤ë¥Ï¥ó¥°¥¢¥Ã¥×¤ò¸¡½Ð¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¤¬, ¤³¤Î¸¡½Ð¤ÏÈæ³ÓŪÃÙ¤¤¤¿¤á, ¤¢¤Þ¤êÌò¤ËΩ¤Á¤Þ¤»¤ó. ¤Þ¤¿, ¤¢¤Ê¤¿¤Ï user-ppp ¤òÍøÍѤ·¤Æ¤¤¤ë¤³¤È¤ò ISP ¤ËÃΤé¤ì¤¿¤¯¤Ê¤¤¤È»×¤¦¤«¤âÃΤì¤Þ¤»¤ó¤Í. ¤Þ¤ººÇ½é¤Ë, ¤³¤Á¤é¦¤Î°µ½Ìµ¡Ç½¤òÁ´¤ÆÌµ¸ú¤Ë¤·¤Æ¤ß¤Æ²¼¤µ¤¤. ¤½¤ì¤Ë¤Ï, ÀßÄê¥Õ¥¡¥¤¥ë¤ò¤Ä¤®¤Î¤è¤¦¤Ë¤·¤Þ¤¹. disable pred1 deflate deflate24 protocomp acfcomp shortseq vj deny pred1 deflate deflate24 protocomp acfcomp shortseq vj ¤½¤·¤ÆºÆÀܳ¤·, Êѹ¹Á°¤ÈƱ¤¸¤è¤¦¤ËÄÌ¿®¤Ç¤­¤ë¤³¤È¤ò³Îǧ¤·¤Þ¤¹. ¤â¤·¤³¤ì¤Ë¤è¤Ã¤Æ¾õ¶·¤¬²þÁ±¤µ¤ì¤ë¤«, ´°Á´¤Ë²ò·è¤·¤¿¤é, (¾å¤ÎÀßÄê¤Î¤¦¤Á)¤É¤ÎÀßÄê¤Ç¾õ¶·¤¬ÊѲ½¤·¤¿¤Î¤«¤ò, ¿§¡¹¤ÊÁȹ礻¤Ç»î¤·¤Æ¤ß¤Æ²¼¤µ¤¤. ¤³¤ì¤Ï, ISP ¤ËÌ䤤¹ç¤ï¤»¤ò¹Ô¤Ê¤¦¤È¤­¤ÎÍ­¸ú¤Ê¾ðÊó¤È¤Ê¤ê¤Þ¤¹(¤¿¤À¤·, ¤¢¤Ê¤¿¤¬ Microsoft ¼ÒÀ½Éʰʳ°¤Î¤â¤Î¤òÍøÍѤ·¤Æ¤¤¤ë¤³¤È¤â ÌÀ¤é¤«¤Ë¤·¤Æ¤·¤Þ¤¤¤Þ¤¹¤¬). ISP ¤ËÌ䤤¹ç¤ï¤»¤ò¹Ô¤Ê¤¦Á°¤Ë, ¤³¤Á¤é¦¤ÎÈ󯱴ü¥í¥°¤òÍ­¸ú¤Ë¤·¤Æ, Àܳ¤¬¥Ï¥ó¥°¥¢¥Ã¥×¤¹¤ë¤Þ¤ÇÂԤäƲ¼¤µ¤¤. ¤³¤Îºî¶È¤Ï, Èó¾ï¤Ë¿¤¯¤Î¥Ç¥£¥¹¥¯¶õ´Ö¤ò¾ÃÈñ¤¹¤ë¤«¤âÃΤì¤Þ¤»¤ó. ¶½Ì£¤ÎÂоݤȤʤäƤ¤¤ë¤Î¤Ï, ÄÌ¿®¥Ý¡¼¥È¤«¤éºÇ¸å¤ËÆÉ¤ß¹þ¤Þ¤ì¤¿¥Ç¡¼¥¿¤Ç¤¹. ¤½¤ì¤ÏÄ̾ï ASCII ¥Ç¡¼¥¿¤Ç, ÌäÂêÅÀ¤Î¾ÜºÙ(``Memory fault, core dump''¤Ê¤É)¤¬ µ­ºÜ¤µ¤ì¤Æ¤¤¤ë²ÄǽÀ­¤¬¤¢¤ê¤Þ¤¹. ²óÀþ¤Î¸þ¤³¤¦Â¦¤ÇÄÌ¿®¥í¥°¤ò´Æ»ë¤¹¤ë¤³¤È¤Ï²Äǽ¤Ê¤Ï¤º¤Ç¤¹¤Î¤Ç, ¥Ï¥ó¥°¥¢¥Ã¥×¤¬È¯À¸¤·¤¿»þ, ISP ¤ÎÂбþ¤¬¹¥°ÕŪ¤Ê¤é¤Ð ¤É¤¦¤·¤Æ ISP ¦¤ÇÌäÂ꤬ȯÀ¸¤·¤¿¤Î¤«¤³¤Á¤é¤ËÅÁ¤¨¤Æ¤¯¤ì¤ë¤«¤âÃΤì¤Þ¤»¤ó. brian@Awfulhak.org ¤Þ¤Ç¾ÜºÙ¤òÁ÷¤Ã¤ÆÄº¤¯¤«, ISP ¤ËľÀÜ»ä¤ËÏ¢Íí¤¹¤ë¤è¤¦¤ËÅÁ¤¨¤Æ²¼¤µ¤Ã¤Æ¤â¹½¤¤¤Þ¤»¤ó. ppp ¤¬¥Ï¥ó¥°¥¢¥Ã¥×¤¹¤ë ¥Ù¥¹¥È¤ÊÊýË¡¤Ï, CFLAGS+=-g ¤È STRIP= ¤ò ppp ¤Î Makefile ¤ËÄɲä·¤Æ, ppp ¤òºÆ¹½ÃÛ¤·, ¤½¤·¤Æ make clean && make && make install ¤ò¹Ô¤Ê¤¦¤³¤È¤Ç¤¹. ppp ¤¬¥Ï¥ó¥°¥¢¥Ã¥×¤·¤¿»þ, ps ajxww | fgrep ppp ¤ò»È¤Ã¤Æ ppp ¤Î¥×¥í¥»¥¹ ID ¤òÄ´¤Ù, gdb ppp PID ¤ò¼Â¹Ô¤·¤Æ²¼¤µ¤¤. gdb ¤Î¥×¥í¥ó¥×¥È¤«¤é, bt ¤ò»È¤Ã¤Æ¥¹¥¿¥Ã¥¯¤ò¥È¥ì¡¼¥¹¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. ¥¹¥¿¥Ã¥¯¥È¥ì¡¼¥¹¤Î·ë²Ì¤Ï, brian@Awfulhak.org ¤Þ¤ÇÁ÷¤Ã¤Æ²¼¤µ¤¤. Login OK! ¤Î¥á¥Ã¥»¡¼¥¸¤¬½Ð¤¿¸å, ²¿¤âµ¯¤³¤é¤Ê¤¤ 2.2.5 ¤è¤êÁ°¤Î¥ê¥ê¡¼¥¹¤Î FreeBSD ¤Ç¤Ï, ppp ¤Ï¥ê¥ó¥¯¤¬³ÎΩ¤·¤¿¸å, ÀܳÀ褬 Line Control Protocol (LCP) ¤òȯ¿®¤¹¤ë¤Î¤òÂÔ¤Á¤Þ¤¹. ¤·¤«¤·, ¿¤¯¤Î ISP ¤Ç¤Ï¥Í¥´¥·¥¨¡¼¥·¥ç¥ó¤ò ¼«Ê¬¤«¤é¤Ïµ¯¤³¤µ¤º, ¥¯¥é¥¤¥¢¥ó¥È¤¬µ¯¤³¤¹¤Î¤òÂԤäƤ¤¤Þ¤¹. ppp ¤Ë¶¯À©Åª¤Ë LCP ¤òȯ¿®¤µ¤»¤ë¤Ë¤Ï, ¼¡¤ÎÌ¿Îá¤ò»È¤¤¤Þ¤¹. set openmode active Ãí: ξÊý¤Î¦¤¬¥Í¥´¥¸¥§¡¼¥·¥ç¥ó¤òµ¯¤³¤·¤Æ¤â, ÂçÄñ¤Î¾ì¹ç¤Ï ²¿¤ÎÌäÂê¤â¤¢¤ê¤Þ¤»¤ó. ¤Ç¤¹¤«¤é, ¸½ºß¤Ç¤Ï openmode ¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç active ¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹. ¼¡¤Î¥»¥¯¥·¥ç¥ó¤Ç¤³¤ì¤¬ÌäÂê¤Ë¤Ê¤ë¾ì¹ç¤ò ÀâÌÀ¤·¤Þ¤¹. ¤Ç¤â¤Þ¤À "magic is the same" ¤È¤¤¤¦¥¨¥é¡¼¤¬½Ð¤ë »þÀÞ, Àܳľ¸å¤Î¥í¥°¤Ë "magic is the same" ¤È¤¤¤¦¥á¥Ã¥»¡¼¥¸¤¬ ¤¢¤é¤ï¤ì¤ë¤³¤È¤¬¤¢¤ê¤Þ¤¹. ¤³¤Î¥á¥Ã¥»¡¼¥¸¤¬¤¢¤é¤ï¤ì¤Æ¤â²¿¤âµ¯¤­¤Ê¤¤ ¾ì¹ç¤â¤¢¤ê¤Þ¤¹¤·, ¤É¤Á¤é¤«¤Î¦¤¬Àܳ¤òÀڤäƤ·¤Þ¤¦¾ì¹ç¤â¤¢¤ê¤Þ¤¹. ppp ¤Î¼ÂÁõ¤Î¿¤¯¤Ï¤³¤ÎÌäÂê¤ËÂбþ¤Ç¤­¤Æ¤ª¤é¤º, ¤½¤Î¾ì¹ç¤Ë¤Ï¤Á¤ã¤ó¤È link ¤¬¾å¤¬¤Ã¤Æ¤¤¤ë¾õÂ֤Ǥ¢¤Ã¤Æ¤â, ppp ¤¬ºÇ½ªÅª¤Ë¤¢¤­¤é¤á¤Æ¤·¤Þ¤¤ Àܳ¤òÀÚ¤ë¤Þ¤Ç, ÀßÄê¤Î¥ê¥¯¥¨¥¹¥È¤¬·«¤êÊÖ¤·Á÷¤é¤ì, ÀßÄ꤬¹Ô¤ï¤ì¤¿ ¤È¤¤¤¦ÄÌÃΤ¬ log ¥Õ¥¡¥¤¥ë¤Ë»Ä¤ë¤È»×¤¤¤Þ¤¹. ¤³¤ì¤ÏÄ̾ï, ¥Ç¥£¥¹¥¯¥¢¥¯¥»¥¹¤ÎÃÙ¤¤¥µ¡¼¥Ð¥Þ¥·¥ó¤Î¥·¥ê¥¢¥ë¥Ý¡¼¥È¤Ç getty ¤¬À¸¤­¤Æ¤¤¤Æ, ppp ¤¬¥í¥°¥¤¥ó¥¹¥¯¥ê¥×¥È¤«, ¥í¥°¥¤¥óľ¸å¤Ë µ¯Æ°¤µ¤ì¤¿¥×¥í¥°¥é¥à¤«¤é¼Â¹Ô¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ëµ¯¤³¤ê¤Þ¤¹. slirp ¤ò»ÈÍÑ ¤·¤Æ¤¤¤ë¾ì¹ç¤ËƱÍͤξɾõ¤¬¸«¤é¤ì¤¿¤È¤¤¤¦Êó¹ð¤â¤¢¤ê¤Þ¤¹. ¸¶°ø¤Ï getty ¤Î½ªÎ»¤µ¤ì¤ë¤Þ¤Ç¤È, ppp ¤¬¼Â¹Ô¤µ¤ì, ¥¯¥é¥¤¥¢¥ó¥È¦¤Î ppp ¤¬ Line Control Protocol (LCP) ¤òÁ÷¤ê»Ï¤á¤ë¤Þ¤Ç¤Î¥¿¥¤¥ß¥ó¥°¤Ë¤¢¤ê¤Þ¤¹. ¥µ¡¼¥Ð¦¤Î¥·¥ê¥¢¥ë¥Ý¡¼¥È¤Ç ECHO ¤¬Í­¸ú¤Ê¤Þ¤Þ¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤Î¤Ç, ¥¯¥é¥¤¥¢¥ó¥È¦¤Î ppp ¤Ë¥Ñ¥±¥Ã¥È¤¬¡ÖÈ¿¼Í¡×¤·¤Æ¤·¤Þ¤¦¤Î¤Ç¤¹. LCP ¥Í¥´¥¸¥§¡¼¥·¥ç¥ó¤Î°ìÉô¤È¤·¤Æ, ¥ê¥ó¥¯¤Îξ¥µ¥¤¥É¤Ç magic number ¤òÄê¤á¤Æ, ¡ÖÈ¿¼Í¡×¤¬µ¯¤­¤Æ¤¤¤Ê¤¤¤«¤É¤¦¤«³Î¤«¤á¤ëºî¶È¤¬¤¢¤ê¤Þ¤¹. µ¬Ìó¤Ç¤Ï, ÀܳÁê¼ê¤¬¤³¤Á¤é¤ÈƱ¤¸ magic number ¤òÄ󼨤·¤Æ¤­¤¿¤é, NAK ¤òÁ÷¤Ã¤Æ¿·¤·¤¤ magic number ¤òÁªÂò¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¤È Äê¤á¤Æ¤¤¤Þ¤¹. ¤³¤Îºî¶È¤Î´Ö, ¥µ¡¼¥Ð¤Î¥·¥ê¥¢¥ë¥Ý¡¼¥È¤Î ECHO ¤¬¤º¤Ã¤È Í­¸ú¤Ë¤Ê¤Ã¤¿¤Þ¤Þ¤Ê¤Î¤Ç, ¥¯¥é¥¤¥¢¥ó¥È¦¤Î ppp ¤Ï LCP ¥Ñ¥±¥Ã¥È¤òÁ÷¤ê, ¥Ñ¥±¥Ã¥È¤¬È¿¼Í¤·¤ÆÁ´¤¯Æ±¤¸ magic number ¤¬Á÷¤é¤ì¤Æ¤¯¤ë¤Î¤ò¸«¤Ä¤±, ¤½¤ì¤ËÂФ·¤Æ NAK ¤òÁ÷¤ë¤Î¤Ç¤¹. °ìÊý NAK ¼«ÂΤâ (¤³¤ì¤Ï ppp ¤¬ magic number ¤òÊѹ¹¤·¤Ê¤±¤ì¤Ð¤¤¤±¤Ê¤¤¤³¤È¤ò°ÕÌ£¤·¤Æ¤¤¤Þ¤¹) È¿¼Í¤·¤Æ ¤¯¤ë¤Î¤Ç, ·ë²Ì¤È¤·¤Æ magic number ¤¬¿ô¤¨¤­¤ì¤Ê¤¤¤Û¤ÉÊѹ¹¤µ¤ì, ¤½¤ÎÁ´¤Æ¤¬¥µ¡¼¥Ð¤Î tty ¥Ð¥Ã¥Õ¥¡¤ÎÃæ¤ËÀѤ߽Ťʤ뤳¤È¤Ë¤Ê¤ë¤Î¤Ç¤¹. ¥µ¡¼¥Ð¤Ç¥¹¥¿¡¼¥È¤·¤¿ ppp ¤Ï¤È¤¹¤° magic number ¤Ç¤¢¤Õ¤ì¤«¤¨¤Ã¤Æ¤·¤Þ¤¤, LCP ¤Î¥Í¥´¥¸¥§¡¼¥·¥ç¥ó¤ò½½Ê¬¤Ë¹Ô¤Ã¤¿¤â¤Î¤ÈȽÃǤ·¤Æ, ¤µ¤Ã¤µ¤ÈÀܳ¤ò ÀڤäƤ·¤Þ¤¤¤Þ¤¹. °ìÊý, ¥¯¥é¥¤¥¢¥ó¥È¦¤ÏÈ¿¼Í¤¬µ¢¤Ã¤Æ¤³¤Ê¤¯¤Ê¤Ã¤¿¤Î¤Ç Ëþ­¤·¤Þ¤¹¤¬, ¤½¤ì¤â¥µ¡¼¥Ð¤¬Àܳ¤òÀڤ俤³¤È¤òÃΤë¤Þ¤Ç¤Ç¤¹. ¤³¤Î»öÂÖ¤Ï, °Ê²¼¤Î¹Ô¤ò ppp.conf ¤ÎÃæ¤Ë½ñ¤¤¤Æ, Áê¼ê¤¬¥Í¥´¥·¥§¡¼ ¥·¥ç¥ó¤ò³«»Ï¤Ç¤­¤ë¤è¤¦¤Ë¤¹¤ë»ö¤Ë¤è¤Ã¤Æ²óÈò¤Ç¤­¤Þ¤¹. set openmode passive ¤³¤ì¤Ç ppp ¤Ï¥µ¡¼¥Ð¤¬ LCP ¥Í¥´¥¸¥§¡¼¥·¥ç¥ó¤òµ¯¤³¤¹¤Î¤òÂԤĤ褦¤Ë ¤Ê¤ê¤Þ¤¹. ¤·¤«¤·, ¼«Ê¬¤«¤é¤Ï·è¤·¤Æ¥Í¥´¥¸¥§¡¼¥·¥ç¥ó¤òµ¯¤³¤µ¤Ê¤¤¥µ¡¼¥Ð ¤â¤¢¤ë¤«¤â¤·¤ì¤Þ¤»¤ó. ¤â¤·¤³¤Î¾õ¶·¤ËÁø¶ø¤·¤¿¾ì¹ç¤Ë¤Ï, ¼¡¤Î¤è¤¦¤Ë¤·¤Æ ¤¯¤À¤µ¤¤. set openmode active 3 ¤³¤ì¤Ë¤è¤Ã¤Æ ppp ¤Ï 3 ÉÃ´Ö passive ¥â¡¼¥É¤ò³¤±¤¿¸å¤Ç LCP ¥ê¥¯ ¥¨¥¹¥È¤òÁ÷¤ê»Ï¤á¤Þ¤¹. ¤³¤Î´Ö¤ËÁê¼ê¤¬¥ê¥¯¥¨¥¹¥È¤òÁ÷¤ê»Ï¤á¤¿¾ì¹ç¤Ë¤Ï 3 ÉôÖÂÔ¤¿¤º¤Ë¤³¤Î¥ê¥¯¥¨¥¹¥È¤Ë¨ºÂ¤Ë±þÅú¤·¤Þ¤¹. Àܳ¤¬ÀÚ¤ì¤ë¤Þ¤ÇLCP¤Înegotiation¤¬Â³¤¯. ppp¤Ç¤Ï¸½ºß¤Þ¤À, LCP¤äCCP, IPCP¤ÎÊÖ»ö¤¬¸µ¤Î¥ê¥¯¥¨¥¹¥È¤È Ï¢·È¤·¤Æ¤¯¤ì¤ëµ¡Ç½¤¬¤­¤Á¤ó¤È¼ÂÁõ¤µ¤ì¤Æ¤¤¤Þ¤»¤ó. ¤½¤Î·ë²Ì, ¤¢¤ë ppp¤¬Áê¼ê¤è¤ê¤â6ÉðʾåÃÙ¤¤¾ì¹ç¤Ë¤Ï, LCP configuration¤Î¥ê ¥¯¥¨¥¹¥È¤ò¤µ¤é¤Ë2²óÁ÷¤ê¤Þ¤¹. ¤³¤ì¤ÏÃ×̿Ū¤Êʪ¤Ç¤¹. A¤ÈB¤È¤¤¤¦2¤Ä¤Î¼ÂÁõ¤ò¹Í¤¨¤Æ¤ß¤Þ¤·¤ç¤¦. A¤¬Àܳ¤Î ľ¸å¤ËLCP¥ê¥¯¥¨¥¹¥È¤òÁ÷¤ê, °ìÊýB¤ÎÊý¤Ï¥¹¥¿¡¼¥È¤¹¤ë¤Î¤Ë7Éà ¤«¤«¤Ã¤¿¤È¤·¤Þ¤¹. B¤¬¥¹¥¿¡¼¥È¤¹¤ë»þ¤Ë¤ÏA¤ÏLCP¥ê¥¯¥¨¥¹¥È ¤ò3²óÁ÷¤Ã¤Æ¤·¤Þ¤Ã¤Æ¤¤¤Þ¤¹. Á°¤ÎÀá¤Ç½Ò¤Ù¤¿magic number¤ÎÌäÂ꤬µ¯¤­ ¤Ê¤¤¤è¤¦, ECHO¤Ïoff¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤È¹Í¤¨¤Æ¤¤¤Þ¤¹. B¤ÏREQ¤òÁ÷¤ê ¤Þ¤¹. ¤¹¤ë¤È¤³¤ì¤ÏA¤ÎREQ¤Î¤¦¤ÁºÇ½é¤Îʪ¤ËÂФ¹¤ëACK¤È¤Ê¤ê¤Þ¤¹. ·ë²Ì¤È¤·¤Æ, A¤ÏOPENED¤Î¾õÂÖ¤ËÆþ¤ê, B¤ËÂФ·¤Æ(ºÇ½é¤Î) ACK¤òÁ÷¤ê¤Þ¤¹. ¤½¤Î¤¦¤Á¤ËB¤Ï, B¤¬¥¹¥¿¡¼¥È¤¹¤ëÁ°¤ËA ¤«¤éÁ÷¤é¤ì¤¿¤â¤¦2¤Ä¤ÎREQ¤ËÂФ¹¤ëACK¤òÁ÷¤êÊÖ¤·¤Þ¤¹. B¤ÏA ¤«¤é¤ÎºÇ½é¤ÎACK¤ò¼õ¤±¼è¤ê, OPENED¤Î¾õÂÖ¤ËÆþ¤ê¤Þ¤¹. A¤Ï B¤«¤é¤Î2¤ÄÌܤÎACK¤ò¼õ¤±¼è¤ê¤Þ¤¹¤Î¤Ç, REQ-SENT¤Î¾õÂÖ¤ËÌá ¤ê, ¤µ¤é¤Ë, RFC¤Î¤È¤ª¤ê¤Ë(4¤ÄÌܤÎ)REQ¤òÁ÷¤ê¤Þ¤¹. ¤½¤·¤Æ3¤ÄÌܤÎACK ¤ò¼õ¤±¼è¤Ã¤ÆOPENED¤Î¾õÂÖ¤ËÆþ¤ê¤Þ¤¹. °ìÊý, B¤ÏA¤«¤é ¤Î4¤ÄÌܤÎREQ¤ò¼õ¤±¼è¤ê¤Þ¤¹¤Î¤ÇACK-SENT¤Î¾õÂÖ¤ËÆþ¤ê, 2¤ÄÌܤΠREQ¤È4¤ÄÌܤÎACK¤òRFC¤Î¤È¤ª¤ê¤ËÁ÷¤ê¤Þ¤¹. A¤Ï, REQ¤ò¼õ¤±¤È¤ë¤È REQ-SENT¤Î¾õÂ֤ˤʤê, ¤µ¤é¤ËREQ¤òÁ÷¤ê¤Þ¤¹. ¤½¤·¤Æ¤¹¤°¤ËACK¤ò ¼õ¤±¼è¤Ã¤ÆOPENED¤Î¾õÂÖ¤ËÆþ¤ê¤Þ¤¹. ¤³¤ì¤¬, ÊÒÊý¤Îppp¤¬¤¢¤­¤é¤á¤Æ¤·¤Þ¤¦¤Þ¤Ç³¤­¤Þ¤¹. ¤³¤ì¤ò²óÈò¤¹¤ëºÇ¤âÎɤ¤ÊýË¡¤Ï, ÊÒÊý¤òpassive¥â¡¼¥É¤ËÀßÄê ¤¹¤ë, ¤¹¤Ê¤ï¤ÁÈ¿ÂЦ¤¬negotiate¤ò³«»Ï¤¹¤ë¤Þ¤ÇÂԤĤ褦¤Ë¤¹¤ë»ö¤Ç¤¹. ¤³¤ì¤Ï, set openmode passive ¤È¤¤¤¦¥³¥Þ¥ó¥É¤Ç¤Ç¤­¤Þ¤¹. ¤³¤Î¥ª¥×¥·¥ç¥ó¤Ïµ¤¤òÉÕ¤±¤Æ»È¤ï¤Ê¤¤¤È¤¤¤± ¤Þ¤»¤ó. ¤µ¤é¤Ë set stopped N ¤È¤¤¤¦¥³¥Þ¥ó¥É¤òÄɲä·¤Æ, ppp¤¬negotiation¤¬³«»Ï¤¹¤ë¤Þ¤ÇÂÔ¤Ä ºÇÂç¤Î»þ´Ö¤òÀßÄꤷ¤Æ¤¯¤À¤µ¤¤. ¤â¤·¤¯¤Ï, set openmode active N ¤È¤¤¤¦¥³¥Þ¥ó¥É(¤³¤³¤Ç, N¤Ïnegotiation¤¬»Ï¤Þ¤ë¤Þ¤ÇÂԤĻþ´Ö¤Ç¤¹) ¤ò»È¤¦¤³¤È¤â¤Ç¤­¤Þ¤¹. ¾Ü¤·¤¯¤Ïmanual page¤ò¸«¤Æ¤¯¤À¤µ¤¤. ppp ¤¬Àܳľ¸å¤Ë¸Ç¤Þ¤Ã¤Æ¤·¤Þ¤¦ 2.2.5 ¤è¤êÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤Î FreeBSD ¤Ç¤Ï, ppp ¤¬ Predictor1 °µ½Ì ¤Î¥Í¥´¥¸¥§¡¼¥·¥ç¥ó¤ò¸í¤Ã¤Æ²ò¼á¤·¤Æ, Àܳľ¸å¤Ë¥ê¥ó¥¯¤ò̵¸ú¤Ë¤·¤Æ¤¤¤ë ²ÄǽÀ­¤¬¤¢¤ê¤Þ¤¹. ¤³¤ì¤Ïξ¥µ¥¤¥É¤¬ °Û¤Ê¤ë Compression Control Protocols (CCP) ¤ò»È¤Ã¤Æ¥Í¥´¥¸¥§¡¼¥·¥ç¥ó¤ò¹Ô¤Ã¤¿¾ì¹ç¤Ë¤Î¤ßȯÀ¸¤·¤Þ¤¹. ¤³¤ÎÌäÂê¤Ï¸½ºß¤Ï²ò·è¤·¤Æ¤¤¤Þ¤¹¤¬, ¤¢¤Ê¤¿¤ÎÁö¤é¤»¤Æ¤¤¤ë ppp ¤Î ¥Ð¡¼¥¸¥ç¥ó¤¬¸Å¤¤¾ì¹ç¤Ç¤â, ¼¡¤ÎÌ¿Îá¤Ç²ò·è¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. disable pred1 ppp ¤ÎÆâÉô¤Ç¥·¥§¥ë¤òµ¯Æ°¤·¤è¤¦¤È¤¹¤ë¤È¸Ç¤Þ¤Ã¤Æ¤·¤Þ¤¦ shell ¤¢¤ë¤¤¤Ï ! ¥³¥Þ¥ó¥É¤ò»ÈÍѤ¹¤ë¤È, ppp ¤Ï ¥·¥§¥ë¤òµ¯Æ°¤· (²¿¤«°ú¿ô¤òÅϤ·¤¿¾ì¹ç¤Ï, ppp ¤Ï°ú¿ô¤â ¼Â¹Ô¤·¤Þ¤¹), ¥³¥Þ¥ó¥É¤¬½ªÎ»¤¹¤ë¤Þ¤Ç½èÍý¤òÃæÃǤ·¤Þ¤¹. ¥³¥Þ¥ó¥É¤ò ¼Â¹ÔÃæ¤Ë ppp ¤Î¥ê¥ó¥¯¤ò»È¤ª¤¦¤È¤¹¤ë¤È, ¥ê¥ó¥¯¤¬¸Ç¤Þ¤Ã¤Æ¤¤¤ë¤è¤¦¤Ë ¸«¤¨¤Þ¤¹¤¬, ¤³¤ì¤Ï ppp ¤¬¥³¥Þ¥ó¥É¤Î½ªÎ»¤òÂԤäƤ¤¤ë¤«¤é¤Ç¤¹. ¤³¤Î¤è¤¦¤Ê¾ì¹ç¤Ï, Âå¤ï¤ê¤Ë !bg ¥³¥Þ¥ó¥É¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤. Í¿¤¨¤é¤ì¤¿¥³¥Þ¥ó¥É¤¬¥Ð¥Ã¥¯¥°¥é¥¦¥ó¥É¤Ç¼Â¹Ô¤µ¤ì¤ë¤Î¤Ç, ppp ¤Ï ¥ê¥ó¥¯¤Ë´Ø¤¹¤ë¥µ¡¼¥Ó¥¹¤ò·Ñ³¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. ¥Ì¥ë¥â¥Ç¥à¥±¡¼¥Ö¥ë¤ò»ÈÍѤ·¤Æ¤¤¤ë¤È¤­, ppp ¤¬½ªÎ»¤·¤Ê¤¤ ¥Ì¥ë¥â¥Ç¥à¥±¡¼¥Ö¥ë¤ò»ÈÍѤ·¤ÆÄ¾ÀÜÀܳ¤·¤Æ¤¤¤ë¾ì¹ç, ppp ¤Ï ¼«Æ°Åª¤Ë¤ÏÀܳ¤Î½ªÎ»¤òÃΤ뤳¤È¤¬¤Ç¤­¤Þ¤»¤ó. ¤³¤ì¤Ï¥Ì¥ë¥â¥Ç¥à ¥·¥ê¥¢¥ë¥±¡¼¥Ö¥ë¤ÎÇÛÀþ¤Ëµ¯°ø¤·¤Æ¤¤¤Þ¤¹. ¤³¤Î¼ï¤ÎÀܳ·ÁÂÖ¤òÍѤ¤¤ë ¾ì¹ç¤Ï, °Ê²¼¤ÎÌ¿Îá¤òÍѤ¤¤Æ LQR ¤ò¾ï¤ËÍ­¸ú¤Ë¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹. enable lqr ¤³¤¦¤¹¤ë¤È, ÀܳÀ褬¥Í¥´¥·¥¨¡¼¥·¥ç¥ó¤ò¹Ô¤¦¾ì¹ç, ¥Ç¥Õ¥©¥ë¥È¤Ç LQR ¤Î»ÈÍѤò¼õ¤±Æþ¤ì¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹. ppp ¤ò -auto ¥â¡¼¥É¤Çư¤«¤¹¤È, ¾¡¼ê¤Ë¥À¥¤¥¢¥ë¤¹¤ë¤³¤È¤¬¤¢¤ë ppp ¤¬»×¤¤¤â¤·¤Ê¤¤¤È¤­¤Ë¥À¥¤¥¢¥ë¤ò»Ï¤á¤ë¾ì¹ç, ¤½¤Î¸¶°ø¤ò ÆÍ¤­»ß¤á, ËɻߤΤ¿¤á¤Ë Dial filters (dfilters) ¤ò¤«¤±¤Æ¤ä¤ë ɬÍפ¬¤¢¤ê¤Þ¤¹. ¸¶°ø¤òÆÍ¤­»ß¤á¤ë¤¿¤á¤Ë¤Ï, °Ê²¼¤ÎÌ¿Îá¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤. set log +tcp/ip ¤³¤ì¤ÇÀܳ¤òÄ̲᤹¤ëÁ´¤Æ¤Î¥È¥é¥Ò¥Ã¥¯¤ò¥í¥°¤Ë»Ä¤¹¤³¤È¤¬¤Ç¤­¤ë¤è¤¦¤Ë ¤Ê¤ê¤Þ¤·¤¿. ¼¡¤ËÆÍÁ³²óÀþ¤¬¤Ä¤Ê¤¬¤Ã¤¿¤È¤­¤Î¥í¥°¤Î¥¿¥¤¥à¥¹¥¿¥ó¥×¤ò ¤¿¤É¤ì¤Ð, ¸¶°ø¤òÆÍ¤­»ß¤á¤ë¤³¤È¤¬¤Ç¤­¤ë¤Ï¤º¤Ç¤¹. ¸¶°ø¤¬¤ï¤«¤Ã¤¿¤é, ¼¡¤Ë, ¤³¤Î¤è¤¦¤Ê¾õ¶·¤Ç¤Ï¥À¥¤¥ä¥ë¤¬µ¯¤³¤é¤Ê¤¤¤è¤¦¤Ë ¤·¤Þ¤·¤ç¤¦. Ä̾ï, ¤³¤Î¼ê¤ÎÌäÂê¤Ï, DNS ¤Ç̾Á°¤Î²ò·è¤ò¤·¤è¤¦¤È¤·¤¿¤¿¤á¤Ë µ¯¤³¤ê¤Þ¤¹. DNS ¤Ë¤è¤ë̾Á°¤Î²ò·è¤Ë¤è¤Ã¤Æ, Àܳ¤¬¹Ô¤ï¤ì¤ë¤Î¤òËɻߤ¹¤ë ¤Ë¤Ï, ¼¡¤Î¤è¤¦¤Ê¼êÃʤòÍѤ¤¤Þ¤¹ (¤³¤ì¤Ï ppp ¤Î´û¤Ë³ÎΩ¤·¤¿Àܳ ¤Ë´Ø¤·¤Æ¥Ñ¥±¥Ã¥È¤Î¥Õ¥£¥ë¥¿¥ê¥ó¥°¤ò¤¹¤ë¤â¤Î¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó). set dfilter 1 deny udp src eq 53 set dfilter 2 deny udp dst eq 53 set dfilter 3 permit 0/0 0/0 ¤³¤ì¤Ï¥Ç¥Þ¥ó¥É¥À¥¤¥ä¥ëµ¡Ç½¤ËÌäÂê¤òÀ¸¤¸¤µ¤»¤ë¤¿¤á, ¾ï¤ËŬÀڤǤ¢¤ë¤È¤Ï¤«¤®¤ê¤Þ¤»¤ó. ¤Û¤È¤ó¤É¤Î¥×¥í¥°¥é¥à¤Ï ¾¤Î¥Í¥Ã¥È¥ï¡¼¥¯´ØÏ¢¤Î½èÍý¤ò¤ª¤³¤Ê¤¦Á°¤Ë DNS ¤Ø¤ÎÌ䤤¹ç¤ï¤» ¤¬É¬Íפˤʤê¤Þ¤¹. DNS ¤Î¾ì¹ç¤Ï, ²¿¤¬¼ÂºÝ¤Ë¥Û¥¹¥È̾¤ò¸¡º÷¤·¤è¤¦¤È¤·¤Æ¤¤¤ë¤Î¤«¤ò ÆÍ¤­»ß¤á¤ë¤Ù¤­¤Ç¤·¤ç¤¦. ÂçÄñ¤Î¾ì¹ç¤Ï, sendmail ¤¬ÈȿͤǤ¹. ÀßÄê¥Õ¥¡¥¤¥ë¤Ç sendmail ¤¬ DNS ¤ËÌ䤤¹ç¤ï¤»¤Ê¤¤¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤«³Îǧ¤¹¤Ù¤­¤Ç¤¹. ¼«Ê¬ÍѤÎÀßÄê¥Õ¥¡¥¤¥ë¤òºîÀ®¤¹¤ë¤¿¤á¤Î¾Ü¤·¤¤ÊýË¡¤Ï ¤ÎÀá¤ò¤´Í÷¤¯¤À¤µ¤¤. ¤Þ¤¿¤Ï, .mc¥Õ¥¡¥¤¥ë¤Ë¼¡¤Î¤è¤¦¤Ê¹Ô¤òÄɲ䷤Ƥâ¤è¤¤¤Ç¤·¤ç¤¦. define(`confDELIVERY_MODE', `d')dnl ¤³¤Î¹Ô¤òÄɲ乤ë¤È, sendmail¤Ï¥á¡¼¥ë¥­¥å¡¼¤ò½èÍý¤¹¤ë (Ä̾ïsendmail¤Ï30ʬ¤´¤È¤Ë¥­¥å¡¼¤ò½èÍý¤¹¤ë¤è¤¦, ``-bd -q30m'' ¤È¤¤¤¦¥ª¥×¥·¥ç¥ó¤òÉÕ¤±¤Æµ¯Æ°¤µ¤ì¤Þ¤¹) ¤Þ¤Ç¤«, ¤Þ¤¿¤Ï (¿ʬppp.linkup¤È¤¤¤¦¥Õ¥¡¥¤¥ë¤ÎÃæ¤Ç) ``sendmail -q''¤È¤¤¤¦¥³¥Þ¥ó¥É¤¬¼Â¹Ô¤µ¤ì¤ë¤Þ¤Ç, Á´¤Æ¤Î¥á¡¼¥ë¤ò ¥­¥å¡¼¤Ëί¤á¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡¥ ÌõÃí ``sendmail -q'' ¤Ï¤½¤Î»þÅÀ¤Î¥á¡¼¥ë¥­¥å¡¼¤ÎÆâÍÆ¤ò½èÍý¤·¤Æ ½ªÎ»¤·¤Þ¤¹¡¥ CCP ¥¨¥é¡¼¤È¤Ï¤É¤¦¤¤¤¦°ÕÌ£¤Ç¤¹¤« ¥í¥°¥Õ¥¡¥¤¥ëÃæ¤Î°Ê²¼¤Î¥¨¥é¡¼¤Ï, CCP: CcpSendConfigReq CCP: Received Terminate Ack (1) state = Req-Sent (6) ¥Í¥´¥¸¥§¡¼¥·¥ç¥ó¤Ë¤ª¤¤¤Æ ppp ¤Ï Predictor1 °µ½Ì¤òÍѤ¤¤ë¤Ù¤¯¼çÄ¥¤·¤¿¤¬, ÀܳÀè¤Ï°µ½Ì¤ò»ÈÍѤ·¤Ê¤¤¤³¤È¤ò¼çÄ¥¤·¤¿¾ì¹ç¤Ëµ¯¤³¤ê¤Þ¤¹. ¤³¤Î¥á¥Ã¥»¡¼¥¸ ¤Ë¤Ï²¿¤Î³²¤â¤¢¤ê¤Þ¤»¤ó¤¬, ½Ð¤ë¤Î¤¬·ù¤Ê¤é, °Ê²¼¤ÎÌ¿Îá¤òÍѤ¤¤Æ ¤³¤Á¤é¦¤Ç¤â Predictor1 °µ½Ì¤ò̵¸ú¤Ë¤¹¤ë¤³¤È¤ÇÂбþ¤Ç¤­¤Þ¤¹. disable pred1 ¥Õ¥¡¥¤¥ëžÁ÷¤ÎÅÓÃæ¤Ç, ppp ¤¬ IO ¥¨¥é¡¼¤ò½Ð¤·¤Æ¸Ç¤Þ¤Ã¤Æ¤·¤Þ¤¦ FreeBSD 2.2.2 °ÊÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤Î tun ¥É¥é¥¤¥Ð¤Ë¤Ï, tun ¥¤¥ó¥¿¥Õ¥§¡¼¥¹ ¤Î MTU ¤Î¥µ¥¤¥º¤è¤êÂ礭¤Ê¥Ñ¥±¥Ã¥È¤ò¼õ¤±¼è¤ë¤³¤È¤¬¤Ç¤­¤Ê¤¤¤È¤¤¤¦¥Ð¥°¤¬ ¤¢¤ê¤Þ¤·¤¿. MTU ¤Î¥µ¥¤¥º¤è¤êÂ礭¤Ê¥Ñ¥±¥Ã¥È¤ò¼õ¤±ÉÕ¤±¤ë¤È IO ¥¨¥é¡¼¤¬ µ¯¤³¤ê, syslogd ·Ðͳ¤Çµ­Ï¿¤µ¤ì¤ë¤Î¤Ç¤¹. ppp ¤Î»ÅÍͤǤÏ, LCP ¤Î¥Í¥´¥¸¥§¡¼¥·¥ç¥ó¤ò¹Ô¤¦¾ì¹ç¤ò´Þ¤à ¤É¤Î¤è¤¦¤Ê¾ì¹ç¤Ç¤âºÇÄã 1500 ¥ª¥¯¥Æ¥Ã¥È¤Î Maximum Receive Unit (MRU) ¤ò¼õ¤±Æþ¤ì¤ëɬÍפ¬¤¢¤ê¤Þ¤¹. ¤Ç¤¹¤«¤é, MTU ¤ò 1500 °Ê²¼¤ËÀßÄꤷ¤¿¾ì¹ç¤Ç¤â, ISP ¤Ï¤½¤ì¤Ë´Ø·¸¤Ê¤¯ 1500 ¤ÎÂ礭¤µ¤Î¥Ñ¥±¥Ã¥È¤òÁ÷¤Ã¤Æ¤¯¤ë¤Ç¤·¤ç¤¦. ¤½¤·¤Æ¤³¤Î¥¤¥±¤Æ¤Ê¤¤ µ¡Ç½¤Ë¤Ö¤Á¤¢¤¿¤Ã¤Æ, ¥ê¥ó¥¯¤¬¸Ç¤Þ¤ë¤Î¤òÌܤˤ¹¤ë¤³¤È¤Ë¤Ê¤ë¤Î¤Ç¤¹. FreeBSD 2.2.2 °ÊÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¤Ï, MTU ¤ò·è¤·¤Æ 1500 ¤è¤ê¾®¤µ¤¯ ¤·¤Ê¤¤¤³¤È¤Ç, ¤³¤ÎÌäÂê¤ò²óÈò¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. ¤É¤¦¤·¤Æ ppp ¤ÏÀܳ®ÅÙ¤ò¥í¥°¤Ë»Ä¤µ¤Ê¤¤¤ó¤Ç¤·¤ç¤¦? ¥â¥Ç¥à¤È¤Î¡Ö¤ä¤ê¼è¤ê¡×Á´¤Æ¤Î¹Ô¤ò¥í¥°¤Ë»Ä¤¹¤Ë¤Ï, °Ê²¼¤Î¤è¤¦¤Ë¤·¤ÆÀܳ®ÅÙ¤Î¥í¥°¤ÎÍ­¸ú²½¤ò¹Ô¤Ã¤Æ¤¯¤À¤µ¤¤: set log +connect ¤³¤ì¤Ï ppp ¤ËºÇ¸å¤Ë¤¯¤ë¤³¤È¤¬Í׵ᤵ¤ì¤Æ¤¤¤ë "expect" ¤È¤¤¤¦Ê¸»úÎ󤬤¯¤ë¤Þ ¤Ç¤Î¤¹¤Ù¤Æ¤Î¤â¤Î¤ò¥í¥°¤Ëµ­Ï¿¤µ¤»¤Þ¤¹. Àܳ®ÅÙ¤Ï¥í¥°¤Ë¤È¤ê¤¿¤¤¤±¤ì¤É, PAP ¤ä CHAP ¤ò»È¤Ã¤Æ¤¤¤ë (¤½¤Î·ë²Ì, dial ¥¹¥¯¥ê¥×¥ÈÃæ¤Î CONNECT °Ê¹ß¤ËÁ´¤¯¡Ö¤ä¤ê¤È¤ê¡× ¤ò¹Ô¤ï¤Ê¤¤ - "set login" ¥¹¥¯¥ê¥×¥È¤Ë¤Ï²¿¤â½ñ¤«¤Ê¤¤) ¤Î¤Ç¤¢¤ì ¤Ð, ppp ¤Ë "expect" ¤ò´Þ¤ó¤À CONNECT ¹ÔÁ´¤Æ¤¬¤¯¤ë¤Þ¤ÇÂÔ¤¿¤»¤ë ¤è¤¦¤Ë¤·¤Ê¤¤¤È¤¤¤±¤Þ¤»¤ó, °Ê²¼¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹: set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 4 \"\" ATZ OK-ATZ-OK ATDT\\T TIMEOUT 60 CONNECT \\c \\n" ¤³¤³¤Ç, CONNECT ¤ò¼õ¿®¤·¤Æ¤«¤é, ²¿¤âÁ÷¤é¤º, linefeed ¤ò ÂԤäƤ¤¤Þ¤¹, ppp ¤Ë CONNECT ¤Î±þÅúÁ´¤Æ¤òÆÉ¤ß¹þ¤Þ¤»¤Æ¤¤¤ë ¤ï¤±¤Ç¤¹. »ä¤Îchat¥¹¥¯¥ê¥×¥È¤Ç¤Ï`\'¤È¤¤¤¦Ê¸»ú¤òPPP¤¬²ò¼á¤·¤Æ ¤¯¤ì¤Þ¤»¤ó PPP¤ÏÀßÄê¥Õ¥¡¥¤¥ë¤òÆÉ¤ß¹þ¤à¤È¤­¤Ë, set phone "123 456 789" ¤Î¤è¤¦¤Êʸ»úÎó¤òÀµ¤·¤¯²ò¼á¤·, Èֹ椬¼ÂºÝ¤Ë1¤Ä¤Î°ú¿ô¤Ç¤¢¤ë¤È Íý²ò¤·¤Þ¤¹. ``"''¤È¤¤¤¦Ê¸»ú¤ò»ØÄꤹ¤ë¤Ë¤Ï, backslash (``\'')¤Ç ¥¨¥¹¥±¡¼¥×¤·¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó. chat¤Î³Æ°ú¿ô¤¬²ò¼á¤µ¤ì¤ë¤È¤­¤Ë¤Ï, ``\P''¤ä``\T''¤Î¤è¤¦¤Ê ÆÃÊ̤Êescape sequence (man page¤ò¸«¤Æ¤¯¤À¤µ¤¤)¤ò¸«ÉÕ¤±¤ë¤¿¤á¤Ë ¤â¤¦1²óparse¤ò¹Ô¤¤¤Þ¤¹. ¤³¤Î¤è¤¦¤Ëparse¤Ï2²ó·«¤êÊÖ¤µ¤ì¤Þ ¤¹¤Î¤Ç, Àµ¤·¤¤²ó¿ô¤À¤±escape¤ò¹Ô¤ï¤Ê¤¤¤È¤¤¤±¤Þ¤»¤ó. ¥â¥Ç¥à¤Ë¤¿¤È¤¨¤Ð``\''¤Î¤è¤¦¤Êʸ»ú¤òÁ÷¤ê¤¿¤¤¾ì¹ç¤Ë¤Ï, ¼¡¤Î¤è¤¦¤Ë ¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹: set dial "\"\" ATZ OK-ATZ-OK AT\\\\X OK" ¼ÂºÝ¤Ë¥â¥Ç¥à¤ËÁ÷¤é¤ì¤ëʸ»úÎó¤Ï¼¡¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹: ATZ OK AT\X OK ¾¤ÎÎã¤Ç¤¹¤È set phone 1234567 set dial "\"\" ATZ OK ATDT\\T" ¤Ï¼¡¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹: ATZ OK ATDT1234567 ppp ¤¬ segmentation fault ¤Ë¤Ê¤ë¤Î¤Ç¤¹¤¬, ppp.core ¥Õ¥¡¥¤¥ë¤¬¤¢¤ê¤Þ¤»¤ó ppp (¤ä¾¤Î¥×¥í¥°¥é¥à) ¤Ï¤±¤·¤Æ core ¤òÅǤ¤¤Æ¤Ï¤¤¤±¤Þ¤»¤ó. ppp ¤Ï ¼Â¸ú uid ¤¬ 0 ¤Çư¤¤¤Æ¤¤¤Þ¤¹¤Î¤Ç, ¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à ¤Ï ppp ¤ò½ªÎ»¤µ¤»¤ëÁ°¤Ë¥Ç¥£¥¹¥¯¤Ë core ¥¤¥á¡¼¥¸¤ò½ñ¤­¹þ¤ß¤Þ¤»¤ó. ¤·¤«¤· ppp ¤Ï¼ÂºÝ¤Ë¤Ï¥»¥°¥á¥ó¥Æ¡¼¥·¥ç¥ó°ãÈ¿¤ä¾¤Î core ¤òÅǤ¯¸¶°ø ¤È¤Ê¤ë¤è¤¦¤Ê¥·¥°¥Ê¥ë¤Ë¤è¤Ã¤Æ½ªÎ»¤·¤Æ ¤ª¤ê, ¤µ¤é¤Ë ºÇ¿·¤Î ¥Ð¡¼¥¸¥ç¥ó (¤³¤Î¥»¥¯¥·¥ç¥ó¤Î»Ï¤á¤ò¸«¤Æ¤¯¤À¤µ¤¤) ¤ò»ÈÍѤ·¤Æ¤¤¤ë ¤Ê¤é¤Ð, ¼¡¤Î¤è¤¦¤Ë¤·¤Æ¤¯¤À¤µ¤¤: $ tar xfz ppp-*.src.tar.gz $ cd ppp*/ppp $ echo STRIP= >>Makefile $ echo CFLAGS+=-g >>Makefile $ make clean all $ su # make install # chmod 555 /usr/sbin/ppp ¤³¤ì¤Ç debug ²Äǽ¤Ê¥Ð¡¼¥¸¥ç¥ó¤Î ppp ¤¬¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Þ¤¹. root ¤Ç ppp ¤ò¼Â¹Ô¤·, Á´¤Æ¤ÎÆÃ¸¢¤¬Ìµ¸ú¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤è¤¦¤Ë¤¹¤ëɬÍ× ¤¬¤¢¤ë¤Ç¤·¤ç¤¦. ppp ¤ò¼Â¹Ô¤¹¤ë»þ¤Ë¤Ï, current directory ¤¬ make ¤·¤¿ directory ¤Ç¤¢¤ë¤è¤¦¤Ë¤·¤Æ¤¯¤À¤µ¤¤. ¤³¤ì¤Ç, ppp ¤¬¥»¥°¥á¥ó¥Æ¡¼¥·¥ç¥óÎã³°¤ò¼õ¤±¼è¤Ã¤¿¤È¤­¤Ë¤Ï ppp.core ¤È¤¤¤¦Ì¾Á°¤Î core ¥Õ¥¡¥¤¥ë¤òÅǤ¯¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹. core ¤¬ ÅǤ«¤ì¤¿¤é¼¡¤Î¤è¤¦¤Ë¤·¤Æ¤¯¤À¤µ¤¤: $ su # gdb /usr/sbin/ppp ppp.core (gdb) bt ..... (gdb) f 0 ..... (gdb) i args ..... (gdb) l ..... ¼ÁÌ䤹¤ëºÝ¤Ë¤Ï, ¤³¤ì¤éÁ´¤Æ¤Î¾ðÊó¤òÄ󶡤·¤Æ, ÌäÂêÅÀ¤ÎʬÀϤ¬¤Ç¤­ ¤ë¤è¤¦¤Ë¤·¤Æ¤¯¤À¤µ¤¤. gdb ¤Î»È¤¤Êý¤Ë´·¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï, ¼ÂºÝ¤Ë dump ¤Î¸¶°ø¤È¤Ê¤Ã¤¿ Íýͳ¤ä¤½¤Î¥¢¥É¥ì¥¹, ´ØÏ¢¤·¤¿ÊÑ¿ô¤ÎÃͤʤɤâÄ´¤Ù¤ë»ö¤¬¤Ç¤­¤ë¤Ç¤·¤ç¤¦. auto mode ¤Ç¥À¥¤¥¢¥ë¤ò¤¹¤ë¤è¤¦¤Ê¥×¥í¥»¥¹¤¬Àܳ¤µ¤ì¤Ê¤¤ ¤³¤ì¤Ï ppp ¤¬¥í¡¼¥«¥ë¦¤Î IP ¥¢¥É¥ì¥¹¤ò, ưŪ¤ËÄÌ¿®Áê¼ê¤È¸ò¾Ä¤¹¤ë¤è¤¦¤ËÀßÄꤵ¤ì¤Æ¤¤¤ë»þ¤ËȯÀ¸¤¹¤ë Îɤ¯ÃΤé¤ì¤¿¾ã³²¤Ç¤·¤¿. ºÇ¿·¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¤Ï, ¤³¤ÎÌäÂê¤Ï½¤Àµ¤µ¤ì¤Æ¤¤¤Þ¤¹. iface ¤ò¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤«¤é¸¡º÷¤·¤Æ¤ß¤Æ²¼¤µ¤¤. ¤³¤ì¤Ï, ºÇ½é¤Î¥×¥í¥°¥é¥à¤¬ connect(2) ¤ò¸Æ¤Ó½Ð¤·¤¿»þ, tun ¥¤¥ó¥¿¡¼¥Õ¥§¥¤¥¹¤Î IP ¥¢¥É¥ì¥¹¤¬, ¥½¥±¥Ã¥È¤Î½ªÃ¼¤Ë³ä¤êÅö¤Æ¤é¤ì¤Æ¤·¤Þ¤¦¤È¤¤¤¦ÌäÂê¤Ç¤¹. ¥«¡¼¥Í¥ë¤Ï, ³°¤Ø½Ð¤Æ¤¤¤¯ºÇ½é¤Î¥Ñ¥±¥Ã¥È¤òºî¤ê, ¤½¤ì¤ò tun ¥Ç¥Ð¥¤¥¹¤Ø½ñ¤­¹þ¤ß¤Þ¤¹. ¤½¤·¤Æ ppp ¤Ï, ¤½¤Î¥Ñ¥±¥Ã¥È¤òÆÉ¤ß¹þ¤ó¤ÇÀܳ¤ò³ÎΩ¤·¤Þ¤¹. ppp ¤ÏưŪ¤Ë IP ¥¢¥É¥ì¥¹¤ò³ä¤êÅö¤Æ¤ë¤¿¤á, ¤â¤·¥¤¥ó¥¿¡¼¥Õ¥§¥¤¥¹¤Î¥¢¥É¥ì¥¹¤¬ÊѲ½¤·¤Æ¤·¤Þ¤¦¤È, ºÇ½é¤Ë³ä¤êÅö¤Æ¤é¤ì¤¿¥½¥±¥Ã¥È½ªÃ¼¤Î IP ¥¢¥É¥ì¥¹¤Ï̵¸ú¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤¤¤Þ¤¹. ¤½¤Î¤¿¤á, ¤½¤ì°Ê¹ßÁê¼ê¤ËÁ÷¤é¤ì¤ëÁ´¤Æ¤Î¥Ñ¥±¥Ã¥È¤ÏÄ̾ï, Áê¼ê¤ËÆÏ¤¯¤³¤È¤Ï¤Ê¤¤¤Ç¤·¤ç¤¦. ¤â¤·²¾¤ËÆÏ¤¤¤¿¤È¤·¤Æ¤â, ´û¤Ë¤³¤Á¤é¤Î IP ¥¢¥É¥ì¥¹¤ÏÊѹ¹¤µ¤ì¤Æ¤¤¤ë¤Î¤Ç, ¤É¤ó¤ÊÈ¿±þ¤âºÇ½é¤Î¥Þ¥·¥ó¤Ë¤ÏÌá¤Ã¤Æ¤­¤Þ¤»¤ó. ¤³¤ÎÌäÂê¤ËÂн褹¤ëÍýÏÀŪ¤ÊÊýË¡¤¬¤¤¤¯¤Ä¤«¤¢¤ê¤Þ¤¹. ¤â¤·²Äǽ¤Ê¤é, Áê¼ê¤¬ºÆÅÙ, Ʊ¤¸ IP ¥¢¥É¥ì¥¹¤ò³ä¤êÅö¤Æ¤Æ¤¯¤ì¤ë¤³¤È¤¬°ìÈ֤Ǥ¹ :-) ppp ¤Î¸½ºß¤Î¥Ð¡¼¥¸¥ç¥ó¤Ï¤³¤ì¤ò¹Ô¤Ê¤¤¤Þ¤¹¤¬, ¾¤Î¤Û¤È¤ó¤É¤Î¼ÂÁõ¤Ï¤½¤¦¤¤¤Ã¤¿Æ°ºî¤ò¤·¤Þ¤»¤ó. ²æ¡¹¤Î¦¤«¤éÂнè¤Ç¤­¤ëºÇ¤â´Êñ¤ÊÊýË¡¤Ï, tun ¥¤¥ó¥¿¡¼¥Õ¥§¥¤¥¹¤Î IP ¥¢¥É¥ì¥¹¤ò¸ÇÄꤹ¤ë»ö¤Ç¤¹. ¤Þ¤¿¤½¤Î¤«¤ï¤ê¤Ë, ³°¤Ë½Ð¤Æ¤¤¤¯¥Ñ¥±¥Ã¥È¤òÊѹ¹¤·¤Æ, ȯ¿®¸µ IP ¥¢¥É¥ì¥¹¤ò¥¤¥ó¥¿¡¼¥Õ¥§¥¤¥¹¤Î IP ¥¢¥É¥ì¥¹¤«¤é, ¸ò¾Ä¤Ë¤è¤Ã¤ÆÆÀ¤é¤ì¤¿ IP ¥¢¥É¥ì¥¹¤Ë, Ŭµ¹½ñ¤­¤«¤¨¤ë»ö¤Ë¤è¤Ã¤Æ¤âÂнè¤Ç¤­¤Þ¤¹. ¤³ ¤³¤ì¤Ï, ´ðËÜŪ¤Ë ppp ¤ÎºÇ¿·¥Ð¡¼¥¸¥ç¥ó¤Ë¤¢¤ë iface-alias ¥ª¥×¥·¥ç¥ó¤¬ ¹Ô¤Ê¤Ã¤Æ¤¤¤ë¤³¤È¤ÈƱ¤¸¤Ç¤¹(libalias(3) ¤ª¤è¤Ó, ppp ¤Î ¥¹¥¤¥Ã¥Á¤Ë¤â´Ø·¸¤·¤Þ¤¹). ¤½¤ì¤Ï, °ÊÁ°¤Î IP ¥¢¥É¥ì¥¹¤òÁ´¤Æ´ÉÍý¤·, ¤½¤ì¤é¤òºÇ¸å¤Î¸ò¾Ä¤Ë¤è¤Ã¤ÆÆÀ¤é¤ì¤¿ IP ¥¢¥É¥ì¥¹¤ÎÊÌ̾¤È¤·¤Æ°·¤¨¤ë¤è¤¦¤Ë¤·¤Þ¤¹. ¤â¤¦ 1 ¤Ä¤Î(¤ª¤½¤é¤¯ºÇ¤â¿®Íê¤Ç¤­¤ë)ÊýË¡¤Ï, bind ¤µ¤ì¤¿ Á´¤Æ¤Î¥½¥±¥Ã¥È¤Î IP ¥¢¥É¥ì¥¹¤ò, °Û¤Ê¤ë¤â¤Î¤ËÊѹ¹¤Ç¤­¤ë¥·¥¹¥Æ¥à¥³¡¼¥ë¤ò¼ÂÁõ¤¹¤ë¤³¤È¤Ç¤¹. ppp¤Ï, ¸ò¾Ä¤Ë¤è¤Ã¤Æ¿·¤·¤¤ IP ¥¢¥É¥ì¥¹¤òÆÀ¤¿»þ, ¤³¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤òÍѤ¤¤Æ¼Â¹Ô¤µ¤ì¤Æ¤¤¤ë¥×¥í¥°¥é¥à¤Ë¤¢¤ë, Á´¤Æ¤Î¥½¥±¥Ã¥È¤ò½ñ¤­¤«¤¨¤Æ¤ä¤ë¤ï¤±¤Ç¤¹. Ʊ¤¸¥·¥¹¥Æ¥à¥³¡¼¥ë¤¬, DHCP ¥¯¥é¥¤¥¢¥ó¥È¤¬ÍøÍѤ¹¤ë¥½¥±¥Ã¥È¤ò ¶¯À©Åª¤ËºÆ bind ¤¹¤ë¤Î¤Ë¤â»È¤¦¤³¤È¤¬¤Ç¤­¤ë¤Ç¤·¤ç¤¦. 3 ¤ÄÌܤÎÊýË¡¤Ï, IP ¥¢¥É¥ì¥¹¤ò»ØÄꤷ¤Ê¤¤¤Ç¥¤¥ó¥¿¡¼¥Õ¥§¥¤¥¹¤òÍøÍѤǤ­¤ë¤è¤¦¤Ë¤¹¤ë¤³¤È¤Ç¤¹. ³°¤Ë½Ð¤Æ¤¤¤¯¥Ñ¥±¥Ã¥È¤Ï, ºÇ½é¤Î SIOCAIFADDR ioctl ¤Î´°Î»¤Þ¤Ç, 255.255.255.255 ¤È¤¤¤¦ IP ¥¢¥É¥ì¥¹ ¤¬Í¿¤¨¤é¤ì¤Þ¤¹. ¤³¤ì¤Ë¤è¤Ã¤Æ. ¥½¥±¥Ã¥È¤Ï¾ï¤Ë bind ¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. ppp¤ËÂФ·¤ÆÈ¯¿®¸µ IP ¥¢¥É¥ì¥¹¤òÊѹ¹¤µ¤»¤ë»ö¤Ë¤Ê¤ê¤Þ¤¹¤¬, ¤â¤·¤½¤ì¤¬ 255.255.255.255 ¤Ë¤Ê¤Ã¤Æ¤¤¤¿¤é, IP ¥¢¥É¥ì¥¹¤È IP ¥Á¥§¥Ã¥¯¥µ¥à¤À¤±Êѹ¹¤¹¤ì¤ÐÎɤ±¤ì¤Ð¤ÎÏäˤʤê¤Þ¤¹. ¤³¤ÎÊýË¡¤Ï¤Á¤ç¤Ã¤È¤·¤¿Êѹ¹¤Ç¤¹¤¬, ¾¤Îµ¡¹½¤¬º£¤Þ¤Ç¤Î¤è¤¦¤Ë, IP ¥¢¥É¥ì¥¹¤ò¸ÇÄꤷ¤ÆÍøÍѤ¹¤ë¾ì¹ç¤Ë, ¥«¡¼¥Í¥ë¤¬ ÉÔŬÀÚ¤ËÀßÄꤵ¤ì¤¿¥¤¥ó¥¿¡¼¥Õ¥§¥¤¥¹¤Ë¸þ¤±¤Æ, Àµ¾ï¤Ç¤Ê¤¤¥Ñ¥±¥Ã¥È¤ò Á÷¤ê½Ð¤·¤Æ¤·¤Þ¤¦²ÄǽÀ­¤¬¤¢¤ê¤Þ¤¹. ²¿¸Î¤Û¤È¤ó¤É¤Î¥²¡¼¥à¤¬ -alias ¥¹¥¤¥Ã¥ÁÉÕ¤­¤À¤Èư¤«¤Ê¤¤¤ó¤Ç¤¹¤«? ÌõÃí:¤³¤ÎÌäÂê¤Ïº´Æ£ ½ß°ì¤µ¤óºî¤Î NAT ¥Ñ¥Ã¥Á¤ò»È¤Ã¤Æ¤â²ò·è¤Ç¤­¤Þ¤¹. NAT on iij-ppp¤ò¤´Í÷¤¯¤À¤µ¤¤. libalias ¤ò»È¤Ã¤Æ¤¤¤ë»þ¤Ë¥²¡¼¥à¤Ê¤É¤ÎÎà¤Î¤â¤Î¤¬Æ°ºî¤·¤Ê¤¤Íýͳ¤Ï, ³°Â¦¤Ë¤¢¤ë¥Þ¥·¥ó¤¬Àܳ¤·¤è¤¦¤È¤·¤Æ¤¤¤ë¤«, Æâ¦¤Ë¤¢¤ë¥Þ¥·¥ó¤Ë (;·×¤Ê) UDP ¥Ñ¥±¥Ã¥È¤òÁ÷¿®¤·¤è¤¦¤È¤·¤Æ¤¤¤ë¤«¤é¤Ç¤¹. Æâ¦¤Î¥Þ¥·¥ó¤Ë¤³¤ì¤é¤Î¥Ñ¥±¥Ã¥È¤òÁ÷¤ë¤Ù¤­¤«¤Ë¤Ä¤¤¤Æ, packet alias ¥½¥Õ¥È¥¦¥§¥¢¤Ï´ØÃΤ·¤Þ¤»¤ó. ¤¦¤Þ¤¯Æ°¤«¤¹¤¿¤á¤Ë¤Ï, ¼Â¹ÔÃæ¤Î¤â¤Î¤¬ÌäÂê¤ÎȯÀ¸¤·¤Æ¤¤¤ë ¥½¥Õ¥È¥¦¥§¥¢¤À¤±¤Ç¤¢¤ë¤«¤ò³Îǧ¤·, ¥²¡¼¥È¥¦¥§¥¤¤Î tun ¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤ËÂФ·¤Æ tcpdump ¤ò¼Â¹Ô¤¹¤ë¤«, ¥²¡¼¥È¥¦¥§¥¤¾å¤Ç ppp tcp/ip logging ¤òÍ­¸ú²½ (``set log +tcp/ip'') ¤·¤Æ¤¯¤À¤µ¤¤. ¹Ôµ·¤Î°­¤¤¥½¥Õ¥È¥¦¥§¥¢¤òµ¯Æ°¤¹¤ëºÝ¤Ë, ¥²¡¼¥È¥¦¥§¥¤¥Þ¥·¥ó¤ò Ä̲᤹¤ë¥Ñ¥±¥Ã¥È¤ò´Æ»ë¤¹¤Ù¤­¤Ç¤¹. ³°Â¦¤«¤é²¿¤«¥Ñ¥±¥Ã¥È¤¬Ìá¤Ã¤Æ¤­¤¿»þ¤Ë, ¤½¤Î¥Ñ¥±¥Ã¥È¤ÏÇË´þ¤µ¤ì¤ë¤Ç¤·¤ç¤¦ (¤½¤ì¤¬ÌäÂê¤Ê¤Î¤Ç¤¹). ¤³¤ì¤é¤Î¥Ñ¥±¥Ã¥È¤Î port ÈÖ¹æ¤ËÃí°Õ¤·¤Æ, ¤½¤Î¹Ôµ·¤Î°­¤¤¥½¥Õ¥È¥¦¥§¥¢¤ò Ää»ß¤·¤Æ¤¯¤À¤µ¤¤. ¤³¤ì¤ò¿ô²ó·«¤êÊÖ¤·¤Æ port Èֹ椬¾ï¤ËƱ¤¸¤Ç¤¢¤ë¤«¤ò³Îǧ¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤. Ʊ¤¸¤Ç¤¢¤Ã¤¿¾ì¹ç¤Ï, /etc/ppp/ppp.conf ¤ÎŬÀڤʥ»¥¯¥·¥ç¥ó¤Ë¼¡¤Î¹Ô¤òÆþ¤ì¤ë¤È, ¤½¤Î¥½¥Õ¥È¥¦¥§¥¢¤Ïưºî¤¹¤ë¤è¤¦¤Ë¤Ê¤ë¤Ç¤·¤ç¤¦. alias port proto internalmachine:port port ¤³¤³¤Ç ``proto'' ¤Ï ``tcp'' ¤« ``udp'' ¤Ç¤¢¤ê, ``internalmachine'' ¤Ï¥Ñ¥±¥Ã¥È¤òÁ÷¤ê¤¿¤¤¥Þ¥·¥ó, ¤½¤·¤Æ ``port'' ¤Ï¥Ñ¥±¥Ã¥È¤Î¥Ç¥£¥¹¥È¥Í¡¼¥·¥ç¥ó¤Î port ÈÖ¹æ¤Ç¤¹. ¾åµ­¤Î¥³¥Þ¥ó¥É¤òÊѹ¹¤»¤º¤Ë¾¤Î¥Þ¥·¥ó¾å¤Ç¤½¤Î¥½¥Õ¥È¥¦¥§¥¢¤ò »ÈÍѤǤ­¤ë¤è¤¦¤Ë¤Ï¤·¤¿¤¯¤Ê¤¤¤«¤â¤·¤ì¤Þ¤»¤ó. ¤½¤·¤Æ Ʊ»þ¤ËÆó¤Ä¤ÎÆâÉô¤Î¥Þ¥·¥ó¾å¤Ç¤½¤Î¥½¥Õ¥È¥¦¥§¥¢¤ò¼Â¹Ô¤¹¤ë¤³¤È¤Ï ¤³¤Î¼ÁÌä¤ÎÈϰϤòͤ¨¤Æ¤¤¤Þ¤¹. ·ë¶É, ³°Â¦¤ÎÀ¤³¦¤«¤é¤Ï ÆâÉô¥Í¥Ã¥È¥ï¡¼¥¯Á´ÂΤ¬¤¿¤À°ì¤Ä¤Î¥Þ¥·¥ó¤È¤·¤Æ¸«¤¨¤ë¤Î¤Ç¤¹. port Èֹ椬¾ï¤ËƱ¤¸¤È¤Ï¸Â¤é¤Ê¤¤¾ì¹ç, ¤µ¤é¤Ë»°¤Ä¤Î¥ª¥×¥·¥ç¥ó¤¬¤¢¤ê¤Þ¤¹. 1)libalias ¤Ç¥µ¥Ý¡¼¥È¤¹¤ë¤è¤¦¤Ë¤·, ·ë²Ì¤òÁ÷¤êÉÕ¤±¤ë. ÆÃÄê¤Î¾ì¹ç¤ÎÎã¤Ï /usr/src/lib/libalias/alias_*.c ¤Ë¤¢¤ê¤Þ¤¹ (alias_ftp.c ¤ÏÎɤ¤¥×¥í¥È¥¿¥¤¥×¤Ç¤¹). ¤³¤ì¤Ë¤ÏÄ̾ï, ³°¸þ¤­¤ÎÆÃÄê¤Î¥Ñ¥±¥Ã¥È¤òÆÉ¤ß, ÆâÉô¤Î·×»»µ¡¤Î¤¢¤ëÆÃÄê¤Î¥Ý¡¼¥È¤Ø¤ÎÀܳ¤ò³«»Ï¤¹¤ë¤è¤¦¤ÊÌ¿Î᤬ ³°Éô¤Î·×»»µ¡ÂФ·¤ÆÁ÷¤é¤ì¤Æ¤¤¤ë¤³¤È¤ò¸«Ê¬¤±, ¸å³¤Î¥Ñ¥±¥Ã¥È¤¬¤É¤³¤Ë¹Ô¤±¤Ð ¤¤¤¤¤Î¤«¤¬Ê¬¤«¤ë¤è¤¦¤Ë, ¥¨¥¤¥ê¥¢¥¹¥Æ¡¼¥Ö¥ëÃæ¤Î ``route'' ¤ÎÉôʬ¤òÀßÄꤹ¤ë, ¤È¤¤¤¦ºî¶È¤¬´Þ¤Þ¤ì¤Þ¤¹. ¤³¤ì¤ÏºÇ¤âÆñ¤·¤¤ÊýË¡¤Ç¤¹¤¬, ºÇ¤âÎɤ¤ÊýË¡¤Ç¤â¤¢¤ê¤Þ¤¹¤·, ¥½¥Õ¥È¥¦¥§¥¢¤¬ Ê£¿ô¤Î·×»»µ¡¤Çư¤¯¤è¤¦¤Ë¤Ç¤­¤Þ¤¹. 2)¥×¥í¥¯¥·¤ò»È¤¦. ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤¬, Î㤨¤Ð socks5 ¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¤«, (cvsup ¤Î¤è¤¦¤Ë) ``passive'' ¥ª¥×¥·¥ç¥ó¤ò»ý¤Ã¤Æ¤¤¤ë¤È ¤³¤ÎÊýË¡¤¬»È¤¨¤Þ¤¹. ``passive'' ¤È¤ÏÁê¼ê¦¤Î¤Û¤¦¤«¤éÀܳ¤òµá¤á¤Æ¤¯¤ë¤³¤È¤ò Èò¤±¤ë¤¿¤á¤Ë¤¢¤ë¥ª¥×¥·¥ç¥ó¤Ç¤¹. 3)''alias addr''¤ò»È¤Ã¤Æ¤Ê¤ó¤Ç¤â¤«¤ó¤Ç¤âÆâÉô¤Î·×»»µ¡¤Ë¸þ¤±¤Æ ή¤·¤Æ¤·¤Þ¤¦. ¤³¤ì¤Ï¤Á¤ç¤Ã¤È̵ÍýÌðÍý¤Ê²ò·èË¡¤Ç¤¹. Í­ÍÑ¤Ê port ÈÖ¹æ¤Î¥ê¥¹¥È¤Ï¤¢¤ê¤Þ¤»¤ó¤«? ¤Þ¤À½ÐÍè¤Æ¤¤¤Þ¤»¤ó. ¤·¤«¤·, ¤³¤ì¤Ï(´Ø¿´¤ò»ý¤Ã¤ÆÄº¤±¤ë¤Ê¤é¤Ð,) ¤½¤¦¤¤¤Ã¤¿¥ê¥¹¥È¤Ë¤·¤Æ¤¤¤¯Í½Äê¤Ç¤¹. Quake Quake ¤Ï UDP ¥Ý¡¼¥È¤Î 6112 ¤ò»ÈÍѤ¹¤ë¤ÈÊó¹ð¤µ¤ì¤Æ¤¤¤Þ¤¹. ¤Ä¤Þ¤ê, ¼¡¤Î¹Ô¤Ë¤è¤ê quake ¤¬Æ°¤¯¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹. alias port udp hostmachine:6112 6112 ¤³¤³¤Ç, hostmachine ¤Ï quake ¥µ¡¼¥Ð¤Î IP ¥¢¥É¥ì¥¹¤Ç¤¹. ¤³¤Î¤è¤¦¤ËÀßÄꤹ¤ëÂå¤ï¤ê¤Ë, www.battle.net ¤Ç Quake ¤Î¥×¥í¥­¥·¡¼¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¤« Ä´¤Ù¤Æ¤â¤¤¤¤¤Ç¤·¤ç¤¦. FCS ¥¨¥é¡¼¤Ã¤Æ²¿? FCS ¤È¤Ï Frame Check Sequence (¥Õ¥ì¡¼¥à¥Á¥§¥Ã¥¯ ¥·¡¼¥±¥ó¥¹) ¤Îά¤Ç¤¹. ¸Ä¡¹¤Î ppp ¥Ñ¥±¥Ã¥È¤Ë¤Ï, Á÷¼õ¿®¤¹¤ë¥Ç¡¼¥¿ ¤¬Àµ¤·¤¤¤«¤òÄ´¤Ù¤ë¤¿¤á¤Î¥Á¥§¥Ã¥¯¥µ¥à¤¬´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹. ¼õ¿®¤·¤¿ ¥Ñ¥±¥Ã¥È¤Î FCS ¤¬Àµ¤·¤¯¤Ê¤¤¾ì¹ç¤Ï, ¤½¤Î¥Ñ¥±¥Ã¥È¤ÏÇÑ´þ¤µ¤ì, HDLC FCS ¥«¥¦¥ó¥È¤¬Áý¤ä¤µ¤ì¤Þ¤¹. HDLC ¥¨¥é¡¼¤Î¿ô ¤Ï, show hdlc ¥³¥Þ¥ó¥É¤ò»È¤Ã¤ÆÉ½¼¨¤Ç¤­¤Þ¤¹. ¥ê¥ó¥¯¤ÎÉʼÁ¤¬°­¤«¤Ã¤¿¤ê, ¥·¥ê¥¢¥ë¥É¥é¥¤¥Ð¤¬¥Ñ¥±¥Ã¥È¤ò¼è¤ê ¤³¤Ü¤·¤Æ¤¤¤¿¤ê¤¹¤ë¤È, FCS ¥¨¥é¡¼¤¬¤¿¤Ó¤¿¤ÓȯÀ¸¤·¤Þ¤¹. FCS ¥¨¥é¡¼ ¤Ï, °µ½Ì¥×¥í¥È¥³¥ë¤Î®ÅÙÄã²¼¤Î¸¶°ø¤Ë¤Ï¤Ê¤ê¤Þ¤¹¤¬, ÆÃ¤Ë¿´ÇÛ¤¹¤ë ɬÍפϤ¢¤ê¤Þ¤»¤ó. ³°ÉÕ¤±¥â¥Ç¥à¤ò»È¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï, ¥±¡¼¥Ö¥ë¤¬ ¤Á¤ã¤ó¤È¥·¡¼¥ë¥É¤µ¤ì¤Æ¤¤¤ë¤«¤ò³Îǧ¤·¤Æ¤¯¤À¤µ¤¤. ¤½¤¦¤Ç¤Ê¤¤¾ì¹ç, FCS ¥¨¥é¡¼¤Î¸¶°ø¤È¤Ê¤ë¾ì¹ç¤¬¤¢¤ê¤Þ¤¹. Àܳľ¸å¤«¤é¥ê¥ó¥¯¤¬¥Õ¥ê¡¼¥º¤·, ÂçÎ̤ΠFCS ¥¨¥é¡¼¤¬È¯À¸¤¹¤ë ¾ì¹ç¤Ï, ¥ê¥ó¥¯¤¬ 8 ¥Ó¥Ã¥È¥¯¥ê¡¼¥ó¤Ç¤Ê¤¤²ÄǽÀ­¤¬¤¢¤ê¤Þ¤¹. ¥½¥Õ¥È ¥¦¥§¥¢¥Õ¥í¡¼À©¸æ (XON/XOFF) ¤¬»È¤ï¤ì¤Æ¤¤¤Ê¤¤¤³¤È¤ò³Îǧ¤·¤Æ¤¯¤À ¤µ¤¤. ¤É¤¦¤·¤Æ¤â¥½¥Õ¥È¥¦¥§¥¢¥Õ¥í¡¼À©¸æ¤ò»È¤ï¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¾ì ¹ç¤Ï, set accmap 0x000a0000 ¥³¥Þ¥ó¥É¤ò»ÈÍѤ·¤Æ, ppp ¤Ë ^Q ¤È ^S ¤ò¥¨¥¹¥±¡¼¥×¤µ¤»¤Æ¤¯¤À¤µ¤¤ ¥ê¥â¡¼¥È¥Û¥¹¥È¤¬ PPP ¥×¥í¥È¥³¥ë¤ò»ÈÍѤ·¤Æ¤Ê¤¤¾ì¹ç¤â, ÂçÎ̤ΠFCS ¥¨¥é¡¼¤¬È¯À¸¤·¤Þ¤¹. ¤³¤Î¾ì¹ç¤Ï¥í¥°¤ò¤È¤ê¤Ê¤¬¤éÈ󯱴ü¤Ç Àܳ¤·, ¥í¥°¥¤¥ó¥×¥í¥ó¥×¥È¤ä¥·¥§¥ë¥×¥í¥ó¥×¥È¤¬Á÷¤é¤ì¤ÆÍè¤Æ¤¤ ¤Ê¤¤¤«³Îǧ¤·¤Æ¤¯¤À¤µ¤¤. ¥í¥°¥Õ¥¡¥¤¥ë¤Ë¥ê¥ó¥¯¤ò½ªÎ»¤·¤¿¸¶°ø¤È¤Ê¤ë¤è¤¦¤Êµ­Ï¿¤¬¤Ê¤¤¾ì¹ç¤Ï, ¥ê¥â¡¼¥È¥Û¥¹¥È(¥×¥í¥Ð¥¤¥À?)¤Î´ÉÍý¼Ô¤Ë, ¥»¥Ã¥·¥ç¥ó¤ò½ªÎ»¤µ¤ì¤¿ Íýͳ¤ò¿Ò¤Í¤Æ¤¯¤À¤µ¤¤. ¤É¤ì¤Ë¤âÅö¤Æ¤Ï¤Þ¤é¤Ê¤¤! ¤É¤¦¤·¤¿¤é¤¤¤¤¤Î? ¤³¤ì¤Þ¤Ç¤ÎÁ´¤Æ¤Î¼ÁÌä¤ËÅö¤Æ¤Ï¤Þ¤é¤Ê¤¤¾ì¹ç, ÀßÄê¥Õ¥¡¥¤¥ë, ppp ¤Î¼Â¹ÔÊýË¡, ¥í¥°¥Õ¥¡¥¤¥ë¤Î³ºÅöÉôʬ¤È netstat -rn ¥³¥Þ¥ó¥É¤Î½ÐÎÏ (ÀܳÁ°¤ÈÀܳ¸å) ¤ò´Þ¤à, ¤¢¤Ê¤¿¤Î»ý¤Ã¤Æ¤¤¤ëÁ´¤Æ¤Î¾ðÊó¤ò freebsd-questions@FreeBSD.org ¥á¡¼¥ê¥ó¥°¥ê¥¹¥È¤ä comp.unix.bsd.freebsd.misc ¥Ë¥å¡¼¥¹¥°¥ë¡¼¥×¤Ø Á÷¤Ã¤Æ¤¯¤À¤µ¤¤. 狼¤¬¤¢¤Ê¤¿¤òÀµ¤·¤¤Êý¸þ¤ØÆ³¤¤¤Æ¤¯¤ì¤ë¤Ç¤·¤ç¤¦. ¥·¥ê¥¢¥ëÀܳ Ìõ: °ìµÜ μ <ryo@azusa.shinshu-u.ac.jp>.16 November 1997. ¤³¤Î¥»¥¯¥·¥ç¥ó¤Ç¤Ï, FreeBSD ¤Ç¥·¥ê¥¢¥ëÀܳ¤ò¤¹¤ë»þ¤Î°ìÈÌŪ¤Ê¼ÁÌä¤ËÅú¤¨¤Þ¤¹. PPP ¤ª¤è¤Ó SLIP ¤Ë¤Ä¤¤¤Æ¤Ï, ¤Î¥»¥¯¥·¥ç¥ó¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤. ¤É¤¦¤ä¤Ã¤¿¤é FreeBSD ¤¬¥·¥ê¥¢¥ë¥Ý¡¼¥È¤òǧ¼±¤·¤¿¤³¤È¤òÃΤë»ö¤¬¤Ç¤­¤Þ¤¹¤«? FreeBSD ¤Î¥«¡¼¥Í¥ë¤¬¥Ö¡¼¥È¤¹¤ë»þ, ¥«¡¼¥Í¥ë¤Ï¤½¤ÎÀßÄê¤Ë¤·¤¿¤¬¤Ã¤Æ, ¥·¥¹¥Æ¥à¤Î¥·¥ê¥¢¥ë¥Ý¡¼¥È¤ò¸¡½Ð¤·¤Þ¤¹. µ¯Æ°»þ¤Ëɽ¼¨¤µ¤ì¤ë¥á¥Ã¥»¡¼¥¸¤ò¤è¤¯´Ñ»¡¤¹¤ë¤«, µ¯Æ°¸å¤Ë¼¡¤Î¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤¹¤ë»ö¤Ë¤è¤Ã¤Æ³Îǧ¤Ç¤­¤Þ¤¹. dmesg | grep sio ¤³¤³¤Ë¾å¤Ëµó¤²¤¿¥³¥Þ¥ó¥É¤Î½ÐÎÏÎã¤ò¼¨¤·¤Þ¤¹. sio0 at 0x3f8-0x3ff irq 4 on isa sio0: type 16550A sio1 at 0x2f8-0x2ff irq 3 on isa sio1: type 16550A ¤³¤ì¤Ï, Æó¤Ä¤Î¥·¥ê¥¢¥ë¥Ý¡¼¥È¤ò¼¨¤·¤Æ¤¤¤Þ¤¹. 1ÈÖ¤á¤Ï, irq ¤¬ 4 ¤Ç 0x3f8 ¤Î¥Ý¡¼¥È¥¢¥É¥ì¥¹¤ò»ÈÍѤ·¤Æ¤¤¤Þ¤¹. ¤½¤·¤Æ, 16550A-type UART ¥Á¥Ã¥×¤¬Â¸ºß¤·¤Þ¤¹. 2ÈÖÌܤÏ, Ʊ¤¸¥Á¥Ã¥×¤ò»È¤Ã¤Æ¤¤¤Þ¤¹¤¬, irq ¤Ï 3 ¤Ç, 0x2f8 ¤Î¥Ý¡¼¥È¥¢¥É¥ì¥¹¤ò»ÈÍѤ·¤Æ¤¤¤Þ¤¹. Æâ¢¤Î¥â¥Ç¥à¥«¡¼¥É¤Ï, Ä̾ï¤Î¥·¥ê¥¢¥ë¥Ý¡¼¥È¤ÈƱ¤¸¤è¤¦¤Ë°·¤ï¤ì¤Þ¤¹¤¬, ¾ï»þ¥·¥ê¥¢¥ë¥Ý¡¼¥È¤Ë¥â¥Ç¥à¤¬Àܳ¤µ¤ì¤Æ¤¤¤ë¤È¤¤¤¦ÅÀ¤Ç°Û¤Ê¤ê¤Þ¤¹. GENERIC ¥«¡¼¥Í¥ë¤Ï, ¾å¤ÎÎã¤ÈƱ¤¸ irq ¤È¥Ý¡¼¥È¥¢¥É¥ì¥¹¤ÎÀßÄê¤ÎÆó¤Ä¤Î¥·¥ê¥¢¥ë¥Ý¡¼¥È¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹. ¤³¤ì¤é¤ÎÀßÄ꤬¤¢¤Ê¤¿¤Î¥·¥¹¥Æ¥à¤Ë¹ç¤ï¤Ê¤¤¾ì¹ç, ¤Þ¤¿¤Ï¥â¥Ç¥à¥«¡¼¥É¤òÄɲä·¤¿¾ì¹ç¤ä¥«¡¼¥Í¥ë¤ÎÀßÄê°Ê¾å¤Ë¥·¥ê¥¢¥ë¥Ý¡¼¥È¤ò»ý¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï, ¥«¡¼¥Í¥ë¤òºÆ¹½ÃÛ (¥ê¥³¥ó¥Õ¥£¥°) ¤·¤Æ¤¯¤À¤µ¤¤. ¾Ü¤·¤¯¤Ï, ¤Î¥»¥¯¥·¥ç¥ó¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤. ¤É¤¦¤ä¤Ã¤¿¤é FreeBSD ¤¬¥â¥Ç¥à¥«¡¼¥É¤òǧ¼±¤·¤¿¤³¤È¤òÃΤ뤳¤È¤¬¤Ç¤­¤Þ¤¹¤«? Á°¤Î¼ÁÌä¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤. 2.0.5 ¤Ë¥¢¥Ã¥×¥°¥ì¡¼¥É¤·¤¿¤é tty0X ¤¬¸«¤Ä¤«¤é¤Ê¤¯¤Ê¤Ã¤Æ¤·¤Þ¤Ã¤¿¤Î¤Ç¤¹¤¬ ¿´ÇÛ¤¢¤ê¤Þ¤»¤ó. ttydX ¤ËÅý¹ç¤µ¤ì¤Þ¤·¤¿. ¤¿¤À, ¸Å¤¤ÀßÄê¥Õ¥¡¥¤¥ë¤Î¤¹¤Ù¤Æ¤ò¹¹¿·¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹. ¤É¤¦¤ä¤Ã¤¿¤é FreeBSD ¤Ç¥·¥ê¥¢¥ë¥Ý¡¼¥È¤Ë¥¢¥¯¥»¥¹¤Ç¤­¤Þ¤¹¤«? 3ÈÖÌܤΥݡ¼¥È sio2 (DOS ¤Ç¤Ï, COM3 ¤È¸Æ¤Ð¤ì¤Þ¤¹.) ¤Ë¤Ï, ¥À¥¤¥ä¥ë¥¢¥¦¥È¥Ç¥Ð¥¤¥¹¤È¤·¤Æ¤Ï /dev/cuaa2, ¥À¥¤¥ä¥ë¥¤¥ó¥Ç¥Ð¥¤¥¹¤È¤·¤Æ /dev/ttyd2 ¤¬¤¢¤ê¤Þ¤¹. ¤½¤ì¤Ç¤Ï¤³¤Îξ¼Ô¤Ë¤Ï¤É¤Î¤è¤¦¤Ê°ã¤¤¤¬¤¢¤ë¤Î¤Ç¤·¤ç¤¦¤«? ¤Þ¤º, ¥À¥¤¥ä¥ë¥¤¥ó¤Î»þ¤Ë¤Ï ttydX ¤ò»È¤¤¤Þ¤¹. /dev/ttydX ¤ò¥Ö¥í¥Ã¥­¥ó¥°¥â¡¼¥É¤Ç¥ª¡¼¥×¥ó¤¹¤ë¤È, ¥×¥í¥»¥¹¤ÏÂбþ¤¹¤ë cuaaX ¥Ç¥Ð¥¤¥¹¤¬¥¤¥ó¥¢¥¯¥Æ¥£¥Ö¤Ë¤Ê¤ë¤Î¤òÂÔ¤Á¤Þ¤¹. ¼¡¤Ë CD ¥é¥¤¥ó¤¬¥¢¥¯¥Æ¥£¥Ö¤Ë¤Ê¤ë¤Î¤òÂÔ¤Á¤Þ¤¹. cuaaX ¥Ç¥Ð¥¤¥¹¤ò¥ª¡¼¥×¥ó¤¹¤ë¤È, ¥·¥ê¥¢¥ë¥Ý¡¼¥È¤¬ttydX ¥Ç¥Ð¥¤¥¹¤Ë¤è¤Ã¤Æ¤¹¤Ç¤Ë»È¤ï¤ì¤Æ¤¤¤Ê¤¤¤«¤É¤¦¤«¤ò³Îǧ¤·¤Þ¤¹. ¤â¤·¤³¤Î¥Ý¡¼¥È¤¬»ÈÍѲÄǽ¤Ç¤¢¤ì¤Ð, ¥Ý¡¼¥È¤Î»ÈÍѸ¢¤ò ttydX ¤«¤é ``Ã¥¤¤¼è¤ë'' ¤Î¤Ç¤¹. ¤Þ¤¿, cuaXX ¥Ç¥Ð¥¤¥¹¤Ï CD ¥é¥¤¥ó¤ò´Æ»ë¤·¤Þ¤»¤ó. ¤³¤Î»ÅÁȤߤȼ«Æ°±þÅú¥â¥Ç¥à¤Ë¤è¤Ã¤Æ, ¥ê¥â¡¼¥È¥æ¡¼¥¶¡¼¤ò¥í¥°¥¤¥ó¤µ¤»¤¿¤ê, Ʊ¤¸¥â¥Ç¥à¤Ç¥À¥¤¥ä¥ë¥¢¥¦¥È¤·¤¿¤ê¤¹¤ë¤³¤È¤¬¤Ç¤­, ¥·¥¹¥Æ¥à¤Î¤¢¤é¤æ¤ë¥È¥é¥Ö¥ë¤ÎÌÌÅݤò¸«¤ë¤³¤È¤¬¤Ç¤­¤ë¤Ç¤·¤ç¤¦. ¥Þ¥ë¥Á¥Ý¡¼¥È¥·¥ê¥¢¥ë¥«¡¼¥É¤ò¥µ¥Ý¡¼¥È¤µ¤»¤ë¤Ë¤Ï¤É¤¦¤·¤¿¤é¤è¤¤¤Î¤Ç¤·¤ç¤¦¤«? ·«¤êÊÖ¤·¤Ë¤Ê¤ê¤Þ¤¹¤¬, ¤Î¥»¥¯¥·¥ç¥ó¤Ç¤Ï, ¤¢¤Ê¤¿¤Î¥«¡¼¥Í¥ë¤ÎÀßÄê¤Ë¤Ä¤¤¤Æ¤Î¾ðÊ󤬯À¤é¤ì¤ë¤Ç¤·¤ç¤¦. ¥Þ¥ë¥Á¥Ý¡¼¥È¥·¥ê¥¢¥ë¥«¡¼¥É¤ò»ÈÍѤ¹¤ë¤¿¤á¤Ë¤Ï, ¥«¡¼¥Í¥ë¤ÎÀßÄê¥Õ¥¡¥¤¥ë¤Ë, ¥«¡¼¥É¤Î»ý¤Ä¤½¤ì¤¾¤ì¤Î¥·¥ê¥¢¥ë¥Ý¡¼¥È¤ËÂбþ¤¹¤ë sio ¤Î¹Ô¤òµ­½Ò¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹. ¤·¤«¤·, irq ¤È¥Ù¥¯¥¿¡¼¤Ï°ì¤Ä¤Î¥¨¥ó¥È¥ê¤Ë¤Î¤ßµ­½Ò¤·¤Æ¤¯¤À¤µ¤¤. ¥«¡¼¥É¾å¤Î¤¹¤Ù¤Æ¤Î¥Ý¡¼¥È¤Ï°ì¤Ä¤Î irq ¤ò¶¦Í­¤·¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó. °ì´ÓÀ­¤ò»ý¤¿¤»¤ë¤¿¤á¤Ë¤â, ºÇ¸å¤Î¥·¥ê¥¢¥ë¥Ý¡¼¥È¤Î½ê¤Ç irq ¤ò»ØÄꤷ¤Æ¤¯¤À¤µ¤¤. ¤Þ¤¿, COM_MULTIPORT ¥ª¥×¥·¥ç¥ó¤âÉÕ¤±¤Æ¤¯¤À¤µ¤¤. ¼¡¤Ë¼¨¤¹Îã¤Ï, AST ¤Î 4 ¥Ý¡¼¥È¥·¥ê¥¢¥ë¥«¡¼¥É¤ò irq 7 ¤ÇÀßÄꤷ¤¿¤â¤Î¤Ç¤¹. options "COM_MULTIPORT" device sio4 at isa? port 0x2a0 tty flags 0x781 device sio5 at isa? port 0x2a8 tty flags 0x781 device sio6 at isa? port 0x2b0 tty flags 0x781 device sio7 at isa? port 0x2b8 tty flags 0x781 irq 7 vector siointr ¤³¤Î¥Õ¥é¥°¤Ï¥Þ¥¹¥¿¥Ý¡¼¥È¤¬¥Þ¥¤¥Ê¡¼¥Ê¥ó¥Ð¡¼ 7 (0x700) ¤ò»ý¤Ã¤Æ¤¤¤Æ, ¸¡½Ð»þ¤Î¿ÇÃǵ¡Ç½¤òÍ­¸ú¤Ë¤· (0x080), ¤½¤·¤Æ¤¹¤Ù¤Æ¤Î¥Ý¡¼¥È¤Ç irq ¤ò¶¦Í­¤¹¤ë (0x001) ¤È¤¤¤¦¤³¤È¤ò°ÕÌ£¤·¤Æ¤¤¤Þ¤¹. FreeBSD ¤ÇÊ£¿ô¤Î¥Þ¥ë¥Á¥Ý¡¼¥È¥·¥ê¥¢¥ë¥«¡¼¥É´Ö¤Ç irq ¤ò¶¦Í­¤¹¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤¹¤«? ¸½ºß¤Î¤È¤³¤í¤Ï¤Ç¤­¤Þ¤»¤ó. ¤½¤ì¤¾¤ì¤Î¥«¡¼¥ÉËè¤Ë°Û¤Ê¤Ã¤¿ irq ¤ò»È¤Ã¤Æ¤¯¤À¤µ¤¤. ¥Ý¡¼¥È¤Ë¥Ç¥Õ¥©¥ë¥È¤Î¥Ñ¥é¥á¡¼¥¿¤òÀßÄꤹ¤ë»ö¤Ï½ÐÍè¤Þ¤¹¤«? ttydX ¥Ç¥Ð¥¤¥¹ (¤Þ¤¿¤Ï cuaaX ¥Ç¥Ð¥¤¥¹) ¤Ï, ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Î¤¿¤á¤Ë¥ª¡¼¥×¥ó¤¹¤ëɸ½àŪ¤Ê¥Ç¥Ð¥¤¥¹¤Ç¤¹. ¥×¥í¥»¥¹¤¬¤½¤Î¥Ý¡¼¥È¤ò¥ª¡¼¥×¥ó¤¹¤ë»þ, ¥×¥í¥»¥¹¤Ï¥Ç¥Õ¥©¥ë¥È¤ÎüËö I/O ÀßÄê¤ò¼èÆÀ¤·¤Þ¤¹. ¤³¤ì¤é¤ÎÀßÄê¤Ï¼¡¤Î¥³¥Þ¥ó¥É¤Ç³Îǧ¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. stty -a -f /dev/ttyd1 ¤³¤Î¥Ç¥Ð¥¤¥¹¤ËÂФ¹¤ëÀßÄê¤òÊѹ¹¤·¤¿¾ì¹ç, ¤½¤ÎÀßÄê¤Ï¥Ç¥Ð¥¤¥¹¤ò¥¯¥í¡¼¥º¤¹¤ë¤Þ¤ÇÍ­¸ú¤Ç¤¹. ¥Ç¥Ð¥¤¥¹¤òºÆ¥ª¡¼¥×¥ó¤·¤¿¾ì¹ç, ¤½¤ì¤é¤ÎÀßÄê¤Ï¥Ç¥Õ¥©¥ë¥È¤ËÌá¤Ã¤Æ¤·¤Þ¤¤¤Þ¤¹. ¥Ç¥Õ¥©¥ë¥È¤ÎÀßÄê¤ËÊѹ¹¤ò²Ã¤¨¤ë¤¿¤á¤Ë, ``½é´üÀßÄê'' ¥Ç¥Ð¥¤¥¹¤ò¥ª¡¼¥×¥ó¤·, ÀßÄê¤ò½¤Àµ¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. Î㤨¤Ð, CLOCAL ¥â¡¼¥É, 8 ¥Ó¥Ã¥È, XON/XOFF ¥Õ¥í¡¼À©¸æ¤È¤¤¤¦ÀßÄê¤ò ttyd5 ¤Î¥Ç¥Õ¥©¥ë¥È¤Ë¤·¤¿¤¤¾ì¹ç, ¼¡¤Î¤è¤¦¤Ë¤ª¤³¤Ê¤Ã¤Æ¤¯¤À¤µ¤¤. stty -f /dev/ttyid5 clocal cs8 ixon ixoff ¤³¤ÎÀßÄê¤ò¤ª¤³¤Ê¤¦¤¿¤á¤Î¥³¥Þ¥ó¥É¤òµ­½Ò¤¹¤ë¤Î¤ËŬÀڤʥե¡¥¤¥ë¤Ï, /etc/rc.serial ¤Ç¤¹. ¤³¤ì¤Ç¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤¬ttyd5 ¤ò¥ª¡¼¥×¥ó¤·¤¿»þ¤Ë, ¤³¤ì¤é¤ÎÀßÄê¤ò¥Ç¥Õ¥©¥ë¥È¤Ç¼èÆÀ¤·¤Þ¤¹. ¤·¤«¤·, ¤³¤¦¤¤¤Ã¤¿¥ê¥ó¥¯¤Ë¤è¤ëÀßÄê¤ÏÊѹ¹²Äǽ¤Ç¤¹. ``ÀßÄê¸ÇÄê'' ¥Ç¥Ð¥¤¥¹¤òÄ´À°¤·¤Æ¤ä¤ë¤³¤È¤Ë¤è¤Ã¤Æ, ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ë¤è¤ëÀßÄê¤ÎÊѹ¹¤ò¶Ø»ß¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. Î㤨¤Ð, ttyd5 ¤ÎÄÌ¿®Â®ÅÙ¤ò 57600 bps ¤Ë¸ÇÄꤹ¤ë¤Ë¤Ï, ¼¡¤Î¤è¤¦¤Ë¹Ô¤Ã¤Æ¤¯¤À¤µ¤¤. stty -f /dev/ttyld5 57600 ¤³¤ì¤Ë¤è¤ê, ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Ï ttyd5 ¤ò¥ª¡¼¥×¥ó¤·, ¥Ý¡¼¥È¤ÎÄÌ¿®Â®ÅÙ¤òÊѹ¹¤·¤è¤¦¤È¤·¤Þ¤¹¤¬, ÄÌ¿®Â®ÅÙ¤Ï 57600 bps ¤Î¤Þ¤Þ¤Ë¤Ê¤ê¤Þ¤¹. ÅöÁ³¤Î¤³¤È¤Ê¤¬¤é, ½é´üÀßÄê¥Ç¥Ð¥¤¥¹¤ª¤è¤Ó, ÀßÄê¸ÇÄê¥Ç¥Ð¥¤¥¹¤Ï root ¤Î¤ß¤¬½ñ¤­¹þ¤ß¤Ç¤­¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó. ¤·¤«¤·, MAKEDEV ¥¹¥¯¥ê¥×¥È¤Ï¥Ç¥Ð¥¤¥¹¥¨¥ó¥È¥ê¤òºîÀ®¤¹¤ë»þ¤Ë, ¤³¤Î¤è¤¦¤ÊÀßÄê¤Ï¹Ô¤¤¤Þ¤»¤ó. ¤É¤Î¤è¤¦¤Ë¤·¤¿¤é ¥â¥Ç¥à·Ðͳ¤Ç¥À¥¤¥ä¥ë¥¢¥Ã¥×¥í¥°¥¤¥ó¤¬¤Ç¤­¤ë¤Î¤Ç¤·¤ç¤¦¤«? ¤Ä¤Þ¤ê, ¥¤¥ó¥¿¡¼¥Í¥Ã¥È¥µ¡¼¥Ó¥¹¥×¥í¥Ð¥¤¥À¡¼¤Ë¤Ê¤ê¤¿¤¤¤Î¤Ç¤¹¤Í. ¤½¤ì¤Ë¤Ï¤Þ¤º, 1 Âæ¤Ê¤¤¤·Ê£¿ô¤Î¼«Æ°±þÅú¥â¥Ç¥à¤¬É¬ÍפǤ¹. ¥â¥Ç¥à¤Ë¤Ï, ¥­¥ã¥ê¥¢¡¼¤ò¸¡½Ð¤·¤¿»þ¤Ë¤Ï CD¿®¹æ¤ò½ÐÎϤ·, ¤½¤¦¤Ç¤Ê¤¤¾ì¹ç¤Ë¤Ï½ÐÎϤ·¤Ê¤¤¤³¤È¤¬É¬ÍפȤµ¤ì¤Þ¤¹. ¤Þ¤¿ DTR ¿®¹æ¤¬ on ¤«¤é off ¤Ë¤Ê¤Ã¤¿»þ¤Ë¤Ï, ÅÅÏòóÀþ¤òÀÚÃǤ·, ¥â¥Ç¥à¼«¿È¤ò¥ê¥»¥Ã¥È¤·¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó. ¤ª¤½¤é¤¯, RTS/CTS ¥Õ¥í¡¼À©¸æ¤ò»È¤¦¤«, ¥í¡¼¥«¥ë¥Õ¥í¡¼À©¸æ¤ò¤Þ¤Ã¤¿¤¯»È¤ï¤Ê¤¤¤«¤Î¤É¤Á¤é¤«¤Ç¤·¤ç¤¦. ºÇ¸å¤Ë, ¥³¥ó¥Ô¥å¡¼¥¿¤È¥â¥Ç¥à¤Î´Ö¤Ï¸ÇÄê®Å٤Ǥʤ±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó. ¤¿¤À, (¥À¥¤¥ä¥ë¥¢¥Ã¥×¤Îȯ¸Æ¼Ô¤ËÂФ·¤Æ¿ÆÀڤǤ¢¤ë¤¿¤á¤Ë¤Ï) ¤³¤Á¤é¤Î¥â¥Ç¥à¤ÈÁê¼ê¦¤Î¥â¥Ç¥à¤Î´Ö¤Î®ÅÙ¤ò, ¥â¥Ç¥à´Ö¤Ç¼«Æ°Ä´À°¤Ç¤­¤ë¤è¤¦¤Ë¤¹¤Ù¤­¤Ç¤·¤ç¤¦. ¿¤¯¤¢¤ë¥Ø¥¤¥º¥³¥Þ¥ó¥É¸ß´¹¥â¥Ç¥à¤ËÂФ·¤Æ, ¼¡¤Î¥³¥Þ¥ó¥É¤Ï¤³¤ì¤é¤ÎÀßÄê¤ò¤ª¤³¤Ê¤¤, ¤½¤ÎÀßÄê¤òÉÔ´øÈ¯À­¥á¥â¥ê¡¼¤ËÊݸ¤·¤Þ¤¹. AT &C1 &D3 &K3 &Q6 S0=1 &W MS-DOS ¤Î¥¿¡¼¥ß¥Ê¥ë¥×¥í¥°¥é¥à¤ËÍê¤é¤º¤Ë AT ¥³¥Þ¥ó¥É¤òÁ÷½Ð¤¹¤ë¤Ë¤Ï, ¤Î¥»¥¯¥·¥ç¥ó°Ê²¼¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤. ¼¡¤Ë, ¥â¥Ç¥àÍѤΥ¨¥ó¥È¥ê¤ò /etc/ttys ¤ËºîÀ®¤·¤Þ¤·¤ç¤¦. ¤³¤Î¥Õ¥¡¥¤¥ë¤Ë¤Ï, ¥ª¥Ú¥ì¡¼¥Æ¥£¥ó¥°¥·¥¹¥Æ¥à¤¬¥í¥°¥¤¥ó¤òÂԤäƤ¤¤ë¤¹¤Ù¤Æ¤Î¥Ý¡¼¥È¤¬µ­½Ò¤µ¤ì¤Æ¤¤¤Þ¤¹. °Ê²¼¤Î¤è¤¦¤Ê¹Ô¤òÄɲ䷤Ƥ¯¤À¤µ¤¤. ttyd1 "/usr/libexec/getty std.57600" dialup on insecure ¤³¤Î¹Ô¤Ï, 2 ÈÖÌܤΥ·¥ê¥¢¥ë¥Ý¡¼¥È (/dev/ttyd1) ¤Ë¤Ï, 57600 bps ¤ÎÄÌ¿®Â®Å٤ǥΥó¥Ñ¥ê¥Æ¥£ (std.57600 : ¤³¤ì¤Ï /etc/gettytab¤Ëµ­½Ò¤µ¤ì¤Æ¤¤¤Þ¤¹.) ¤Î¥â¥Ç¥à¤¬Àܳ¤µ¤ì¤Æ¤¤¤ë¤³¤È¤ò¼¨¤·¤Æ¤¤¤Þ¤¹. ¤³¤Î¥Ý¡¼¥È¤ÎüËö¥¿¥¤¥×¤Ï ``dialup'' ¤Ç¤¹. ¤Þ¤¿¤³¤Î¥Ý¡¼¥È¤Ï, ``on'' ¤¹¤Ê¤ï¤Á¥í¥°¥¤¥ó²Äǽ¤Ç¤¢¤ê, ``insecure'' ¤³¤ì¤Ï root ¤¬¤³¤Î¥Ý¡¼¥È¤«¤éľÀÜ¥í¥°¥¤¥ó¤¹¤ë¤Î¤Ï, µö²Ä¤µ¤ì¤Æ¤¤¤Ê¤¤¤È¤¤¤¦¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹. ¤³¤Î¤è¤¦¤Ê¥À¥¤¥ä¥ë¥¤¥ó¥Ý¡¼¥È¤ËÂФ·¤Æ¤Ï, ttydX ¤Î¥¨¥ó¥È¥ê¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤. ¤³¤ì¤¬°ìÈÌŪ¤Ê, ¥¿¡¼¥ß¥Ê¥ë¥¿¥¤¥×¤È¤·¤Æ ``dialup'' ¤ò»È¤¦ÊýË¡¤Ç¤¹. ¿¤¯¤Î¥æ¡¼¥¶¡¼¤Ï, .profile ¤ä .login ¤Ç, login »þ¤ÎüËö¥¿¥¤¥×¤¬ dialup ¤Ç¤¢¤Ã¤¿¾ì¹ç¤Ë¤Ï, ¼ÂºÝ¤ÎüËö¥¿¥¤¥×¤ò¥æ¡¼¥¶¡¼¤ËÌ䤤¹ç¤ï¤»¤ë¤è¤¦¤ËÀßÄꤷ¤Æ¤¤¤Þ¤¹. ¤³¤ÎÎã¤Ï, ¥Ý¡¼¥È¤¬ ``insecure'' ¤Ç¤·¤¿. ¤³¤Î¥Ý¡¼¥È¤Ç root ¤Ë¤Ê¤ë¤Ë¤Ï, °ìÈ̥桼¥¶¡¼¤È¤·¤Æ¥í¥°¥¤¥ó¤·, ¤½¤ì¤«¤é ``su'' ¤ò»È¤Ã¤Æ root ¤Ë¤Ê¤Ã¤Æ¤¯¤À¤µ¤¤. ¤â¤·, ``secure'' ¤ò»ØÄꤷ¤¿¤Ê¤é¤Ð, ľÀÜ root ¤¬¤½¤Î¥Ý¡¼¥È¤«¤é¥í¥°¥¤¥ó¤Ç¤­¤Þ¤¹. /etc/ttys ¤ËÊѹ¹¤ò²Ã¤¨¤¿¸å¤Ï, hungup ¤â¤·¤¯¤ÏHUP ¥·¥°¥Ê¥ë¤ò init ¥×¥í¥»¥¹¤ËÁ÷¤ëɬÍפ¬¤¢¤ê¤Þ¤¹. kill -HUP 1 ¤³¤ÎÁàºî¤Ï init ¥×¥í¥»¥¹¤Ë /etc/ttys ¤òºÆÆÉ¤ß¹þ¤ß¤µ¤»¤Þ¤¹. ¤³¤ì¤Ë¤è¤ê, init ¥×¥í¥»¥¹¤Ï getty ¥×¥í¥»¥¹¤ò ¤¹¤Ù¤Æ¤Î ``on'' ¤È¤Ê¤Ã¤Æ¤¤¤ë¥Ý¡¼¥È¤Ëµ¯Æ°¤µ¤»¤Þ¤¹. ¼¡¤Î¤è¤¦¤Ë¤·¤Æ, ¥Ý¡¼¥È¤¬¥í¥°¥¤¥ó²Äǽ¤«¤òÃΤ뤳¤È¤¬¤Ç¤­¤Þ¤¹. ps -ax | grep '[t]tyd1' ¥í¥°¥¤¥ó²Äǽ¤Ç¤¢¤ì¤Ð, ¼¡¤Î¤è¤¦¤Ê½ÐÎϤ¬ÆÀ¤é¤ì¤ë¤Ï¤º¤Ç¤¹. 747 ?? I 0:00.04 /usr/libexec/getty std.57600 ttyd1 ¥À¥à¥¿¡¼¥ß¥Ê¥ë¤ò FreeBSD ¥Þ¥·¥ó¤ËÀܳ¤¹¤ë¤Ë¤Ï¤É¤¦¤·¤¿¤é¤è¤¤¤Î¤Ç¤·¤ç¤¦¤«? ¤â¤·, ¾¤Î¥³¥ó¥Ô¥å¡¼¥¿¡¼¤ò FreeBSD ¤ÎüËö¤È¤·¤ÆÀܳ¤·¤¿¤¤¤Î¤Ê¤é¤Ð, ¤ª¸ß¤¤¤Î¥·¥ê¥¢¥ë¥Ý¡¼¥È´Ö¤ò¤Ä¤Ê¤°¥Ì¥ë¥â¥Ç¥à¥±¡¼¥Ö¥ë [ÌõÃí: ¥ê¥Ð¡¼¥¹¥±¡¼¥Ö¥ë¤â¤·¤¯¤Ï¥¯¥í¥¹¥±¡¼¥Ö¥ë¤È¤â¸Æ¤Ð¤ì¤Þ¤¹.] ¤òÍѰդ·¤Æ¤¯¤À¤µ¤¤. ¤â¤·, ´ûÀ½¤ÎüËö¤ò»È¤¦¾ì¹ç¤Ï, ÉÕ°¤¹¤ë¥Þ¥Ë¥å¥¢¥ë¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤. ¤½¤·¤Æ, /etc/ttys ¤ò¾å¤ÈƱ¤¸¤è¤¦¤ËÊѹ¹¤·¤Æ¤¯¤À¤µ¤¤. Î㤨¤Ð, WYSE-50 ¤È¤¤¤¦Ã¼Ëö¤ò 5 ÈÖÌܤΥݡ¼¥È¤ËÀܳ¤¹¤ë¤Ê¤é¤Ð, ¼¡¤Î¤è¤¦¤Ê¥¨¥ó¥È¥ê¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤. ttyd4 "/usr/libexec/getty std.38400" wyse50 on secure ¤³¤ÎÎã¤Ï, /dev/ttyd4 ¥Ý¡¼¥È¤Ë¥Î¥ó¥Ñ¥ê¥Æ¥£¡¼, üËö¥¿¥¤¥×¤¬ wyse50, ÄÌ¿®Â®ÅÙ¤¬ 38400 bps (std.38400 : ¤³¤ÎÀßÄê¤Ï, /etc/gettytab ¤Ëµ­½Ò¤µ¤ì¤Æ¤¤¤Þ¤¹.) ¤ÎüËö¤¬Â¸ºß¤·¤Æ¤ª¤ê, root ¤Î¥í¥°¥¤¥ó¤¬µö²Ä¤µ¤ì¤Æ¤¤¤ë (secure) ¤Ç¤¢¤ë¤³¤È¤ò¼¨¤·¤Æ¤¤¤Þ¤¹. ¤É¤¦¤·¤Æ tip ¤ä cu ¤¬Æ°¤«¤Ê¤¤¤Î¤Ç¤¹¤«? ¤ª¤½¤é¤¯¤¢¤Ê¤¿¤Î¥·¥¹¥Æ¥à¤Ç¤Ï tip ¤ä cu ¤Ï uucp ¥æ¡¼¥¶¡¼¤«, dialer ¥°¥ë¡¼¥×¤Ë¤è¤Ã¤Æ¤Î¤ß¼Â¹Ô²Äǽ¤Ê¤Î¤Ç¤·¤ç¤¦. dialer ¥°¥ë¡¼¥×¤Ï, ¥â¥Ç¥à¤ä¥ê¥â¡¼¥È¥·¥¹¥Æ¥à¤Ë¥¢¥¯¥»¥¹¤¹¤ë¥æ¡¼¥¶¡¼¤ò´ÉÍý¤¹¤ë¤¿¤á¤Ë, »ÈÍѤ¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. ¤½¤ì¤Ë¤Ï, /etc/group ¥Õ¥¡¥¤¥ë¤Î dialer ¥°¥ë¡¼¥×¤Ë¤¢¤Ê¤¿¼«¿È¤òÄɲ䷤Ƥ¯¤À¤µ¤¤. ¤½¤¦¤¹¤ëÂå¤ï¤ê¤Ë, ¼¡¤Î¤è¤¦¤Ë¥¿¥¤¥×¤¹¤ë¤³¤È¤Ë¤è¤ê, ¤¢¤Ê¤¿¤Î¥·¥¹¥Æ¥à¤ÎÁ´¥æ¡¼¥¶¡¼¤¬ tip ¤ä cu ¤ò¼Â¹Ô¤Ç¤­¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹. # chmod 4511 /usr/bin/cu # chmod 4511 /usr/bin/tip »ä¤Î Hayes ¥â¥Ç¥à¤Ï¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¤Î¤Ç¤¹¤¬, ¤É¤¦¤·¤¿¤é¤¤¤¤¤Î¤Ç¤·¤ç¤¦¤«. ¼ÂºÝ, tip ¤Î¥ª¥ó¥é¥¤¥ó¥Þ¥Ë¥å¥¢¥ë¤Ï¸Å¤¯¤Ê¤Ã¤Æ¤¤¤Þ¤¹. ¤¹¤Ç¤Ë, Hayes ¥À¥¤¥¢¥é¡¼¤¬¼ÂÁõ¤µ¤ì¤Æ¤¤¤Þ¤¹. /etc/remote ¥Õ¥¡¥¤¥ë¤Ç, ``at=hayes'' ¤È»ØÄꤷ¤Æ¤¯¤À¤µ¤¤. Hayes ¥É¥é¥¤¥Ð¤Ï, ºÇ¶á¤Î¥â¥Ç¥à¤Î¿·¤·¤¤µ¡Ç½¤Ç¤¢¤ë, BUSY, NO DIALTONE, CONNECT 115200 ¤Ê¤É¤Î¥á¥Ã¥»¡¼¥¸¤òǧ¼±¤Ç¤­¤ë¤Û¤É¸­¤¯¤Ï¤Ê¤¯, ñ¤Ëº®Íð¤òµ¯¤³¤¹¤À¤±¤Ç¤¹. tip ¤ò»È¤¦¾ì¹ç¤Ë¤Ï, (ATX0&W¤È¤¹¤ë¤Ê¤É¤·¤Æ) ¤³¤ì¤é¤Î¥á¥Ã¥»¡¼¥¸¤òɽ¼¨¤µ¤»¤Ê¤¤¤è¤¦¤Ë¤·¤Ê¤¯¤Æ¤Ï¤¤¤±¤Þ¤»¤ó. ¤Þ¤¿, tip ¤Î¥À¥¤¥ä¥ë¤Î¥¿¥¤¥à¥¢¥¦¥È¤Ï 60 ÉäǤ¹. ¥â¥Ç¥à¤Î¥¿¥¤¥à¥¢¥¦¥ÈÀßÄê¤Ï¤½¤ì¤è¤êû¤¯¤¹¤Ù¤­¤Ç¤¢¤ê, ¤½¤¦¤·¤Ê¤¤¤È tip ¤ÏÄÌ¿®¤ËÌäÂ꤬¤¢¤ë¤ÈȽÃǤ¹¤ë¤Ç¤·¤ç¤¦. ATS7=45&W ¤ò¼Â¹Ô¤·¤Æ¤¯¤À¤µ¤¤. ¼ÂºÝ, ¥Ç¥Õ¥©¥ë¥È¤Î tip ¤Ï Hayes ¤Î´°Á´¤Ê¥µ¥Ý¡¼¥È¤ò¤·¤Æ¤¤¤ë¤ï¤±¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó. ²ò·èÊýË¡¤Ï /usr/src/usr.bin/tip/tip ¤Î²¼¤Îtipconf.h¤òÊѹ¹¤¹¤ë¤³¤È¤Ç¤¹. ¤â¤Á¤í¤ó, ¤³¤ì¤Ë¤Ï¥½¡¼¥¹ÇÛÉÛ¥Õ¥¡¥¤¥ë¤¬É¬ÍפǤ¹. ``#define HAYES 0'' ¤Èµ­½Ò¤µ¤ì¤Æ¤¤¤ë¹Ô¤ò ``#define HAYES1'' ¤ÈÊѹ¹¤·, ¤½¤·¤Æ ``make'' and ``make install'' ¤ò¼Â¹Ô¤·¤Þ¤¹. ¤³¤ì¤Ç¤¦¤Þ¤¯Æ°ºî¤¹¤ë¤Ç¤·¤ç¤¦. ¤³¤ì¤é¤Î AT ¥³¥Þ¥ó¥É¤òÆþÎϤ¹¤ë¤Ë¤Ï? /etc/remote ¥Õ¥¡¥¤¥ë¤ÎÃæ¤Ç ``direct'' ¥¨¥ó¥È¥ê¤òºî¤ê¤Þ¤¹. ¤¿¤È¤¨¤Ð¥â¥Ç¥à¤¬ 1ÈÖÌܤΥ·¥ê¥¢¥ë¥Ý¡¼¥È¤Ç¤¢¤ë /dev/cuaa0¤ËÀܳ¤µ¤ì¤Æ¤¤¤ë¾ì¹ç, ¼¡¤Î¤è¤¦¤Ë¤·¤Þ¤¹: cuaa0:dv=/dev/cuaa0:br#19200:pa=none ¥â¥Ç¥à¤¬¥µ¥Ý¡¼¥È¤¹¤ëºÇÂç¤Î bps ¥ì¡¼¥È¤ò br ¥Õ¥£¡¼¥ë¥É¤Ë»È¤¤¤Þ¤¹. ¤½¤·¤Æ tip cuaa0 ¤ò¼Â¹Ô¤¹¤ë¤È, ¥â¥Ç¥à¤¬ÍøÍѤǤ­¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹. /dev/cuaa0¤¬¥·¥¹¥Æ¥à¤Ë¸ºß¤·¤Ê¤¤¾ì¹ç¤Ï, ¼¡¤Î¤è¤¦¤Ë¤·¤Þ¤¹: # cd /dev # ./MAKEDEV cuaa0 ¤Þ¤¿¤Ï root ¤Ë¤Ê¤Ã¤Æ°Ê²¼¤Î¤è¤¦¤Ë cu ¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Þ¤¹: # cu -l``line'' -s``speed'' ``line'' ¤Ë¤Ï¥·¥ê¥¢¥ë¥Ý¡¼¥È¤ò»ØÄꤷ¤Þ¤¹ (Î㤨¤Ð /dev/cuaa0). ¤½¤·¤Æ ``speed'' ¤Ë¤ÏÀܳ¤¹¤ë®ÅÙ¤ò»ØÄꤷ¤Þ¤¹ (Î㤨¤Ð 57600). ¤½¤Î¸å AT ¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤¿¤é, ~.¤ÈÆþÎϤ¹¤ì¤Ð½ªÎ»¤·¤Þ¤¹. pn µ¡Ç½¤Î @ µ­¹æ¤¬»È¤¨¤Þ¤»¤ó! ÅÅÏÃÈÖ¹æ (pn) µ¡Ç½¤ÎÃæ¤Ç¤Î @ µ­¹æ¤Ï, tip ¤Ë /etc/phones ¤Ë¤¢¤ëÅÅÏÃÈÖ¹æ¤ò»²¾È¤¹¤ë¤è¤¦¤ËÅÁ¤¨¤Þ¤¹. ¤·¤«¤· @ ¤Îʸ»ú¤Ï /etc/remote ¤Î¤è¤¦¤ÊÀßÄê¥Õ¥¡¥¤¥ë¤ÎÃæ¤Ç¤ÏÆÃ¼ìʸ»ú¤È¤Ê¤ê¤Þ¤¹. ¤½¤³¤Ç, ¥Ð¥Ã¥¯¥¹¥é¥Ã¥·¥å¤ò»È¤Ã¤Æ¥¨¥¹¥±¡¼¥×¤ò¹Ô¤¤¤Þ¤¹: pn=\@ ¥³¥Þ¥ó¥É¥é¥¤¥ó¤«¤éÅÅÏÃÈÖ¹æ¤ò»ØÄꤹ¤ë¤Ë¤Ï? ``generic'' ¥¨¥ó¥È¥ê¤È¸Æ¤Ð¤ì¤ë¤â¤Î¤ò /etc/remote ¤ËÄɲä·¤Þ¤¹. Î㤨¤Ð, ¼¡¤Î¤è¤¦¤Ë¤·¤Þ¤¹: tip115200|Dial any phone number at 115200 bps:\ :dv=/dev/cuaa0:br#115200:at=hayes:pa=none:du: tip57600|Dial any phone number at 57600 bps:\ :dv=/dev/cuaa0:br#57600:at=hayes:pa=none:du: ¤½¤·¤Æ ``tip -115200 5551234'' ¤Î¤è¤¦¤ËÍøÍѤǤ­¤Þ¤¹. tip ¤è¤ê cu ¤ò»È¤¤¤¿¤¤¾ì¹ç, cu ¤Î generic ¥¨¥ó¥È¥ê¤ò»È¤¤¤Þ¤¹: cu115200|Use cu to dial any number at 115200bps:\ :dv=/dev/cuaa1:br#57600:at=hayes:pa=none:du: ¤½¤·¤Æ ``cu 5551234 -s 115200'' ¤È¼Â¹Ô¤·¤Þ¤¹. Ëè²ó bps ¥ì¡¼¥È¤òÆþÎϤ·¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó¤«? tip1200 ¤ä cu1200 ÍѤΥ¨¥ó¥È¥ê¤òµ­½Ò¤·, ŬÀÚ¤ÊÄÌ¿®Â®ÅÙ¤ò br ¥Õ¥£¡¼¥ë¥É¤ËÀßÄꤷ¤Þ¤¹. tip ¤Ï 1200 bps ¤¬Àµ¤·¤¤¥Ç¥Õ¥©¥ë¥ÈÃͤǤ¢¤ë¤È¤ß¤Ê¤¹¤Î¤Ç, ``tip1200'' ¥¨¥ó¥È¥ê¤ò»²¾È¤·¤Þ¤¹. ¤â¤Á¤í¤ó 1200 bps ¤ò»È¤ï¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¤ï¤±¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó. ¥¿¡¼¥ß¥Ê¥ë¥µ¡¼¥Ð¤ò·Ðͳ¤·¤ÆÊ£¿ô¤Î¥Û¥¹¥È¤Ø¥¢¥¯¥»¥¹¤·¤¿¤¤¤Î¤Ç¤¹¤¬. Ëè²óÀܳ¤µ¤ì¤ë¤Î¤òÂÔ¤Ã¤Æ ``CONNECT <host>'' ¤ÈÆþÎϤ¹¤ë¤«¤ï¤ê¤Ë, tip ¤Î cm µ¡Ç½¤ò»È¤¤¤Þ¤¹. Î㤨¤Ð, /etc/remote ¤Ë¼¡¤Î¤è¤¦¤Ê¥¨¥ó¥È¥ê¤òÄɲä·¤Þ¤¹: pain|pain.deep13.com|Forrester's machine:\ :cm=CONNECT pain\n:tc=deep13: muffin|muffin.deep13.com|Frank's machine:\ :cm=CONNECT muffin\n:tc=deep13: deep13:Gizmonics Institute terminal server:\ :dv=/dev/cua02:br#38400:at=hayes:du:pa=none:pn=5551234: ¤³¤ì¤Ç, ``tip pain'' ¤ä ``tip muffin'' ¤È¼Â¹Ô¤¹¤ë¤È pain ¤ä muffin ¤Î¥Û¥¹¥È¤ËÀܳ¤¹¤ë¤³¤È¤¬¤Ç¤­, ``tip deep13'' ¤ò¼Â¹Ô¤¹¤ë¤È¥¿¡¼¥ß¥Ê¥ë¥µ¡¼¥Ð¤ËÀܳ¤·¤Þ¤¹. tip ¤ò»È¤Ã¤Æ¤½¤ì¤¾¤ì¤Î¥µ¥¤¥È¤ÎÊ£¿ô¤Î²óÀþ¤ËÀܳ¤Ç¤­¤Þ¤¹¤«? ¤³¤ì¤ÏÂç³Ø¤ËÅÅÏòóÀþ¤¬¤¤¤¯¤Ä¤«¤¢¤Ã¤Æ, ¿ôÀé¿Í¤Î³ØÀ¸¤¬Àܳ¤·¤è¤¦¤È¤¹¤ë¾ì¹ç¤Ë¤è¤¯¤¢¤ëÌäÂê¤Ç¤¹. ¤¢¤Ê¤¿¤ÎÂç³Ø¤Î¥¨¥ó¥È¥ê¤ò /etc/remote ¥Õ¥¡¥¤¥ë¤ËºîÀ®¤·¤Æ, pn ¤Î¥Õ¥£¡¼¥ë¥É¤Ë¤Ï \@ ¤ò»È¤¤¤Þ¤¹: big-university:\ :pn=\@:tc=dialout dialout:\ :dv=/dev/cuaa3:br#9600:at=courier:du:pa=none: ¤½¤·¤Æ /etc/phones ¥Õ¥¡¥¤¥ë¤ËÂç³Ø¤ÎÅÅÏÃÈÖ¹æ¤Î°ìÍ÷¤ò½ñ¤­¤Þ¤¹: big-university 5551111 big-university 5551112 big-university 5551113 big-university 5551114 tip ¤Ï°ìÏ¢¤ÎÅÅÏÃÈÖ¹æ¤ò¾å¤«¤é½ç¤Ë»î¤ß¤Æ, ºÇ½ªÅª¤ËÀܳ¤Ç¤­¤Ê¤±¤ì¤Ð¤¢¤­¤é¤á¤Þ¤¹. ¥ê¥È¥é¥¤¤ò³¤±¤µ¤»¤¿¤¤¾ì¹ç¤Ï, tip ¤ò while ¥ë¡¼¥×¤ËÆþ¤ì¤Æ¼Â¹Ô¤·¤Þ¤¹. CTRL+P ¤ò 1²óÁ÷¤ë¤¿¤á¤Ë 2ÅÙ²¡¤¹É¬Íפ¬¤¢¤ë¤Î¤Ï¤Ê¤¼? CTRL+P ¤ÏÄ̾ï ``force (¶¯À©)'' ʸ»ú¤Ç¤¢¤ê, tip ¤Ë¼¡¤Îʸ»ú¤¬¥ê¥Æ¥é¥ë¥Ç¡¼¥¿¤Ç¤¢¤ë¤³¤È¤òÅÁ¤¨¤Þ¤¹. force ʸ»ú¤Ï¡ÖÊÑ¿ô¤ÎÀßÄê¡×¤ò°ÕÌ£¤¹¤ë ~s ¥¨¥¹¥±¡¼¥×¤Ë¤è¤Ã¤Æ, ¾¤Îʸ»ú¤Ë¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. ``~sforce=<single-char>'' ¤ÈÆþÎϤ·¤Æ²þ¹Ô¤·¤Þ¤¹. <single-char> ¤Ï, Ǥ°Õ¤Î 1 ¥Ð¥¤¥Èʸ»ú¤Ç¤¹. <single-char> ¤ò¾Êά¤¹¤ë¤È NUL ʸ»ú¤Ë¤Ê¤ê, ¤³¤ì¤Ï CTRL+2 ¤ä CTRL+SPACE ¤ò²¡¤·¤Æ¤âÆþÎϤǤ­¤Þ¤¹. ¤¤¤¯¤Ä¤«¤Î¥¿¡¼¥ß¥Ê¥ë¥µ¡¼¥Ð¤Ç»È¤ï¤ì¤Æ¤¤¤ë¤Î¤ò¸«¤¿¤À¤±¤Ç¤¹¤¬, <single-char> ¤Ë SHIFT+CTRL+6 ¤Ë³ä¤êÅö¤Æ¤ë¤Î¤â¤è¤¤¤Ç¤·¤ç¤¦. $HOME/.tiprc ¤Ë¼¡¤Î¤è¤¦¤ËÄêµÁ¤¹¤ë¤³¤È¤Ç, Ǥ°Õ¤Îʸ»ú¤ò force ʸ»ú¤È¤·¤ÆÍøÍѤǤ­¤Þ¤¹: force=<single-char> ÂǤÁ¹þ¤ó¤Àʸ»ú¤¬ÆÍÁ³¤¹¤Ù¤ÆÂçʸ»ú¤Ë¤Ê¤ê¤Þ¤·¤¿?? CTRL+A ¤ò²¡¤·¤Æ¤·¤Þ¤¤, caps-lock ¥­¡¼¤¬²õ¤ì¤Æ¤¤¤ë¾ì¹ç¤Î¤¿¤á¤ËÀ߷פµ¤ì¤¿ ``tip'' ¤Î ``raise character'' ¥â¡¼¥É¤ËÆþ¤Ã¤¿¤Î¤Ç¤·¤ç¤¦. ´û¤Ë½Ò¤Ù¤¿ ~s ¤ò»È¤Ã¤Æ, ``raisechar'' ¤ò¤è¤êŬÀÚ¤ÊÃͤËÊѹ¹¤·¤Æ¤¯¤À¤µ¤¤. ¤â¤·¤³¤ì¤éξÊý¤Îµ¡Ç½¤ò»ÈÍѤ·¤Ê¤¤¤Î¤Ç¤¢¤ì¤Ð, force ʸ»ú¤ÈƱ¤¸ÀßÄê¤Ë¤¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹. °Ê²¼¤Ï CTRL+2 ¤ä CTRL+A ¤Ê¤É¤òÉÑÈˤ˻Ȥ¦É¬ÍפΤ¢¤ë Emacs ¥æ¡¼¥¶¤Ë¤¦¤Ã¤Æ¤Ä¤±¤Î .tiprc ¥Õ¥¡¥¤¥ë¤Î¥µ¥ó¥×¥ë¤Ç¤¹: force=^^ raisechar=^^ ^ ¤Ï SHIFT+CTRL+6 ¤Ç¤¹. tip ¤Ç¥Õ¥¡¥¤¥ë¤òžÁ÷¤¹¤ë¤Ë¤Ï? ¤â¤·Â¾¤Î UNIX ¤Î¥·¥¹¥Æ¥à¤ÈÀܳ¤·¤Æ¤¤¤ë¤Ê¤é, ~p (Á÷¿®) ¤ä ~t (¼õ¿®) ¤Ç¥Õ¥¡¥¤¥ë¤ÎÁ÷¼õ¿®¤¬¤Ç¤­¤Þ¤¹. ¤³¤ì¤é¤Î¥³¥Þ¥ó¥É¤Ï, Áê¼ê¤Î¥·¥¹¥Æ¥à¤Î¾å¤Ç cat ¤ä echo ¤ò¼Â¹Ô¤¹¤ë¤³¤È¤ÇÁ÷¼õ¿®¤ò¤·¤Þ¤¹. ½ñ¼°¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹: ~p <¥í¡¼¥«¥ë¤Î¥Õ¥¡¥¤¥ë̾> [<¥ê¥â¡¼¥È¤Î¥Õ¥¡¥¤¥ë̾>] ~t <¥ê¥â¡¼¥È¤Î¥Õ¥¡¥¤¥ë̾> [<¥í¡¼¥«¥ë¤Î¥Õ¥¡¥¤¥ë̾>] ¤³¤ÎÊýË¡¤Ç¤Ï¥¨¥é¡¼¥Á¥§¥Ã¥¯¤ò¹Ô¤¤¤Þ¤»¤ó¤Î¤Ç, zmodem ¤Ê¤É¤Î¾¤Î¥×¥í¥È¥³¥ë¤ò»È¤Ã¤¿Êý¤¬¤è¤¤¤Ç¤·¤ç¤¦. tip ¤«¤é zmodem ¤ò¼Â¹Ô¤¹¤ë¤Ë¤Ï? ¤Þ¤º»Ï¤á¤Ë, FreeBSD ¤Î ports ¥³¥ì¥¯¥·¥ç¥ó (lrzsz¤È rzsz ¤È¤Î, 2¤Ä¤ÎÄÌ¿®¥«¥Æ¥´¥ê¡¼¤Î¥×¥í¥°¥é¥à¤Î¤É¤Á¤é¤«) ¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Þ¤¹. ¥Õ¥¡¥¤¥ë¤ò¼õ¿®¤¹¤ë¤Ë¤Ï, ¥ê¥â¡¼¥È¦¤ÇÁ÷¿®¥×¥í¥°¥é¥à¤òµ¯Æ°¤·¤Þ¤¹. ¤½¤·¤Æ, ¥¨¥ó¥¿¡¼¥­¡¼¤ò²¡¤·¤Æ¤«¤é ``~C rz'' (lrzsz ¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤¿¾ì¹ç, ``~C lrz'') ¤ÈÆþÎϤ¹¤ë¤È, ¥í¡¼¥«¥ë¦¤Ø¤Î¥Õ¥¡¥¤¥ë¤Î¼õ¿®¤¬»Ï¤Þ¤ê¤Þ¤¹. ¥Õ¥¡¥¤¥ë¤òÁ÷¿®¤¹¤ë¤Ë¤Ï, ¥ê¥â¡¼¥È¦¤Ç¼õ¿®¥×¥í¥°¥é¥à¤òµ¯Æ°¤·¤Þ¤¹. ¤½¤·¤Æ, ¥¨¥ó¥¿¡¼¥­¡¼¤ò²¡¤·¤Æ¤«¤é ``~C sz <files>'' (lrzsz ¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤¿¾ì¹ç, ``~C lsz <files>'') ¤ÈÆþÎϤ¹¤ë¤È, ¥ê¥â¡¼¥È¦¤Ø¤Î¥Õ¥¡¥¤¥ë¤ÎÁ÷¿®¤¬»Ï¤Þ¤ê¤Þ¤¹. ÀßÄ꤬Àµ¤·¤¤¤Î¤Ë¤â¤«¤«¤ï¤é¤º, FreeBSD ¤¬¥·¥ê¥¢¥ë¥Ý¡¼¥È¤ò¸«ÉÕ¤±¤é¤ì¤Þ¤»¤ó. ¥Þ¥¶¡¼¥Ü¡¼¥É¤ä¥·¥ê¥¢¥ë¥«¡¼¥É¤¬ Acer ¤Î UART ¥Á¥Ã¥×¤ò»È¤Ã¤¿Êª¤Î¾ì¹ç, FreeBSD ¤Î sio ¥É¥é¥¤¥Ð¤Ç¤ÏÀµ¤·¤¯¸¡½Ð¤¹¤ë»ö¤¬½ÐÍè¤Þ¤»¤ó. ¤³¤ÎÌäÂê¤ò²ò·è¤¹¤ë¤¿¤á¤Ë¤Ï, www.lemis.com ¤«¤é¥Ñ¥Ã¥Á¤òÆþ¼ê¤·¤Æ¤¯¤À¤µ¤¤. ¤½¤Î¾¤Î¼ÁÌä Ìõ: ÆâÀî ´î¾Ï <yoshiaki@kt.rim.or.jp>, ¿ù¼ µ®»Î <sugimura@jp.FreeBSD.org>, Ê¡´Ö ¹¯¹° <yasuf@big.or.jp>. 10 November 1997 - 8 May 1999. FreeBSD ¤Ï Linux ¤è¤ê¿¤¯¤Î¥¹¥ï¥Ã¥×Îΰè¤ò¾ÃÈñ¤¹¤ë¤Î¤Ï¤Ê¤¼¤Ç¤¹¤«? FreeBSD ¤Ï Linux ¤è¤ê¤â¥¹¥ï¥Ã¥×¤ò¿¤¯»È¤Ã¤Æ¤¤¤ë¤è¤¦¤Ë¸«¤¨¤ë¤À¤±¤Ç¤¹. ¼ÂºÝ¤Ë¤Ï¤½¤¦¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó. ¤³¤ÎÅÀ¤Ë¤ª¤±¤ë FreeBSD ¤È Linux ¤Î¼ç¤Ê°ã¤¤¤Ï, FreeBSD ¤Ï¤è¤ê¿¤¯¤Î¥á¥¤¥ó¥á¥â¥ê¤òÍ­¸úÍøÍѤǤ­¤ë¤è¤¦¤Ë ¤¹¤ë¤¿¤á, ´°Á´¤Ë¥¢¥¤¥É¥ë¤Ë¤Ê¤Ã¤¿¤â¤Î¤ä¥á¥¤¥ó¥á¥â¥ê¾å¤Î»È¤ï¤ì¤Ê¤¯¤Ê¤Ã¤¿ ¥Ú¡¼¥¸¤ò¥¹¥ï¥Ã¥×¤Ë¤¢¤é¤«¤¸¤áÀѶËŪ¤Ë°Üư¤·¤Æ¤¤¤ë¤È¤¤¤¦¤³¤È¤Ç¤¹. Linux ¤Ç¤ÏºÇ¸å¤Î¼êÃʤȤ·¤Æ¥Ú¡¼¥¸¤ò¥¹¥ï¥Ã¥×¤Ë°Üư¤µ¤»¤ë¤À¤±¤È¤¤¤¦ ·¹¸þ¤¬¤¢¤ê¤Þ¤¹. ¤³¤Î¥¹¥ï¥Ã¥×¤Î»È¤¤Êý¤Ï, ¥á¥¤¥ó¥á¥â¥ê¤ò¤è¤ê¸ú²ÌŪ¤Ë »ÈÍѤ¹¤ë¤³¤È¤Ë¤è¤Ã¤Æ¥Ð¥é¥ó¥¹¤¬Êݤ¿¤ì¤Æ¤¤¤Þ¤¹. FreeBSD ¤Ï¤³¤Î¤è¤¦¤Ê¾õ¶·¤Ç¤ÏÀè¼êºö¤ò¼è¤ê¤Þ¤¹¤¬, ¥·¥¹¥Æ¥à¤¬ ËÜÅö¤Ë¶õ¤­¾õÂ֤λþ¤Ë, Íýͳ¤â̵¤¯¥Ú¡¼¥¸¤ò¥¹¥ï¥Ã¥×¤·¤è¤¦¤È·è¤á¤ë¤³¤È¤Ï¤Ê¤¤ ¤È¤¤¤¦¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤. ¤·¤¿¤¬¤Ã¤Æ, ÌëÃæ¤Ë»È¤ï¤º¤Ë¤ª¤¤¤¿¥·¥¹¥Æ¥à¤¬ Ä«µ¯¤­¤¿¤È¤­¤Ë¤¹¤Ù¤Æ¥Ú¡¼¥¸¥¢¥¦¥È¤µ¤ì¤Æ¤¤¤ë¤È¤¤¤¦¤³¤È¤Ï¤Ê¤¤¤Î¤Ç¤¹. FreeBSD ¤Î¼Â¹Ô¥Õ¥©¡¼¥Þ¥Ã¥È¤Î a.out ¤Ï¤É¤Î¤è¤¦¤Ê¤â¤Î¤Ç¤¹¤«, a.out ¤ò»È¤¦Íýͳ, ELF¤ò»È¤¦Íýͳ¤Ï²¿¤Ç¤·¤ç¤¦? FreeBSD ¤Î a.out¥Õ¥©¡¼¥Þ¥Ã¥È¤òÍý²ò¤¹¤ë¤¿¤á¤Ë¤Ï, ¤Þ¤º UNIX¤Ë¤ª¤¤¤Æ¸½ºß ¡ÖÍ¥Àª¡×¤Ê 3¼ïÎà¤Î¼Â¹Ô¥Õ¥©¡¼¥Þ¥Ã¥È¤Ë¤Ä¤¤¤Æ ¤¤¤¯¤é¤«ÃΤäƤª¤¯É¬Íפ¬¤¢¤ê¤Þ¤¹: a.out ºÇ¤â¸Å¤¯ ¡Öͳ½ïÀµ¤·¤¤¡× unix ¥ª¥Ö¥¸¥§¥¯¥È¥Õ¥©¡¼¥Þ¥Ã¥È¤Ç¤¹. ¥Þ¥¸¥Ã¥¯¥Ê¥ó¥Ð¤ò´Þ¤àû¤¯¤Æ¥³¥ó¥Ñ¥¯¥È¤Ê¥Ø¥Ã¥À¤¬ÀèÆ¬¤Ë¤¢¤ê, ¤³¤ì¤¬¥Õ¥©¡¼¥Þ¥Ã¥È¤ÎÆÃħ¤È¤µ¤ì¤Æ¤¤¤Þ¤¹ (»²¾È a.out(5) ¤è¤ê¾ÜºÙ¤ÊÆâÍÆ¤¬¤¢¤ê¤Þ¤¹). ¥í¡¼¥É¤µ¤ì¤ë 3¼ïÎà¤Î¥»¥°¥á¥ó¥È: .text, .data, .bss ¤È²Ã¤¨¤Æ¥·¥ó¥Ü¥ë¥Æ¡¼¥Ö¥ë¤Èʸ»úÎ󥯡¼¥Ö¥ë¤ò ´Þ¤ß¤Þ¤¹. COFF SVR3 ¤Î¥ª¥Ö¥¸¥§¥¯¥È¥Õ¥©¡¼¥Þ¥Ã¥È¤Ç¤¹. ¥Ø¥Ã¥À¤Ïñ°ì¤Î ¥»¥¯¥·¥ç¥ó¥Æ¡¼¥Ö¥ë¤«¤éÀ®¤ê, .text, .data, .bss ¥»¥¯¥·¥ç¥ó°Ê³° ¤ÎÉôʬ¤ò»ý¤Ä¤³¤È¤¬¤Ç¤­¤Þ¤¹. ELF COFF¤Î¸å·Ñ¤Ç¤¹. Ê£¿ô¤Î¥»¥¯¥·¥ç¥ó¤ò¥µ¥Ý¡¼¥È¤·, 32-bit ¤È 64-bit¤Î¤¤¤º¤ì¤ÎÃͤâ²Äǽ¤Ç¤¹. Â礭¤Ê·çÅÀ¤Î°ì¤Ä¤Ï, ELF ¤Ï¤½¤ì¤¾¤ì¤Î¥·¥¹¥Æ¥à¥¢¡¼¥­¥Æ¥¯¥Á¥ãËè¤Ëñ°ì¤Î ABI ¤Î¤ß¤¬Â¸ºß¤¹¤ë ¤È¤¤¤¦²¾Äê¤ÇÀ߷פµ¤ì¤Æ¤¤¤ë¤³¤È¤Ç¤¹. ¤³¤Î²¾Äê¤Ï¤Þ¤Ã¤¿¤¯ Àµ¤·¤¯¤¢¤ê¤Þ¤»¤ó. ¾¦ÍѤΠSYSV ¤ÎÀ¤³¦¤Ç¤µ¤¨¤½¤¦¤Ç¤¹ (¾¯¤Ê¤¯¤È¤â SVR4, Solaris, SCO ¤Î 3¼ïÎà¤Î ABI ¤¬¤¢¤ê¤Þ¤¹). FreeBSD ¤Ï¤³¤ÎÌäÂê¤ò²ò·è¤¹¤ë¤¿¤á¤Î»î¤ß¤È¤·¤Æ, ´ûÃΤΠELF ¼Â¹Ô¥Õ¥¡¥¤¥ë¤Ë ABI ¤Ë±þ¤¸¤¿¾ðÊó¤ò ½ñ¤­²Ã¤¨¤ë ¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤òÄ󶡤·¤Æ¤¤¤Þ¤¹. brandelf ¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸ ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤. ¤è¤ê¿¤¯¤Î¾ðÊ󤬤¢¤ê¤Þ¤¹. FreeBSD ¤ÏÅÁÅýŪ¤ÊΩ¾ì¤ò¤È¤ê, ¿ô¿¤¯¤ÎÀ¤Âå¤Î BSD ¤Î¥ê¥ê¡¼¥¹ ¤Ç»î¤µ¤ì, ¼Â¾Ú¤µ¤ì¤Æ¤­¤¿ a.out¥Õ¥©¡¼¥Þ¥Ã¥È¤òÅÁÅýŪ¤Ë»ÈÍѤ·¤Æ¤¤¤Þ¤¹. ¤¤¤Ä¤«¤Ï FreeBSD¥·¥¹¥Æ¥à¤Ç¥Í¥¤¥Æ¥£¥Ö ELF ¥Ð¥¤¥Ê¥ê¤òºî¤ê, ¼Â¹Ô¤¹¤ë¤³¤È¤¬¤Ç¤­¤ë¤è¤¦¤Ë¤Ê¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¤¬, ½é´ü¤Îº¢ FreeBSD ¤Ç¤Ï ELF ¤ò¥Ç¥Õ¥©¥ë¥È¤Î¥Õ¥©¡¼¥Þ¥Ã¥È¤ËÊѹ¹¤¹¤ë¤È¤¤¤¦Æ°¤­¤Ï ¤¢¤ê¤Þ¤»¤ó¤Ç¤·¤¿. ¤Ê¤¼¤Ç¤·¤ç¤¦¤«? ¤È¤³¤í¤Ç Linux ¤Ë¤ª¤¤¤Æ¤Ï, ELF ¤Ø¤Î¶ìÄˤò¤È¤â¤Ê¤Ã¤¿Êѹ¹¤Ï, ¤½¤Î»þ¤Ë a.out ¼Â¹Ô¥Õ¥©¡¼¥Þ¥Ã¥È¤«¤éƨ¤ì¤¿¤È¤¤¤¦¤è¤ê¤Ï, ¥¸¥ã¥ó¥×¥Æ¡¼¥Ö¥ë¥Ù¡¼¥¹ ¤Î¶¦Í­¥é¥¤¥Ö¥é¥ê¤Î¥á¥«¥Ë¥º¥à¤Î½ÀÆðÀ­¤ÎÄ㤵¤«¤é¤ÎæµÑ¤Ç¤·¤¿. ¤³¤ì¤Ï¥Ù¥ó¥À¤ä³«È¯¼ÔÁ´ÂΤˤȤäƶ¦Í­¥é¥¤¥Ö¥é¥ê¤ÎºîÀ®¤¬Èó¾ï¤Ë Æñ¤·¤«¤Ã¤¿¸¶°ø¤Ç¤·¤¿. ELF¤Î¥Ä¡¼¥ë¤Ë¤Ï¶¦Í­¥é¥¤¥Ö¥é¥ê¤ÎÌäÂê¤ò ²ò·è¤¹¤ë¤³¤È¤¬¤Ç¤­¤ë¤â¤Î¤¬Ä󶡤µ¤ì¤Æ¤ª¤ê, ¤Þ¤¿¤¤¤º¤ì¤Ë¤»¤è °ìÈÌŪ¤Ë¡Ö¿ÊÊâ¡×¤·¤Æ¤¤¤ë¤È¹Í¤¨¤é¤ì¤Þ¤¹. ¤³¤Î¤¿¤á°Ü¹Ô¤Î¥³¥¹¥È¤Ï ɬÍפʤâ¤Î¤È¤·¤ÆÍÆÇ§¤µ¤ì, °Ü¹Ô¤Ï¤ª¤³¤Ê¤ï¤ì¤Þ¤·¤¿. FreeBSD¤Î¾ì¹ç¤Ï, ¶¦Í­¥é¥¤¥Ö¥é¥ê¤Î¥á¥«¥Ë¥º¥à¤Ï Sun ¤Î SunOS¥¹¥¿¥¤¥ë¤Î¶¦Í­¥é¥¤¥Ö¥é¥ê¤Î¥á¥«¥Ë¥º¥à¤Ë¶Ë¤á¤Æ¶á¤¤ ¤â¤Î¤Ë¤Ê¤Ã¤Æ¤¤¤ÆÈó¾ï¤Ë»È¤¤¤ä¤¹¤¤¤â¤Î¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹. ¤·¤«¤·¤Ê¤¬¤é, FreeBSD ¤Ç¤Ï 3.0 ¤«¤é ELF ¥Ð¥¤¥Ê¥ê¤ò¥Ç¥Õ¥©¥ë¥È¤Î ¥Õ¥©¡¼¥Þ¥Ã¥È¤È¤·¤Æ¸ø¼°¤Ë¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹. a.out ¼Â¹Ô¥Õ¥©¡¼¥Þ¥Ã¥È¤Ï¤è¤¤¤â¤Î¤ò»äã¤ËÄ󶡤·¤Æ¤¯¤ì¤Æ¤¤¤ë¤â¤Î¤Î, »äã¤Î »È¤Ã¤Æ¤¤¤ë¥³¥ó¥Ñ¥¤¥é¤Îºî¼Ô¤Ç¤¢¤ë GNU ¤Î¿Í¡¹¤Ï a.out ¥Õ¥©¡¼¥Þ¥Ã¥È ¤Î¥µ¥Ý¡¼¥È¤ò¤ä¤á¤Æ¤·¤Þ¤Ã¤¿¤Î¤Ç¤·¤¿. ¤³¤Î¤³¤È¤Ï, »äã¤ËÊ̥С¼¥¸¥ç¥ó¤Î ¥³¥ó¥Ñ¥¤¥é¤È¥ê¥ó¥«¤òÊݼ餹¤ë¤³¤È¤ò;µ·¤Ê¤¯¤µ¤ì¤ë¤³¤È¤È¤Ê¤ê, ºÇ¿·¤Î GNU ³«È¯¤ÎÅØÎϤˤè¤ë²¸·Ã¤«¤é±ó¤¶¤«¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹. ¤½¤Î¾å, ISO-C++ ¤Î, ¤È¤¯¤Ë¥³¥ó¥¹¥È¥é¥¯¥¿¤ä¥Ç¥¹¥È¥é¥¯¥¿¤¬¤é¤ß¤ÎÍ×µá¤â¤¢¤Ã¤Æ, º£¸å¤Î FreeBSD ¤Î¥ê¥ê¡¼¥¹¤Ç¥Í¥¤¥Æ¥£¥Ö¤Î ELF ¤Î¥µ¥Ý¡¼¥È¤µ¤ì¤ëÊý¸þ¤Ø¤È Ï䬿ʤó¤Ç¤¤¤Þ¤¹. ¤½¤ì¤Ë¤·¤Æ¤â, ¤Ê¤¼¤½¤ó¤Ê¤Ë¿¤¯¤Î¥Õ¥©¡¼¥Þ¥Ã¥È¤¬¤¢¤ë¤Î¤Ç¤¹¤«? ¤â¤¦¤ª¤Ü¤í¤²¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤Ã¤¿°Å¤¤²áµî¤Ë, ñ½ã¤Ê¥Ï¡¼¥É¥¦¥§¥¢¤¬ ¤¢¤ê¤Þ¤·¤¿. ¤³¤Îñ½ã¤Ê¥Ï¡¼¥É¥¦¥§¥¢¤Ï, ñ½ã¤Ç¾®¤µ¤Ê¥·¥¹¥Æ¥à¤ò ¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤·¤¿. a.out ¤Ï¤³¤Îñ½ã¤Ê¥·¥¹¥Æ¥à (PDP-11) ¤Ç¤Î ºî¶È¤ò¹Ô¤Ê¤¦¥Ð¥¤¥Ê¥ê¤È¤·¤Æ´°Á´¤ËŬ¤·¤¿¤â¤Î¤À¤Ã¤¿¤Î¤Ç¤¹. ¿Í¡¹¤Ï¤³¤Îñ½ã¤Ê¥·¥¹¥Æ¥à¤«¤é UNIX ¤ò°Ü¿¢¤¹¤ëºÝ¤Ë, a.out ¥Õ¥©¡¼¥Þ¥Ã¥È¤ò¤½¤Î¤Þ¤Þ»È¤¤¤Þ¤·¤¿. ¤È¤¤¤¦¤Î¤Ï Motorola 68k, VAXen, ¤È¤¤¤Ã¤¿¥¢¡¼¥­¥Æ¥¯¥Á¥ã¤Ø¤Î UNIX ¤Î½é´ü¤Î°Ü¿¢¤Ç¤Ï¤³¤ì¤Ç½½Ê¬¤À¤Ã¤¿¤«¤é¤Ç¤¹. ¤ä¤¬¤Æ¤¢¤ëÁïÌÀ¤Ê¥¨¥ó¥¸¥Ë¥¢¤¬¥½¥Õ¥È¥¦¥§¥¢¤Ç¤Á¤ç¤Ã¤È¤·¤¿ ¥È¥ê¥Ã¥¯¤ò»È¤¦¤³¤È¤ò·è¤á¤Þ¤·¤¿. Èà¤Ï¤¤¤¯¤Ä¤«¤Î¥²¡¼¥È¤òºï¤ê¼è¤Ã¤Æ CPU ¤Î¥³¥¢¤ò¤è¤ê®¤¯Áö¤é¤»¤ë¤³¤È¤¬¤Ç¤­¤¿¤Î¤Ç¤¹. ¤³¤ì¤Ï ¿·¤·¤¤¼ïÎà¤Î¥Ï¡¼¥É¥¦¥§¥¢ (º£Æü¤Ç¤Ï RISC ¤È¤·¤ÆÃΤé¤ì¤Æ¤¤¤Þ¤¹) ¤Ç ư¤¤¤¿¤Î¤Ç¤¹. a.out ¤Ï¤³¤Î¥Ï¡¼¥É¥¦¥§¥¢¤Ë¤Ï Ŭ¤·¤Æ¤¤¤Ê¤«¤Ã¤¿¤Î¤Ç, ¤³¤Î¥Ï¡¼¥É¥¦¥§¥¢¾å¤Ç¿¤¯¤Î¥Õ¥©¡¼¥Þ¥Ã¥È¤¬, ¸ÂÄꤵ¤ì¤¿Ã±½ã¤Ê a.out ¥Õ¥©¡¼¥Þ¥Ã¥È¤Ç¤Î¤â¤Î¤è¤ê¤â¤è¤êÎɤ¤ ¥Ñ¥Õ¥©¡¼¥Þ¥ó¥¹¤ò½Ð¤¹¤³¤È¤òÌܻؤ·¤Æ³«È¯¤µ¤ì¤¿¤Î¤Ç¤¹. COFF, ECOFF, ¤½¤·¤Æ¤¤¤¯¤Ä¤«¤Îͭ̾¤Ç¤Ê¤¤¥Õ¥©¡¼¥Þ¥Ã¥È¤¬ ELF ¤¬É¸½à¤Ë¤Ê¤ëÁ°¤Ë³«È¯¤µ¤ì, ¤½¤ì¤é¤Î¸Â³¦¤¬Ãµµá¤µ¤ì¤¿¤Î¤Ç¤¹. ¤µ¤é¤Ë, ¥×¥í¥°¥é¥à¥µ¥¤¥º¤ÏµðÂç¤Ë¤Ê¤ê, ¥Ç¥£¥¹¥¯ (¤ª¤è¤ÓʪÍý¥á¥â¥ê) ¤Ï°ÍÁ³¤È¤·¤ÆÁêÂÐŪ¤Ë¾®¤µ¤«¤Ã¤¿¤¿¤á, ¶¦Íѥ饤¥Ö¥é¥ê¤Î¥³¥ó¥»¥×¥È¤¬ ÃÂÀ¸¤·¤Þ¤·¤¿. ¤Þ¤¿, VM ¥·¥¹¥Æ¥à¤Ï¤è¤êÊ£»¨¤Ê¤â¤Î¤Ë¤Ê¤ê¤Þ¤·¤¿. ¤³¤ì¤é¤Î¸Ä¡¹¤Î¿ÊÊâ¤Ï a.out ¥Õ¥©¡¼¥Þ¥Ã¥È¤ò»ÈÍѤ·¤Æ¿ë¤²¤é¤ì¤Þ¤·¤¿¤¬, ¤½¤ÎÍ­ÍÑÀ­¤Ï¿·¤·¤¤µ¡Ç½¤È¤È¤â¤Ë¤É¤ó¤É¤ó¹­¤¬¤Ã¤Æ¤­¤Þ¤·¤¿. ¤³¤ì¤é¤Ë²Ã¤¨, ¼Â¹Ô»þ¤ËɬÍפʤâ¤Î¤òưŪ¤Ë¥í¡¼¥É¤¹¤ë, ¤Þ¤¿¤Ï ½é´ü²½¥³¡¼¥É¤Î¼Â¹Ô¸å¤Ë¥×¥í¥°¥é¥à¤Î°ìÉô¤òÇË´þ¤·, ¥³¥¢¥á¥â¥ê¤ª¤è¤Ó / ¤Þ¤¿¤Ï¥¹¥ï¥Ã¥×¶õ´Ö¤òÀáÌ󤹤ë¤È¤¤¤¦Í×˾¤¬¹â¤Þ¤ê¤Þ¤·¤¿. ¥×¥í¥°¥é¥ß¥ó¥°¸À¸ì¤Ï¤µ¤é¤ËÊ£»¨¤Ë¤Ê¤ê, main ´Ø¿ô¤ÎÁ°¤Ë¼«Æ°Åª¤Ë ¥³¡¼¥ë¤µ¤ì¤ë¥³¡¼¥É¤ÎÍ×˾¤¬¹â¤Þ¤ê¤Þ¤·¤¿. ¿¤¯¤Îµ¡Ç½³ÈÄ¥¤¬¤ª¤³¤Ê¤ï¤ì, a.out ¥Õ¥©¡¼¥Þ¥Ã¥È¤¬¤³¤ì¤é¤¹¤Ù¤Æ¤ò ¼Â¸½¤Ç¤­¤ë¤è¤¦¤Ë¤Ê¤ê, ¤½¤ì¤é¤Ï¤·¤Ð¤é¤¯¤Ï´ðËÜŪ¤Ëưºî¤·¤Æ¤¤¤Þ¤·¤¿. ¤ä¤¬¤Æ, a.out ¤Ï¥³¡¼¥É¤Ç¤Î¥ª¡¼¥Ð¥Ø¥Ã¥É¤ÈÊ£»¨¤µ¤òÁýÂ礵¤»¤º¤Ë ¤³¤ì¤é¤ÎÌäÂꤹ¤Ù¤Æ¤ò½èÍý¤¹¤ë¤³¤È¤Ë̵Íý¤¬¤Ç¤Æ¤­¤Þ¤·¤¿. °ìÊý, ELF ¤Ï¤³¤ì¤é¤ÎÌäÂê¤Î¿¤¯¤ò²ò·è¤·¤Þ¤¹¤¬, ¸½¾õ²ÔƯ¤·¤Æ¤¤¤ë ¥·¥¹¥Æ¥à¤«¤é¤ÎÀÚÂØ¤¨¤ÏÌñ²ð¤Ê¤â¤Î¤Ë¤Ê¤ë¤Ç¤·¤ç¤¦. ¤½¤Î¤¿¤á ELF ¤Ï, a.out ¤Î¤Þ¤Þ¤Ç¤¤¤ë¤³¤È¤¬ELF ¤Ø¤Î °Ü¹Ô¤è¤ê¤â¤â¤Ã¤ÈÌñ²ð¤Ê¤â¤Î¤Ë¤Ê¤ë¤Þ¤ÇÂÔ¤ÄɬÍפ¬¤¢¤ê¤Þ¤·¤¿. ¤·¤«¤·»þ¤¬·Ð¤Ä¤Ë¤Ä¤ì, FreeBSD ¤Î¥Ó¥ë¥É¥Ä¡¼¥ë¤Î¸µ¤È¤Ê¤Ã¤¿¥Ä¡¼ ¥ë·²(ÆÃ¤Ë¥¢¥»¥ó¥Ö¥é¤È¥í¡¼¥À)¤È FreeBSD ¤Î¥Ó¥ë¥É¥Ä¡¼¥ë·²¤Ï°Û¤Ê¤Ã ¤¿¿Ê²½¤Î·ÐÏ©¤ò¤¿¤É¤ê¤Þ¤·¤¿. FreeBSD ¤Î¥Ä¥ê¡¼¤Ç¤Ï, ¶¦Í­¥é¥¤¥Ö¥é ¥ê¤¬Äɲ䵤ì, ¥Ð¥°¥Õ¥£¥Ã¥¯¥¹¤â¹Ô¤ï¤ì¤Þ¤·¤¿. ¤â¤È¤â¤È¤Î¥Ä¡¼¥ë·² ¤òºîÀ®¤·¤¿ GNU ¤Î¿Í¤¿¤Á¤Ï, ¥×¥í¥°¥é¥à¤ò½ñ¤­Ä¾¤·, ¥¯¥í¥¹¥³¥ó¥Ñ ¥¤¥é¤Î¥µ¥Ý¡¼¥È, °Û¤Ê¤ë¥Õ¥©¡¼¥Þ¥Ã¥È¤òǤ°Õ¤Ë¼è¤ê¹þ¤àµ¡Ç½¤Ê¤É¤òÄÉ ²Ã¤·¤Æ¤¤¤­¤Þ¤·¤¿. ¿¤¯¤Î¿Í¡¹¤¬ FreeBSD ¤ò¥¿¡¼¥²¥Ã¥È¤È¤·¤¿¥¯¥í ¥¹¥³¥ó¥Ñ¥¤¥é¤Î¹½ÃÛ¤ò»î¤ß¤Þ¤·¤¿¤¬, FreeBSD ¤Î»È¤Ã¤Æ¤¤¤ë as ¤È ld ¤Î¸Å¤¤¥×¥í¥°¥é¥à¥³¡¼¥É¤Ï¥¯¥í¥¹¥³¥ó¥Ñ¥¤¥ë¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤ª¤é ¤º, ¤¦¤Þ¤¯¤¤¤­¤Þ¤»¤ó¤Ç¤·¤¿. ¿·¤·¤¤ GNU ¤Î¥Ä¡¼¥ë·² (binutils) ¤Ï, ¥¯¥í¥¹¥³¥ó¥Ñ¥¤¥ë, ¶¦Í­¥é¥¤¥Ö¥é¥ê, C++ ³ÈÄ¥¤Ê¤É¤Îµ¡Ç½¤ò¥µ¥Ý¡¼ ¥È¤·¤Æ¤¤¤Þ¤¹. ¤µ¤é¤Ë¿ô¿¤¯¤Î¥Ù¥ó¥À¤¬ ELF ¥Ð¥¤¥Ê¥ê¤ò¥ê¥ê¡¼ ¥¹¤·¤Æ¤¤¤Þ¤¹. FreeBSD ¤Ë¤È¤Ã¤Æ ELF ¥Ð¥¤¥Ê¥ê¤¬¼Â¹Ô¤Ç¤­¤ë ¤³¤È¤Ï, Èó¾ï¤Ë¥á¥ê¥Ã¥È¤¬¤¢¤ê¤Þ¤¹. ELF ¥Ð¥¤¥Ê¥ê¤¬ FreeBSD ¤Çư¤¯¤Î¤Ê¤é, a.out ¤òư¤«¤¹¤Î¤Ë¼ê´Ö¤ò¤«¤±¤ëɬÍפϤ¢¤ê¤Þ ¤»¤ó¤Í. Ť¤´ÖÃé¼Â¤Ë¤è¤¯Æ¯¤¤¤¿Ï·¤¤¤¿ÇϤÏ, ¤½¤í¤½¤íËÒÁðÃÏ¤ÇµÙ¤Þ ¤»¤Æ¤¢¤²¤Þ¤·¤ç¤¦. ELF ¤Ï a.out ¤ËÈæ¤Ù¤Æ¤è¤êɽ¸½ÎϤ¬¤¢¤ê, ¥Ù¡¼¥¹¤Î¥·¥¹¥Æ¥à ¤ËÂФ·¤Æ¤è¤êÉý¹­¤¤³ÈÄ¥À­¤òÄ󶡤Ǥ­¤Þ¤¹. ELF ÍѤΥġ¼¥ë¤Ï ¤è¤ê¤è¤¯Êݼ餵¤ì¤Æ¤¤¤Þ¤¹. ¤Þ¤¿Â¿¤¯¤Î¿Í¤Ë¤È¤Ã¤Æ½ÅÍפʥ¯¥í¥¹¥³¥ó ¥Ñ¥¤¥ë¤â¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Þ¤¹. ELF ¤Î¼Â¹Ô®ÅÙ¤Ï, ¤Û¤ó¤Î¾¯¤· a.out ¤è¤êÃÙ¤¤¤«¤â¤·¤ì¤Þ¤»¤ó¤¬, ¼ÂºÝ¤Ë®Å٤κ¹¤ò¤Ï¤«¤ë¤Î¤Ïº¤Æñ ¤Ç¤·¤ç¤¦. ELF ¤È a.out ¤Î´Ö¤Ë¤Ï, ¥Ú¡¼¥¸¥Þ¥Ã¥Ô¥ó¥°, ½é´ü²½ ¥³¡¼¥É¤Î½èÍý¤Ê¤É¿¤¯¤Î°ã¤¤¤¬¤¢¤ê¤Þ¤¹¤¬, ¤È¤ê¤¿¤Æ¤Æ½ÅÍפʤâ¤Î¤Ï ¤¢¤ê¤Þ¤»¤ó. ¤·¤«¤·°ã¤¤¤¬¤¢¤ë¤Î¤Ï³Î¤«¤Ç¤¹. ¤Û¤É¤Ê¤¯, GENERIC ¥«¡¼ ¥Í¥ë¤«¤é a.out ¤Î¥µ¥Ý¡¼¥È¤¬³°¤µ¤Þ¤¹. a.out ¤Î¥×¥í¥° ¥é¥à¤ò¼Â¹Ô¤¹¤ëɬÍ×À­¤¬¤Ê¤¯¤Ê¤ì¤Ð, ºÇ½ªÅª¤Ë a.out ¤Î¥µ¥Ý¡¼ ¥È¤Ï¥«¡¼¥Í¥ë¤«¤éºï½ü¤µ¤ì¤Þ¤¹. ¤Ê¤¼¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤Î¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó¤Ï chmod ¤ÇÊѤ¨¤é¤ì¤Ê¤¤¤Î¤Ç¤¹¤«? ¤³¤Î¾ì¹ç, ``'' ¤« ``'' ¤Î¤É¤Á¤é¤«¤Î¥ª¥×¥·¥ç¥ó¤ò ``'' ¤ÈƱ»þ¤Ë»È¤¦É¬Íפ¬¤¢¤ê¤Þ¤¹. chmod ¤È symlink ¤Î¥Þ¥Ë¥å¥¢¥ë¥Ú¡¼¥¸¤Ë¤Ï¤â¤Ã¤È¾Ü¤·¤¤¾ðÊ󤬤¢¤ê¤Þ¤¹. Ãí°Õ ``'' ¥ª¥×¥·¥ç¥ó¤Ï ºÆµ¢Åª¤Ë chmod ¤ò¼Â¹Ô¤·¤Þ¤¹. ¥Ç¥£¥ì¥¯¥È¥ê¤ä¥Ç¥£¥ì¥¯¥È¥ê¤Ø¤Î¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤ò chmod ¤¹¤ë¾ì¹ç¤Ïµ¤¤ò¤Ä¤±¤Æ¤¯¤À¤µ¤¤. ¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤Ç »²¾È¤µ¤ì¤Æ¤¤¤ëñ°ì¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Î¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó¤òÊѹ¹¤·¤¿¤¤¾ì¹ç¤Ï, chmod ¤ò¥ª¥×¥·¥ç¥ó¤ò¤Ä¤±¤º¤Ë¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤Î̾Á°¤Î¸å¤í¤Ë¥¹¥é¥Ã¥·¥å (``/'') ¤ò¤Ä¤±¤Æ»È¤¤¤Þ¤¹. Î㤨¤Ð, ``foo'' ¤¬¥Ç¥£¥ì¥¯¥È¥ê ``bar'' ¤Ø¤Î¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤Ç¤¢¤ë¾ì¹ç, ``foo'' (¼ÂºÝ¤Ë¤Ï ``bar'') ¤Î¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó¤òÊѹ¹¤·¤¿¤¤¾ì¹ç¤Ë¤Ï¤³¤Î¤è¤¦¤Ë¤·¤Þ¤¹: chmod 555 foo/ ¸å¤í¤Ë¥¹¥é¥Ã¥·¥å¤ò¤Ä¤±¤ë¤È, chmod ¤Ï¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯ ``foo'' ¤òÄɤ¤¤«¤±¤Æ¥Ç¥£¥ì¥¯¥È¥ê ``bar'' ¤Î¥Ñ¡¼¥ß¥Ã¥·¥ç¥ó¤òÊѹ¹¤·¤Þ¤¹. login ̾¤¬¤¤¤Þ¤À¤Ë 8ʸ»ú¤ËÀ©¸Â¤µ¤ì¤Æ¤¤¤ë¤Î¤Ï¤Ê¤¼¤Ç¤¹¤« UT_NAMESIZE¤òÊѹ¹¤·¤ÆÁ´ÂΤòºî¤êľ¤»¤Ð½½Ê¬¤Ç, ¤½¤ì¤À¤±¤Ç ¤¦¤Þ¤¯¤¤¤¯¤À¤í¤¦¤È¤¢¤Ê¤¿¤Ï¹Í¤¨¤ë¤«¤â¤·¤ì¤Þ¤»¤ó. »Äǰ¤Ê¤¬¤é¿¤¯¤Î¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤ä¥æ¡¼¥Æ¥£¥ê¥Æ¥£ (¥·¥¹¥Æ¥à¥Ä¡¼¥ë¤â´Þ¤á¤Æ) ¤Ï¾®¤µ¤Ê¿ôÃͤò¹½Â¤ÂΤä¥Ð¥Ã¥Õ¥¡¤Ê¤É¤Ë »È¤Ã¤Æ¤¤¤Þ¤¹ ( ɬ¤º¤·¤â "8" ¤ä "9" ¤Ç¤Ï¤Ê¤¯, "15" ¤ä "20" ¤Ê¤É¤ÎÊѤä¿Ãͤò»È¤¦¤â¤Î¤â¤¢¤ê¤Þ¤¹). (¸ÇÄêĹ¤Î¥ì¥³¡¼¥É¤ò´üÂÔ ¤¹¤ë¤È¤³¤í¤Ç²ÄÊÑĹ¥ì¥³¡¼¥É¤Ë¤Ê¤ë¤¿¤á¤Ë) ÂæÌµ¤·¤Ë¤Ê¤Ã¤¿ ¥í¥°¥Õ¥¡¥¤¥ë¤òÆÀ¤ë¤³¤È¤Ë¤Ê¤ë¤È¤¤¤¦¤³¤È¤À¤±¤Ç¤Ê¤¯, Sun ¤Î NIS ¤Î ¥¯¥é¥¤¥¢¥ó¥È¤Î¾ì¹ç¤ÏÌäÂ꤬µ¯¤­¤Þ¤¹¤·, ¾¤Î UNIX ¥·¥¹¥Æ¥à¤È¤Î´ØÏ¢ ¤Ë¤ª¤¤¤Æ¤³¤ì¤é°Ê³°¤ÎÌäÂê¤âµ¯¤­¤ë²ÄǽÀ­¤¬¤¢¤ê¤Þ¤¹. ¤·¤«¤·, FreeBSD 3.0 °Ê¹ß¤Ç¤Ï 16ʸ»ú¤È¤Ê¤ê, ¿¤¯¤Î¥æ¡¼¥Æ¥£¥ê¥Æ¥£ ¤Î¥Ï¡¼¥É¥³¡¼¥É¤µ¤ì¤¿Ì¾Á°¤ÎŤµ¤ÎÌäÂê¤â²ò·è¤µ¤ì¤Þ¤¹. ¼ÂºÝ¤Ë¤Ï ¥·¥¹¥Æ¥à¤Î¤¢¤Þ¤ê¤Ë¿¤¯¤ÎÉôʬ¤ò½¤Àµ¤¹¤ë¤¿¤á¤Ë, 3.0 ¤Ë¤Ê¤ë¤Þ¤Ç¤Ï Êѹ¹¤¬¹Ô¤ï¤ì¤Þ¤»¤ó¤Ç¤·¤¿. ¤½¤ì°ÊÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¤Ï, ¤³¤ì¤é¤ÎÌäÂ꤬µ¯¤³¤Ã¤¿¾ì¹ç¤Ë, ÌäÂê ¤ò¼«Ê¬¼«¿È¤Çȯ¸«¤·, ²ò·è¤Ç¤­¤ë¤³¤È¤ËÀäÂÐŪ¤Ê¼«¿®¤¬¤¢¤ë¾ì¹ç¤Ï /usr/include/utmp.h ¤òÊÔ½¸¤·, UT_NAMESIZE ¤ÎÊѹ¹¤Ë¤·¤¿¤¬¤Ã¤Æ, Ť¤¥æ¡¼¥¶Ì¾¤ò»È¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹. ¤Þ¤¿, UT_NAMESIZE ¤ÎÊѹ¹¤È°ìÃפ¹¤ë¤è¤¦¤Ë /usr/include/sys/param.h ¤Î MAXLOGNAME ¹¹¿·¤·¤Ê¤¯¤Æ¤Ï¤Ê¤ê¤Þ¤»¤ó. ºÇ¸å¤Ë, ¥½¡¼¥¹¤«¤é¥Ó¥ë¥É¤¹¤ë¾ì¹ç¤Ï /usr/include ¤òËè²ó ¥¢¥Ã¥×¥Ç¡¼¥È¤¹¤ëɬÍפ¬¤¢¤ë¤³¤È¤ò˺¤ì¤Ê¤¤¤è¤¦¤Ë! /usr/src/.. ¾å¤Î¥Õ¥¡¥¤¥ë¤òÊѹ¹¤·¤Æ¤ª¤¤¤ÆÃÖ¤­´¹¤¨¤Þ¤·¤ç¤¦. FreeBSD ¾å¤Ç DOS ¤Î¥Ð¥¤¥Ê¥ê¤òư¤«¤¹¤³¤È¤Ï¤Ç¤­¤Þ¤¹¤«? ¤Ï¤¤, 3.0 ¤«¤é¤Ï, Åý¹ç¤È²þÎɤ¬½Å¤Í¤é¤ì¤¿ BSDI ¤Î rundos DOS ¥¨¥ß¥å¥ì¡¼¥·¥ç¥ó¥µ¥Ö¥·¥¹¥Æ¥à¤ò»È¤Ã¤Æ¤Ç¤­¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤·¤¿. º£¤Ê¤ªÂ³¤±¤é¤ì¤Æ¤¤¤ë¤³¤ÎÅØÎϤ˶½Ì£¤ò»ý¤Ã¤Æ»²²Ã¤·¤Æ¤¤¤¿¤À¤±¤ë¤Ê¤é The FreeBSD emulation discussion list ¤Ø¥á¡¼¥ë¤òÁ÷¤Ã¤Æ¤¯¤À¤µ¤¤. 3.0 °ÊÁ°¤Î¥·¥¹¥Æ¥à¤Ç¤Ï, pcemu ¤È¤¤¤¦¹ªÌ¯¤Ê¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤¬ ports ¥³¥ì¥¯¥·¥ç¥ó¤Ë¤¢¤ê, 8088 ¤Î¥¨¥ß¥å¥ì¡¼¥·¥ç¥ó¤È DOS ¤Î ¥Æ¥­¥¹¥È¥â¡¼¥É¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤òư¤«¤¹¤Ë½½Ê¬¤Ê BIOS ¥µ¡¼¥Ó¥¹¤ò¤ª¤³¤Ê¤¤¤Þ¤¹. ¤³¤ì¤Ï X ¥¦¥£¥ó¥É¥¦¥·¥¹¥Æ¥à¤¬É¬ÍפǤ¹ (XFree86 ¤È¤·¤ÆÄ󶡤µ¤ì¤Æ¤¤¤Þ¤¹) ``sup'' ¤È¤Ï²¿¤Ç, ¤É¤Î¤è¤¦¤Ë¤·¤Æ»È¤¦¤â¤Î¤Ê¤Î¤Ç¤·¤ç¤¦¤«? SUP ¤È¤Ï¥½¥Õ¥È¥¦¥§¥¢¥¢¥Ã¥×¥Ç¡¼¥È¥×¥í¥È¥³¥ë (Software Update Protocol) ¤Ç CMU ¤Ç³«È¯¥Ä¥ê¡¼¤ÎƱ´ü¤Î¤¿¤á¤Ë³«È¯¤µ¤ì¤Þ¤·¤¿. »ä¤¿¤Á¤ÎÃæ¿´³«È¯¥Ä¥ê¡¼¤ò¥ê¥â¡¼¥È¥µ¥¤¥È¤ÇƱ´ü¤µ¤»¤ë¤¿¤á¤Ë »È¤Ã¤Æ¤¤¤Þ¤·¤¿. SUP ¤Ï¥Ð¥ó¥ÉÉý¤òϲÈñ¤·¤Þ¤¹¤Î¤Ç, º£¤Ï»È¤Ã¤Æ¤¤¤Þ¤»¤ó. ¥½¡¼¥¹¥³¡¼¥É¤Î ¥¢¥Ã¥×¥Ç¡¼¥È¤Î¸½ºß¤Î¤ª¤¹¤¹¤á¤ÎÊýË¡¤Ï ¥Ï¥ó¥É¥Ö¥Ã¥¯¤Î CVSup ¤Î¹à ¤Ë¤¢¤ê¤Þ¤¹. FreeBSD ¤ò¥¯¡¼¥ë¤Ë»È¤¦¤Ë¤Ï? Q. FreeBSD ¤òư¤«¤¹»þ¤Ë²¹ÅÙ¬Äê¤ò¤ª¤³¤Ê¤Ã¤¿¿Í¤Ï¤¤¤Þ¤¹¤«? Linux ¤Ï dos ¤è¤ê¤â²¹ÅÙ¤¬²¼¤¬¤ë¤È¤¤¤¦¤³¤È¤ÏÃΤäƤ¤¤Þ¤¹¤¬, FreeBSD ¤Ë¤Ä¤¤¤Æ¤Ï¤³¤Î¤è¤¦¤Ê¤³¤È¤Ë¿¨¤ì¤¿¤â¤Î¤ò¸«¤¿¤³¤È¤Ï¤¢¤ê¤Þ¤»¤ó. ¼ÂºÝÇ®¤¯¤Ê¤Ã¤Æ¤¤¤ë¤è¤¦¤Ë¸«¤¨¤Þ¤¹. A. ¤¤¤¤¤¨. »ä¤¿¤Á¤Ï 250 ¥Þ¥¤¥¯¥í¥°¥é¥à¤Î LSD-25 ¤ò¤¢¤é¤«¤¸¤á Í¿¤¨¤Æ¤ª¤¤¤¿¥Ü¥é¥ó¥Æ¥£¥¢¤ËÂФ¹¤ëÌܱ£¤·Ì£³Ð¥Æ¥¹¥È¤òÂçÎÌ¤Ë ¤ª¤³¤Ê¤Ã¤Æ¤¤¤Þ¤¹. 35% ¤Î¥Ü¥é¥ó¥Æ¥£¥¢¤Ï FreeBSD ¤Ï¥ª¥ì¥ó¥¸¤Î¤è¤¦¤ÊÌ£ ¤¬¤¹¤ë¤È¸À¤Ã¤Æ¤¤¤ë¤Î¤ËÂФ· Linux ¤Ï»ç±ì¤Î¤è¤¦¤ÊÌ£¤ï¤¤¤¬¤¢¤ë ¤È¸À¤Ã¤Æ¤¤¤ë¿Í¤â¤¤¤Þ¤¹. »ä¤ÎÃΤë¸Â¤êξÊý¤Î¥°¥ë¡¼¥×¤È¤â²¹Å٤ΠÉÔ°ìÃפˤĤ¤¤Æ¤Ï¿¨¤ì¤Æ¤¤¤Þ¤»¤ó. ¤³¤ÎÄ´ºº¤Ç, Èó¾ï¤Ë¿¤¯¤Î ¥Ü¥é¥ó¥Æ¥£¥¢¤¬¥Æ¥¹¥È¤ò¤ª¤³¤Ê¤Ã¤¿Éô²°¤«¤éÉԻ׵Ĥ½¤¦¤Ë½Ð¤Æ¤­¤Æ, ¤³¤Î¤è¤¦¤Ê¤ª¤«¤·¤Ê·ë²Ì¤ò¼¨¤·¤¿¤³¤È¤Ë»ä¤¿¤Á¤ÏÅöÏǤµ¤»¤é¤ì¤Þ¤·¤¿. »ä¤Ï, ¤Û¤È¤ó¤É¤Î¥Ü¥é¥ó¥Æ¥£¥¢¤Ï Apple ¤Ë¤¤¤ÆÈà¤é¤ÎºÇ¿·¤Î ¡Ö°ú¤Ã¤«¤¤¤ÆÆ÷¤¤¤ò¤«¤°¡× GUI ¤ò»È¤Ã¤Æ¤¤¤ë¤Î¤Ç¤Ï¤Ê¤¤¤«¤È ¹Í¤¨¤Æ¤¤¤Þ¤¹. »ä¤¿¤Á¤Ï´ñ̯¤Ê¸Å¤¤»Å»ö¤ò¤·¤Æ¤¤¤ë¤Î¤Ç¤·¤ç¤¦! ¿¿ÌÌÌܤ˸À¤¦¤È, FreeBSD ¤ä Linux ¤Ï¶¦¤Ë ``HLT'' (Ää»ß) Ì¿Îá¤ò¥·¥¹¥Æ¥à¤Î¥¢¥¤¥É¥ë»þ¤Ë»È¤¤, ¥¨¥Í¥ë¥®¡¼¤Î¾ÃÈñ¤ò²¡¤¨¤Æ ¤¤¤Þ¤¹¤Î¤ÇÇ®¤ÎȯÀ¸¤â¾¯¤Ê¤¯¤Ê¤ê¤Þ¤¹. ¤Þ¤¿, APM (automatic power management) ¤òÀßÄꤷ¤Æ¤¢¤ë¤Ê¤é FreeBSD ¤Ï CPU ¤ò¥í¡¼¥Ñ¥ï¡¼¥â¡¼¥É ¤Ë¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. 狼¤¬»ä¤Î¥á¥â¥ê¥«¡¼¥É¤ò¤Ò¤Ã¤«¤¤¤Æ¤¤¤ë¤Î¤Ç¤¹¤«?? Q. FreeBSD¤Ç¥«¡¼¥Í¥ë¤Î¥³¥ó¥Ñ¥¤¥ë¤ò¤·¤Æ¤¤¤ë»þ¤Ë¥á¥â¥ê¤«¤é °ú¤Ã¤«¤¤¤Æ¤¤¤ë¤è¤¦¤Ê´ñ̯¤Ê²»¤¬Ê¹¤³¤¨¤ë¤è¤¦¤Ê¤³¤È¤Ï¤¢¤ë¤Î¤Ç¤·¤ç¤¦¤«? ¥³¥ó¥Ñ¥¤¥ë¤ò¤·¤Æ¤¤¤ë»þ (¤¢¤ë¤¤¤Ïµ¯Æ°»þ¤Ë¥Õ¥í¥Ã¥Ô¥É¥é¥¤¥Ö¤ò ǧ¼±¤·¤¿¸å¤Îû¤¤´Ö¤Ê¤É), ´ñ̯¤Ê°ú¤Ã¤«¤¯¤è¤¦¤Ê²»¤¬¥á¥â¥ê¥«¡¼¥É¤Î ¤¢¤¿¤ê¤«¤éʹ¤³¤¨¤Æ¤­¤Þ¤¹. A. ¤½¤ÎÄ̤ê¤Ç¤¹. BSD¤Î¥É¥­¥å¥á¥ó¥È¤Ç¤·¤Ð¤·¤Ð¡Ö¥Ç¡¼¥â¥ó¡×¤Ë ¤Ä¤¤¤Æ½Ò¤Ù¤é¤ì¤Æ¤¤¤ëÍýͳ¤¬¤ï¤«¤ë¤Ç¤·¤ç¤¦. ¤·¤«¤·Â¿¤¯¤Î¿Í¤ÏËÜÅö¤Î »ö¤Ë¤Ä¤¤¤Æ¤Ï¿¨¤ì¤Æ¤¤¤Þ¤»¤ó. Èóʪ¼ÁŪ¤Ê¸ºß¤¬¤¢¤Ê¤¿¤Î¥³¥ó¥Ô¥å¡¼¥¿ ¤Ë¤¢¤ë¤Î¤Ç¤¹. ¥á¥â¥ê¤«¤é¤Î°ú¤Ã¤«¤¤¤¿¤è¤¦¤Ê²»¤Ï, ¼ÂºÝ¤Ë¿§¡¹¤Ê ¥·¥¹¥Æ¥à´ÉÍý¥¿¥¹¥¯¤Î°·¤¤¤ò¤¤¤«¤ËºÇÁ±¤Ê¤â¤Î¤Ë¤¹¤ë¤«¤È¤¤¤¦ÆâÍÆ¤ò¸ò¤ï¤¹, ¥Ç¡¼¥â¥ó¤¿¤Á¤Î¤«¤ó¹â¤¤¤µ¤µ¤ä¤­¤Ê¤Î¤Ç¤¹. ¡Ö»¨²»¡×¤¬¤¢¤Ê¤¿¤Ë DOS ¥×¥í¥°¥é¥à¤Î ``fdisk /mbr'' ¤ò»È¤Ã¤Æ¤¦¤Þ¤¯¤µ¤µ¤ä¤­¤ò¼è¤ê½ü¤«¤»¤è¤¦¤È¤·¤Æ¤¤¤ë¤è¤¦¤Ëʹ¤³¤¨¤Æ¤â, Èà¤é¤ÏµÕ¤Ë¤½¤¦¤¹¤ë¤³¤È¤ò¤ä¤á¤µ¤»¤è¤¦¤È¤·¤Æ¤¤¤ë¤Î¤«¤â¤·¤ì¤Þ¤»¤ó. ËÜÅö¤ÏÆâ¢¥¹¥Ô¡¼¥«¤«¤é¤Î¥Ó¥ë ¥²¥¤¥Ä¤Î°­ËâŪ¤ÊÀ¼¤¬ ¤¢¤Ê¤¿¤Ë±Æ¶Á¤òÍ¿¤¨¤Æ¤¤¤ë¤Î¤«¤â¤·¤ì¤Þ¤»¤ó. ¼Â¹Ô¤¹¤ë¤Î¤Ï»ß¤á¤Þ¤·¤ç¤¦, ¤½¤·¤Æ¿¶¤êÊ֤äƤϤ¤¤±¤Þ¤»¤ó! BSD ¤Î¼é¸î¿À (daemon) ¤ÎÎϤˤè¤ê, ·«¤êÊÖ¤·¤¢¤Ê¤¿¤Î¥Þ¥·¥ó¤ò»ÙÇÛ²¼¤ËÃÖ¤³¤¦¤È¤·, ¤¢¤Ê¤¿¤Îº²¤ò ̵¸ÂÃϹö¤ËÆÍ¤­Í¤¦¤È¤¹¤ë DOS¤È Windows ¤ÎÁлҤΰ­µ´ (demon) ¤Î ±Æ¶Á¤«¤é¼«Í³¤Ë¤Ê¤ê¤Þ¤·¤ç¤¦. ÁªÂò¤Îµ¡²ñ¤ÏÍ¿¤¨¤é¤ì¤Þ¤·¤¿. »ä¼«¿È¤Ï¤³¤Î°ú¤Ã¤«¤¯¤è¤¦¤Ê²»¤¬ ʹ¤³¤¨¤Æ¤¤¤¿¤³¤È¤ò´ò¤·¤¯»×¤Ã¤Æ¤¤¤Þ¤¹. 'MFC' ¤È¤Ï¤É¤¦¤¤¤¦°ÕÌ£¤Ç¤¹¤« MFC ¤È¤Ï 'CURRENT ¤È¤Î¹çή(Merged From -CURRENT.)'¤Î Ƭʸ»ú¤ò¤È¤Ã¤¿¤â¤Î¤Ç¤¹. CVS ¥í¥°¤Ç CURRENT ¤«¤é STABLE ¥Ö¥é¥ó¥Á ¤Ø¤Î¹çή¤ò¼¨¤·¤Þ¤¹. 'BSD' ¤È¤Ï¤É¤¦¤¤¤¦°ÕÌ£¤Ç¤¹¤« ¤³¤Î¸ÀÍÕ¤Ï, Ãç´Ö¤¦¤Á¤À¤±¤Ëʬ¤«¤ë±£¸ì¤Ç²¿¤È¤«¤È¤¤¤¦°ÕÌ£¤Ç¤¹. ʸ»ú¤É¤ª¤ê¤ËÌõ¤¹¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó¤¬, BSD ¤ÎÌõ¤Ï¡ÖF1 ¤Î¥ì¡¼¥·¥ó¥° ¥Á¡¼¥à¡×¤«¡Ö¥Ú¥ó¥®¥ó¤Ï¤ª¤¤¤·¤¤¥¹¥Ê¥Ã¥¯¡×, ¤¢¤ë¤¤¤Ï¡Ö²¶¤¿¤Á¤ã Linux ¤è¤êÞ¯Íî¤ÏÍø¤¤¤Æ¤ë¤¼¡×¤È¤«¤½¤Î¤Ø¤ó¤À¤È¸À¤Ã¤Æ¤ª¤±¤Ð¤ª¤Ã¤±¡¼ ¤Ç¤·¤ç¤¦. :-) ´×ÏõÙÂê. BSD ¤È¤Ï, Berkeley CSRG (¥³¥ó¥Ô¥å¡¼¥¿¥·¥¹¥Æ¥à ɾµÄ²ñ) ¤¬Èà¤é¤Î UNIX ¤ÎÇÛÉÛ·ÁÂÖ¤Î̾Á°¤È¤·¤ÆÅö»þÁª¤ó¤À 'Berkeley Software Distribution' ¤Îά¤Ç¤¹. ¤Ò¤È¤Ä¤ÎÅŵå¤ò¼è¤êÂØ¤¨¤ë¤Î¤Ë, ²¿¿Í¤Î FreeBSD ¥Ï¥Ã¥«¡¼¤¬É¬Í×? 1,172¿Í¤Ç¤¹. Åŵ夬¾Ã¤¨¤Æ¤¤¤ë¤È -current ¤Çʸ¶ç¤ò¸À¤¦¤Î¤Ë 23¿Í, ÀßÄê¾å¤ÎÌäÂê¤Ç -questions ¤ÇÏäò¤¹¤Ù¤­¤³¤È¤Ë¤Ä¤¤¤ÆÁû¤°¤Î¤Ë 4¿Í, ¤½¤ì¤ò send-pr (ÌõÃí: ¾ã³²Êó¹ð) ¤¹¤ë¤Î¤Ë 3¿Í (¤½¤Î¤¦¤Á¤Î ¤Ò¤È¤Ä¤Ï´Ö°ã¤Ã¤Æ doc ¥«¥Æ¥´¥ê¤ËÁ÷¤ê¤Ä¤±¤é¤ì¤¿¤¦¤¨¤Ë, ÆâÍÆ¤¬¡Ö°Å¤¯¤Ê¤Ã¤¿¡× ¤È¤¤¤¦¤À¤±¤Î¤â¤Î), buildworld ¤ò¼ºÇÔ¤µ¤», 5ʬ¸å¤Ë¤Ï¸µ¤ËÌᤵ¤ì¤ë¤è¤¦¤ÊÅŵå¤ò ¥Æ¥¹¥È¤â¤»¤º¤Ë¥³¥ß¥Ã¥È¤¹¤ë¤Î¤Ë 1¿Í, send-pr ¤·¤¿¿Í¤Ë, ¥Ñ¥Ã¥Á¤¬´Þ¤Þ¤ì¤Æ¤¤¤Ê¤¤¤È¤¤¤Á¤ã¤â¤ó¤ò ÉÕ¤±¤ë¤Î¤Ë 8¿Í, buildworld ¤¬¼ºÇÔ¤¹¤ë¤Èʸ¶ç¤ò¸À¤¦¤Î¤Ë 5¿Í, ¼«Ê¬¤Î¤È¤³¤í¤Ç¤Ï¤Á¤ã¤ó¤Èư¤¯, cvsup ¤·¤¿¥¿¥¤¥ß¥ó¥°¤¬ °­¤«¤Ã¤¿¤ó¤À¤í¤¦¤ÈÅú¤¨¤ë¤Î¤Ë 31¿Í, ¿·¤·¤¤Åŵå¤Î¤¿¤á¤Î¥Ñ¥Ã¥Á¤ò -hackers ¤ËÅꤲ¤ë¤Î¤Ë 1¿Í, ¼«Ê¬¤Ï 3ǯ¤âÁ°¤Ë¥Ñ¥Ã¥Á¤òºî¤Ã¤¿¤¬, ¤½¤ì¤ò -current ¤ËÅꤲ¤¿ ¤È¤­¤Ë¤Ï̵»ë¤µ¤ì¤¿¤À¤±¤À¤Ã¤¿, ¼«Ê¬¤Ï send-pr ¤Î¥·¥¹¥Æ¥à¤Ë¤Ï·ù¤Ê·Ð¸³¤¬ ¤¢¤ë¤È (¤ª¤Þ¤±¤Ë, Ä󰯤µ¤ì¤¿¿·¤·¤¤Åŵå¤Ë¤Ï½ÀÆðÀ­¤¬Ìµ¤¤¤È¤Þ¤Ç) ʸ¶ç¤ò¸À¤¦¤Î¤Ë 1¿Í, Åŵ夬´ðËÜ¥·¥¹¥Æ¥à¤ËÁȤ߹þ¤Þ¤ì¤Æ¤¤¤Ê¤¤, committer ¤Ï ¥³¥ß¥å¥Ë¥Æ¥£¤Î°Õ¸«¤òʹ¤¯¤³¤È̵¤·¤Ë¤³¤ó¤Ê¤³¤È¤ò¤¹¤ë¸¢Íø¤Ï̵¤¤¤È ¶«¤Ó, ¡Ö¤³¤ó¤Ê¤È¤­¤Ë -core ¤Ï²¿¤ò¤ä¤Ã¤Æ¤ë¤ó¤À!?¡×¤È¤ï¤á¤­ ¤Á¤é¤¹¤Î¤Ë 37¿Í, ¼«Å¾¼ÖÃÖ¤­¾ì¤Î¿§¤Ëʸ¶ç¤ò¸À¤¦¤Î¤Ë 200¿Í, ¥Ñ¥Ã¥Á¤¬ style(9) °ãÈ¿¤À¤È»ØÅ¦¤¹¤ë¤Î¤Ë 3¿Í, Ä󰯤µ¤ì¤¿¿·¤·¤¤Åŵå¤Ï GPL ¤Î²¼¤Ë¤¢¤ë¤Èʸ¶ç¤ò¸À¤¦¤Î¤Ë 70¿Í, GPL ¤È BSD ¥é¥¤¥»¥ó¥¹¤È MIT ¥é¥¤¥»¥ó¥¹¤È NPL ¤È, Ë¿ FSF ÁÏΩ¼Ô¤é¤Î¸Ä¿ÍŪ¤Ê·ò¹¯Ë¡¤ÎÍ¥°ÌÀ­¤Ë¤Ä¤¤¤Æ¤ÎÏÀÁè¤òÀï¤ï¤¹¤Î¤Ë 586¿Í, ¥¹¥ì¥Ã¥É¤Î¤¢¤Á¤³¤Á¤Î»Þ¤ò -chat ¤ä -advocacy ¤Ë°Üư¤¹¤ë¤Î¤Ë 7¿Í, Ä󰯤µ¤ì¤¿Åŵå¤ò, ¸Å¤¤¤Î¤è¤ê¤º¤Ã¤ÈÇö°Å¤¤¤Î¤Ë ¥³¥ß¥Ã¥È¤·¤Æ¤·¤Þ¤¦¤Î¤Ë 1¿Í, FreeBSD ¤ËÇö°Å¤¤Åŵå¤òÉÕ¤±¤ë¤¯¤é¤¤¤Ê¤é¿¿¤Ã°Å¤Î¤Û¤¦¤¬¤Þ¤·¤À, ¤È¤¤¤¦, ¥³¥ß¥Ã¥È¥á¥Ã¥»¡¼¥¸¤Ø¤ÎÀ¨¤Þ¤¸¤¤ÈóÆñ¤ÎÍò¤Ë¤è¤Ã¤Æ, ¤½¤ì¤ò ¸µ¤ËÌ᤹¤Î¤Ë 2¿Í, Çö°Å¤¤Åŵ夬Ģ¾Ã¤·¤Ë¤µ¤ì¤¿¤³¤È¤ËÂФ·¤Æ¤É¤Ê¤êÀ¼¤Ç¸ýÏÀ¤·, -core ¤ÎÀ¼ÌÀ¤òÍ׵᤹¤ë¤Î¤Ë 46¿Í, ¤â¤· FreeBSD ¤ò¤¿¤Þ¤´¤Ã¤Á¤Ë°Ü¿¢¤¹¤ë¤³¤È¤Ë¤Ê¤Ã¤¿¤È¤­¤Ë ÅԹ礬¤¤¤¤¤è¤¦¤Ë, ¤â¤Ã¤È¾®¤µ¤ÊÅŵå¤òÍ׵᤹¤ë¤Î¤Ë 11¿Í, -hackers ¤È -chat ¤Î S/NÈæ¤Ëʸ¶ç¤ò¸À¤¤, ¹³µÄ¤Î¤¿¤á¹ÖÆÉ¤ò ¼è¤ê¤ä¤á¤ë¤Î¤Ë 73¿Í, ¡Öunsubscribe¡× ¡Ö¤É¤¦¤ä¤Ã¤¿¤é¹ÖÆÉ¤ò¤ä¤á¤é¤ì¤ë¤ó¤Ç¤¹¤«?¡× ¡Ö¤³¤Î¥á¡¼¥ê¥ó¥°¥ê¥¹¥È¤«¤é¤ï¤¿¤·¤ò³°¤·¤Æ¤¯¤À¤µ¤¤¡×¤È¤¤¤Ã¤¿ ¥á¥Ã¥»¡¼¥¸¤ò, Îã¤Î¥Õ¥Ã¥¿¤ò¤¯¤Ã¤Ä¤±¤ÆÅê¹Æ¤¹¤ë¤Î¤Ë 13¿Í, ¤ß¤ó¤Ê¤¬·ãÏÀ¤òÀï¤ï¤»¤ë¤Î¤ËË»¤¬¤·¤¯¤Æµ¤ÉÕ¤«¤Ê¤¤´Ö¤Ë, ºî¶ÈÃæ¤Î Åŵå¤ò¥³¥ß¥Ã¥È¤¹¤ë¤Î¤Ë 1¿Í, ¿·¤·¤¤Åŵå¤Ï TenDRA ¤ò»È¤Ã¤Æ¥³¥ó¥Ñ¥¤¥ë¤µ¤ì¤¿¾ì¹ç¤Ë 0.364% ¤â ÌÀ¤ë¤¯¤Ê¤ë (¤¿¤À¤·Åŵå¤òΩÊýÂΤˤ·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¤¬), ¤À¤«¤é FreeBSD ¤Ï EGCS ¤«¤é TenDRA ¤ËÊѤ¨¤ë¤Ù¤­¤À¤È»ØÅ¦¤¹¤ë¤Î¤Ë 31¿Í, ¿·¤·¤¤Åŵå¤ÏÈþ¤·¤µ¤Ë·ç¤±¤Æ¤¤¤ë¤Èʸ¶ç¤ò¸À¤¦¤Î¤Ë 1¿Í, ¡ÖMFC ¤Ã¤Æ²¿¤Ç¤¹¤«?¡×¤Èʹ¤¯¤Î¤Ë 9¿Í (send-pr ¤·¤¿¿Í¤â´Þ¤à), Åŵ夬¼è¤êÂØ¤¨¤é¤ì¤Æ¤«¤é 2½µ´Ö¤â¾Ã¤¨¤Ã¤Ñ¤Ê¤·¤À¤Èʸ¶ç¤ò ¸À¤¦¤Î¤Ë 57¿Í. °Ê²¼¤Ï Nik Clayton ¤Ë¤è¤ëÄɵ­: ¤³¤ì¤Ë¤ÏÇú¾Ð¤·¤Þ¤·¤¿. ¤½¤ì¤«¤é¤ï¤¿¤·¤Ï¹Í¤¨¤Þ¤·¤¿. ¡Ö¤Á¤ç¤Ã¤ÈÂԤƤè, ¤³¤Î ¥ê¥¹¥È¤Î¤É¤³¤«¤Ë¡Ø¤³¤ì¤òʸ½ñ¤Ë¤Þ¤È¤á¤ë¤Î¤Ë 1¿Í¡Ù¤È¤¤¤¦¤Î¤¬ ¤¢¤Ã¤Æ¤â¤¤¤¤¤ó¤¸¤ã¤Ê¤¤¤«?¡× ¤½¤ì¤«¤é¤ï¤¿¤·¤Ï¸ç¤ê¤ò³«¤¤¤¿¤Î¤Ç¤¹ :-) ¤Þ¤¸¤á¤Ê FreeBSD ¥Ï¥Ã¥«¡¼¤À¤±¤ÎÏÃÂê Ìõ: ´äºê Ëþ <iwasaki@jp.FreeBSD.org>.8 November 1997. SNAP ¤È¤« RELEASE ¤È¤«¤Ï²¿? ¸½ºß, FreeBSD ¤Î CVS ¥ê¥Ý¥¸¥È¥ê ¤Ë¤Ï, »°¤Ä¤Î¥¢¥¯¥Æ¥£¥Ö/½à¥¢¥¯¥Æ¥£¥Ö¤Ê¥Ö¥é¥ó¥Á¤¬¤¢¤ê¤Þ¤¹. RELENG_2_2 Ä̾Π2.2-stable ¤Þ¤¿¤Ï "2.2 branch" RELENG_3 Ä̾Π3.x-stable ¤Þ¤¿¤Ï "3.0 branch" HEAD Ä̾Π¤Þ¤¿¤Ï 4.0-current HEAD ¤Ï¾¤ÎÆó¤Ä¤È°ã¤Ã¤Æ¼ÂºÝ¤Î¥Ö¥é¥ó¥Á tag ¤Ç¤Ï¤Ê¤¯, ¡Öcurrent, ʬ´ô¤·¤Æ¤¤¤Ê¤¤³«È¯ËÜή¡×¤Î¤¿¤á¤Îñ¤Ê¤ë¥·¥ó¥Ü¥ê¥Ã¥¯ ¤ÊÄê¿ô¤Ç¤¹. »ä¤¿¤Á¤Ï¤³¤ì¤ò ¤È¸Æ¤ó¤Ç¤¤¤Þ¤¹. ¸½ºß, ¤Ï 4.0 ¤Î³«È¯ËÜή¤Ç¤¢¤ê, 3.0-stable ¥Ö¥é¥ó¥Á, ¤Ä¤Þ¤ê RELENG_3 ¤Ï 1999ǯ1·î¤Ë ¤«¤éʬ´ô¤·¤Æ¤¤¤Þ¤¹. 2.2-stable ¥Ö¥é¥ó¥Á, RELENG_2_2 ¤Ï 1996ǯ11·î¤Ë -current ¤«¤éʬ´ô¤·¤Þ¤·¤¿. 2.1-stable ¥Ö¥é¥ó¥Á, RELENG_2_1_0 ¤Ï 1994ǯ9·î¤Ë -current ¤«¤éʬ´ô¤·¤Þ¤·¤¿. ¤³¤Î¥Ö¥é¥ó¥Á¤Ï´°Á´¤ËÊݼ餵¤ì¤Ê¤¯¤Ê¤Ã¤Æ¤¤¤Þ¤¹. ¼«Ê¬ÍѤΥ«¥¹¥¿¥à¥ê¥ê¡¼¥¹¤ò¹½ÃÛ¤¹¤ë¤Ë¤Ï? ¥ê¥ê¡¼¥¹¤ò¹½ÃÛ¤¹¤ë¤Ë¤Ï»°¤Ä¤Î¤³¤È¤¬É¬ÍפǤ¹: ¤Þ¤º, vn ¥É¥é¥¤¥Ð¤¬ÁȤ߹þ¤Þ¤ì¤¿¥«¡¼¥Í¥ë¤ò¼Â¹Ô¤µ¤»¤Æ¤¤¤ëɬÍפ¬¤¢¤ê¤Þ¤¹. °Ê²¼¤ò¥«¡¼¥Í¥ë¥³¥ó¥Õ¥£¥°¥ì¡¼¥·¥ç¥ó¥Õ¥¡¥¤¥ë¤ËÄɲä·, ¥«¡¼¥Í¥ë¤òºî¤êľ¤·¤Æ¤¯¤À¤µ¤¤: pseudo-device vn #Vnode driver (turns a file into a device) ¼¡¤Ë, CVS ¥ê¥Ý¥¸¥È¥êÁ´ÂΤò¼ê¸µ¤Ë¤ª¤¤¤Æ¤ª¤¯É¬Íפ¬¤¢¤ê¤Þ¤¹. ¤³¤ì¤òÆþ¼ê¤¹¤ë¤Ë¤Ï CVSUP ¤¬»ÈÍѤǤ­¤Þ¤¹¤¬, supfile ¤Ç release ¤Î̾¾Î¤ò cvs ¤Ë¤·¤Æ ¾¤Î¥¿¥°¤ä date ¥Õ¥£¡¼¥ë¥É¤òºï½ü¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹: *default prefix=/home/ncvs *default base=/a *default host=cvsup.FreeBSD.org *default release=cvs *default delete compress use-rel-suffix ## Main Source Tree src-all src-eBones src-secure # Other stuff ports-all www doc-all ¤½¤·¤Æ cvsup -g supfile ¤ò¼Â¹Ô¤·¤Æ¼«Ê¬¤Î¥Þ¥·¥ó¤Ë CVS ¥ê¥Ý¥¸¥È¥êÁ´ÂΤò¥³¥Ô¡¼¤·¤Þ¤¹... ºÇ¸å¤Ë, ¥Ó¥ë¥ÉÍѤˤ«¤Ê¤ê¤Î¶õ¤­Îΰè¤òÍѰդ¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹. ¤½¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ò /some/big/filesystem ¤È¤·¤Æ, ¾å¤ÎÎã¤Ç CVS ¥ê¥Ý¥¸¥È¥ê¤ò /home/ncvs ¤ËÃÖ¤¤¤¿¤â¤Î¤È¤¹¤ë¤È, °Ê²¼¤Î¤è¤¦¤Ë¤·¤Æ¥ê¥ê¡¼¥¹¤ò¹½ÃÛ¤·¤Þ¤¹: setenv CVSROOT /home/ncvs # or export CVSROOT=/home/ncvs cd /usr/src/release make release BUILDNAME=3.0-MY-SNAP CHROOTDIR=/some/big/filesystem/release ½èÍý¤¬½ªÎ»¤¹¤ë¤È, ¥ê¥ê¡¼¥¹Á´ÂΤ¬ /some/big/filesystem/release ¤Ë¹½ÃÛ¤µ¤ì, ´°Á´¤Ê FTP ¥¤¥ó¥¹¥È¡¼¥ëÍѤÎÇÛÉÛʪ¤¬ /some/big/filesystem/release/R/ftp ¤ËºîÀ®¤µ¤ì¤Þ¤¹. -current °Ê³°¤Î³«È¯¥Ö¥é¥ó¥Á¤Î SNAP ¤ò¼«Ê¬¤Ç¹½ÃÛ¤·¤¿¤¤¾ì¹ç¤Ï, RELEASETAG=SOMETAG ¤ò¾å¤Î make release ¤Î¥³¥Þ¥ó¥É¥é¥¤¥ó¤ËÄɲä·¤Þ¤¹. Î㤨¤Ð, RELEASETAG=RELENG_2_2 ¤È¤¹¤ë¤ÈºÇ¿·¤Î 2.2-STABLE snapshot ¤¬¹½ÃÛ¤µ¤ì¤Þ¤¹. ¥«¥¹¥¿¥à¤Î¥¤¥ó¥¹¥È¡¼¥ë¥Ç¥£¥¹¥¯¤òºî¤ë¤Ë¤Ï¤É¤¦¤¹¤ì¤Ð¤¤¤¤¤Î¤Ç¤¹¤«? /usr/src/release/Makefile ¤Î¤¤¤í¤¤¤í¤Ê¥¿¡¼¥²¥Ã¥È¤È¤·¤Æ ¥¤¥ó¥¹¥È¡¼¥ë¥Ç¥£¥¹¥¯, ¥½¡¼¥¹, ¥Ð¥¤¥Ê¥ê¥¢¡¼¥«¥¤¥Ö¤òºî¤ë´°Á´¤Ê½èÍý¤ò ¼«Æ°Åª¤Ë¤ª¤³¤Ê¤¦¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹. Makefile ¤Ë½½Ê¬¤Ê¾ðÊ󤬤¢¤ê¤Þ¤¹. ¤·¤«¤·, ¼Â¹Ô¤Ë¤Ï ``make world'' ¤¬É¬ÍפÇ, ¿¤¯¤Î»þ´Ö¤È¥Ç¥£¥¹¥¯¤ÎÍÆÎ̤¬É¬ÍפǤ¹. ``make world'' ¤ò¤ª¤³¤Ê¤¦¤È´û¸¤Î¥Ð¥¤¥Ê¥ê¤ò¾å½ñ¤­¤·¤Æ¤·¤Þ¤¦¤Î¤Ç¤¹¤¬. ¤¨¤¨, ¤½¤ì¤¬°ìÈÌŪ¤Ê¹Í¤¨Êý¤Ç¤¹. ̾Á°¤¬¼¨¤·¤Æ¤¤¤ë¤è¤¦¤Ë ``make world'' ¤Ï¤¹¤Ù¤Æ¤Î¥·¥¹¥Æ¥à¤Î¥Ð¥¤¥Ê¥ê¤ò°ì¤«¤éºî¤êľ¤·¤Þ¤¹¤Î¤Ç, ·ë²Ì¤È¤·¤Æ¥¯¥ê¡¼¥ó¤Ç°ì´ÓÀ­¤Î¤¢¤ë´Ä¶­¤òÆÀ¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹ (¤³¤ì¤¬¤½¤ì¤À¤±Ä¹¤¤»þ´Ö¤¬¤«¤«¤ëÍýͳ¤Ç¤¹). ´Ä¶­ÊÑ¿ô DESTDIR ¤ò ``make world'' ¤ä ``make install'' ¤ò¼Â¹Ô¤¹¤ë»þ¤ËÄêµÁ¤·¤Æ¤ª¤¯¤È, ¿·¤·¤¯ºî¤é¤ì¤¿¥Ð¥¤¥Ê¥ê¤Ï ${DESTDIR}¤ò root ¤È¤ß¤Ê¤·¤¿ ¥Ç¥£¥ì¥¯¥È¥ê¥Ä¥ê¡¼¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Þ¤¹. ¤¢¤ë¤Ç¤¿¤é¤á¤Ê¶¦Í­¥é¥¤¥Ö¥é¥ê¤ÎÊѹ¹¤ä¥×¥í¥°¥é¥à¤ÎºÆ¹½Ãۤˤè¤Ã¤Æ ``make world'' ¤Ï¼ºÇÔ¤¹¤ë¤³¤È¤â¤¢¤ê¤Þ¤¹. ¥·¥¹¥Æ¥à¥Ö¡¼¥È»þ¤Ë ``(bus speed defaulted)'' ¤È¥á¥Ã¥»¡¼¥¸¤¬½Ð¤Þ¤¹. ¥¢¥À¥×¥Æ¥Ã¥¯¤Î 1542 SCSI ¥Û¥¹¥È¥¢¥À¥×¥¿¤Ï¥æ¡¼¥¶¤¬¥½¥Õ¥È¥¦¥§¥¢Åª¤Ë ¥Ð¥¹¥¢¥¯¥»¥¹Â®ÅÙ¤ÎÀßÄê¤ò¤ª¤³¤Ê¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹. °ÊÁ°¤Î¥Ð¡¼¥¸¥ç¥ó¤Î 1542 ¥É¥é¥¤¥Ð¤Ï»ÈÍѲÄǽ¤ÊºÇÂç¤Î®ÅÙ¤òµá¤á¤Æ¥¢¥À¥×¥¿¤ò ¤½¤ÎÀßÄê¤Ë¤·¤è¤¦¤È¤·¤Þ¤·¤¿. ¤³¤ì¤ÏÆÃÄê¤Î¥æ¡¼¥¶¤Î¥·¥¹¥Æ¥à¤Ç¤Ï ÌäÂ꤬¤¢¤ë»ö¤¬¤ï¤«¤ê, ¸½ºß¤Ç¤Ï¥«¡¼¥Í¥ë¥³¥ó¥Õ¥£¥°¥ª¥×¥·¥ç¥ó¤Ë ``TUNE_1542'' ¤¬²Ã¤¨¤é¤ì¤Æ¤¤¤Þ¤¹. ¤³¤ì¤ò»ÈÍѤ¹¤ë¤È, ¤³¤ì¤¬Æ¯¤¯¥·¥¹¥Æ¥à¤Ç¤Ï¥Ç¥£¥¹¥¯¤¬Â®¤¯¤Ê¤ê¤Þ¤¹¤¬, ¥Ç¡¼¥¿¤Î¾×ÆÍ¤¬µ¯¤­¤ÆÂ®¤¯¤Ï¤Ê¤é¤Ê¤¤¥·¥¹¥Æ¥à¤â¤¢¤ë¤Ç¤·¤ç¤¦. ¥¤¥ó¥¿¡¼¥Í¥Ã¥È¥¢¥¯¥»¥¹¤ËÀ©¸Â¤¬¤¢¤Ã¤Æ¤â current ¤òÄɤ¤¤«¤±¤é¤ì¤Þ¤¹¤«? ¤Ï¤¤, CTM ¥·¥¹¥Æ¥à ¤ò »È¤Ã¤Æ ¥½¡¼¥¹¥Ä¥ê¡¼Á´ÂΤΥÀ¥¦¥ó¥í¡¼¥É¤ò¤ª¤³¤Ê¤ï¤º¤ËÄɤ¤¤«¤±¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. ¤É¤Î¤è¤¦¤Ë¤·¤ÆÇÛÉÛ¥Õ¥¡¥¤¥ë¤ò 240k¥Ð¥¤¥È¤Ëʬ³ä¤·¤Æ¤¤¤ë¤Î¤Ç¤¹¤«? Èæ³ÓŪ¿·¤·¤¤ BSD¥Ù¡¼¥¹¤Î¥·¥¹¥Æ¥à¤Ç¤Ï split ¤ËǤ°Õ¤Î¥Ð¥¤¥È¶­³¦¤Ç ʬ³ä¤¹¤ë ``'' ¥ª¥×¥·¥ç¥ó¤¬¤¢¤ê¤Þ¤¹. °Ê²¼¤Ï /usr/src/Makefile ¤«¤é¤ÎÎã¤Ç¤¹. bin-tarball: (cd ${DISTDIR}; \ tar cf - . \ gzip --no-name -9 -c | \ split -b 240640 - \ ${RELEASEDIR}/tarballs/bindist/bin_tgz.) »ä¤Ï¥«¡¼¥Í¥ë¤Ë³ÈÄ¥¤ò¤ª¤³¤Ê¤¤¤Þ¤·¤¿. ï¤ËÁ÷¤ì¤Ð¤¤¤¤¤Ç¤¹¤«? ¥Ï¥ó¥É¥Ö¥Ã¥¯¤Î¡Ö¹×¸¥¤Î»ÅÊý (Contributing to FreeBSD)¡×¤Î¾Ï ¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤. ¤¢¤Ê¤¿¤Î¥¢¥¤¥Ç¥£¥¢¤Ë´¶¼Õ¤·¤Þ¤¹! PnP ISA ¥«¡¼¥É¤Î¸¡½Ð¤È½é´ü²½¤Ï¤É¤Î¤è¤¦¤Ë¤ª¤³¤Ê¤¦¤Î¤Ç¤¹¤«? Frank Durda IV »á¤è¤ê: Í×ÅÀ¤Ï, ¥Û¥¹¥È¤¬Ç§¼±¤µ¤ì¤Æ¤¤¤Ê¤¤¥Ü¡¼¥É¤òõ¤¹»þ¤Ë, ¤¹¤Ù¤Æ¤Î PnP ¥Ü¡¼¥É¤¬±þÅú¤¹¤ë¤³¤È¤Î¤Ç¤­¤ë¾¯¿ô¤Î I/O ¥Ý¡¼¥È¤¬¤¢¤ë¤È¤¤¤¦ ¤³¤È¤Ç¤¹. ¤½¤ì¤Ë¤è¤ê, PnP ¥×¥í¡¼¥Ö¥ë¡¼¥Á¥ó¤¬³«»Ï¤·¤¿¤È¤­, PnP ¥Ü¡¼¥É¤¬Â¸ºß¤¹¤ë¤Ê¤é, ¤¹¤Ù¤Æ¤Î PnP ¥Ü¡¼¥É¤Ï¼«Ê¬¤Î¥â¥Ç¥ëÈÖ¹æ¤ò ÊÖ¤·¤Þ¤¹. ¤½¤Î¥Ý¡¼¥È¤ò I/O read ¤¹¤ë¤È¥×¥í¡¼¥Ö¥ë¡¼¥Á¥ó¤Ï Ì䤤¤ËÂФ¹¤ë¥ï¥¤¥¢¡¼¥É-OR ¤µ¤ì¤¿ ``yes'' ¤òÆÀ¤Þ¤¹. ¤³¤Î¾ì¹ç¤Ï ¾¯¤Ê¤¯¤È¤â 1¥Ó¥Ã¥È¤¬ ON ¤Ë¤Ê¤ê¤Þ¤¹. ¤½¤·¤Æ, ¥×¥í¡¼¥Ö¥ë¡¼¥Á¥ó¤Ï ¥â¥Ç¥ë ID (Microsoft/Intel ¤Ë¤è¤Ã¤Æ³ä¤êÅö¤Æ¤é¤ì¤Æ¤¤¤Þ¤¹) ¤¬ X ¤è¤ê¾®¤µ¤¤¥Ü¡¼¥É¤ò ``¥ª¥Õ¥é¥¤¥ó'' ¤Ë¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. ¤³¤ÎÁàºî¤ò¤ª¤³¤Ê¤¤, Ì䤤¹ç¤ï¤»¤Ë±þÅú¤·¤Æ¤¤¤ë¥Ü¡¼¥É¤¬¤Þ¤À »Ä¤Ã¤Æ¤¤¤ë¤«¤É¤¦¤«¤òÄ´¤Ù¤Þ¤¹. ¤â¤· ``0'' ¤¬Ê֤äƤ¯¤ë¤Ê¤é X ¤è¤êÂ礭¤Ê ID ¤ò»ý¤Ä¥Ü¡¼¥É¤Ï¤Ê¤¤¤³¤È¤Ë¤Ê¤ê¤Þ¤¹. º£ÅÙ¤Ï ``X'' ¤è¤ê¤â¾®¤µ¤ÊÃͤò»ý¤Ä¥Ü¡¼¥É¤Ë¤Ä¤¤¤ÆÌ䤤¹ç¤ï¤»¤Þ¤¹. ¤â¤·¤¢¤ë¤Î¤Ç¤¢¤ì¤Ð, ¥×¥í¡¼¥Ö¥ë¡¼¥Á¥ó¤Ï¥â¥Ç¥ëÈֹ椬 X ¤è¤ê¾®¤µ¤¤¤³¤È¤òÃΤê¤Þ¤¹. º£ÅÙ¤Ï, X-(limit/4) ¤è¤êÂ礭¤ÊÃͤò»ý¤Ä¥Ü¡¼¥É¤ò¥ª¥Õ¥é¥¤¥ó¤Ë¤·¤Æ Ì䤤¹ç¤ï¤»¤ò·«¤êÊÖ¤·¤Þ¤¹. ¤³¤Î ID ¤ÎÈϰϤˤè¤ë½à¥Ð¥¤¥Ê¥ê¥µ¡¼¥Á¤ò ½½Ê¬·«¤êÊÖ¤¹¤³¤È¤Ë¤è¤ê, ¥×¥í¡¼¥Ö¥ë¡¼¥Á¥ó¤Ï¥Þ¥·¥ó¤Ë¸ºß¤¹¤ë¤¹¤Ù¤Æ¤Î PnP ¥Ü¡¼¥É¤ÎÃͤòºÇ½ªÅª¤ËÆÀ¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. ¤½¤Î·«¤êÊÖ¤·¤Î²ó¿ô¤Ï 2^64 ¤è¤ê¤Ï¤ë¤«¤Ë¾¯¤Ê¤¤²ó¿ô¤Ç¤¹. ID ¤ÏÆó¤Ä¤Î 32-bit (¤Ä¤Þ¤ê 64bit) ¥Õ¥£¡¼¥ë¥É + 8 bit ¥Á¥§¥Ã¥¯¥µ¥à¤«¤é¤Ê¤ê¤Þ¤¹. ºÇ½é¤Î 32 bits ¤Ï¥Ù¥ó¥À¤Î¼±Ê̻ҤǤ¹. ¤³¤ì¤Ï¸øÉ½¤µ¤ì¤Æ¤Ï¤¤¤Þ¤»¤ó¤¬, Ʊ°ì¤Î¥Ù¥ó¥À¤«¤é¶¡µë¤µ¤ì¤Æ¤¤¤ë °Û¤Ê¤ë¥¿¥¤¥×¤Î¥Ü¡¼¥É¤Ç¤Ï°Û¤Ê¤ë 32-bit ¥Ù¥ó¥À ID ¤ò»ý¤Ä¤³¤È¤¬ ¤Ç¤­¤ë¤è¤¦¤Ë¹Í¤¨¤é¤ì¤Þ¤¹. À½Â¤¸µ¤òÆÃÄꤹ¤ë¤À¤±¤Î¤¿¤á¤Ë 32 bits ¤Ï¤¤¤¯¤é¤«²á¾ê¤Ç¤¹. ²¼°Ì¤Î 32 bits ¤Ï¥·¥ê¥¢¥ëÈÖ¹æ, ¥¤¡¼¥µ¥Í¥Ã¥È¥¢¥É¥ì¥¹¤Ê¤É¤Î ¥Ü¡¼¥É¤òÆÃÄꤹ¤ë¤â¤Î¤Ç¤¹. ¥Ù¥ó¥À¤Ï¾å°Ì 32 bits ¤¬°Û¤Ê¤Ã¤Æ¤¤¤Ê¤¤ ¤Î¤Ç¤¢¤ì¤Ð²¼°Ì 32 bits ¤¬Æ±°ì¤Ç¤¢¤ë 2ËçÌܤΥܡ¼¥É¤òÀ½Â¤¤¹¤ë¤³¤È¤Ï ¤¢¤ê¤Þ¤»¤ó. ¤·¤¿¤¬¤Ã¤Æ, Ʊ¤¸¥¿¥¤¥×¤ÎÊ£¿ô¤Î¥Ü¡¼¥É¤ò¥Þ¥·¥ó¤Ë ¤¤¤ì¤ë¤³¤È¤¬¤Ç¤­, ¤³¤Î¾ì¹ç¤Ç¤â 64 bits Á´ÂΤǤϥæ¥Ë¡¼¥¯¤Ç¤¹. 32 bit ¤Î¥Õ¥£¡¼¥ë¥É¤Ï¤¹¤Ù¤Æ¤ò 0 ¤Ë¤¹¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó. ¤³¤ì¤Ï½é´ü²½¤Î¥Ð¥¤¥Ê¥ê¥µ¡¼¥Á¤Î´Ö¥ï¥¤¥¢¡¼¥É-OR ¤Ë¤è¤Ã¤Æ 0 ¤Ç¤Ï¤Ê¤¤ ¥Ó¥Ã¥È¤ò»²¾È¤¹¤ë¤«¤é¤Ç¤¹. ¥·¥¹¥Æ¥à¤¬¤¹¤Ù¤Æ¤Î¥Ü¡¼¥É¤ÎÍ¿¤¨¤é¤ì¤¿ ID ¤òǧ¼±¤¹¤ë¤È, ¤½¤ì¤¾¤ì¤Î¥Ü¡¼¥É¤ËÂбþ¤·¤¿½èÍý¤ò°ì¤Ä¤º¤Ä (Ʊ°ì¤Î I/O ¥Ý¡¼¥È¤òÄ̤·¤Æ) ¤ª¤³¤Ê¤¤¤Þ¤¹. ¤½¤·¤Æ, ÍøÍѤǤ­¤ë³ä¤ê¹þ¤ß¤ÎÁªÂò¤Ê¤É¤Î¥Ü¡¼¥É¤¬É¬Í× ¤È¤¹¤ë¥ê¥½¡¼¥¹¤ò¸¡½Ð¤·¤Þ¤¹. ¤¹¤Ù¤Æ¤Î¥Ü¡¼¥É¤Ë¤Ä¤¤¤Æ¤³¤Î¾ðÊó¤ò½¸¤á¤Þ¤¹. ¤³¤Î¾ðÊó¤Ï¥Ï¡¼¥É¥Ç¥£¥¹¥¯¾å¤Î ECU ¥Õ¥¡¥¤¥ë¤Ê¤É¤Î¾ðÊó¤È¤Þ¤È¤á¤é¤ì, ¥Þ¥¶¡¼¥Ü¡¼¥É¤Î BIOS ¤Ë¤â·ë¹ç¤µ¤ì¤Þ¤¹. ¥Þ¥¶¡¼¥Ü¡¼¥É¾å¤Î¥Ï¡¼¥É¥¦¥§¥¢ ¤Ø¤Î ECU ¤È BIOS PnP ¤Î¥µ¥Ý¡¼¥È¤ÏÄ̾ï¤ÏÅý¹ç¤µ¤ì¤Æ¤¤¤Þ¤¹¤¬, ¼þÊÕµ¡´ï¤Ë¤Ä¤¤¤Æ¤Ï¿¿¤Î PnP¤Ç¤¢¤ë¤È¤Ï¤¤¤¨¤Þ¤»¤ó. ¤·¤«¤·, BIOS ¤Î¾ðÊó¤Ë ECU ¤Î¾ðÊó¤ò²Ã¤¨¤ÆÄ´ºº¤¹¤ë¤³¤È¤Ç, ¥×¥í¡¼¥Ö¥ë¡¼¥Á¥ó¤Ï PnP ¥Ç¥Ð¥¤¥¹¤¬ºÆÇÛÃ֤Ǥ­¤Ê¤¯¤Ê¤ë¤³¤È¤ò Èò¤±¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. ¤½¤ì¤«¤é, ºÆÅÙ PnP ¥Ç¥Ð¥¤¥¹¤Ë¥¢¥¯¥»¥¹¤·, I/O, DMA, IRQ, ¥á¥â¥ê¥Þ¥Ã¥×¥¢¥É¥ì¥¹¤ÎÀßÄê¤ò¤·¤Þ¤¹. ¥Ç¥Ð¥¤¥¹¤Ï¤³¤Î¥¢¥É¥ì¥¹¤Ë ¸«¤¨¤ë¤è¤¦¤Ë¤Ê¤ê, ¼¡¤Ë¥ê¥Ö¡¼¥È¤¹¤ë¤Þ¤Ç¤³¤Î°ÌÃÖ¤òÀê¤á¤Þ¤¹. ¤·¤«¤·, ¤¢¤Ê¤¿¤Î˾¤à»þ¤Ë°Üư¤µ¤»¤ë¤³¤È¤¬ÉÔ²Äǽ¤Ç¤¢¤ë¤È¤¤¤Ã¤Æ¤¤¤ë ¤ï¤±¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó. °Ê¾å¤ÎÏäǤÏÂ礭¤¯Ã±½ã²½¤ò¤·¤Æ¤¢¤ê¤Þ¤¹¤¬, ´ðËÜŪ¤Ê¹Í¤¨Êý¤ÏÆÀ ¤é¤ì¤¿¤Ç¤·¤ç¤¦. ¥Þ¥¤¥¯¥í¥½¥Õ¥È¤Ï¥Ü¡¼¥É¤Î¥í¥¸¥Ã¥¯¤¬ ÂÐΩ¤¹¤ëI/O ¥µ¥¤¥¯¥ë¤Ç¤Ï ¥Ç¥³¡¼¥É¤·¤Æ¤¤¤Ê¤¤ (ÌõÃí: ¤ª¤½¤é¤¯ read »þ¤·¤«¥Ç¥³¡¼¥É¤µ¤ì¤Æ¤¤¤º write »þ¤Ï¥Ý¡¼¥È¤¬¶õ¤¤¤Æ¤¤¤ë¤È¤¤¤¦°ÕÌ£¤Ç¤·¤ç¤¦) ¥×¥é¥¤¥Þ¥ê¥×¥ê¥ó¥¿¤Î¥¹¥Æ¡¼¥¿¥¹¥Ý¡¼¥È¤Î¤¤¤¯¤Ä¤«¤ò PnP ¤Î¤¿¤á¤Ë ÀêÍ­¤·¤Þ¤·¤¿. »ä¤Ï½é´ü¤Î PnP ¤ÎÄó°Æ¥ì¥Ó¥å¡¼»þ¤Ë IBM ½ãÀµ¤Î ¥×¥ê¥ó¥¿¥Ü¡¼¥É¤Ç¥¹¥Æ¡¼¥¿¥¹¥Ý¡¼¥È¤Î write ¤Î¥Ç¥³¡¼¥É¤¬¤µ¤ì¤Æ¤¤¤ë ¤È¤¤¤¦¤³¤È¤Ëµ¤¤¬¤Ä¤­¤Þ¤·¤¿¤¬, MS ¤Ï ``tough (´è¸Ç, ÉÔ±¿, ̵ˡ¤Ê)'' ¤È¸À¤Ã¤Æ¤¤¤Þ¤¹. ¤½¤·¤Æ¥×¥ê¥ó¥¿¤Î¥¹¥Æ¡¼¥¿¥¹¥Ý¡¼¥È¤Ø ¥¢¥É¥ì¥¹¤ÎÀßÄê¤Î¤¿¤á¤Ë write ¤ò¤ª¤³¤Ê¤Ã¤Æ¤¤¤Þ¤¹. ¤Þ¤¿, ¤½¤Î¥¢¥É¥ì¥¹ + 0x800¤È read ¤Î¤¿¤á¤Î 3ÈÖÌܤΠI/O ¥Ý¡¼¥È¤¬ 0x200 ¤«¤é 0x3ff ¤Î´Ö¤Î¤É¤³¤«¤ËÃÖ¤«¤ì¤ë¤Ç¤·¤ç¤¦. FreeBSD ¤Ï, ¾¤Î¥¢¡¼¥­¥Æ¥¯¥Á¥ã¤ò¥µ¥Ý¡¼¥È¤·¤Ê¤¤¤ó¤Ç¤¹¤«? ¤¤¤¯¤Ä¤«¤Î¥°¥ë¡¼¥×¤Î¿Í¡¹¤¬, FreeBSD ¤Î¾¤Î¥¢¡¼¥­¥Æ¥¯¥Á¥ã¤Ø¤Î °Ü¿¢¤Ë´Ø¿´¤ò¼¨¤·¤Æ¤ª¤ê, FreeBSD/AXP (ALPHA) ¤Ï¤³¤ì¤é¤ÎÀ®²Ì¤È¤·¤Æ¤Ï ¤È¤Æ¤âÀ®¸ù¤·¤¿¤â¤Î¤Î°ì¤Ä¤Ç¤¹. FreeBSD/AXP ¤Ï 3.0 ¥¹¥Ê¥Ã¥×¥·¥ç¥Ã¥È ¥ê¥ê¡¼¥¹¤¬¸½ºß ftp://ftp.freebsd.org/pub/FreeBSD/alpha ¤«¤éÆþ¼ê¤Ç¤­¤Þ¤¹. ALPHA ¤Ø¤Î°Ü¿¢ÈǤ¬¸½ºßư¤¯µ¡¼ï¤ÏÁý¤¨¤Ä¤Ä¤¢¤ê, ¤½¤ÎÃæ¤Ë¤Ï AlphaStation, AXPpci, PC164, Miata ¤½¤·¤Æ Multia ¤È¤¤¤Ã¤¿¥â¥Ç¥ë¤¬´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹. ¤³¤Î ALPHA ¤Ø¤Î°Ü¿¢ÈǤϤޤÀ´°Á´¤Ê¥ê¥ê¡¼¥¹¤È¤Ï¤ß¤Ê¤µ¤ì¤Æ¤¤¤Þ¤»¤ó. ¥·¥¹¥Æ¥à¥¤¥ó¥¹¥È¡¼¥ë¥Ä¡¼¥ë°ì¼°¤ä CDROM ¤Î¥¤¥ó¥¹¥È¡¼¥ë¥á¥Ç¥£¥¢¤Î ÇÛÉÛ¤¬Ä󶡤µ¤ì, ŬÅ٤ʿô¤Î ports ¤ä packages ¤¬Æ°¤¯¤è¤¦¤Ë¤Ê¤Ã¤Æ ¤«¤é¤Ë¤Ê¤ë¤Ç¤·¤ç¤¦. ¸½ºß¤Î¤È¤³¤í FreeBSD/AXP ¤Ï¥Ù¡¼¥¿¥¯¥ª¥ê¥Æ¥£¤Î¥½¥Õ¥È¥¦¥§¥¢¤È ¤ß¤Ê¤¹¤Ù¤­¤Ç¤¹. ¸½¾õ¤Ë¤Ä¤¤¤Æ¤Î¾ðÊó¤òÆÀ¤ë¤Ë¤Ï <freebsd-alpha@FreeBSD.ORG> ¤Ë»²²Ã¤·¤Æ¤¯¤À¤µ¤¤. ¤½¤Î¾¤Ë FreeBSD ¤Î SPARC ¥¢¡¼¥­¥Æ¥¯¥Á¥ã¤Ø¤Î°Ü¿¢¤¬¤¢¤ê¤Þ¤¹. ¥×¥í¥¸¥§¥¯¥È¤Ø¤Î»²²Ã¤Ë¶½Ì£¤¬¤¢¤ëÊý¤Ï <freebsd-sparc@FreeBSD.ORG> ¤Ë»²²Ã¤·¤Æ¤¯¤À¤µ¤¤. ¿·¤·¤¤¥¢¡¼¥­¥Æ¥¯¥Á¥ã¤Ë´Ø¤¹¤ë°ìÈÌŪ¤ÊµÄÏÀ¤Ë¤Ä¤¤¤Æ¤Ï <freebsd-platforms@FreeBSD.ORG> ¤Ø»²²Ã¤·¤Æ¤¯¤À¤µ¤¤. ¥Ç¥Ð¥¤¥¹¥É¥é¥¤¥Ð¤ò³«È¯¤·¤¿¤Î¤Ç, ¥á¥¸¥ã¡¼Èֹ椬ɬÍפǤ¹. ¤³¤ì¤Ï, ³«È¯¤·¤¿¥É¥é¥¤¥Ð¤ò¸ø³«¤¹¤ë¤«¤É¤¦¤«¤Ë°Í¸¤·¤Þ¤¹. ¸ø³«¤¹¤ë¤Î¤Ç¤¢¤ì¤Ð, ¥É¥é¥¤¥Ð¤Î¥½¡¼¥¹¥³¡¼¥É, files.i386 ¤ÎÊѹ¹, ¥³¥ó¥Õ¥£¥°¥Õ¥¡¥¤¥ë¤Î¥µ¥ó¥×¥ë, ¥Ç¥Ð¥¤¥¹¤¬»È¤¦¥¹¥Ú¥·¥ã¥ë¥Õ¥¡¥¤¥ë¤òºîÀ®¤¹¤ë MAKEDEV ¤Î¥³¡¼¥É¤ò»ä¤¿¤Á¤ËÁ÷¤Ã¤Æ¤¯¤À¤µ¤¤. ¸ø³«¤¹¤ë¤Ä¤â¤ê¤¬¤Ê¤¤¾ì¹ç, ¥é¥¤¥»¥ó¥¹¤Î ÌäÂê¤Ë¤è¤ê¸ø³«¤Ç¤­¤Ê¤¤¾ì¹ç¤Ï, ¥­¥ã¥é¥¯¥¿¥á¥¸¥ã¡¼ÈÖ¹æ 32 ¤â¤·¤¯¤Ï ¥Ö¥í¥Ã¥¯¥á¥¸¥ã¡¼ÈÖ¹æ 8 ¤¬, ¤³¤Î¤è¤¦¤ÊÌÜŪ¤Î¤¿¤á¤ËͽÌó¤µ¤ì¤Æ¤¤¤Þ¤¹. ¤³¤ì¤é¤ÎÈÖ¹æ¤ò»ÈÍѤ·¤Æ¤¯¤À¤µ¤¤. ¤É¤Á¤é¤Î¾ì¹ç¤Ç¤¢¤ì, ¥É¥é¥¤¥Ð¤Ë´Ø¤¹¤ë¾ðÊó¤ò <freebsd-hackers@FreeBSD.ORG> ¤Ëή¤·¤ÆÄº¤±¤ë¤È½õ¤«¤ê¤Þ¤¹. ÂåÂØ¤Î¥Ç¥£¥ì¥¯¥È¥êÇÛÃ֥ݥꥷ¡¼ ¸½ºß»È¤ï¤ì¤Æ¤¤¤ë¥Ç¥£¥ì¥¯¥È¥ê¤ÎÇÛÃ֥ݥꥷ¡¼¤Ï, »ä¤¬ 1983 ǯ¤Ë½ñ¤¤ ¤¿¤â¤Î¤«¤éÁ´¤¯Êѹ¹¤µ¤ì¤Æ¤¤¤Þ¤»¤ó. »ä¤ÏÅö½é¤ÎÇÛÃ֥ݥꥷ¡¼¤ò, ¥ª¥ê ¥¸¥Ê¥ë¤Î fast filesystem ¤Î¤¿¤á¤Ë½ñ¤­, ¤Þ¤Ã¤¿¤¯²þÄꤷ¤Æ¤¤¤Þ¤»¤ó. ¤³¤Î¥Ý¥ê¥·¡¼¤Ï¥·¥ê¥ó¥À¥°¥ë¡¼¥×¤ò»È¤¤¿Ô¤¯¤¹¤Î¤òËɤ°¤Ë¤Ï¤¦¤Þ¤¯¤¤¤­ ¤Þ¤·¤¿¤¬,¤ªµ¤¤Å¤­¤ÎÊý¤â¤¤¤ëÄ̤ê find ¤Îưºî¤Ë¤ÏÉÔŬÀڤǤ¹. ¤Û¤È ¤ó¤É¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ÎÆâÍÆ¤Ï, ¿¼¤µÍ¥À踡º÷ (ftw ¤È¤â¸Æ¤Ð¤ì¤Þ¤¹) ¤Ë¤è¤Ã¤Æºî¤é¤ì¤¿¥¢¡¼¥«¥¤¥Ö¤«¤é¥ì¥¹¥È¥¢¤·¤ÆºîÀ®¤µ¤ì¤Þ¤¹. ¤³¤ÎºÝ, ¥Ç¥£¥ì¥¯¥È¥ê¤Ï,¥·¥ê¥ó¥À¥°¥ë¡¼¥×¤Ë¤Þ¤¿¤¬¤Ã¤ÆÇÛÃÖ¤µ¤ì, °Ê¹ß¤Î¿¼¤µ Í¥À踡º÷¤ò¹Ô¤¦¤Ë¤Ï¹Í¤¨ÆÀ¤ë¸Â¤êºÇ°­¤Î¾õÂ֤ˤʤê¤Þ¤¹. ¤â¤·ºîÀ®¤¹¤ë ¥Ç¥£¥ì¥¯¥È¥ê¤ÎÁí¿ô¤¬¤ï¤«¤Ã¤Æ¤¤¤ì¤Ð, ²ò·èÊýË¡¤Ï¤¢¤ê¤Þ¤¹. (Áí¿ô / ¥·¥ê¥ó¥À¥°¥ë¡¼¥×¿ô)¸Ä¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ò¥·¥ê¥ó¥À¥°¥ë¡¼¥×¤´¤È¤Ë¤Þ¤È ¤á¤ÆºîÀ®¤¹¤ì¤ÐÎɤ¤¤Î¤Ç¤¹. ¤â¤Á¤í¤óºÇŬ¤Ê¥Ç¥£¥ì¥¯¥È¥êÇÛÃ֤ˤʤë¤è ¤¦¤Ë, Áí¿ô¤òͽ¬¤¹¤ëÊýË¡¤ò¹Í¤¨¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó. ¤·¤«¤·²¾¤Ë¥·¥ê ¥ó¥À¥°¥ë¡¼¥×¤¢¤¿¤ê¤Î¥Ç¥£¥ì¥¯¥È¥ê¿ô¤ò 10 ¤¯¤é¤¤¤Î¾®¤µ¤Ê¿ô¤Ë¸ÇÄꤷ ¤Æ¤·¤Þ¤Ã¤¿¤È¤·¤Æ¤â, ÂçÉý¤Ê²þÁ±¤¬Ë¾¤á¤ë¤Ç¤·¤ç¤¦. ¤³¤Î¥Ý¥ê¥·¡¼¤òÍÑ ¤¤¤ë¤Ù¤­¥ê¥¹¥È¥¢ºî¶È¤ò, Ä̾ï¤Îºî¶È(¤ª¤½¤é¤¯´û¸¤Î¥Ý¥ê¥·¡¼¤ò»ÈÍÑ ¤·¤¿¤Û¤¦¤¬Îɤ¤¤Ç¤·¤ç¤¦)¤ò¶èÊ̤¹¤ë¤Ë¤Ï, 10 Éô֤δ֤˺îÀ®¤µ¤ì¤¿¥Ç¥£ ¥ì¥¯¥È¥ê¤òºÇÂç 10 ¸Ä¤Þ¤Ç¤Þ¤È¤á¤ÆÃ±°ì¤Î¥·¥ê¥ó¥À¥°¥ë¡¼¥×¤Ë½ñ¤­¹þ¤à ¤È¤¤¤¦¼ê½ç¤¬»È¤¨¤ë¤Ç¤·¤ç¤¦. ¤È¤Ë¤«¤¯»ä¤Î·ëÏÀ¤Ï, ¤½¤í¤½¤í¼Â¸³ ¤ò»Ï¤á¤Æ¸«¤ë»þ´ü¤À¤í¤¦¤È¤¤¤¦¤³¤È¤Ç¤¹. ¥«¡¼¥Í¥ë¥Ñ¥Ë¥Ã¥¯¤òºÇÂç¸Â¤ËÍøÍѤ¹¤ë [¤³¤ÎÀá¤Ï, freebsd-current ¤Ë Bill Paul ¤¬Åê¹Æ¤·¤¿¥á¡¼¥ë¤ò, Dag-Erling Coïdan Smørgrav ¤¬¹»Àµ¤·,³ç¸ÌÆâ¤Î¥³ ¥á¥ó¥È¤òÄɲ䷤ưúÍѤ·¤¿¤â¤Î¤Ç¤¹. ] From: Bill Paul <wpaul@skynet.ctr.columbia.edu> Subject: Re: the fs fun never stops To: ben@rosengart.com Date: Sun, 20 Sep 1998 15:22:50 -0400 (EDT) Cc: current@FreeBSD.ORG [<ben@rosengart.com> ¤¬°Ê²¼¤Î¥Ñ¥Ë¥Ã¥¯¥á¥Ã¥»¡¼¥¸¤ò Åê¹Æ¤·¤Þ¤·¤¿.] > Fatal trap 12: page fault while in kernel mode > fault virtual address = 0x40 > fault code = supervisor read, page not present > instruction pointer = 0x8:0xf014a7e5 ^^^^^^^^^^ > stack pointer = 0x10:0xf4ed6f24 > frame pointer = 0x10:0xf4ed6f28 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, def32 1, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 80 (mount) > interrupt mask = > trap number = 12 > panic: page fault ¤³¤Î¤è¤¦¤Ê¥á¥Ã¥»¡¼¥¸¤¬É½¼¨¤µ¤ì¤¿¾ì¹ç, ÌäÂ꤬µ¯¤­¤ë¾õ¶·¤ò³Îǧ¤· ¤Æ, ¾ðÊó¤òÁ÷¤ë¤À¤±¤Ç¤Ï½½Ê¬¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó. ²¼Àþ¤ò¤Ä¤±¤¿Ì¿Îá¥Ý¥¤¥ó¥¿ ÃͤϽÅÍפÊÃͤǤ¹¤¬, »Äǰ¤Ê¤¬¤é¤³¤ÎÃͤϹ½À®¤Ë°Í¸¤·¤Þ¤¹. ¤Ä¤Þ¤ê, ¤³ ¤ÎÃͤϻȤäƤ¤¤ë¥«¡¼¥Í¥ë¤Î¥¤¥á¡¼¥¸¤Ë°Í¸¤¹¤ë¤Î¤Ç¤¹. ¤â¤·¥¹¥Ê¥Ã¥×¥·¥ç¥Ã ¥È¤Ê¤É¤Î GENERIC ¥«¡¼¥Í¥ë¤ò»È¤Ã¤Æ¤¤¤ë¤Î¤Ç¤¢¤ì¤Ð, ¾¤Î¿Í´Ö¤¬ÌäÂê¤Î ¤¢¤ë´Ø¿ô¤Ë¤Ä¤¤¤ÆÄÉ»î¤ò¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¤¬, ¥«¥¹¥¿¥Þ¥¤¥º¤µ¤ì¤¿¥«¡¼ ¥Í¥ë¤Î¾ì¹ç¤Ï, »È¤Ã¤Æ¤¤¤ëËܿͤˤ·¤«ÌäÂê¤Îµ¯¤³¤Ã¤¿¾ì½ê¤ÏÆÃÄê¤Ç¤­¤Ê¤¤ ¤Î¤Ç¤¹. ²¿¤ò¤¹¤ì¤ÐÎɤ¤¤Î¤Ç¤·¤ç¤¦¡© Ì¿Îá¥Ý¥¤¥ó¥¿Ãͤò¥á¥â¤·¤Þ¤¹. 0x8: ¤È¤¤¤¦Éôʬ¤Ïº£²óɬ Íפ¢¤ê¤Þ¤»¤ó. ɬÍ×¤Ê¤Î¤Ï 0xf0xxxxxx ¤È¤¤¤¦Éôʬ¤Ç¤¹. ¥·¥¹¥Æ¥à¤¬¥ê¥Ö¡¼¥È¤·¤¿¤é, °Ê²¼¤ÎÁàºî¤ò¹Ô¤¤¤Þ¤¹: % nm /kernel.that.caused.the.panic | grep f0xxxxxx ¤³¤³¤Ç, f0xxxxxx ¤ÏÌ¿Îá¥Ý¥¤¥ó¥¿ÃͤǤ¹. ¥«¡¼¥Í¥ë¥·¥ó¥Ü¥ë¤Î ¥Æ¡¼¥Ö¥ë¤Ï´Ø¿ô¤Î¥¨¥ó¥È¥ê¥Ý¥¤¥ó¥È¤ò´Þ¤ß, Ì¿Îá¥Ý¥¤¥ó¥¿ÃͤÏ, ´Ø¿ôÆâÉô¤Î¤¢¤ëÅÀ¤Ç¤¢¤ê, ºÇ½é¤ÎÅÀ¤Ç¤Ï¤Ê¤¤¤¿¤á, ¤³¤ÎÁàºî¤ò¹Ô¤Ã¤Æ¤â ´°Á´¤Ë°ìÃפ¹¤ë¤â¤Î¤¬É½¼¨¤µ¤ì¤Ê¤¤¾ì¹ç¤â¤¢¤ê¤Þ¤¹. ¤³¤Î¾ì¹ç¤Ï, ºÇ¸å¤Î·å¤ò¾Ê¤¤¤Æ¤â¤¦¤¤¤Á¤É¤ä¤Ã¤Æ¤ß¤Æ¤¯¤À¤µ¤¤. ¤³¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ ¤¹: % nm /kernel.that.caused.the.panic | grep f0xxxxx ¤³¤ì¤Ç¤â°ìÃפ·¤Ê¤¤¾ì¹ç¤Ï, ·å¤ò¸º¤é¤·¤Ê¤¬¤é²¿¤é¤«¤Î½ÐÎϤ¬¤¢¤ë¤Þ ¤Ç·«¤êÊÖ¤·¤Æ¤¯¤À¤µ¤¤. ²¿¤«½ÐÎϤµ¤ì¤¿¤é, ¤½¤ì¤¬¥«¡¼¥Í¥ë¥Ñ¥Ë¥Ã¥¯ ¤ò°ú¤­µ¯¤³¤·¤¿²ÄǽÀ­¤Î¤¢¤ë´Ø¿ô¤Î¥ê¥¹¥È¤Ç¤¹. ¤³¤ì¤Ï, ÌäÂêÅÀ¤ò¸«ÉÕ¤±¤ë Àµ³Î¤ÊÊýË¡¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¤¬, ²¿¤â¤Ê¤¤¤è¤ê¤Þ¤·¤Ç¤¹. ¤³¤Î¤è¤¦¤Ê¥Ñ¥Ë¥Ã¥¯¥á¥Ã¥»¡¼¥¸¤òÅê¹Æ¤·¤Æ¤¤¤ë¿Í¤Ï¤è¤¯¸«³Ý¤±¤Þ¤¹¤¬, ¤³¤Î¤è¤¦¤Ë, Ì¿Îá¥Ý¥¤¥ó¥¿Ãͤò, ¥«¡¼¥Í¥ë¥·¥ó¥Ü¥ë¥Æ¡¼¥Ö¥ë¤ÎÃæ¤Î´Ø¿ô ¤È¤Ä¤­¹ç¤ï¤»¤ÆÄ´¤Ù¤Æ¤¤¤ë¿Í¤Ï¤Þ¤ì¤Ç¤¹. ¥Ñ¥Ë¥Ã¥¯¤Î¸¶°ø¤òÆÍ¤­»ß¤á¤ëºÇÎɤÎÊýË¡¤Ï, ¥¯¥é¥Ã¥·¥å¥À¥ó¥×¤ò¤È¤ê, gdb(1) ¤Ç¥¹¥¿¥Ã¥¯¥È¥ì¡¼¥¹¤ò¹Ô¤¦¤³¤È¤Ç¤¹. ¤â¤Á¤í¤ó -current ¤Ç gdb(1) ¤¬¤Á¤ã¤ó¤Èư¤¤¤Æ¤¤¤ì¤Ð¤Ç¤¹¤¬ (»ä¤Ïư¤¯¤³¤È¤òÊÝ¾Ú ¤Ç¤­¤Þ¤»¤ó. ELF ²½¤µ¤ì¤¿ gdb(1) ¤Ï¥«¡¼¥Í¥ë¥¯¥é¥Ã¥·¥å¥À¥ó¥×¤ò Àµ¤·¤¯°·¤¨¤Ê¤¤¤È¸À¤Ã¤Æ¤¤¤ë¿Í¤¬¤¤¤Þ¤·¤¿. 3.0 ¤¬¦Â¥Æ¥¹¥È¤ò½ª¤¨¤ëÁ°, ¤ËÄ´¤Ù¤Ê¤±¤ì¤Ð¤¤¤±¤Þ¤»¤ó. ¤µ¤â¤Ê¤¤¤È CD ½Ð²Ù¸å¤ËÂçðþí¦¤òÇ㤦¤³¤È¤Ë ¤Ê¤ê¤Þ¤¹). ¤É¤Ã¤Á¤Ë¤·¤í, »ä¤ÏÉáÄ̰ʲ¼¤Î¤è¤¦¤Ë¤·¤Þ¤¹. ¥«¡¼¥Í¥ë¥³¥ó¥Õ¥£¥°¥Õ¥¡¥¤¥ë¤òºî¤ê¤Þ¤¹. ¥«¡¼¥Í¥ë¥Ç¥Ð¥Ã¥¬¤¬ ɬÍפ½¤¦¤Ç¤¢¤ì¤Ð options 'DDB' ¤ò²Ã¤¨¤Æ¤âÎɤ¤¤Ç¤¹(»ä¤Ï±Êµ×¥ë¡¼ ¥×¤¬µ¯¤³¤Ã¤Æ¤¤¤½¤¦¤Ê¾ì¹ç¤Ë, ¥Ö¥ì¡¼¥¯¥Ý¥¤¥ó¥È¤òÀßÄꤹ¤ë¤Î¤Ë»È¤Ã¤Æ ¤¤¤Þ¤¹). config -g KERNELCONFIG ¤È¤·¤Æ¥Ó¥ë¥É¥Ç¥£¥ì¥¯¥È¥ê¤òÀß Äꤷ¤Þ¤¹. cd /sys/compile/KERNELCONFIG; make ¥«¡¼¥Í¥ë¤Î¥³¥ó¥Ñ¥¤¥ë¤¬½ªÎ»¤¹¤ë¤Î¤òÂÔ¤Á¤Þ¤¹. cp kernel kernel.debug strip -d kernel mv kernel /kernel.orig/ cp kernel / reboot [Ãí: ¸½ºß FreeBSD 3.x kernel ¤Ï¥Ç¥Õ¥©¥ë¥È¤Ç ELF ·Á¼°¤È¤Ê¤Ã¤Æ¤ª¤ê, strip -d ¤ÎÂå¤ê¤Ë strip -g ¤ò»È¤¦É¬Íפ¬¤¢¤ê¤Þ¤¹. ²¿¤é¤«¤ÎÍýͳ¤Ç¤Þ¤À a.out ·Á¼°¤Î kernel ¤ò»È¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï, strip -aout -d ¤ò»È¤Ã¤Æ¤¯¤À¤µ¤¤. ] Á´¤Æ¤Î¥Ç¥Ð¥Ã¥°¥·¥ó¥Ü¥ë¤ò´Þ¤ó¤À¥«¡¼¥Í¥ë¤ò, ¼ÂºÝ¤Ë¥Ö¡¼¥È¤¹¤ëɬÍ×¤Ï ¤¢¤ê¤Þ¤»¤ó. ¤ò¤Ä¤±¤Æ¥³¥ó¥Ñ¥¤¥ë¤µ¤ì¤¿¥«¡¼¥Í¥ë¤Ï, ´Êñ¤Ë 10MB ¶á¤¯¤ÎÂ礭¤µ¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤¤¤Þ¤¹. ¤³¤ó¤ÊÂ礭¤Ê¥«¡¼¥Í¥ë ¤ò¼ÂºÝ¤Ë¥Ö¡¼¥È¤¹¤ëɬÍפϤ¢¤ê¤Þ¤»¤ó. ¤³¤ÎÂ礭¤Ê¥«¡¼¥Í¥ë¥¤¥á¡¼¥¸¤Ï ¸å¤Çgdb(1)¤ò»È¤¦¤È¤­¤Ë¤Î¤ßɬÍפǤ¹(gdb(1) ¤¬¥·¥ó¥Ü¥ë ¥Æ¡¼¥Ö¥ë¤òɬÍפȤ¹¤ë¤¿¤á). ¥·¥ó¥Ü¥ë¤ò´Þ¤ó¤À¥«¡¼¥Í¥ë¤Î¥³¥Ô¡¼¤òÊÝ Â¸ ¤·¤Æ¤ª¤­, strip -d ¤ò»È¤Ã¤Æ¥·¥ó¥Ü¥ë¤ò½ü¤¤¤¿¥«¡¼¥Í¥ë¤òºî À®¤·¤Æ ¥Ö¡¼¥È¤·¤Þ¤¹. ³Î¼Â¤Ë¥¯¥é¥Ã¥·¥å¥À¥ó¥×¤ò¤È¤ë¤Ë¤Ï, /etc/rc.conf ¤òÊÔ ½¸¤·¤Æ dumpdev ¤ò»ÈÍѤ·¤Æ¤¤¤ë¥¹¥ï¥Ã¥×¥Ñ¡¼¥Æ¥£¥·¥ç¥ó¤Ë»ØÄꤹ ¤ëɬ Íפ¬¤¢¤ê¤Þ¤¹. ¤³¤¦¤¹¤ë¤È rc(8) ¥¹¥¯¥ê¥×¥È¤«¤é dumpon(8) ¥³¥Þ¥ó¥É¤¬¼Â¹Ô¤µ¤ì¥¯¥é¥Ã¥·¥å¥À¥ó¥×µ¡Ç½¤¬Í­¸ú¤Ë¤Ê ¤ê¤Þ¤¹. ¼êư¤Ç dumpon(8) ¥³¥Þ¥ó¥É¤ò¼Â¹Ô¤·¤Æ¤â¤«¤Þ¤¤¤Þ¤» ¤ó. ¥Ñ¥Ë¥Ã¥¯¤Î¸å, ¥¯¥é¥Ã¥·¥å¥À¥ó¥×¤Ï savecore(8) ¥³¥Þ¥ó¥É¤ò »ÈÍѤ·¤Æ¼è¤ê½Ð¤¹¤³¤È ¤¬¤Ç¤­¤Þ¤¹. dumpdev ¤¬ /etc/rc.conf ¤ÇÀßÄꤵ¤ì¤Æ¤¤¤ì ¤Ð, rc(8) ¥¹¥¯¥ê¥×¥È ¤«¤é savecore(8) ¤¬¼«Æ°Åª¤Ë¼Â¹Ô¤µ¤ì, ¥¯¥é¥Ã¥·¥å¥À¥ó¥×¤ò /var/crash ¤ËÊݸ¤·¤Þ¤¹. Ãí: FreeBSD ¤Î¥¯¥é¥Ã¥·¥å¥À¥ó¥×¤Î¥µ¥¤¥º¤Ï, ¤Õ¤Ä¤¦ÊªÍý¥á¥â¥ê¥µ ¥¤¥º¤ÈƱ¤¸¤Ç¤¹. ¤Ä¤Þ¤ê 64MB ¤Î¥á¥â¥ê¤òÀѤó¤Ç¤¤¤ì¤Ð, 64MB ¤Î¥¯¥é¥Ã ¥·¥å ¥À¥ó¥×¤¬À¸À®¤µ¤ì¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹. /var/crash ¤Ë½½ ʬ¤Ê¶õ¤­ ÍÆÎ̤¬¤¢¤ë¤³¤È¤ò³Îǧ¤·¤Æ¤¯¤À¤µ¤¤. ¼êư¤Ç savecore(8) ¤ò¼Â¹Ô¤¹ ¤ì¤Ð, ¤â¤Ã¤È¶õ¤­ÍÆÎ̤Τ¢¤ë¥Ç¥£¥ì¥¯¥È¥ê ¤Ë¥¯¥é¥Ã¥·¥å¥À¥ó¥×¤òÊݸ¤Ç¤­ ¤Þ¤¹. options MAXMEM=(foo) ¤È ¤¤¤¦¹Ô¤ò¥«¡¼¥Í¥ë¥³¥ó¥Õ¥£¥°¥Õ¥¡¥¤ ¥ë¤ËÄɲ乤뤳¤È¤Ç, ¥«¡¼¥Í¥ë¤Î ¥á¥â¥ê»ÈÍÑÎ̤òÀ©¸Â¤Ç¤­¤Þ¤¹. ¤¿¤È¤¨¤Ð 128MB ¤Î¥á¥â¥ê¤¬¤¢¤ë¾ì¹ç¤â, ¥«¡¼¥Í¥ë¤Î¥á¥â¥ê»ÈÍÑÎ̤ò 16MB ¤ËÀ©¸Â¤· ¥¯¥é¥Ã¥·¥å¥À¥ó¥×¤Î¥µ¥¤¥º ¤â 128MB ¤Ç¤Ï¤Ê¤¯ 16MB ¤Ë¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. ¥¯¥é¥Ã¥·¥å¥À¥ó¥×¤ò¼è¤ê½Ð¤»¤¿¤é, °Ê²¼¤Î¤è¤¦¤Ë gdb(1) ¤ò»È¤Ã ¤Æ¥¹¥¿¥Ã¥¯¥È¥ì¡¼¥¹¤ò¤È¤ê¤Þ¤¹: % gdb -k /sys/compile/KERNELCONFIG/kernel.debug /var/crash/vmcore.0 (gdb) where ɬÍפʾðÊó¤¬ 1 ²èÌ̤˼ý¤Þ¤é¤Ê¤¤¤³¤È¤â¿¤¤¤Î¤Ç, ¤Ç¤­¤ì¤Ð script(1) ¤ò»È¤Ã¤Æ½ÐÎϤòµ­Ï¿¤·¤Þ¤¹. strip ¤·¤Æ¤¤¤Ê¤¤¥«¡¼¥Í ¥ë ¥¤¥á¡¼¥¸¤ò»È¤¦¤³¤È¤Ç, Á´¤Æ¤Î¥Ç¥Ð¥Ã¥°¥·¥ó¥Ü¥ë¤¬»²¾È¤Ç¤­, ¥Ñ¥Ë¥Ã ¥¯ ¤ÎȯÀ¸¤·¤¿¥«¡¼¥Í¥ë¤Î¥½¡¼¥¹¥³¡¼¥É¤Î¹Ô¤¬É½¼¨¤µ¤ì¤Æ¤¤¤ë¤Ï¤º¤Ç¤¹. Ä̾ï, Àµ³Î¤Ê¥¯¥é¥Ã¥·¥å¤Ø¤Î²áÄø¤òÄÉÀפ¹¤ë¤Ë¤Ï, ½ÐÎϤòºÇ¸å¤Î¹Ô¤«¤é µÕÊý¸þ¤ËÆÉ¤Þ¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó. ¤Þ¤¿ gdb(1) ¤ò»È¤Ã¤Æ, ÊÑ¿ô ¤ä ¹½Â¤ÂÎ¤ÎÆâÍÆ¤òɽ¼¨¤µ¤», ¥¯¥é¥Ã¥·¥å¤·¤¿»þ¤Î¥·¥¹¥Æ¥à¤Î¾õÂÖ¤òÄ´ ¤Ù¤é¤ì ¤Þ¤¹. ¤â¤·¤¢¤Ê¤¿¤¬¥Ç¥Ð¥Ã¥°¶¸¤Ç, Ʊ»þ¤ËÊ̤Υ³¥ó¥Ô¥å¡¼¥¿¤òÍøÍѤǤ­¤ë ´Ä¶­¤Ë¤¢¤ì¤Ð, gdb(1) ¤ò¥ê¥â¡¼¥È¥Ç¥Ð¥Ã¥°¤Ë»È¤¦¤³¤È¤â¤Ç¤­¤Þ¤¹. ¥ê¥â¡¼¥È¥Ç¥Ð¥Ã¥°¤ò»È¤¦¤È, ¤¢¤ë¥³¥ó¥Ô¥å¡¼¥¿¾å¤Î gdb(1) ¤ò»È¤Ã ¤Æ, Ê̤Υ³¥ó¥Ô¥å¡¼¥¿¤Î¥«¡¼¥Í¥ë¤ò¥Ç¥Ð¥Ã¥°¤Ç¤­¤Þ¤¹. ¥Ö¥ì¡¼¥¯¥Ý¥¤¥ó ¥È¤ÎÀß Äê, ¥«¡¼¥Í¥ë¥³¡¼¥É¤Î¥¹¥Æ¥Ã¥×¼Â¹Ô¤Ê¤É, ¤Õ¤Ä¤¦¤Î¥×¥í¥°¥é¥à ¤Î¥Ç¥Ð¥Ã¥° ¤ÈÊѤï¤ê¤Þ¤»¤ó. ¥³¥ó¥Ô¥å¡¼¥¿¤ò 2 ÂæÊ¤٤ƥǥХå°¤¹¤ë ¥Á¥ã¥ó¥¹¤Ë¤Ï, ¤Ê¤«¤Ê¤«·Ã¤Þ¤ì¤Ê¤¤¤Î¤Ç, »ä¤Ï¤Þ¤À¥ê¥â¡¼¥È¥Ç¥Ð¥Ã¥°¤ò »î¤·¤¿¤³¤È¤Ï¤¢¤ê ¤Þ¤»¤ó. [Bill ¤Ë¤è¤ëÃí: DDB ¤òÍ­¸ú¤Ë¤·¤Æ¤¤¤Æ¥«¡¼¥Í¥ë¤¬¥Ç¥Ð¥Ã¥¬¤Ë Íî¤Á¤¿¤é, ddb ¤Î¥×¥í¥ó¥×¥È¤Ç 'panic' ¤ÈÆþÎϤ¹¤ì¤Ð, ¶¯À©Åª¤Ë¥Ñ¥Ë¥Ã ¥¯¤ò µ¯¤³¤·¥¯¥é¥Ã¥·¥å¥À¥ó¥×¤µ¤»¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹. ¥Ñ¥Ë¥Ã¥¯¤ÎÅÓÃæ ¤Ç, ºÆ¤Ó ¥Ç¥Ð¥Ã¥¬¤ËÍî¤Á¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¤¬, 'continue' ¤ÈÆþÎϤ¹¤ì ¤Ð, ¥¯¥é¥Ã¥·¥å¥À¥ó¥×¤òºÇ¸å¤Þ¤Ç¼Â¹Ô¤µ¤»¤é¤ì¤Þ¤¹.] dlsym() ¤¬ ELF ¼Â¹Ô·Á¼°¤Ç¤Ïưºî¤·¤Ê¤¯¤Ê¤ê¤Þ¤¹! ELF ¤Î¥Ä¡¼¥ëÎà¤Ï, ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¼Â¹Ô·Á¼°¤ÎÃæ¤ËÄêµÁ¤µ¤ì¤Æ¤¤¤ë ¥·¥ó¥Ü¥ë¤ò¥À¥¤¥Ê¥ß¥Ã¥¯¥ê¥ó¥«¤«¤é¸«¤¨¤ë¤è¤¦¤Ë¤Ï¤·¤Þ¤»¤ó. ¤³¤Î¤¿¤á, dlopen(NULL, flags) ¤ò¸Æ¤Ó½Ð¤·¤ÆÆÀ¤é¤ì¤¿ ¥Ï¥ó¥É¥ë¤ËÂФ·¤Æ dlsym() ¤Çõº÷¤ò¹Ô¤Ã¤Æ¤â, ¤³¤¦¤¤¤Ã¤¿ ¥·¥ó¥Ü¥ë¤ò¸«¤Ä¤±¤é¤ì¤Þ¤»¤ó. ¤â¤·, ¤¢¤Ê¤¿¤¬¥×¥í¥»¥¹¤ÎÃæ¿´¤Ë¤¢¤¿¤ë¼Â¹Ô·Á¼°¤ÎÃæ¤Ë¤¢¤ë ¥·¥ó¥Ü¥ë¤òõº÷¤·¤¿¤±¤ì¤Ð, ELF ¥ê¥ó¥« ¤Ë ¥ª¥×¥·¥ç¥ó¤ò ÉÕ¤±¤Æ¼Â¹Ô·Á¼°¤ò¥ê¥ó¥¯¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹. ¥«¡¼¥Í¥ë¥¢¥É¥ì¥¹¶õ´Ö¤òÂ礭¤¯¤·¤¿¤ê¡¢¾®¤µ¤¯¤¹¤ë¤Ë¤Ï¤É¤¦¤·¤¿¤éÎɤ¤¤Î¤Ç¤¹¤«? ¥«¡¼¥Í¥ë¥¢¥É¥ì¥¹¶õ´Ö¤Ï, FreeBSD 3.x ¾å¤Ç 256MB, FreeBSD 4.x ¾å¤Ç 1GB ¤¬¥Ç¥Õ¥©¥ë¥È¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹. Éé²Ù¤Î¹â¤¤¥Í¥Ã¥È¥ï¡¼¥¯¥µ¡¼¥Ð(Î㤨¤ÐÂ礭¤Ê FTP, HTTP ¥µ¡¼¥Ð)¤ò±¿ÍѤ¹¤ë¾ì¹ç¤Ï, 256MB ¤Ç¤Ï­¤ê¤Ê¤¤¤³¤È¤Ëµ¤ÉÕ¤¯¤«¤âÃΤì¤Þ¤»¤ó. ¤Ç¤Ï, ¥¢¥É¥ì¥¹¶õ´Ö¤òÂ礭¤¯¤¹¤ë¤Ë¤Ï¤É¤¦¤·¤¿¤éÎɤ¤¤Î¤Ç¤·¤ç¤¦¤«? ¤½¤ì¤Ë¤Ï, Æó¤Ä¤ÎÃʳ¬¤òƧ¤ß¤Þ¤¹. ¤Þ¤º, ¤è¤êÂ礭¤¤¥¢¥É¥ì¥¹¶õ´Ö¤ò³ä¤êÅö¤Æ¤ë¤³¤È¤ò¥«¡¼¥Í¥ë¤ËÃΤ餻¤ëɬÍפ¬¤¢¤ê¤Þ¤¹. ¼¡¤Ë, ¥«¡¼¥Í¥ë¤Ï¥¢¥É¥ì¥¹¶õ´Ö¤ÎÀèÆ¬¤Ë¥í¡¼¥É¤µ¤ì¤ë¤¿¤á, ¥¢¥É¥ì¥¹¤ÎÀèÆ¬¤¬Å·°æ(ÌõÃí:¥«¡¼¥Í¥ë¥¢¥É¥ì¥¹¶õ´Ö¤ÎºÇ²¼Ã¼¥¢¥É¥ì¥¹¤Î¤³¤È)¤È ¤Ö¤Ä¤«¤ë¤³¤È¤Î¤Ê¤¤¤è¤¦¤Ë, ¥í¡¼¥É¥¢¥É¥ì¥¹¤òº£¤Þ¤Ç¤è¤êÄã°Ì¤ËÀßÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹. ºÇ½é¤ÎÃʳ¬¤Ï, src/sys/i386/include/pmap.h ¤Ë¤¢¤ë NKPDE ¤ÎÃͤòÁý²Ã¤µ¤»¤ë¤³¤È¤Ç¹Ô¤Ê¤¤¤Þ¤¹. ¤³¤³¤Ë 1GB ¤Î¥¢¥É¥ì¥¹¶õ´Ö¤Ë¤¹¤ë¤¿¤á¤Ë, ¤É¤Î¤è¤¦¤Ë¤¹¤ì¤ÐÎɤ¤¤«¤ò¼¨¤·¤Þ¤¹. #ifndef NKPDE #ifdef SMP #define NKPDE 254 /* addressable number of page tables/pde's */ #else #define NKPDE 255 /* addressable number of page tables/pde's */ #endif /* SMP */ #endif Àµ³Î¤Ê NKPDE ¤ÎÃͤò·×»»¤¹¤ë¤Ë¤Ï, ˾¤ß¤Î¥¢¥É¥ì¥¹¶õ´Ö¤ÎÂ礭¤µ(¥á¥¬¥Ð¥¤¥Èñ°Ì)¤ò 4 ¤Ç³ä¤Ã¤Æ, ¤½¤ì¤«¤é UP ¤Î¤¿¤á¤Ë 1, SMP ¤Î¤¿¤á¤Ë 2 ¤ò°ú¤­»»¤·¤Æ²¼¤µ¤¤. ¼¡¤ÎÃʳ¬¤ò¹Ô¤Ê¤¦¤Ë¤Ï, ¥í¡¼¥É¥¢¥É¥ì¥¹¤òÀµ³Î¤Ë·×»»¤¹¤ë¤³¤È¤¬É¬ÍפǤ¹. ñ½ã¤Ë, ¥¢¥É¥ì¥¹¶õ´Ö¤ÎÂ礭¤µ(¥Ð¥¤¥Èñ°Ì)¤ò 0x100100000 ¤«¤é°ú¤­»»¤·¤Æ²¼¤µ¤¤. 1GB ¥¢¥É¥ì¥¹¶õ´Ö¤Î¾ì¹ç, ¤½¤Î·ë²Ì¤Ï 0xc0100000 ¤Ë¤Ê¤ê¤Þ¤¹. ¤½¤·¤Æ, src/sys/i386/conf/Makefile.i386 ¤Ë¤¢¤ë LOAD_ADDRESS ¤Ë, º£·×»»¤·¤¿ÃͤòÆþ¤ì¤Þ¤¹. ¤Þ¤¿, ¼¡¤Î¤è¤¦¤Ë src/sys/i386/conf/kernel.script ¤Î¥»¥¯¥·¥ç¥ó¤Î»Ï¤á¤ÎÊý¤Ë¤¢¤ë ¥í¥±¡¼¥·¥ç¥ó¥«¥¦¥ó¥¿¤Ë¤âƱ¤¸ÃͤòÆþ¤ì¤Æ²¼¤µ¤¤. OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386") OUTPUT_ARCH(i386) ENTRY(btext) SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/obj/elf/home/src/tmp/usr/i386-unknown-freebsdelf/lib); SECTIONS { /* Read-only sections, merged into text segment: */ . = 0xc0100000 + SIZEOF_HEADERS; .interp : { *(.interp) } ¤½¤ì¤¬´°Î»¤·¤¿¤é, config ¤·Ä¾¤·¤Æ¥«¡¼¥Í¥ë¤òºÆ¹½ÃÛ¤·¤Æ²¼¤µ¤¤. ¤ª¤½¤é¤¯, ps(1), top(1) ¤Ê¤É¤ËÉÔ¶ñ¹ç¤¬½Ð¤ë¤Ç¤·¤ç¤¦. ¤½¤ì¤é¤òÀµ¾ï¤Ë¤¹¤ë¤¿¤á¤Ë, make world (¤â¤·¤¯¤Ï, Êѹ¹¤·¤¿ pmap.h ¤ò /usr/include/vm/ ¤Ë¥³¥Ô¡¼¤·¤¿¸å¤Ë, libkvm, ps ¤ª¤è¤Ó top ¤ò ¼êư¤ÇºÆ¹½ÃÛ¤¹¤ë¤³¤È)¤ò¹Ô¤Ê¤¦¤Ù¤­¤Ç¤¹. Ãí°Õ: ¥«¡¼¥Í¥ë¥¢¥É¥ì¥¹¶õ´Ö¤ÎÂ礭¤µ¤Ï, 4 ¥á¥¬¥Ð¥¤¥È¤ÎÇÜ¿ô¤Ç¤¢¤ëɬÍפ¬¤¢¤ê¤Þ¤¹. [David Greenman ¤Ë¤è¤ëÊä­: ¥«¡¼¥Í¥ë¥¢¥É¥ì¥¹¶õ´Ö¤Ï 2 ¤Î¾è¿ô¤Ç¤¢¤ëɬÍפ¬¤¢¤ë¤È»×¤¤¤Þ¤¹¤¬, ¤½¤ì¤¬³Î¤«¤Ê¤³¤È¤«¤É¤¦¤«¤Ï¤Ï¤Ã¤­¤ê¤·¤Æ¤¤¤Þ¤»¤ó. ÀΤε¯Æ°¥³¡¼¥É¤Ë¤Ï, Îɤ¯¹â°Ì¥¢¥É¥ì¥¹¥Ó¥Ã¥È¤Î¥È¥ê¥Ã¥¯¤¬»È¤ï¤ì¤Æ¤¤¤¿¤¿¤á, ¾¯¤Ê¤¯¤È¤â 256MB ¤ÎγÅ٤Ǥ¢¤ë¤³¤È¤¬ÁÛÄꤵ¤ì¤Æ¤¤¤¿¤È»×¤¤¤Þ¤¹.] ¼Õ¼­ Ìõ: ¤³¤¬¤è¤¦¤¤¤Á¤í¤¦ <y-koga@ccs.mt.nec.co.jp>.10 November 1997. ¤³¤Î FAQ ¤Ë¤Ä¤¤¤ÆÌäÂê¤ò¸«¤Ä¤±¤¿¤ê, ²¿¤«ÅÐÏ¿¤·¤¿¤¤¾ì¹ç¤Ï, <FAQ@FreeBSD.ORG> ¤Þ¤Ç¥á¡¼¥ë¤òÁ÷¤Ã¤Æ¤¯¤À¤µ¤¤. ¥Õ¥£¡¼¥É¥Ð¥Ã¥¯ ¤·¤Æ¤¯¤ì¤ë¤ß¤Ê¤µ¤ó¤Ë¤Ï´¶¼Õ´¶¼Õ¤Ê¤Î¤Ç¤¹. ¤ß¤Ê¤µ¤ó¤Ë¼êÅÁ¤Ã¤Æ¤â¤é¤ï¤Ê¤¤¤È¤³¤Î FAQ ¤Ï¤è¤¯¤Ê¤ê¤Þ¤»¤ó¤«¤é! FreeBSD Core Team Jordan Hubbard ¤¿¤Þ¤Ëµ¯¤³¤¹ FAQ ¤ÎʤÙÂØ¤¨¤ä¹¹¿·¤Îȯºî Doug White freebsd-questions ¥á¡¼¥ê¥ó¥°¥ê¥¹¥È¤Ç¤ÎµÁ̳¤òͤ¨¤¿¥µ¡¼¥Ó¥¹ Joerg Wunsch Usenet (NetNews) ¤Ç¤ÎµÁ̳¤òͤ¨¤¿¥µ¡¼¥Ó¥¹ Garrett Wollman ¥Í¥Ã¥È¥ï¡¼¥¯Àá¤Î¼¹É®¤Èʸ½ñÀ°·Á Jim Lowe ¥Þ¥ë¥Á¥­¥ã¥¹¥È¤Ë¤Ä¤¤¤Æ Peter da Silva FreeBSD FAQ ¥¿¥¤¥Ô¥ó¥°µ¡³£ÅÛÎì FreeBSD ¥Á¡¼¥à ÉÔÊ¿¤ò¸À¤Ã¤¿¤ê, ¤¦¤á¤¤¤¿¤ê, ¾ðÊóÄ󶡤·¤Æ¤¯¤ì¤¿¤ê ¤¢¤È, È´¤±¤Æ¤·¤Þ¤Ã¤¿Â¾¤ÎÊý¡¹¤ËÂФ·¤Æ, ¼Õºá¤È¿´¤«¤é¤Î´¶¼Õ¤òÊû¤²¤Þ¤¹! FreeBSD FAQ ÆüËܸ첽¤Ë¤Ä¤¤¤Æ FreeBSD ÆüËܸì¥É¥­¥å¥á¥ó¥Æ¡¼¥·¥ç¥ó¥×¥í¥¸¥§¥¯¥È¤Ï, FreeBSD ´Ø·¸¤ÎÆüËÜ¸ì ¥É¥­¥å¥á¥ó¥È¤¬¾¯¤Ê¤¤¤³¤È¤òò¤¤¤¿¿ô¿Í¤Î FreeBSD ¥æ¡¼¥¶¤ÎÄ󾧤ˤè¤Ã¤Æ 1996ǯ2·î26Æü¤Ë¥¹¥¿¡¼¥È¤·, FreeBSD ÆüËܸì¥Ï¥ó¥É¥Ö¥Ã¥¯¤ÎºîÀ®¤ò¤Ï¤¸¤á¤È¤·¤¿ ³èư¤ò¤ª¤³¤Ê¤Ã¤Æ¤­¤Þ¤·¤¿. FreeBSD FAQ ¤ÎÆüËܸ첽¤Ë¤Ä¤¤¤Æ¤Ï, ¥ª¥ê¥¸¥Ê¥ë¤ÎËÝÌõºî¶È¤À¤±¤Ç¤Ê¤¯ ÆüËܹñÆâ¤Ë¸ÇÍ­¤ÎÏÃÂê¤Ë¤Ä¤¤¤Æ¤â¹­¤¯¾ðÊó¤ò½¸¤á, ÆüËܤΠFreeBSD ¥æ¡¼¥¶¤Ë¤È¤Ã¤Æ ¿¿¤ËÍ­±×¤Ê¥É¥­¥å¥á¥ó¥È¤òÄ󶡤·¤è¤¦¤È¹Í¤¨¤Æ¤¤¤Þ¤¹. ¥ª¥ê¥¸¥Ê¥ë¤Î FAQ ¤ÏÆüËè¤Ë¹¹¿·¤µ¤ì¤Æ¤ª¤ê, »ä¤¿¤Á¤â¤Þ¤¿ ¤³¤ì¤ËÄɤ¤ÉÕ¤¯¤¿¤á¤Ëºî¶È¤ò³¤±¤Æ¤¤¤­¤Þ¤¹. ¤â¤Á¤í¤ó, ¿·¤·¤¤¥á¥ó¥Ð¤âÂç´¿·Þ¤Ç¤¹. ÆüËܸìËÝÌõÈǤˤĤ¤¤Æ, ²¿¤«¤ªµ¤¤Å¤­¤ÎÅÀ¤¬¤¢¤ê¤Þ¤·¤¿¤é, FreeBSD ÆüËܸì¥É¥­¥å¥á¥ó¥Æ¡¼¥·¥ç¥ó¥×¥í¥¸¥§¥¯¥È <doc-jp@jp.FreeBSD.ORG> ¤Þ¤Ç¤´Ï¢Íí¤¯¤À¤µ¤¤. ¤Þ¤¿, ¤â¤·»ä¤¿¤Á¤Îºî¶È¤ò¼êÅÁ¤Ã¤Æ¤¯¤ì¤ë¤Ê¤é, FreeBSD ÆüËܸì¥É¥­¥å¥á¥ó¥Æ¡¼¥·¥ç¥ó¥×¥í¥¸¥§¥¯¥È¤Î¥Ú¡¼¥¸ ¤ò¤´Í÷¤Î¾å, À§È󻲲䷤Ƥ¯¤À¤µ¤¤. ËÝÌõ¼Ô (¸Þ½½²»½ç) ͭ¼ ¸÷À² <arimura@jp.FreeBSD.org> °ìµÜ μ <ryo@azusa.shinshu-u.ac.jp> ´äºê Ëþ <iwasaki@jp.FreeBSD.org> ÆâÀî ´î¾Ï <yoshiaki@kt.rim.or.jp> ¤¯¤ê¤ä¤Þ <kuriyama@opt.phys.waseda.ac.jp> ¤³¤¬¤è¤¦¤¤¤Á¤í¤¦ <y-koga@ccs.mt.nec.co.jp> º£Ìî ¸µÇ· <motoyuki@jp.FreeBSD.ORG> ¿ù¼ µ®»Î <sugimura@jp.FreeBSD.org> Ãæ°æ ¹¬Çî <nakai@mlab.t.u-tokyo.ac.jp> ¤Ë¤·¤« <nishika@cheerful.com> ²Ö°æ ¹ÀÇ· <hanai@jp.FreeBSD.org> ¤Ï¤é¤À ¤­¤í¤¦ <kiroh@jp.FreeBSD.org> ¹­À¥ ¾»°ì <shou@kt.rim.or.jp> Ê¡´Ö ¹¯¹° <yasuf@big.or.jp> ¤à¤é¤¿¤·¤å¤¦¤¤¤Á¤í¤¦ <mrt@mickey.ai.kyutech.ac.jp> »³²¼ ½ß <junkun@esys.tsukuba.ac.jp> ººÆÉ¼Ô (¸Þ½½²»½ç) Àõ¸« ¸­ <asami@FreeBSD.ORG> ´äºê Ëþ <iwasaki@jp.FreeBSD.org> ÆâÀî ´î¾Ï <yoshiaki@kt.rim.or.jp> Âç¶¶ ·ò <ohashi@mickey.ai.kyutech.ac.jp> ¤¯¤ê¤ä¤Þ <kuriyama@opt.phys.waseda.ac.jp> º£Ìî ¸µÇ· <motoyuki@jp.FreeBSD.ORG> º´Çì δ»Ê <saeki@jp.FreeBSD.org> ¿ù¼ µ®»Î <sugimura@jp.FreeBSD.org> ²Ö°æ ¹ÀÇ· <hanai@jp.FreeBSD.org> ÉÍÅÄ Ä¾¼ù <nao@tom-yam.or.jp> ¤Ï¤é¤À ¤­¤í¤¦ <kiroh@jp.FreeBSD.org> ÆüÌî ¹À»Ö <hino@ccm.cl.nec.co.jp> ÛØ»³ Âî <shiyama@intercity.or.jp> ¹­À¥ ¾»°ì <shou@kt.rim.or.jp> ¤à¤é¤¿¤·¤å¤¦¤¤¤Á¤í¤¦ <mrt@mickey.ai.kyutech.ac.jp> ¼ã°æ µ×»Ë <earth@hokuto7.or.jp> ºî¶È´Ä¶­À°È÷ (¸Þ½½²»½ç) °ìµÜ μ <ryo@azusa.shinshu-u.ac.jp> ´äºê Ëþ <iwasaki@jp.FreeBSD.org> ²¼Àî ±ÑÉÒ <simokawa@jp.FreeBSD.org> ÎëÌÚ ½¨¹¬ <hideyuki@jp.FreeBSD.org> diff --git a/ru_RU.KOI8-R/FAQ/FAQ.sgml b/ru_RU.KOI8-R/FAQ/FAQ.sgml index 54b1cfe513..ef105f7e69 100644 --- a/ru_RU.KOI8-R/FAQ/FAQ.sgml +++ b/ru_RU.KOI8-R/FAQ/FAQ.sgml @@ -1,70 +1,70 @@ - + %includes; ]>
Frequently Asked Questions ÐÏ FreeBSD 2.X The FreeBSD Russian Documentation Project - $Date: 1999-09-06 06:53:36 $ + $FreeBSD$ üÔÏÔ ÄÏËÕÍÅÎÔ Ñ×ÌÑÅÔÓÑ ÔÁË ÎÁÚÙ×ÁÅÍÙÍ FAQ (Frequently Asked Questions), ÔÏ ÅÓÔØ ÓÐÉÓËÏÍ þÁÓÔÏ úÁÄÁ×ÁÅÍÙÈ ÷ÏÐÒÏÓÏ× ÐÏ ÓÉÓÔÅÍÅ FreeBSD ×ÅÒÓÉÊ 2.X åÓÌÉ ÎÅ ÏÇÏ×ÏÒÅÎÏ ÏÂÒÁÔÎÏÅ, ÐÒÅÄÐÏÌÁÇÁÅÔÓÑ, ÞÔÏ ×ÓÅ ÚÁÍÅÞÁÎÉÑ ÓÐÒÁ×ÅÄÌÉ×Ù ÄÌÑ ×ÅÒÓÉÊ FreeBSD 2.0.5 É ×ÙÛÅ. ðÕÎËÔÙ Ó ÐÏÍÅÔËÏÊ <XXX> ÎÁÈÏÄÑÔÓÑ × ÓÔÁÄÉÉ ÒÁÚÒÁÂÏÔËÉ. åÓÌÉ ×Ù ÈÏÔÉÔÅ ÐÏÍÏÞØ × ÓÏÓÔÁ×ÌÅÎÉÉ ÜÔÏÇÏ ÄÏËÕÍÅÎÔÁ, ÐÏÛÌÉÔÅ ÐÉÓØÍÏ × ÓÐÉÓÏË ÒÁÓÓÙÌËÉ ÐÒÏÅËÔÁ ÐÏ ÁÄÒÅÓÕ . ðÏÓÌÅÄÎÑÑ ÒÅÄÁËÃÉÑ ÜÔÏÇÏ ÄÏËÕÍÅÎÔÁ ×ÓÅÇÄÁ ÄÏÓÔÕÐÎÁ Ó . åÇÏ ÔÁËÖÅ ÍÏÖÎÏ ÐÏÌÕÞÉÔØ × , , ÉÌÉ ÆÏÒÍÁÔÁÈ ÐÏ HTTP ÉÌÉ × ÁÒÈÉ×ÉÒÏ×ÁÎÎÏÍ ×ÉÄÅ Ó . ÷Ù ÔÁËÖÅ ÍÏÖÅÔÅ ×ÙÐÏÌÎÉÔØ × FAQ. &preface; &install; &hardware; &troubleshoot; &commercial; &applications; &kernelconfig; &admin; &x; &network; &serial; &misc; &hackers; &acknowledgments;
diff --git a/ru_RU.KOI8-R/books/faq/book.sgml b/ru_RU.KOI8-R/books/faq/book.sgml index 148fb6cc7a..2b3de235fd 100644 --- a/ru_RU.KOI8-R/books/faq/book.sgml +++ b/ru_RU.KOI8-R/books/faq/book.sgml @@ -1,9140 +1,9140 @@ Frequently Asked Questions ÐÏ FreeBSD 2.X The FreeBSD Russian Documentation Project -$Date: 1999-08-29 16:51:17 $ +$FreeBSD$ üÔÏÔ ÄÏËÕÍÅÎÔ Ñ×ÌÑÅÔÓÑ ÔÁË ÎÁÚÙ×ÁÅÍÙÍ FAQ (Frequently Asked Questions), ÔÏ ÅÓÔØ ÓÐÉÓËÏÍ þÁÓÔÏ úÁÄÁ×ÁÅÍÙÈ ÷ÏÐÒÏÓÏ× ÐÏ ÓÉÓÔÅÍÅ FreeBSD ×ÅÒÓÉÊ 2.X åÓÌÉ ÎÅ ÏÇÏ×ÏÒÅÎÏ ÏÂÒÁÔÎÏÅ, ÐÒÅÄÐÏÌÁÇÁÅÔÓÑ, ÞÔÏ ×ÓÅ ÚÁÍÅÞÁÎÉÑ ÓÐÒÁ×ÅÄÌÉ×Ù ÄÌÑ ×ÅÒÓÉÊ FreeBSD 2.0.5 É ×ÙÛÅ. ðÕÎËÔÙ Ó ÐÏÍÅÔËÏÊ <XXX> ÎÁÈÏÄÑÔÓÑ × ÓÔÁÄÉÉ ÒÁÚÒÁÂÏÔËÉ. åÓÌÉ ×Ù ÈÏÔÉÔÅ ÐÏÍÏÞØ × ÓÏÓÔÁ×ÌÅÎÉÉ ÜÔÏÇÏ ÄÏËÕÍÅÎÔÁ, ÐÏÛÌÉÔÅ ÐÉÓØÍÏ × ÓÐÉÓÏË ÒÁÓÓÙÌËÉ ÐÒÏÅËÔÁ ÐÏ ÁÄÒÅÓÕ <freebsd-doc@FreeBSD.ORG>. ðÏÓÌÅÄÎÑÑ ÒÅÄÁËÃÉÑ ÜÔÏÇÏ ÄÏËÕÍÅÎÔÁ ×ÓÅÇÄÁ ÄÏÓÔÕÐÎÁ Ó WWW-ÓÅÒ×ÅÒÁ FreeBSD. åÇÏ ÔÁËÖÅ ÍÏÖÎÏ ÐÏÌÕÞÉÔØ × ÔÅËÓÔÏ×ÏÍ, postscript, PDF ÉÌÉ HTML ÆÏÒÍÁÔÁÈ ÐÏ HTTP ÉÌÉ × ÁÒÈÉ×ÉÒÏ×ÁÎÎÏÍ ×ÉÄÅ Ó FTP-ÓÅÒ×ÅÒÁ. ÷Ù ÔÁËÖÅ ÍÏÖÅÔÅ ÏÓÕÝÅÓÔ×ÉÔØ ÐÏÉÓË × FAQ. ðÒÅÄÉÓÌÏ×ÉÅ äÏÂÒÏ ÐÏÖÁÌÏ×ÁÔØ ×Ï FreeBSD 2.X FAQ! ëÁË É ÏÂÙÞÎÙÊ FAQ ËÏÎÆÅÒÅÎÃÉÊ Usenet, ÜÔÏÔ ÄÏËÕÍÅÎÔ ÓÏÄÅÒÖÉÔ ÂÏÌØÛÉÎÓÔ×Ï ÉÚ ÞÁÓÔÏ ÚÁÄÁ×ÁÅÍÙÈ ×ÏÐÒÏÓÏ×, ËÁÓÁÀÝÉÈÓÑ ÏÐÅÒÁÃÉÏÎÎÏÊ ÓÉÓÔÅÍÙ FreeBSD (É, ËÏÎÅÞÎÏ, ÏÔ×ÅÔÙ ÎÁ ÎÉÈ). ðÅÒ×ÏÎÁÞÁÌØÎÏ ÐÒÅÄÎÁÚÎÁÞÅÎÎÙÊ ÄÌÑ ÕÍÅÎØÛÅÎÉÑ ÐÏÔÏËÁ ÓÏÏÂÝÅÎÉÊ É ÉÚÂÅÖÁÎÉÑ ÐÏ×ÔÏÒÅÎÉÑ ÏÄÎÉÈ É ÔÅÈ ÖÅ ×ÏÐÒÏÓÏ×, ÐÏÓÔÅÐÅÎÎÏ FAQ ÐÒÅ×ÒÁÔÉÌÓÑ × ÃÅÎÎÙÊ ÉÓÔÏÞÎÉË ÉÎÆÏÒÍÁÃÉÉ. íÙ ÐÒÉÌÁÇÁÅÍ ×ÓÅ ÕÓÉÌÉÑ, ÞÔÏÂÙ ÓÄÅÌÁÔØ ÜÔÏÔ FAQ ÍÁËÓÉÍÁÌØÎÏ ÉÎÆÏÒÍÁÔÉ×ÎÙÍ; ÅÓÌÉ Õ ×ÁÓ ÅÓÔØ ÉÄÅÉ ÐÏ ÅÇÏ ÕÓÏ×ÅÒÛÅÎÓÔ×Ï×ÁÎÉÀ, ÐÏÖÁÌÕÊÓÔÁ, ÎÁÐÉÛÉÔÅ ÓÏÓÔÁ×ÉÔÅÌÀ. FreeBSD - ÞÔÏ ÜÔÏ ÔÁËÏÅ? ÷ Ä×ÕÈ ÓÌÏ×ÁÈ, FreeBSD 2.X - ÜÔÏ UN*X-ÐÏÄÏÂÎÁÑ ÏÐÅÒÁÃÉÏÎÎÁÑ ÓÉÓÔÅÍÁ, ÏÓÎÏ×ÁÎÎÁÑ ÎÁ ×ÅÒÓÉÉ 4.4BSD ëÁÌÉÆÏÒÎÉÊÓËÏÇÏ õÎÉ×ÅÒÓÉÔÅÔÁ (âÅÒËÌÉ) ÄÌÑ ÐÌÁÔÆÏÒÍÙ i386. ôÁËÖÅ ÏÎÁ ËÏÓ×ÅÎÎÏ ÂÁÚÉÒÕÅÔÓÑ ÎÁ 386BSD (BSD Net/2, ÐÅÒÅÎÅÓ£ÎÎÏÊ ÎÁ ÐÌÁÔÆÏÒÍÕ i386 ÷ÉÌØÑÍÏÍ äÖÏÌÉÔÃÅÍ (William Jolitz)), ÈÏÔÑ ÏÔ ÔÏÇÏ ÐÅÒ×ÏÎÁÞÁÌØÎÏÇÏ ËÏÄÁ ÏÓÔÁÌÏÓØ ÏÞÅÎØ ÍÁÌÏ. âÏÌÅÅ ÐÏÄÒÏÂÎÙÅ ÏÂßÑÓÎÅÎÉÑ ÔÏÇÏ, ÞÔÏ ÐÒÅÄÓÔÁ×ÌÑÅÔ ÉÚ ÓÅÂÑ FreeBSD É ÄÌÑ ÞÅÇÏ ÏÎÁ ÍÏÖÅÔ ×ÁÍ ÐÒÉÇÏÄÉÔØÓÑ, ÍÏÖÎÏ ÎÁÊÔÉ ÎÁ ÄÏÍÁÛÎÅÊ ÓÔÒÁÎÉÃÅ FreeBSD. FreeBSD ÉÓÐÏÌØÚÕÅÔÓÑ ËÏÍÐÁÎÉÑÍÉ, éÎÔÅÒÎÅÔ-ÐÒÏ×ÁÊÄÅÒÁÍÉ, ÎÁÕÞÎÙÍÉ ÒÁÂÏÔÎÉËÁÍÉ, ÐÒÏÆÅÓÓÉÏÎÁÌÁÍÉ × ×ÙÞÉÓÌÉÔÅÌØÎÏÊ ÔÅÈÎÉËÅ, ÓÔÕÄÅÎÔÁÍÉ É ÒÑÄÏ×ÙÍÉ ÐÏÌØÚÏ×ÁÔÅÌÑÍÉ ÐÏ ×ÓÅÍÕ ÍÉÒÕ ÄÌÑ ÒÁÂÏÔÙ, ÏÂÒÁÚÏ×ÁÎÉÑ É ÏÔÄÙÈÁ. ÷Ù ÍÏÖÅÔÅ Õ×ÉÄÅÔØ ÎÅËÏÔÏÒÙÈ ÉÚ ÎÉÈ × ÎÁÛÅÊ ÇÁÌÅÒÅÅ. äÌÑ ÂÏÌÅÅ ÄÅÔÁÌØÎÏÇÏ ÏÚÎÁËÏÍÌÅÎÉÑ Ó FreeBSD, ÐÏÖÁÌÕÊÓÔÁ, ÏÂÒÁÝÁÊÔÅÓØ Ë òÕËÏ×ÏÄÓÔ×Õ ÐÏÌØÚÏ×ÁÔÅÌÑ FreeBSD. ëÁËÏ×Ù ÃÅÌÉ FreeBSD? ãÅÌÉ, ÐÒÅÓÌÅÄÕÅÍÙÅ ÐÒÏÅËÔÏÍ FreeBSD - ÜÔÏ ÐÒÅÄÏÓÔÁ×ÌÅÎÉÅ ÐÒÏÇÒÁÍÍÎÏÇÏ ÏÂÅÓÐÅÞÅÎÉÑ, ËÏÔÏÒÏÅ ÍÏÖÅÔ ÂÙÔØ ÉÓÐÏÌØÚÏ×ÁÎÏ × ÌÀÂÙÈ ÃÅÌÑÈ ÂÅÚ ×ÓÑÞÅÓËÉÈ ÏÇÒÁÎÉÞÅÎÉÊ. íÎÏÇÉÅ ÉÚ ÎÁÓ ×ËÌÁÄÙ×ÁÀÔ ÚÎÁÞÉÔÅÌØÎÙÅ ÕÓÉÌÉÑ × Å£ ÒÁÚÒÁÂÏÔËÕ (É ÐÒÏÅËÔÉÒÏ×ÁÎÉÅ) É ÏÐÒÅÄÅÌ£ÎÎÏ ÂÙÌÉ ÂÙ ÎÅ ÐÒÏÔÉ× ÐÏÌÕÞÅÎÉÑ ÆÉÎÁÎÓÏ×ÏÊ ÐÏÄÄÅÒÖËÉ, ÎÏ ÍÙ ÎÅ ÓÏÂÉÒÁÅÍÓÑ Å£ ÔÒÅÂÏ×ÁÔØ. íÙ ÎÁÄÅÅÍÓÑ, ÞÔÏ ÎÁÛÁ ÏÓÎÏ×ÎÁÑ É ÓÁÍÁÑ ÚÎÁÞÉÔÅÌØÎÁÑ "ÍÉÓÓÉÑ" - ÐÒÅÄÏÓÔÁ×ÉÔØ ËÏÄ ×ÓÅÍ ÖÅÌÁÀÝÉÍ, ÄÌÑ ÌÀÂÙÈ ÃÅÌÅÊ, ÔÁË ÞÔÏÂÙ ÏÎ ÎÁÛÅÌ ÓÁÍÏÅ ÛÉÒÏËÏÅ ÐÒÉÍÅÎÅÎÉÅ É ÐÒÉÎÅÓ ÎÁÉÂÏÌØÛÕÀ ÐÏÌØÚÕ. üÔÏ, ÎÁ ÎÁÛ ×ÚÇÌÑÄ, ÏÄÎÁ ÉÚ ÓÁÍÙÈ ÆÕÎÄÁÍÅÎÔÁÌØÎÙÈ ÃÅÌÅÊ Free Software, ËÏÔÏÒÕÀ ÍÙ Ó ÜÎÔÕÚÉÁÚÍÏÍ ÐÏÄÄÅÒÖÉ×ÁÅÍ. éÓÈÏÄÎÙÊ ËÏÄ, ÐÏÄÐÁÄÁÀÝÉÊ ÐÏÄ ÄÅÊÓÔ×ÉÅ GNU General Public License (GPL) ÉÌÉ GNU Library General Public License (LGPL), ÉÍÅÅÔ ÎÅÓËÏÌØËÏ ÂÏÌØÛÅ ÏÇÒÁÎÉÞÅÎÉÊ, ÈÏÔÑ É ÐÒÅÄÓÔÁ×ÌÑÅÔ ÓÏÂÏÊ ÎÁ×ÑÚÙ×ÁÎÉÅ ÄÏÓÔÕÐÁ Ë ÉÓÈÏÄÎÙÍ ÔÅËÓÔÁÍ, Á ÎÅ ÎÁÏÂÏÒÏÔ, ËÁË ÏÂÙÞÎÏ. éÚ-ÚÁ ÄÏÐÏÌÎÉÔÅÌØÎÙÈ ÓÌÏÖÎÏÓÔÅÊ, ËÏÔÏÒÙÅ ÍÏÇÕÔ ×ÏÚÎÉËÎÕÔØ × ÓÌÕÞÁÅ ËÏÍÍÅÒÞÅÓËÏÇÏ ÉÓÐÏÌØÚÏ×ÁÎÉÑ ÐÒÏÇÒÁÍÍÎÏÇÏ ÏÂÅÓÐÅÞÅÎÉÑ GPL, ÍÙ ÓÔÁÒÁÅÍÓÑ, ÇÄÅ ÔÏÌØËÏ ÜÔÏ ×ÏÚÍÏÖÎÏ, ÚÁÍÅÎÉÔØ ÐÏÄÏÂÎÏÅ ÐÒÏÇÒÁÍÍÎÏÅ ÏÂÅÓÐÅÞÅÎÉÅ ÁÎÁÌÏÇÉÞÎÙÍ, ÎÏ ÐÏÄÐÁÄÁÀÝÉÍ ÐÏÄ ÂÏÌÅÅ Ó×ÏÂÏÄÎÕÀ ÌÉÃÅÎÚÉÀ BSD. ðÏÞÅÍÕ ÓÉÓÔÅÍÁ ÎÁÚÙ×ÁÅÔÓÑ ÉÍÅÎÎÏ FreeBSD? ïÎÁ ÍÏÖÅÔ ÉÓÐÏÌØÚÏ×ÁÔØÓÑ ÂÅÚÏ ×ÓÑÞÅÓËÉÈ ×ÙÐÌÁÔ, ÄÁÖÅ ÄÌÑ ÉÚ×ÌÅÞÅÎÉÑ ×ÙÇÏÄÙ. ÷ÓÅ ÉÓÈÏÄÎÙÅ ÔÅËÓÔÙ ÏÐÅÒÁÃÉÏÎÎÏÊ ÓÉÓÔÅÍÙ Ó×ÏÂÏÄÎÏ ÄÏÓÔÕÐÎÙ, ÎÁ Å£ ÉÓÐÏÌØÚÏ×ÁÎÉÅ × ÄÒÕÇÉÈ ÒÁÚÒÁÂÏÔËÁÈ (ËÁË ËÏÍÍÅÒÞÅÓËÉÈ, ÔÁË É ÎÅËÏÍÍÅÒÞÅÓËÉÈ) É ÄÁÌØÎÅÊÛÅÅ ÒÁÓÐÒÏÓÔÒÁÎÅÎÉÅ ÎÁÌÏÖÅÎÙ ÍÉÎÉÍÁÌØÎÙÅ ÏÇÒÁÎÉÞÅÎÉÑ. ìÀÂÏÊ, Õ ËÏÇÏ ÅÓÔØ ÕÓÏ×ÅÒÛÅÎÓÔ×Ï×ÁÎÉÑ É/ÉÌÉ ÉÓÐÒÁ×ÌÅÎÉÑ, ÍÏÖÅÔ ÐÒÅÄÏÓÔÁ×ÉÔØ Ó×ÏÊ ËÏÄ É ÏÎ ÂÕÄÅÔ (ÐÒÁ×ÄÁ, Ó ÐÁÒÏÊ ÏÇÏ×ÏÒÏË) ÄÏÂÁ×ÌÅÎ × ÉÓÈÏÄÎÙÅ ÔÅËÓÔÙ ÓÉÓÔÅÍÙ. äÌÑ ÔÅÈ ÎÁÛÉÈ ÞÉÔÁÔÅÌÅÊ, ÄÌÑ ËÏÔÏÒÙÈ ÁÎÇÌÉÊÓËÉÊ ÎÅ Ñ×ÌÑÅÔÓÑ ÒÏÄÎÙÍ ÑÚÙËÏÍ, ÍÏÖÎÏ ÄÏÂÁ×ÉÔØ, ÞÔÏ ÓÌÏ×Ï ``free'' ÉÓÐÏÌØÚÕÅÔÓÑ ÚÄÅÓØ × Ä×ÕÈ ÓÍÙÓÌÁÈ, ÏÄÉÎ ÏÚÎÁÞÁÅÔ ``ÂÅÓÐÌÁÔÎÏ'', Á ÄÒÕÇÏÊ ``×Ù ÍÏÖÅÔÅ ÄÅÌÁÔØ ×Ó£, ÞÔÏ ÈÏÔÉÔÅ''. úÁ ÉÓËÌÀÞÅÎÉÅÍ ÐÁÒÙ ×ÅÝÅÊ, ËÏÔÏÒÙÅ ×Ù ÎÅ ÍÏÖÅÔÅ ÐÒÏÉÚ×ÏÄÉÔØ Ó FreeBSD, ÎÁÐÒÉÍÅÒ, ÐÒÅÔÅÎÄÏ×ÁÔØ ÎÁ ÔÏ, ÞÔÏ ×Ù Ñ×ÌÑÅÔÅÓØ Å£ ÒÁÚÒÁÂÏÔÞÉËÏÍ, ×Ù ÎÁ ÓÁÍÏÍ ÄÅÌÅ ÍÏÖÅÔÅ ÄÅÌÁÔØ Ó ÎÅÊ ×Ó£, ÞÔÏ ×ÁÍ ÚÁÂÌÁÇÏÒÁÓÓÕÄÉÔÓÑ. ëÁËÏ×Á ÐÏÓÌÅÄÎÑÑ ×ÅÒÓÉÑ FreeBSD? ÷ÅÒÓÉÑ 3.2, ×ÙÐÕÝÅÎÎÁÑ × ÍÁÅ 1999 ÇÏÄÁ, Ñ×ÌÑÅÔÓÑ ÓÁÍÏÊ ÐÏÓÌÅÄÎÅÊ ÓÔÁÂÉÌØÎÏÊ ×ÅÒÓÉÅÊ. ïÎÁ ÔÁËÖÅ Ñ×ÌÑÅÔÓÑ ÓÁÍÙÍ ÐÏÓÌÅÄÎÉÍ ÒÅÌÉÚÏÍ. åÓÌÉ ÇÏ×ÏÒÉÔØ ËÒÁÔËÏ, ÔÏ ×ÅÔËÁ -stable ÐÒÅÄÎÁÚÎÁÞÅÎÁ ÐÏÓÔÁ×ÝÉËÁÍ ÕÓÌÕÇ Internet ÉÌÉ ÄÒÕÇÉÍ ËÏÒÐÏÒÁÔÉ×ÎÙÍ ÐÏÌØÚÏ×ÁÔÅÌÑÍ, ËÏÔÏÒÙÍ × ÐÅÒ×ÕÀ ÏÞÅÒÅÄØ ÎÕÖÎÁ ÎÁÄ£ÖÎÏÓÔØ É ÎÅ ÓÌÉÛËÏÍ ÂÏÌØÛÏÅ ËÏÌÉÞÅÓÔ×Ï ÏÔÌÉÞÉÊ ÏÔ ÐÏÓÌÅÄÎÅÇÏ ÒÅÌÉÚÁ ÐÏ ÓÒÁ×ÎÅÎÉÀ Ó ×ÏÚÍÏÖÎÏÓÔÑÍÉ ÐÏÓÌÅÄÎÅÇÏ ÓÎÜÐÛÏÔÁ -current. òÅÌÉÚÙ ÍÏÖÎÏ ÄÅÌÁÔØ ÉÚ ÌÀÂÏÊ "×ÅÔËÉ", ÎÏ -current ×Ù ÄÏÌÖÎÙ ÉÓÐÏÌØÚÏ×ÁÔØ ÔÏÌØËÏ × ÓÌÕÞÁÅ, ÅÓÌÉ Õ×ÅÒÅÎÙ, ÞÔÏ ÇÏÔÏ×Ù Ë ÐÏÓÔÏÑÎÎÙÍ (ÐÏ ÓÒÁ×ÎÅÎÉÀ Ó -stable) ÉÚÍÅÎÅÎÉÑÍ × ÒÁÂÏÔÅ ÓÉÓÔÅÍÙ. òÅÌÉÚÙ ÄÅÌÁÀÔÓÑ ÔÏÌØËÏ . èÏÔÑ ÍÎÏÇÉÅ ÓÔÁÒÁÀÔÓÑ ÏÔÓÌÅÖÉ×ÁÔØ ÁËÔÕÁÌØÎÏÅ ÓÏÓÔÏÑÎÉÅ ÉÓÈÏÄÎÙÈ ÔÅËÓÔÏ× FreeBSD (ÏÂÒÁÔÉÔÅ ×ÎÉÍÁÎÉÅ ÎÁ ×ÏÐÒÏÓÙ Ï É ), ÄÅÌÁÔØ ÜÔÏ ÎÅ ÏÂÑÚÁÔÅÌØÎÏ, ÔÁË ËÁË ÉÓÈÏÄÎÙÅ ÔÅËÓÔÙ ÐÏÓÔÏÑÎÎÏ ÍÅÎÑÀÔÓÑ. þÔÏ ÔÁËÏÅ FreeBSD-current? FreeBSD-current - ÜÔÏ ×ÅÒÓÉÑ ÏÐÅÒÁÃÉÏÎÎÏÊ ÓÉÓÔÅÍÙ, ÎÁÈÏÄÑÝÁÑÓÑ × ÓÔÁÄÉÉ ÒÁÚÒÁÂÏÔËÉ ÄÏ ÍÏÍÅÎÔÁ ×ÙÐÕÓËÁ 4.0-RELEASE. ôÁËÉÍ ÏÂÒÁÚÏÍ, ÏÎÁ ÐÒÅÄÓÔÁ×ÌÑÅÔ ÒÅÁÌØÎÙÊ ÉÎÔÅÒÅÓ ÔÏÌØËÏ ÄÌÑ ÒÁÚÒÁÂÏÔÞÉËÏ× ÓÉÓÔÅÍÙ É Å£ ÆÁÎÁÔÏ×. ïÂÒÁÔÉÔÅÓØ Ë ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÅÍÕ ÒÁÚÄÅÌÕ òÕËÏ×ÏÄÓÔ×Á ÄÌÑ ÐÒÏÑÓÎÅÎÉÑ ÄÅÔÁÌÅÊ ÒÁÂÏÔÙ Ó -current. åÓÌÉ ×Ù ÎÅ ÓÐÅÃÉÁÌÉÓÔ ÐÏ ÏÐÅÒÁÃÉÏÎÎÙÍ ÓÉÓÔÅÍÁÍ ÉÌÉ ÎÅ × ÓÏÓÔÏÑÎÉÉ ÏÔÌÉÞÉÔØ ÒÅÁÌØÎÕÀ ÐÒÏÂÌÅÍÕ ÏÔ ×ÒÅÍÅÎÎÙÈ Ñ×ÌÅÎÉÊ, ×Ù ÎÅ ÄÏÌÖÎÙ ÉÓÐÏÌØÚÏ×ÁÔØ FreeBSD-current. üÔÁ ×ÅÔר ÚÁÞÁÓÔÕÀ ÍÅÎÑÅÔÓÑ ÏÞÅÎØ ÂÙÓÔÒÏ É ×ÐÏÌÎÅ ÍÏÖÅÔ ÂÙÔØ ÐÒÏÓÔÏ ÎÅ ÒÁÂÏÔÏÓÐÏÓÏÂÎÁ ÎÅËÏÔÏÒÏÅ ×ÒÅÍÑ. ôÅ, ËÔÏ ÉÓÐÏÌØÚÕÀÔ FreeBSD-current, ÄÏÌÖÎÙ ÂÙÔØ × ÓÏÓÔÏÑÎÉÉ ÁÎÁÌÉÚÉÒÏ×ÁÔØ ÌÀÂÙÅ ÐÒÏÂÌÅÍÙ É ÓÏÏÂÝÁÔØ Ï ÎÉÈ, ÅÓÌÉ ÜÔÏ ÄÅÊÓÔ×ÉÔÅÌØÎÏ ÏÛÉÂËÉ, Á ÎÅ ``ÇÌÀËÉ''. óÏÏÂÝÅÎÉÑ ÔÉÐÁ ``make world produces some error about groups'' × ÓÐÉÓËÅ ÒÁÓÓÙÌËÉ -current ÉÎÏÇÄÁ ×ÏÓÐÒÉÎÉÍÁÀÔÓÑ ÐÒÅÎÅÂÒÅÖÉÔÅÌØÎÏ. éÚ ×ÅÔ×É -current ÒÅÇÕÌÑÒÎÏ ÄÅÌÁÀÔÓÑ ÓÎÜÐÛÏÔÙ, ÎÅËÏÔÏÒÙÅ ÉÚ ËÏÔÏÒÙÈ ÄÏÓÔÕÐÎÙ ÎÁ CDROM. éÈ ÐÒÅÄÎÁÚÎÁÞÅÎÉÅ: ôÅÓÔÉÒÏ×ÁÎÉÅ ÓÁÍÏÊ ÐÏÓÌÅÄÎÅÊ ×ÅÒÓÉÉ ÉÎÓÔÁÌÌÑÔÏÒÁ. äÁÔØ ÌÀÄÑÍ, ËÏÔÏÒÙÅ ÈÏÔÑÔ ÒÁÂÏÔÁÔØ Ó -current, ÎÏ ÎÅ ÉÍÅÀÔ ×ÒÅÍÅÎÉ É/ÉÌÉ ÍÏÚÍÏÖÎÏÓÔÉ (ÐÒÏÐÕÓËÎÏÊ ÓÐÏÓÏÂÎÏÓÔÉ) ÄÌÑ ÏÔÓÌÅÖÉ×ÁÎÉÑ ÅÖÅÄÎÅ×ÎÙÈ ÉÚÍÅÎÅÎÅÎÉÊ, ÐÒÏÓÔÏÊ ÓÐÏÓÏ ţ ÕÓÔÁÎÏ×ËÉ. æÉËÓÁÃÉÑ ÔÏÞËÉ ÄÌÑ ÐÏÓÌÅÄÕÀÝÉÈ ÓÓÙÌÏË × ÓÌÕÞÁÅ, ÅÓÌÉ ÐÏÚÖÅ ÍÙ ÞÔÏ-ÎÉÂÕÄØ ÏÞÅÎØ ÓÉÌØÎÏ ÓÌÏÍÁÅÍ. (èÏÔÑ CVS, ËÁË ÐÒÁ×ÉÌÏ, ÎÅ ÐÏÚ×ÏÌÑÅÔ ÓÌÕÞÉÔØÓÑ ÎÉÞÅÍÕ ÔÁËÏÍÕ ÕÖÁÓÎÏÍÕ :) ìÀÂÙÅ ÎÏ×ÙÅ ×ÏÚÍÏÖÎÏÓÔÉ, ËÏÔÏÒÙÍ ÔÒÅÂÕÅÔÓÑ ÔÅÓÔÉÒÏ×ÁÎÉÅ, ÄÏÌÖÎÙ ÉÍÅÔØ ËÁË ÍÏÖÎÏ ÂÏÌØÛÅ ÐÏÔÅÎÃÉÁÌØÎÙÈ ÔÅÓÔÅÒÏ×. îÅ ÕÔ×ÅÒÖÄÁÅÔÓÑ, ÞÔÏ ×ÓÑËÉÊ ÓÎÁÐÛÏÔ ÉÍÅÅÔ ËÁÞÅÓÔ×Ï ``ÇÏÔÏ×ÏÇÏ ÐÒÏÄÕËÔÁ''. äÌÑ ÓÔÁÂÉÌØÎÏÊ É ÎÁÄÅÖÎÏÊ ÒÁÂÏÔÙ ×ÁÍ ÎÕÖÎÏ ÐÏÄÏÖÄÁÔØ ÐÏÌÎÏÇÏ ÒÅÌÉÚÁ. óÎÁÐÛÏÔÙ ÄÏÓÔÕÐÎÙ ÎÅÐÏÓÒÅÄÓÔ×ÅÎÎÏ Ó ftp://current.freebsd.org/pub/FreeBSD/ É, ËÁË ÐÒÁ×ÉÌÏ, ÇÅÎÅÒÉÒÕÀÔÓÑ ÅÖÅÄÎÅ×ÎÏ ÄÌÑ ×ÅÔÏË 4.0-current É 3.0-stable. ÷ Þ£Í ÓÍÙÓÌ FreeBSD-stable? ðÏÓÌÅ ÔÏÇÏ, ËÁË ÂÙÌÁ ×ÙÐÕÝÅÎÁ FreeBSD 2.0.5, ÍÙ ÒÅÛÉÌÉ ÒÁÚÄÅÌÉÔØ ÒÁÚÒÁÂÏÔËÕ FreeBSD ÎÁ Ä×Å ÞÁÓÔÉ. ïÄÎÁ ×ÅÔËÁ ÂÙÌÁ ÎÁÚ×ÁÎÁ -stable, Ó ÔÅÍ ÐÒÅÄÎÁÚÎÁÞÅÎÉÅÍ, ÞÔÏ × ÎÅÊ ÂÕÄÕÔ ÄÅÌÁÔØÓÑ ÔÏÌØËÏ ÈÏÒÏÛÏ ÏÔÔÅÓÔÉÒÏ×ÁÎÎÙÅ ÉÓÐÒÁ×ÌÅÎÉÑ É ÍÁÌÅÎØËÉÅ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÙÅ ÕÓÏ×ÅÒÛÅÎÓÔ×Ï×ÁÎÉÑ (ÄÌÑ ÐÒÏ×ÁÊÄÅÒÏ× ÕÓÌÕÇ éÎÔÅÒÎÅÔ É ÄÒÕÇÉÈ ËÏÍÍÅÒÞÅÓËÉÈ ÐÏÌØÚÏ×ÁÔÅÌÅÊ, ÄÌÑ ËÏÔÏÒÙÈ ÎÅÏÖÉÄÁÎÎÙÅ ÉÚÍÅÎÅÎÉÑ ÉÌÉ ÜËÓÐÅÒÉÍÅÎÔÁÌØÎÙÅ ×ÏÚÍÏÖÎÏÓÔÉ ×ÅÓØÍÁ ÎÅÖÅÌÁÔÅÌØÎÙ). äÒÕÇÏÊ ×ÅÔרÀ Ñ×ÌÑÅÔÓÑ -current, ËÏÔÏÒÁÑ ÐÏ ÓÕÝÅÓÔ×Õ Ñ×ÌÑÅÔÓÑ ÐÒÑÍÏÊ ÌÉÎÉÅÊ, ×ÅÄÕÝÅÊ Ë 4.0-RELEASE (É ÐÏÓÌÅÄÕÀÝÉÍ) Ó ÔÅÈ ÐÏÒ, ËÁË ÂÙÌÁ ×ÙÐÕÝÅÎÁ 2.0. åÓÌÉ ×ÁÍ ÐÏÍÏÖÅÔ ËÁÒÔÉÎËÁ, ÔÏ ×ÏÔ ËÁË ÜÔÏ ×ÙÇÌÑÄÉÔ: 2.0 | | | [2.1-stable] *÷åô÷ø* 2.0.5 -> 2.1 -> 2.1.5 -> 2.1.6 -> 2.1.7.1 [ËÏÎÅà 2.1-stable] | (íÁÒ 1997) | | | [2.2-stable] *÷åô÷ø* 2.2.1 -> 2.2.2-RELEASE -> 2.2.5 -> 2.2.6 -> 2.2.7 -> 2.2.8 [ËÏÎÅÃ] | (íÁÒ 1997) (ïËÔ 97) (áÐÒ 98) (éÀÌ 98) (äÅË 98) | | 3.0-SNAPs (ÎÁÞÁÌÏ × I Ë×ÁÒÔÁÌÅ 1997) | | 3.0.0-RELEASE (ïËÔ 1998) | | [3.0-stable] *÷åô÷ø* 3.1 (æÅ× 1999) -> 3.2 -> ... ÂÕÄÕÝÉÅ ÒÅÌÉÚÙ 3.x ... | (íÁÊ 1999) | \|/ + [ÐÒÏÄÏÌÖÅÎÉÅ 4.0-current] ÷ÅÔר -current ÐÏÓÔÅÐÅÎÎÏ ÐÅÒÅÈÏÄÉÔ × 4.0 É ×ÙÛÅ, ÔÏÇÄÁ ËÁË ÐÒÅÄÙÄÕÝÁÑ ×ÅÔר, 2.2-stable, ÂÙÌÁ ×ÙÔÅÓÎÅÎÁ ÒÅÌÉÚÏÍ 2.2.8. ôÅÐÅÒØ ÅÇÏ ÚÁÍÅÎÉÌÁ ×ÅÔר 3.0-stable, ÓÌÅÄÕÀÝÉÊ ÒÅÌÉÚ ËÏÔÏÒÏÊ, 3.3, ×ÙÊÄÅÔ × ÔÒÅÔØÅÍ Ë×ÁÒÔÁÌÅ 1999 ÇÏÄÁ. "ôÅËÕÝÅÊ ×ÅÔËÏÊ" ÓÅÊÞÁÓ Ñ×ÌÑÅÔÓÑ 4.0-current, ÐÅÒ×ÙÊ ÒÅÌÉÚ ËÏÔÏÒÏÊ ÐÏÑ×ÉÔÓÑ × ÐÅÒ×ÏÍ Ë×ÁÒÔÁÌÅ 2000 ÇÏÄÁ. ÷ ËÁËÏÊ ÍÏÍÅÎÔ ×ÙÐÕÓËÁÀÔÓÑ ÎÏ×ÙÅ ×ÅÒÓÉÉ FreeBSD? ëÁË ÐÒÁ×ÉÌÏ, ÏÓÎÏ×ÎÁÑ ÇÒÕÐÐÁ ÒÁÚÒÁÂÏÔÞÉËÏ× ×ÙÐÕÓËÁÅÔ ÎÏ×ÕÀ ×ÅÒÓÉÀ, ÔÏÌØËÏ ËÏÇÄÁ ÏÎÉ Õ×ÅÒÅÎÙ, ÞÔÏ ÄÏÂÁ×ÌÅÎÎÙÈ ÎÏ×ÙÈ ×ÏÚÍÏÖÎÏÓÔÅÊ É/ÉÌÉ ×ÎÅÓ£ÎÎÙÈ ÉÓÐÒÁ×ÌÅÎÉÊ ÕÖÅ ÄÏÓÔÁÔÏÞÎÏ É ÎÏ×ÙÊ ÒÅÌÉÚ ÎÅ ÐÏÔÅÒÑÅÔ ÓÔÁÂÉÌØÎÏÓÔÉ. íÎÏÇÉÅ ÐÏÌØÚÏ×ÁÔÅÌÉ ÏÃÅÎÉ×ÁÀÔ ÜÔÕ ÏÓÔÏÒÏÖÎÏÓÔØ ËÁË ÏÄÎÕ ÉÚ ÌÕÞÛÉÈ ÓÔÏÒÏÎ FreeBSD, ÈÏÔÑ ÏÎÁ ÎÅÓËÏÌØËÏ ÒÁÚÏÞÁÒÏ×Ù×ÁÅÔ, ÅÓÌÉ ×ÁÍ ÎÅ ÔÅÒÐÉÔÓÑ ÐÏÐÒÏÂÏ×ÁÔØ ÎÏ×ÙÅ ×ÏÚÍÏÖÎÏÓÔÉ.. ÷ ÓÒÅÄÎÅÍ ÎÏ×ÙÅ ×ÅÒÓÉÉ ×ÙÐÕÓËÁÀÔÓÑ ÐÒÉÍÅÒÎÏ ËÁÖÄÙÅ ÞÅÔÙÒÅ ÍÅÓÑÃÁ. äÌÑ ÔÅÈ, ËÏÍÕ ÎÅ ÔÅÒÐÉÔÓÑ, ÐÒÅÄÎÁÚÎÁÞÅÎÙ SNAP-ÒÅÌÉÚÙ, ×ÙÐÕÓËÁÅÍÙÅ ÂÏÌÅÅ ÞÁÓÔÏ, × ÞÁÓÔÎÏÓÔÉ, × ÔÅÞÅÎÉÉ ÍÅÓÑÃÁ ÐÅÒÅÄ ÒÅÌÉÚÏÍ. FreeBSD ÄÏÓÔÕÐÎÁ ÔÏÌØËÏ ÄÌÑ ÐÅÒÓÏÎÁÌØÎÙÈ ËÏÍÐØÀÔÅÒÏ×? ÷ ÎÁÓÔÏÑÝÅÅ ×ÒÅÍÑ FreeBSD 3.x ÒÁÂÏÔÁÅÔ ËÁË ÎÁ ÁÒÈÉÔÅËÔÕÒÅ x86, ÔÁË É ÎÁ ÐÌÁÔÆÏÒÍÅ DEC Alpha. îÅËÏÔÏÒÙÊ ÉÎÔÅÒÅÓ ÂÙÌ ÐÒÏÑ×ÌÅÎ Ë ÐÅÒÅÎÏÓÕ ÎÁ SPARC, ÏÄÎÁËÏ ÐÏÄÒÏÂÎÏÓÔÉ ÜÔÏÇÏ ÐÒÏÅËÔÁ ÅÝ£ ÎÅ ÑÓÎÙ. åÓÌÉ ×ÁÛ ËÏÍÐØÀÔÅÒ ÉÍÅÅÔ ÄÒÕÇÕÀ ÁÒÈÉÔÅËÔÕÒÕ É ×ÁÍ ÎÕÖÎÏ ÞÔÏ-ÔÏ ÐÒÑÍÏ ÓÅÊÞÁÓ, ÓÏ×ÅÔÕÅÍ ÐÏÐÒÏÂÏ×ÁÔØ NetBSD ÉÌÉ OpenBSD. ëÔÏ ÒÁÚÒÁÂÁÔÙ×ÁÅÔ FreeBSD? òÅÛÅÎÉÑ, ËÏÔÏÒÙÅ ËÁÓÁÀÔÓÑ ËÌÀÞÅ×ÙÈ ÍÏÍÅÎÔÏ× × ÐÒÏÅËÔÅ FreeBSD, ÔÁËÉÅ, ËÁË ÏÂÝÅÅ ÎÁÐÒÁ×ÌÅÎÉÅ ÒÁÚ×ÉÔÉÑ ÐÒÏÅËÔÁ ÉÌÉ ËÔÏ ÍÏÖÅÔ ÄÏÂÁ×ÌÑÔØ ËÏÄ Ë ÄÅÒÅ×Õ ÉÓÈÏÄÎÙÈ ÔÅËÓÔÏ×, ÐÒÉÎÉÍÁÀÔÓÑ ÏÓÎÏ×ÎÏÊ ËÏÍÁÎÄÏÊ ÒÁÚÒÁÂÏÔÞÉËÏ× (core team), ÓÏÓÔÏÑÝÅÊ ÉÚ 15 ÞÅÌÏ×ÅË. ôÁËÖÅ ÓÕÝÅÓÔ×ÕÅÔ ÇÏÒÁÚÄÏ ÂÏÌØÛÁÑ ÇÒÕÐÐÁ ÉÚ ÂÏÌÅÅ 150 ËÏÍÍÉÔÔÅÒÏ× (committers), ËÏÔÏÒÙÅ ÍÏÇÕÔ ÄÅÌÁÔØ ÉÚÍÅÎÅÎÉÑ ÐÒÑÍÏ × ÄÅÒÅ×Å ÉÓÈÏÄÎÙÈ ÔÅËÓÔÏ× FreeBSD. ïÄÎÁËÏ, ÂÏÌØÛÉÎÓÔ×Ï ÎÅÔÒÉ×ÉÁÌØÎÙÈ ÉÚÍÅÎÅÎÉÊ ÛÉÒÏËÏ ÏÂÓÕÖÄÁÅÔÓÑ × , É ÎÅ ÓÕÝÅÓÔ×ÕÅÔ ÎÉËÁËÉÈ ÏÇÒÁÎÉÞÅÎÉÊ ÎÁ ÕÞÁÓÔÉÅ × ÐÏÄÏÂÎÙÈ ÄÉÓËÕÓÓÉÑÈ. çÄÅ ÍÏÖÎÏ ÎÁÊÔÉ FreeBSD? ÷ÓÅ ÏÓÎÏ×ÎÙÅ ÒÅÌÉÚÙ FreeBSD ÄÏÓÔÕÐÎÙ ÐÏ ftp Ó FTP-ÓÅÒ×ÅÒÁ FreeBSD: ôÅËÕÝÉÊ ÒÅÌÉÚ 2.2-stable, 2.2.8R, ÎÁÈÏÄÉÔÓÑ × ËÁÔÁÌÏÇÅ 2.2.8-RELEASE. ôÅËÕÝÉÊ ÒÅÌÉÚ 3.0-stable, 3.0-RELEASE, ÎÁÈÏÄÉÔÓÑ × ËÁÔÁÌÏÇÅ 3.0. òÅÌÉÚÙ 2.2 Snapshot ÄÅÌÁÀÔÓÑ ÅÖÅÄÎÅ×ÎÏ ÉÚ ×ÅÔËÉ RELENG_2_2 (ÐÏÓÌÅ 2.2.8), ËÏÔÏÒÁÑ ÐÏÓÔÅÐÅÎÎÏ ÐÅÒÅÈÏÄÉÔ × ÒÅÖÉÍ ÓÏÐÒÏ×ÏÖÄÅÎÉÑ. ÷ÅÔר RELENG_2_2 ×ÅÄ£ÔÓÑ ÏÞÅÎØ ÁËËÕÒÁÔÎÏ É ÓÅÊÞÁÓ ÔÕÄÁ ÎÅ ×ÎÏÓÑÔÓÑ ÉÚÍÅÎÅÎÉÊ, ËÒÏÍÅ ËÁË ÖÉÚÎÅÎÎÏ ÎÅÏÂÈÏÄÉÍÙÈ ÐÏ ÓÏÏÂÒÁÖÅÎÉÑÍ ÂÅÚÏÐÁÓÎÏÓÔÉ É ÎÁÄ£ÖÎÏÓÔÉ. ÷ÙÐÕÓËÉ 3.0 Snapshot ÔÁËÖÅ ÄÅÌÁÀÔÓÑ ÅÖÅÄÎÅ×ÎÏ ÉÚ ×ÅÔËÉ RELENG_3 (ÐÏÓÌÅ 3.0-release), ÐÏËÁ ÏÎÁ ÐÅÒÅÈÏÄÉÔ × 3.2-RELEASE. ÷ÙÐÕÓËÉ 4.0 Snapshot, ËÏÔÏÒÙÅ ÄÅÌÑÀÔÓÑ ÅÖÅÄÎÅ×ÎÏ ÉÚ ×ÅÔ×É , ÐÒÅÄÎÁÚÎÁÞÅÎÙ ÄÌÑ ÔÅÓÔÅÒÏ× É ÒÁÚÒÁÂÏÔÞÉËÏ×. FreeBSD ÔÁËÖÅ ÄÏÓÔÕÐÎÁ ÞÅÒÅÚ CDROM, ÐÏ ÔÁËÏÍÕ ÁÌÒÅÓÕ: Walnut Creek CDROM 4041 Pike Lane, Suite F Concord, CA 94520 USA Orders: +1 800 786-9907 Questions: +1 925 674-0783 FAX: +1 925 674-0821 email: WC Orders address WWW: WC Home page ÷ á×ÓÔÒÁÌÉÉ ×Ù ÍÏÖÅÔÅ ÎÁÊÔÉ ÐÏ ÁÄÒÅÓÕ: Advanced Multimedia Distributors Factory 1/1 Ovata Drive Tullamarine, Melbourne Victoria Australia Voice: +61 3 9338 6777 CDROM Support BBS 17 Irvine St Peppermint Grove WA 6011 Voice: +61 9 385-3793 Fax: +61 9 385-2360 é × ÷ÅÌÉËÏÂÒÉÔÁÎÉÉ: The Public Domain & Shareware Library Winscombe House, Beacon Rd Crowborough Sussex. TN6 1UL Voice: +44 1892 663-298 Fax: +44 1892 667-473 çÄÅ ÎÁÊÔÉ ÉÎÆÏÒÍÁÃÉÀ ÐÏ ÓÐÉÓËÁÍ ÒÁÓÓÙÌËÉ FreeBSD? éÓÞÅÒÐÙ×ÁÀÝÁÑ ÉÎÆÏÒÍÁÃÉÑ ÓÏÄÅÒÖÉÔÓÑ × ÒÁÚÄÅÌÅ òÕËÏ×ÏÄÓÔ×Á, ËÏÔÏÒÙÊ ÐÏÓ×ÑÝÅÎ ÓÐÉÓËÁÍ ÒÁÓÓÙÌËÉ. ëÁËÉÅ ÓÕÝÅÓÔ×ÕÀÔ ÔÅÌÅËÏÎÆÅÒÅÎÃÉÉ ÐÏ FreeBSD? ðÏÌÎÁÑ ÉÎÆÏÒÍÁÃÉÑ Ï ÇÒÕÐÐÁÈ ÎÏ×ÏÓÔÅÊ ÅÓÔØ × ÒÁÚÄÅÌÅ òÕËÏ×ÏÄÓÔ×Á, ËÁÓÁÀÝÅÍÓÑ ÔÅÌÅËÏÎÆÅÒÅÎÃÉÊ. óÕÝÅÓÔ×ÕÀÔ ÌÉ ËÁÎÁÌÙ IRC (Internet Relay Chat) ÐÏ FreeBSD? äÁ, ÂÏÌØÛÉÎÓÔ×Ï ÓÅÔÅÊ IRC ÉÍÅÀÔ ËÁÎÁÌ FreeBSD: ëÁÎÁÌ #FreeBSD × ÓÅÔÉ EFNet ÐÏÓ×ÑݣΠFreeBSD, ÎÏ ÎÅ ÏÂÒÁÝÁÊÔÅÓØ ÔÕÄÁ ÚÁ ÔÅÈÎÉÞÅÓËÏÊ ÐÏÄÄÅÒÖËÏÊ É ÄÁÖÅ ÎÅ ÐÙÔÁÊÔÅÓØ ÎÁÊÔÉ ÞÅÌÏ×ÅËÁ, ËÏÔÏÒÙÊ ÐÏÍÏÖÅÔ ×ÁÍ ÏÂÏÊÔÉÓØ ÂÅÚ ÞÔÅÎÉÑ ÓÔÒÁÎÉà óÐÒÁ×ÏÞÎÉËÁ ÉÌÉ ÓÏÂÓÔ×ÅÎÎÙÈ ÉÚÙÓËÁÎÉÊ. üÔÏÔ ËÁÎÁÌ ÐÒÅÄÎÁÚÎÁÞÅÎ × ÐÅÒ×ÕÀ É ÏÓÎÏ×ÎÕÀ ÏÞÅÒÅÄØ ÄÌÑ ÏÂÝÅÎÉÑ, É × ËÒÕÇ ÏÂÓÕÖÄÁÅÍÙÈ ÔÅÍ ×ÈÏÄÉÔ ÓÅËÓ, ÓÐÏÒÔ, ÑÄÅÒÎÏÅ ÏÒÕÖÉÅ, ËÁË ÂÕÄÔÏ ÜÔÏ É ÅÓÔØ FreeBSD. ÷ ÏÂÝÅÍ, ×ÁÓ ÐÒÅÄÕÐÒÅÄÉÌÉ! ëÁÎÁÌ ÄÏÓÔÕÐÅÎ ÎÁ ÓÅÒ×ÅÒÅ irc.chat.org. ëÁÎÁÌ #FreeBSD × ÓÅÔÉ DALNET ÄÏÓÔÕÐÅÎ ÎÁ ÓÅÒ×ÅÒÅ irc.dal.net × óûá É ÎÁ irc.eu.dal.net × å×ÒÏÐÅ. ëÁÎÁÌ #FreeBSD × ÓÅÔÉ UNDERNET ÄÏÓÔÕÐÅÎ ÎÁ ÓÅÒ×ÅÒÁÈ us.undernet.org × óûá É eu.undernet.org × å×ÒÏÐÅ. ðÏÈÏÖ ÎÁ ËÁÎÁÌ × ÓÅÔÉ EFNET - ÎÅ ÚÁÄÁ×ÁÊÔÅ ×ÏÐÒÏÓÏ× ÉÌÉ ÎÁÕÞÉÔÅÓØ ÚÁÄÁ×ÁÔØ ÉÈ ÞÒÅÚ×ÙÞÁÊÎÏ ×ÅÖÌÉ×Ï, ÅÓÌÉ ÈÏÔÉÔÅ ÐÏÌÕÞÉÔØ ÐÏÍÏÝØ. üÔÏ ËÁÎÁÌ ÄÌÑ ÏÂÝÅÎÉÑ, Á ÎÅ ÄÌÑ ÐÏÌÕÞÅÎÉÑ ÐÏÍÏÝÉ. îÁËÏÎÅÃ, ×Ù ÍÏÖÅÔÅ ÐÏÄËÌÀÞÉÔØÓÑ Ë ËÁÎÁÌÕ #FreeBSD × ÓÅÔÉ BSDNET, ÐÏÓ×ÑÝ£ÎÎÏÊ ÉÓËÌÀÞÉÔÅÌØÎÏ BSD, ÎÁ ÓÅÒ×ÅÒÅ irc.FreeBSD.org. üÔÁ ÓÅÔØ ÐÙÔÁÅÔÓÑ ÂÙÔØ ÐÏÓ×ÑÝ£ÎÎÏÊ × ÂÏÌØÛÅÊ ÓÔÅÐÅÎÉ ÔÅÈÎÉÞÅÓËÏÊ ÐÏÄÄÅÒÖËÅ É ÎÅ ÂÙÔØ ÔÁËÏÊ ÁÎÁÒÈÉÓÔÓËÏÊ, ËÁË EFNET, UNDERNET ÉÌÉ DALNET, ÏÄÎÁËÏ ÐÏ ÜÔÏÊ ÖÅ ÐÒÉÞÉÎÅ ÏÎÁ É ÎÅ ÓÔÏÌØ ÐÏÐÕÌÑÒÎÁ. ðÏÞÅÍÕ ÂÙ ÓÅÇÏÄÎÑ ËÏÍÕ-ÎÉÂÕÄØ ÎÅ ×ÚÑÔØÓÑ É ÐÏÏÔ×ÅÞÁÔØ ÎÁ ×ÏÐÒÏÓÙ ÎÁ BSDNET? ÷ÓÅ ÜÔÉ ËÁÎÁÌÙ ÒÁÚÎÙÅ É ÎÅ ÉÍÅÀÔ ÏÔÎÏÛÅÎÉÑ ÄÒÕÇ Ë ÄÒÕÇÕ. éÈ ÓÔÉÌÉ ÏÂÝÅÎÉÑ ÔÁËÖÅ ÏÔÌÉÞÁÀÔÓÑ, ÔÁË ÞÔÏ ×ÁÍ, ÍÏÖÅÔ ÂÙÔØ, ÐÒÉÄ£ÔÓÑ ÐÏÐÒÏÂÏ×ÁÔØ ×ÓÅ, ÞÔÏÂÙ ÎÁÊÔÉ ÔÏÔ, ËÏÔÏÒÙÊ ÓÏÏÔ×ÅÔÓÔ×ÕÅÔ ×ÁÛÅÍÕ ÓÔÉÌÀ. ëÁË É ÏÂÙÞÎÏ Ó *ÌÀÂÙÍ* ËÁÎÁÌÏÍ IRC, ÅÓÌÉ ×Ù ÌÅÇËÏ ÒÁÚÄÒÁÖÁÅÔÅÓØ ÉÌÉ ÎÅ ÍÏÖÅÔÅ ÉÍÅÔØ ÄÅÌÁ Ó ÂÏÌØÛÉÍ ËÏÌÉÞÅÓÔ×ÏÍ ÌÉà ÛËÏÌØÎÏÇÏ (É ÍÌÁÄÛÅÇÏ ÛËÏÌØÎÏÇÏ) ×ÏÚÒÁÓÔÁ, ÐÙÔÁÀÝÉÈÓÑ ÏÚ×ÕÞÉÔØ Ó×ÏÉ ÐÏÐÙÔËÉ ÓÁÍÏÕÔ×ÅÒÖÄÅÎÉÑ, ÎÅ ÏÂÒÁÝÁÊÔÅ ÎÁ ÜÔÏ ×ÎÉÍÁÎÉÑ. ëÎÉÇÉ ÐÏ FreeBSD ÷Ù ÍÏÖÅÔÅ ÏÂÒÁÔÉÔØÓÑ × FreeBSD Documentation Project (Á ÅÝ£ ÌÕÞÛÅ Ë ÎÅÍÕ ÐÒÉÓÏÅÄÉÎÉÔØÓÑ) ÞÅÒÅÚ ÓÐÉÓÏË ÒÁÓÓÙÌËÉ doc: <freebsd-doc@FreeBSD.ORG>. üÔÏÔ ÓÐÉÓÏË ÒÁÓÓÙÌËÉ ÐÒÅÄÎÁÚÎÁÞÅÎ ÄÌÑ ÏÂÓÕÖÄÅÎÉÑ ÄÏËÕÍÅÎÔÁÃÉÉ FreeBSD. äÌÑ ×ÏÐÒÏÓÏ× ÐÏ ÓÉÓÔÅÍÅ ÐÒÅÄÎÁÚÎÁÞÅÎ ÓÐÉÓÏË ÒÁÓÓÙÌËÉ questions: <freebsd-questions@FreeBSD.ORG>. ``òÕËÏ×ÏÄÓÔ×Ï'' ÐÏ FreeBSD ÄÏÓÔÕÐÎÏ É ÍÏÖÅÔ ÂÙÔØ ÎÁÊÄÅÎÏ ÎÁ ×ÅÂ-ÓÅÒ×ÅÒÅ. úÁÍÅÔØÔÅ, ÞÔÏ ÜÔÏÔ ÐÒÏÅËÔ ÎÁÈÏÄÉÔÓÑ × ÐÒÏÃÅÓÓÅ ÒÁÚÒÁÂÏÔËÉ, ÔÁË ÞÔÏ ÎÅËÏÔÏÒÙÅ ÞÁÓÔÉ ÍÏÇÕÔ ÏÔÓÕÔÓÔ×Ï×ÁÔØ. ðÒÅËÒÁÓÎÙÍ ÐÅÞÁÔÎÙÍ ÒÕËÏ×ÏÄÓÔ×ÏÍ ÐÏ FreeBSD Ñ×ÌÑÅÔÓÑ ËÎÉÇÁ ``The Complete FreeBSD'', ÎÁÐÉÓÁÎÎÁÑ çÒÅÇÏÍ ìÉÜÅÍ (Greg Lehay) É ÉÚÄÁÎÎÁÑ Walnut Creek CDROM Books. ÷ ÎÁÓÔÏÑÝÅÅ ×ÒÅÍÑ ×ÙÛÌÏ ×ÔÏÒÏÅ ÉÚÄÁÎÉÅ, ÓÏÄÅÒÖÁÝÅÅ 1,750 ÓÔÒÁÎÉà ÒÕËÏ×ÏÄÓÔ× ÐÏ ÕÓÔÁÎÏ×ËÅ É ÁÄÍÉÎÉÓÔÒÉÒÏ×ÁÎÉÀ ÓÉÓÔÅÍÙ É ÐÒÉËÌÁÄÎÙÈ ÐÒÏÇÒÁÍÍ, Á ÔÁËÖÅ ÓÔÒÁÎÉÃÙ óÐÒÁ×ÏÞÎÉËÁ. ëÎÉÇÁ (É ÐÏÓÌÅÄÎÉÊ ÒÅÌÉÚ FreeBSD) ÍÏÖÅÔ ÂÙÔØ ÚÁËÁÚÁÎÁ Õ Walnut Creek, CheapBytes, ÉÌÉ × ×ÁÛÅÍ ÌÀÂÉÍÏÍ ËÎÉÖÎÏÍ ÍÁÇÁÚÉÎÅ. éÎÄÅËÓ ISBN 1-57176-227-2. ôÁË ËÁË FreeBSD 2.2.X ÏÓÎÏ×ÁÎÁ ÎÁ ×ÙÐÕÓËÅ Berkeley 4.4BSD-Lite2, ÂÏÌØÛÉÎÓÔ×Ï ÒÕËÏ×ÏÄÓÔ× ÐÏ 4.4BSD ÐÏÄÈÏÄÑÔ Ë FreeBSD 2.2.X. O'Reilly and Associates ÉÚÄÁÀÔ ÓÌÅÄÕÀÝÉÅ ÒÕËÏ×ÏÄÓÔ×Á: 4.4BSD System Manager's Manual By Computer Systems Research Group, UC Berkeley 1st Edition June 1994, 804 pages ISBN: 1-56592-080-5 4.4BSD User's Reference Manual By Computer Systems Research Group, UC Berkeley 1st Edition June 1994, 905 pages ISBN: 1-56592-075-9 4.4BSD User's Supplementary Documents By Computer Systems Research Group, UC Berkeley 1st Edition July 1994, 712 pages ISBN: 1-56592-076-7 4.4BSD Programmer's Reference Manual By Computer Systems Research Group, UC Berkeley 1st Edition June 1994, 886 pages ISBN: 1-56592-078-3 4.4BSD Programmer's Supplementary Documents By Computer Systems Research Group, UC Berkeley 1st Edition July 1994, 596 pages ISBN: 1-56592-079-1 ïÐÉÓÁÎÉÅ ÜÔÉÈ ËÎÉÇ ÍÏÖÅÔ ÂÙÔØ ÎÁÊÄÅÎÏ ÞÅÒÅÚ WWW: 4.4BSD books description. éÚ-ÚÁ ÍÁÌÙÈ ÏÂߣÍÏ× ÐÒÏÄÁÖ, ÜÔÉ ËÎÉÇÉ ÎÁÊÔÉ ÔÒÕÄÎÅÅ. ÷Ù ÎÅ ÏÛÉ£ÔÅÓØ, ÅÓÌÉ ÄÌÑ ÐÏÄÒÏÂÎÏÇÏ ÏÚÎÁËÏÍÌÅÎÉÑ Ó ÕÓÔÒÏÊÓÔ×ÏÍ ÑÄÒÁ 4.4BSD kernel ÏÂÒÁÔÉÔÅÓØ Ë ÓÌÅÄÕÀÝÅÊ ÌÉÔÅÒÁÔÕÒÅ: McKusick, Marshall Kirk, Keith Bostic, Michael J Karels, and John Quarterman. The Design and Implementation of the 4.4BSD Operating System. Reading, Mass. : Addison-Wesley, 1996. ISBN 0-201-54979-4 èÏÒÏÛÅÊ ËÎÉÇÏÊ ÐÏ ÓÉÓÔÅÍÎÏÍÕ ÁÄÍÉÎÉÓÔÒÉÒÏ×ÁÎÉÀ Ñ×ÌÑÅÔÓÑ: Evi Nemeth, Garth Snyder, Scott Seebass & Trent R. Hein, ``Unix System Administration Handbook'', Prentice-Hall, 1995 ISBN: 0-13-151051-7 úáíåþáîéå õÄÏÓÔÏ×ÅÒØÔÅÓØ, ÞÔÏ ×Ù ÐÏÌÕÞÉÌÉ ×ÔÏÒÏÅ ÉÚÄÁÎÉÅ, Ó ËÒÁÓÎÏÊ ÏÂÌÏÖËÏÊ, Á ÎÅ ÐÅÒ×ÏÅ. üÔÁ ËÎÉÇÁ ËÁÓÁÅÔÓÑ ÏÓÎÏ× ÁÄÍÉÎÉÓÔÒÉÒÏ×ÁÎÉÑ, × ÔÏÍ ÞÉÓÌÅ ÐÒÏÔÏËÏÌÏ× TCP/IP, DNS, NFS, SLIP/PPP, sendmail, INN/NNTP, ÓÉÓÔÅÍÙ ÐÅÞÁÔÉ ÉÔÄ.. ïÎÁ ÓÒÁ×ÎÉÔÅÌØÎÏ ÄÏÒÏÇÁÑ (ÐÒÉÍÅÒÎÏ US$45-$55), ÎÏ ÓÔÏÉÔ ÔÏÇÏ. ë ÎÅÊ ÐÒÉÌÁÇÁÅÔÓÑ ÔÁËÖÅ ËÏÍÐÁËÔ-ÄÉÓË Ó ÉÓÈÏÄÎÙÍÉ ÔÅËÓÔÁÍÉ ÒÁÚÌÉÞÎÙÈ ÕÔÉÌÉÔ; ÂÏÌØÛÉÎÓÔ×Ï ÉÈ ÎÉÈ, ÏÄÎÁËÏ, ÔÁËÖÅ ÐÒÉÓÕÔÓÔ×ÕÀÔ ÎÁ ÄÉÓËÅ FreeBSD 2.2.6R (ÎÁ ËÏÔÏÒÏÍ Ë ÔÏÍÕ ÖÅ ÞÁÓÔÏ ÎÁÈÏÄÑÔÓÑ ÂÏÌÅÅ Ó×ÅÖÉÅ ×ÅÒÓÉÉ). ëÁË ÍÏÖÎÏ ÐÏÌÕÞÉÔØ ÄÏÓÔÕÐ Ë ×ÁÛÅÊ ÂÁÚÅ ÓÏÏÂÝÅÎÉÊ Ï ÐÒÏÂÌÅÍÁÈ (Problem Report)? óÏÏÂÝÅÎÉÑ ÐÏÌØÚÏ×ÁÔÅÌÅÊ Ï ×ÓÅÈ ÏÔËÒÙÔÙÈ ÐÒÏÂÌÅÍÁÈ ÍÏÇÕÔ ÂÙÔØ ÚÁÐÒÏÛÅÎÙ (ÉÌÉ ÄÏÂÁ×ÌÅÎÙ) Ó ÐÏÍÏÝØÀ ÎÁÛÅÇÏ ×ÅÂ-ÉÎÔÅÒÆÅÊÓÁ É ÚÁÐÒÏÓÁ. ëÏÍÁÎÄÁ send-pr(1) ÔÁËÖÅ ÍÏÖÅÔ ÂÙÔØ ÉÓÐÏÌØÚÏ×ÁÎÁ ÄÌÑ ÐÅÒÅÄÁÞÉ ÓÏÏÂÝÅÎÉÊ Ï ÐÒÏÂÌÅÍÅ É ÉÚÍÅÎÅÎÉÉ ÚÁÐÒÏÓÁ ÞÅÒÅÚ ÜÌÅËÔÒÏÎÎÕÀ ÐÏÞÔÕ. çÄÅ ÍÏÖÎÏ ÎÁÊÔÉ FAQ × ÆÏÒÍÁÔÁÈ ASCII/PostScript? áËÔÕÁÌØÎÁÑ ×ÅÒÓÉÑ FAQ × ÆÏÒÍÁÔÁÈ PostScript É ÏÂÙÞÎÏÇÏ ÔÅËÓÔÁ (7 ÂÉÔ ASCII É 8 ÂÉÔ Latin1) ÄÏÓÔÕÐÎÁ Ó ×ÅÂ-ÓÅÒ×ÅÒÁ FreeBSD ÉÌÉ Ó ÌÀÂÏÇÏ ÅÇÏ ÚÅÒËÁÌÁ. ëÁË PostScript (ÐÒÉÍÅÒÎÏ 370ëÂ): http://www.freebsd.org/FAQ/FAQ.ps ëÁË ÔÅËÓÔ ASCII (ÐÒÉÍÅÒÎÏ 220ëÂ): http://www.freebsd.org/FAQ/FAQ.ascii ëÁË ÔÅËÓÔ ISO 8859-1 (ÐÒÉÍÅÒÎÏ 220ëÂ): http://www.freebsd.org/FAQ/FAQ.latin1 çÄÅ ÍÏÖÎÏ ÎÁÊÔÉ òÕËÏ×ÏÄÓÔ×Ï × ÆÏÒÍÁÔÁÈ ASCII/PostScript? áËÔÕÁÌØÎÁÑ ×ÅÒÓÉÑ òÕËÏ×ÏÄÓÔ×Á × ÆÏÒÍÁÔÁÈ PostScript É ÏÂÙÞÎÏÇÏ ÔÅËÓÔÁ (7 ÂÉÔ ASCII É 8 ÂÉÔ Latin1) ÄÏÓÔÕÐÎÁ Ó ×ÅÂ-ÓÅÒ×ÅÒÁ FreeBSD ÉÌÉ Ó ÌÀÂÏÇÏ ÅÇÏ ÚÅÒËÁÌÁ. ëÁË PostScript (ÐÒÉÍÅÒÎÏ 1.7íÂ): http://www.freebsd.org/handbook/handbook.ps ëÁË ÔÅËÓÔ ASCII (ÐÒÉÍÅÒÎÏ 1080ëÂ): http://www.freebsd.org/handbook/handbook.ascii ëÁË ÔÅËÓÔ ISO 8859-1 (ÐÒÉÍÅÒÎÏ 1080ëÂ): http://www.freebsd.org/handbook/handbook.latin1 òÕËÏ×ÏÄÓÔ×Ï × ÆÏÒÍÁÔÅ ASCII - ÎÅ ÞÉÓÔÙÊ ÔÅËÓÔ! äÅÊÓÔ×ÉÔÅÌØÎÏ, FAQ É òÕËÏ×ÏÄÓÔ×Ï × ÆÏÒÍÁÔÁÈ ASCII É Latin1 ÎÅ Ñ×ÌÑÀÔÓÑ ÞÉÓÔÏ ÔÅËÓÔÏ×ÙÍÉ ÄÏËÕÍÅÎÔÁÍÉ; ÏÎÉ ÓÏÄÅÒÖÁÔ ÓÉÍ×ÏÌÙ ÆÏÒÍÁÔÉÒÏ×ÁÎÉÑ ÄÌÑ ×Ù×ÏÄÁ ÎÁ ÐÅÞÁÔØ. åÓÌÉ ×ÁÍ ÎÕÖÎÏ ÐÒÅÏÂÒÁÚÏ×ÁÔØ ÜÔÉ ÄÏËÕÍÅÎÔÙ Ë ×ÉÄÕ, ÐÒÉÇÏÄÎÏÍÕ ÄÌÑ ÞÔÅÎÉÑ, ÏÂÒÁÂÏÔÁÊÔÅ ÆÁÊÌ ÐÒÏÇÒÁÍÍÏÊ col: $ col -b < inputfile > outputfile íÏÇÕ ÌÉ Ñ ÚÁÚÅÒËÁÌÉÒÏ×ÁÔØ ×ÅÂ-ÓÅÒ×ÅÒ FreeBSD? îÅÓÏÍÎÅÎÎÏ! åÓÔØ ÎÅÓËÏÌØËÏ ÓÐÏÓÏÂÏ× ÜÔÏ ÓÄÅÌÁÔØ. ó ÐÏÍÏÛØÀ CVSUP: ÷Ù ÍÏÖÅÔÅ ÓËÁÞÉ×ÁÔØ ÏÔÆÏÒÍÁÔÉÒÏ×ÁÎÎÙÅ ÆÁÊÌÙ Ó ÐÏÍÏÝØÀ CVSUP Ó ÓÅÒ×ÅÒÁ cvsup.freebsd.org. äÏÂÁרÔÅ ÓÌÅÄÕÀÝÕÀ ÓÔÒÏËÕ × ËÏÎÆÉÇÕÒÁÃÉÏÎÎÙÊ ÆÁÊÌ cvsup: www release=current hostname=/home base=/usr/local/etc/cvsup prefix=/usr/local/www/data/www.freebsd.org delete old use-rel-suffix ó ÐÏÍÏÝØÀ rsync: ïÂÒÁÔÉÔÅÓØ Ë ÓÔÒÁÎÉÃÅ, ÐÏÓ×ÑÝÅÎÎÏÊ ÚÅÒËÁÌÉÒÏ×ÁÎÉÀ. ó ÐÏÍÏÝØÀ ÚÅÒËÁÌÉÒÏ×ÁÎÉÑ ftp: ÷Ù ÍÏÖÅÔÅ ÓËÁÞÁÔØ ËÏÐÉÀ ×ÅÂ-ÓÅÒ×ÅÒÁ, ÎÁÈÏÄÑÝÕÀÓÑ ÎÁ ftp, ÉÓÐÏÌØÚÕÑ ×ÁÛÅ ÌÀÂÉÍÏÅ ÓÒÅÄÓÔ×Ï ÚÅÒËÁÌÉÒÏ×ÁÎÉÑ ftp. ðÒÏÓÔÏ ÎÁÞÎÉÔÅ Ó ËÁÔÁÌÏÇÁ ftp://ftp.freebsd.org/pub/FreeBSD/FreeBSD-current/www. ñ ÍÏÇÕ ÐÅÒÅ×ÅÓÔÉ ÄÏËÕÍÅÎÔÁÃÉÀ ÎÁ ÑÚÙË ÐÌÅÍÅÎÉ ÍÕÍÂÏ-ÀÍÂÏ. èÏÒÏÛÏ. èÏÔÑ ÍÙ ÎÅ ÓÍÏÖÅÍ ÚÁÐÌÁÔÉÔØ, × ÎÁÛÉÈ ÓÉÌÁÈ ÐÏÄÁÒÉÔØ ×ÁÍ ÂÅÓÐÌÁÔÎÙÊ CD ÉÌÉ ÆÕÔÂÏÌËÕ É ×ÎÅÓÔÉ ×ÁÓ × ÓÐÉÓÏË ÓÏÓÔÁ×ÉÔÅÌÅÊ òÕËÏ×ÏÄÓÔ×Á, ÅÓÌÉ ×Ù ÐÒÅÄÏÓÔÁ×ÉÔÅ ÐÅÒÅ×ÏÄ. äÒÕÇÉÅ ÉÓÔÏÞÎÉËÉ ÉÎÆÏÒÍÁÃÉÉ. óÌÅÄÕÀÝÉÅ ÔÅÌÅËÏÎÆÅÒÅÎÃÉÉ ÓÏÄÅÒÖÁÔ ÉÎÆÏÒÍÁÃÉÀ Ï FreeBSD, ËÏÔÏÒÁÑ ÂÕÄÅÔ ÐÏÌÅÚÎÁ Å£ ÐÏÌØÚÏ×ÁÔÅÌÑÍ: comp.unix.bsd.freebsd.announce (ÍÏÄÅÒÉÒÕÅÍÁÑ) comp.unix.bsd.freebsd.misc comp.unix.bsd.misc òÅÓÕÒÓÙ Internet: ÷ÅÂ-ÓÅÒ×ÅÒ FreeBSD. åÓÌÉ Õ ×ÁÓ ÌÁÐÔÏÐ, ×ÚÇÌÑÎÉÔÅ ÎÁ ÓÔÒÁÎÉÃÕ Tatsumi Hosokawa's Mobile Computing × ñÐÏÎÉÉ. éÎÆÏÒÍÁÃÉÑ Ï SMP (Symmetric MultiProcessing) ÎÁÈÏÄÉÔÓÑ ÎÁ ÓÔÒÁÎÉÃÅ ÐÏÄÄÅÒÖËÉ SMP. éÎÆÏÒÍÁÃÉÑ Ï ÍÕÌØÔÉÍÅÄÉÊÎÙÈ ÐÒÉÌÏÖÅÎÉÑÈ ÄÌÑ FreeBSD ÎÁÈÏÄÉÔÓÑ ÎÁ ÍÕÌØÔÉÍÅÄÉÊÎÏÊ ÓÔÒÁÎÉÃÅ. åÓÌÉ ×Ù ÉÎÔÅÒÅÓÕÅÔÅÓØ ÁÄÁÐÔÅÒÁÍÉ ÚÁÈ×ÁÔÁ ÉÚÏÂÒÁÖÅÎÉÑ Bt848, ÐÅÒÅÊÄÉÔÅ ÐÏ ÓÓÙÌËÅ. ÷ òÕËÏ×ÏÄÓÔ×Å ÐÏ FreeBSD ÉÍÅÅÔÓÑ ÄÏÓÔÁÔÏÞÎÏ ÐÏÌÎÙÊ ÂÉÂÌÉÏÇÒÁÆÉÞÅÓËÉÊ ÒÁÚÄÅÌ, ËÏÔÏÒÙÊ ÓÔÏÉÔ ÐÏÓÍÏÔÒÅÔØ, ÅÓÌÉ ×Ù ÈÏÔÉÔÅ ÐÏÄÙÓËÁÔØ ËÎÉÇÕ ÐÏ ÓÉÓÔÅÍÅ. õÓÔÁÎÏ×ËÁ ëÁËÏÊ ÆÁÊÌ ÎÕÖÎÏ ÓËÁÞÁÔØ ÄÌÑ ÕÓÔÁÎÏ×ËÉ FreeBSD? ÷ ÏÂÝÅÍ ÓÌÕÞÁÅ ×ÁÍ ÎÕÖÅÎ ÔÏÌØËÏ ÏÄÉÎ ÆÁÊÌ floppies/boot.flp, ÓÏÄÅÒÖÁÝÉÊ ÏÂÒÁÚ, ËÏÔÏÒÙÊ ×ÁÍ ÎÕÖÎÏ ÂÕÄÅÔ ÐÅÒÅÎÅÓÔÉ ÎÁ ÄÉÓËÅÔÕ 1.44íÂ É ÚÁÔÅÍ ÚÁÇÒÕÚÉÔØÓÑ Ó ÎÅ£ ÄÌÑ ÔÏÇÏ, ÞÔÏÂÙ ÓËÁÞÁÔØ ×ÓÅ ÏÓÔÁÌØÎÏÅ (× ÐÒÏÃÅÓÓÅ ÕÓÔÁÎÏ×ËÉ ×ÁÍ ÎÕÖÎÏ ÂÕÄÅÔ ÚÁÄÁ×ÁÔØ ÐÁÒÁÍÅÔÒÙ ÓÏÅÄÉÎÅÎÉÑ TCP/IP, ËÏÎÆÉÇÕÒÁÃÉÀ ÌÅÎÔ, ÐÒÉ×ÏÄÏ× CDROM, ÄÉÓËÅÔ, ÒÁÚÄÅÌÏ× DOS É ×ÓÅÇÏ, ÞÔÏ ÂÕÄÅÔ ÎÅÏÂÈÏÄÉÍÏ ÄÌÑ ÕÓÐÅÛÎÏÊ ÉÎÓÔÁÌÌÑÃÉÉ). åÓÌÉ ×Ù ÈÏÔÉÔÅ ÓËÁÞÁÔØ ÄÉÓÔÒÉÂÕÔÉ× ÓÁÍÏÓÔÏÑÔÅÌØÎÏ (ÎÁÐÒÉÍÅÒ, ÄÌÑ ÕÓÔÁÎÏ×ËÉ Ó ÒÁÚÄÅÌÁ DOS), ×ÏÔ ÓÐÉÓÏË ÒÅËÏÍÅÎÄÏ×ÁÎÎÙÈ ÞÁÓÔÅÊ ÄÉÓÔÒÉÂÕÔÉ×Á: bin/ manpages/ compat*/ doc/ src/ssys.* ðÏÌÎÙÅ ÉÎÓÔÒÕËÃÉÉ ÐÏ ÜÔÏÊ ÐÒÏÃÅÄÕÒÅ É Ï ÕÓÔÁÎÏ×ËÅ ×ÏÏÂÝÅ ÍÏÖÎÏ ÎÁÊÔÉ × ÒÁÚÄÅÌÅ òÕËÏ×ÏÄÓÔ×Á, ÐÏÓ×ÑÝ£ÎÎÏÍ ÉÎÓÔÁÌÌÑÃÉÉ FreeBSD. ðÏÍÏÇÉÔÅ! úÁÇÒÕÚÏÞÎÙÊ ÆÁÊÌ ÎÅ ÐÏÍÅÝÁÅÔÓÑ ÎÁ ÄÉÓËÅÔÕ! îÁ ÄÉÓËÅÔÕ ÒÁÚÍÅÒÏÍ 3.5 ÄÀÊÍÁ (1.44íÂ) ÍÏÖÅÔ ÐÏÍÅÓÔÉÔØÓÑ 1474560 ÂÁÊÔ ÄÁÎÎÙÈ. ïÂÒÁÚ ÄÉÓËÅÔÙ ÉÍÅÅÔ ÒÁÚÍÅÒ ÒÏ×ÎÏ 1474560 ÂÁÊÔ. ôÉÐÉÞÎÙÅ ÏÛÉÂËÉ ÐÒÉ ÐÏÄÇÏÔÏ×ËÅ ÚÁÇÒÕÚÏÞÎÏÊ ÄÉÓËÅÔÙ: ïÂÒÁÚ ÄÉÓËÅÔÙ ÂÙÌ ÚÁÇÒÕÖÅÎ ÐÏ FTP ÎÅ × ÒÅÖÉÍÅ binary. îÅËÏÔÏÒÙÅ ËÌÉÅÎÔÓËÉÅ ÐÒÏÇÒÁÍÍÙ FTP ÉÓÐÏÌØÚÕÀÔ ÐÏ ÕÍÏÌÞÁÎÉÀ ÔÅËÓÔÏ×ÙÊ (ascii) ÒÅÖÉÍ ÐÅÒÅÄÁÞÉ É ÐÙÔÁÀÔÓÑ ÐÏÍÅÎÑÔØ ×ÓÅ ÐÒÉÎÑÔÙÅ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÏÓÔÉ ÓÉÍ×ÏÌÏ× "ËÏÎÅà ÓÔÒÏËÉ" ÎÁ ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÅ ÉÍ × ×ÁÛÅÊ ÓÉÓÔÅÍÅ. ÷ ÔÁËÏÍ ÓÌÕÞÁÅ ÏÂÒÁÚ ÚÁÇÒÕÚÏÞÎÏÇÏ ÄÉÓËÁ ÂÕÄÅÔ ÎÅÉÚÂÅÖÎÏ ÉÓÐÏÒÞÅÎ. ðÒÏ×ÅÒØÔÅ ÒÁÚÍÅÒ ÐÏÌÕÞÅÎÎÏÇÏ ÆÁÊÌÁ: ÅÓÌÉ ÏÎ ÎÅ ÔÏÞÎÏ ÔÁËÏÊ ÖÅ, ËÁË ÎÁ FTP-ÓÅÒ×ÅÒÅ, ÔÏ ÏÛÉÂËÁ ÐÒÏÉÚÏÛÌÁ, ÓËÏÒÅÅ ×ÓÅÇÏ, × ÐÒÏÃÅÓÓÅ ÐÅÒÅÄÁÞÉ. ÷Ï ÉÚÂÅÖÁÎÉÅ ÜÔÏÇÏ ××ÅÄÉÔÅ ËÏÍÁÎÄÕ binary × ËÏÍÁÎÄÎÏÊ ÓÔÒÏËÅ FTP ÐÏÓÌÅ ÔÏÇÏ, ËÁË ×Ù ÐÏÄËÌÀÞÉÔÅÓØ Ë ÓÅÒ×ÅÒÕ, ÎÏ ÄÏ ÔÏÇÏ, ËÁË ÎÁÞÁÌÉ ÓËÁÞÉ×ÁÔØ ÆÁÊÌ. äÌÑ ÐÅÒÅÎÏÓÁ ÏÂÒÁÚÁ ÎÁ ÄÉÓËÅÔÕ ÂÙÌÁ ÉÓÐÏÌØÚÏ×ÁÎÁ ËÏÍÁÎÄÁ DOS copy (ÉÌÉ Å£ ÁÎÁÌÏÇ Ó ÇÒÁÆÉÞÅÓËÉÍ ÉÎÔÅÒÆÅÊÓÏÍ). ðÒÏÇÒÁÍÍÙ ÔÉÐÁ copy ÎÅ ÒÁÂÏÔÁÀÔ Ó ÏÂÒÁÚÁÍÉ ÄÉÓËÅÔ, ÐÒÅÄÎÁÚÎÁÞÅÎÎÙÍÉ ÄÌÑ ÚÁÇÒÕÚËÉ. ïÂÒÁÚ ÓÏÄÅÒÖÉÔ ÐÏÌÎÏÅ ÓÏÄÅÒÖÉÍÏÅ ÄÉÓËÅÔÙ, ÄÏÒÏÖËÁ ÚÁ ÄÏÒÏÖËÏÊ, É ÎÅ ÐÒÅÄÎÁÚÎÁÞÅÎ ÄÌÑ ÐÏÍÅÝÅÎÉÑ ÎÁ ÄÉÓËÅÔÕ × ËÁÞÅÓÔ×Å ÏÂÙÞÎÏÇÏ ÆÁÊÌÁ. ÷ÁÍ ÎÅÏÂÈÏÄÉÍÏ ÐÅÒÅÎÅÓÔÉ ÅÇÏ ÎÁ ÄÉÓËÅÔÕ ``ÎÅÐÏÓÒÅÄÓÔ×ÅÎÎÏ'', ÉÓÐÏÌØÚÕÑ ÎÉÚËÏÕÒÏ×ÎÅ×ÙÅ ÓÒÅÄÓÔ×Á (ÔÁËÉÅ ËÁË fdimage ÉÌÉ rawrite), ÏÐÉÓÁÎÎÙÅ × ÒÕËÏ×ÏÄÓÔ×Å. çÄÅ ÉÎÓÔÒÕËÃÉÉ ÐÏ ÉÎÓÔÁÌÌÑÃÉÉ FreeBSD? éÎÓÔÒÕËÃÉÉ ÐÏ ÕÓÔÁÎÏ×ËÅ ÍÏÇÕÔ ÂÙÔØ ÎÁÊÄÅÎÙ × ÇÌÁ×Å òÕËÏ×ÏÄÓÔ×Á, ÐÏÓ×ÑÝ£ÎÎÏÍ ÕÓÔÁÎÏ×ËÅ FreeBSD. þÔÏ ÍÎÅ ÎÕÖÎÏ ÉÍÅÔØ ÄÌÑ ÚÁÐÕÓËÁ FreeBSD? ÷ÁÍ ÎÕÖÅÎ ÐÅÒÓÏÎÁÌØÎÙÊ ËÏÍÐØÀÔÅÒ ÎÅ ÎÉÖÅ 386, Ó 5 ÉÌÉ ÂÏÌÅÅ ÍÅÇÁÂÁÊÔÁÍÉ ïúõ É ÐÏ ËÒÁÊÎÅÊ ÍÅÒÅ 60í Ó×ÏÂÏÄÎÏÇÏ ÐÒÏÓÔÒÁÎÓÔ×Á ÎÁ ×ÉÎÞÅÓÔÅÒÅ. óÉÓÔÅÍÁ ÍÏÖÅÔ ÒÁÂÏÔÁÔØ Ó ÄÅÛ£×ÙÍ ÇÒÁÆÉÞÅÓËÉÍ ÁÄÁÐÔÅÒÏÍ MDA, ÎÏ ÄÌÑ ÔÏÇÏ, ÞÔÏÂÙ ÚÁÐÕÓÔÉÔØ X11R6, ÔÒÅÂÕÅÔÓÑ ×ÅÄÅÏËÁÒÔÁ ÓÔÁÎÄÁÒÔÁ VGA ÉÌÉ ÌÕÞÛÅ. ðÏÓÍÏÔÒÉÔÅ ÔÁËÖÅ ÒÁÚÄÅÌ . õ ÍÅÎÑ ÔÏÌØËÏ 4í ïúõ. óÍÏÇÕ ÌÉ Ñ ÕÓÔÁÎÏ×ÉÔØ FreeBSD? FreeBSD 2.1.7 ÂÙÌÁ ÐÏÓÌÅÄÎÅÊ ×ÅÒÓÉÅÊ, ËÏÔÏÒÕÀ ÍÏÖÎÏ ÂÙÌÏ ÐÒÏÉÎÓÔÁÌÌÉÒÏ×ÁÔØ ÎÁ ÓÉÓÔÅÍÅ Ó 4í ïúõ. âÏÌÅÅ ÎÏ×ÙÅ ×ÅÒÓÉÉ FreeBSD, ÔÉÐÁ 2.2, ÔÒÅÂÕÀÔ ÐÏ ËÒÁÊÎÅÊ ÍÅÒÅ 5í ïúõ ÄÌÑ ÕÓÔÁÎÏ×ËÉ. ÷ÓÅ ×ÅÒÓÉÉ FreeBSD, ×ËÌÀÞÁÑ 3.0, ÂÕÄÕÔ òáâïôáôø ÎÁ 4í ïúõ, ÐÒÏÓÔÏ ÎÁ 4í ÎÅÌØÚÑ ÚÁÐÕÓÔÉÔØ ÉÎÓÔÁÌÌÑÃÉÏÎÎÕÀ ÐÒÏÇÒÁÍÍÕ. ÷Ù ÍÏÖÅÔÅ ÄÏÂÁ×ÉÔØ ÄÏÐÏÌÎÉÔÅÌØÎÕÀ ÐÁÍÑÔØ ÄÌÑ ÉÎÓÔÁÌÌÑÃÉÉ, ÅÓÌÉ ×ÁÍ ÜÔÏ ÎÕÖÎÏ, Á ÐÏÓÌÅ ÔÏÇÏ, ËÁË ÓÉÓÔÅÍÁ ÂÕÄÅÔ ÕÓÔÁÎÏ×ÌÅÎÁ É ÚÁÐÕÝÅÎÁ, ×ÅÒÎÕÔØÓÑ Ë ËÏÎÆÉÇÕÒÁÃÉÉ Ó 4íÂ. éÌÉ ×Ù ÍÏÖÅÔÅ ÐÏÄËÌÀÞÉÔØ ×ÁÛ ÄÉÓË Ë ËÏÍÐØÀÔÅÒÕ Ó ïúõ, ÂÏÌØÛÉÍ ÞÅÍ 4íÂ, ÐÒÏÉÎÓÔÁÌÌÉÒÏ×ÁÔØ ÓÉÓÔÅÍÕ É ÐÅÒÅÓÔÁ×ÉÔØ ÄÉÓË ÏÂÒÁÔÎÏ. åÓÔØ ÅÝ£ ÎÅÓËÏÌØËÏ ÐÒÉÞÉÎ, ÐÏ ËÏÔÏÒÙÍ FreeBSD 2.1.7 ÎÅ ÂÕÄÅÔ ÕÓÔÁÎÁ×ÌÉ×ÁÔØÓÑ Ó 4íÂ. á ÉÍÅÎÎÏ: ÏÎÁ ÎÅ ÂÕÄÅÔ ÕÓÔÁÎÁ×ÌÉ×ÁÔØÓÑ ÎÁ ÓÉÓÔÅÍÅ Ó 640ë ÏÓÎÏ×ÎÏÊ É 3í ÄÏÐÏÌÎÉÔÅÌØÎÏÊ ÐÁÍÑÔÉ. åÓÌÉ ×ÁÛÁ ÍÁÔÅÒÉÎÓËÁÑ ÐÌÁÔÁ ÍÏÖÅÔ ÐÅÒÅÍÅÝÁÔØ ÎÅËÏÔÏÒÕÀ ``ÐÏÔÅÒÑÎÎÕÀ'' ÐÁÍÑÔØ ÉÚ ÏÂÌÁÓÔÉ 640ëÂ × ÏÂÌÁÓÔØ 1íÂ, ÔÏÇÄÁ ÍÏÖÅÔ ÂÙÔØ, ×Ù ÓÍÏÖÅÔÅ ÚÁÐÕÓÔÉÔØ FreeBSD 2.1.7. ðÏÐÒÏÂÕÊÔÅ ×ÏÊÔÉ × ÎÁÓÔÒÏÊËÕ ×ÁÛÅÇÏ BIOS É ÐÏÓÍÏÔÒÅÔØ ÐÁÒÁÍÅÔÒÙ ``ÐÅÒÅÍÅÝÅÎÉÑ'' (remap). ÷ËÌÀÞÉÔÅ ÅÇÏ. íÏÖÅÔ ÂÙÔØ, ÅÝÅ ÐÏÎÁÄÏÂÉÔÓÑ ×ÙËÌÀÞÉÔØ ÔÅÎÅ×ÏÅ ðúõ (ROM shadowing). íÏÖÅÔ ÂÙÔØ, ÓÁÍÏÅ ÐÒÏÓÔÏÅ ÒÅÛÅÎÉÅ - ÎÁÊÔÉ ÅÝÅ 4í ÎÁ ×ÒÅÍÑ ÉÎÓÔÁÌÌÑÃÉÉ. ïÔËÏÍÐÉÌÉÒÕÊÔÅ ÑÄÒÏ ÔÏÌØËÏ Ó ÔÅÍÉ ÐÁÒÁÍÅÔÒÁÍÉ, ËÏÔÏÒÙÅ ÎÕÖÎÙ É ÚÁÔÅÍ ÕÂÅÒÉÔÅ 4íÂ. ÷Ù ÍÏÖÅÔÅ ÔÁËÖÅ ÐÒÏÉÎÓÔÁÌÌÉÒÏ×ÁÔØ ×ÅÒÓÉÀ 2.0.5, Á ÚÁÔÅÍ ÏÂÎÏ×ÉÔØ ×ÁÛÕ ÓÉÓÔÅÍÕ ÄÏ 2.1.7 Ó ÐÏÍÏÝØÀ ÐÕÎËÔÁ ``upgrade'' ÐÒÏÇÒÁÍÍÙ ÉÎÓÔÁÌÌÑÃÉÉ 2.1.7. ðÏÓÌÅ ÕÓÔÁÎÏ×ËÉ ×Ù ÍÏÖÅÔÅ ÐÏÓÔÒÏÉÔØ ÑÄÒÏ, ËÏÔÏÒÏÅ ÂÕÄÅÔ ÒÁÂÏÔÁÔØ ÎÁ 4íÂ. ëÔÏ-ÔÏ ÄÁÖÅ ÕÍÕÄÒÑÌÓÑ ÚÁÇÒÕÖÁÔØÓÑ Ó 2í (ÈÏÔÑ ÓÉÓÔÅÍÁ × ÏÓÎÏ×ÎÏÍ ÂÙÌÁ ÎÅÒÁÂÏÔÏÓÐÏÓÏÂÎÁ :-)) ëÁË ÓÄÅÌÁÔØ ÏÒÉÇÉÎÁÌØÎÕÀ ÚÁÇÒÕÚÏÞÎÕÀ ÄÉÓËÅÔÕ? ÷ ÎÁÓÔÏÑÝÉÊ ÍÏÍÅÎÔ ÎÅÔ *ÐÒÏÓÔÏÇÏ* ÓÐÏÓÏÂÁ ÓÄÅÌÁÔØ ÏÒÉÇÉÎÁÌØÎÕÀ ÚÁÇÒÕÚÏÞÎÕÀ ÄÉÓËÅÔÕ. æÁÊÌ /usr/src/release/floppies/Makefile ÐÒÅÄÎÁÚÎÁÞÅÎ ÉÍÅÎÎÏ ÄÌÑ ÜÔÏÇÏ, ÏÄÎÁËÏ ÎÁ ÓÁÍÏÍ ÄÅÌÅ that's supposed to let you *just* make those floppies, but it's not really gelled yet. þÔÏÂÙ ÓÄÅÌÁÔØ ÏÒÉÇÉÎÁÌØÎÙÊ ÒÅÌÉÚ, ÓÌÅÄÕÊÔÅ ÉÎÓÔÒÕËÃÉÑÍ . íÏÇÕ ÌÉ Ñ ÉÍÅÔØ ÂÏÌÅÅ ÞÅÍ ÏÄÎÕ ÏÐÅÒÁÃÉÏÎÎÕÀ ÓÉÓÔÅÍÕ ÎÁ ÍÏ£Í PC? ÷ÚÇÌÑÎÉÔÅ ÎÁ ÜÔÏ ÒÕËÏ×ÏÄÓÔ×Ï. íÏÖÅÔ ÌÉ Windows 95 ÓÏÓÕÝÅÓÔ×Ï×ÁÔØ Ó FreeBSD? óÎÁÞÁÌÁ ÐÒÏÉÎÓÔÁÌÌÉÒÕÊÔÅ Windows 95, ÚÁÔÅÍ FreeBSD. íÅÎÅÄÖÅÒ ÚÁÇÒÕÚËÉ FreeBSD ÂÕÄÅÔ ÕÐÒÁ×ÌÑÔØ ÐÒÏÃÅÓÓÏÍ ÚÁÇÒÕÚËÉ Win95 ÉÌÉ FreeBSD, åÓÌÉ ×Ù ÐÏÓÌÅ ÜÔÏÇÏ ÅÝ£ ÒÁÚ ÐÒÏÉÎÓÔÁÌÌÉÒÕÅÔÅ Windows 95, ÔÏ × ÐÒÏÃÅÓÓÅ ÕÓÔÁÎÏ×ËÉ ÍÅÎÅÄÖÅÒ ÚÁÇÒÕÚËÉ ÂÕÄÅÔ ÇÒÕÂÏ ÕÄÁÌ£Î. åÓÌÉ ÔÁËÏÅ ÓÌÕÞÉÔÓÑ, ÏÂÒÁÔÉÔÅÓØ Ë ÓÌÅÄÕÀÝÅÍÕ ÒÁÚÄÅÌÕ. Windows 95 ÕÎÉÞÔÏÖÉÌÁ ÍÏÊ ÍÅÎÅÄÖÅÒ ÚÁÇÒÕÚËÉ! ëÁË ÍÎÅ ÅÇÏ ×ÅÒÎÕÔØ? ÷Ù ÍÏÖÅÔÅ ÐÅÒÅÕÓÔÁÎÏ×ÉÔØ ÍÅÎÅÄÖÅÒ ÚÁÇÒÕÚËÉ FreeBSD Ä×ÕÍÑ ÓÐÏÓÏÂÁÍÉ: úÁÐÕÓÔÉÔÅ DOS, ÐÅÒÅÊÄÉÔÅ × ËÁÔÁÌÏÇ tools/ ×ÁÛÅÇÏ ÄÉÓÔÒÉÂÕÔÉ×Á FreeBSD É ÎÁÊÄÉÔÅ ÐÒÏÇÒÁÍÍÕ bootinst.exe. úÁÐÕÓÔÉÔŠţ ÓÌÅÄÕÀÝÉÍ ÏÂÒÁÚÏÍ: bootinst.exe boot.bin É ÍÅÎÅÄÖÅÒ ÚÁÇÒÕÚËÉ ÂÕÄÅÔ ÐÅÒÅÕÓÔÁÎÏ×ÌÅÎ. úÁÇÒÕÚÉÔÅÓØ Ó ÕÓÔÁÎÏ×ÏÞÎÏÊ ÄÉÓËÅÔÙ FreeBSD É ÐÅÒÅÊÄÉÔÅ × ÍÅÎÀ ÕÓÔÁÎÏ×ËÉ Custom install. ÷ÙÂÅÒÉÔÅ ÐÕÎËÔ Partition. ÷ÙÂÅÒÉÔÅ ÕÓÔÒÏÊÓÔ×Ï, ÎÁ ËÏÔÏÒÏÍ ÂÕÄÅÔ ÒÁÓÐÏÌÁÇÁÔØÓÑ ÄÌÑ ×ÁÛ ÍÅÎÅÄÖÅÒÁ ÚÁÇÒÕÚËÉ (ÜÔÏ ÂÕÄÅÔ ÓÁÍÙÊ ÐÅÒ×ÙÊ ÄÉÓË) É ËÏÇÄÁ ×Ù ÐÅÒÅÊÄÅÔÅ Ë ÒÅÄÁËÔÉÒÏ×ÁÎÉÀ ÒÁÚÄÅÌÏ×, ÐÅÒ×ÙÍ ÄÅÌÏÍ (ÔÏ ÅÓÔØ ÅÝ£ ÎÅ ÄÅÌÁÑ ÎÉËÁËÉÈ ÉÚÍÅÎÅÎÉÊ) ×ÙÂÅÒÉÔÅ (W)rite. ðÏÓÌÅÄÕÅÔ ÚÁÐÒÏÓ ÎÁ ÐÏÄÔ×ÅÒÖÄÅÎÉÅ, ÏÔ×ÅÔØÔÅ yes, É ËÏÇÄÁ ×Ù ÐÏÐÁÄ£ÔÅ × ÍÅÎÀ ×ÙÂÏÒÁ ÍÅÎÅÄÖÅÒÁ ÚÁÇÒÕÚËÉ, ×ÙÂÅÒÉÔÅ ÐÕÎËÔ "Boot Manager". íÅÎÅÄÖÅÒ ÚÁÇÒÕÚËÉ ÂÕÄÅÔ ÐÅÒÅÐÉÓÁÎ ÎÁ ÄÉÓË. ôÅÐÅÒØ ÎÕÖÎÏ ×ÙÊÔÉ ÉÚ ÍÅÎÀ ÕÓÔÁÎÏ×ËÉ É ÚÁÇÒÕÚÉÔØÓÑ Ó ×ÉÎÞÅÓÔÅÒÁ ËÁË ÏÂÙÞÎÏ. íÏÖÎÏ ÌÉ ÉÓÐÏÌØÚÏ×ÁÔØ ÄÉÓË Ó ÐÏ×ÒÅÖÄ£ÎÎÙÍÉ ÂÌÏËÁÍÉ? ðÒÏÇÒÁÍÍÁ ÏÂÎÁÒÕÖÅÎÉÑ ÐÏ×ÒÅÖÄ£ÎÎÙÈ ÂÌÏËÏ× (bad144) ÐÏÍÏÇÁÅÔ ÎÅ ×Ï ×ÓÅÈ 100% ÓÌÕÞÁÅ×; (Ë ÎÁÛÅÍÕ ÓÔÙÄÕ) ÍÏÖÎÏ, Ë ÓÏÖÁÌÅÎÉÀ, ÓËÁÚÁÔØ, ÞÔÏ ÅÓÌÉ Õ ×ÁÓ ÄÉÓË IDE ÉÌÉ ESDI Ó ÂÏÌØÛÉÍ ËÏÌÉÞÅÓÔ×ÏÍ ÐÏ×ÒÅÖÄ£ÎÎÙÈ ÂÌÏËÏ×, ÔÏ FreeBSD, ÐÏÈÏÖÅ, ÎÅ ÄÌÑ ×ÁÓ. ïÄÎÁËÏ ÏÎÁ ÒÁÂÏÔÁÅÔ ÎÁ ÔÙÓÑÞÁÈ ÓÉÓÔÅÍ Ó ÐÏ×ÒÅÖÄ£ÎÎÙÍÉ ÄÉÓËÁÍÉ, ÔÁË ÞÔÏ ÌÕÞÛÅ ×ÓÅÇÏ ÓÎÁÞÁÌÁ ×Ó£ ÖÅ ÐÏÐÒÏÂÏ×ÁÔØ ÓÁÍÉÍ. åÓÌÉ ÐÏ×ÒÅÖÄ£ÎÎÙÅ ÂÌÏËÉ ÎÁÈÏÄÑÔÓÑ ÎÁ SCSI ÄÉÓËÅ, ×ÚÇÌÑÎÉÔÅ ÎÁ . óÔÒÁÎÎÙÅ ×ÅÝÉ ÐÒÏÉÓÈÏÄÑÔ ÐÒÉ ÚÁÇÒÕÚËÅ Ó ÉÎÓÔÁÌÌÑÃÉÏÎÎÏÇÏ ÄÉÓËÁ! åÓÌÉ ×Ù ×ÉÄÉÔÅ, ÞÔÏ ËÁË ÍÁÛÉÎÁ ÚÁ×ÉÓÁÅÔ ÉÌÉ ÎÅÏÖÉÄÁÎÎÎÏ ÐÅÒÅÚÁÇÒÕÖÁÅÔÓÑ, ËÏÇÄÁ ×Ù ÐÙÔÁÅÔÅÓØ ÚÁÇÒÕÚÉÔØÓÑ Ó ÕÓÔÁÎÏ×ÏÞÎÏÊ ÄÉÓËÅÔÙ, ×Ù ÄÏÌÖÎÙ ÚÁÄÁÔØ ÓÅÂÅ ÔÒÉ ×ÏÐÒÏÓÁ:- ÷Ù ÉÓÐÏÌØÚÕÅÔÅ ÎÏ×ÕÀ, ÔÏÌØËÏ ÞÔÏ ÏÔÆÏÒÍÁÔÉÒÏ×ÁÎÎÕÀ ÄÉÓËÅÔÕ (ÐÒÅÄÐÏÞÔÉÔÅÌØÎÏ ÎÅÉÓÐÏÌØÚÏ×ÁÎÎÕÀ ÐÒÑÍÏ ÉÚ ËÏÒÏÂËÉ, Á ÎÅ ÔÕ, ÞÔÏ ÐÒÉÛÌÁ Ó ÐÏÐÕÌÑÒÎÙÍ ÖÕÒÎÁÌÏÍ É ÐÏÓÌÅÄÎÉÅ ÔÒÉ ÇÏÄÁ ÐÒÏ×ÁÌÑÌÁÓØ ÐÏÄ ÄÉ×ÁÎÏÍ)? ÷Ù ÓËÁÞÁÌÉ ÏÂÒÁÚ ÄÉÓËÅÔÙ × Ä×ÏÉÞÎÏÍ ÒÅÖÉÍÅ? (ÎÅ ÓÍÕÝÁÊÔÅÓØ, ÄÁÖÅ ÌÕÞÛÉÅ ÉÚ ÎÁÓ ×ÒÅÍÑ ÏÔ ×ÒÅÍÅÎÉ ÓËÁÞÉ×ÁÀÔ Ä×ÏÉÞÎÙÊ ÆÁÊÌ × ÒÅÖÉÍÅ ASCII!) åÓÌÉ ×Ù ÉÓÐÏÌØÚÕÅÔÅ ×ÓÅ ÜÔÉ Ó×ÅÖÅÉÓÐÅÞÅÎÎÙÅ ÏÐÅÒÁÃÉÏÎÎÙÅ ÓÉÓÔÅÍÙ ÔÉÐÁ Windows95 ÉÌÉ WindowsNT, ÕÄÏÓÔÏ×ÅÒØÔÅÓØ, ÞÔÏ ×Ù ÉÈ ÚÁËÒÙÌÉ É ÐÅÒÅÓÔÁÒÔÏ×ÁÌÉ ÍÁÛÉÎÕ × ÄÏÂÒÏÍ ÓÔÁÒÏÍ DOS? ðÏÈÏÖÅ, ÞÔÏ ÜÔÉ ÏÐÅÒÁÃÉÏÎÎÙÅ ÓÉÓÔÅÍÙ ÍÏÇÕÔ ×ÌÉÑÔØ ÎÁ ÐÒÏÇÒÁÍÍÙ, ÒÁÂÏÔÁÀÝÉÅ ÎÅÐÏÓÒÅÄÓÔ×ÅÎÎÏ Ó ÏÂÏÒÕÄÏ×ÁÎÉÅÍ, ÞÔÏ É ÄÅÌÁÅÔ ÐÒÏÇÒÁÍÍÁ ÓÏÚÄÁÎÉÑ ÕÓÔÁÎÏ×ÏÞÎÏÇÏ ÄÉÓËÁ; ÄÁÖÅ ÚÁÐÕÓË ÉÚ DOS × ÇÒÁÆÉÞÅÓËÏÊ ÏÂÏÌÏÞËÅ ÍÏÖÅÔ ×ÙÚ×ÁÔØ ÐÒÏÂÌÅÍÙ. åÓÔØ Ó×ÅÄÅÎÉÑ, ÞÔÏ Netscape ×ÙÚÙ×ÁÅÔ ÐÒÏÂÌÅÍÙ ÐÒÉ ÓËÁÞÉ×ÁÎÉÉ ÚÁÇÒÕÚÏÞÎÏÇÏ ÄÉÓËÁ, ÔÁË ÞÔÏ ÌÕÞÛÅ ×ÓÅÇÏ ÉÓÐÏÌØÚÏ×ÁÔØ ÓÐÅÃÉÁÌØÎÕÀ ÐÒÏÇÒÁÍÍÕ FTP, ÅÓÌÉ ÏÎÁ Õ ×ÁÓ ÅÓÔØ. ðÏÍÏÇÉÔÅ! îÅ ÍÏÇÕ ÕÓÔÁÎÏ×ÉÔØ ÓÉÓÔÅÍÕ Ó ÌÅÎÔÙ! åÓÌÉ ×Ù ÉÎÓÔÁÌÌÉÒÕÅÔÅ 2.1.7R Ó ÌÅÎÔÙ, ×Ù ÄÏÌÖÎÙ ÓÏÚÄÁÔØ ÌÅÎÔÕ Ó ÒÁÚÍÅÒÏÍ ÂÌÏËÁ tar, ÒÁ×ÎÙÍ 10 (5120 ÂÁÊÔ). òÁÚÍÅÒ ÂÌÏËÁ tar ÐÏ ÕÍÏÌÞÁÎÉÀ ÒÁ×ÅÎ 20 (10240 ÂÁÊÔ), ÐÏÜÔÏÍÕ ÌÅÎÔÙ, ÓÏÚÄÁÎÎÙÅ ÓÏ ÓÔÁÎÄÁÒÔÎÙÍ ÒÁÚÍÅÒÏÍ ÂÌÏËÁ, ÎÅ ÍÏÇÕÔ ÂÙÔØ ÉÓÐÏÌØÚÏ×ÁÎÙ ÄÌÑ ÕÓÔÁÎÏ×ËÉ 2.1.7R; ×Ù ÐÏÌÕÞÉÔÅ ÓÏÏÂÝÅÎÉÅ Ï ÏÛÉÂËÅ, ÇÏ×ÏÒÑÝÅÅ, ÞÔÏ ÒÁÚÍÅÒ ÚÁÐÉÓÉ ÓÌÉÛËÏÍ ÂÏÌØÛÏÊ. óÏÅÄÉÎÅÎÉÅ Ä×ÕÈ ÍÁÛÉÎ Ó FreeBSD ÞÅÒÅÚ ÐÁÒÁÌÌÅÌØÎÙÅ ÐÏÒÔÙ (PLIP) äÌÑ ÜÔÏÇÏ ÎÕÖÅÎ ÓÏÅÄÉÎÉÔÅÌØÎÙÊ ÛÎÕÒ ÔÉÐÁ laplink É ÎÁ ÏÂÅÉÈ ÍÁÛÉÎÁÈ ÄÏÌÖÎÁ ÂÙÔØ ×ËÌÀÞÅÎÁ ÐÏÄÄÅÒÖËÁ ÄÒÁÊ×ÅÒÁ lpt. $ dmesg | grep lp lpt0 at 0x378-0x37f irq 7 on isa lpt0: Interrupt-driven port lp0: TCP/IP capable interface ðÏÄËÌÀÞÉÔÅ ËÁÂÅÌØ laplink Ë ÐÁÒÁÌÌÅÌØÎÙÍ ÐÏÒÔÁÍ ËÏÍÐØÀÔÅÒÏ×. îÁÓÔÒÏÊÔÅ ÐÁÒÁÍÅÔÒÙ ÓÅÔÅ×ÏÇÏ ÉÎÔÅÒÆÅÊÓÁ lp0 ÎÁ ÏÂÅÉÈ ÍÁÛÉÎÁÈ, ×ÏÊÄÑ ÁÄÍÉÎÉÓÔÒÁÔÏÒÏÍ. îÁÐÒÉÍÅÒ, ÅÓÌÉ ×Ù ÈÏÔÉÔÅ ÓÏÅÄÉÎÉÔØ ÈÏÓÔÙ Ó ÉÍÅÎÁÍÉ max É moritz max <-----> moritz IP Address 10.0.0.1 10.0.0.2 ÎÁ ÍÁÛÉÎÅ max ÄÁÊÔÅ ËÏÍÁÎÄÕ # ifconfig lp0 10.0.0.1 10.0.0.2 ÎÁ ÍÁÛÉÎÅ moritz ÚÁÐÕÓÔÉÔÅ # ifconfig lp0 10.0.0.2 10.0.0.1 üÔÏ ×Ó£! ðÏÖÁÌÕÊÓÔÁ, ÐÒÏÞÔÉÔÅ ÅÝ£ ÓÔÒÁÎÉÃÙ óÐÒÁ×ÏÞÎÉËÁ lp(4) É lpt(4). ÷Ù ÔÁËÖÅ ÄÏÌÖÎÙ ÄÏÂÁ×ÉÔØ ÜÔÉ ÈÏÓÔÙ × ÆÁÊÌ /etc/hosts 127.0.0.1 localhost.my.domain localhost 10.0.0.1 max.my.domain max 10.0.0.2 moritz.my.domain moritz äÌÑ ÐÒÏ×ÅÒËÉ ÒÁÂÏÔÏÓÐÏÓÏÂÎÏÓÔÉ Ó×ÑÚÉ ×ÙÐÏÌÎÉÔÅ ÓÌÅÄÕÀÝÉÅ ÄÅÊÓÔ×ÉÑ: ÎÁ ÍÁÛÉÎÅ max: $ ifconfig lp0 lp0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 10.0.0.1 --> 10.0.0.2 netmask 0xff000000 $ netstat -r Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire moritz max UH 4 127592 lp0 $ ping -c 4 moritz PING moritz (10.0.0.2): 56 data bytes 64 bytes from 10.0.0.2: icmp_seq=0 ttl=255 time=2.774 ms 64 bytes from 10.0.0.2: icmp_seq=1 ttl=255 time=2.530 ms 64 bytes from 10.0.0.2: icmp_seq=2 ttl=255 time=2.556 ms 64 bytes from 10.0.0.2: icmp_seq=3 ttl=255 time=2.714 ms --- moritz ping statistics --- 4 packets transmitted, 4 packets received, 0% packet loss round-trip min/avg/max/stddev = 2.530/2.643/2.774/0.103 ms íÏÖÎÏ ÌÉ Ñ ÕÓÔÁÎÏ×ÉÔØ ÓÉÓÔÅÍÕ ÎÁ ÌÜÐÔÏÐ ÞÅÒÅÚ PLIP (Parallel Line IP)? äÌÑ ÜÔÏÇÏ ÎÕÖÎÏ ÓÏÅÄÉÎÉÔØ Ä×Á ËÏÍÐØÀÔÅÒÁ ÐÁÒÁÌÌÅÌØÎÙÍ ËÁÂÅÌÅÍ Laplink ÓÌÅÄÕÀÝÉÍ ÏÂÒÁÚÏÍ: +----------------------------------------+ |A-name A-End B-End Descr. Port/Bit | +----------------------------------------+ |DATA0 2 15 Data 0/0x01 | |-ERROR 15 2 1/0x08 | +----------------------------------------+ |DATA1 3 13 Data 0/0x02 | |+SLCT 13 3 1/0x10 | +----------------------------------------+ |DATA2 4 12 Data 0/0x04 | |+PE 12 4 1/0x20 | +----------------------------------------+ |DATA3 5 10 Strobe 0/0x08 | |-ACK 10 5 1/0x40 | +----------------------------------------+ |DATA4 6 11 Data 0/0x10 | |BUSY 11 6 1/0x80 | +----------------------------------------+ |GND 18-25 18-25 GND - | +----------------------------------------+ ðÏÓÍÏÔÒÉÔÅ ÔÁËÖÅ ÜÔÏ ÚÁÍÅÞÁÎÉÅ ÎÁ ÓÔÒÁÎÉÃÅ, ÐÏÓ×ÑÝ£ÎÎÏÊ ÍÏÂÉÌØÎÙÍ ×ÙÞÉÓÌÅÎÉÑÍ. ëÁËÉÅ ÐÁÒÁÍÅÔÒÙ ÄÉÓËÁ Ñ ÄÏÌÖÅÎ ÉÓÐÏÌØÚÏ×ÁÔØ? (ðÏÄ "ÐÁÒÁÍÅÔÒÁÍÉ" ÄÉÓËÁ ÍÙ ÐÏÎÉÍÁÅÍ ÞÉÓÌÏ ÄÏÒÏÖÅË, ÇÏÌÏ×ÏË É ÓÅËÔÏÒÏ× ÎÁ ÄÏÒÏÖËÕ ÎÁ ÄÉÓËÅ, ÞÔÏ ÄÌÑ ÐÒÏÓÔÏÔÙ ÏÂÏÚÎÁÞÁÅÔÓÑ ËÁË C/H/S. éÍÅÎÎÏ ÔÁË ÒÁÂÏÔÁÅÔ BIOS ÐÅÒÓÏÎÁÌØÎÙÈ ËÏÍÐØÀÔÅÒÏ× ÐÒÉ ÞÔÅÎÉÉ ÉÌÉ ÚÁÐÉÓÉ ÄÉÓËÁ). ðÏÈÏÖÅ, ÞÔÏ ÐÏ ËÁËÉÍ-ÔÏ ÐÒÉÞÉÎÁÍ ÜÔÏ ×ÙÚÙ×ÁÅÔ ÍÎÏÇÏ ÎÅÄÏÒÁÚÕÍÅÎÉÊ. ðÒÅÖÄÅ ×ÓÅÇÏ, ÆÉÚÉÞÅÓËÉÅ ÐÁÒÁÍÅÔÒÙ ÄÉÓËÁ SCSI ÎÅ ÉÍÅÀÔ ÎÉËÁËÏÇÏ ÚÎÁÞÅÎÉÑ, ÔÁË ËÁË FreeBSD ÒÁÂÏÔÁÅÔ × ÔÅÒÍÉÎÁÈ ÄÉÓËÏ×ÙÈ ÂÌÏËÏ×. æÁËÔÉÞÅÓËÉ ÎÅÔ ÔÁËÏÇÏ ÐÏËÁÚÁÔÅÌÑ, ËÁË "ÆÉÚÉÞÅÓËÉÅ ÐÁÒÁÍÅÔÒÙ", ÔÁË ËÁË ÐÌÏÔÎÏÓÔØ ÒÁÚÍÅÝÅÎÉÑ ÓÅËÔÏÒÏ× ÒÁÚÌÉÞÎÁ ÐÏ ×ÓÅÍÕ ÄÉÓËÕ; ÔÏ, ÞÔÏ ÐÒÏÉÚ×ÏÄÉÔÅÌÉ ÎÁÚÙ×ÁÀÔ "ÒÅÁÌØÎÙÍÉ" ÆÉÚÉÞÅÓËÉÍÉ ÐÁÒÁÍÅÔÒÁÍÉ ÏÂÙÞÎÏ ÒÁÚÍÅÒÙ ÒÁÂÏÞÉÅ ×ÙÙÚ×ÁÂÔ ÐÏ ËÒÁÊÎÅÊ ÍÅÒÅ ÐÏÔÅÒÑÎÎÏÅ ÐÒÏÓÔÒÁÎ\ÓÔ×Ï. äÌÑ ÄÉÓËÏ× IDE, FreeBSD ÒÁÂÏÔÁÅÔ × ÔÅÒÍÉÎÁÈ C/H/S, ÎÏ ×Ï ×ÓÅÈ ÓÏ×ÒÅÍÅÎÎÙÈ ÄÉÓËÁÈ ÏÎÉ ÐÒÅÏÂÒÁÚÏ×Ù×ÁÀÔÓÑ ×Ï ×ÎÕÔÒÅÎÎÅÅ ÐÒÅÄÓÔÁ×ÌÅÎÉÅ. éÍÅÅÔ ÚÎÁÞÅÎÉÅ ÔÏÌØËÏ ÌÏÇÉÞÅÓËÉÅ ÐÁÒÁÍÅÔÒÙ - ÜÔÏ ÔÏ, ÞÔÏ ÐÏÌÕÞÁÅÔ BIOS, ËÏÇÄÁ ÓÐÒÁÛÉ×ÁÅÔ "ËÁËÉÅ Õ ÔÅÂÑ ÐÁÒÁÍÅÔÒÙ?", Á ÚÁÔÅÍ ÉÓÐÏÌØÚÕÅÔ ÄÌÑ ÏÂÒÁÝÅÎÉÑ Ë ÄÉÓËÕ. ôÁË ËÁË FreeBSD ÉÓÐÏÌØÚÕÅÔ BIOS ÐÒÉ ÚÁÇÒÕÚËÅ, ÏÞÅÎØ ×ÁÖÎÏ ÐÏÌÕÞÉÔØ ×ÅÒÎÙÅ ÐÁÒÁÍÅÔÒÙ. ÷ ÞÁÓÔÎÏÓÔÉ, ÅÓÌÉ Õ ×ÁÓ ÎÁ ÄÉÓËÅ ÎÁÈÏÄÑÔÓÑ ÎÅÓËÏÌØËÏ ÏÐÅÒÁÃÉÏÎÎÙÈ ÓÉÓÔÅÍ, ÏÎÉ ÏÂÅ ÄÏÌÖÎÙ ÉÍÅÔØ ÏÄÉÎÁËÏ×ÏÅ ÐÒÅÄÓÔÁ×ÌÅÎÉÅ Ï ÐÁÒÁÍÅÔÒÁÈ ÄÉÓËÁ, ÉÎÁÞÅ ÓÅÒØ£ÚÎÙÅ ÐÒÏÂÌÅÍÙ ÐÒÉ ÚÁÇÒÕÚËÅ ÎÅÉÚÂÅÖÎÙ! ÷ ÓÌÕÞÁÅ ÄÉÓËÏ× SCSI, ÐÁÒÁÍÅÔÒÙ ÉÓÐÏÌØÚÕÀÔÓÑ × ÚÁ×ÉÓÉÍÏÓÔÉ ÏÔ ÔÏÇÏ, ×ËÌÀÞÅÎÁ ÌÉ ÐÏÄÄÅÒÖËÁ ÒÁÓÛÉÒÅÎÎÏÊ ÔÒÁÎÓÌÑÃÉÉ ÎÁ ×ÁÛÅÍ ËÏÎÔÒÏÌÌÅÒÅ (ÞÔÏ ÞÁÓÔÏ ÏÂÏÚÎÁÞÁÅÔÓÑ ËÁË "support for DOS disks >1GB" ÉÌÉ ÞÔÏ-ÔÏ ÐÏÈÏÖÅÅ). åÓÌÉ ÜÔÁ ×ÏÚÍÏÖÎÏÓÔØ ×ÙËÌÀÞÅÎÁ, ÔÏ ÉÓÐÏÌØÚÕÊÔÅ N ÄÏÒÏÖÅË, 64 ÇÏÌÏ×ËÉ É 32 ÓÅËÔÏÒÁ ÎÁ ÄÏÒÏÖËÕ, ÇÄÅ N - ÜÔÏ £ÍËÏÓÔØ ÄÉÓËÁ × ÍÅÇÁÂÁÊÔÁÈ. îÁÐÒÉÍÅÒ, 2çÂÁÊÔÎÙÊ ÄÉÓË ÄÏÌÖÅÎ ÉÍÅÔØ 2048 ÄÏÒÏÖÅË, 64 ÇÏÌÏ×ËÉ É 32 ÓÅËÔÏÒÁ Á ÄÏÒÏËÕ. åÓÌÉ ÔÒÁÎÓÌÑÃÉÑ ×ËÌÀÞÅÎÁ (ÞÔÏ ÏÂÙÞÎÏ ÉÓÐÏÌØÚÕÅÔÓÑ ÄÌÑ ÐÒÅÏÄÏÌÅÎÉÑ ÎÅËÏÔÏÒÙÈ ÏÇÒÁÎÉÞÅÎÉÊ MSDOS) É £ÍËÏÓÔØ ÄÉÓËÁ ÐÒÅ×ÙÛÁÅÔ 1çâ, ÉÓÐÏÌØÚÕÅÔÓÑ M ÄÏÒÏÖÅË, 63 ÓÅËÔÏÒÁ ÎÁ ÄÏÒÏÖËÕ (*ÎÅ* 64) É 255 ÇÏÌÏ×ÏË, ÇÄÅ 'M' - ÜÔÏ ÏÂß£Í ÄÉÓËÁ × ÍÅÇÁÂÁÊÔÁÈ, ÐÏÄÅÌ£ÎÎÙÊ ÎÁ 7.844238 (!). ôÁËÉÍ ÏÂÒÁÚÏÍ, ÎÁÛ ÄÉÓË ÏÂߣÍÏÍ 2çâ ÂÕÄÅÔ ÉÍÅÔØ 261 ÄÏÒÏÖËÕ, 63 ÓÅËÔÏÒÁ ÎÁ ÄÏÒÏÖËÕ É 255 ÇÏÌÏ×ÏË. åÓÌÉ ×Ù ÎÅ Õ×ÅÒÅÎÙ, ÉÌÉ FreeBSD ÏÛÉÂÁÅÔÓÑ ÐÒÉ ÏÐÒÅÄÅÌÅÎÉÉ ÐÁÒÁÍÅÔÒÏ× ÄÉÓËÁ ×Ï ×ÒÅÍÑ ÕÓÔÁÎÏ×ËÉ, ÓÁÍÙÊ ÐÒÏÓÔÏÊ ÓÐÏÓÏ ÒÅÛÉÔØ ÜÔÕ ÐÒÏÂÌÅÍÕ - ÓÏÚÄÁÔØ ÎÁ ÄÉÓËÅ ÍÁÌÅÎØËÉÊ ÒÁÚÄÅÌ DOS. ðÏÓÌÅ ÜÔÏÇÏ ÐÁÒÁÍÅÔÒÙ ÄÉÓËÁ ÄÏÌÖÎÙ ÏÐÒÅÄÅÌÉÔØÓÑ ÐÒÁ×ÉÌØÎÏ (É ×Ù ×ÓÅÇÄÁ ÍÏÖÅÔÅ ÕÄÁÌÉÔØ ÒÁÚÄÅÌ DOS × ÒÅÄÁËÔÏÒÅ ÒÁÚÄÅÌÏ×, ÅÓÌÉ ×Ù ÎÅ ÈÏÔÉÔÅ ÅÇÏ ÓÏÈÒÁÎÉÔØ, ÉÌÉ ÏÓÔÁ×ÉÔØ ÅÇÏ ÄÌÑ ÎÁÓÔÒÏÊËÉ ÓÅÔÅ×ÙÈ ÁÄÁÐÔÅÒÏ× É ÐÏÄÏÂÎÙÈ ×ÅÝÅÊ). ëÒÏÍÅ ÔÏÇÏ, ÓÕÝÅÓÔ×ÕÅÔ Ó×ÏÂÏÄÎÏ ÄÏÓÔÕÐÎÁÑ ÕÔÉÌÉÔÁ, ÒÁÓÐÒÏÓÔÒÁÎÑÅÍÁÑ ×ÍÅÓÔÅ Ó FreeBSD, ËÏÔÏÒÁÑ ÎÁÚÙ×ÁÅÔÓÑ ``pfdisk.exe'' (ÍÏÖÎÏ ÎÁÊÔÉ × ËÁÔÁÌÏÇÅ tools ËÏÍÐÁËÔ-ÄÉÓËÁ Ó FreeBSD ÉÌÉ ÎÁ ÒÁÚÌÉÞÎÙÈ ftp-ÓÅÒ×ÅÒÁÈ), ËÏÔÏÒÕÀ ÍÏÖÎÏ ÉÓÐÏÌØÚÏ×ÁÔØ ÄÌÑ ÏÐÒÅÄÅÌÅÎÉÑ ÐÁÒÁÍÅÔÒÏ×, ËÏÔÏÒÙÅ ÉÓÐÏÌØÚÕÀÔÓÑ ÄÒÕÇÉÍÉ ÏÐÅÒÁÃÉÏÎÎÙÍÉ ÓÉÓÔÅÍÁÍÉ, ÒÁÓÐÏÌÏÖÅÎÎÙÍÉ ÎÁ ×ÁÛÅÍ ÄÉÓËÅ. úÁÔÅÍ ×Ù ÍÏÖÅÔÅ ÉÓÐÏÌØÚÏ×ÁÔØ ÜÔÉ ÐÁÒÁÍÅÔÒÙ × ÒÅÄÁËÔÏÒÅ ÒÁÚÄÅÌÏ×. åÓÔØ ÌÉ ÏÇÒÁÎÉÞÅÎÉÑ ÎÁ ÒÁÚÂÉÅÎÉÅ ÄÉÓËÁ? äÁ. ÷Ù ÄÏÌÖÎÙ ÕÂÅÄÉÔØÓÑ, ÞÔÏ ËÏÒÎÅ×ÏÊ ÒÁÚÄÅÌ ÎÁÈÏÄÉÔÓÑ ÄÏ 1024 ÄÏÒÏÖËÉ, ÔÁË ÞÔÏÂÙ BIOS ÍÏÇÌÁ ÚÁÇÒÕÚÉÔØ Ó ÎÅÇÏ ÑÄÒÏ. (úÁÍÅÔØÔÅ, ÞÔÏ ÜÔÏ ÏÇÒÁÎÉÞÅÎÉÅ BIOS ËÏÍÐØÀÔÅÒÁ, Á ÎÅ FreeBSD). äÌÑ ÄÉÓËÁ SCSI, ÜÔÏ, ËÁË ÐÒÁ×ÉÌÏ, ÂÕÄÅÔ ÏÚÎÁÞÁÔØ, ÞÔÏ ËÏÒÎÅ×ÏÊ ÒÁÚÄÅÌ ÒÁÓÐÏÌÁÇÁÅÔÓÑ × ÐÅÒ×ÙÈ 1024í (ÉÌÉ × ÐÅÒ×ÙÈ 4096íÂ, ÅÓÌÉ ×ËÌÀÞÅÎ ÒÅÖÉÍ ÒÁÓÛÉÒÅÎÎÏÊ ÔÒÁÎÓÌÑÃÉÉ - ÐÏÓÍÏÔÒÉÔÅ ÐÒÅÄÙÄÕÝÉÊ ×ÏÐÒÏÓ). äÌÑ ÄÉÓËÏ× IDE ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÅÅ ÚÎÁÞÅÎÉÅ ÒÁ×ÎÏ 504íÂ. ëÁË ÎÁÓÞÅÔ ÍÅÎÅÄÖÅÒÏ× ÄÉÓËÁ? õ ÍÅÎÑ ÂÏÌØÛÏÊ ÄÉÓË! FreeBSD ÒÁÓÐÏÚÎÁ£Ô Ontrack Disk Manager É ÄÏÐÕÓËÁÅÔ ÅÇÏ ÉÓÐÏÌØÚÏ×ÁÎÉÅ. äÒÕÇÉÅ ÍÅÎÅÄÖÅÒÙ ÄÉÓËÏ× ÎÅ ÐÏÄÄÅÒÖÉ×ÁÀÔÓÑ. åÓÌÉ ×Ù ÈÏÔÉÔÅ ÉÓÐÏÌØÚÏ×ÁÔØ ÄÉÓË Ó FreeBSD, ×ÁÍ ÎÅ ÎÕÖÅÎ ÍÅÎÅÄÖÅÒ ÄÉÓËÁ. ïÔËÏÎÆÉÇÕÒÉÒÕÊÔÅ ÄÉÓË ÎÁ ÓÔÏÌØËÏ ÐÒÏÓÔÒÁÎÓÔ×Á, ÓËÏÌØËÏ ÓÍÏÖÅÔ ÏÂÒÁÂÏÔÁÔØ BIOS (ÏÂÙÞÎÏ 504 ÍÅÇÁÂÁÊÔÁ). É FreeBSD ÒÁÚÐÏÚÎÁÅÔ, ÓËÏÌØËÏ ÍÅÓÔÁ Õ ×ÁÓ ÅÓÔØ ÎÁ ÓÁÍÏÍ ÄÅÌÅ. åÓÌÉ ×Ù ÉÓÐÏÌØÚÕÅÔÅ ÓÔÁÒÙÊ ÄÉÓË Ó ËÏÎÔÒÏÌÌÅÒÏÍ MFM, ×ÁÍ ÍÏÖÅÔ ÐÏÔÒÅÂÏ×ÁÔØÓÑ ÔÏÞÎÏ ÕËÁÚÁÔØ FreeBSD ËÏÌÉÞÅÓÔ×Ï ÉÓÐÏÌØÚÕÅÍÙÈ ÄÏÒÏÖÅË. åÓÌÉ ×Ù ÈÏÔÉÔÅ ÉÓÐÏÌØÚÏ×ÁÔØ FreeBSD ÓÏ×ÍÅÓÔÎÏ Ó ÄÒÕÇÏÊ ÏÐÅÒÁÃÉÏÎÎÏÊ ÓÉÓÔÅÍÏÊ, ÜÔÏ ÍÏÖÎÏ ÓÄÅÌÁÔØ É ÂÅÚ ÍÅÎÅÄÖÅÒÁ ÄÉÓËÁ: ÕÄÏÓÔÏ×ÅÒØÔÅÓØ, ÞÔÏ ÚÁÇÒÕÚÏÞÎÙÊ ÒÁÚÄÅÌ FreeBSD É ÒÁÚÄÅÌ ÄÌÑ ÄÒÕÇÏÊ ÏÐÅÒÁÃÉÏÎÎÏÊ ÓÉÓÔÅÍÙ ÎÅ ×ÙÈÏÄÑÔ ÚÁ ÐÒÅÄÅÌÙ 1024 ÄÏÒÏÖËÉ. åÓÌÉ ×Ù ÂÕÄÅÔÅ ÏÓÔÏÒÏÖÎÙ, 20 ÍÅÇÁÂÁÊÔÎÏÇÏ ÒÁÚÄÅÌÁ ÄÌÑ ÚÁÇÒÕÚËÉ ÂÕÄÅÔ ÄÏÓÔÁÔÏÞÎÏ. ðÒÉ ÚÁÇÒÕÚËÅ FreeBSD ×ÙÄÁÅÔÓÑ ÓÏÏÂÝÅÎÉÅ ``Missing Operating System'' üÔÏ ËÌÁÓÓÉÞÅÓËÉÊ ÓÌÕÞÁÊ, ËÏÇÄÁ FreeBSD É DOS ÉÌÉ ÄÒÕÇÁÑ ÏÐÅÒÁÃÉÏÎÎÁÑ ÓÉÓÔÅÍÁ ËÏÎÆÌÉËÔÕÀÔ ÐÏ ÐÏ×ÏÄÕ ÄÉÓËÁ. ÷ÁÍ ÎÕÖÎÏ ÂÕÄÅÔ ÐÅÒÅÕÓÔÁÎÏ×ÉÔØ FreeBSD, ÎÏ ÉÍÅÊÔÅ × ×ÉÄÕ, ÞÔÏ ÉÎÓÔÒÕËÃÉÉ, ÄÁÎÎÙÅ ×ÙÛÅ, ÐÏÍÏÇÁÀÔ ×ÓÅÇÄÁ. ðÏÓÌÅ ÐÒÉÇÌÁÛÅÎÉÑ ÍÅÎÅÄÖÅÒÁ ÚÁÇÒÕÚËÉ `F?' ÎÉÞÅÇÏ ÎÅ ÐÒÏÉÓÈÏÄÉÔ. üÔÏ ÅÝ£ ÏÄÉÎ ÐÒÉÚÎÁË ÐÒÏÂÌÅÍÙ, ÏÐÉÓÁÎÎÏÊ × ÐÒÅÄÙÄÕÝÅÍ ÒÁÚÄÅÌÅ. ðÁÒÁÍÅÔÒÙ ÄÉÓËÁ × BIOS É ÐÁÒÁÍÅÔÒÙ, ÉÓÐÏÌØÚÕÅÍÙÅ FreeBSD, ÎÅ ÓÏ×ÐÁÄÁÀÔ. åÓÌÉ ×ÁÛ ËÏÎÔÒÏÌÌÅÒ ÉÌÉ BIOS ÐÏÄÄÅÒÖÉ×ÁÀÔ ÔÒÁÎÓÌÑÃÉÀ ÄÏÒÏÖÅË (ÞÁÓÔÏ ÏÂÏÚÎÁÞÁÅÍÕÀ ËÁË ``>1GB drive support''), ÐÏÐÒÏÂÕÊÔÅ ×ËÌÀÞÉÔØ ÜÔÕ ×ÏÚÍÏÖÎÏÓÔØ É ÐÅÒÅÕÓÔÁÎÏ×ÉÔØ FreeBSD. õ ÍÅÎÑ >16í ïúõ. üÔÏ ÎÅ ×ÙÚÏ×ÅÔ ÎÉËÁËÉÈ ÐÒÏÂÌÅÍ? ëÒÏÍÅ ÒÁÚ×Å ÞÔÏ ×ÏÐÒÏÓÁ ÐÒÏÉÚ×ÏÄÉÔÅÌØÎÏÓÔÉ, ÎÅÔ. ÷Ï FreeBSD 2.X ×ÓÔÒÏÅÎ ËÏÎÔÒÏÌØ ÇÒÁÎÉà ÂÕÆÅÒÏ× (bounce buffers), ÞÔÏ ÐÏÚ×ÏÌÑÅÔ ×ÁÛÉÍ ËÏÎÔÒÏÌÌÅÒÁÍ, ÒÁÂÏÔÁÀÝÉÍ × ÒÅÖÉÍÅ ÐÒÑÍÏÇÏ ÄÏÓÔÕÐÁ Ë ÛÉÎÅ, ÉÍÅÔØ ÄÏÓÔÕÐ Ë ÐÁÍÑÔÉ ×ÙÛÅ 16íÂ. (úÁÍÅÔØÔÅ, ÞÔÏ ÜÔÏ ÂÕÄÅÔ ÔÒÅÂÏ×ÁÔØÓÑ ÔÏÌØËÏ ÅÓÌÉ ×Ù ÉÓÐÏÌØÚÕÅÔÅ ÕÓÔÒÏÊÓÔ×Á ISA, ÈÏÔÑ ÜÔÏÇÏ ÔÁËÖÅ ÔÒÅÂÕÀÔ ÎÅËÏÔÏÒÙÅ ÕÓÔÒÏÊÓÔ×Á EISA É VLB). ïÂÒÁÔÉÔÅÓØ Ë ÒÁÚÄÅÌÕ Ï , ÅÓÌÉ Õ ×ÁÓ ÓÔÏÌØËÏ ïúõ ÉÌÉ ×Ù ÉÓÐÏÌØÚÕÅÔÅ ÍÁÛÉÎÙ Compaq ÉÌÉ BIOS, ËÏÔÏÒÙÊ ×ÙÄÁ£Ô ÎÅ×ÅÒÎÙÅ ÐÁÒÁÍÅÔÒÙ ïúõ. îÕÖÎÏ ÌÉ ÕÓÔÁÎÁ×ÌÉ×ÁÔØ ×ÓÅ ÉÓÈÏÄÎÙÅ ÔÅËÓÔÙ ÓÉÓÔÅÍÙ? ÷ ÏÂÝÅÍ ÓÌÕÞÁÅ, ÎÅÔ. ïÄÎÁËÏ ÍÙ ÎÁÓÔÏÑÔÅÌØÎÏ ÒÅËÏÍÅÎÄÕÅÍ ÐÒÏÉÎÓÔÁÌÌÉÒÏ×ÁÔØ, ËÁË ÍÉÎÉÍÕÍ, ÉÓÈÏÄÎÙÅ ÔÅËÓÔÙ ÎÁÂÏÒÁ ``base'', ×ËÌÀÞÁÀÝÉÊ ÎÅËÏÔÏÒÙÅ ÆÁÊÌÙ, ÚÄÅÓØ ÕÐÏÍÉÎÁÅÍÙÅ, É ``sys'', × ËÏÔÏÒÙÊ ×ËÌÀÞÅÎÙ ÉÓÈÏÄÎÙÅ ÔÅËÓÔÙ ÑÄÒÁ. äÌÑ ÒÁÂÏÔÙ ÓÉÓÔÅÍÙ ÐÒÉÓÕÔÓÔ×ÉÑ ÉÓÈÏÄÎÙÈ ÔÅËÓÔÏ× ÎÅ ÔÒÅÂÕÅÔÓÑ, ÒÁÚ×Å ÞÔÏ ÄÌÑ ÐÒÏÇÒÁÍÍÙ ËÏÎÆÉÇÕÒÉÒÏ×ÁÎÉÑ ÑÄÒÁ config. úÁ ÉÓËÌÀÞÅÎÉÅÍ ÉÓÈÏÄÎÙÈ ÔÅËÓÔÏ× ÑÄÒÁ, ÓÔÒÕËÔÕÒÁ ÉÓÈÏÄÎÙÈ ÔÅËÓÔÏ× ÓÉÓÔÅÍÙ ÐÏÚ×ÏÌÑÅÔ ÍÏÎÔÉÒÏ×ÁÔØ Å£ × ÒÅÖÉÍÅ "ÔÏÌØËÏ ÄÌÑ ÞÔÅÎÉÑ" ÞÅÒÅÚ NFS É ËÏÍÐÉÌÉÒÏ×ÁÔØ ÐÒÏÇÒÁÍÍÙ. (éÚ-ÚÁ ÏÇÒÁÎÉÞÅÎÉÑ ÎÁ ÉÓÈÏÄÎÙÅ ÔÅËÓÔÙ ÑÄÒÁ ÍÙ ÒÅËÏÍÅÎÄÕÅÍ ÍÏÎÔÉÒÏ×ÁÔØ ÉÈ ÎÅ ÐÒÑÍÏ × /usr/src, Á × ËÁËÏÊ-ÎÉÂÕÄØ ÄÒÕÇÏÊ ËÁÔÁÌÏÇ Ó ÓÉÍ×ÏÌÉÞÅÓËÉÍÉ ÓÓÙÌËÁÍÉ ÄÌÑ ÄÕÂÌÉÒÏ×ÁÎÉÑ ÓÔÒÕËÔÕÒÙ ËÁÔÁÌÏÇÏ×. îÁÌÉÞÉÅ ÉÓÈÏÄÎÙÈ ÔÅËÓÔÏ× ÓÉÓÔÅÍÙ ÚÎÁÞÉÔÅÌØÎÏ ÏÂÌÅÇÞÁÅÔ ÐÒÏÃÅÓÓ ÏÂÎÏ×ÌÅÎÉÑ ÄÏ ÎÏ×ÙÈ ×ÅÒÓÉÊ FreeBSD. äÌÑ ×ÙÂÏÒÁ ÐÏÄÍÎÏÖÅÓÔ×Á ÉÓÈÏÄÎÙÈ ÔÅËÓÔÏ×, ËÏÔÏÒÏÅ ×Ù ÈÏÔÉÔÅ ÕÓÔÁÎÏ×ÉÔØ, ÉÓÐÏÌØÚÕÊÔÅ ÐÕÎËÔ ÍÅÎÀ Custom, ËÏÇÄÁ ÎÁÈÏÄÉÔÅÓØ × ÍÅÎÀ Distributions ÐÒÏÇÒÁÍÍÙ ÕÓÔÁÎÏ×ËÉ. óËÒÉÐÔ src/install.sh ÔÁËÖÅ ÉÎÓÔÁÌÌÉÒÕÅÔ ÞÁÓÔØ ÉÓÈÏÄÎÙÈ ÔÅËÓÔÏ×, × ÚÁ×ÉÓÉÍÏÓÔÉ ÏÔ ÕËÁÚÁÎÎÏÇÏ ÐÒÉ ÚÁÐÕÓËÅ ÐÁÒÁÍÅÔÒÁ. îÕÖÎÏ ÌÉ ÐÅÒÅËÏÍÐÉÌÉÒÏ×ÁÔØ ÑÄÒÏ? ðÏÓÔÒÏÅÎÉÅ ÎÏ×ÏÇÏ ÑÄÒÁ ×ÓÅÇÄÁ ÂÙÌÏ ÎÅÏÂÈÏÄÉÍÙÍ ÛÁÇÏÍ ÐÒÉ ÕÓÔÁÎÏ×ËÅ FreeBSD, ÏÄÎÁËÏ ÐÏÓÌÅÄÎÉÅ ÒÅÌÉÚÙ ÐÒÅÄÏÓÔÁ×ÌÑÀÔ ÂÏÌÅÅ ÄÒÕÖÅÓÔ×ÅÎÎÙÊ ÉÎÓÔÒÕÍÅÎÔ ËÏÎÆÉÇÕÒÁÃÉÉ ÑÄÒÁ. ÷ ËÏÍÁÎÄÎÏÊ ÓÔÒÏËÅ ÎÁ ÐÒÉÇÌÁÛÅÎÉÅ ÚÁÇÒÕÚÞÉËÁ FreeBSD (boot:) ××ÅÄÉÔÅ "-c" É ×Ù ÐÏÐÁÄ£ÔÅ × ÜËÒÁÎ ×ÉÚÕÁÌØÎÏÊ ÎÁÓÔÒÏÊËÉ, ËÏÔÏÒÁÑ ÐÏÚ×ÏÌÑÅÔ ËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÎÁÓÔÒÏÊËÉ ÑÄÒÁ ÄÌÑ ÂÏÌØÛÉÎÓÔ×Á ÁÄÁÐÔÅÒÏ× ISA. ïÄÎÁËÏ ÒÅËÏÍÅÎÄÕÅÔÓÑ, ÞÔÏ ÐÏÔÏÍ ×Ù ×Ó£ ÖÅ ÐÏÓÔÒÏÉÔÅ ÎÏ×ÏÅ ÑÄÒÏ, ÓÏÄÅÒÖÁÝÅÅ ÔÏÌØËÏ ÔÅ ÄÒÁ×ÅÒÁ, ËÏÔÏÒÙÅ ×ÁÍ ÎÕÖÎÙ, ÄÌÑ ÔÏÇÏ, ÞÔÏÂÙ ÓÜËÏÎÏÍÉÔØ ÎÅÍÎÏÇÏ ïúõ, ÈÏÔÑ ÄÌÑ ÂÏÌØÛÉÓÔ×Á ÓÉÓÔÅÍ ÜÔÏ ÂÏÌØÛÅ ÎÅ Ñ×ÌÑÅÔÓÑ ÂÏÌØÛÏÊ ÎÅÏÂÈÏÄÉÍÏÓÔØÀ. îÁÈÏÄÑÓØ ÚÁ ÐÒÅÄÅÌÁÍÉ óûá, ÍÏÇÕ ÌÉ Ñ ÉÓÐÏÌØÚÏ×ÁÔØ ÓÉÓÔÅÍÕ ÛÉÆÒÏ×ÁÎÉÑ DES? åÓÌÉ ÎÅÔ ÁÂÓÏÌÀÔÎÏÊ ÎÅÏÂÈÏÄÉÍÏÓÔÉ × ÉÓÐÏÌØÚÏ×ÁÎÉÉ ËÒÉÐÔÏÇÒÁÆÉÞÅÓËÏÊ ÓÉÓÔÅÍÙ ÔÉÐÁ DES, ÔÏ ÄÌÑ ÂÏÌØÛÅÊ ÂÅÚÏÐÁÓÎÏÓÔÉ ×Ù ÍÏÖÅÔÅ ÉÓÐÏÌØÚÏ×ÁÔØ ÓÔÁÎÄÁÒÔÎÕÀ ÄÌÑ FreeBSD ÓÉÓÔÅÍÙ ËÒÉÐÔÏÇÒÁÆÉÉ ÂÅÚ ÜËÓÐÏÒÔÎÙÈ ÏÇÒÁÎÉÞÅÎÉÊ. éÓÐÏÌØÚÕÅÍÙÊ ÐÏ ÕÍÏÌÞÁÎÉÀ ÓËÒÁÍÂÌÅÒ ÐÁÒÏÌÅÊ FreeBSD 2.0 × ÎÁÓÔÏÑÝÅÅ ×ÒÅÍÑ ÏÓÎÏ×ÁÎ ÎÁ MD5, É ÂÏÌÅÅ ÕÓÔÏÊÞÉ× Ë ÐÏÄÂÏÒÕ ÐÁÒÏÌÑ, ÞÅÍ DES, Ë ÔÏÍÕ ÖÅ ÐÏÚ×ÏÌÑÅÔ ÉÍÅÔØ ÂÏÌÅÅ ÄÌÉÎÎÙÅ ÐÁÒÏÌÉ. åÄÉÎÓÔ×ÅÎÎÏÊ ÐÒÉÞÉÎÏÊ ÎÅ ÉÓÐÏÌØÚÏ×ÁÔØ ÛÉÆÒÏ×ÁÎÉÅ MD5 ÍÏÖÅÔ ÂÙÔØ ÔÒÅÂÏ×ÁÎÉÅ ÉÓÐÏÌØÚÏ×ÁÔØ ÏÄÉÎ É ÔÏÔ ÖÅ ÆÁÊÌ ÐÁÒÏÌÅÊ ÍÅÖÄÕ ÓÉÓÔÅÍÁÍÉ FreeBSD É ÎÅ-FreeBSD. ôÁË ËÁË ÁÌÇÏÒÉÔÍ ÛÉÆÒÏ×ÁÎÉÑ DES ÎÅ ÍÏÖÅÔ ÂÙÔØ ÚÁËÏÎÎÏ ÜËÓÐÏÒÔÉÒÏ×ÁÎ ÉÚ óûá, ÐÏÌØÚÏ×ÁÔÅÌÉ ÚÁ ÉÈ ÐÒÅÄÅÌÁÍÉ ÎÅ ÄÏÌÖÎÙ ÓÇÒÕÖÁÔØ ÜÔÏ ÐÒÏÇÒÁÍÍÎÏÅ ÏÂÅÓÐÅÞÅÉÉÅ (ËÁË ÞÁÓÔØ secrdist) Ó ÁÍÅÒÉËÁÎÓËÉÈ ftp-ÓÅÒ×ÅÒÏ×. óÕÝÅÓÔ×ÕÅÔ, ÏÄÎÁËÏ, ÂÉÂÌÉÏÔÅËÁ, ÚÁÍÅÎÑÀÝÁÑ libcrypt, ËÏÔÏÒÁÑ ÏÓÎÏ×ÁÎÁ ÎÁ ËÏÄÅ, ÒÁÚÒÁÂÏÔÁÎÎÏÍ × á×ÓÔÒÁÌÉÉ äÜ×ÉÄÏÍ âÁÒÒÅÎÏÍ (David Burren). üÔÏÔ ËÏÄ ÍÏÖÎÏ ÎÁÊÔÉ ÎÁ ÎÅËÏÔÏÒÙÈ ÎÅÁÍÅÒÉËÁÎÓËÉÈ ÚÅÒËÁÌÁÈ FreeBSD. éÓÈÏÄÎÙÅ ÔÅËÓÔÙ ÄÌÑ libcrypt ÂÅÚ ÜËÓÐÏÒÔÎÙÈ ÏÇÒÁÎÉÞÅÎÉÊ, É ÓÁÍÉ ÐÒÏÇÒÁÍÍÙ, Å£ ÉÓÐÏÌØÚÕÀÝÉÅ, ÍÏÖÎÏ ÐÏÌÕÞÉÔØ ÓÏ ÓÌÅÄÕÀÝÉÈ ftp-ÓÅÒ×ÅÒÏ×: àÖÎÁÑ áÆÒÉËÁ ftp://ftp.internat.freebsd.org/pub/FreeBSD ftp://storm.sea.uct.ac.za/pub/FreeBSD âÒÁÚÉÌÉÑ ftp://ftp.iqm.unicamp.br/pub/FreeBSD æÉÎÌÑÎÄÉÑ ftp://nic.funet.fi/pub/unix/FreeBSD/eurocrypt îÅÁÍÅÒÉËÁÎÓËÉÊ securedist ÍÏÖÅÔ ÂÙÔØ ÉÓÐÏÌØÚÏ×ÁÎ ËÁË ÎÅÐÏÓÒÅÄÓÔ×ÅÎÎÕÀ ÚÁÍÅÎÕ ÁÍÅÒÉËÁÎÓËÏÇÏ securedist. üÔÏÔ securedist ÕÓÔÁÎÁ×ÌÉ×ÁÅÔÓÑ ÔÁËÉÍ ÖÅ ÏÂÒÁÚÏÍ, ËÁË É ÁÍÅÒÉËÁÎÓËÉÊ ×ÁÒÉÁÎÔ (ÏÂÒÁÔÉÔÅÓØ Ë ÚÁÍÅÞÁÎÉÑÍ ÐÏ ÕÓÔÁÎÏ×ËÅ). åÓÌÉ ×Ù ÓÏÂÉÒÁÅÔÅÓØ ÕÓÔÁÎÁ×ÌÉ×ÁÔØ ÛÉÆÒÏ×ÁÎÉÅ DES, ×Ù ÄÏÌÖÎÙ ÓÄÅÌÁÔØ ÜÔÏ ÄÏ ÔÏÇÏ, ËÁË ÂÕÄÅÔÅ ÕÓÔÁÎÁ×ÌÉ×ÁÔØ ÄÒÕÇÏÅ ÐÒÏÇÒÁÍÍÎÏÅ ÏÂÅÓÐÅÞÅÎÉÅ. ðÏÌØÚÏ×ÁÔÅÌÉ ÚÁ ÐÒÅÄÅÌÁÍÉ óûá ÎÅ ÄÏÌÖÎÙ ÓÇÒÕÖÁÔØ ÌÀÂÏÅ ËÒÉÐÔÏÇÒÁÆÉÞÅÓËÏÅ ÐÒÏÇÒÁÍÍÎÏÅ ÏÂÅÓÐÅÞÅÎÉÅ ÉÚ óûá. üÔÏ ÍÏÖÅÔ ×ÙÚ×ÁÔØ ÐÒÏÂÌÅÍÙ ÀÒÉÄÉÞÅÓËÏÇÏ ÐÌÁÎÁ Õ ÔÅÈ, ÞÔÏ ÚÁÎÉÍÁÅÔÓÑ ÏÂÓÌÕÖÉ×ÁÎÉÅÍ ÔÅÈ ÓÁÊÔÏ×, Ó ËÏÔÏÒÙÈ ÂÙÌÏ ÓÇÒÕÖÅÎÏ ÐÒÏÇÒÁÍÍÎÏÅ ÏÂÅÓÐÅÞÅÎÉÅ. ÷ ÒÁÚÒÁÂÏÔËÅ ÎÁÈÏÄÉÔÓÑ ÎÅÁÍÅÒÉËÁÎÓËÉÊ ÄÉÓÔÒÉÂÕÔÉ× ÓÉÓÔÅÍÙ Kerberos, É ÔÅËÕÝÁÑ ×ÅÒÓÉÑ ÍÏÖÅÔ ÐÏÌÕÞÅÎÁ Ó ÁÎÏÎÉÍÎÏÇÏ FTP ÐÏ ÁÄÒÅÓÕ braae.ru.ac.za. óÕÝÅÓÔ×ÕÅÔ , ÐÏÓ×ÑÝ£ÎÎÙÊ ÎÅÁÍÅÒÉËÁÎÓËÏÍÕ ËÒÉÐÔÏÇÒÁÆÉÞÅÓËÏÍÕ ÐÒÏÇÒÁÍÍÎÏÍÕ ÏÂÅÓÐÅÞÅÎÉÀ. äÌÑ ÚÁÐÒÏÓÁ ÉÎÆÏÒÍÁÃÉÉ ÐÏÛÌÉÔÅ ÐÉÓØÍÏ, ÓÏÄÅÒÖÁÝÅÅ ÏÄÎÕ ÓÔÒÏÞËÕ ``help'' × ÔÅÌÅ ÓÏÏÂÝÅÎÉÑ ÎÁ ÁÄÒÅÓ <majordomo@braae.ru.ac.za>. úÁÇÒÕÚËÁ Ó ÕÓÔÁÎÏ×ÏÞÎÏÊ ÄÉÓËÅÔÙ ÐÒÅÒÙ×ÁÅÔÓÑ ÎÁ ÓÏÏÂÝÅÎÉÉ ``Probing Devices...''. åÓÌÉ Õ ×ÁÓ ÕÓÔÁÎÏ×ÌÅÎÙ ÕÓÔÒÏÊÓÔ×Á IDE Zip ÉÌÉ Jaz, ÕÂÅÒÉÔÅ ÉÈ É ÐÏÐÒÏÂÕÊÔÅ ÓÎÏ×Á. ïÎÉ ÍÏÇÕÔ ÍÅÛÁÔØ ÉÎÓÔÁÌÌÑÃÉÏÎÎÏÊ ÐÒÏÇÒÁÍÍÅ. ðÏÓÌÅ ÔÏÇÏ, ËÁË ÓÉÓÔÅÍÁ ÂÕÄÅÔ ÕÓÔÁÎÏ×ÌÅÎÁ, ×Ù ÍÏÖÅÔÅ ÓÎÏ×Á ÐÏÄËÌÀÞÉÔØ ÕÓÔÒÏÊÓÔ×Á. îÁÄÅÅÍÓÑ, ÞÔÏ ÜÔÏ ÂÕÄÅÔ ÉÓÐÒÁ×ÌÅÎÏ × ÂÏÌÅÅ ÐÏÚÄÎÉÈ ÒÅÌÉÚÁÈ. óÏÏÂÝÅÎÉÅ ``panic: cant mount root'' ÐÏÓÌÅ ÐÅÒÅÚÁÇÒÕÚËÉ ÔÏÌØËÏ ÞÔÏ ÕÓÔÁÎÏ×ÌÅÎÎÏÊ ÓÉÓÔÅÍÙ. üÔÁ ÏÛÉÂËÁ ÐÒÏÑ×ÌÑÅÔÓÑ, ËÏÇÄÁ ÅÓÔØ ÎÅÓÏÇÌÁÓÏ×ÁÎÉÅ ÍÅÖÄÕ ÐÒÅÄÓÔÁ×ÌÅÎÉÑÍÉ ÚÁÇÒÕÚÏÞÎÏÇÏ ÂÌÏËÁ É ÑÄÒÁ Ï ÄÉÓËÏ×ÙÈ ÕÓÔÒÏÊÓÔ×ÁÈ. üÔÁ ÏÛÉÂËÁ ÏÂÙÞÎÏ ÐÒÏÑ×ÌÑÅÔÓÑ ÎÁ ÓÉÓÔÅÍÁÈ Ó Ä×ÕÍÑ ÄÉÓËÁÍÉ IDE, Ó ×ÉÎÞÅÓÔÅÒÁÍÉ, ÕÓÔÁÎÏ×ÌÅÎÎÙÍÉ ËÁË ×ÅÄÕÝÉÊ ÉÌÉ ÅÄÉÎÓÔ×ÅÎÎÙÊ ÎÁ ÏÔÄÅÌØÎÙÈ ËÏÎÔÒÏÌÌÅÒÁÈ IDE, Ó FreeBSD, ÉÎÓÔÁÌÌÉÒÏ×ÁÎÎÏÊ ÎÁ ×ÔÏÒÏÍ ËÏÎÔÒÏÌÌÅÒÅ IDE. úÁÇÒÕÚÏÞÎÙÅ ÂÌÏËÉ ÄÕÍÁÀÔ, ÞÔÏ ÓÉÓÔÅÍÁ ÕÓÔÁÎÏ×ÌÅÎÁ ÎÁ wd1 (×ÔÏÒÏÊ ÄÉÓË BIOS), ÔÏÇÄÁ ËÁË ÑÄÒÏ ÄÁ£Ô ÐÅÒ×ÏÍÕ ÄÉÓËÕ ÎÁ ×ÔÏÒÏÍ ËÏÎÔÒÏÌÌÅÒÅ ÎÁÚ×ÁÎÉÅ wd2. ðÏÓÌÅ ÏÂÎÁÒÕÖÅÎÉÑ ÕÓÔÒÏÊÓÔ×Á ÑÄÒÏ ÐÙÔÁÅÔÓÑ ÓÍÏÎÔÉÒÏ×ÁÔØ ÔÏ, ÞÔÏ ÚÁÇÒÕÚÏÞÎÙÅ ÂÌÏËÉ ×ÙÄÁÀÔ ÚÁ ÚÁÇÒÕÚÏÞÎÙÊ ÄÉÓË, wd1, ÔÏÇÄÁ ËÁË ÏÎ ÎÁ ÓÁÍÏÍ ÄÅÌÅ wd2, É ÏÛÉÂÁÅÔÓÑ. äÌÑ ÒÁÚÒÅÛÅÎÉÑ ÜÔÏÊ ÐÒÏÂÌÅÍÙ ÓÄÅÌÁÊÔÅ ÏÄÎÏ ÉÚ ÓÌÅÄÕÀÝÉÈ ÄÅÊÓÔ×ÉÊ: ÷ ÐÒÉÇÌÁÛÅÎÉÉ Boot: ÎÁÂÅÒÉÔÅ 1:wd(2,a)kernel É ÎÁÖÍÉÔÅ ËÌÁ×ÉÛÕ Enter. åÓÌÉ ÓÉÓÔÅÍÁ ÚÁÐÕÓÔÉÌÁÓØ, ×ÙÐÏÌÎÉÔÅ ËÏÍÁÎÄÕ echo "1:wd(2,a)kernel" > /boot.config ÞÔÏÂÙ ÓÄÅÌÁÔØ ÜÔÏ ÓÔÒÏËÏÊ ÚÁÇÒÕÚËÉ ÐÏ ÕÍÏÌÞÁÎÉÀ. ðÏÍÅÓÔÉÔÅ ÄÉÓË Ó FreeBSD ÎÁ ÐÅÒ×ÉÞÎÙÊ ËÏÎÔÒÏÌÌÅÒ IDE, ÔÁË ÞÔÏÂÙ ÉÍÅÎÏ×ÁÎÉÑ ÄÉÓËÏÍ ÐÒÉÛÌÉ × ÓÏÏÔ×ÅÔÓÔ×ÉÅ. ðÅÒÅÓÔÒÏÊÔÅ ÑÄÒÏ, ÉÚÍÅÎÉ× ËÏÎÆÉÇÕÒÁÃÉÀ ËÏÎÔÒÏÌÌÅÒÁ wd ÎÁ ÓÌÅÄÕÀÝÅÅ: controller wdc0 at isa? port "IO_WD1" bio irq 14 vector wdintr disk wd0 at wdc0 drive 0 # disk wd1 at wdc0 drive 1 # comment out this line controller wdc1 at isa? port "IO_WD2" bio irq 15 vector wdintr disk wd1 at wdc1 drive 0 # change from wd2 to wd1 disk wd2 at wdc1 drive 1 # change from wd3 to wd2 ðÒÏÉÎÓÔÁÌÌÉÒÕÊÔÅ ÎÏ×ÏÅ ÑÄÒÏ. åÓÌÉ ×Ù ÐÅÒÅÍÅÓÔÉÌÉ ×ÁÛÉ ÄÉÓËÉ É ÈÏÔÉÔÅ ÐÏÓÓÔÁÎÏ×ÉÔØ ÐÒÅÄÙÄÕÝÕÀ ÎÁÓÔÒÏÊËÕ, ÚÁÍÅÎÉÔÅ ÄÉÓËÉ × ÎÕÖÎÏÊ ËÏÎÆÉÇÕÒÁÃÉÉ É ÐÅÒÅÚÁÇÒÕÚÉÔÅÓØ. ÷ÁÛÁ ÓÉÓÔÅÍÁ ÄÏÌÖÎÁ ÎÏÒÍÁÌØÎÏ ÚÁÐÕÓÔÉÔØÓÑ. ëÁËÉÅ ÓÕÝÅÓÔ×ÕÀÔ ÏÇÒÁÎÉÞÅÎÉÑ ÎÁ ÏÐÅÒÁÔÉ×ÎÕÀ ÐÁÍÑÔØ? ôÅÏÒÅÔÉÞÅÓËÏÅ ÏÇÒÁÎÉÞÅÎÉÅ ÎÁ ÐÁÍÑÔØ ÒÁ×ÎÏ 4 ÇÉÇÁÂÁÊÔÁÍ. ôÅÓÔÉÒÏ×ÁÌÓÑ ÓÌÕÞÁÊ Ó ÏÄÎÉÍ ÇÉÇÁÂÁÊÔÏÍ; ËÁË ÐÒÁ×ÉÌÏ, ×Ù ÎÅ ÓÍÏÖÅÔÅ ÐÒÉÏÂÒÅÓÔÉ ÐÅÒÓÏÎÁÌØÎÙÊ ËÏÍÐØÀÔÅÒ, ÐÏÄÄÅÒÖÉ×ÁÀÝÉÊ ÂÏÌØÛÉÊ ÏÂß£Í ïúõ. ëÁËÉÅ ÓÕÝÅÓÔ×ÕÀÔ ÏÇÒÁÎÉÞÅÎÉÑ ÄÌÑ ÆÁÊÌÏ×ÏÊ ÓÉÓÔÅÍÙ ffs? äÌÑ ÆÁÊÌÏ×ÏÊ ÓÉÓÔÅÍÙ ffs ÍÁËÓÉÍÁÌØÎÙÊ ÔÅÏÒÅÔÉÞÅÓËÉÊ ÒÁÚÍÅÒ ÒÁ×ÅÎ 8 ÔÅÒÁÂÁÊÔÁÍ (2ç ÂÌÏËÏ×) ÉÌÉ 16ôâ ÐÒÉ ÓÔÁÎÄÁÒÔÎÏÍ ÒÁÚÍÅÒÅ ÂÌÏËÁ 8ë. îÁ ÐÒÁËÔÉËÅ ÅÓÔØ ÐÒÏÇÒÁÍÍÎÏÅ ÏÇÒÁÎÉÞÅÎÉÅ × 1 ÔÅÒÁÂÁÊÔ, ÎÏ Ó ÎÅËÏÔÏÒÙÍÉ ÍÏÄÉÆÉËÁÃÉÑÍÉ ÄÏÓÔÉÖÉÍÙ 4 ÇÉÇÁÂÁÊÔÁ (É ÔÁËÉÅ ÓÉÓÔÅÍÙ ÓÕÝÅÓÔ×ÕÀÔ). íÁËÓÉÍÁÌØÎÙÊ ÒÁÚÍÅÒ ÏÄÎÏÇÏ ÆÁÊÌÁ ffs ÒÁ×ÅÎ ÐÒÉÍÅÒÎÏ 1ç ÂÌÏËÏ× (4ôâ) ÐÒÉ ÒÁÚÍÅÒÅ ÂÌÏËÁ 4ë. ÍÁËÓÉÍÁÌØÎÙÊ ÒÁÚÍÅÒ ÆÁÊÌÁ ---------------------------------- 2.2.7 3.0 ÒÁÚÍÅÒ ÂÌÏËÁ fs -stable -current ÒÁÂÏÔÁÅÔ ÄÏÌÖÎÏ ÒÁÂÏÔÁÔØ --------------- ------- -------- -------- --------------- 4K 4T-1 4T-1 4T-1 4+T 8K 32+G 8T-1 32+G 16T-1 16K 128+G 16T-1 128+G 32T-1 32K 512+G 32T-1 512+G 64T-1 64K 2048+G 64T-1 2048+G 128T-1 ðÒÉ ÒÁÚÍÅÒÅ ÂÌÏËÁ ÆÁÊÌÏ×ÏÊ ÓÉÓÔÅÍÙ 4ë, ÔÒÏÊÎÁÑ ÁÄÒÅÓÁÃÉÑ ÂÌÏËÏ× ÒÁÂÏÔÁÅÔ É ×Ó£ ÄÏÌÖÎÏ ÂÙÔØ ÏÇÒÁÎÉÞÅÎÏ ÍÁËÓÉÍÁÌØÎÙÍ ËÏÌÉÞÅÓÔ×ÏÍ ÂÌÏËÏ×, ËÏÔÏÒÏÅ ÚÁÄÁ£ÔÓÑ × ×ÉÄÅ ÔÒÏÊÎÏÊ ÐÅÒÅÁÄÒÅÓÁÃÉÉ ÂÌÏËÁ (ÐÒÉÍÅÒÎÏ 1K^3 + 1K^2 + 1K), ÏÄÎÁËÏ ×Ó£ ÏÇÒÁÎÉÞÉ×ÁÅÔÓÑ (ÏÛÉÂÏÞÎÙÍ) ÌÉÍÉÔÏÍ 1ç-1 ÎÁ ËÏÌÉÞÅÓÔ×Ï ÂÌÏËÏ× ÆÁÊÌÏ×ÏÊ ÓÉÓÔÅÍÙ. üÔÏ ÏÇÒÁÎÉÞÅÎÉÅ ÄÏÌÖÎÏ ÂÙÔØ ÒÁ×ÎÙÍ 2ç-1. ðÒÉ ËÏÌÉÞÅÓÔ×Å ÂÌÏËÏ×, ÐÒÉÂÌÉÖÁÀÝÅÍÓÑ Ë 2ç-1, ÐÏÑ×ÌÑÀÔÓÑ ÎÅËÏÔÏÒÙÅ ÏÛÉÂËÉ, ÎÏ ÜÔÏÔ ÐÒÅÄÅÌ ÎÅÄÏÓÔÉÖÉÍ ÐÒÉ ÒÁÚÍÅÒÅ ÂÌÏËÁ 4ë. ðÒÉ ÒÁÚÍÅÒÅ ÂÌÏËÁ 8ë É ÂÏÌØÛÅ, ×Ó£ ÄÏÌÖÎÏ ÂÙÔØ ÏÇÒÁÎÉÞÅÎÏ ÌÉÍÉÔÏÍ 2ç-1 ÎÁ ËÏÌÉÞÅÓÔ×Ï ÂÌÏËÏ× ÆÁÊÌÏ×ÏÊ ÓÉÓÔÅÍÙ, ÎÏ ÒÅÁÌØÎÏ ÏÇÒÁÎÉÞÅÎÏ ÐÒÅÄÅÌÏÍ × 1ç-1 ÎÁ ÞÉÓÌÏ ÂÌÏËÏ× ÆÁÊÌÏ×ÏÊ ÓÉÓÔÅÍÙ, ËÒÏÍÅ ÓÌÕÞÁÑ -stable, ÎÅÄÏÓÔÉÖÉÍÙÊ ÐÒÉ ÔÒÏÊÎÏÊ ÐÅÒÅÁÄÒÅÓÁÃÉÉ, ÔÁË ÞÔÏ ÐÒÅÄÅÌ ÒÁ×ÅÎ ÍÁËÓÉÍÁÌØÎÏÍÕ ÞÉÓÌÕ ÂÌÏËÏ× ÆÁÊÌÏ×ÏÊ ÓÉÓÔÅÍÙ, ËÏÔÏÒÙÊ ÍÏÖÅÔ ÂÙÔØ ÐÒÅÄÓÔÁ×ÌÅÎ ÞÅÒÅÚ Ä×ÏÊÎÕÀ ÐÅÒÅÁÄÒÅÓÁÃÉÀ (ÐÒÉÍÅÒÎÏ (ÒÁÚÍÅÒ ÂÌÏËÁ/4)^2 + (ÒÁÚÍÅÒ ÂÌÏËÁ/4)), É ÐÏÄ -current ÐÒÅ×ÙÛÅÉÎÅ ÜÔÏÇÏ ÏÇÒÁÎÉÞÅÎÉÑ ÍÏÖÅÔ ×ÙÚ×ÁÔØ ÐÒÏÂÌÅÍÙ. éÓÐÏÌØÚÏ×ÁÎÉÅ ×ÅÒÎÏÇÏ ÏÇÒÁÎÉÞÅÎÉÑ × 2ç-1 ÂÌÏËÏ× ×ÙÚÙ×ÁÅÔ ÐÒÏÂÌÅÍÙ. ëÁË ÍÏÖÎÏ ÐÏÍÅÓÔÉÔØ ÆÁÊÌÙ ÒÁÚÍÅÒÏÍ 1ôâ ÎÁ ÄÉÓËÅÔÕ? ñ ÈÒÁÎÀ ÐÁÒÏÞËÕ ÔÁËÉÈ ÎÁ ÄÉÓËÅÔÅ :-) íÁËÓÉÍÁÌØÎÙÊ ÒÁÚÍÅÒ ÆÁÊÌÁ ÎÅ Ó×ÑÚÁÎ ÎÅÐÏÓÒÅÄÓÔ×ÅÎÎÏ Ó ÍÁËÓÉÍÁÌØÎÙÍ ÒÁÚÍÅÒÏÍ ÄÉÓËÁ. íÁËÓÉÍÁÌØÎÙÊ ÒÁÚÍÅÒ ÄÉÓËÁ ÒÁ×ÅÎ 1ôâ. ïÓÏÂÅÎÎÏÓÔØÀ Ñ×ÌÑÅÔÓÑ ÔÏ, ÞÔÏ ÒÁÚÍÅÒ ÆÁÊÌÁ ÍÏÖÅÔ ÐÒÅ×ÙÛÁÔØ ÒÁÚÍÅÒ ÄÉÓËÁ. ÷ ÓÌÅÄÕÀÝÅÍ ÐÒÉÍÅÒÅ ÓÏÚÄÁ£ÔÓÑ ÆÁÊÌ ÒÁÚÍÅÒÏÍ 8ô-1 Ó ÐÏÍÏÝØÀ ×ÓÅÇÏ 32ë ÄÉÓËÏ×ÏÇÏ ÐÒÏÓÔÒÁÎÓÔ×Á (3 ÂÌÏËÁ ÁÄÒÅÓÁ É 1 ÂÌÏË ÄÁÎÎÙÈ) ÎÁ ÍÁÌÅÎØËÏÍ ËÏÒÎÅ×ÏÍ ÒÁÚÄÅÌÅ. ëÏÍÁÎÄÁ dd ÄÏÌÖÎÁ ÕÍÅÔØ ÒÁÂÏÔÁÔØ Ó ÂÏÌØÛÉÍÉ ÆÁÊÌÁÍÉ. ttyv0:bde@alphplex:/tmp/q> cat foo df . dd if=/dev/zero of=z bs=1 seek=`echo 2^43 - 2 | bc` count=1 ls -l z du z df . ttyv0:bde@alphplex:/tmp/q> sh foo Filesystem 1024-blocks Used Avail Capacity Mounted on /dev/sd0a 64479 27702 31619 47% / 1+0 records in 1+0 records out 1 bytes transferred in 0.000187 secs (5346 bytes/sec) -rw-r--r-- 1 bde bin 8796093022207 Sep 7 16:04 z 32 z Filesystem 1024-blocks Used Avail Capacity Mounted on /dev/sd0a 64479 27734 31587 47% / ttyv0:bde@alphplex:/tmp/q> exit Bruce Evans, September 1998 ñ ÓËÏÍÐÉÌÉÒÏ×ÁÌ ÎÏ×ÏÅ ÑÄÒÏ É ÐÒÉ ÚÁÇÒÕÚËÅ ÐÏÌÕÞÉÌ ÓÏÏÂÝÅÎÉÅ Ï ÏÛÉÂËÅ "archsw.readin.failed". ÷Ù ÍÏÖÅÔÅ ÏÓÕÝÅÓÔ×ÉÔØ ÚÁÇÒÕÚËÕ ÓÉÓÔÅÍÙ, Ñ×ÎÏ ÕËÁÚÁ× ÑÄÒÏ ×Ï ×ÒÅÍÑ ×ÔÏÒÏÇÏ ÜÔÁÐÁ ÚÁÇÒÕÚÏÞÎÏÇÏ ÐÒÏÃÅÓÓÁ, ÎÁÖÁ× ÌÀÂÕÀ ËÌÁ×ÉÛÕ ÐÏÓÌÅ ÐÏÑ×ÌÅÎÉÑ ÓÉÍ×ÏÌÁ | ÄÏ ÚÁÐÕÓËÁ ÚÁÇÒÕÚÞÉËÁ. âÏÌÅÅ ÔÏÞÎÏ, ×Ù ÏÂÎÏ×ÉÌÉ ÉÓÈÏÄÎÙÅ ÔÅËÓÔÙ ÑÄÒÁ, ÏÔËÏÍÐÉÌÉÒÏ×ÁÌÉ É ÕÓÔÁÎÏ×ÉÌÉ ÎÏ×ÏÅ ÑÄÒÏ ÂÅÚ ×ÙÐÏÌÎÅÎÉÑ make world . ôÁËÏÅ ÎÅ ÐÏÄÄÅÒÖÉ×ÁÅÔÓÑ. ÷ÙÐÏÌÎÉÔÅ make world. áÐÐÁÒÁÔÎÁÑ ÓÏ×ÍÅÓÔÉÍÏÓÔØ ëÁËÉÅ ÔÉÐÙ ×ÉÎÞÅÓÔÅÒÏ× ÐÏÄÄÅÒÖÉ×ÁÅÔ FreeBSD? FreeBSD ÒÁÂÏÔÁÅÔ Ó ÄÉÓËÁÍÉ ÓÔÁÎÄÁÒÔÏ× EIDE É SCSI (Ó ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÍÉ ËÏÎÔÒÏÌÌÅÒÁÍÉ; ÏÂÒÁÔÉÔÅÓØ Ë ÓÌÅÄÕÀÝÅÍÕ ÒÁÚÄÅÌÕ), É ×ÓÅÍÉ ÄÉÓËÁÍÉ, ÉÓÐÏÌØÚÕÀÝÉÍÉ ÏÒÉÇÉÎÁÌØÎÙÊ ÉÎÔÅÒÆÅÊÓ "Western Digital" (MFM, RLL, ESDI É, ËÏÎÅÞÎÏ ÖÅ, IDE). îÅËÏÔÏÒÙÅ ËÏÎÔÒÏÌÌÅÒÙ ESDI, ÉÓÐÏÌØÚÕÀÝÉÅ ÓÏÂÓÔ×ÅÎÎÙÅ ÉÎÔÅÒÆÅÊÓÙ, ÍÏÇÕÔ É ÎÅ ÒÁÂÏÔÁÔØ: Ë ÔÁËÉÍ ÏÔÎÏÓÑÔÓÑ WD1002/3/6/7 É ÉÈ ËÌÏÎÙ. ëÁËÉÅ ÐÏÄÄÅÒÖÉ×ÁÀÔÓÑ ËÏÎÔÒÏÌÌÅÒÙ SCSI? ðÏÌÎÙÊ ÓÐÉÓÏË ÐÒÉ×ÅÄ£Î × òÕËÏ×ÏÄÓÔ×Å. ëÁËÉÅ ÐÒÉ×ÏÄÙ CD-ROM ÐÏÄÄÅÒÖÉ×ÁÀÔÓÑ ×Ï FreeBSD? ðÏÄÄÅÒÖÉ×ÁÀÔÓÑ ÌÀÂÙÅ SCSI-ÕÓÔÒÏÊÓÔ×Á ÞÎÅÎÉÑ ËÏÍÐÁËÔ ÄÉÓËÏ×, ÐÏÄËÌÀÞÅÎÎÙÅ Ë ÐÏÄÄÅÒÖÉ×ÁÅÍÏÍÕ ËÏÎÔÒÏÌÌÅÒÕ. ëÒÏÍÅ ÔÏÇÏ, ÐÏÄÄÅÒÖÉ×ÁÀÔÓÑ ÓÌÅÄÕÀÝÉÅ ÏÒÉÇÉÎÁÌØÎÙÅ ÉÎÔÅÒÆÅÊÓÙ: Mitsumi LU002 (8bit), LU005 (16bit) É FX001D (16bit 2x Speed). Sony CDU 31/33A Sound Blaster ÎÅ-SCSI CD-ROM Matsushita/Panasonic CD-ROM ATAPI-ÓÏ×ÍÅÓÔÉÍÙÅ IDE CD-ROM ÷ÓÅ ÎÅ-SCSI ÁÄÁÐÔÅÒÙ ÓÔÁ×ÑÔÓÑ Ó×ÏÅÊ ÍÅÄÌÉÔÅÌØÎÏÓÔØÀ ÐÏ ÓÒÁ×ÎÅÎÉÀ ÓÏ SCSI, Á ÎÅËÏÔÏÒÙÅ CDROM ÓÔÁÎÄÁÒÔÁ ATAPI ÍÏÇÕÔ É ÎÅ ÒÁÂÏÔÁÔØ. ó ×ÅÒÓÉÉ 2.2 ËÏÍÐÁËÔ-ÄÉÓË Ó FreeBSD ÏÔ Walnut Creek Ñ×ÌÑÅÔÓÑ ÚÁÇÒÕÚÏÞÎÙÍ. ðÏÄÄÅÒÖÉ×ÁÅÔ ÌÉ FreeBSD ÕÓÔÒÏÊÓÔ×Á ZIP? îÅÓÏÍÎÅÎÎÏ, FreeBSD ÐÏÄÄÅÒÖÉ×ÁÅÔ ZIP-ÕÓÔÒÏÊÓÔ×Á SCSI. õÓÔÒÏÊÓÔ×Õ ZIP ÍÏÇÕÔ ÂÙÔØ ÎÁÚÎÁÞÅÎÙ SCSI ID ÔÏÌØËÏ 5 ÉÌÉ 6, É ÅÓÌÉ BIOS ×ÁÛÅÇÏ SCSI-ÁÄÁÐÔÅÒÁ ÐÏÄÄÅÒÖÉ×ÁÅÔ ÔÁËÕÀ ×ÏÚÍÏÖÎÏÓÔØ, ×Ù ÍÏÖÅÔÅ Ó ÎÅÇÏ ÄÁÖÅ ÚÁÇÒÕÚÉÔØÓÑ. íÎÅ ÎÅ ÉÚ×ÅÓÔÎÙ ÁÄÁÐÔÅÒÙ, ÐÏÚ×ÏÌÑÀÝÉÅ ÚÁÇÒÕÚÉÔØÓÑ Ó ÕÓÔÒÏÊÓÔ×, ÎÏÍÅÒÁ ËÏÔÏÒÙÈ ÏÔÌÉÞÎÙ ÏÔ 0 ÉÌÉ 1... ÐÏÓÍÏÔÒÉÔÅ × ×ÁÛÅÊ ÄÏËÕÍÅÎÔÁÃÉÉ (É ÓÏÏÂÝÉÔÅ ÍÎÅ, ÅÓÌÉ Õ ×ÁÓ ÜÔÏ ÒÁÂÏÔÁÅÔ). õÓÔÒÏÊÓÔ×Á ZIP ÓÔÁÎÄÁÒÔÁ ATAPI (IDE) ÐÏÄÄÅÒÖÉ×ÁÀÔÓÑ FreeBSD ÎÁÞÉÎÁÑ Ó ×ÅÒÓÉÉ 2.2.6. FreeBSD ÐÏÄÄÅÒÖÉ×ÁÅÔ ÕÓÔÒÏÊÓÔ×Á Zip, ÒÁÂÏÔÁÀÝÉÅ ÞÅÒÅÚ ÐÁÒÁÌÌÅÌØÎÙÊ ÐÏÒÔ, ÎÁÞÉÎÁÑ Ó ×ÅÒÓÉÉ 3.0. åÓÌÉ ×Ù ÉÓÐÏÌØÚÕÅÔÅ ÂÏÌÅÅ ÎÏ×ÕÀ ×ÅÒÓÉÀ, ÐÒÏ×ÅÒØÔÅ, ÓÏÄÅÒÖÉÔ ÌÉ ×ÁÛÅ ÑÄÒÏ ÄÒÁÊ×ÅÒÙ ÄÌÑ scbus0, da0 , ppbus0 É vp0 (ÑÄÒÏ GENERIC ÓÏÄÅÒÖÉÔ ×Ó£ ÜÔÏ, ËÒÏÍÅ vp0). åÓÌÉ ÜÔÉ ÄÒÁÊ×ÅÒÙ ÉÍÅÀÔÓÑ, ÔÏ ÕÓÔÒÏÊÓÔ×Ï ÄÏÌÖÎÏ ÂÙÔØ ÄÏÓÔÕÐÎÏ ËÁË /dev/da0s4. äÉÓËÉ ÍÏÇÕÔ ÂÙÔØ ÓÍÏÎÔÉÒÏ×ÁÎÙ ËÏÍÁÎÄÁÍÉ mount /dev/da0s4 /mnt ÉÌÉ (ÄÌÑ ÄÉÓËÏ× dos) mount_msdos /dev/da0s4 /mnt. ôÁËÖÅ ÐÏÓÍÏÔÒÉÔÅ ÓÌÅÄÕÀÝÅÅ ÚÁÍÅÞÁÎÉÅ Ï ÓߣÍÎÙÈ ÎÏÓÉÔÅÌÑÈ, É ÜÔÏ ÚÁÍÅÞÁÎÉÅ Ï 'ÆÏÒÍÁÔÉÒÏ×ÁÎÉÉ'. ðÏÄÄÅÒÖÉ×ÁÅÔ ÌÉ FreeBSD ÓߣÍÎÙÅ ÄÉÓËÉ ÔÉÐÁ JAZ ÉÌÉ EZ? ëÒÏÍÅ IDE-×ÁÒÉÁÎÔÁ ÕÓÔÒÏÊÓÔ×Á EZ, ÜÔÏ ×Ó£ ÕÓÔÒÏÊÓÔ×Á SCSI, ÔÁË ÞÔÏ ÄÌÑ FreeBSD ×ÓÅ ÏÎÉ ÄÏÌÖÎÙ ×ÙÇÌÑÄÅÔØ ËÁË ÄÉÓËÉ SCSI, Á IDE EZ ÄÏÌÖÅÎ ×ÙÇÌÑÄÅÔØ ËÁË ÄÉÓË IDE. ñ ÎÅ ÚÎÁÀ, ÎÁÓËÏÌØËÏ ÈÏÒÏÛÏ FreeBSD ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÍÅÎÕ ÎÏÓÉÔÅÌÑ ×Ï ×ÒÅÍÑ ÒÁÂÏÔÙ. ëÏÎÅÞÎÏ, ÞÔÏÂÙ ÓÍÅÎÉÔØ ÄÉÓË, ×ÁÍ ÓÎÁÞÁÌÁ ÎÕÖÎÏ ÅÇÏ ÒÁÚÍÏÎÔÉÒÏ×ÁÔØ, É ÏÂÒÁÔÉÔÅ ×ÎÉÍÁÎÉÅ ÎÁ ÔÏ, ÞÔÏ ÐÒÉ ÚÁÇÒÕÚËÅ ×ÓÅ ×ÎÅÛÎÉÅ ÕÓÔÒÏÊÓÔ×Á ÄÏÌÖÎÙ ÂÙÔØ ×ËÌÀÞÅÎÙ, ÞÔÏÂÙ FreeBSD ÍÏÇÌÁ ÉÈ ÒÁÓÐÏÚÎÁÔØ. ðÏÓÍÏÔÒÉÔÅ ÜÔÏ ÚÁÍÅÞÁÎÉÅ Ï 'ÆÏÒÍÁÔÉÒÏ×ÁÎÉÉ'. ëÁËÉÅ ÍÎÏÇÏÐÏÒÔÏ×ÙÅ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÙÅ ÁÄÁÐÔÅÒÙ ÐÏÄÄÅÒÖÉ×ÁÀÔÓÑ ×Ï FreeBSD? óÐÉÓÏË ÔÁËÉÈ ÕÓÔÒÏÊÓÔ× ÎÁÈÏÄÉÔÓÑ × ÒÁÚÄÅÌÅ Ï ÒÁÚÌÉÞÎÙÈ ÕÓÔÒÏÊÓÔ×ÁÈ òÕËÏ×ÏÄÓÔ×Á. îÅËÏÔÏÒÙÅ ÂÅÚÙÍÑÎÎÙÅ ËÌÏÎÙ ÔÁËÉÈ ÁÄÁÐÔÅÒÏ× ÔÏÖÅ ÒÁÂÏÔÁÀÔ ÎÏÒÍÁÌØÎÏ, ÏÓÏÂÅÎÎÏ ÔÅ, ËÏÔÏÒÙÅ ÚÁÑ×ÌÑÀÔ Ï Ó×ÏÅÊ ÓÏ×ÍÅÓÔÉÍÏÓÔÉ Ó AST. ðÒÏÞÔÉÔÅ ÓÔÒÁÎÉÃÙ óÐÒÁ×ÏÞÎÉËÁ Ï sio ÄÌÑ ÐÏÌÕÞÅÎÉÑ ÐÏÄÒÏÂÎÏÊ ÉÎÆÏÒÍÁÃÉÉ Ï ËÏÎÆÉÇÕÒÉÒÏ×ÁÎÉÉ ÔÁËÉÈ ÁÄÁÐÔÅÒÏ×. õ ÍÅÎÑ ÎÅÏÂÙÞÎÁÑ ÍÙÛØ ÔÉÐÁ bus mouse. ëÁË Å£ ÎÁÓÔÒÏÉÔØ? FreeBSD ÐÏÄÄÅÒÖÉ×ÁÅÔ ÍÙÛÉ ÔÉÐÏ× bus mouse É InPort bus mouse ÏÔ ÔÁËÉÈ ÐÒÏÉÚ×ÏÄÉÔÅÌÅÊ, ËÁË Microsoft, Logitech É ATI. äÒÁÊ×ÅÒ ÕÓÔÒÏÊÓÔ×Á bus mouse ×ËÌÀÞÅÎ ÐÏ ÕÍÏÌÞÁÎÉÀ × ÑÄÒÏ GENERIC. åÓÌÉ ×Ù ÓÔÒÏÉÔÅ ÓÏÂÓÔ×ÅÎÎÏÅ ÑÄÒÏ Ó ÜÔÉÍ ÄÒÁÊ×ÅÒÏÍ, ÄÏÂÁרÔÅ ÓÌÅÄÕÀÝÕÀ ÓÔÒÏËÕ × ËÏÎÆÉÇÕÒÁÃÉÏÎÎÙÊ ÆÁÊÌ ÑÄÒÁ; device mse0 at isa? port 0x23c tty irq5 vector mseintr íÙÛØ ÔÉÐÁ bus mouse ÏÂÙÞÎÏ ÐÏÓÔÁ×ÌÑÅÔÓÑ Ó ÏÔÄÅÌØÎÙÍ ÉÎÔÅÒÆÅÊÓÎÙÍ ÁÄÁÐÔÅÒÏÍ. ïÎ ÐÏÚ×ÏÌÑÅÔ ÕÓÔÁÎÏ×ÉÔØ ÁÄÒÅÓ ÐÏÒÔÁ ××ÏÄÁ/×Ù×ÏÄÁ É ÎÏÍÅÒ IRQ, ÏÔÌÉÞÁÀÝÉÅÓÑ ÏÔ ÐÒÉ×ÅÄ£ÎÎÙÈ ×ÙÛÅ. ïÂÒÁÔÉÔÅÓØ Ë ÄÏËÕÍÅÎÔÁÃÉÉ ÐÏ ×ÁÛÅÊ ÍÙÛÅ É ÓÔÒÁÎÉÃÁÍ óÐÒÁ×ÏÞÎÉËÁ Ï ÕÓÔÒÏÊÓÔ×Å mse. ëÁË ÉÓÐÏÌØÚÏ×ÁÔØ ÍÙÛØ PS/2 (ÔÉÐÁ ``mouse port'' ÉÌÉ ``keyboard'')? åÓÌÉ ×Ù ÉÓÐÏÌØÚÕÅÔÅ FreeBSD ×ÅÒÓÉÉ ×ÙÛÅ, ÞÅÍ 2.2.5, ÔÏ ÎÅÏÂÈÏÄÉÍÙÊ ÄÒÁÊ×ÅÒ, psm, ×ËÌÀÞ£Î × ÑÄÒÏ É ÁËÔÉ×ÉÚÉÒÏ×ÁÎ. ñÄÒÏ ÄÏÌÖÎÏ ÏÂÎÁÒÕÖÉÔØ ÍÙÛØ PS/2 ×Ï ×ÒÅÍÑ ÚÁÇÒÕÚËÉ. åÓÌÉ ×Ù ÒÁÂÏÔÁÅÔÅ Ó ÐÒÅÄÙÄÕÝÅÊ, ÎÏ ÓÒÁ×ÎÉÔÅÌØÎÏ Ó×ÅÖÅÊ ×ÅÒÓÉÅÊ FreeBSD (2.1.x É ×ÙÛÅ), ÔÏ ×Ù ÍÏÖÅÔÅ ÐÒÏÓÔÏ ×ËÌÀÞÉÔØ Å£ ÐÏÄÄÅÒÖËÕ × ÍÅÎÀ ËÏÎÆÉÇÕÒÁÃÉÉ ÑÄÒÁ ×Ï ×ÒÅÍÑ ÉÎÓÔÁÌÌÑÃÉÉ, ÌÉÂÏ ÐÏÚÖÅ, ÕËÁÚÁ× -c × ÐÒÉÇÌÁÛÅÎÉÉ boot:. ðÏ ÕÍÏÌÞÁÎÉÀ ÏÎÁ ÏÔËÌÀÞÅÎÁ, ÔÁË ÞÔÏ ×Ù ÄÏÌÖÎÙ ×ËÌÀÞÉÔØ Å£ Ñ×ÎÏ. åÓÌÉ ×Ù ÉÓÐÏÌØÚÕÅÔÅ ÂÏÌÅÅ ÓÔÁÒÕÀ ×ÅÒÓÉÀ FreeBSD, ÔÏ ×ÁÍ ÎÕÖÎÏ ÄÏÂÁ×ÉÔØ ÓÌÅÄÕÀÝÉÅ ÓÔÒÏËÉ × ÆÁÊÌ ËÏÎÆÉÇÕÒÁÃÉÉ ÑÄÒÁ É ÓËÏÍÐÉÌÉÒÏ×ÁÔØ ÎÏ×ÏÅ ÑÄÒÏ: device psm0 at isa? port "IO_KBD" conflicts tty irq 12 vector psmintr ïÂÒÁÔÉÔÅÓØ Ë ÇÌÁ×Å òÕËÏ×ÏÄÓÔ×Á Ï ËÏÎÆÉÇÕÒÉÒÏ×ÁÎÉÉ ÑÄÒÁ, ÅÓÌÉ ×Ù ÎÅ ÉÍÅÅÔÅ ÏÐÙÔÁ ÔÁËÏÊ ÒÁÂÏÔÙ. ðÏÓÌÅ ÔÏÇÏ, ËÁË ÑÄÒÏ ÐÒÁ×ÉÌØÎÏ ÏÂÎÁÒÕÖÉÌÏ psm0 ×Ï ×ÒÅÍÑ ÚÁÇÒÕÚËÉ, ÐÒÏ×ÅÒØÔÅ ÓÕÝÅÓÔ×Ï×ÁÎÉÅ ÆÁÊÌÁ ÕÓÔÒÏÊÓÔ×Á ÄÌÑ psm0 × ËÁÔÁÌÏÇÅ /dev. üÔÏ ÍÏÖÎÏ ÓÄÅÌÁÔØ, ÎÁÂÒÁ×: cd /dev; sh MAKEDEV psm0 ×ÏÊÄÑ × ÓÉÓÔÅÍÕ ÁÄÍÉÎÉÓÔÒÁÔÏÒÏÍ. íÏÖÎÏ ÌÉ ËÁËÉÍ-ÌÉÂÏ ÏÂÒÁÚÏÍ ÉÓÐÏÌØÚÏ×ÁÔØ ÍÙÛØ, ËÒÏÍÅ X Window? åÓÌÉ ×Ù ÉÓÐÏÌØÚÕÅÔÅ ÓÔÁÎÄÁÒÔÎÙÊ ÄÒÁÊ×ÅÒ ËÏÎÓÏÌÉ, syscons, ÔÏ ÍÏÖÅÔÅ ÉÓÐÏÌØÚÏ×ÁÔØ ÕËÁÚÁÔÅÌØ ÍÙÛÉ × ÔÅËÓÔÏ×ÙÈ ËÏÎÓÏÌÑÈ ÄÌÑ ×ÙÄÅÌÅÎÉÑ É ÐÅÒÅÎÏÓÁ ÔÅËÓÔÁ. úÁÐÕÓÔÉÔÅ ÄÅÍÏÎ ÍÙÛÉ, moused, É ×ËÌÀÞÉÔÅ ÏÔÏÂÒÁÖÅÎÉÅ ÕËÁÚÁÔÅÌÑ ÍÙÛÉ ÎÁ ËÏÎÓÏÌÉ: moused -p /dev/xxxx -t yyyy vidcontrol -m on úÄÅÓØ xxxx - ÜÔÏ ÉÍÑ ÕÓÔÒÏÊÓÔ×Á ÍÙÛÉ, Á yyyy - ÔÉÐ ÐÒÏÔÏËÏÌÁ, ÉÓÐÏÌØÚÕÅÍÏÇÏ ÍÙÛØÀ. óÔÒÁÎÉÃÁ óÐÒÁ×ÏÞÎÉËÁ Ï moused ÓÏÄÅÒÖÉÔ ÉÎÆÏÒÍÁÃÉÀ Ï ÐÏÄÄÅÒÖÉ×ÁÅÍÙÈ ÔÉÐÁÈ ÐÒÏÔÏËÏÌÏ×. ÷Ù ÍÏÖÅÔÅ ÚÁÐÕÓËÁÔØ ÄÅÍÏÎ ÍÙÛÉ Á×ÔÏÍÁÔÉÞÅÓËÉ ×Ï ×ÒÅÍÑ ÓÔÁÒÔÁ ÓÉÓÔÅÍÙ. ÷ ×ÅÒÓÉÉ 2.2.1, ÕÓÔÁÎÏ×ÉÔÅ ÚÎÁÞÅÎÉÅ ÓÌÅÄÕÀÝÅÊ ÐÅÒÅÍÅÎÎÏÊ × /etc/sysconfig. mousedtype="yyyy" mousedport="xxxx" mousedflags="" ÷ ×ÅÒÓÉÑÈ 2.2.2 É ×ÙÛÅ, ÕÓÔÁÎÏ×ÉÔÅ ÚÎÁÞÅÎÉÑ ÓÌÅÄÕÀÝÉÈ ÐÅÒÅÍÅÎÎÙÈ × /etc/rc.conf. moused_type="yyyy" moused_port="xxxx" moused_flags="" îÁÞÉÎÁÑ Ó FreeBSD 2.2.6, ÄÅÍÏÎ ÍÙÛÉ × ÓÏÓÔÏÑÎÉÉ ÏÐÒÅÄÅÌÑÔØ ÔÉÐ ÐÒÏÔÏËÏÌÁ Á×ÔÏÍÁÔÉÞÅÓËÉ, ÅÓÌÉ, ËÏÎÅÞÎÏ, ÍÙÛØ ÎÅ ÄÏÓÔÁÔÏÞÎÏ ÄÒÅ×ÎÅÊ ÍÏÄÅÌÉ. õËÁÖÉÔÅ ``auto'' ÄÌÑ Á×ÔÏÍÁÔÉÞÅÓËÏÇÏ ÏÐÒÅÄÅÌÅÎÉÑ ÔÉÐÁ ÐÒÏÔÏËÏÌÁ. ðÏÓÌÅ ÚÁÐÕÓËÁ ÄÅÍÏÎÁ ÍÙÛÉ, ÄÏÓÔÕÐ Ë ÍÙÛÉ ÄÏÌÖÅÎ ÓÏÇÌÁÓÏ×Ù×ÁÔØÓÑ ÍÅÖÄÕ ÄÅÍÏÎÏÍ ÍÙÛÉ É ÄÒÕÇÉÍÉ ÐÒÏÇÒÁÍÍÁÍÉ ÔÉÐÁ X Window. üÔÏÔ ×ÏÐÒÏÓ ÏÓ×ÅÝ£Î × . ëÁË ÍÏÖÎÏ ×ÙÒÅÚÁÔØ É ËÏÐÉÒÏ×ÁÔØ ÔÅËÓÔ Ó ÐÏÍÏÝØÀ ÍÙÛÉ × ÔÅËÓÔÏ×ÏÊ ËÏÎÓÏÌÉ? ðÏÓÌÅ ÔÏÇÏ, ËÁË ×Ù ÚÁÐÕÓÔÉÌÉ ÄÅÍÏÎ ÍÙÛÉ (ÐÏÓÍÏÔÒÉÔÅ ), ÎÁÖÍÉÔÅ ËÎÏÐËÕ 1 (ÌÅ×ÕÀ) É Ä×ÉÇÁÊÔÅ ÍÙÛØ ÄÌÑ ×ÙÂÏÒÁ ÏÂÌÁÓÔÉ ×ÙÄÅÌÅÎÉÑ. úÁÔÅÍ ÎÁÖÍÉÔÅ ËÎÏÐËÕ 2 (ÓÒÅÄÎÀÀ) ÉÌÉ ËÎÏÐËÕ 3 (ÐÒÁ×ÕÀ) ÄÌÑ ×ÓÔÁ×ËÉ ÔÅËÓÔÁ ÉÚ ÂÕÆÅÒÁ, ÎÁÞÉÎÁÑ Ó ÔÅËÕÝÅÊ ÐÏÚÉÃÉÉ ËÕÒÓÏÒÁ. ÷ ×ÅÒÓÉÑÈ 2.2.6 É ×ÙÛÅ, ÎÁÖÁÔÉÅ ÎÁ ËÎÏÐËÕ 2 ×ÙÚÏ×ÅÔ ×ÓÔÁ×ËÕ ÔÅËÓÔÁ. îÁÖÁÔÉÅ ÎÁ ËÎÏÐËÕ 3 ``ÒÁÓÛÉÒÉÔ'' ×ÙÂÒÁÎÎÙÊ ÏÂÌÁÓÔØ ÔÅËÓÔÁ. åÓÌÉ Õ ×ÁÛÅÊ ÍÙÛÉ ÏÔÓÕÔÓÔ×ÕÅÔ ÓÒÅÄÎÑÑ ËÎÏÐËÁ, ×Ù ÍÏÖÅÔŠţ ÓÜÍÕÌÉÒÏ×ÁÔØ ÉÌÉ ÐÅÒÅÎÁÚÎÁÞÉÔØ ËÎÏÐËÉ ÏÐÃÉÑÍÉ ÐÒÏÇÒÁÍÍÙ moused. ïÂÒÁÔÉÔÅÓØ Ë ÓÔÒÁÎÉÃÅ óÐÒÁ×ÏÞÎÉËÁ ÐÏ moused. õ ÍÏÅÊ ÍÙÛÉ ÅÓÔØ ÄÏÐÏÌÎÉÔÅÌØÎÙÅ ËÏÌ£ÓÉËÏ É ËÎÏÐÏÞËÉ. íÏÖÎÏ ÌÉ ÉÈ ÉÓÐÏÌØÚÏ×ÁÔØ ×Ï FreeBSD? ïÔ×ÅÔ, Ë ÓÏÖÁÌÅÎÉÀ, ``× ÚÁ×ÉÓÉÍÏÓÔÉ ÏÔ ÏÂÓÔÏÑÔÅÌØÓÔ×''. üÔÉ ÍÙÛËÉ Ó ÄÏÐÏÌÎÉÔÅÌØÎÙÍÉ ×ÏÚÍÏÖÎÏÓÔÑÍÉ ËÁË ÐÒÁ×ÉÌÏ, ÔÒÅÂÕÀÔ ÎÁÌÉÞÉÑ ÓÐÅÃÉÁÌØÎÙÈ ÄÒÁÊ×ÅÒÏ×. äÏ ÔÅÈ ÐÏÒ, ÐÏËÁ ÄÒÁÊ×ÅÒ ÍÙÛÉ ÉÌÉ ÐÒÉËÌÁÄÎÁÑ ÐÒÏÇÒÁÍÍÁ ÎÅ ÂÕÄÕÔ ÉÍÅÔØ ÏÔÄÅÌØÎÕÀ ÐÏÄÄÅÒÖËÕ ÔÁËÏÊ ÍÙÛÉ, ÏÎÁ ÂÕÄÅÔ ÒÁÂÏÔÁÔØ ËÁË ÓÔÁÎÄÁÒÔÎÁÑ Ä×ÕÈ- ÉÌÉ ÔÒ£ÈËÎÏÐÏÞÎÁÑ ÍÙÛØ. ëÁË ÉÓÐÏÌØÚÏ×ÁÔØ ÍÙÛØ/ÔÒÜËÂÏÌÌ/ÓÅÎÓÏÒÎÕÀ ÐÁÎÅÌØ ÎÁ ÌÜÐÔÏÐÅ? ðÏÓÍÏÔÒÉÔÅ ÏÄÉÎ ÉÚ ÐÒÅÄÙÄÕÝÉÈ ÒÁÚÄÅÌÏ×. é ÐÏÓÍÏÔÒÉÔÅ ÜÔÏ ÚÁÍÅÞÁÎÉÅ ÎÁ ÓÔÒÁÎÉÃÅ Ï ÍÏÂÉÌØÎÙÈ ×ÙÞÉÓÌÅÎÉÑÈ. ëÁËÉÅ ÔÉÐÙ ÓÔÒÉÍÅÒÏ× ÐÏÄÄÅÒÖÉ×ÁÀÔÓÑ? FreeBSD ÐÏÄÄÅÒÖÉ×ÁÅÔ ÓÔÒÉÍÅÒÙ Ó ÉÎÔÅÒÆÅÊÓÁÍÉ SCSI, QIC-36 (Ó ÉÎÔÅÒÆÅÊÓÏÍ QIC-02) É QIC-40/80 (ÎÁ ÏÓÎÏ×Å îçíä), ×ËÌÀÞÁÑ 8-ÍÍ (Exabyte) É DAT. óÔÒÉÍÅÒÙ QIC-40/80 ÓÔÒÁ×ÎÉÔÅÌØÎÏ ÍÅÄÌÅÎÎÙ. îÅËÏÔÏÒÙÅ ÒÁÎÎÉÅ ÍÏÄÅÌÉ 8-ÍÍ ÓÔÒÉÍÅÒÏ× ÎÅ ÓÏ×ÓÅÍ ÓÏÏÔ×ÅÔÓÔ×ÕÀÔ ÓÔÁÎÄÁÒÔÕ SCSI-2 É ÍÏÇÕÔ ÒÁÂÏÔÁÔØ ÎÅ ÓÏ×ÓÅÍ ÈÏÒÏÛÏ. ðÏÄÄÅÒÖÉ×ÁÅÔ ÌÉ FreeBSD ÒÏÂÏÔÏ× ÄÌÑ ÓÍÅÎÙ ÌÅÎÔ? FreeBSD 2.2 ÐÏÄÄÅÒÖÉ×ÁÅÔ SCSI-ÞÅÊÎÄÖÅÒÙ ÞÅÒÅÚ ÕÓÔÒÏÊÓÔ×Ï ch É ËÏÍÁÎÄÕ chio. äÅÔÁÌØÎÁÑ ÉÎÆÏÒÍÁÃÉÑ Ï ÕÐÒÁ×ÌÅÎÉÉ ÞÅÊÎÄÖÅÒÁÍÉ ÍÏÖÅÔ ÂÙÔØ ÎÁÊÄÅÎÁ ÎÁ ÓÔÒÁÎÉÃÅ óÐÒÁ×ÏÞÎÉËÁ ÐÏ ËÏÍÁÎÄÅ chio. åÓÌÉ ×Ù ÎÅ ÉÓÐÏÌØÚÕÅÔÅ ÓÉÓÔÅÍÕ AMANDA ÉÌÉ ÄÒÕÇÏÅ ÐÒÏÇÒÁÍÍÎÏÅ ÏÂÅÓÐÅÞÅÎÉÅ, ÕÍÅÀÝÅÅ ÒÁÂÏÔÁÔØ Ó ÒÏÂÏÔÁÍÉ, ÉÍÅÊÔÅ × ×ÉÄÕ, ÞÔÏ ÏÎÉ ÍÏÇÕÔ ÔÏÌØËÏ ÐÅÒÅÎÏÓÉÔØ ÌÅÎÔÙ Ó ÏÄÎÏÇÏ ÍÅÓÔÁ ÎÁ ÄÒÕÇÏÅ, ÔÁË ÞÔÏ ×ÁÍ ÎÕÖÎÏ ÓÁÍÉÍ ÏÔÓÌÅÖÉ×ÁÔØ, × ËÁËÏÍ ÓÌÏÔÅ ÎÁÈÏÄÉÔÓÑ ÎÕÖÎÁÑ ÌÅÎÔÁ, É × ËÁËÏÊ ÓÌÏÔ ÎÕÖÎÏ ×ÅÒÎÕÔØ ÌÅÎÔÕ, ÎÁÈÏÄÑÝÕÀÓÑ × ÓÔÒÉÍÅÒÅ. ëÁËÉÅ Ú×ÕËÏ×ÙÅ ÐÌÁÔÙ ÐÏÄÄÅÒÖÉ×ÁÀÔÓÑ ×Ï FreeBSD? FreeBSD ÐÏÄÄÅÒÖÉ×ÁÅÔ Ú×ÕËÏ×ÙÅ ÐÌÁÔÙ SoundBlaster, SoundBlaster Pro, SoundBlaster 16, Pro Audio Spectrum 16, AdLib É Gravis UltraSound. éÍÅÅÔÓÑ ÏÇÒÁÎÉÞÅÎÎÁÑ ÐÏÄÄÅÒÖËÁ MPU-401 É ÓÏ×ÍÅÓÔÉÍÙÈ Ó ÎÉÍ ÁÄÁÐÔÅÒÏ×. áÄÁÐÔÅÒÙ, ÕÄÏ×ÌÅÔ×ÏÒÑÀÝÉÅ ÓÐÅÃÉÆÉËÁÃÉÉ Microsoft Sound System, ÔÁËÖÅ ÐÏÄÄÅÒÖÉ×ÁÀÔÓÑ ÄÒÁÊ×ÅÒÏÍ pcm. úáíåþáîéå üÔÏ ËÁÓÁÅÔÓÑ ÔÏÌØËÏ Ú×ÕËÁ! üÔÏÔ ÄÒÁÊ×ÅÒ ÎÅ ÐÏÄÄÅÒÖÉ×ÁÅÔ CDROM, SCSI ÉÌÉ ÄÖÏÊÓÔÉËÉ ÎÁ ×ÓÅÈ ÐÏÄÏÂÎÙÈ ÁÄÁÐÔÅÒÁÈ, ËÒÏÍÅ SoundBlaster. ðÏÄÄÅÒÖÉ×ÁÀÔÓÑ ÕÓÔÒÏÊÓÔ×Á ÎÁ SCSI-ÉÎÔÅÒÆÅÊÓÅ SoundBlaster É ÎÅ-SCSI CDROM, ÎÏ ÚÁÇÒÕÚÉÔØÓÑ Ó ÎÉÈ ÎÅÌØÚÑ. ëÁËÉÅ ÓÅÔÅ×ÙÅ ÁÄÁÐÔÅÒÙ ÐÏÄÄÅÒÖÉ×ÁÅÔ FreeBSD? âÏÌÅÅ ÐÏÌÎÙÊ ÓÐÉÓÏË ÓÏÄÅÒÖÉÔÓÑ × ÒÁÚÄÅÌÅ òÕËÏ×ÏÄÓÔ×Á Ï ÁÄÁÐÔÅÒÁÈ Ethernet. îÁ ÍÏÅÊ ÍÁÛÉÎÅ ÏÔÓÕÔÓÔ×ÕÅÔ ÍÁÔÅÍÁÔÉÞÅÓËÉÊ ÓÏÐÒÏÃÅÓÓÏÒ - ÜÔÏ ÐÌÏÈÏ? úÁÍÅÞÁÎÉÅ üÔÏ ËÁÓÁÅÔÓÑ ÔÏÌØËÏ ×ÌÁÄÅÌØÃÅ× ËÏÍÐØÀÔÅÒÏ× 386/486SX/486SLC - ×Ï ×ÓÅÈ ÏÓÔÁÌØÎÙÈ ÍÁÛÉÎÁÈ ÍÏÄÕÌØ ×ÙÞÉÓÌÅÎÉÊ Ó ÐÌÁ×ÁÀÝÅÊ ÔÏÞËÏÊ ÏÂßÅÄÉÎ£Î Ó ÃÅÎÔÒÁÌØÎÙÍ ÐÒÏÃÅÓÓÏÒÏÍ. ÷ ÏÂÝÅÍ ÓÌÕÞÁÅ ÜÔÏ ÎÅ ÐÒÏÂÌÅÍÁ, ÎÏ × ÏÔÓÕÔÓÔ×ÉÉ ÓÏÐÒÏÃÅÓÓÏÒÁ ×Ù ÍÏÖÅÔÅ ÓÔÏÌËÎÕÔØÓÑ ÓÏ ÓÎÉÖÅÎÉÅÍ ÐÒÏÉÚ×ÏÄÉÔÅÌØÎÏÓÔØ É ÔÏÞÎÏÓÔÉ ÐÒÉ ÉÓÐÏÌØÚÏ×ÁÎÉÉ ÐÒÏÇÒÁÍÍÎÏÊ ÜÍÕÌÑÃÉÉ ÓÏÐÒÏÃÅÓÓÏÒÁ (ÏÂÒÁÔÉÔÅÓØ Ë ÒÁÚÄÅÌÕ Ï ). ÷ ÞÁÓÔÎÏÓÔÉ, ÐÒÏÒÉÓÏ×ËÁ ÄÕÇ × X ÂÕÄÅÔ ïþåîø ÍÅÄÌÅÎÎÏÊ. ðÒÉÏÂÒÅÔÅÎÉÅ ÍÁÔÅÍÁÔÉÞÅÓËÏÇÏ ÓÏÐÒÏÃÅÓÓÏÒÁ ÎÁÓÔÏÑÔÅÌØÎÏ ÒÅËÏÍÅÎÄÕÅÔÓÑ, ÏÎ ÔÏÇÏ ÓÔÏÉÔ. úáíåþáîéå îÅËÏÔÏÒÙÅ ÍÁÔÅÍÁÔÉÞÅÓËÉÅ ÓÏÐÒÏÃÅÓÓÏÒÙ ÒÁÂÏÔÁÀÔ ÌÕÞÛÅ, ÞÅÍ ÄÒÕÇÉÅ. îÁÍ ÎÅÐÒÉÑÔÎÏ ÜÔÏ ÐÒÉÚÎÁ×ÁÔØ, ÎÏ Intel ÐÏËÁ ÎÉËÏÇÏ ÎÅ ÐÏÄ×ÏÄÉÌ. åÓÌÉ ×Ù ÎÅ Õ×ÅÒÅÎÙ, ÞÔÏ ÓÏÐÒÏÃÅÓÓÏÒ ÂÕÄÅÔ ÒÁÂÏÔÁÔØ Ó FreeBSD, ÉÚÂÅÇÁÊÔÅ ËÌÏÎÏ×. ëÁËÉÅ ÅÝ£ ÕÓÔÒÏÊÓÔ×Á ÐÏÄÄÅÒÖÉ×ÁÀÔÓÑ × 2.X? ÷ òÕËÏ×ÏÄÓÔ×Å ÐÒÉ×ÅģΠÓÐÉÓÏË ÏÓÔÁÌØÎÙÈ ÕÓÔÒÏÊÓÔ×, ËÏÔÏÒÙÅ ÐÏÄÄÅÒÖÉ×ÁÀÔÓÑ ×Ï FreeBSD. ðÏÄÄÅÒÖÉ×ÁÅÔ ÌÉ FreeBSD ÕÐÒÁ×ÌÅÎÉÅ ÜÎÅÒÇÏÓÂÅÒÅÖÅÎÉÅÍ ÎÁ ÌÁÐÔÏÐÁÈ? FreeBSD ÐÏÄÄÅÒÖÉ×ÁÅÔ APM ÎÁ ÎÅËÏÔÏÒÙÈ ÍÁÛÉÎÁÈ. ðÏÉÝÉÔÅ × ÆÁÊÌÅ ËÏÎÆÉÇÕÒÁÃÉÉ ÑÄÒÁ LINT ÓÌÏ×Ï APM. òÅÛÅÎÉÅ ÓÐÅÃÉÆÉÞÎÙÈ ÐÒÏÂÌÅÍ Ó ÁÐÐÁÒÁÔÎÙÍ ÏÂÅÓÐÅÞÅÎÉÅÍ üÔÏÔ ÒÁÚÄÅÌ ÓÏÄÅÒÖÉÔ ÒÅÛÅÎÉÑ ÓÐÅÃÉÆÉÞÎÙÈ ÐÒÏÂÌÅÍ Ó ÁÐÐÁÒÁÔÎÙÍ ÏÂÅÓÐÅÞÅÎÉÅÍ, Ó ËÏÔÏÒÙÍÉ ÓÔÁÌËÉ×ÁÀÔÓÑ ÎÁÛÉ ÐÏÌØÚÏ×ÁÔÅÌÉ. ëÏÍÐØÀÔÅÒÙ Micron ÚÁ×ÉÓÁÀÔ ÐÒÉ ÚÁÇÒÕÚËÅ îÅËÏÔÏÒÙÅ ÍÁÔÅÒÉÎÓËÉÅ ÐÌÁÔÙ Micron ÉÍÅÀÔ BIOS, ÎÅ ÕÄÏ×ÌÅÔ×ÏÒÑÀÝÕÀ ÓÔÁÎÄÁÒÔÕ PCI BIOS, ÞÔÏ ÐÒÉ×ÏÄÉÔ Ë ÐÅÞÁÌØÎÙÍ ÐÏÓÌÅÄÓÔ×ÉÑÍ ÐÒÉ ÚÁÇÒÕÚËÅ FreeBSD, ÐÏÔÏÍÕ ÞÔÏ ÉÍÅÅÔ ÍÅÓÔÏ ÎÅÓÏÏÔ×ÅÔÓÔ×ÉÅ ÕÓÔÒÏÊÓÔ× PCI ÚÁÎÉÍÁÅÍÙÍ ÉÍÉ ÁÄÒÅÓÁÍ. äÌÑ ÒÅÛÅÎÉÑ ÜÔÏÊ ÐÒÏÂÌÅÍÙ ÏÔËÌÀÞÉÔÅ × BIOS ÏÐÃÉÀ "Plug and Play Operating System" . âÏÌÅÅ ÐÏÄÒÏÂÎÁÑ ÉÎÆÏÒÍÁÃÉÑ Ï ÜÔÏÊ ÐÒÏÂÌÅÍÅ ÎÁÈÏÄÉÔÓÑ ÐÏ ÓÌÅÄÕÀÝÅÍÕ ÁÄÒÅÓÕ: http://cesdis.gsfc.nasa.gov/linux/drivers/vortex.html#micron FreeBSD ÎÅ ÒÁÓÐÏÚÎÁ£Ô ÍÏÊ ÎÏ×ÅÊÛÉÊ ËÏÎÔÒÏÌÌÅÒ ÏÔ Adaptec. îÏ×ÙÊ ÎÁÂÏÒ ÍÉËÒÏÓÈÅÍ AIC789x ÏÔ Adaptec ÐÏÄÄÅÒÖÉ×ÁÅÔÓÑ ÐÏÄÓÉÓÔÅÍÏÊ CAM SCSI, ×ÐÅÒ×ÙÅ ÐÏÑ×É×ÛÅÊÓÑ × 3.0. ðÁÔÞÉ ÄÌÑ 2.2-STABLE ÎÁÈÏÄÑÔÓÑ ÐÏ ÁÄÒÅÓÕ ftp://ftp.freebsd.org/pub/FreeBSD/development/cam/. úÁÇÒÕÚÏÞÎÙÊ ÄÉÓË Ó ÐÏÄÄÅÒÖËÏÊ CAM ÄÏÓÔÕÐÅÎ ÐÏ ÁÄÒÅÓÕ http://www.freebsd.org/~abial/cam-boot/. ÷ ÏÂÏÉÈ ÓÌÕÞÁÑÈ ÐÒÅÖÄÅ ÞÅÍ ÎÁÞÁÔØ, ÐÒÏÞÔÉÔÅ ÆÁÊÌ README. FreeBSD ÎÅ ÎÁÈÏÄÉÔ ×ÎÕÔÒÅÎÎÉÊ ÍÏÄÅÍ Plug & Play. ÷ÁÍ ÎÕÖÎÏ ÄÏÂÁ×ÉÔØ PnP ID ×ÁÛÅÇÏ ÍÏÄÅÍÁ × ÓÐÉÓÏË PnP ID ÄÒÁÊ×ÅÒÁ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÏÇÏ ÐÏÒÔÁ. äÌÑ ×ËÌÀÞÅÎÉÑ ÐÏÄÄÅÒÖËÉ Plug & Play, ÏÔËÏÍÐÉÌÉÒÕÊÔÅ ÎÏ×ÏÅ ÑÄÒÏ Ó ÏÐÃÉÅÊ controller pnp0 × ËÏÎÆÉÇÕÒÁÃÉÏÎÎÏÍ ÆÁÊÌÅ, É ÐÅÒÅÚÁÇÒÕÚÉÔÅ ÍÁÛÉÎÕ. ñÄÒÏ ×Ù×ÅÄÅÔ ÓÐÉÓÏË ID ×ÓÅÈ ÎÁÊÄÅÎÎÙÈ PnP-ÕÓÔÒÏÊÓÔ×. äÏÂÁרÔÅ PnP ID ÍÏÄÅÍÁ × ÔÁÂÌÉÃÕ × ÆÁÊÌÅ /sys/i386/isa/sio.c, ÇÄÅ-ÔÏ × ÒÁÊÏÎÅ 1200 ÓÔÒÏËÉ. þÔÏÂÙ ÎÁÊÔÉ ÔÁÂÌÉÃÕ, ÐÏÉÝÉÔÅ ÓÌÏ×Ï "SUP1310" × ÓÔÒÕËÔÕÒÅ "siopnp_ids[]". óÎÏ×Á ÐÏÓÔÒÏÊÔÅ ÑÄÒÏ, ÐÒÏÉÎÓÔÁÌÌÉÒÕÊÔÅ ÅÇÏ É ÐÅÒÅÚÁÇÒÕÚÉÔÅÓØ. ôÅÐÅÒØ ×ÁÛ ÍÏÄÅÍ ÄÏÌÖÅÎ ÂÙÔØ ÏÐÏÚÎÁÎ. ÷ÁÍ ÍÏÖÅÔ ÐÏÎÁÄÏÂÉÔØÓÑ ÏÔËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ PnP-ÕÓÔÒÏÊÓÔ×Á ËÏÍÁÎÄÏÊ 'pnp' × ËÏÎÆÉÇÕÒÁÔÏÒÅ ×Ï ×ÒÅÍÑ ÚÁÇÒÕÚËÉ ÓÌÅÄÕÀÝÉÍ ÏÂÒÁÚÏÍ: pnp 1 0 enable os irq0 3 drq0 0 port0 0x2f8 ÞÔÏÂÙ ÍÏÄÅÍ ÂÙÌ ÒÁÓÐÏÚÎÁÎ. ëÁË ÓÄÅÌÁÔØ, ÞÔÏÂÙ ÐÒÉÇÌÁÛÅÎÉÅ boot: ×Ù×ÏÄÉÌÏÓØ ÎÁ ËÏÎÓÏÌØ ÎÁ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÏÍ ÐÏÒÔÕ? ðÏÓÔÒÏÊÔÅ ÑÄÒÏ Ó ÏÐÃÉÅÊ options COMCONSOLE. óÏÚÄÁÊÔÅ ÆÁÊÌ /boot.config, ÐÏÍÅÓÔÉ× ÔÕÄÁ ÔÏÌØËÏ ÔÅËÓÔ . ïÔËÌÀÞÉÔÅ ËÌÁ×ÉÁÔÕÒÕ. ðÏÄÒÏÂÎÁÑ ÉÎÆÏÒÍÁÃÉÑ ÎÁÈÏÄÉÔÓÑ × ÆÁÊÌÅ /usr/src/sys/i386/boot/biosboot/README.serial. ðÏÞÅÍÕ ÓÅÔÅ×ÏÊ ÁÄÁÐÔÅÒ 3Com PCI ÎÅ ÒÁÂÏÔÁÅÔ Ó ËÏÍÐØÀÔÅÒÁÍÉ Micron? îÅËÏÔÏÒÙÅ ÍÁÔÅÒÉÎÓËÉÅ ÐÌÁÔÙ Micron ÉÍÅÀÔ BIOS, ÎÅ ÕÄÏ×ÌÅÔ×ÏÒÑÀÝÕÀ ÓÔÁÎÄÁÒÔÕ PCI BIOS, ÞÔÏ ÐÒÉ×ÏÄÉÔ Ë ÎÅÓÏÏÔ×ÅÔÓÔ×ÉÀ ÕÓÔÒÏÊÓÔ× PCI ÚÁÎÉÍÁÅÍÙÍ ÉÍÉ ÁÄÒÅÓÁÍ. üÔÏ ÐÒÉ×ÏÄÉÔ Ë ÐÅÞÁÌØÎÙÍ ÐÏÓÌÅÄÓÔ×ÉÑÍ ÐÒÉ ÚÁÇÒÕÚËÅ FreeBSD. äÌÑ ÒÅÛÅÎÉÑ ÜÔÏÊ ÐÒÏÂÌÅÍÙ ÏÔËÌÀÞÉÔÅ × BIOS ÏÐÃÉÀ "Plug and Play Operating System" . âÏÌÅÅ ÐÏÄÒÏÂÎÁÑ ÉÎÆÏÒÍÁÃÉÑ Ï ÜÔÏÊ ÐÒÏÂÌÅÍÅ ÎÁÈÏÄÉÔÓÑ ÐÏ ÓÌÅÄÕÀÝÅÍÕ ÁÄÒÅÓÕ: http://cesdis.gsfc.nasa.gov/linux/drivers/vortex.html#micron ðÏÄÄÅÒÖÉ×ÁÅÔ ÌÉ FreeBSD ÍÎÏÇÏÐÒÏÃÅÓÓÏÒÎÙÅ ÓÉÓÔÅÍÙ (SMP)? ðÏÄÄÅÒÖËÁ SMP (Symmetric Multiprocessing) ÉÍÅÅÔÓÑ ÔÏÌØËÏ × 3.0-STABLE É ÐÏÓÌÅÄÕÀÝÉÈ ÒÅÌÉÚÁÈ. õÓÔÒÁÎÅÎÉÅ ÎÅËÏÔÏÒÙÈ ÐÒÏÂÌÅÍ îÁ ÍÏ£Í ×ÉÎÞÅÓÔÅÒÙ ÅÓÔØ ÚÁÐÏÒÞÅÎÎÙÅ ÂÌÏËÉ! åÓÌÉ ÜÔÏ SCSI-ÕÓÔÒÏÊÓÔ×Ï, ÔÏ ×ÉÎÞÅÓÔÅÒ ÄÏÌÖÅÎ ÉÍÅÔØ ×ÏÚÍÏÖÎÏÓÔØ Á×ÔÏÍÁÔÉÞÅÓËÏÊ ÐÅÒÅÁÄÒÅÓÁÃÉÉ ÔÁËÉÈ ÂÌÏËÏ×. ïÄÎÁËÏ ÐÏ ÎÅÐÏÎÑÔÎÙÍ ÐÒÉÞÉÎÁÍ ×Ï ÍÎÏÇÉÈ ÐÏÓÔÁ×ÌÑÅÍÙÈ ÄÉÓËÁÈ ÜÔÁ ×ÏÚÍÏÖÎÏÓÔØ ÏÔËÌÀÞÅÎÁ... þÔÏÂ٠ţ ×ËÌÀÞÉÔØ, ×ÁÍ ÎÕÖÎÏ ÉÚÍÅÎÉÔØ ÒÅÖÉÍ ÒÁÂÏÔÙ ÕÓÔÒÏÊÓÔ×Á, ÞÔÏ ×Ï FreeBSD ÍÏÖÅÔ ÂÙÔØ ×ÙÐÏÌÎÅÎÏ ÁÄÍÉÎÉÓÔÒÁÔÏÒÏÍ ÐÏÓÒÅÄÓÔ×ÏÍ ËÏÍÁÎÄÙ scsi -f /dev/rsd0c -m 1 -e -P 3 É ÉÚÍÅÎÉÔØ ÚÎÁÞÅÎÉÑ ÐÁÒÁÍÅÔÒÏ× AWRE É ARRE Ó 0 ÎÁ 1:- AWRE (Auto Write Reallocation Enbld): 1 ARRE (Auto Read Reallocation Enbld): 1 ðÏÓÌÅÄÕÀÝÉÅ ÐÁÒÁÇÒÁÆÙ ÂÙÌÉ ÐÒÅÄÏÓÔÁ×ÌÅÎÙ ôÜÄÏÍ íÉÔÔÅÌØÛÔÁÄÔÏÍ (Ted Mittelstaedt): äÌÑ ÄÉÓËÏ× IDE ÐÏÑ×ÌÅÎÉÅ ÚÁÐÏÒÞÅÎÎÙÈ ÂÌÏËÏ× Ñ×ÌÑÅÔÓÑ ÐÒÉÚÎÁËÏÍ ×ÏÚÍÏÖÎÙÈ ÎÅÐÒÉÑÔÎÏÓÔÅÊ. ÷ÓÅ ÓÏ×ÒÅÍÅÎÎÙÅ IDE-ÄÉÓËÉ ÐÏÓÔÁ×ÌÑÀÔÓÑ Ó ×ËÌÀÞÅÎÎÏÊ ×ÏÚÍÏÖÎÏÓÔØÀ ÐÅÒÅÁÄÒÅÓÁÃÉÉ ÉÓÐÏÒÞÅÎÎÙÈ ÂÌÏËÏ×. ÷ÓÅ ÐÒÏÉÚ×ÏÄÉÔÅÌÉ ×ÉÎÞÅÓÔÅÒÏ× × ÎÁÓÔÏÑÝÅÅ ×ÒÅÍÑ ÐÒÅÄÏÓÔÁ×ÌÑÀÔ ÒÁÓÛÉÒÅÎÎÙÅ ÇÁÒÁÎÔÉÉ É ÚÁÍÅÎÑÀÔ ÄÉÓËÉ Ó ÚÁÐÏÒÞÅÎÎÙÍÉ ÂÌÏËÁÍÉ. åÓÌÉ ×Ù ×Ó£ ÖÅ ÈÏÔÉÔÅ ÓÐÁÓÔÉ ×ÁÛ ÄÉÓË IDE Ó ÚÁÐÏÒÞÅÎÎÙÍÉ ÂÌÏËÁÍÉ, ×Ù ÍÏÖÅÔÅ ÐÏÐÙÔÁÔØÓÑ ÎÁÊÔÉ ÐÒÏÇÒÁÍÍÕ ÄÉÁÇÎÏÓÔÉËÉ ×ÉÎÞÅÓÔÅÒÏ× ÏÔ ÐÒÏÉÚ×ÏÄÉÔÅÌÑ É ÐÒÏÔÅÓÔÉÒÏ×ÁÔØ ÅÀ ÄÉÓË. éÎÏÇÄÁ ÜÔÉ ÐÒÏÇÒÁÍÍÙ ÍÏÇÕÔ ÚÁÓÔÁ×ÉÔØ ÜÌÅËÔÒÏÎÉËÕ ×ÉÎÞÅÓÔÅÒÁ ÐÅÒÅÓËÁÎÉÒÏ×ÁÔØ ÄÉÓË × ÐÏÉÓËÁÈ ÉÓÐÏÒÞÅÎÎÙÈ ÂÌÏËÏ× É ÚÁÂÌÏËÉÒÏ×ÁÔØ ÉÈ. ÷ ÓÌÕÞÁÅ ÄÉÓËÏ× ÓÔÁÎÄÁÒÔÏ× ESDI, RLL É MFM, ÎÁÌÉÞÉÅ ÉÓÐÏÒÞÅÎÎÙÈ ÂÌÏËÏ× Ñ×ÌÑÅÔÓÑ ÏÂÙÞÎÙÍ Ñ×ÌÅÎÉÅÍ É ÎÅ Ñ×ÌÑÅÔÓÑ ÂÏÌØÛÏÊ ÐÒÏÂÌÅÍÏÊ. ÷ ðë ËÏÎÔÒÏÌÌÅÒ ×ÉÎÞÅÓÔÅÒÁ É BIOS ÂÅÒÕÔ ÎÁ ÓÅÂÑ ÒÁÂÏÔÕ ÐÏ ÂÌÏËÉÒÏ×ËÅ ÉÓÐÏÒÞÅÎÎÙÈ ÂÌÏËÏ×. üÔÏ ÐÒÅËÒÁÓÎÏ ÒÁÂÏÔÁÅÔ × ÓÌÕÞÁÅ ÏÐÅÒÁÃÉÏÎÎÙÈ ÓÉÓÔÅÍ ÔÉÐÁ DOS, ËÏÔÏÒÙÅ ÉÓÐÏÌØÚÕÀÔ ×ÙÚÏ×Ù BIOS ÄÌÑ ÄÏÓÔÕÐÁ Ë ÄÉÓËÕ. ïÄÎÁËÏ ÄÒÁÊ×ÅÒ ÄÉÓËÁ ×Ï FreeBSD ÎÅ ÏÂÒÁÝÁÅÔÓÑ Ë BIOS, ÐÏÜÔÏÍÕ ÄÌÑ ÏÂÅÓÐÅÞÅÎÉÑ ÐÏÄÏÂÎÏÊ ÆÕÎËÃÉÏÎÁÌØÎÏÓÔÉ ÓÕÝÅÓÔ×ÕÅÔ bad144. bad144 ÒÁÂÏÔÁÅÔ ÔÏÌØËÏ Ó ÄÒÁÊ×ÅÒÏÍ wd, Å£ îå÷ïúíïöîï ÉÓÐÏÌØÚÏ×ÁÔØ ÓÏ SCSI. bad144 ÐÏÍÅÝÁÅÔ ×ÓÅ ÎÁÊÄÅÎÎÙÅ ÉÓÐÏÒÞÅÎÎÙÅ ÓÅËÔÏÒÁ × ÓÐÅÃÉÁÌØÎÙÊ ÆÁÊÌ. õ bad144 ÉÍÅÅÔÓÑ ÏÓÏÂÅÎÎÏÓÔØ - ÓÐÅÃÉÁÌØÎÙÊ ÆÁÊÌ Ó ÉÓÐÏÒÞÅÎÎÙÍÉ ÂÌÏËÁÍÉ ÐÏÍÅÝÁÅÔÓÑ ÎÁ ÐÏÓÌÅÄÎÀÀ ÄÏÒÏÖËÕ ÄÉÓËÁ. ôÁË ËÁË ÜÔÏÔ ÆÁÊÌ ÍÏÖÅÔ ÓÏÄÅÒÖÁÔØ ÓÐÉÓÏË ÉÓÐÏÒÞÅÎÎÙÈ ÓÅËÔÏÒÏ×, ÎÁÈÏÄÑÝÉÈÓÑ × ÎÁÞÁÌÅ ÄÉÓËÁ, ÇÄÅ ÍÏÖÅÔ ÒÁÓÐÏÌÁÇÁÔØÓÑ ÆÁÊÌ ÑÄÒÁ /kernel, ÏÎ ÄÏÌÖÅÎ ÂÙÔØ ÄÏÓÔÕÐÅÎ ÚÁÇÒÕÚÞÉËÕ, ÉÓÐÏÌØÚÕÀÝÅÍÕ ×ÙÚÏ×Ù BIOS ÄÌÑ ÞÔÅÎÉÑ ÆÁÊÌÁ ÑÄÒÁ. üÔÏ ÚÎÁÞÉÔ, ÞÔÏ ÄÉÓË, ËÏÔÏÒÙÊ ÉÓÐÏÌØÚÕÅÔ bad144, ÎÅ ÄÏÌÖÅÎ ÉÍÅÔØ ÒÁÚÍÅÒÙ, ÐÒÅ×ÙÛÁÀÝÉÅ 1024 ÄÏÒÏÖËÉ, 16 ÇÏÌÏ×ÏË É 63 ÓÅËÔÏÒÁ. üÔÏ ÏÇÒÁÎÉÞÉ×ÁÅÔ ÒÁÚÍÅÒ ÄÉÓËÁ, ÏÂÒÁÂÁÔÙ×ÁÅÍÏÇÏ bad144, 500 ÍÅÇÁÂÁÊÔÁÍÉ. äÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ bad144, ÐÒÏÓÔÏ ÕÓÔÁÎÏ×ÉÔÅ "Bad Block" × ÐÏÌÏÖÅÎÉÅ ON ÎÁ ÜËÒÁÎÅ ÐÒÏÇÒÁÍÍÙ fdisk ×Ï ×ÒÅÍÑ ÎÁÞÁÌØÎÏÊ ÕÓÔÁÎÏ×ËÉ. üÔÏ ÒÁÂÏÔÁÅÔ ÎÁÞÉÎÁÑ Ó FreeBSD 2.2.7. äÉÓË ÄÏÌÖÅÎ ÉÍÅÔØ ÒÁÚÍÅÒ, ÎÅ ÐÒÅ×ÙÛÁÀÝÉÊ 1024 ÄÏÒÏÖËÉ. òÅËÏÍÅÎÄÕÅÔÓÑ, ÞÔÏÂÙ ÄÏ ÜÔÏÇÏ ÄÉÓË ÐÒÏÒÁÂÏÔÁÌ ÎÅ ÍÅÎÅÅ 4 ÞÁÓÏ× ÄÌÑ ÐÅÒÅÈÏÄÁ × ÒÁÂÏÞÉÊ ÔÅÐÌÏ×ÏÊ ÒÅÖÉÍ É ÓÔÁÂÉÌØÎÙÊ ÒÅÖÉÍ ÒÁÂÏÔÙ ÇÏÌÏ×ÏË. åÓÌÉ ÄÉÓË ÉÍÅÅÔ ÒÁÚÍÅÒ, ÐÒÅ×ÙÛÁÀÝÉÊ 1024 ÇÏÌÏ×ËÉ (ËÁË, ÎÁÐÒÉÍÅÒ, ÂÏÌØÛÏÊ ÄÉÓË ESDI), ËÏÎÔÒÏÌÌÅÒ ESDI ÉÓÐÏÌØÚÕÅÔ ÏÓÏÂÙÊ ÒÅÖÉÍ ÔÒÁÎÓÌÑÃÉÉ, ÞÔÏÂÙ ÜÔÏ ÒÁÂÏÔÁÌÏ × DOS. äÒÁÊ×ÅÒ wd ÂÕÄÅÔ ÚÎÁÔØ Ï ÜÔÉÈ ÒÅÖÉÍÁÈ ÔÒÁÎÓÌÑÃÉÉ, åóìé ×Ù ÕËÁÖÅÔÅ ÎÁ ÉÓÐÏÌØÚÏ×ÁÎÉÅ "ÐÒÅÏÂÒÁÚÏ×ÁÎÎÙÈ" ÐÁÒÁÍÅÔÒÏ× × ËÏÍÁÎÄÅ "set geometry" ÐÒÏÇÒÁÍÍÙ fdisk. ÷Ù ÔÁËÖÅ îå ÄÏÌÖÎÙ ÉÓÐÏÌØÚÏ×ÁÔØ ÒÅÖÉÍ "dangerously dedicated" ÐÒÉ ×ÙÄÅÌÅÎÉÉ ÒÁÚÄÅÌÁ ÄÌÑ FreeBSD, ÔÁË ËÁË ÐÒÉ ÜÔÏÍ ÐÁÒÁÍÅÔÒÙ ÄÉÓËÁ ÎÅ ÐÒÉÎÉÍÁÀÔÓÑ ×Ï ×ÎÉÍÁÎÉÅ. ôÁËÖÅ, ÈÏÔÑ fdisk ÂÕÄÅÔ ÉÓÐÏÌØÚÏ×ÁÔØ ÉÚÍÅΣÎÎÙÅ ÐÁÒÁÍÅÔÒÙ, ÏÎ ×Ó£ ÖÅ ÐÏÍÎÉÔ ÎÁÓÔÏÑÝÉÊ ÒÁÚÍÅÒ ÄÉÓËÁ, É ÐÏÐÙÔÁÅÔÓÑ ÓÏÚÄÁÔØ ÓÌÉÛËÏÍ ÂÏÌØÛÏÊ ÒÁÚÄÅÌ FreeBSD. åÓÌÉ ÐÁÒÁÍÅÔÒÙ ÄÉÓËÁ ÉÚÍÅÎÉÌÉÓØ ÎÁ ÔÒÁÎÓÌÉÒÏ×ÁÎÎÙÅ, ÒÁÚÄÅÌ äïìöåî ÂÙÔØ ÓÏÚÄÁÎ ×ÒÕÞÎÕÀ Ó ÕËÁÚÁÎÉÅÍ ËÏÌÉÞÅÓÔ×Á ÂÌÏËÏ×. óÁÍÙÍ ÂÙÓÔÒÙÍ ÓÐÏÓÏÂÏÍ Ñ×ÌÑÅÔÓÑ ÕÓÔÁÎÏ×ËÁ ÂÏÌØÛÏÇÏ ÄÉÓËÁ ESDI Ó ËÏÎÔÏÌÌÅÒÏÍ ESDI, ÚÁÇÒÕÚËÁ DOS É ×ÙÄÅÌÅÎÉÅ ÎÁ Î£Í ÒÁÚÄÅÌÁ DOS. úÁÔÅÍ ÚÁÐÕÓÔÉÔÅ ÉÎÓÔÁÌÌÑÃÉÏÎÎÕÀ ÐÒÏÇÒÁÍÍÕ FreeBSD É × ÜËÒÁÎÅ ÐÒÏÇÒÁÍÍÙ fdisk ÎÁÊÄÉÔÅ É ÚÁÐÉÛÉÔÅ ÒÁÚÍÅÒ ÂÌÏËÁ É ÉÈ ËÏÌÉÞÅÓÔ×Ï ÒÁÚÄÅÌÁ DOS. úÁÔÅÍ ÕÓÔÁÎÏ×ÉÔÅ ÐÁÒÁÍÅÔÒÙ × ÔÅ ÖÅ ÚÎÁÞÅÎÉÑ, ËÏÔÏÒÙÅ ÉÓÐÏÌØÚÕÅÔ DOS, ÕÄÁÌÉÔÅ ÒÁÚÄÅÌ DOS É ÓÏÚÄÁÊÔÅ "ÓÏ×ÍÅÝ£ÎÎÙÊ" ÒÁÚÄÅÌ FreeBSD Ó ÒÁÎÅÅ ÚÁÐÉÓÁÎÎÙÍ ÒÁÚÍÅÒÏÍ ÂÌÏËÁ. úÁÔÅÍ ÕÓÔÁÎÏ×ÉÔÅ ÚÁÇÒÕÚËÕ Ó ÜÔÏÇÏ ÒÁÚÄÅÌÁ É ×ËÌÀÞÉÔÅ ÓËÁÎÉÒÏ×ÁÎÉÅ ÉÓÐÏÒÞÅÎÎÙÈ ÂÌÏËÏ×. ÷Ï ×ÒÅÍÑ ÕÓÔÁÎÏ×ËÉ ÓÎÁÞÁÌÁ, ÅÝ£ ÄÏ ÓÏÚÄÁÎÉÑ ÆÁÊÌÏ×ÙÈ ÓÉÓÔÅÍ, ÚÁÐÕÓÔÉÔÓÑ bad144 (×Ù ÍÏÖÅÔÅ ÜÔÏ Õ×ÉÄÅÔØ ÐÏ Alt-F2). åÓÌÉ ×ÏÚÎÉËÎÕÔ ÐÒÏÂÌÅÍÙ ÐÒÉ ÓÏÚÄÁÎÉÉ ÆÁÊÌÁ Ó ÚÁÐÏÒÞÅÎÎÙÍÉ ÓÅËÔÏÒÁÍÉ, ×Ù ÕÓÔÁÎÏ×ÉÌÉ ÓÌÉÛËÏÍ ÂÏÌØÛÉÅ ÐÁÒÁÍÅÔÒÙ ÄÉÓËÁ - ÐÅÒÅÚÁÇÒÕÚÉÔÅÓØ É ÎÁÞÎÉÔÅ ×Ó£ ÓÎÁÞÁÌÁ (×ËÌÀÞÁÑ ÐÏ×ÔÏÒÎÙÅ ÒÁÚÂÉÅÎÉÅ ÎÁ ÒÁÚÄÅÌÙ É ÆÏÒÍÁÔÉÒÏ×ÁÎÉÅ ×ÉÎÞÅÓÔÅÒÁ × DOS). åÓÌÉ ÐÅÒÅÁÄÒÅÓÁÃÉÑ ×ËÌÀÞÅÎÁ É ×Ó£ ÒÁ×ÎÏ ÎÁ ÄÉÓËÅ ÐÒÉÓÕÔÓÔ×ÕÀÔ ÚÁÐÏÒÞÅÎÎÙÅ ÂÌÏËÉ, ÔÏ, ÐÏ-×ÉÄÉÍÏÍÕ, ÏÓÔÁ£ÔÓÑ ÔÏÌØËÏ ÚÁÍÅÎÉÔØ ×ÉÎÞÅÓÔÅÒ. ëÏÌÉÞÅÓÔ×Ï ÉÓÐÏÒÞÅÎÎÙÈ ÂÌÏËÏ× Ó ÔÅÞÅÎÉÅÍ ×ÒÅÍÅÎÉ ÉÍÅÅÔ ÔÅÎÄÅÎÃÉÀ ÔÏÌØËÏ Õ×ÅÌÉÞÉ×ÁÔØÓÑ. FreeBSD ÎÅ ÒÁÓÐÏÚÎÁ£Ô ÍÏÊ EISA SCSI ËÏÎÔÒÏÌÌÅÒ Bustek 742a! îÉÖÅÓÌÅÄÕÀÝÁÑ ÉÎÆÏÒÍÁÃÉÑ ÓÐÅÃÉÆÉÞÎÁ ÄÌÑ 742a, ÎÏ ÍÏÖÅÔ ËÁÓÁÔØÓÑ É ÄÒÕÇÉÈ ÁÄÁÐÔÅÒÏ× ÏÔ Buslogic (Bustek = Buslogic). óÕÝÅÓÔ×ÕÀÔ Ä×Å ÏÓÎÏ×ÎÙÈ ``×ÅÒÓÉÉ'' ÁÄÁÐÔÅÒÏ× 742a. üÔÏ ÁÐÐÁÒÁÔÎÙÅ ÍÏÄÉÆÉËÁÃÉÉ A-G É ÍÏÄÉÆÉËÁÃÉÉ H É ×ÙÛÅ. âÕË×Á, ÏÂÏÚÎÁÞÁÀÝÁÑ ÍÏÄÉÆÉËÁÃÉÀ, ÒÁÓÐÏÌÏÖÅÎÁ ÐÏÓÌÅ ÎÏÍÅÒÁ ÓÂÏÒËÉ ÎÁ ËÒÏÍËÅ ÁÄÁÐÔÅÒÁ. îÁ ÁÄÁÐÔÅÒÅ 742a ÕÓÔÁÎÏ×ÌÅÎÙ Ä×Å ÍÉËÒÏÓÈÅÍÙ ðúõ, ÏÄÎÁ ÓÏÄÅÒÖÉÔ BIOS, Á ÄÒÕÇÁÑ - ÍÉËÒÏËÏÄ (ÔÁË ÎÁÚÙ×ÁÅÍÏÅ firmware). äÌÑ FreeBSD ÎÅ ÉÍÅÅÔ ÚÎÁÞÅÎÉÑ ÉÓÐÏÌØÚÕÅÍÁÑ ×ÅÒÓÉÑ BIOS, ÎÏ ÉÍÅÅÔ ÚÎÁÞÅÎÉÅ ×ÅÒÓÉÑ ÍÉËÒÏËÏÄÁ. Buslogic ×ÙÓÙÌÁÅÔ ÏÂÎÏ×ÌÅÎÉÑ ÄÌÑ ðúõ, ÅÓÌÉ ×Ù ÐÏÚ×ÏÎÉÔÅ × ÉÈ ÏÔÄÅÌ ÔÅÈÎÉÞÅÓËÏÊ ÐÏÄÄÅÒÖËÉ. íÉÈÒÏÓÈÅÍÙ Ó BIOS É ÍÉËÒÏËÏÄÏÍ ÐÏÓÔÁ×ÌÑÀÔÓÑ ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÍÉ ÐÁÒÁÍÉ. ÷ ðúõ ÁÄÁÐÔÅÒÁ ×Ù ÄÏÌÖÎÙ ÉÍÅÔØ ÓÁÍÕÀ ÐÏÓÌÅÄÎÀÀ ×ÅÒÓÉÉ ÍÉËÒÏËÏÄÁ ÄÌÑ ×ÁÛÅÊ ÁÐÐÁÒÁÔÎÏÊ ÍÏÄÉÆÉËÁÃÉÉ. áÄÁÐÔÅÒÁÍ ÍÏÄÉÆÉËÁÃÉÊ A-G ÍÏÖÅÔ ÔÏÌØËÏ ÐÏÄÏÊÔÉ BIOS/Firmware ×ÅÒÓÉÊ ×ÐÌÏÔØ ÄÏ 2.41/2.21. áÄÁÐÔÅÒÁÍ ÍÏÄÉÆÉËÁÃÉÊ H É ÓÔÁÒÛÅ ÐÏÄÈÏÄÑÔ ÓÁÍÙÅ ÐÏÓÌÅÄÎÉÅ ×ÅÒÓÉÉ BIOS/Firmware 4.70/3.37. ïÔÌÉÞÉÅ ÍÅÖÄÕ ×ÅÒÓÉÑÍÉ ÍÉËÒÏËÏÄÁ ÚÁËÌÀÞÁÅÔÓÑ × ÔÏÍ, ÞÔÏ ×ÅÒÓÉÑ ÍÉËÒÏËÏÄÁ 3.37 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÍÅÈÁÎÉÚÍ ``round robin''. îÁ ÁÄÁÐÔÅÒÁÈ Buslogic ÐÒÏÓÔÁ×ÌÅÎ ÓÅÒÉÊÎÙÊ ÎÏÍÅÒ. åÓÌÉ Õ ×ÁÓ ÁÄÁÐÔÅÒ ÓÔÁÒÏÊ ÍÏÄÉÆÉËÁÃÉÉ, ×Ù ÍÏÖÅÔÅ ÐÏÚ×ÏÎÉÔØ × ÐÏÄÒÁÚÄÅÌÅÎÉÅ RMA ÆÉÒÍÙ Buslogic, ÓËÁÚÁÔØ ÉÍ ÓÅÒÉÊÎÙÊ ÎÏÍÅÒ ÁÄÁÐÔÅÒÁ É ÐÏÐÙÔÁÔØÓÑ ÏÂÍÅÎÑÔØ ÅÇÏ ÎÁ ÂÏÌÅÅ ÎÏ×ÕÀ ÍÏÄÉÆÉËÁÃÉÀ. åÓÌÉ ÁÄÁÐÔÅÒ ÄÏÓÔÁÔÏÞÎÏ ÎÏ×, ÔÏ ÏÎÉ ÅÇÏ ÐÏÍÅÎÑÀÔ. FreeBSD 2.1 ÐÏÄÄÅÒÖÉ×ÁÅÔ ÍÉËÒÏËÏÄ ÍÏÄÉÆÉËÁÃÉÊ ÔÏÌØËÏ 2.21 É ×ÙÛÅ. åÓÌÉ Õ ×ÁÓ ×ÅÒÓÉÑ ÍÉËÒÏËÏÄÁ ÓÔÁÒÅÅ, ÞÅÍ ÜÔÁ, ÔÏ ÁÄÁÐÔÅÒ ÎÅ ÂÕÄÅÔ ÒÁÓÐÏÚÎÁ×ÁÔØÓÑ ËÁË ÁÄÁÐÔÅÒ Buslogic. ïÄÎÁËÏ ÏÎ ÍÏÖÅÔ ÂÙÔØ ÏÐÏÚÎÁÎ ËÁË Adaptec 1540. òÁÎÎÉÅ ×ÅÒÓÉÉ ÍÉËÒÏËÏÄÁ ÏÔ Buslogic ÓÏÄÅÒÖÁÔ ÒÅÖÉÍ ``ÜÍÕÌÑÃÉÉ'' AHA1540. ïÄÎÁËÏ ÄÌÑ EISA-ÁÄÁÐÔÅÒÁ ×Ó£ ÜÔÏ ×ÙÇÌÑÄÉÔ ËÁË-ÔÏ ÎÅËÒÁÓÉ×Ï. åÓÌÉ Õ ×ÁÓ ÁÄÁÐÔÅÒ ÓÔÁÒÏÊ ÍÏÄÉÆÉËÁÃÉÉ É ×Ù ÐÏÌÕÞÉÌÉ ÍÉËÒÏËÏÄ 2.21 ÄÌÑ ÎÅÇÏ, ÕÓÔÁÎÏ×ÉÔÅ ÐÅÒÅÍÙÞËÕ W1 × ÐÏÌÏÖÅÎÉÅ B-C, ÐÏ ÕÍÏÌÞÁÎÉÀ ÏÎÁ ÎÁÈÏÄÉÔÓÑ × ÐÏÌÏÖÅÎÉÉ A-B. áÄÁÐÔÅÒÙ 742a EISA ÎÉËÏÇÄÁ ÎÅ ÉÍÅÌÉ ÐÒÏÂÌÅÍÕ ``>16MB'', ÏÐÉÓÁÎÎÕÀ × ÒÁÚÄÅÌÅ . üÔÁ ÐÒÏÂÌÅÍÁ ×ÏÚÎÉËÁÅÔ ÓÏ SCSI-ÁÄÁÐÔÅÒÁÍÉ Vesa-Local Buslogic. îÅ ÒÁÓÐÏÚÎÁ£ÔÓÑ SCSI-ËÏÎÔÒÏÌÌÅÒ ÎÁ HP Netserver! ÷ ÏÂÝÅÍ-ÔÏ ÜÔÏ ÉÚ×ÅÓÔÎÁÑ ÐÒÏÂÌÅÍÁ. EISA-ËÏÎÔÒÏÌÌÅÒÙ SCSI, ÒÁÓÐÏÌÏÖÅÎÎÙÅ ÎÁ ÍÁÔÅÒÉÎÓËÏÊ ÐÌÁÔÅ ÍÁÛÉÎ HP Netserver, ÚÁÎÉÍÁÀÔ EISA-ÓÌÏÔ ÎÏÍÅÒ 11, ÔÁË ÞÔÏ ×ÓÅ ``ÎÁÓÔÏÑÝÉÅ'' ÓÌÏÔÙ EISA ÂÕÄÕÔ ÅÍÕ ÐÒÅÄÛÅÓÔ×Ï×ÁÔØ. ôÁË ËÁË ÁÄÒÅÓÎÏÅ ÐÒÏÓÔÒÁÎÓÔ×Ï ÄÌÑ ÓÌÏÔÏ× EISA ×ÙÛÅ 10 ÐÅÒÅÓÅËÁÅÔÓÑ Ó ÁÄÒÅÓÎÙÍ ÐÒÏÓÔÒÁÎÓÔ×ÏÍ, ÐÒÅÄÎÁÚÎÁÞÅÎÎÙÍ ÄÌÑ PCI, ÔÏ Á×ÔÏËÏÎÆÉÇÕÒÁÔÏÒ FreeBSD × ÎÁÓÔÏÑÝÅÅ ×ÒÅÍÑ ÎÅ ÍÏÖÅÔ ÜÔÕ ÐÒÏÂÌÅÍÕ ÎÏÒÍÁÌØÎÏ ÏÂÏÊÔÉ. ôÁË ÞÔÏ ÐÏËÁ ÌÕÞÛÅÅ, ÞÔÏ ×Ù ÍÏÖÅÔÅ ÐÒÅÄÐÒÉÎÑÔØ, ÜÔÏ ÐÏÐÙÔÁÔØÓÑ ÕËÁÚÁÔØ, ÞÔÏ ÐÅÒÅÓÅÞÅÎÉÑ ÄÉÁÐÁÚÏÎÏ× ÁÄÒÅÓÏ× ÎÅÔ :), ÕÓÔÁÎÏ×É× ÏÐÃÉÀ ÑÄÒÁ EISA_SLOTS × ÚÎÁÞÅÎÉÅ 12. ïÔËÏÎÆÉÇÕÒÉÒÕÊÔÅ É ÏÔËÏÍÐÉÌÉÒÕÊÔÅ ÑÄÒÏ ÔÁË, ËÁË ÜÔÏ ÏÐÉÓÁÎÏ × ÒÁÚÄÅÌÅ òÕËÏ×ÏÄÓÔ×Á Ï ËÏÎÆÉÇÕÒÉÒÏ×ÁÎÉÉ ÑÄÒÁ. ëÏÎÅÞÎÏ, ÜÔÏ ÄÁÓÔ ×ÁÍ ÔÉÐÉÞÎÕÀ ÓÉÔÕÁÃÉÉ "ËÕÒÉÃÁ ÉÌÉ ÑÊÃÏ" ÐÒÉ ÕÓÔÁÎÏ×ËÅ ÓÉÓÔÅÍÙ ÎÁ ÔÁËÏÊ ÍÁÛÉÎÅ. äÌÑ ÏÂÈÏÄÁ ÜÔÏÊ ÐÒÏÂÌÅÍÙ ×ÎÕÔÒÉ UserConfig ÅÓÔØ ÓÐÅÃÉÁÌØÎÙÊ ÈÁË. îÅ ÉÓÐÏÌØÚÕÑ ``×ÉÚÕÁÌØÎÏÇÏ'' ÉÎÔÅÒÆÅÊÓÁ, Á ÔÏÌØËÏ ÉÎÔÅÒÆÅÊÓ ËÏÍÁÎÄÎÏÊ ÓÔÒÏËÉ, ÐÒÏÓÔÏ ÎÁÂÅÒÉÔÅ eisa 12 quit × ÐÒÉÇÌÁÛÅÎÉÉ, É ÐÒÏÉÎÓÔÁÌÌÉÒÕÊÔÅ ÓÉÓÔÅÍÕ ËÁË ÏÂÙÞÎÏ. ÷ ÌÀÂÏÍ ÓÌÕÞÁÅ ÒÅËÏÍÅÎÄÕÅÔÓÑ, ÞÔÏ ×Ù ÏÔËÏÎÆÉÇÕÒÉÒÕÅÔÅ É ÐÒÏÉÎÓÔÁÌÌÉÒÕÅÔÅ ÓÏÂÓÔ×ÅÎÎÏÅ ÑÄÒÏ. ðÒÏÇÒÁÍÍÁ dset × ÎÁÓÔÏÑÝÅÅ ×ÒÅÍÑ ÍÏÖÅÔ ÓÏÈÒÁÎÑÔØ ÜÔÏ ÚÎÁÞÅÎÉÅ. îÁÄÅÅÍÓÑ, ÞÔÏ ÂÕÄÕÝÉÅ ×ÅÒÓÉÉ ÂÕÄÕÔ ÓÏÄÅÒÖÁÔØ ÐÏÌÎÏÅ ÒÅÛÅÎÉÅ ÜÔÏÊ ÐÒÏÂÌÅÍÙ. úáíåþáîéå: ÷Ù ÎÅ ÓÍÏÖÅÔÅ ÉÓÐÏÌØÚÏ×ÁÔØ ÒÅÖÉÍ dangerously dedicated ÎÁ ÍÁÛÉÎÁÈ HP Netserver. ðÏÌÎÏÅ ÏÐÉÓÁÎÉÅ ÐÒÉÞÉÎ ÓÏÄÅÒÖÉÔÓÑ × ÜÔÏÍ ÚÁÍÅÞÁÎÉÉ. þÔÏ ÎÅ ÔÁË Ó IDE-ËÏÎÔÒÏÌÌÅÒÏÍ CMD640? üÔÏÔ ËÏÎÔÒÏÌÌÅÒ ÎÅ ÒÁÂÏÞÉÊ. ïÎ ÎÅ ÍÏÖÅÔ ÏÔÒÁÂÁÔÙ×ÁÔØ ËÏÍÁÎÄÙ ÎÁ ÏÂÏÉÈ ËÁÎÁÌÁÈ ÏÄÎÏ×ÒÅÍÅÎÎÏ. òÅÛÅÎÉÅ ÜÔÏÊ ÐÒÏÂÌÅÍÙ ÓÕÝÅÓÔ×ÕÅÔ É ×ËÌÀÞÁÅÔÓÑ Á×ÔÏÍÁÔÉÞÅÓËÉ, ÅÓÌÉ × ×ÁÛÅÊ ÓÉÓÔÅÍÅ ÉÓÐÏÌØÝÕÅÔÓÑ ÜÔÏÔ ËÏÎÔÒÏÌÌÅÒ. ðÏÄÒÏÂÎÁÑ ÉÎÆÏÒÍÁÃÉÑ ÎÁÈÏÄÉÔÓÑ ÎÁ ÓÔÒÁÎÉÃÁÈ óÐÒÁ×ÏÞÎÉËÁ ÐÏ ÄÉÓËÏ×ÏÍÕ ÄÒÁÊ×ÅÒÕ (man 4 wd). åÓÌÉ ×Ù ÕÖÅ ÒÁÂÏÔÁÅÔÅ Ó FreeBSD 2.2.1 ÉÌÉ 2.2.2 Ó IDE-ËÏÎÔÒÏÌÌÅÒÏÍ CMD640 É ÈÏÔÉÔÅ ÉÓÐÏÌØÚÏ×ÁÔØ ×ÔÏÒÏÊ ËÁÎÁÌ, ÐÏÓÔÒÏÊÔÅ ÎÏ×ÏÅ ÑÄÒÏ Ó ×ËÌÀÞÅÎÎÏÊ ÏÐÃÉÅÊ options "CMD640". ÷ ×ÅÒÓÉÉ 2.2.6 É ×ÙÛÅ ÜÔÏ ×ËÌÀÞÅÎÏ ÐÏ ÕÍÏÌÞÁÎÉÀ. ÷ÙÄÁÀÔÓÑ ÓÏÏÂÝÅÎÉÑ ÔÉÐÁ ``ed1: timeout''. ïÂÙÞÎÏ ÜÔÏ ×ÙÚ×ÁÎÏ ËÏÎÆÌÉËÔÏÍ ÐÒÅÒÙ×ÁÎÉÊ (ÎÁÐÒÉÍÅÒ, Ä×ÕÈ ÁÄÁÐÔÅÒÏ×, ÉÓÐÏÌØÚÕÀÝÉÈ ÏÄÉÎ É ÔÏÔ ÖÅ IRQ). FreeBSD ÄÏ ×ÅÒÓÉÉ 2.0.5R ÂÙÌÁ ÎÅÞÕ×ÓÔ×ÉÔÅÌØÎÁ Ë ÔÁËÉÍ ËÏÎÆÌÉËÔÁÍ, É ÄÒÁÊ×ÅÒ ÓÅÔÅ×ÏÇÏ ÁÄÁÐÅÔÒÁ ÏÓÔÁ×ÁÌÓÑ ÒÁÂÏÔÏÓÐÏÓÏÂÅÎ ÄÁÖÅ ÐÒÉ ËÏÎÆÌÉËÔÁÈ IRQ. ïÄÎÁËÏ Ó ×ÅÒÓÉÉ 2.0.5R É ×ÙÛÅ, ËÏÎÆÌÉËÔÙ IRQ ÂÏÌØÛÅ ÎÅ ÓÞÉÔÁÀÔÓÑ ÂÅÚÏÂÉÄÎÙÍÉ. úÁÇÒÕÚÉÔÅÓØ Ó ÏÐÃÉÅÊ -c É ÓÍÅÎÉÔÅ ÓÔÒÏËÕ, ÏÐÉÓÙ×ÁÀÝÕÀ ed0/de0/... ÎÁ ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÕÀ ×ÁÛÅÊ ÓÉÓÔÅÍÅ.. åÓÌÉ ×Ù ÉÓÐÏÌØÚÕÅÔÅ ÒÁÚß£Í BNC ÓÅÔÅ×ÏÇÏ ÁÄÁÐÔÅÒÁ, ÔÁÊÍÁÕÔÙ ÕÓÔÒÏÊÓÔ×Á ÍÏÇÕÔ ÂÙÔØ ×ÙÚ×ÁÎÙ ÐÌÏÈÉÍ ÔÅÒÍÉÎÉÒÏ×ÁÎÉÅÍ. þÔÏÂÙ ÜÔÏ ÐÒÏ×ÅÒÉÔØ, ÐÏÄËÌÀÞÉÔÅ ÔÅÒÍÉÎÁÔÏÒ Ë ÁÄÁÐÔÅÒÕ (ÂÅÚ ËÁÂÅÌÑ) É ÐÏÓÍÏÔÒÉÔÅ, ÎÅ ÉÓÞÅÚÌÉ ÌÉ ÓÏÏÂÝÅÎÉÑ Ï ÏÛÉÂËÁÈ. îÅËÏÔÏÒÙÅ NE2000-ÓÏ×ÍÅÓÔÉÍÙÅ ÁÄÁÐÔÅÒÙ ×ÙÄÁÀÔ ÔÁËÕÀ ÏÛÉÂËÕ, ÅÓÌÉ ÎÅÔ Ó×ÑÚÉ ÐÏ UTP-ÐÏÒÔÕ ÉÌÉ ÏÔËÌÀÞÅÎ ËÁÂÅÌØ. ðÒÉ ÍÏÎÔÉÒÏ×ÁÎÉÉ ËÏÍÐÁËÔ-ÄÉÓËÁ, ×ÙÄÁ£ÔÓÑ ÓÏÏÂÝÅÎÉÅ ``Incorrect super block''. ÷ ÐÁÒÁÍÅÔÒÁÈ ËÏÍÁÎÄÙ mount ×ÁÍ ÎÕÖÎÏ ÕËÁÚÁÔØ ÔÉÐ ÕÓÔÒÏÊÓÔ×Á, ËÏÔÏÒÙÊ ×Ù ÓÏÂÉÒÁÅÔÅÓØ ÓÍÏÎÔÉÒÏ×ÁÔØ. ðÏ ÕÍÏÌÞÁÎÉÀ mount ÐÏÌÁÇÁÅÔ, ÞÔÏ ÍÏÎÔÉÒÕÅÍÁÑ ÆÁÊÌÏ×ÁÑ ÓÉÓÔÅÍÁ ÉÍÅÅÔ ÔÉÐ ``ufs''. ðÒÉ ÍÏÎÔÉÒÏ×ÁÎÉÉ ÆÁÊÌÏ×ÏÊ ÓÉÓÔÅÍÙ CDROM ÎÕÖÎÏ ÕËÁÚÁÔØ ÏÐÃÉÀ ``'' × ËÏÍÁÎÄÅ mount. ðÒÉ ÜÔÏÍ ËÏÎÅÞÎÏ ÐÒÅÄÐÏÌÁÇÁÅÔÓÑ, ÞÔÏ CDROM ÓÏÄÅÒÖÉÔ ÆÁÊÌÏ×ÕÀ ÓÉÓÔÅÍÕ ÓÔÁÎÄÁÒÔÁ ISO 9660, ËÁË ÎÁ ÂÏÌØÛÉÎÓÔ×Å CDROM. ó ×ÅÒÓÉÉ 1.1R FreeBSD Á×ÔÏÍÁÔÉÞÅÓËÉ ÒÁÓÐÏÚÎÁ£Ô ÔÁËÖÅ ÒÁÓÛÉÒÅÎÉÅ Rock Ridge (ÄÌÑ ÄÌÉÎÎÙÈ ÉͣΠÆÁÊÌÏ×). îÁÐÒÉÍÅÒ, ÅÓÌÉ ×Ù ÈÏÔÉÔÅ ÓÍÏÎÔÉÒÏ×ÁÔØ ÕÓÔÒÏÊÓÔ×Ï CDROM ``/dev/cd0c'', × ËÁÔÁÌÏÇ /mnt, ×Ù ÄÏÌÖÎÙ ×ÙÐÏÌÎÉÔØ ÓÌÅÄÕÀÝÕÀ ËÏÍÁÎÄÕ: mount -t cd9660 /dev/cd0c /mnt úÁÍÅÔØÔÅ, ÞÔÏ ÉÍÑ ÕÓÔÒÏÊÓÔ×Á (``/dev/cd0c'' × ÜÔÏÍ ÐÒÉÍÅÒÅ) ÍÏÖÅÔ ÂÙÔØ ÄÒÕÇÉÍ, × ÚÁ×ÉÓÉÍÏÓÔÉ ÏÔ ÉÎÔÅÒÆÅÊÓÁ ×ÁÛÅÇÏ CDROM. ïÔÍÅÔØÔÅ, ÞÔÏ ÏÐÃÉÑ ``'' ×ÓÅÇÏ ÌÉÛØ ÐÒÉ×ÏÄÉÔ Ë ×ÙÚÏ×Õ ËÏÍÁÎÄÙ ``mount_cd9660'', ÔÁË ÞÔÏ ÐÒÉÍÅÒ ×ÙÛÅ ÍÏÖÅÔ ÂÙÔØ ÕËÏÒÏÞÅÎ ÄÏ ÔÁËÏÊ ËÏÍÁÎÄÙ: mount_cd9660 /dev/cd0c /mnt ðÒÉ ÍÏÎÔÉÒÏ×ÁÎÉÉ ËÏÍÐÁËÔ-ÄÉÓËÁ ×ÙÄÁ£ÔÓÑ ÓÏÏÂÝÅÎÉÅ ``Device not configured''. ïÂÙÞÎÏ ÜÔÏ ÏÚÎÁÞÁÅÔ, ÞÔÏ × ÐÒÉ×ÏÄÅ CDROM ÎÅÔ ËÏÍÐÁËÔ-ÄÉÓËÁ ÌÉÂÏ ÕÓÔÒÏÊÓÔ×Ï ÎÅ ÂÙÌÏ ÏÂÎÁÒÕÖÅÎÏ ÎÁ ÜÔÁÐÅ ÚÁÇÒÕÚËÉ. ÷ÓÔÁרÔÅ × ÐÒÉ×ÏÄ ËÁËÏÊ-ÎÉÂÕÄØ ÄÉÓË, É/ÉÌÉ ÐÒÏ×ÅÒØÔÅ ÅÇÏ ÎÁÓÔÒÏÊËÕ ËÁË ×ÅÄÕÝÅÇÏ/×ÅÄÏÍÏÇÏ ÕÓÔÒÏÊÓÔ×Á, ÅÓÌÉ ÏÎÏ ÔÉÐÁ IDE (ATAPI). äÌÑ ÐÒÉ×ÏÄÁ CDROM ÍÏÖÅÔ ÐÏÔÒÅÂÏ×ÁÔØÓÑ ÎÅÓËÏÌØËÏ ÓÅËÕÎÄ ÄÌÑ ÏÂÎÁÒÕÖÅÎÉÑ, ÞÔÏ ÂÙÌ ×ÓÔÁ×ÌÅÎ ÄÉÓË, ÔÁË ÞÔÏ ÂÕÄØÔÅ ÔÅÒÐÅÌÉ×ÙÍÉ. éÎÏÇÄÁ SCSI CDROM ÍÏÖÅÔ ÏÔÓÕÔÓÔ×Ï×ÁÔØ × ÓÉÓÔÅÍÅ ÉÚ-ÚÁ ÎÅÄÏÓÔÁÔËÁ ×ÒÅÍÅÎÉ ÎÁ ÏÔ×ÅÔ ÐÒÉ ÓÂÒÏÓÅ ÛÉÎÙ. åÓÌÉ ×ÁÛ ÐÒÉ×ÏÄ CD-ROM Ñ×ÌÑÅÔÓÑ SCSI-ÕÓÔÒÏÊÓÔ×ÏÍ, ÐÏÖÁÌÕÊÓÔÁ, ÐÏÐÒÏÂÕÊÔÅ ÄÏÂÁ×ÉÔØ ÔÁËÏÊ ÓÉÍ×ÏÌ × ×ÁÛ ÆÁÊÌ ËÏÎÆÉÇÕÒÁÃÉÉ ÑÄÒÁ É ÐÅÒÅËÏÍÐÉÌÉÒÕÊÔÅ ÅÇÏ. options "SCSI_DELAY=15" íÏÊ ÐÒÉÎÔÅÒ ÐÅÞÁÔÁÅÔ ÎÅ×ÅÒÏÑÔÎÏ ÍÅÄÌÅÎÎÏ. þÔÏ ÔÕÔ ÍÏÖÎÏ ÓÄÅÌÁÔØ? åÓÌÉ ÐÒÉÎÔÅÒ ÐÏÄËÌÀÞÅÎ Ë ÐÁÒÁÌÌÅÌØÎÏÍÕ ÐÏÒÔÕ, É ÅÄÉÎÓÔ×ÅÎÎÏÊ ÐÒÏÂÌÅÍÏÊ Ñ×ÌÑÅÔÓÑ ÅÇÏ ÍÅÄÌÉÔÅÌØÎÏÓÔØ, ÐÏÐÒÏÂÕÊÔÅ ÕÓÔÁÎÏ×ÉÔØ ÐÏÒÔ × ÒÅÖÉÍ ``polled'': lptcontrol -p õÔ×ÅÒÖÄÁÅÔÓÑ, ÞÔÏ ÎÅËÏÔÏÒÙÅ ÎÏ×ÅÊÛÉÅ ÐÒÉÎÔÅÒÙ ÏÔ HP ÎÅ ÒÁÂÏÔÁÀÔ ËÏÒÒÅËÔÎÏ × ÒÅÖÉÍÅ ÐÒÅÒÙ×ÁÎÉÊ, ÓËÏÒÅÅ ×ÓÅÇÏ ÉÚ-ÚÁ (ÜÔÏ ÅÝ£ ÎÅ ÓÏ×ÓÅÍ ÔÏÞÎÏ ×ÙÑÎÅÎÏ) ÐÒÏÂÌÅÍ Ó ×ÒÅÍÅÎÎÙÍÉ ÚÁÄÅÒÖËÁÍÉ. ðÒÏÇÒÁÍÍÙ Á×ÁÒÉÊÎÏ ÚÁ×ÅÒÛÁÀÔ ÒÁÂÏÔÕ Ó ÏÛÉÂËÏÊ ``Signal 11''. üÔÏ ÍÏÖÅÔ ÂÙÔØ ×ÙÚ×ÁÎÏ ÓÂÏÑÍÉ ÁÐÐÁÒÁÔÎÏÇÏ ÏÂÅÓÐÅÞÅÎÉÅÍ (ÐÁÍÑÔØ, ÍÁÔÅÒÉÎÓËÁÑ ÐÌÁÔÁ, ÉÔÄ). ðÏÐÒÏÂÕÊÔÅ ÚÁÐÕÓÔÉÔØ ÎÁ ×ÁÛÅÍ ðë ÐÒÏÇÒÁÍÍÕ ÔÅÓÔÉÒÏ×ÁÎÉÑ ÐÁÍÑÔÉ. éÍÅÊÔÅ × ×ÉÄÕ, ÞÔÏ × ÓÌÕÞÁÅ ÎÅÚÎÁÞÉÔÅÌØÎÙÈ ÏÔËÌÏÎÅÎÉÊ × ÒÁÂÏÔÅ ×ÏÚÍÏÖÎÁ ÓÉÔÕÁÃÉÑ, ËÏÇÄÁ ×ÓÅ ÐÒÏÇÒÁÍÍÙ ÔÅÓÔÉÒÏ×ÁÎÉÑ, ËÏÔÏÒÙÅ ×Ù ÂÕÄÅÔÅ ÐÒÏÂÏ×ÁÔØ, ÂÕÄÕÔ ÕÔ×ÅÒÖÄÁÔØ, ÞÔÏ Ó ïúõ ×Ó£ × ÐÏÒÑÄËÅ, Á ÏÛÉÂËÁ ÂÕÄÅÔ ×ÏÚÎÉËÁÔØ ÐÒÉ ÏÐÒÅÄÅÌ£ÎÎÙÈ ÕÓÌÏ×ÉÑÈ (ÔÁËÉÈ, ËÁË ÉÓÐÏÌØÚÏ×ÁÎÉÅ DMA ÐÒÉ ÉÓÐÏÌØÚÏ×ÁÎÉÉ ÒÅÖÉÍÁ ÕÐÒÁ×ÌÅÎÉÑ ÛÉÎÏÊ ËÏÎÔÒÏÌÌÅÒÏÍ SCSI ÔÉÐÁ Adaptec 1542, ÉÎÔÅÎÓÉ×ÎÏÅ ÏÂÒÁÝÅÎÉÅ Ë ïúõ ÐÒÉ ËÏÍÐÉÌÑÃÉÉ ÑÄÒÁ ÉÌÉ ÚÎÁÞÉÔÅÌØÎÏÊ ÎÁÇÒÕÚËÅ ÎÁ ÓÉÓÔÅÍÕ). ÷ FAQ ÐÏ SIG11 (ÓÓÙÌËÁ ÄÁÎÁ ÎÉÖÅ) ÓËÁÚÁÎÏ, ÞÔÏ ÍÅÄÌÅÎÎÁÑ ÐÁÍÑÔØ Ñ×ÌÑÅÔÓÑ ÓÁÍÁÑ ÒÁÓÐÒÏÓÔÒÁΣÎÎÏÊ ÐÒÉÞÉÎÏÊ ×ÏÚÎÉËÎÏ×ÅÎÉÑ ÜÔÏÊ ÐÒÏÂÌÅÍÙ. õ×ÅÌÉÞØÔÅ ÞÉÓÌÏ ÔÁËÔÏ× ÏÖÉÄÁÎÉÑ × ÎÁÓÔÒÏÊËÅ BIOS ÉÌÉ ÕÓÔÁÎÏ×ÉÔÅ ÂÏÌÅÅ ÂÙÓÔÒÕÀ ÐÁÍÑÔØ. äÌÑ ÍÅÎÑ ÓÁÍÏÊ ÒÁÓÐÒÏÓÔÒÁΣÎÎÏÊ ÐÒÉÞÉÎÏÊ ÂÙÌÁ ÓÂÏÊÎÁÑ ËÜÛ-ÐÁÍÑÔØ ÉÌÉ ËÜÛ-ËÏÎÔÒÏÌÌÅÒ. ðÏÐÒÏÂÕÊÔÅ ÏÔËÌÀÞÉÔØ ×ÎÅÛÎÉÊ ËÜÛ (×ÔÏÒÏÇÏ ÕÒÏ×ÎÑ) × BIOS É ÐÏÓÍÏÔÒÉÔÅ, ÎÅ ÒÅÛÉÔ ÌÉ ÜÔÏ ×ÁÛÕ ÐÒÏÂÌÅÍÕ. ðÏÄÒÏÂÎÁÑ ÉÎÆÏÒÍÁÃÉÑ ÐÏ ÜÔÏÍÕ ×ÏÐÒÏÓÕ ÓÏÄÅÒÖÉÔÓÑ × FAQ ÐÏ ÐÒÏÂÌÅÍÅ SIG11. ðÒÉ ÚÁÇÒÕÚËÅ ÍÏÎÉÔÏÒ ÔÅÍÎÅÅÔ É ÔÅÒÑÅÔ ÓÉÎÈÒÏÎÉÚÁÃÉÀ! üÔÏ ÉÚ×ÅÓÔÎÁÑ ÐÒÏÂÌÅÍÁ Ó ×ÉÄÅÏÁÄÁÐÔÅÒÁÍÉ ATI Mach 64. ïÎÁ ×ÙÚ×ÁÎÁ ÔÅÍ, ÞÔÏ ÜÔÏÔ ÁÄÁÐÔÅÒ ÉÓÐÏÌØÚÕÅÔ ÁÄÒÅÓ 2e8, ËÁË É ÞÅÔ×£ÒÔÙÊ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÙÊ ÐÏÒÔ. éÚ-ÚÁ ÏÛÉÂËÉ (ÏÓÏÂÅÎÎÏÓÔÉ?) × ÄÒÁÊ×ÅÒÅ sio.c ÏÎ ÏÂÒÁÝÁÅÔÓÑ Ë ÐÏÒÔÕ, ÄÁÖÅ ÅÓÌÉ ÅÓÌÉ ÏÎ ÎÅ ÓÕÝÅÓÔ×ÕÅÔ, É ÄÁÖÅ ÅÓÌÉ ×Ù ÏÔËÌÀÞÉÔÅ sio3 (ÞÅÔ×£ÒÔÙÊ ÐÏÒÔ), ËÏÔÏÒÙÊ, ËÁË ÐÒÁ×ÉÌÏ, ÉÓÐÏÌØÚÕÅÔ ÜÔÏÔ ÁÄÒÅÓ ××ÏÄÁ/×Ù×ÏÄÁ. ðÏËÁ ÜÔÏ ÎÅ ÉÓÐÒÁ×ÌÅÎÏ, ÉÓÐÏÌØÚÕÊÔÅ ÓÌÅÄÕÀÝÉÊ ÍÅÔÏÄ: ÷ ÐÒÉÇÌÁÛÅÎÎÉ ÚÁÇÒÕÚÞÉËÁ ÎÁÂÅÒÉÔÅ . (üÔÏ ÐÅÒÅ×ÅÄ£Ô ÑÄÒÏ × ÒÅÖÉÍ ËÏÎÆÉÇÕÒÁÃÉÉ). ïÔËÌÀÞÉÔÅ ÕÓÔÒÏÊÓÔ×Á sio0, sio1, sio2 É sio3 (×ÓÅ). ðÏÓÌÅ ÜÔÏÇÏ ÄÒÁÊ×ÅÒ sio ÎÅ ÂÕÄÅÔ ÁËÔÉ×ÉÚÉÒÏ×ÁÔØÓÑ É ÐÒÏÂÌÅÍ ÎÅ ÂÕÄÅÔ. äÌÑ ÐÒÏÄÏÌÖÅÎÉÑ ÚÁÇÒÕÚËÉ ÎÁÂÅÒÉÔÅ exit. åÓÌÉ ×ÁÍ ÎÕÖÎÏ ÉÓÐÏÌØÚÏ×ÁÔØ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÙÅ ÐÏÒÔÙ, ×Í ÄÏÌÖÎÙ ÐÏÓÔÒÏÉÔØ ÎÏ×ÏÅ ÑÄÒÏ ÓÏ ÓÌÅÄÕÀÝÅÊ ÍÏÖÉÆÉËÁÃÉÅÊ: × ÆÁÊÌÅ /usr/src/sys/i386/isa/sio.c ÎÁÊÄÉÔÅ ÓÔÒÏÞËÕ, ÓÏÄÅÒÖÁÝÕÀ ÞÉÓÌÏ 0x2e8 É ÕÄÁÌÉÔŠţ ×ÍÅÓÔÅ Ó ÐÒÅÄÛÅÓÔ×ÕÀÝÉÊ ÚÁÐÑÔÏÊ (ÏÓÔÁ×É× ÓÌÅÄÕÀÝÕÀ ÚÁ ÎÉÍ). ðÏÓÌÅ ÜÔÏÇÏ ÓÌÅÄÕÊÔÅ ÏÂÙÞÎÙÍ ÕËÁÚÁÎÉÑÍ ÐÏ ÐÏÓÔÒÏÅÎÉÀ ÑÄÒÁ. äÁÖÅ ÐÏÓÌÅ ÜÔÉÈ ÉÚÍÅÎÅÎÉÊ ×Ù ÍÏÖÅÔÅ ÏÂÎÁÒÕÖÉÔØ, ÞÔÏ X Window ÒÁÂÏÔÁÅÔ ÎÅÎÏÒÍÁÌØÎÏ. îÅËÏÔÏÒÙÅ ÎÏ×ÅÊÛÉÅ ×ÉÄÅÏÁÄÁÐÔÅÒÙ ATI Mach 64 (ÎÁÐÒÉÍÅÒ, ATI Mach Xpression) ÎÅ ÒÁÂÏÔÁÀÔ Ó ÔÅËÕÝÅÊ ×ÅÒÓÉÅÊ XFree86; ÜËÒÁÎ ÔÅÍÎÅÅÔ ÐÒÉ ÚÁÐÕÓËÅ X Window ÉÌÉ ÒÁÂÏÔÁÅÔ ÓÏ ÓÔÒÁÎÎÏÓÔÑÍÉ. ÷Ù ÍÏÖÅÔÅ ÐÏÌÕÞÉÔØ ÂÅÔÁ-×ÅÒÓÉÀ ÎÏ×ÏÇÏ X-ÓÅÒ×ÅÒÁ, ËÏÔÏÒÙÊ ÒÁÂÏÔÁÅÔ ÌÕÞÛÅ, Ó ÓÁÊÔÁ XFree86, ÐÅÒÅÊÄÑ ÐÏ ÓÓÙÌËÅ, ÕËÁÚÙ×ÁÀÝÅÊ ÎÁ ÎÏ×ÙÊ ÂÅÔÁ-ÒÅÌÉÚ. ÷ÁÍ ÎÕÖÎÙ ÓÌÅÄÕÀÝÉÅ ÆÁÊÌÙ: AccelCards, BetaReport, Cards, Devices, FILES, README.ati, README.FreeBSD, README.Mach64, RELNOTES, VGADriver.Doc, X312BMa64.tgz úÁÍÅÎÉÔÅ ÓÔÁÒÙÅ ÆÁÊÌÙ ÎÏ×ÙÍÉ ×ÅÒÓÉÑÍÉ É ÎÅ ÚÁÂÕÄØÔÅ ÓÎÏ×Á ÚÁÐÕÓÔÉÔØ xf86config. õ ÍÅÎÑ 128 íâ ïúõ, ÎÏ ÓÉÓÔÅÍÁ ÉÓÐÏÌØÚÕÅÔÓÑ ÔÏÌØËÏ 64. ôÁË ËÁË ÄÌÑ ÏÐÒÅÄÅÌÅÎÉÑ ÏÂߣÍÁ ÐÁÍÑÔÉ FreeBSD ÉÓÐÏÌØÚÕÅÔ ÉÎÆÏÒÍÁÃÉÀ BIOS, ÏÎÁ ÏÇÒÁÎÉÞÅÎÁ 16 ÂÉÔÁÍÉ, ÉÓÐÏÌØÚÕÅÍÙÍÉ ÄÌÑ ×ÙÒÁÖÅÎÉÑ ÒÁÚÍÅÒÁ ïúõ × ËÉÌÏÂÁÊÔÁÈ (65535 ëâ = 64íâ) (ÉÌÉ ÍÅÎØÛÅ... ÎÅËÏÔÏÒÙÅ BIOS ÏÇÒÁÎÉÞÉ×ÁÀÔ ÒÁÚÍÅÒÙ ÐÁÍÑÔÉ ÄÏ 16íâ). åÓÌÉ Õ ×ÁÓ ÂÏÌØÛÅ ÞÅÍ 64íâ ïúõ, FreeBSD ÂÕÄÅÔ ÐÙÔÁÔØÓÑ ÏÂÎÁÒÕÖÉÔØ ÜÔÕ ÐÁÍÑÔØ; ÏÄÎÁËÏ ÜÔÁ ÐÏÐÙÔËÁ ÍÏÖÅÔ É ÎÅ ÕÄÁÓÔØÓÑ). äÌÑ ÒÅÛÅÎÉÑ ÜÔÏÊ ÐÒÏÂÌÅÍÙ ×ÁÍ ÎÕÖÎÏ ÉÓÐÏÌØÚÏ×ÁÔØ ÏÐÃÉÀ ÑÄÒÁ, ÕËÁÚÁÎÎÕÀ ÎÉÖÅ. óÐÏÓÏ ×ÙÑÓÎÅÎÉÑ ÐÏÌÎÏÊ ÉÎÆÏÒÍÁÃÉÉ Ï ÐÁÍÑÔÉ ÉÚ BIOS ÓÕÝÅÓÔ×ÕÅÔ, ÎÏ Õ ÎÁÓ ÎÅÔ ÍÅÓÔÁ × ÚÁÇÒÕÚÏÞÎÏÍ ÂÌÏËÅ, ÞÔÏÂÙ ÜÔÏ ÄÅÌÁÔØ. ëÏÇÄÁ ÐÒÏÂÌÅÍÁ ÎÅÈ×ÁÔËÉ ÍÅÓÔÁ × ÚÁÇÒÕÚÏÞÎÙÈ ÂÌÏËÁÈ ÂÕÄÅÔ ÒÅÛÅÎÁ, ÍÙ ÂÕÄÅÍ ÉÓÐÏÌØÚÏ×ÁÔØ ÒÁÓÛÉÒÅÎÎÙÅ ÆÕÎËÃÉÉ BIOS ÄÌÑ ÐÏÌÕÞÅÎÉÑ ÐÏÌÎÏÊ ÉÎÆÏÒÍÁÃÉÉ Ï ÐÁÍÑÔÉ... ÎÏ ÐÏËÁ ÍÙ ÏÓÔÁÎÏ×ÉÌÉÓØ ÎÁ ÏÐÃÉÉ ÑÄÒÁ. options "MAXMEM=<n>" úÄÅÓØ n - ÜÔÏ ÏÂß£Í ÐÁÍÑÔÉ × ËÉÌÏÂÁÊÔÁÈ. äÌÑ ÍÁÛÉÎÙ ÓÏ 128 íâ ïúõ ×ÁÍ ÎÕÖÎÏ ÉÓÐÏÌØÚÏ×ÁÔØ ÚÎÁÞÅÎÉÅ 131072. FreeBSD 2.0 Á×ÁÒÉÊÎÏ ÚÁ×ÅÒÛÁÅÔ ÒÁÂÏÔÕ Ó ÓÏÏÂÝÅÎÉÅÍ ``kmem_map too small!'' úÁÍÅÞÁÎÉÅ óÏÏÂÝÅÎÉÅ ÍÏÖÅÔ ÔÁËÖÅ ×ÙÇÌÑÄÅÔØ ËÁË ``mb_map too small!'' ôÁËÏÅ ÚÁ×ÅÒÛÅÎÉÅ ÒÁÂÏÔÙ ÐÏËÁÚÙ×ÁÅÔ, ÞÔÏ ÓÉÓÔÅÍÅ ÎÅ È×ÁÔÁÅÔ ×ÉÒÔÕÁÌØÎÏÊ ÐÁÍÑÔÉ ÄÌÑ ÓÅÔÅ×ÙÈ ÂÕÆÅÒÏ× (ÔÏÞÎÅÅ, ÓÔÒÕËÔÕÒ mbuf). ÷Ù ÍÏÖÅÔÅ Õ×ÅÌÉÞÉÔØ ËÏÌÉÞÅÓÔ×Ï ×ÉÒÔÕÁÌØÎÏÊ ÐÁÍÑÔÉ ÄÌÑ ÓÔÒÕËÔÕÒ mbuf, ÄÏÂÁ×É×: options "NMBCLUSTERS=<n>" × ÆÁÊÌ ËÏÎÆÉÇÕÒÁÃÉÉ ÑÄÒÁ, ÇÄÅ <n> - ÜÔÏ ÞÉÓÌÏ × ÐÒÅÄÅÌÁÈ 512-4096, × ÚÁ×ÉÓÉÍÏÓÔÉ ÏÔ ÞÉÓÌÁ TCP-ÓÏÅÄÉÎÅÎÉÊ, ËÏÔÏÒÏÅ ×ÁÍ ÎÕÖÎÏ ÏÄÎÏ×ÒÅÍÅÎÎÏ ÏÂÓÌÕÖÉ×ÁÔØ. ñ ÒÅËÏÍÅÎÄÕÀ ÐÏÐÒÏÂÏ×ÁÔØ ÚÎÁÞÅÎÉÅ 2048 - ÜÔÏ ÄÏÌÖÎÏ ÉÚÂÁ×ÉÔØ ×ÁÓ ÏÔ Á×ÁÒÉÊÎÙÈ ÏÓÔÁÎÏ×Ï×. ÷Ù ÍÏÖÅÔÅ ÏÔÓÌÅÖÉ×ÁÔØ ËÏÌÉÞÅÓÔ×Ï ÓÔÒÕËÔÕÒ mbuf, ×ÙÄÅÌÅÎÎÙÈ/ÉÓÐÏÌØÚÕÅÍÙÈ ÓÉÓÔÅÍÏÊ ËÏÍÁÎÄÏÊ netstat -m. úÎÁÞÅÎÉÅ ÐÏ ÕÍÏÌÞÁÎÉÀ ÄÌÑ NMBCLUSTERS ÒÁ×ÎÏ 512 + MAXUSERS * 16. óÏÏÂÝÅÎÉÅ ``CMAP busy panic'' ÐÒÉ ÐÅÒÅÚÁÇÒÕÚËÅ Ó ÎÏ×ÙÍ ÑÄÒÏÍ. ðÒÏÃÅÄÕÒÁ ÏÐÒÅÄÅÌÅÎÉÑ ÕÓÔÁÒÅ×ÛÉÈ ÆÁÌÏ× /var/db/kvm_*.db ÉÎÏÇÄÁ ÄÁ£Ô ÓÂÏÊ É ÉÓÐÏÌØÚÕÅÔ ÎÅ ÔÅ ÆÁÊÌÙ, ÞÔÏ ÍÏÖÅÔ ×ÙÚ×ÁÔØ Á×ÁÒÉÊÎÙÊ ÏÓÔÁÎÏ× ÓÉÓÔÅÍÙ. åÓÌÉ ÜÔÏ ÓÌÕÞÉÌÏÓØ, ÐÅÒÅÚÁÇÒÕÚÉÔÅÓØ × ÏÄÎÏÐÏÌØÚÏ×ÁÔÅÌØÓËÏÍ ÒÅÖÉÍÅ É ×ÙÐÏÌÎÉÔÅ ËÏÍÁÎÄÕ: rm /var/db/kvm_*.db ahc0: brkadrint, Illegal Host Access at seqaddr 0x0 üÔÏ - ÒÅÚÕÌØÔÁÔ ËÏÎÆÌÉËÔÁ ÓÏ SCSI-ÁÄÁÐÔÅÒÏÍ Ultrastor. ÷Ï ×ÒÅÍÑ ÚÁÇÒÕÚËÉ ×ÏÊÄÉÔÅ × ÍÅÎÀ ËÏÎÆÉÇÕÒÁÃÉÉ ÑÄÒÁ É ×ÙËÌÀÞÉÔÅ ÕÓÔÒÏÊÓÔ×Ï uha0, Ñ×ÌÑÀÝÅÅÓÑ ÉÓÔÏÞÎÉËÏÍ ÜÔÏÊ ÐÒÏÂÌÅÍÙ. Sendmail ÇÏ×ÏÒÉÔ, ÞÔÏ ``mail loops back to myself'' ÷ FAQ ÐÏ sendmail ÎÁ ÜÔÏ ÄÁÎ ÔÁËÏÊ ÏÔ×ÅÔ:- * ÷ÙÄÁÀÔÓÑ ÓÏÏÂÝÅÎÉÑ "Local configuration error", ÐÒÉÍÅÒÎÏ ÔÁËÉÅ: 553 relay.domain.net config error: mail loops back to myself 554 <user@domain.net>... Local configuration error ëÁË ÍÏÖÎÏ ÒÅÛÉÔØ ÜÔÕ ÐÒÏÂÌÅÍÕ? óÏÇÌÁÓÎÏ ÚÁÐÉÓÑÍ MX, ÐÏÞÔÁ ÄÌÑ ÄÏÍÅÎÁ (ÓËÁÖÅÍ, domain.net) ÂÙÌÁ ÐÅÒÅÎÁÐÒÁ×ÌÅÎÁ ÎÁ ÕËÁÚÁÎÎÙÊ ÈÏÓÔ (× ÎÁÛÅÍ ÓÌÕÞÁÅ relay.domain.net), ÎÏ ÏÎ ÎÅ ÒÁÓÐÏÚÎÁ£ÔÓÑ ËÁË domain.net. äÏÂÁרÔÅ ÓÔÒÏËÕ domain.net × ÆÁÊÌ /etc/sendmail.cw (ÅÓÌÉ ×Ù ÉÓÐÏÌØÚÕÅÔÅ FETURE(use_cw_file)) ÉÌÉ ÄÏÂÁרÔÅ "Cw domain.net" × /etc/sendmail.cf. ôÅËÕÝÁÑ ×ÅÒÓÉÑ FAQ ÐÏ sendmail ÂÏÌØÛÅ ÎÅ ÐÏÓÔÁ×ÌÑÅÔÓÑ ×ÍÅÓÔÅ Ó sendmail. ïÄÎÁËÏ ÜÔÏÔ ÄÏËÕÍÅÎÔ ÒÅÇÕÌÑÒÎÏ ÐÏÍÅÝÁÅÔÓÑ × ËÏÎÆÅÒÅÎÃÉÉ comp.mail.sendmail, comp.mail.misc, comp.mail.smail, comp.answers É news.answers. ÷Ù ÍÏÖÅÔÅ ÐÏÌÕÞÉÔØ ËÏÐÉÀ ÐÏ ÜÌÅËÔÒÏÎÎÏÊ ÐÏÞÔÅ, ÐÏÓÌÁ× ÓÏÏÂÝÅÎÉÅ, ÓÏÄÅÒÖÁÝÅÅ ËÏÍÁÎÄÕ "send usenet/news.answers/mail/sendmail-faq" × ÔÅÌÅ ÐÉÓØÍÁ, × ÁÄÒÅÓ mail-server@rtfm.mit.edu. ðÏÌÎÏÜËÒÁÎÎÙÅ ÐÒÉÌÏÖÅÎÉÑ ÎÁ ÕÄÁÌ£ÎÎÏÊ ÍÁÛÉÎÅ ×ÅÄÕÔ ÓÅÂÑ ÎÅÐÒÁ×ÉÌØÎÏ! îÁ ÕÄÁÌ£ÎÎÏÊ ÍÁÛÉÎÅ ÔÉÐ ÔÅÒÍÉÎÁÌÁ ÍÏÖÅÔ ÂÙÔØ ÕÓÔÁÎÁ×ÌÅÎ × ÚÎÁÞÅÎÉÅ, ÏÔÌÉÞÎÏÅ ÏÔ ÔÉÐÁ ÔÅÒÍÉÎÁÌÁ cons25, ÔÒÅÂÕÅÍÏÍ ÐÒÉ ÉÓÐÏÌØÚÏ×ÁÎÉÉ ËÏÎÓÏÌÉ FreeBSD. åÓÔØ ÎÅÓËÏÌØËÏ ×ÏÚÍÏÖÎÙÈ ÓÐÏÓÏÂÏ× ÒÅÛÅÎÉÑ ÜÔÏÊ ÐÒÏÂÌÅÍÙ: ðÏÓÌÅ ×ÈÏÄÁ ÎÁ ÄÒÕÇÕÀ ÍÁÛÉÎÕ ÕÓÔÁÎÏ×ÉÔÅ ÚÎÁÞÅÎÉÅ ÐÅÒÅÍÅÎÎÏÊ ÏËÒÕÖÅÎÉÑ TERM ÒÁ×ÎÙÍ ansi ÉÌÉ sco, ÅÓÌÉ ÜÔÁ ÍÁÛÉÎÁ ÚÎÁÅÔ Ï ÜÔÉÈ ÔÉÐÁÈ ÔÅÒÍÉÎÁÌÏ×. éÓÐÏÌØÚÕÊÔÅ ÜÍÕÌÑÔÏÒ VT100 ÔÉÐÁ screen ÎÁ ËÏÎÓÏÌÉ FreeBSD. screen ÄÁ£Ô ×ÁÍ ×ÏÚÍÏÖÎÏÓÔØ ÏÔËÒÙ×ÁÔØ ÎÅÓËÏÌØËÏ ÒÁÂÏÞÉÈ ÓÅÁÎÓÏ× ÎÁ ÏÄÎÏÍ ÔÅÒÍÉÎÁÌÅ, É ÏÎÁ ÉÍÅÅÔ ÅÝ£ ÒÑÄ ÐÏÌÅÚÎÙÈ ÏÓÏÂÅÎÎÏÓÔÅÊ. ëÁÖÄÏÅ ÏËÎÏ ÐÒÏÇÒÁÍÍÙ screen ×ÅÄ£Ô ÓÅÂÑ ËÁË ÔÅÒÍÉÎÁÌ VT100, ÔÁË ÞÔÏ ÐÅÒÅÍÅÎÎÁÑ TERM ÎÁ ÕÄÁÌ£ÎÎÏÊ ÍÁÛÉÎÅ ÄÏÌÖÎÁ ÂÙÔØ ÕÓÔÁÎÏ×ÌÅÎÁ × ÚÎÁÞÅÎÉÅ vt100. ïÐÉÛÉÔÅ ÔÅÒÍÉÎÁÌ cons25 × ÂÁÚÅ ÄÁÎÎÙÈ ÈÁÒÁËÔÅÒÉÓÔÉË ÔÅÒÍÉÎÁÌÏ× ÎÁ ÕÄÁÌ£ÎÎÏÊ ÍÁÛÉÎÅ. óÐÏÓÏ ÏÐÉÓÁÎÉÑ ÚÁ×ÉÓÉÔ ÏÔ ÉÓÐÏÌØÚÕÅÍÏÊ ÎÁ ÜÔÏÊ ÍÁÛÉÎÅ ÏÐÅÒÁÃÉÏÎÎÏÊ ÓÉÓÔÅÍÅ. ÷ÁÍ ÍÏÖÅÔ ÐÏÍÏÞØ ÞÔÅÎÉÅ ÒÕËÏ×ÏÄÓÔ× ÐÏ ÁÄÍÉÎÉÓÔÒÉÒÏ×ÁÎÉÀ ÕÄÁÌ£ÎÎÏÊ ÓÉÓÔÅÍÙ. úÁÐÕÓÔÉÔÅ X-ÓÅÒ×ÅÒ ÎÁ ÓÔÏÒÏÎÅ FreeBSD É ×ÏÊÄÉÔÅ ÎÁ ÕÄÁÌ£ÎÎÕÀ ÓÉÓÔÅÍÕ Ó ÐÏÍÏÝØÀ ËÁËÏÇÏ-ÌÉÂÏ ÜÍÕÌÑÔÏÒÁ ÔÅÒÍÉÎÁÌÁ, ÒÁÂÏÔÁÀÝÅÇÏ × X Window, ÔÁËÏÇÏ, ËÁË xterm ÉÌÉ rxvt. ðÅÒÅÍÅÎÎÁÑ ÏËÒÕÖÅÎÉÑ TERM ÎÁ ÕÄÁÌ£ÎÎÏÊ ÍÁÛÉÎÅ ÄÏÌÖÎÁ ÂÙÔØ ÕÓÔÁÎÏ×ÌÅÎÁ × ÚÎÁÞÅÎÉÅ xterm ÉÌÉ vt100. ÷Ù×ÏÄÑÔÓÑ ÓÏÏÂÝÅÎÉÑ "calcru: negative time..." üÔÏ ÍÏÖÅÔ ÂÙÔØ ×ÙÚ×ÁÎÏ ÒÁÚÌÉÞÎÙÍÉ ÁÐÐÁÒÁÔÎÙÍÉ ÉÌÉ ÐÒÏÇÒÁÍÍÎÙÍÉ ÐÒÏÂÌÅÍÁÍÉ, Ó×ÑÚÁÎÎÙÍÉ Ó ÐÒÅÒÙ×ÁÎÉÑÍÉ. üÔÏ ÍÏÖÅÔ ÂÙÔØ Ó×ÑÚÁÎÏ ËÁË Ó ÏÛÉÂËÁÍÉ ÐÒÉ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÉ, ÔÁË É Ó ÐÒÉÒÏÄÏÊ ÓÁÍÉÈ ÕÓÔÒÏÊÓÔ×. îÁÐÒÉÍÅÒ, ÒÁÂÏÔÁ Ó TCP/IP ÐÏ ÐÁÒÁÌÌÅÌØÎÏÍÕ ÐÏÒÔÕ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ ÂÏÌØÛÏÇÏ MTU ÐÒÉ×ÏÄÉÔ Ë ÜÔÏÊ ÐÒÏÂÌÅÍÅ, ÔÁËÖÅ ËÁË ÉÓÐÏÌØÚÏ×ÁÎÉÅ ÇÒÁÆÉÞÅÓËÉÈ ÁËÓÅÌÅÒÁÔÏÒÏ×; × ÐÏÓÌÅÄÎÅÍ ÓÌÕÞÁÅ ×Ù ÄÏÌÖÎÙ ÐÒÏ×ÅÒÉÔØ ÎÁÓÔÒÏÊËÕ ÐÒÅÒÙ×ÁÎÉÊ ÎÁ ÇÒÁÆÉÞÅÓËÏÍ ÁÄÁÐÔÅÒÅ. ïÄÎÉÍ ÉÚ ÐÒÏÑ×ÌÅÎÉÊ ÜÔÏÊ ÐÒÏÂÌÅÍÙ Ñ×ÌÑÅÔÓÑ ÐÒÅÒÙ×ÁÎÉÅ ÒÁÂÏÔÙ ÐÒÏÃÅÓÓÏ× Ó ÄÉÁÇÎÏÓÔÉÞÅÓËÉÍ ÓÏÏÂÝÅÎÉÅÍ "SIGXCPU exceeded cpu time limit". åÓÌÉ ÜÔÁ ÐÒÏÂÌÅÍÁ ÎÅ ÍÏÖÅÔ ÂÙÔØ ÒÅÛÅÎÁ, ÄÌÑ FreeBSD 3.0 ÏÔ 29 ÎÏÑÂÒÑ 1998 É ×ÙÛÅ ÉÚÍÅÎÉÔÅ ÚÎÁÞÅÎÉÅ ÓÉÓÔÅÍÎÏÊ ÐÅÒÅÍÅÎÎÏÊ: sysctl -w kern.timecounter.method=1 üÔÏ ËÏÓΣÔÓÑ ÐÒÏÉÚ×ÏÄÉÔÅÌØÎÏÓÔÉ ÓÉÓÔÅÍÙ, ÎÏ ÐÒÉÎÉÍÁÑ ×Ï ×ÎÉÍÁÎÉÅ ÉÓÔÏÞÎÉË ÜÔÏÊ ÐÒÏÂÌÅÍÙ, ÜÔÏ ÂÕÄÅÔ ÎÅÚÁÍÅÔÎÏ. åÓÌÉ ÐÒÏÂÌÅÍÁ ×Ó£ ÅÝ£ ÄÁ£Ô ÚÎÁÔØ Ï ÓÅÂÅ, ÏÓÔÁרÔÅ ÚÎÁÞÅÎÉÅ ÜÔÏÊ ÐÅÒÅÍÅÎÎÏÊ ÒÁ×ÎÙÍ ÅÄÉÎÉÞËÅ É Õ×ÅÌÉÞØÔÅ ÚÎÁÞÅÎÉÅ ÐÁÒÁÍÅÔÒÁ "NTIMECOUNTER" × ÆÁÊÌÅ ËÏÎÆÉÇÕÒÁÃÉÉ ×ÁÛÅÇÏ ÑÄÒÁ. åÓÌÉ × ËÏÎÃÅ ËÏÎÃÏ× ×Ù ÄÏÓÔÉÇÎÅÔÅ ÚÎÁÞÅÎÉÑ "NTIMECOUNTER=20", ÔÏ ×ÁÍ ÜÔÕ ÐÒÏÂÌÅÍÕ ÒÅÛÉÔØ ÎÅ ÕÄÁÓÔÓÑ, ÐÒÅÒÙ×ÁÎÉÑ ÄÁÀÔ ÓÌÉÛËÏÍ ÂÏÌØÛÕÀ ÎÁÇÒÕÚËÕ ÎÁ ÐÒÏÃÅÓÓÏÒ, ÞÔÏÂÙ ÏÂÅÓÐÅÞÉÔØ ÏÔÓÌÅÖÉ×ÁÎÉÅ ×ÒÅÍÅÎÉ. ëÏÍÍÅÒÞÅÓËÉÅ ÐÒÉÌÏÖÅÎÉÑ úáíåþáîéå üÔÏÔ ÒÁÚÄÅÌ ×ÙÇÌÑÄÉÔ ÄÏ×ÏÌØÎÏ ÚÁÂÒÏÛÅÎÎÙÍ, ÏÄÎÁËÏ ÍÙ, ËÏÎÅÞÎÏ ÖÅ, ÎÁÄÅÅÍÓÑ, ÞÔÏ ÐÒÏÉÚ×ÏÄÉÔÅÌÉ ÓÄÅÌÁÀÔ ÄÏÂÁ×ÌÅÎÉÑ! :) ðÒÏÅËÔ FreeBSD ÆÉÎÁÎÓÏ×Ï ÎÅ ÚÁÉÎÔÅÒÅÓÏ×ÁÎ × ÕÓÐÅÈÁÈ ÎÉËÁËÏÊ ÉÚ ËÏÍÐÁÎÉÊ, ËÏÔÏÒÙÅ ÚÄÅÓØ ÕÐÏÍÉÎÁÀÔÓÑ, ÈÏÔÑ ÐÒÉ×ÏÄÉÔ ÉÈ ÓÐÉÓÏË × ÉÎÔÅÒÅÓÁÈ ÏÂÝÅÓÔ×Á (× ÐÒÅÄÐÏÌÏÖÅÎÉÉ, ÞÔÏ ËÏÍÍÅÒÞÅÓËÉÊ ÉÎÔÅÒÅÓ Ë FreeBSD ÍÏÖÅÔ ÐÏÌÏÖÉÔÅÌØÎÏ ÐÏ×ÌÉÑÔØ ÎÁ ÄÁÌØÎÅÊÛÅÅ ÒÁÚ×ÉÔÉÅ FreeBSD). íÙ ÐÒÏÓÉÍ ÐÏÓÔÁ×ÝÉËÏ× ËÏÍÍÅÒÞÅÓËÏÇÏ ÐÒÏÇÒÁÍÍÎÏÇÏ ÏÂÅÓÐÅÞÅÎÉÑ ÐÒÉÓÙÌÁÔØ ÎÁÍ ÉÎÆÏÒÍÁÃÉÀ Ï ×ÁÛÉÈ ÐÒÏÄÕËÔÁÈ ÄÌÑ ×ËÌÀÞÅÎÉÑ × ÜÔÏÔ ÓÐÉÓÏË. âÏÌÅÅ ÐÏÄÒÏÂÎÙÊ ÓÐÉÓÏË ÐÒÏÉÚ×ÏÄÉÔÅÌÅÊ ÎÁÈÏÄÉÔÓÑ ÎÁ ÓÔÒÁÎÉÃÅ ÐÒÏÉÚ×ÏÄÉÔÅÌÅÊ. çÄÅ ÍÏÖÎÏ ËÕÐÉÔØ Motif ÄÌÑ FreeBSD? ïÂÒÁÔÉÔÅÓØ × ÆÉÒÍÕ Apps2go, ÐÒÅÄÌÁÇÁÀÝÕÀ ÄÉÓÔÒÉÂÕÔÉ× Motif 2.1 ÄÌÑ FreeBSD × ÆÏÒÍÁÔÅ ELF. ÷ ÜÔÏÔ ÄÉÓÔÒÉÂÕÔÉ× ×ËÌÀÞÅÎÙ: OSF/Motif manager, xmbind, panner, wsm. ðÁËÅÔ ÒÁÚÒÁÂÏÔÞÉËÁ Ó uil, mrm, xm, xmcxx, ÆÁÊÌÁÍÉ include É Imake. óÔÁÔÉÞÅÓËÉÅ É ÄÉÎÁÍÉÞÅÓËÉÅ ELF-ÂÉÂÌÉÏÔÅËÉ (ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ Ó FreeBSD 3.0 É ×ÙÛÅ). äÅÍÏÎÓÔÒÁÃÉÏÎÎÙÅ ÐÒÉÌÏÖÅÎÉÑ. ðÒÉ ÏÆÏÒÍÌÅÎÉÉ ÚÁËÁÚÁ ÎÅ ÚÁÂÕÄØÔÅ ÕËÁÚÁÔØ, ÞÔÏ ×ÁÍ ÎÕÖÎÁ ×ÅÒÓÉÑ Motif ÄÌÑ FreeBSD! Apps2go ÔÁËÖÅ ÐÒÏÄÁ£Ô ×ÅÒÓÉÉ ÄÌÑ NetBSD É OpenBSD. ÷ ÎÁÓÔÏÑÝÉÊ ÍÏÍÅÎÔ ÉÈ ÍÏÖÎÏ ÓËÁÞÁÔØ ÔÏÌØËÏ ÐÏ FTP. äÏÐÏÌÎÉÔÅÌØÎÁÑ ÉÎÆÏÒÍÁÃÉÑ WWW-ÓÅÒ×ÅÒ Apps2go ÉÌÉ ÜÌÅËÔÒÏÎÎÙÅ ÁÄÒÅÓÁ ÏÔÄÅÌÏ× ÐÒÏÄÁÖ É ÐÏÄÄÅÒÖËÉ. ÉÌÉ ÔÅÌÅÆÏÎÙ (817) 431 8775 É +1 817 431-8775 ïÂÒÁÔÉÔÅÓØ × ÆÉÒÍÕ Metro Link ÄÌÑ ÐÏÌÕÞÅÎÉÑ ÄÉÓÔÒÉÂÕÔÉ×Á Motif 2.1 ÄÌÑ FreeBSD × ÆÏÒÍÁÔÁÈ ELF ÉÌÉ a.out. ÷ ÜÔÏÔ ÄÉÓÔÒÉÂÕÔÉ× ×ËÌÀÞÅÎÙ: OSF/Motif manager, xmbind, panner, wsm. ðÁËÅÔ ÒÁÚÒÁÂÏÔÞÉËÁ Ó uil, mrm, xm, xmcxx, ÆÁÊÌÁÍÉ include É Imake. óÔÁÔÉÞÅÓËÉÅ É ÄÉÎÁÍÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ (ÕËÁÖÉÔÅ ELF ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ Ó FreeBSD 3.0 É ×ÙÛÅ; ÉÌÉ a.out ÐÒÉ ÉÓÐÏÌØÚÏ×ÁÎÉÉ FreeBSD 2.2.8 É ÒÁÎÅÅ). äÅÍÏÎÓÔÒÁÃÉÏÎÎÙÅ ÐÒÉÌÏÖÅÎÉÑ. ðÒÅÆÏÒÍÁÔÉÒÏ×ÁÎÎÙÅ ÓÔÒÁÎÉÃÙ ÓÐÒÁ×ÏÞÎÉËÁ. ðÒÉ ÚÁËÁÚÅ ÏÂÑÚÁÔÅÌØÎÏ ÏÔÍÅÔØÔÅ, ÞÔÏ ×ÁÍ ÔÒÅÂÕÅÔÓÑ ×ÅÒÓÉÑ Motif ÉÍÅÎÎÏ ÄÌÑ FreeBSD! Metro Link ÔÁËÖÅ ÐÒÅÄÌÁÇÁÅÔ ×ÅÒÓÉÉ ÄÌÑ Linux. ïÎÉ ÄÏÓÔÕÐÎÙ ÎÁ CDROM ÉÌÉ ÄÌÑ ÓËÁÞÉ×ÁÎÉÑ ÐÏ FTP. ïÂÒÁÔÉÔÅÓØ × ÆÉÒÍÕ Xi Graphics ÚÁ ÄÉÓÔÒÉÂÕÔÉ×ÏÍ Motif 2.0 ÄÌÑ FreeBSD × ÆÏÒÍÁÔÅ a.out. ÷ ÜÔÏÔ ÄÉÓÔÒÉÂÕÔÉ× ×ËÌÀÞÅÎÙ: OSF/Motif manager, xmbind, panner, wsm. ðÁËÅÔ ÒÁÚÒÁÂÏÔÞÉËÁ Ó uil, mrm, xm, xmcxx, ÆÁÊÌÁÍÉ include É Imake. óÔÁÔÉÞÅÓËÉÅ É ÄÉÎÁÍÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ (ÄÌÑ ÉÓÐÏÌØÚÏ×ÁÎÉÑ Ó FreeBSD 2.2.8 É ÒÁÎÅÅ). äÅÍÏÎÓÔÒÁÃÉÏÎÎÙÅ ÐÒÉÌÏÖÅÎÉÑ. ïÔÆÏÒÍÁÔÉÒÏ×ÁÎÎÙÅ ÓÔÒÁÎÉÃÙ óÐÒÁ×ÏÞÎÉËÁ. ðÒÉ ÚÁËÁÚÅ ÏÂÑÚÁÔÅÌØÎÏ ÕËÁÖÉÔÅ, ÞÔÏ ×ÁÍ ÔÒÅÂÕÅÔÓÑ ×ÅÒÓÉÑ Motif ÉÍÅÎÎÏ ÄÌÑ FreeBSD! Xi Graphics ÔÁËÖÅ ÐÒÅÄÌÁÇÁÅÔ ×ÅÒÓÉÉ ÄÌÑ BSDI É Linux. ÷ ÎÁÓÔÏÑÝÅÅ ×ÒÅÍÑ ÜÔÏ ÎÁÂÏÒ ÉÚ 4 ÄÉÓËÅÔ... × ÂÕÄÕÝÅÍ ÜÔÏ ÂÕÄÅÔ ÓÔÁÎÄÁÒÔÎÙÊ ÄÉÓÔÒÉÂÕÔÉ× ÎÁ ËÏÍÐÁËÔ-ÄÉÓËÅ, ËÁË ÉÈ CDE. çÄÅ ÍÏÖÎÏ ËÕÐÉÔØ CDE ÄÌÑ FreeBSD? æÉÒÍÁ Xi Graphics ÐÒÅÄÌÁÇÁÌÁ CDE ÄÌÑ FreeBSD, ÎÏ ÓÅÊÞÁÓ ÜÔÏÔ ÐÒÏÄÕËÔ × ÐÒÏÄÁÖÅ ÏÔÓÕÔÓÔ×ÕÅÔ. KDE - ÜÔÏ Ó×ÏÂÏÄÎÏ ÒÁÓÐÒÏÓÔÒÁÎÑÅÍÙÊ ×ÁÒÉÁÎÔ ÄÅÓËÔÏÐÁ ÄÌÑ X11, ËÏÔÏÒÙÊ ×Ï ÍÎÏÇÏÍ ÐÏÈÏÖ ÎÁ CDE. óÕÝÅÓÔ×ÕÀÔ ÌÉ ËÏÍÍÅÒÞÅÓËÉÅ ×ÙÓÏËÏÐÒÏÉÚ×ÏÄÉÔÅÌØÎÙÅ X-ÓÅÒ×ÅÒÙ? äÁ, ÆÉÒÍÙ Xi Graphics É Metro Link ÐÒÅÄÌÁÇÁÀÔ Ó×ÏÊ ÐÒÏÄÕËÔ Accelerated-X ÄÌÑ FreeBSD É ÄÒÕÇÉÈ ÓÉÓÔÅÍ ÎÁ ÂÁÚÅ Intel. Metro Link ÐÒÅÄÌÁÇÁÅÔ ×ÙÓÏËÏÐÒÏÉÚ×ÏÄÉÔÅÌØÎÙÊ X-ÓÅÒ×ÅÒ, × ËÏÔÏÒÏÍ ÐÒÅÄÕÓÍÏÔÒÅÎÁ ÕÐÒÏÝ£ÎÎÁÑ ÐÒÏÃÅÄÕÒÁ ËÏÎÆÉÇÕÒÉÒÏ×ÁÎÉÑ Ó ÐÏÍÏÝØÀ ÎÁÂÏÒÁ ÕÔÉÌÉÔ FreeBSD ÄÌÑ ÒÁÂÏÔÙ Ó ÐÜËÜÄÖÁÍÉ, ÐÏÄÄÅÒÖËÁ ÎÅÓËÏÌØËÉÈ ×ÉÄÅÏÁÄÁÐÔÅÒÏ× ÏÄÎÏ×ÒÅÍÅÎÎÏ É ÏÎ ÐÏÓÔÁ×ÌÑÅÔÓÑ ÔÏÌØËÏ × ÂÉÎÁÒÎÏÍ ×ÉÄÅ, ÄÏÓÔÕÐÎÏÍ ÐÏ FTP. îÅÌØÚÑ ÎÅ ÏÔÍÅÔÉÔØ, ÞÔÏ Metro Link ÐÒÏÄÁ£Ô ×Ó£ ÜÔÏ ÐÏ ÏÞÅÎØ ÄÏÓÔÕÐÎÏÊ ÃÅÎÅ × 39 ÄÏÌÌÁÒÏ×. Metro Link ÐÒÏÄÁ£Ô ÔÁËÖÅ Motif ÄÌÑ FreeBSD × ÆÏÒÍÁÔÁÈ ELF É a.out (ÓÍÏÔÒÉÔÅ ×ÙÛÅ). äÏÐÏÌÎÉÔÅÌØÎÁÑ ÉÎÆÏÒÍÁÃÉÑ WWW-ÓÅÒ×ÅÒ Metro Link ÉÌÉ ÁÄÒÅÓÁ ÜÌÅËÔÒÏÎÎÏÊ ÐÏÞÔÙ ÏÔÄÅÌÏ× ÐÒÏÄÁÖ É ÐÏÄÄÅÒÖËÉ. ÉÌÉ ÔÅÌÅÆÏÎÙ (954) 938-0283 É +1 954 938-0283 Xi Graphics ÐÒÅÄÌÁÇÁÅÔ ×ÙÓÏËÏÐÒÏÉÚ×ÏÄÉÔÅÌØÎÙÊ X-ÓÅÒ×ÅÒ, ËÏÔÏÒÙÊ ÏÂÅÓÐÅÞÉ×ÁÅÔ ÐÒÏÓÔÕÀ ËÏÎÆÉÇÕÒÁÃÉÀ, ÐÏÄÄÅÒÖËÕ ÎÅÓËÏÌØËÉÈ ×ÉÄÅÏÁÄÁÐÔÅÒÏ× É ÐÏÓÔÁ×ÌÑÅÔÓÑ ÔÏÌØËÏ × ÂÉÎÁÒÎÏÊ ÆÏÒÍÅ, × ÆÏÒÍÅ ÓÔÁÎÄÁÒÔÎÏÇÏ ÄÉÓÔÒÉÂÕÔÉ×Á ÎÁ ÄÉÓËÅÔÁÈ ÄÌÑ FreeBSD É Linux. Xi Graphics ÔÁËÖÅ ÐÒÅÄÌÁÇÁÅÔ ×ÙÓÏËÏÐÒÏÉÚ×ÏÄÉÔÅÌØÎÙÊ X-ÓÅÒ×ÅÒ Ó ÐÏÄÄÅÒÖËÏÊ ËÏÍÐØÀÔÅÒÏ× ËÌÁÓÓÁ laptop. äÏÓÔÕÐÎÁ ÂÅÓÐÌÁÔÎÁÑ "ÄÅÍÏÎÓÔÒÁÃÉÏÎÎÁÑ" ×ÅÒÓÉÑ 5.0. Xi Graphics ÔÁËÖÅ ÐÒÅÄÌÁÇÁÅÔ Motif É CDE ÄÌÑ FreeBSD (ÓÍÏÔÒÉÔÅ ×ÙÛÅ). äÏÐÏÌÎÉÔÅÌØÎÁÑ ÉÎÆÏÒÍÁÃÉÑ Xi Graphics WWW page ÉÌÉ Sales ÉÌÉ Support ÐÏ email. ÉÌÉ ÔÅÌÅÆÏÎ (800) 946 7433 ÉÌÉ +1 303 298-7478. óÕÝÅÓÔ×ÕÀÔ ÌÉ âä ÄÌÑ FreeBSD? äÁ! æÉÒÍÁ Conetic Software Systems ÐÅÒÅÎÅÓÌÁ Ó×ÏÉ óõâä C/base É C/books ×Ï FreeBSD 2.0.5 É ×ÙÛÅ, Á ÆÉÒÍÁ Sleepycat Software ÐÒÏÄÁ£Ô ËÏÍÍÅÒÞÅÓËÉ ÓÏÐÒÏ×ÏÖÄÁÅÍÕÀ ×ÅÒÓÉÀ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÒÁÂÏÔÙ Ó âä. äÏÐÏÌÎÉÔÅÌØÎÁÑ ÉÎÆÏÒÍÁÃÉÑ Conetic Software Systems ÉÌÉ ÐÏ email Information E-mail address, É Sleepycat Software. íÏÖÎÏ ÌÉ ÚÁÐÕÓÔÉÔØ Oracle ÎÁ FreeBSD? äÁ. òÕËÏ×ÏÄÓÔ×Ï ÐÏ ÎÁÓÔÒÏÊËÅ Linux-Oracle ÎÁ FreeBSD ÎÁÈÏÄÉÔÓÑ ÐÏ ÓÌÅÄÕÀÝÉÍ ÁÄÒÅÓÁÍ: http://www.scc.nl/~marcel/howto-oracle.html http://www.lf.net/lf/pi/oracle/install-linux-oracle-on-freebsd ðÒÉËÌÁÄÎÙÅ ÐÒÏÇÒÁÍÍÙ éÔÁË, ÇÄÅ ÎÁÈÏÄÑÔÓÑ ×ÓÅ ÐÒÉËÌÁÄÎÙÅ ÐÒÏÇÒÁÍÍÙ? ðÏÖÁÌÕÊÓÔÁ, ÚÁÇÌÑÎÉÔÅ ÎÁ ÓÔÒÁÎÉÃÕ ÐÏÒÔÏ×, ÓÏÄÅÒÖÁÝÕÀ ÉÎÆÏÒÍÁÃÉÀ Ï ÐÒÏÇÒÁÍÍÎÙÈ ÐÒÏÄÕËÔÁÈ, ÐÅÒÅÎÅÓ£ÎÎÙÈ ÐÏÄ FreeBSD. îÁ ÄÁÎÎÙÊ ÍÏÍÅÎÔ × ÜÔÏÍ ÓÐÉÓËÅ ÎÁÈÏÄÉÔÓÑ ÂÏÌÅÅ 1800 ÐÒÉÌÏÖÅÎÉÊ É ÏÎ ÅÖÅÄÎÅ×ÎÏ Õ×ÅÌÉÞÉ×ÁÅÔÓÑ, ÔÁË ÞÔÏ ÐÏÞÁÝÅ ÔÕÄÁ ÚÁÇÌÑÄÙ×ÁÊÔÅ ÉÌÉ ÐÏÄÐÉÛÉÔÅÓØ ÎÁ freebsd-announce, × ËÏÔÏÒÏÍ ÐÕÂÌÉËÕÅÔÓÑ ÉÎÆÏÒÍÁÃÉÑ Ï ÐÏÑ×ÌÅÎÉÉ ÎÏ×ÙÈ ÐÒÉÌÏÖÅÎÉÊ. âÏÌØÛÉÎÓÔ×Ï ÐÏÒÔÏ× ÐÒÅÄÎÁÚÎÁÞÅÎÏ ÄÌÑ ×ÅÒÓÉÊ 2.2, 3.x É 4.0, É ÍÎÏÇÉÅ ÉÚ ÎÉÈ ÄÏÌÖÎÙ ÎÏÒÍÁÌØÎÏ ÒÁÂÏÔÁÔØ ÎÁ ÓÉÓÔÅÍÁÈ ×ÅÒÓÉÊ 2.1.x. ðÒÉ ×ÙÈÏÄÅ ÎÏ×ÏÇÏ ÒÅÌÉÚÁ FreeBSD × ÎÅÇÏ × ËÁÔÁÌÏÇ ports/ ×ËÌÀÞÁÅÔÓÑ ÁËÔÕÁÌØÎÁÑ ÎÁ ÍÏÍÅÎÔ ×ÙÈÏÄÁ ËÏÌÌÅËÃÉÑ ÐÏÒÔÏ×. íÙ ÔÁËÖÅ ÐÏÄÄÅÒÖÉ×ÁÅÍ ËÏÎÃÅÐÃÉÀ ``ÐÁËÁÄÖÁ'', Ñ×ÌÑÀÝÅÇÏÓÑ ÎÅ ÂÏÌÅÅ ÞÅÍ ÕÐÁËÏ×ÁÎÎÙÍ ÄÉÓÔÒÉÂÕÔÉ×ÏÍ × ÂÉÎÁÒÎÏÊ ÆÏÒÍÅ Ó ÎÅËÏÔÏÒÙÍÉ ×ÓÔÒÏÅÎÎÙÍÉ ×ÏÚÍÏÖÎÏÓÔÑÍÉ ÐÏ ÅÇÏ ÎÁÓÔÒÏÊËÅ ×Ï ×ÒÅÍÑ ÕÓÔÁÎÏ×ËÉ. ðÁËÁÄÖ ÍÏÖÅÔ ÂÙÔØ ÌÅÇËÏ ÐÒÏÉÎÓÔÁÌÌÉÒÏ×ÁÎ É ÄÅÉÎÓÔÁÌÌÉÒÏ×ÁÎ ÓÎÏ×Á ÂÅÚ ÕÇÌÕÂÌÅÎÉÑ × ÄÅÔÁÌÉ ÔÏÇÏ, ËÁËÉÅ ÆÁÊÌÙ ÄÏÌÖÎÙ ÂÙÔØ ÉÎÓÔÁÌÌÉÒÏ×ÁÎÙ. éÓÐÏÌØÚÕÊÔÅ ÍÅÎÀ ÕÓÔÁÎÏ×ËÉ ÐÁËÁÄÖÅÊ × /stand/sysinstall (× ÐÕÎËÔÅ ÍÅÎÀ post-configuration) ÉÌÉ ÚÁÐÕÓËÁÊÔÅ pkg_add(1) Ó ÕËÁÚÁÎÉÅÍ ËÏÎËÒÅÔÎÙÈ ÆÁÊÌÏ× Ó ÐÁËÁÄÖÁÍÉ, ËÏÔÏÒÙÅ ×Ù ÈÏÔÉÔÅ ÐÒÏÉÎÓÔÁÌÌÉÒÏ×ÁÔØ. æÁÊÌÙ Ó ÐÁËÁÄÖÁÍÉ, ËÁË ÐÒÁ×ÉÌÏ, ÉÄÅÎÔÉÆÉÃÉÒÕÀÔÓÑ ÐÏ ÉÈ ÐÏÓÔÆÉËÓÕ .tgz, Á ÄÌÑ ÔÅÈ, ËÔÏ ÉÍÅÅÔ ÄÉÓÔÒÉÂÕÔÉ× ÓÉÓÔÅÍÙ ÎÁ ËÏÍÐÁËÔ-ÄÉÓËÅ, ÐÒÅÄÎÁÚÎÁÞÅÎ ËÁÔÁÌÏÇ packages/All, ÓÏÄÅÒÖÁÝÉÊ ×ÓÅ ÜÔÉ ÆÁÊÌÙ. ïÎÉ ÔÁËÖÅ ÍÏÇÕÔ ÂÙÔØ ÐÏÌÕÞÅÎÙ ÐÏ ÓÅÔÉ ÄÌÑ ÒÁÚÎÙÈ ×ÅÒÓÉÊ FreeBSD ÓÏ ÓÌÅÄÕÀÝÉÈ ÓÅÒ×ÅÒÏ×: ÄÌÑ 2.2.8-release/2.2.8-stable ftp://ftp.FreeBSD.ORG/pub/FreeBSD/ports/i386/packages-2.2.8/ ÄÌÑ 4.0-current ftp://ftp.FreeBSD.ORG/pub/FreeBSD/ports/i386/packages-3.0/ ÉÌÉ Ó ÂÌÉÖÁÊÛÅÇÏ Ë ×ÁÍ ÚÅÒËÁÌØÎÏÇÏ ÓÅÒ×ÅÒÁ. éÍÅÊÔÅ × ×ÉÄÕ, ÞÔÏ ÎÅ ×ÓÅ ÐÏÒÔÙ ÍÏÇÕÔ ÂÙÔØ ÄÏÓÔÕÐÎÙ × ×ÉÄÅ ÐÁËÁÄÖÅÊ, ÔÁË ËÁË ÐÏÓÔÏÑÎÎÏ ÉÄ£Ô ÄÏÂÁ×ÌÅÎÉÅ ÎÏ×ÙÈ. îÅÐÌÏÈÏ ×ÒÅÍÑ ÏÔ ×ÒÅÍÅÎÉ ÐÒÏ×ÅÒÑÔØ, ËÁËÉÅ ÐÁËÁÄÖÉ ÄÏÓÔÕÐÎÙ ÎÁ ÏÓÎÏ×ÎÏÍ ÓÅÒ×ÅÒÅ ftp.freebsd.org. çÄÅ ÎÁÊÔÉ ÂÉÂÌÉÏÔÅËÕ libc.so.3.0? ðÏÈÏÖÅ, ÞÔÏ ×Ù ÐÙÔÁÅÔÅÓØ ÚÁÐÕÓÔÉÔØ ÐÁËÁÄÖ ÄÌÑ 2.2/3.x/4.0 ÎÁ ÓÉÓÔÅÍÅ ×ÅÒÓÉÉ 2.1.x. ðÏÖÁÌÕÊÓÔÁ, ÐÒÏÞÔÉÔÅ ÐÒÅÄÙÄÕÝÉÊ ÒÁÚÄÅÌ É ÎÁÊÄÉÔÅ ÐÏÄÈÏÄÑÝÉÊ ÄÌÑ ×ÁÛÅÊ ÓÉÓÔÅÍÙ ÐÏÒÔ ÉÌÉ ÐÁËÁÄÖ. ghostscript ×ÙÄÁ£Ô ÍÁÓÓÕ ÓÏÏÂÝÅÎÉÊ ÎÁ ÍÏ£Í 386/486SX. õ ×ÁÓ ÎÅÔ ÓÏÐÒÏÃÅÓÓÏÒÁ, ×ÅÒÎÏ? ÷ÁÍ ÎÕÖÎÏ ÄÏÂÁ×ÉÔØ × ÑÄÒÏ ÄÒÕÇÏÊ ÅÍÕÌÑÔÏÒ ÓÏÐÒÏÃÅÓÓÏÒÁ; ÜÔÏ ÄÅÌÁÅÔÓÑ ÄÏÂÁ×ÌÅÎÉÅÍ ÓÌÅÄÕÀÝÅÊ ÓÔÒÏËÉ × ÆÁÊÌ ËÏÎÆÉÇÕÒÁÃÉÉ ÑÄÒÁ É ÐÏÓÌÅÄÕÀÝÅÊ ÅÇÏ ÐÅÒÅËÏÍÐÉÌÑÃÉÅÊ. options GPL_MATH_EMULATE úáíåþáîéå åÓÌÉ ×Ù ÐÏÓÔÕÐÁÅÔÅ ÔÁËÉÍ ÏÂÒÁÚÏÍ, ×ÁÍ ÎÕÖÎÏ ÂÕÄÅÔ ÕÂÒÁÔØ ÏÐÃÉÀ MATH_EMULATE. ðÒÉ ÚÁÐÕÓËÅ ÐÒÉÌÏÖÅÎÉÑ SCO/iBCS2, ÏÎ ÐÒÅÒÙ×ÁÅÔÓÑ ÎÁ socksys. ðÒÅÖÄÅ ×ÓÅÇÏ ×ÁÍ ÎÕÖÎÏ ÏÔÒÅÄÁËÔÉÒÏ×ÁÔØ ÆÁÊÌ /etc/sysconfig (ÉÌÉ /etc/rc.conf), ÉÚÍÅÎÉ× × ÐÏÓÌÅÄÎÅÍ ÒÁÚÄÅÌÅ ÚÎÁÞÅÎÉÅ ÓÌÅÄÕÀÝÅÊ ÐÅÒÅÍÅÎÎÏÊ ÎÁ YES: # Set to YES if you want ibcs2 (SCO) emulation loaded at startup ibcs2=NO üÔÏ ×ËÌÀÞÉÔ ÚÁÇÒÕÚËÕ ÍÏÄÕÌÑ ÐÏÄÄÅÒÖËÉ ibcs2 ÎÁ ÜÔÁÐÅ ÚÁÇÒÕÚËÉ ÓÉÓÔÅÍÙ. úÁÔÅÍ ×ÁÍ ÎÕÖÎÏ ÉÚÍÅÎÉÔØ ËÁÔÁÌÏÇ /compat/ibcs2/dev ÔÁË, ÞÔÏÂÙ ÏÎ ×ÙÇÌÑÄÅÌ ÓÌÅÄÕÀÝÉÍ ÏÂÒÁÚÏÍ: lrwxr-xr-x 1 root wheel 9 Oct 15 22:20 X0R@ -> /dev/null lrwxr-xr-x 1 root wheel 7 Oct 15 22:20 nfsd@ -> socksys -rw-rw-r-- 1 root wheel 0 Oct 28 12:02 null lrwxr-xr-x 1 root wheel 9 Oct 15 22:20 socksys@ -> /dev/null crw-rw-rw- 1 root wheel 41, 1 Oct 15 22:14 spx òÁÂÏÔÁ Ó socksys ÂÙÌÁ ÚÎÁÞÉÔÅÌØÎÏ ÕÐÒÏÝÅÎÁ ÐÏ ÓÔÁ×ÎÅÎÉÀ Ó ÂÏÌÅÅ ÒÁÎÎÉÍÉ ×ÅÒÓÉÑÍÉ. Socksys ÄÏÌÖÅÎ ÕËÁÚÙ×ÁÔØ ÎÁ /dev/null, ÞÔÏÂÙ ÏÂÍÁÎÕÔØ open & close. ëÏÄ, ÉÍÅÀÝÉÊÓÑ × -current, ×ÏÚØÍ£Ô ÎÁ ÓÅÂÑ ×Ó£ ÏÓÔÁÌØÎÏÅ. åÓÌÉ ×ÁÍ ÎÕÖÅÎ ÄÒÁÊ×ÅÒ spx ÄÌÑ ÐÏÄËÌÀÞÅÎÉÑ X ÐÏ ÌÏËÁÌØÎÏÍÕ ÓÏËÅÔÕ, ÏÐÒÅÄÅÌÉÔÅ ÐÅÒÅÍÅÎÎÕÀ SPX_HACK ÐÒÉ ËÏÍÐÉÌÑÃÉÉ ÓÉÓÔÅÍÙ. ëÁË ÎÁÓÔÒÏÉÔØ INN (Internet News) ÎÁ ÍÏÅÊ ÍÁÛÉÎÅ? ðÏÓÌÅ ÉÎÓÔÁÌÑÃÉÉ ÐÁËÁÄÖÁ ÉÌÉ ÐÏÒÔÁ ÄÌÑ inn, ÄÌÑ ÎÁÞÁÌÁ ÚÁÇÌÑÎÉÔÅ ÎÁ ÓÔÒÁÎÉÞËÕ äÜÊ×Á âÜÒÒÁ (Dave Barr), ÐÏÓ×ÑÝ£ÎÎÕÀ INN, ÇÄÅ ×Ù ÎÁÊÄ£ÔÅ ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÊ FAQ. ëÁËÕÀ ×ÅÒÓÉÀ Microsoft FrontPage Ñ ÄÏÌÖÅÎ ÉÍÅÔØ? éÓÐÏÌØÚÕÊ ÐÏÒÔ, ÄÕÒÁÞÏË! óÒÅÄÉ ÐÏÒÔÏ× ÉÍÅÅÔÓÑ Apache Ó ÐÏÄÄÅÒÖËÏÊ FrontPage. ðÏÄÄÅÒÖÉ×ÁÅÔ ÌÉ FreeBSD ÓÒÅÄÕ Java? äÁ. ðÏÓÅÔÉÔÅ ÓÔÒÁÎÉÃÕ http://www.FreeBSD.org/java/. ðÏÞÅÍÕ ÎÅËÏÔÏÒÙÊ ÐÏÒÔ ÎÅ ËÏÍÐÉÌÉÒÕÅÔÓÑ ÎÁ ÍÏÅÊ ÍÁÛÉÎÅ Ó 3.x-stable? åÓÌÉ ×Ù ÉÓÐÏÌØÚÕÅÔÅ FreeBSD ×ÅÒÓÉÉ, ÚÎÁÞÉÔÅÌØÎÏ ÏÔÓÔÁÀÝÅÊ ÏÔ -current ÉÌÉ -stable, ×ÁÍ ÎÕÖÅÎ ÐÁËÅÔ ÏÂÎÏ×ÌÅÎÉÑ, ËÏÔÏÒÙÊ ÍÏÖÎÏ ÎÁÊÔÉ ÐÏ ÁÄÒÅÓÕ http://www.FreeBSD.org/ports/. åÓÌÉ ×Ù ÏÔÓÌÅÖÉ×ÁÅÔÅ ×ÓÅ ÉÚÍÅÎÅÎÉÑ, ÔÏ, ÓËÏÒÅÅ ×ÓÅÇÏ, ËÔÏ-ÔÏ ×Î£Ó ÉÚÍÅÎÅÎÉÑ × ÐÏÒÔ, ÔÁË ÞÔÏ ÏÎ ÒÁÂÏÔÁÅÔ × -current, ÎÏ ÎÅ ÒÁÂÏÔÁÅÔ × -stable. ôÁË ËÁË ÐÒÅÄÐÏÌÁÇÁÅÔÓÑ, ÞÔÏ ËÏÌÌÅËÃÉÑ ÐÏÒÔÏ× ÄÏÌÖÎÁ ÒÁÂÏÔÁÔØ ËÁË × ×ÅÔËÅ -current, ÔÁË É × ×ÅÔ×É -stable, ÔÏ, ÐÏÖÁÌÕÊÓÔÁ, ÐÏÛÌÉÔÅ ÓÏÏÂÝÅÎÉÅ Ï ÜÔÏÊ ÏÛÉÂËÅ Ó ÐÏÍÏÝØÀ ËÏÍÁÎÄÙ send-pr(1). çÄÅ ÎÁÊÔÉ ld.so? åÓÌÉ ×ÁÍ ÎÅÏÂÈÏÄÉÍÏ ÚÁÐÕÓÔÉÔØ ÎÅËÏÔÏÒÙÅ ÐÒÉÌÏÖÅÎÉÑ × ÆÏÒÍÁÔÅ aout ÔÉÐÁ Netscape Navigator ÎÁ Elf-ÍÁÛÉÎÅ, ÔÁËÏÊ ËÁË 3.1-R É ×ÙÛÅ, ÔÏ ÄÌÑ ÜÔÏÇÏ ÔÒÅÂÕÅÔÓÑ /usr/libexec/ld.so É ÎÅËÏÔÏÒÙÅ ÂÉÂÌÉÏÔÅËÉ × ÆÏÒÍÁÔÅ aout. ïÎÉ ×ËÌÀÞÅÎÙ × ÄÉÓÔÒÉÂÕÔÉ× ËÁË compat22. úÁÐÕÓÔÉÔÅ /stand/sysinstall ÉÌÉ install.sh × ËÁÔÁÌÏÇÅ compat22, ÞÔÏÂÙ ÕÓÔÁÎÏ×ÉÔØ ÜÔÏÔ ËÏÍÐÏÎÅÎÔ. ðÒÏÞÔÉÔÅ ÔÁËÖÅ ÄÏËÕÍÅÎÔÙ ERRATA ÏÔ 3.1-R É 3.2-R. ëÏÎÆÉÇÕÒÉÒÏ×ÁÎÉÅ ÑÄÒÁ ñ ÈÏÞÕ ÉÚÍÅÎÉÔØ ÎÁÓÔÒÏÊËÉ ÑÄÒÁ. üÔÏ ÓÌÏÖÎÏ? ÷Ï×ÓÅ ÎÅÔ! ïÂÒÁÔÉÔÅÓØ Ë ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÅÍÕ ÒÁÚÄÅÌÕ òÕËÏ×ÏÄÓÔ×Á, ËÏÔÏÒÙÊ ÐÏÓ×ÑݣΠÜÔÏÍÕ ×ÏÐÒÏÓÕ. úáíåþáîéå: òÅËÏÍÅÎÄÕÅÍ ÓÏÈÒÁÎÉÔØ ËÏÐÉÀ ×ÁÛÅÇÏ ÑÄÒÁ × ÆÁÊÌ kernel.YYMMDD ÐÏÓÌÅ ÔÏÇÏ, ËÁË ×Ù ÐÏÌÕÞÉÔÅ ÒÁÂÏÞÕÀ ×ÅÒÓÉÀ, ÄÌÑ ÔÏÇÏ, ÞÔÏÂÙ × ÓÌÅÄÕÀÝÉÊ ÒÁÚ, ÅÓÌÉ ×Ù ÉÓÐÏÒÔÉÔÅ ÞÔÏ-ÌÉÂÏ × ×ÁÛÅÍ ËÏÎÆÉÇÕÒÁÃÉÏÎÎÏÍ ÆÁÊÌÅ, ×Ù ÓÍÏÇÌÉ ÚÁÇÒÕÚÉÔØ ÜÔÏ ÑÄÒÏ, ×ÍÅÓÔÏ ÔÏÇÏ, ÞÔÏÂÙ ÎÁÞÉÎÁÔØ ÓÎÏ×Á Ó kernel.GENERIC. üÔÏ, × ÞÁÓÔÎÏÓÔÉ, ÉÍÅÅÔ ÓÍÙÓÌ, ÅÓÌÉ ×Ù ÐÒÏÉÚ×ÏÄÉÔÅ ÚÁÇÒÕÚËÕ ÓÉÓÔÅÍÙ Ó ËÏÎÔÒÏÌÌÅÒÁ, ËÏÔÏÒÙÊ ÎÅ ÐÏÄÄÅÒÖÉ×ÁÅÔÓÑ × ÓÔÁÎÄÁÒÔÎÏÍ ÑÄÒÅ GENERIC (ÉÚ ÍÏÅÇÏ ÌÉÞÎÏÇÏ ÏÐÙÔÁ). ñ ÎÅ ÍÏÇÕ ÓËÏÍÐÉÌÉÒÏ×ÁÔØ ÑÄÒÏ. ïÔÓÕÔÓÔ×ÕÅÔ _hw_float. ðÏÚ×ÏÌØÔÅ ÍÎÅ ÕÇÁÄÁÔØ. ÷Ù, ÎÁ×ÅÒÎÏÅ, ÕÄÁÌÉÌÉ npx0 ÉÚ ×ÁÛÅÇÏ ÆÁÊÌÁ ËÏÎÆÉÇÕÒÁÃÉÉ ÑÄÒÁ, ÐÏÔÏÍÕ ÞÔÏ Õ ×ÁÓ ÎÅÔ ÓÏÐÒÏÃÅÓÓÏÒÁ, ÄÁ? îÅÐÒÁ×ÉÌØÎÏ! :-) óÔÒÏËÁ npx0 ïâñúáôåìøîá. äÁÖÅ ÅÓÌÉ Õ ×ÁÓ ÎÅÔ ÍÁÔÅÍÁÔÉÞÅÓËÏÇÏ ÓÏÐÒÏÃÅÓÓÏÒÁ, ×Ù ÄÏÌÖÎÙ ×ËÌÀÞÉÔØ ÐÏÄÄÅÒÖËÕ npx0. ëÏÎÆÌÉËÔÙ ÐÒÅÒÙ×ÁÎÉÊ ÐÒÉ ×ËÌÀÞÅÎÉÉ ÐÏÄÄÅÒÖËÉ ÍÎÏÇÏÐÏÒÔÏ×Ùx ËÏÍÍÕÎÉËÁÃÉÏÎÎÙÈ ÁÄÁÐÔÅÒÏ×. Q. ëÏÇÄÁ Ñ ËÏÍÐÉÌÉÒÕÀ ÑÄÒÏ Ó ÐÏÄÄÅÒÖËÏÊ ÍÎÏÇÏÐÏÒÔÏ×ÙÈ ËÏÍÍÕÎÉËÁÃÉÏÎÎÙÈ ÁÄÁÐÔÅÒÏ×, ÓÏÏÂÝÁÅÔÓÑ, ÞÔÏ ÔÏÌØËÏ ÐÅÒ×ÙÊ ÐÏÒÔ ÂÕÄÅÔ ÔÅÓÔÉÒÏ×ÁÔØÓÑ, Á ×ÓÅ ÏÓÔÁÌØÎÙÅ ÐÒÏÐÕÓËÁÀÔÓÑ ÉÚ-ÚÁ ËÏÎÆÌÉËÔÏ× ÐÒÅÒÙ×ÁÎÉÊ. ëÁË ÜÔÏ ÉÓÐÒÁ×ÉÔØ? A. ðÒÏÂÌÅÍÁ ÓÏÓÔÏÉÔ × ÔÏÍ, ÞÔÏ ×Ï FreeBSD ×ÓÔÒÏÅÎ ËÏÄ, ÐÒÅÄÏÈÒÁÎÑÀÝÉÊ ÑÄÒÏ ÏÔ ÁÐÐÁÒÁÔÎÙÈ É ÐÒÏÇÒÁÍÍÎÙÈ ËÏÎÆÌÉËÔÏ×. ÷ÁÍ ÎÕÖÎÏ ÕÂÒÁÔØ ÕËÁÚÁÎÉÑ IRQ ÎÁ ×ÓÅÈ ÐÏÒÔÁÈ, ËÒÏÍÅ ÏÄÎÏÇÏ. îÁÐÒÉÍÅÒ: # # ÷ÙÓÏËÏÓËÏÒÏÓÔÎÏÊ ËÏÍÍÕÎÉËÁÃÉÏÎÎÙÊ ÁÄÁÐÔÅÒ - 16550 UARTS # device sio2 at isa? port 0x2a0 tty irq 5 flags 0x501 vector siointr device sio3 at isa? port 0x2a8 tty flags 0x501 vector siointr device sio4 at isa? port 0x2b0 tty flags 0x501 vector siointr device sio5 at isa? port 0x2b8 tty flags 0x501 vector siointr ëÁË ×ËÌÀÞÉÔØ ÐÏÄÄÅÒÖËÕ ÎÁËÏÐÉÔÅÌÅÊ QIC-40/80? òÁÓËÏÍÍÅÎÔÉÒÕÊÔÅ ÓÌÅÄÕÀÝÕÀ ÓÔÒÏËÕ × ÆÁÊÌÅ ËÏÎÆÉÇÕÒÁÃÉÉ ÓÔÁÎÄÁÒÔÎÏÇÏ ÑÄÒÁ (ÉÌÉ ÄÏÂÁרÔÅ ÅÅ × ËÏÎÆÉÇÕÒÁÃÉÏÎÎÙÊ ÆÁÊÌ ×ÁÛÅÇÏ ÑÄÒÁ), ÄÏÂÁרÔÅ ``flags 0x1'' Ë ÓÔÒÏËÅ, ÓÏÄÅÒÖÁÝÅÊ fdc É ÐÅÒÅËÏÍÐÉÌÉÒÕÊÔÅ ÑÄÒÏ. controller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2 flags 0x1 vector fdintr disk fd0 at fdc0 drive 0 ^^^^^^^^^ disk fd1 at fdc0 drive 1 #tape ft0 at fdc0 drive 2 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ úÁÔÅÍ ÓÏÚÄÁÊÔÅ ÕÓÔÒÏÊÓÔ×Ï Ó ÉÍÅÎÅÍ /dev/ft0, ÐÅÒÅÊÄÑ × ËÁÔÁÌÏÇ /dev É ÚÁÐÕÓÔÉ× ËÏÍÁÎÄÕ sh ./MAKEDEV ft0 ÄÌÑ ÐÅÒ×ÏÇÏ ÕÓÔÒÏÊÓÔ×Á, ft1 ÄÌÑ ×ÔÏÒÏÇÏ É ÔÁË ÄÁÌÅÅ. õ ×ÁÓ ÐÏÑ×ÉÔÓÑ ÕÓÔÒÏÊÓÔ×Ï Ó ÉÍÅÎÅÍ /dev/ft0, ÎÁ ËÏÔÏÒÏÅ ×Ù ÍÏÖÅÔÅ ÐÒÏÉÚ×ÏÄÉÔØ ÚÁÐÉÓØ Ó ÐÏÍÏÝØÀ ÓÐÅÃÉÁÌØÎÏÊ ÐÒÏÇÒÁÍÍÙ ÕÐÒÁ×ÌÅÎÉÑ, ÎÁÚÙ×ÁÀÝÅÊÓÑ ``ft'' - ÚÁ ÄÏÐÏÌÎÉÔÅÌØÎÏÊ ÉÎÆÏÒÍÁÃÉÅÊ ÏÂÒÁÔÉÔÅÓØ Ë ÓÔÒÁÎÉÃÅ ÓÐÒÁ×ÏÞÎÉËÁ ÐÏ ft. ÷ÅÒÓÉÉ ÏÐÅÒÁÃÉÏÎÎÏÊ ÓÉÓÔÅÍÙ, ÐÒÅÄÛÅÓÔ×ÕÀÝÉÅ , ÉÍÅÀÔ ÏÇÒÅÈÉ, Ó×ÑÚÁÎÎÙÅ Ó ËÁÞÅÓÔ×ÏÍ ÎÏÓÉÔÅÌÑ. åÓÌÉ Õ ×ÁÓ ÐÏÑ×ÉÌÉÓØ ÐÒÏÂÌÅÍÁ, ËÏÇÄÁ ft ÐÒÏËÒÕÞÉ×ÁÅÔ ÌÅÎÔÕ ÔÕÄÁ-ÓÀÄÁ ÎÁ ÏÄÎÏÍ É ÔÏÍ ÖÅ ÍÅÓÔÅ, ÐÏÐÒÏÂÕÊÔÅ ×ÚÑÔØ ÐÏÓÌÅÄÎÀÀ ×ÅÒÓÉÀ ÐÒÏÇÒÁÍÍÙ ft Ó /usr/src/sbin/ft ÉÚ É ÐÏÐÒÏÂÏ×ÁÔØ Å£. óÉÓÔÅÍÎÏÅ ÁÄÍÉÎÉÓÔÒÉÒÏ×ÁÎÉÅ çÄÅ ÒÁÓÐÏÌÏÖÅÎÙ ÆÁÊÌÙ ËÏÎÆÉÇÕÒÁÃÉÉ ÓÉÓÔÅÍÙ? äÌÑ FreeBSD ×ÅÒÓÉÊ ÏÔ 2.0.5R ÄÏ 2.2.1R ÏÓÎÏ×ÎÙÍ ËÏÎÆÉÇÕÒÁÃÉÏÎÎÙÍ ÆÁÊÌÏÍ Ñ×ÌÑÅÔÓÑ /etc/sysconfig. ÷ÓÅ ÐÁÒÁÍÅÔÒÙ ÕËÁÚÙ×ÁÀÔÓÑ ÚÄÅÓØ, Á ÏÓÔÁÌØÎÙÅ ËÏÎÆÉÇÕÒÁÃÉÏÎÎÙÅ ÆÁÊÌÙ, ÔÁËÉÅ, ËÁË /etc/rc É /etc/netstart ÐÒÏÓÔÏ ÅÇÏ ÉÓÐÏÌØÚÕÀÔ. ðÏÓÍÏÔÒÉÔÅ ÆÁÊÌ /etc/sysconfig É ÉÚÍÅÎÉÔÅ ÚÎÁÞÅÎÉÑ ÐÅÒÅÍÅÎÎÙÈ ÎÁ ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÅ ×ÁÛÅÊ ÓÉÓÔÅÍÅ. ÷ ÆÁÊÌÅ ÓÏÄÅÒÖÁÔÓÑ ËÏÍÍÅÎÔÁÒÉÉ, ÏÐÉÓÙ×ÁÀÝÉÅ ÓÍÙÓÌ ÜÔÉÈ ÐÅÒÅÍÅÎÎÙÈ É ÓÐÏÓÏ ÉÈ ÚÁÄÁÎÉÑ. ÷ ÓÉÓÔÅÍÁÈ ×ÙÛÅ 2.2.1 É × 3.0 ÆÁÊÌ /etc/sysconfig ÓÍÅÎÉÌ ÎÁÚ×ÁÎÉÅ ÎÁ ÇÏ×ÏÒÑÝÅÅ ÓÁÍÏ ÚÁ ÓÅÂÑ rc.conf, ÓÉÎÔÁËÓÉÓ ÏÐÉÓÁÎÉÑ ÐÅÒÅÍÅÎÎÙÈ ÂÙÌ ÎÅÓËÏÌØËÏ ÕÌÕÞÛÅÎ. /etc/netstart ÔÏÖÅ ÂÙÌ ÐÅÒÅÉÍÅÎÏ×ÁÎ × /etc/rc.network, ÔÁË ÞÔÏ ×ÓÅ ËÏÎÆÉÇÕÒÁÃÉÏÎÎÙÅ ÆÁÊÌÙ ÔÅÐÅÒØ ÍÏÖÎÏ ÐÅÒÅÎÅÓÔÉ ÏÄÎÏÊ ËÏÍÁÎÄÏÊ cp /usr/src/etc/rc* /etc. /etc/rc.local ËÁË ÏÂÙÞÎÏ, ÍÏÖÎÏ ÉÓÐÏÌØÚÏ×ÁÔØ ÄÌÑ ÚÁÐÕÓËÁ ÄÏÐÏÌÎÉÔÅÌØÎÙÈ ÍÅÓÔÎÙÈ ÓÌÕÖ ÔÉÐÁ INN ÉÌÉ ÄÌÑ ÎÁÓÔÒÏÊËÉ ÄÏÐÏÌÎÉÔÅÌØÎÙÈ ÐÁÒÁÍÅÔÒÏ×. æÁÊÌ /etc/rc.serial ÐÒÅÄÎÁÚÎÁÞÅÎ ÄÌÑ ÉÎÉÃÉÁÌÉÚÁÃÉÉ ËÏÍÍÕÎÉËÁÃÉÏÎÎÙÈ ÁÄÁÐÔÅÒÏ× (ÎÁÐÒÉÍÅÒ, ÕÓÔÁÎÏ×ËÉ ÈÁÒÁËÔÅÒÉÓÔÉË ÒÁÂÏÔÙ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÙÈ ÐÏÒÔÏ× ÉÔÄ). æÁÊÌ /etc/rc.i386 ÐÒÅÄÎÁÚÎÁÞÅÎ ÄÌÑ ÎÁÓÔÒÏÊËÉ ÓÐÅÃÉÆÉÞÎÙÈ ÄÌÑ ÁÒÈÉÔÅËÔÕÒÙ Intel ÐÁÒÁÍÅÔÒÏ×, ÔÁËÉÈ, ËÁË ÜÍÕÌÑÃÉÑ iBCS2 ÉÌÉ ÈÁÒÁËÔÅÒÉÓÔÉË ÓÉÓÔÅÍÎÏÊ ËÏÎÓÏÌÉ ðë. îÁÞÉÎÁÑ Ó ×ÅÒÓÉÉ 2.1.0R, ×Ù ÍÏÖÅÔÅ ÉÍÅÔØ "ÍÅÓÔÎÙÅ" ÆÁÊÌÙ Á×ÔÏÚÁÐÕÓËÁ × ËÁÔÁÌÏÇÅ, ÕËÁÚÁÎÎÏÍ × ÆÁÊÌÅ /etc/sysconfig (ÉÌÉ /etc/rc.conf): # Location of local startup files. local_startup=/usr/local/etc/rc.local.d ëÁÖÄÙÊ ÆÁÊÌ, ÏËÁÎÞÉ×ÁÀÝÉÊÓÑ ÎÁ .sh, ÂÕÄÅÔ ÚÁÐÕÝÅÎ ÎÁ ×ÙÐÏÌÎÅÎÉÅ × ÁÌÆÁ×ÉÔÎÏÍ ÐÏÒÑÄËÅ. åÓÌÉ ×ÁÍ ÎÕÖÎÏ ÄÏÂÉÔØÓÑ ÏÐÒÅÄÅÌ£ÎÎÏÇÏ ÐÏÒÑÄËÁ ×ÙÐÏÌÎÅÎÉÑ ÎÅ ÍÅÎÑÑ ÉͣΠÆÁÊÌÏ×, ÍÏÖÎÏ ÉÓÐÏÌØÚÏ×ÁÔØ ÓÈÅÍÕ, × ËÏÔÏÒÏÊ ÄÌÑ ÕÐÏÒÑÄÏÞÅÎÉÑ ÉÓÐÏÌØÚÕÀÔÓÑ ÃÉÆÒÙ, ÐÒÅÄÛÅÓÔ×ÕÀÝÉÅ ÉÍÅÎÉ ÆÁÊÌÁ. 10news.sh 15httpd.sh 20ssh.sh üÔÏ ÍÏÖÅÔ ×ÙÇÌÑÄÅÔØ ÂÅÚÏÂÒÁÚÎÏ (ËÁË SysV :-)), ÎÏ ÜÔÏ ÐÒÏÓÔÏÊ É ÐÏÎÑÔÎÙÊ ÍÅÔÏÄ ÄÌÑ ÄÏÂÁ×ÌÅÎÉÑ ÄÏÐÏÌÎÉÔÅÌØÎÙÈ ÓÌÕÖ ÂÅÚ ÛÁÍÁÎÓÔ×Á Ó ÒÅÄÁËÔÉÒÏ×ÁÎÉÅÍ /etc/rc.local. íÎÏÇÉÅ ÐÏÒÔÙ/ÐÁËÁÄÖÉ ÐÒÅÄÐÏÌÁÇÁÀÔ, ÞÔÏ ËÁÔÁÌÏÇ /usr/local/etc/rc.d ÐÒÅÄÎÁÚÎÁÞÅÎ ÄÌÑ ÒÁÚÍÅÝÅÎÉÑ ÚÁÐÕÓËÁÅÍÙÈ ÐÒÉ ÚÁÇÒÕÚËÅ ÓÉÓÔÅÍÙ ÓËÒÉÐÔÏ×. ëÁË ÐÒÏÝÅ ×ÓÅÇÏ ÄÏÂÁ×ÉÔØ ÐÏÌØÚÏ×ÁÔÅÌÑ? éÓÐÏÌØÚÕÊÔÅ ËÏÍÁÎÄÕ adduser. óÕÝÅÓÔ×ÕÅÔ ÔÁËÖÅ ÐÁËÅÔ, ÎÁÚÙ×ÁÀÝÉÊÓÑ ``new-account'', ÎÁÐÉÓÁÎÎÙÊ ÎÁ ÑÚÙËÅ Perl ïÌÉרÅÒÏÍ òÏÂÅÒÔÏÍ (Ollivier Robert). ÷ÓÅ ×ÏÐÒÏÓÙ ÎÁÐÒÁ×ÌÑÊÔÅ ÎÁ ÁÄÒÅÓ <roberto@FreeBSD.ORG>. ÷ ÎÁÓÔÏÑÝÉÊ ÍÏÍÅÎÔ ÜÔÏ ÐÁËÅÔ ÎÁÈÏÄÉÔÓÑ × ÓÔÁÄÉÉ ÄÏÒÁÂÏÔËÉ. þÔÏÂÙ ÕÄÁÌÉÔØ ÐÏÌØÚÏ×ÁÔÅÌÑ, ÉÓÐÏÌØÚÕÊÔÅ ËÏÍÁÎÄÕ rmuser. ëÁË ÄÏÂÁ×ÉÔØ × ÓÉÓÔÅÍÕ ÎÏ×ÙÊ ÄÉÓË? ïÂÒÁÔÉÔÅÓØ Ë òÕËÏ×ÏÄÓÔ×Õ ÐÏ ÆÏÒÍÁÔÉÒÏ×ÁÎÉÀ ÄÉÓËÏ× ÎÁ ÓÅÒ×ÅÒÅ www.freebsd.org. ëÁË ÉÓÐÏÌØÚÏ×ÁÔØ ÕÓÔÒÏÊÓÔ×Ï ÄÌÑ ÞÔÅÎÉÑ ÓÍÅÎÎÙÈ ÄÉÓËÏ×? ëÁËÉÍ ÂÙ ÎÉ ÂÙÌÏ ÜÔÏ ÕÓÔÒÏÊÓÔ×Ï, ÔÉÐÁ ZIP, EZ (ÉÌÉ ÄÁÖÅ ÏÂÙÞÎÙÍ ÄÉÓËÏ×ÏÄÏÍ, ÅÓÌÉ ×Ù ÈÏÔÉÔÅ ÅÇÏ ÉÓÐÏÌØÚÏ×ÁÔØ) ÉÌÉ ËÁËÉÍ-ÔÏ ÄÒÕÇÉÍ, ËÁË ÔÏÌØËÏ ÏÎÏ ÂÕÄÅÔ ÕÓÔÁÎÏ×ÌÅÎÏ É ÒÁÓÐÏÚÎÁÎÏ ÓÉÓÔÅÍÏÊ, É ×Ù ×ÓÔÁ×ÉÔÅ × ÎÅÇÏ ËÁÒÔÒÉÄÖ/ÄÉÓËÅÔÕ/ÞÔÏ-ÔÁÍ-ÅÝ£, ×Ó£ ÂÕÄÅÔ ×ÙÇÌÑÄÅÔØ ÐÒÉÍÅÒÎÏ ÏÄÉÎÁËÏ×Ï. (ÜÔÏÔ ÒÁÚÄÅÌ ÏÐÉÒÁÅÔÓÑ ÎÁ FAQ ÐÏ ÕÓÔÒÏÊÓÔ×ÁÍ ZIP íÁÒËÁ íÜÊÏ (Mark Mayo)) åÓÌÉ ÜÔÏ ÕÓÔÒÏÊÓÔ×Ï ZIP ÉÌÉ ÏÂÙÞÎÙÊ ÄÉÓËÏ×ÏÄ, É Õ ×ÁÓ ÕÖÅ ÅÓÔØ ÆÁÊÌÏ×ÁÑ ÓÉÓÔÅÍÁ DOS ÎÁ ÄÉÓËÅÔÁÈ, ÔÏ ×Ù ÍÏÖÅÔÅ ÎÓÐÏÌØÚÏ×ÁÔØ ËÏÍÁÎÄÕ ÔÉÐÁ: mount -t msdos /dev/fd0c /floppy ÄÌÑ ÏÂÙÞÎÙÈ ÄÉÓËÅÔ, ÉÌÉ mount -t msdos /dev/sd2s4 /zip ÄÌÑ ÄÉÓËÅÔ ZIP ÓÏ ÓÔÁÎÄÁÒÔÎÏÊ ËÏÎÆÉÇÕÒÁÃÉÅÊ. äÌÑ ÄÒÕÇÉÈ ÄÉÓËÏ× ÐÏÓÍÏÔÒÉÔÅ ÉÈ ÐÁÒÁÍÅÔÒÙ Ó ÐÏÍÏÝØÀ fdisk ÉÌÉ /stand/sysinstall. ïÓÔÁÌØÎÙÅ ÐÒÉÍÅÒÙ ÄÁÎÙ ÄÌÑ ÐÒÉ×ÏÄÁ ZIP ÎÁ sd2, ÔÒÅÔØÅÍ ÄÉÓËÅ SCSI. åÓÌÉ ÜÔÏ ÄÉÓËÅÔÁ ÉÌÉ ÓÍÅÎÎÙÊ ÄÉÓË, ËÏÔÏÒÙÊ ÂÕÄÅÔ ÉÓÐÏÌØÚÏ×ÁÔØÓÑ ÄÌÑ ÏÂÍÅÎÁ ÉÎÆÏÒÍÁÃÉÅÊ Ó ÄÒÕÇÉÍÉ ÌÀÄØÍÉ, ÈÏÒÏÛÏÊ ÉÄÅÅÊ ÂÕÄÅÔ ÐÏÍÅÝÅÎÉÅ ÔÕÄÁ ÆÁÊÌÏ×ÏÊ ÓÉÓÔÅÍÙ BSD. ÷Ù ÐÏÌÕÞÉÔÅ ÐÏÄÄÅÒÖËÕ ÄÌÉÎÎÙÈ ÉͣΠÆÁÊÌÏ×, Õ×ÅÌÉÞÅÎÉÅ ÐÒÏÉÚ×ÏÄÉÔÅÌØÎÏÓÔÉ ÐÏ ËÒÁÊÎÅÊ ÍÅÒÅ × Ä×Á ÒÁÚÁ É ÇÏÒÁÚÄÏ ÂÏÌØÛÕÀ ÎÁÄ£ÖÎÏÓÔØ. ðÅÒ×ÙÍ ÄÅÌÏÍ ×ÁÍ ÓÎÏ×Á ÂÕÄÅÔ ÎÕÖÎÏ ×ÙÐÏÌÎÉÔØ ÒÁÚÂÉÅÎÉÅ ÄÉÓËÁ ÎÁ ÒÁÚÄÅÌÙ/ÆÁÊÌÏ×ÙÅ ÓÉÓÔÅÍÙ. ÷Ù ÍÏÖÅÔÅ ×ÏÓÐÏÌØÚÏ×ÁÔØÓÑ ÕÔÉÌÉÔÏÊ fdisk ÌÉÂÏ /stand/sysinstall, Á × ÓÌÕÞÁÅ ÎÅÂÏÌØÛÏÇÏ ÄÉÓËÁ, ÎÁ ËÏÔÏÒÏÍ ÎÅ ÎÕÖÎÏ ÒÁÓÐÏÌÁÇÁÔØ ÎÅÓËÏÌØËÏ ÏÐÅÒÁÃÉÏÎÎÙÈ ÓÉÓÔÅÍ, ÐÒÏÓÔÏ ÓÏÔÒÉÔÅ ÔÁÂÌÉÃÕ ÒÁÚÄÅÌÏ× (ÓÌÁÊÓÏ×) FAT É ÉÓÐÏÌØÚÕÊÔÅ ÒÁÚÂÉÅÎÉÅ ÎÁ ÒÁÚÄÅÌÙ BSD. dd if=/dev/zero of=/dev/rsd2 count=2 disklabel -Brw sd2 auto ÷Ù ÍÏÖÅÔÅ ÉÓÐÏÌØÚÏ×ÁÔØ disklabel ÉÌÉ /stand/sysinstall ÄÌÑ ÓÏÚÄÁÎÉÑ ÎÅÓËÏÌØËÉÈ ÒÁÚÄÅÌÏ× BSD. ÷ÁÍ ÎÁ×ÅÒÎÑËÁ ÐÒÉÄ£ÔÓÑ ÜÔÏ ÓÄÅÌÁÔØ, ÅÓÌÉ ×Ù ÓÔÁÎÅÔÅ ÄÏÂÁ×ÌÑÔØ ÍÅÓÔÏ ÄÌÑ ÒÁÚÄÅÌÁ ÐÏÄËÁÞËÉ ÎÁ ×ÉÎÞÅÓÔÅÒÅ, ÈÏÔÑ ÜÔÏ ÎÅ ÉÍÅÅÔ ÏÔÎÏÛÅÎÉÑ Ë ÕÓÔÒÏÊÓÔ×ÁÍ ÔÉÐÁ ZIP. ÷ ÉÔÏÇÅ ×Ù ÄÏÌÖÎÙ ÓÏÚÄÁÔØ ÎÏ×ÕÀ ÆÁÊÌÏ×ÕÀ ÓÉÓÔÅÍÕ (× ÜÔÏÍ ÐÒÉÍÅÒÅ ÏÎÁ ÚÁÎÉÍÁÅÔ ×ÅÓØ ÎÁÛ ÄÉÓË ZIP): newfs /dev/rsd2c É ÓÍÏÎÔÉÒÏ×ÁÔØ Å£: mount /dev/sd2c /zip èÏÒÏÛÏ ÅÝ£ ÄÏÂÁ×ÉÔØ ÓÔÒÏËÕ ÔÉÐÁ ÓÌÅÄÕÀÝÅÊ × ÆÁÊÌ /etc/fstab, ÞÔÏÂÙ × ÂÕÄÕÝÅÍ ÍÏÖÎÏ ÂÙÌÏ ÐÒÏÓÔÏ ÄÁ×ÁÔØ ËÏÍÁÎÄÕ "mount /zip": /dev/sd2c /zip ffs rw,noauto 0 0 ëÁË ÓÍÏÎÔÉÒÏ×ÁÔØ ×ÔÏÒÉÞÎÙÊ ÒÁÚÄÅÌ DOS? ÷ÔÏÒÉÞÎÙÅ ÒÁÚÄÅÌÙ DOS ÎÁÈÏÄÑÔÓÑ ÐÏÓÌÅ ÷óåè ÐÅÒ×ÉÞÎÙÈ ÒÁÚÄÅÌÏ×. îÁÐÒÉÍÅÒ, ÅÓÌÉ ÒÁÚÄÅÌ "E" Ñ×ÌÑÅÔÓÑ ×ÔÏÒÙÍ ÒÁÚÄÅÌÏÍ DOS ÎÁ ×ÔÏÒÏÍ ÄÉÓËÅ SCSI, ×ÁÍ ÎÕÖÎÏ ÓÏÚÄÁÔØ ÓÐÅÃÉÁÌØÎÙÅ ÆÁÊÌÙ ÄÌÑ ÐÑÔÏÇÏ "ÓÌÁÊÓÁ" × ËÁÔÁÌÏÇÅ /dev, ÚÁÔÅÍ ÓÍÏÎÔÉÒÏ×ÁÔØ /dev/sd1s5: # cd /dev # ./MAKEDEV sd1s5 # mount -t msdos /dev/sd1s5 /dos/e íÏÖÎÏ ÌÉ ÓÍÏÎÔÉÒÏ×ÁÔØ ÄÒÕÇÉÅ ÆÁÊÌÏ×ÙÅ ÓÉÓÔÅÍÙ? ëÏÍÐÁËÔ-ÄÉÓËÉ Ó ÆÁÊÌÏ×ÏÊ ÓÉÓÔÅÍÏÊ UFS ÏÔ Digital UNIX ÍÏÇÕÔ ÂÙÔØ ÚÁÍÏÎÔÉÒÏ×ÁÎÙ ÂÅÚ ×ÓÑËÉÈ ÐÒÏÂÌÅÍ. íÏÎÔÉÒÏ×ÁÎÉÅ ÆÁÊÌÏ×ÙÈ ÓÉÓÔÅÍ Digital UNIX ÉÌÉ ÄÒÕÇÉÈ ÓÉÓÔÅÍ, ÐÏÄÄÅÒÖÉ×ÁÀÝÉÈ UFS, ÍÏÖÅÔ ÂÙÔØ ÂÏÌÅÅ ÓÌÏÖÎÙÍ, × ÚÁ×ÉÓÉÍÏÓÔÉ ÏÔ ÏÓÏÂÅÎÎÏÓÔÅÊ ÒÁÚÂÉÅÎÉÑ ÄÉÓËÁ ËÏÎËÒÅÔÎÏÊ ÏÐÅÒÁÃÉÏÎÎÏÊ ÓÉÓÔÅÍÏÊ. Linux: ÷ÅÒÓÉÉ 2.2 É ×ÙÛÅ ÉÍÅÀÔ ÐÏÄÄÅÒÖËÕ ÒÁÚÄÅÌÏ× ext2fs. úÁ ÄÏÐÏÌÎÉÔÅÌØÎÏÊ ÉÎÆÏÒÍÁÃÉÅÊ ÏÂÒÁÔÉÔÅÓØ Ë ÓÔÒÁÎÉÃÁÍ ÓÐÒÁ×ÏÞÎÉËÁ ÐÏ ËÏÍÁÎÄÅ mount_ext2fs. NT: óÕÝÅÓÔ×ÕÅÔ ÄÒÁÊ×ÅÒ, ÐÏÚ×ÏÌÑÀÝÉÊ ÐÏÄ FreeBSD ÉÍÅÔØ ÄÏÓÔÕÐ Ë NTFS × ÒÅÖÉÍÅ "ÔÏÌØËÏ ÄÌÑ ÞÔÅÎÉÑ". ðÏÓÍÏÔÒÉÔÅ ÕÞÅÂÎÉË ÏÔ íÁÒËÁ ï×ÅÎÓÁ (Mark Ovens) ÐÏ ÁÄÒÅÓÕ http://www.users.globalnet.co.uk/~markov/ntfs_install.html. îÁÓ ÉÎÔÅÒÅÓÕÅÔ ÌÀÂÁÑ ÄÏÐÏÌÎÉÔÅÌØÎÁÑ ÉÎÆÏÒÍÁÃÉÑ ÐÏ ÜÔÏÍÕ ×ÏÐÒÏÓÕ. ëÁË ÍÏÖÎÏ ÉÓÐÏÌØÚÏ×ÁÔØ ÚÁÇÒÕÚÞÉË NT ÄÌÑ ÚÁÐÕÓËÁ FreeBSD? éÄÅÑ ÚÁËÌÀÞÁÅÔÓÑ × ËÏÐÉÒÏ×ÁÎÉÉ ÐÅÒ×ÏÇÏ ÓÅËÔÏÒÁ ËÏÒÎÅ×ÏÇÏ ÒÁÚÄÅÌÁ FreeBSD × ÆÁÊÌ, ÎÁÈÏÄÑÝÉÊÓÑ × ÒÁÚÄÅÌÅ DOS/NT. ðÒÅÄÐÏÌÏÖÉÍ, ÞÔÏ ×Ù ÎÁÚ×ÁÌÉ ÜÔÏÔ ÆÁÊÌ c:\bootsect.bsd (ÐÏ ÁÎÁÌÏÇÉÉ Ó c:\bootsect.dos), ÐÏÓÌÅ ÞÅÇÏ ÍÏÖÅÔÅ ÏÔÒÅÄÁËÔÉÒÏ×ÁÔØ ÆÁÊÌ c:\boot.ini, ÞÔÏÂÙ ÏÎ ×ÙÇÌÑÄÅÌ ÐÒÉÍÅÒÎÏ ÔÁË: [boot loader] timeout=30 default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS [operating systems] multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows NT" C:\BOOTSECT.BSD="FreeBSD" C:\="DOS" úÄÅÓØ ÐÒÅÄÐÏÌÁÇÁÅÔÓÑ, ÞÔÏ DOS, NT, FreeBSD ÉÌÉ ÄÒÕÇÁÑ ÏÐÅÒÁÃÉÏÎÎÁÑ ÓÉÓÔÅÍÁ ÂÙÌÉ ÕÓÔÁÎÏ×ÌÅÎÙ × ÉÈ ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÅ ÒÁÚÄÅÌÙ fdisk ÎÁ ÏÄÎÏÍ É ÔÏÍ ÖÅ ÄÉÓËÅ. ÷ ÍÏ£Í ÓÌÕÞÁÅ DOS & NT ÎÁÈÏÄÑÔÓÑ ÎÁ ÐÅÒ×ÏÍ ÒÁÚÄÅÌÅ fdisk, Á FreeBSD ÎÁ ×ÔÏÒÏÍ. ñ ÔÁËÖÅ ÐÒÏÉÎÓÔÁÌÌÉÒÏ×ÁÌ FreeBSD ÄÌÑ ÚÁÇÒÕÚËÉ Ó Å£ ÒÁÚÄÅÌÁ, Á ÎÅ ÉÚ MBR. óÍÏÎÔÉÒÕÊÔÅ ÄÉÓËÅÔÕ × ÆÏÒÍÁÔÅ DOS (ÅÓÌÉ ×Ù ÉÓÐÏÌØÚÕÅÔÅ NTFS) ÉÌÉ ÒÁÚÄÅÌ FAT, ÓËÁÖÅÍ, × ËÁÔÁÌÏÇ /mnt. dd if=/dev/rsd0a of=/mnt/bootsect.bsd bs=512 count=1 ðÅÒÅÚÁÐÕÓÔÉÔÅ DOS ÉÌÉ NT. ðÏÌØÚÏ×ÁÔÅÌÉ NTFS ÄÏÌÖÎÙ ÓËÏÐÉÒÏ×ÁÔØ ÆÁÊÌ bootsect.bsd É/ÉÌÉ bootsect.lnx Ó ÄÉÓËÅÔÙ ÎÁ ÄÉÓË C:\. éÚÍÅÎÉÔÅ ÁÔÒÉÂÕÔÙ (ÐÒÁ×Á) ÎÁ ÆÁÊÌ boot.ini ÓÌÅÄÕÀÝÉÍ ÏÂÒÁÚÏÍ: attrib -s -r c:\boot.ini ïÔÒÅÄÁËÔÉÒÕÊÔÅ ÜÔÏÔ ÆÁÊÌ, ÄÏÂÁ×É× ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÅ ÓÔÒÏËÉ ÉÚ ÐÒÉÍÅÒÎÏÇÏ boot.ini ×ÙÛÅ, É ×ÏÓÓÔÁÎÏ×ÉÔÅ ÁÔÒÉÂÕÔÙ: attrib -r -s c:\boot.ini åÓÌÉ FreeBSD ÚÁÇÒÕÖÁÅÔÓÑ ÉÚ MBR, ×ÏÓÓÔÁÎÏ×ÉÔÅ ÅÇÏ ËÏÍÁÎÄÏÊ DOS ``fdisk'' ÐÏÓÌÅ ÔÏÇÏ, ËÁË ÐÅÒÅËÏÎÆÉÇÕÒÉÒÏ×ÁÌÉ ÉÈ ÄÌÑ ÚÁÇÒÕÚËÉ Ó ÉÈ ÒÏÄÎÙÈ ÒÁÚÄÅÌÏ×. ëÁË ÚÁÇÒÕÚÉÔØ FreeBSD É Linux Ó ÐÏÍÏÝØÀ LILO? åÓÌÉ Õ ×ÁÓ ÕÓÔÁÎÏ×ÌÅÎÙ FreeBSD É Linux ÎÁ ÏÄÎÏÍ É ÔÏÍ ÖÅ ÄÉÓËÅ, ÓÌÅÄÕÊÔÅ ÕËÁÚÁÎÉÑÍ ÐÏ ÕÓÔÁÎÏ×ËÅ LILO Ï ÚÁÇÒÕÚËÅ ÎÅ-Linux ÏÐÅÒÁÃÉÏÎÎÙÈ ÓÉÓÔÅÍ. ïÎÉ Ó×ÏÄÑÔÓÑ Ë ÓÌÅÄÕÀÝÅÍÕ: úÁÇÒÕÚÉÔÅ Linux, É ÄÏÂÁרÔÅ ÓÌÅÕÀÝÉÅ ÓÔÒÏËÉ × ÆÁÊÌ /etc/lilo.conf: other=/dev/hda2 table=/dev/hda label=FreeBSD (ÚÄÅÓØ ×Ù ÐÒÅÄÐÏÌÁÇÁÅÍ, ÞÔÏ ÓÌÁÊÓ Ó FreeBSD ÉÚ×ÅÓÔÅÎ Linux ËÁË /dev/hda2; ÉÚÍÅÎÉÔÅ ÜÔÕ ÓÔÒÏËÕ × ÓÏÏÔ×ÅÔÓÔ×ÉÉ Ó ×ÁÛÅÊ ËÏÎÆÉÇÕÒÁÃÉÅÊ). úÁÔÅÍ ÄÏÓÔÁÔÏÞÎÏ ÂÕÄÅÔ ÚÁÐÕÓÔÉÔØ lilo, ×ÏÊÄÑ × ÓÉÓÔÅÍÕ ÁÄÍÉÎÉÓÔÒÁÔÏÒÏÍ. åÓÌÉ FreeBSD ÒÁÓÐÏÌÁÇÁÅÔÓÑ ÎÁ ÄÒÕÇÏÍ ÄÉÓËÅ, ×ÁÍ ÎÕÖÎÏ ÄÏÂÁ×ÉÔØ ÓÔÒÏÞËÕ ``loader=/boot/chain.b'' × ËÏÎÆÉÇÕÒÁÃÉÏÎÎÙÊ ÆÁÊÌ LILO. îÁÐÒÉÍÅÒ: other=/dev/sdb4 table=/dev/sdb loader=/boot/chain.b label=FreeBSD ÷ ÎÅËÏÔÏÒÙÈ ÓÌÕÞÁÑÈ ÄÌÑ ÕÓÐÅÛÎÏÊ ÚÁÇÒÕÚËÉ ÓÏ ×ÔÏÒÏÇÏ ÄÉÓËÁ ×ÁÍ ÍÏÖÅÔ ÐÏÔÒÅÂÏ×ÁÔØÓÑ ÕËÁÚÁÔØ ÎÏÍÅÒ ÄÉÓËÁ BIOS ÚÁÇÒÕÚÞÉËÕ FreeBSD. îÁÐÒÉÍÅÒ, ÅÓÌÉ ÄÉÓË SCSI Ó FreeBSD ÏÐÒÅÄÅÌÑÅÔÓÑ BIOS ËÁË ÄÉÓË 1, × ÐÒÉÇÌÁÛÅÎÉÉ ÚÁÇÒÕÚÞÉËÁ FreeBSD ÎÕÖÎÏ ÕËÁÚÁÔØ: Boot: 1:sd(0,a)/kernel ÷Ï FreeBSD 2.2.5 É ×ÙÛÅ ×Ù ÍÏÖÅÔÅ ÎÁÓÔÒÏÉÔØ boot(8) ÎÁ Á×ÔÏÍÁÔÉÞÅÓËÏÅ ÐÒÉÎÑÔÉÅ ÔÁËÉÈ ÐÁÒÁÍÅÔÒÏ× ×Ï ×ÒÅÍÑ ÚÁÇÒÕÚËÉ. ÷ ÄÏËÕÍÅÎÔÅ Linux+FreeBSD mini-HOWTO ÓÏÄÅÒÖÉÔÓÑ ÍÎÏÇÏ ÉÎÆÏÒÍÁÃÉÉ, ËÁÓÁÀÝÅÊÓÑ ×ÚÁÉÍÏÄÅÊÓÔ×ÉÑ FreeBSD É Linux. ëÁË ÚÁÇÒÕÚÉÔØ FreeBSD É Linux Ó ÐÏÍÏÝØÀ BootEasy? õÓÔÁÎÏ×ÉÔÅ LILO × ÎÁÞÁÌÏ ÚÁÇÒÕÚÏÞÎÏÇÏ ÒÁÚÄÅÌÁ Linux, Á ÎÅ × Master Boot Record. ðÏÓÌÅ ÜÔÏÇÏ ÍÏÖÎÏ ÚÁÐÕÓÔÉÔØ LILO ÉÚ BootEasy. üÔÏ ÒÅËÏÍÅÎÄÕÅÔÓÑ ÓÄÅÌÁÔØ × ÌÀÂÏÍ ÓÌÕÞÁÅ ÐÒÉ ÏÄÎÏ×ÒÅÍÅÎÎÏÍ ÉÓÐÏÌØÚÏ×ÁÎÉÉ Windows-95 É Linux, ÞÔÏÂÙ ÕÐÒÏÓÔÉÔØ ×ÏÓÓÔÁÎÏ×ÌÅÎÉÅ ÒÁÂÏÔÏÓÐÏÓÏÂÎÏÓÔÉ Linux ÐÏÓÌÅ ÐÅÒÅÉÎÓÔÁÌÌÑÃÉÉ Windows95 (ËÏÔÏÒÁÑ Ñ×ÌÑÅÔÓÑ îÅÄÏÂÒÏÖÅÌÁÔÅÌØÎÏÊ ïÐÅÒÁÃÉÏÎÎÏÊ óÉÓÔÅÍÏÊ É ÎÅ ÔÅÒÐÉÔ ÐÒÉÓÕÔÓÔ×ÉÑ ÄÒÕÇÉÈ ÏÐÅÒÁÃÉÏÎÎÙÈ ÓÉÓÔÅÍ × Master Boot Record). îÅ ÕÇÒÏÖÁÅÔ ÌÉ ÒÅÖÉÍ ``dangerously dedicated'' ÍÏÅÍÕ ÚÄÏÒÏרÀ? ÷ ÐÒÏÃÅÓÓÅ ÕÓÔÁÎÏ×ËÉ ×Ù ÍÏÖÅÔÅ ×ÙÂÒÁÔØ Ä×Á ÒÁÚÌÉÞÎÙÈ ÍÅÔÏÄÁ ÒÁÚÂÉÅÎÉÑ ×ÁÛÅÇÏ ÄÉÓËÁ. ðÏ ÕÍÏÌÞÁÎÉÀ ÜÔÏ ÄÅÌÁÅÔÓÑ × ÒÅÖÉÍÅ ÓÏ×ÍÅÓÔÉÍÏÓÔÉ Ó ÄÒÕÇÉÍÉ ÏÐÅÒÁÃÉÏÎÎÙÍÉ ÓÉÓÔÅÍÁÍÉ ÎÁ ÜÔÏÊ ÖÅ ÍÁÛÉÎÅ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ ÚÁÐÉÓÅÊ × ÔÁÂÌÉÃÅ ÒÁÚÄÅÌÏ× fdisk (ÔÏ, ÞÔÏ ÎÁÚÙ×ÁÅÔÓÑ ``ÓÌÁÊÓÏÍ'' ×Ï FreeBSD), ÓÏ ÓÌÁÊÓÏÍ (ÒÁÚÄÅÌÏÍ), ×ÙÄÅÌÅÎÎÙÍ FreeBSD. ïÐÃÉÏÎÁÌØÎÏ, ×Ù ÍÏÖÅÔÅ ×ÙÂÒÁÔØ ÕÓÔÁÎÏ×ËÕ ÍÅÎÅÄÖÅÒÁ ÚÁÇÒÕÚËÉ ÄÌÑ ÐÅÒÅËÌÀÞÅÎÉÑ ÍÅÖÄÕ ÏÐÅÒÁÃÉÏÎÎÙÍÉ ÓÉÓÔÅÍÁÍÉ. ìÉÂÏ ×Ù ÍÏÖÅÔÅ ×ÙÄÅÌÉÔØ ÄÉÓË ÐÏÌÎÏÓÔØÀ ÐÏÄ FreeBSD, ÎÅ ÚÁÂÏÔÑÓØ Ï ÓÏ×ÍÅÓÔÉÍÏÓÔÉ Ó ÄÒÕÇÉÍÉ ÏÐÅÒÁÃÉÏÎÎÙÍÉ ÓÉÓÔÅÍÁÍÉ. ðÏÞÅÍÕ ÖÅ ÜÔÏÔ ÒÅÖÉÍ ÎÁÚÙ×ÁÅÔÓÑ ``dangerous''? äÅÌÏ × ÔÏÍ, ÞÔÏ ÄÉÓË × ÜÔÏÍ ÒÅÖÉÍÅ ÎÅ ÂÕÄÅÔ ÓÏÄÅÒÖÁÔØ ÔÏÇÏ, ÞÔÏ ÏÂÙÞÎÙÅ ÕÔÉÌÉÔÙ ÄÌÑ ðë ÒÁÓÐÏÚÎÁÀÔ ËÁË ÔÁÂÌÉÃÕ ÒÁÚÄÅÌÏ×. ÷ ÚÁ×ÉÓÉÍÏÓÔÉ ÏÔ ÔÏÇÏ, ÎÁÓËÏÌØËÏ ÈÏÒÏÛÏ ÏÎÉ ÎÁÐÉÓÁÎÙ, ÏÎÉ ÍÏÇÕÔ ÓÏÏÂÝÉÔØ ×ÁÍ Ï ÜÔÏÍ, ËÁË ÔÏÌØËÏ ÏÂÎÁÒÕÖÁÔ ÔÁËÏÊ ÄÉÓË, ÉÌÉ, ÞÔÏ ÇÏÒÁÚÄÏ ÈÕÖÅ, ÍÏÇÕÔ ÚÁÐÏÒÔÉÔØ ÚÁÇÒÕÚÞÉË BSD, ÄÁÖÅ ÎÅ ÓÐÒÁÛÉ×ÁÑ É ÎÅ ÓÏÏÂÝÁÑ Ï ÜÔÏÍ. ë ÔÏÍÕ ÖÅ ÉÚ×ÅÓÔÎÏ, ÞÔÏ ÒÁÚÍÅÔËÁ ÄÉÓËÁ × ÒÅÖÉÍÅ ``dangerously dedicated'' ××ÏÄÉÔ × ÚÁÂÌÕÖÄÅÎÉÅ BIOS ÍÎÏÇÉÈ ÐÒÏÉÚ×ÏÄÉÔÅÌÅÊ, ×ËÌÀÞÁÑ AWARD (ËÏÔÏÒÙÅ ÉÓÐÏÌØÚÕÀÔÓÑ × ËÏÍÐØÀÔÅÒÁÈ HP Netserver, Micronics É ÍÎÏÇÉÈ ÄÒÕÇÉÈ) É Symbios/NCR (ÐÒÏÉÚ×ÏÄÉÔÅÌÑ ÐÏÐÕÌÑÒÎÙÈ SCSI-ËÏÎÔÒÏÌÌÅÒÏ× ÓÅÒÉÉ 53C8xx). é ÜÔÏ ÎÅ ÐÏÌÎÙÊ ÓÐÉÓÏË, ÅÓÔØ ÅÝ£ ÄÒÕÇÉÅ ÐÒÏÉÚ×ÏÄÉÔÅÌÉ. óÉÍÐÔÏÍÁÍÉ ÐÏÄÏÂÎÙÈ ÐÒÏÂÌÅÍ Ñ×ÌÑÅÔÓÑ ÓÏÏÂÝÅÎÉÅ "read error", ×Ù×ÏÄÉÍÏÅ ÚÁÇÒÕÚÞÉËÏÍ FreeBSD, ËÏÇÄÁ ÏÎ ÎÅ ÍÏÖÅÔ ÎÁÊÔÉ ÓÁÍ ÓÅÂÑ, Á ÔÁËÖÅ ÚÁ×ÉÓÁÎÉÑ ÓÉÓÔÅÍÙ ÐÒÉ ÚÁÇÒÕÚËÅ. ôÏÇÄÁ ÚÁÞÅÍ ×ÏÏÂÝÅ ÎÕÖÅÎ ÜÔÏÔ ÒÅÖÉÍ? ïÎ ÜËÏÎÏÍÉÔ ×ÓÅÇÏ ÌÉÛØ ÎÅÓËÏÌØËÏ ËÉÌÏÂÁÊÔ ÄÉÓËÏ×ÏÇÏ ÐÒÏÓÔÒÁÎÓÔ×Á É ÍÏÖÅÔ ×ÙÚ×ÁÔØ ÓÅÒØ£ÚÎÙÅ ÐÒÏÂÌÅÍÙ ÐÒÉ ÎÏ×ÏÊ ÉÎÓÔÁÌÌÑÃÉÉ. ðÒÉÞÉÎÏÊ ÐÏÑ×ÌÅÎÉÑ ÜÔÏÇÏ ÒÅÖÉÍÁ Ñ×ÌÑÅÔÓÑ ÖÅÌÁÎÉÅ ÉÚÂÅÖÁÔØ ÐÏÑ×ÌÅÎÉÑ ÏÄÎÏÊ ÉÚ ÓÁÍÙÈ ÒÁÓÐÒÏÓÔÒÁΣÎÎÙÈ ÐÒÏÂÌÅÍ, Ó ËÏÔÏÒÏÊ ÓÔÁÌËÉ×ÁÀÔÓÑ ÎÏ×ÉÞËÉ - ÓÏÏÔ×ÅÔÓÔ×ÉÅ ÐÁÒÁÍÅÔÒÏ× BIOS É ÒÅÁÌØÎÙÈ ÐÁÒÁÍÅÔÒÏ× ÄÉÓËÁ. ``ðÁÒÁÍÅÔÒÙ'' ÄÉÓËÁ Ñ×ÌÑÀÔÓÑ ÕÓÔÁÒÅ×ÛÅÊ ËÏÎÃÅÐÃÉÅÊ, ÎÏ ÏÎÁ ÌÅÖÉÔ × ÏÓÎÏ×Å ÒÁÂÏÔÙ BIOS Ó ÄÉÓËÏÍ. ëÏÇÄÁ ÐÒÏÇÒÁÍÍÁ ÕÓÔÁÎÏ×ËÉ FreeBSD ÓÏÚÄÁ£Ô ÓÌÁÊÓÙ, ÏÎÁ ÚÁÐÉÓÙ×ÁÅÔ ÉÈ ÒÁÓÐÏÌÏÖÅÎÉÅ × ÓÏÏÔ×ÅÔÓÔ×ÉÉ Ó ÔÅÍ, ËÁË Ó ÎÉÍÉ ÂÕÄÅÔ ÒÁÂÏÔÁÔØ BIOS. åÓÌÉ ÜÔÏ ÄÅÌÁÅÔÓÑ ÎÅÐÒÁ×ÉÌØÎÏ, ×Ù ÎÅ ÓÍÏÖÅÔÅ ×ÙÐÏÌÎÉÔØ ÚÁÇÒÕÚËÕ ÓÉÓÔÅÍÙ. òÅÖÉÍ ``dangerously dedicated'' ÐÙÔÁÅÔÓÑ ÏÂÏÊÔÉ ÜÔÏ, ÕÐÒÏÝÁÑ ÒÅÛÅÎÉÅ ÄÁÎÎÏÊ ÐÒÏÂÌÅÍÙ. éÎÏÇÄÁ ÏÎ ÄÅÌÁÅÔ ÜÔÏ ÐÒÁ×ÉÌØÎÏ. ïÄÎÁËÏ ÜÔÏ ÚÎÁÞÉÔ, ÞÔÏ ÅÇÏ ÎÕÖÎÏ ÉÓÐÏÌØÚÏ×ÁÔØ ÔÏÌØËÏ ËÁË ÐÏÓÌÅÄÎÀÀ ÁÌØÔÅÒÎÁÔÉ×Õ - ÅÓÔØ ÓÐÏÓÏÂÙ ÐÏÌÕÞÛÅ, ÒÅÛÁÀÝÉÅ ÐÒÏÂÌÅÍÕ × 99 ÓÌÕÞÁÑÈ ÉÚ 100. éÔÁË, ËÁË ÉÚÂÅÖÁÔØ ÉÓÐÏÌØÚÏ×ÁÎÉÑ ÒÅÖÉÍÁ ``DD'' ×Ï ×ÒÅÍÑ ÕÓÔÁÎÏ×ËÉ? óÎÁÞÁÌÁ ÚÁÐÉÛÉÔÅ ÐÁÒÁÍÅÔÒÙ ÄÉÓËÁ, ËÏÔÏÒÙÅ ÓÏÏÂÝÁÅÔ BIOS. ÷Ù ÍÏÖÅÔÅ ×ÙÑÓÎÉÔØ ÜÔÏ, ÚÁÓÔÁ×É× ÑÄÒÏ ×Ù×ÅÓÔÉ ÜÔÉ ÐÁÒÁÍÅÔÒÙ ÐÒÉ ÚÁÇÒÕÚËÅ, ÕËÁÚÁ× ``-v'' × ÐÒÉÇÌÁÛÅÎÉÉ ``boot:'', ÉÌÉ ÉÓÐÏÌØÚÕÑ ``boot -v'' × ÚÁÇÒÕÚÞÉËÅ. ðÅÒÅÄ ÔÅÍ, ËÁË ÚÁÐÕÓÔÉÔÓÑ ÐÒÏÇÒÁÍÍÁ ÕÓÔÁÎÏ×ËÉ, ÑÄÒÏ ×Ù×ÅÄÅÔ ÐÁÒÁÍÅÔÒÙ, ÉÓÐÏÌØÚÕÅÍÙÅ BIOS. îÅ ×ÏÌÎÕÊÔÅÓØ - ÐÏÄÏÖÄÉÔÅ ÚÁÐÕÓËÁ ÐÒÏÇÒÁÍÍÙ ÕÓÔÁÎÏ×ËÉ, Á ÚÁÔÅÍ ×ÏÓÐÏÌØÚÕÊÔÅÓØ ÓËÒÏÌÌÉÎÇÏÍ, ÞÔÏÂÙ ÐÏÓÍÏÔÒÅÔØ ÚÎÁÞÅÎÉÑ ÜÔÉÈ ÐÁÒÁÍÅÔÒÏ×. ëÁË ÐÒÁ×ÉÌÏ, BIOS ÎÕÍÅÒÕÅÔ ÄÉÓËÉ × ÔÏÍ ÖÅ ÐÏÒÑÄËÅ, ÞÔÏ É FreeBSD, ÓÎÁÞÁÌÁ IDE, ÚÁÔÅÍ SCSI. ëÏÇÄÁ ×Ù ÒÁÚÂÉ×ÁÅÔÅ ÄÉÓË ÎÁ ÓÌÁÊÓÙ, ÐÒÏ×ÅÒØÔÅ, ÞÔÏ ÐÁÒÁÍÅÔÒÙ ÄÉÓËÁ, ×Ù×ÏÄÉÍÙÅ × ÏËÎÅ ÐÒÏÇÒÁÍÍÙ FDISK, ËÏÒÒÅËÔÎÙ (ÔÏ ÅÓÔØ ÏÎÉ ÓÏÏÔ×ÅÔÓÔ×ÕÀÔ ÐÁÒÁÍÅÔÒÁÍ BIOS); ÅÓÌÉ ÜÔÏ ÎÅ ÔÁË, ×ÏÓÐÏÌØÚÕÊÔÅÓØ ËÏÍÁÎÄÏÊ ``g'', ÞÔÏÂÙ ÉÈ ÉÓÐÒÁ×ÉÔØ. ÷Ù ÍÏÖÅÔÅ ÜÔÏ ÓÄÅÌÁÔØ, ÅÓÌÉ ÎÁ ÄÉÓËÅ ÎÅÔ ÁÂÓÏÌÀÔÎÏ ÎÉÞÅÇÏ ÉÌÉ ÅÓÌÉ ÜÔÏÔ ÄÉÓË ÂÙÌ ÐÅÒÅÎÅÓ£Î Ó ÄÒÕÇÏÊ ÓÉÓÔÅÍÙ. úÁÍÅÔØÔÅ, ÞÔÏ ÜÔÏ ËÁÓÁÅÔÓÑ ÔÏÌØËÏ ÚÁÇÒÕÚÏÞÎÏÇÏ ÄÉÓËÁ; FreeBSD ÐÒÅËÒÁÓÎÏ ÒÁÚÂÅÒ£ÔÓÑ Ó ÏÓÔÁÌØÎÙÍÉ ÄÉÓËÁÍÉ, ËÏÔÏÒÙÅ ÍÏÇÕÔ Õ ×ÁÓ ÂÙÔØ. ëÁË ÔÏÌØËÏ ×Ù ÄÏÂÉÌÉÓØ ÓÏÏÔ×ÅÔÓÔ×ÉÑ ÐÁÒÁÍÅÔÒÏ× ÄÉÓËÁ × BIOS É FreeBSD, ÓËÏÒÅÅ ×ÓÅÇÏ, ÐÒÏÂÌÅÍ Õ ×ÁÓ ÂÏÌØÛÅ ÎÅ ÂÕÄÅÔ, É ÉÓÐÏÌØÚÏ×ÁÔØ ÒÅÖÉÍ ``DD'' ÎÅ ÐÏÔÒÅÂÕÅÔÓÑ. åÓÌÉ, ÏÄÎÁËÏ, ÓÔÒÁÛÎÏÊ ÓÏÏÂÝÅÎÉÅ ``read error'' ÐÒÏÄÏÌÖÁÅÔ ÐÏÑ×ÌÑÔØÓÑ ÐÒÉ ÚÁÇÒÕÚËÅ, ÓÁÍÏÅ ×ÒÅÍÑ ÐÅÒÅËÒÅÓÔÉÔØÓÑ É ÐÏÐÒÏÂÏ×ÁÔØ ÜÔÏÔ ÒÅÖÉÍ - ×ÁÍ ÂÏÌØÛÅ ÎÅÞÅÇÏ ÔÅÒÑÔØ. þÔÏÂÙ ×ÅÒÎÕÔØ ÄÉÓË ÉÚ ÒÅÖÉÍÁ ``dangerously dedicated'' Ë ÎÏÒÍÁÌØÎÏÍÕ ÒÅÖÉÍÕ ÉÓÐÏÌØÚÏ×ÁÎÉÑ, ÅÓÔØ Ä×Á ÓÐÏÓÏÂÁ. ðÅÒ×ÙÊ ÚÁËÌÀÞÁÅÔÓÑ × ÔÏÍ, ÞÔÏ ×Ù ÚÁÐÉÓÙ×ÁÅÔÅ ÄÏÓÔÁÔÏÞÎÏÅ ËÏÌÉÞÅÓÔ×Ï ÂÁÊÔÏ× NULL ÐÏ×ÅÒÈ MBR, ÞÔÏÂÙ ÌÀÂÏÊ ÉÎÓÔÁÌÌÑÔÏÒ ÄÕÍÁÌ, ÞÔÏ ÜÔÏ ÞÉÓÔÙÊ ÄÉÓË. üÔÏ ÍÏÖÎÏ ÓÄÅÌÁÔØ, ÎÁÐÒÉÍÅÒ, ËÏÍÁÎÄÏÊ dd if=/dev/zero of=/dev/rsd0 count=15 äÒÕÇÏÊ ÓÐÏÓÏ - ÎÅÄÏËÕÍÅÎÔÉÒÏ×ÁÎÎÏÊ ËÏÍÁÎÄÏÊ DOS fdisk /mbr ÐÒÏÉÎÓÔÁÌÌÉÒÏ×ÁÔØ ÎÏ×ÕÀ MBR, ÕÄÁÌÉ× ÚÁÇÒÕÚÞÉË BSD. ëÁË ÄÏÂÁ×ÉÔØ ÄÏÐÏÌÎÉÔÅÌØÎÕÀ ×ÉÒÔÕÁÌØÎÕÀ ÐÁÍÑÔØ? îÁÉÌÕÞÛÉÊ ÓÐÏÓÏ - Õ×ÅÌÉÞÉÔØ ÒÁÚÍÅÒ ÒÁÚÄÅÌÁ ÐÏÄËÁÞËÉ, ÍÏÖÅÔ ÂÙÔØ, ÄÏÂÁ×É× ÄÌÑ ÜÔÏÇÏ ÅÝ£ ÏÄÉÎ ÄÉÓË. ïÂÝÉÍ ÐÒÁ×ÉÌÏÍ Ñ×ÌÑÅÔÓÑ ×ÙÂÏÒ ÒÁÚÍÅÒÁ ×ÉÒÔÕÁÌØÎÏÊ ÐÁÍÑÔÉ, × Ä×Á ÒÁÚÁ ÐÒÅ×ÙÛÁÀÝÉÊ ÏÂß£Í ÆÉÚÉÞÅÓËÏÊ ÐÁÍÑÔÉ. ïÄÎÁËÏ, ÅÓÌÉ Õ ×ÁÓ ÏÞÅÎØ ÍÁÌÏ ÆÉÚÉÞÅÓËÏÊ ÐÁÍÑÔÉ, ÜÔÏÔ ÏÂß£Í ÇÏÒÁÚÄÏ ÂÏÌØÛÅ. èÏÒÏÛÅÊ ÐÒÁËÔÉËÏÊ Ñ×ÌÑÅÔÓÑ ÚÁÄÁÎÉÅ ÄÏÓÔÁÔÏÞÎÏÇÏ ÏÂߣÍÁ ×ÉÒÔÕÁÌØÎÏÊ ÐÁÍÑÔÉ × ÏÖÉÄÁÎÉÉ ÄÏÂÁ×ÌÅÎÉÑ ÆÉÚÉÞÅÓËÏÊ ÐÁÍÑÔÉ, ÞÔÏÂÙ ÐÏÔÏÍ ÎÅ ÉÓÐÙÔÙ×ÁÔØ ÔÒÕÄÎÏÓÔÅÊ. ðÅÒÅÎÏÓ ×ÉÒÔÕÁÌØÎÏÊ ÐÁÍÑÔÉ ÎÁ ÏÔÄÅÌØÎÙÊ ÄÉÓË Õ×ÅÌÉÞÉ×ÁÅÔ ÂÙÓÔÒÏÄÅÊÓÔ×ÉÅ ÓÉÓÔÅÍÙ ÐÏ ÓÒÁ×ÎÅÎÉÀ Ó ÄÏÂÁ×ÌÅÎÉÅÍ ×ÉÒÔÕÁÌØÎÏÊ ÐÁÍÑÔÉ ÎÁ ÔÏÍ ÖÅ ÄÉÓËÅ. îÁÐÒÉÍÅÒ, ËÏÍÐÉÌÑÃÉÑ ÉÓÈÏÄÎÙÈ ÔÅËÓÔÏ× ÐÒÏÉÓÈÏÄÉÔ ÂÙÓÔÒÅÅ, ÅÓÌÉ ÏÎÉ ÎÁÈÏÄÑÔÓÑ ÎÅ ÎÁ ÔÏÍ ÖÅ ÄÉÓËÅ, ÞÔÏ É ÒÁÚÄÅÌ ÐÏÄËÁÞËÉ. ïÓÏÂÅÎÎÏ ÜÔÏ ÚÁÍÅÔÎÏ ÄÌÑ ÄÉÓËÏ× SCSI. åÓÌÉ Õ ×ÁÓ ÉÍÅÅÔÓÑ ÎÅÓËÏÌØËÏ ÄÉÓËÏ×, ÒÁÚÍÅÝÅÎÉÅ ÒÁÚÄÅÌÁ ÐÏÄËÁÞËÉ ÎÁ ËÁÖÄÏÍ ÉÚ ÎÉÈ, ÄÁÖÅ ÎÁ ÒÁÂÏÞÅÍ ÄÉÓËÅ, ÏÂÙÞÎÏ ÂÙ×ÁÅÔ ÐÏÌÅÚÎÏ. ëÁË ÐÒÁ×ÉÌÏ, ËÁÖÄÙÊ ÂÙÓÔÒÙÊ ÄÉÓË × ×ÁÛÅÊ ÓÉÓÔÅÍÅ ÄÏÌÖÅÎ ÉÍÅÔØ ÒÁÚÄÅÌ ÐÏÄËÁÞËÉ. FreeBSD ÐÏÄÄÅÒÖÉ×ÁÅÔ ÐÏ ÕÍÏÌÞÁÎÉÀ ÄÏ 4 ÕÓÔÒÏÊÓÔ× ÐÏÄËÁÞËÉ Ó ÞÅÒÅÄÏ×ÁÎÉÅÍ. ðÒÉ ÚÁÄÁÎÉÉ ÎÅÓËÏÌØËÉÈ ÒÁÚÄÅÌÏ× ÐÏÄËÁÞËÉ ×ÁÍ ÚÁÈÏÞÅÔÓÑ ÓÄÅÌÁÔØ ÉÈ ÏÄÉÎÁËÏ×ÏÇÏ ÒÁÚÍÅÒÁ, ÏÄÎÁËÏ ÉÎÏÇÄÁ ÐÅÒ×ÉÞÎÙÊ ÒÁÚÄÅÌ ÐÏÄËÁÞËÉ ÄÅÌÁÅÔÓÑ ÎÅÓËÏÌØËÏ ÂÏÌØÛÅ ÄÌÑ ÔÏÇÏ, ÞÔÏÂÙ ÏÎ ÍÏÇ ÐÏÍÅÓÔÉÔØ Á×ÁÒÉÊÎÙÊ ÏÂÒÁÚ ÑÄÒÁ. òÁÚÍÅÒ ×ÁÛÅÇÏ ÐÅÒ×ÉÞÎÏÇÏ ÒÁÚÄÅÌÁ ÐÏÄËÁÞËÉ ÄÏÌÖÅÎ ÐÏ ËÒÁÊÎÅÊ ÍÅÒÅ ÂÙÔØ ÒÁ×ÎÙÍ ÏÂߣÍÕ ÆÉÚÉÞÅÓËÏÊ ÐÁÍÑÔÉ, ÞÔÏÂÙ ÐÏÍÅÓÔÉÔØ Á×ÁÒÉÊÎÙÊ ÏÂÒÁÚ ÑÄÒÁ. äÉÓËÉ IDE ÎÅ ÐÏÚ×ÏÌÑÀÔ ÒÅÁÌÉÚÏ×ÁÔØ ÏÄÎÏ×ÒÅÍÅÎÎÙÊ ÄÏÓÔÕÐ Ë ÏÂÏÉÍ ÄÉÓËÁÍ ÐÏ ÏÄÎÏÍÕ ËÁÎÁÌÕ (FreeBSD ÎÅ ÐÏÄÄÅÒÖÉ×ÁÅÔ ÒÅÖÉÍ 4, ÔÁË ÞÔÏ ×ÅÓØ ××ÏÄ/×Ù×ÏÄ ÄÌÑ ÄÉÓËÏ× IDE ``ÐÒÏÇÒÁÍÍÉÒÕÅÔÓÑ''). ïÄÎÁËÏ Ñ ×Ó£ ÒÁ×ÎÏ ÓÏ×ÅÔÕÀ ÐÅÒÅÎÅÓÔÉ ÒÁÚÄÅÌ ÐÏÄËÁÞËÉ ÎÁ ÏÔÄÅÌØÎÙÊ ÄÉÓË. äÉÓËÉ ÄÏÓÔÁÔÏÞÎÏ ÄÅÛ£×Ù, É ÜËÏÎÏÍÉÔØ ÔÕÔ ÎÅ ÎÁ ÞÅÍ. éÓÐÏÌØÚÏ×ÁÎÉÅ NFS ÄÌÑ ÒÁÚÍÅÝÅÎÉÑ ÒÁÚÄÅÌÁ ÐÏÄËÁÞËÉ ÒÅËÏÍÅÎÄÕÅÔÓÑ ÔÏÌØËÏ × ÓÌÕÞÁÅ, ÅÓÌÉ Õ ×ÁÓ ÎÅÔ ÌÏËÁÌØÎÏÇÏ ÄÉÓËÁ. ðÏÄËÁÞËÁ ÐÏ×ÅÒÈ NFS ÍÅÄÌÅÎÎÁ É ÎÅÜÆÆÅËÔÉ×ÎÁ × ÒÅÌÉÚÁÈ FreeBSD ÄÏ 4.x, ÈÏÔÑ ÄÏÓÔÁÔÏÞÎÏ ÂÙÓÔÒÁ × ÒÅÌÉÚÁÈ 4.0 É ×ÙÛÅ. ëÒÏÍÅ ÔÏÇÏ, Å£ ÓËÏÒÏÓÔØ ÂÕÄÅÔ ÏÇÒÁÎÉÞÅÎÁ ÒÅÁÌØÎÏÊ ÐÒÏÐÕÓËÎÏÊ ÓÐÏÓÏÂÎÏÓÔØÀ ÓÅÔÉ É ÜÔÏ ÄÁÓÔ ÄÏÐÏÌÎÉÔÅÌØÎÕÀ ÎÁÇÒÕÚËÕ ÎÁ NFS-ÓÅÒ×ÅÒ. ÷ÏÔ ÐÒÉÍÅÒ vn-ÆÁÊÌÁ ÐÏÄËÁÞËÉ ÒÁÚÍÅÒÏÍ 64í (/usr/swap0, ÈÏÔÑ, ËÏÎÅÞÎÏ, ×Ù ÍÏÖÅÔÅ ×ÙÂÒÁÔØ ÌÀÂÏÅ ÄÒÕÇÏÅ ÉÍÑ. õÄÏÓÔÏ×ÅÒØÔÅÓØ, ÞÔÏ ÑÄÒÏ ÏÔËÏÍÐÉÌÉÒÏ×ÁÎÏ ÓÏ ÓÔÒÏËÏÊ pseudo-device vn 1 #Vnode driver (turns a file into a device) × ËÏÎÆÉÇÕÒÁÃÉÏÎÎÏÍ ÆÁÊÌÅ. ñÄÒÏ GENERIC Å£ ÓÏÄÅÒÖÉÔ ÓÏÚÄÁÊÔÅ vn-ÕÓÔÒÏÊÓÔ×Ï cd /dev sh ./MAKEDEV vn0 ÓÏÚÄÁÊÔÅ ÆÁÊÌ ÐÏÄËÁÞËÉ (/usr/swap0) dd if=/dev/zero of=/usr/swap0 bs=1024k count=64 õÓÔÁÎÏ×ÉÔÅ ËÏÒÒÅËÔÎÙÅ ÐÒÁ×Á ÎÁ ÆÁÊÌ (/usr/swap0) chmod 0600 /usr/swap0 ÷ËÌÀÞÉÔÅ ÉÓÐÏÌØÚÏ×ÁÎÉÅ ÆÁÊÌÁ ÐÏÄËÁÞËÉ × /etc/rc.conf swapfile="/usr/swap0" # Set to name of swapfile if aux swapfile desired. ÐÅÒÅÚÁÇÒÕÚÉÔÅ ÍÁÛÉÎÕ þÔÏÂÙ ×ËÌÀÞÉÔØ ÉÓÐÏÌØÚÏ×ÁÎÉÅ ÆÁÊÌÁ ÐÏÄËÁÞËÉ ÎÅÍÅÄÌÅÎÎÏ, ÎÁÂÅÒÉÔÅ vnconfig -ce /dev/vn0c /usr/swap0 swap õ ÍÅÎÑ ÐÒÏÂÌÅÍÙ Ó ÕÓÔÁÎÏ×ËÏÊ ÐÒÉÎÔÅÒÁ. ïÂÒÁÔÉÔÅÓØ Ë ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÅÍÕ ÒÁÚÄÅÌÕ òÕËÏ×ÏÄÓÔ×Á, ÐÏÓ×ÑÝ£ÎÎÏÍÕ ÐÅÞÁÔÉ. ÷ Î£Í ÏÐÉÓÁÎÙ ÒÅÛÅÎÉÑ ÂÏÌØÛÉÎÓÔ×Á ×ÁÛÉÈ ÐÒÏÂÌÅÍ. òÁÓËÌÁÄËÁ ËÌÁ×ÉÁÔÕÒÙ ÎÅ×ÅÒÎÁ. ðÒÏÇÒÁÍÍÁ kbdcontrol ÉÍÅÅÔ ÐÁÒÁÍÅÔÒ, ÚÁÄÁÀÝÉÊ ÆÁÊÌ ÒÁÓËÌÁÄËÉ. æÁÊÌÙ ÒÁÓËÌÁÄÏË ÎÁÈÏÄÑÔÓÑ × ËÁÔÁÌÏÇÅ /usr/share/syscons/keymaps. ÷ÙÂÅÒÉÔÅ ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÊ ×ÁÛÅÊ ÓÉÓÔÅÍÅ É ÚÁÇÒÕÚÉÔÅ ÅÇÏ. kbdcontrol -l uk.iso ðÒÏÇÒÁÍÍÁ kbdcontrol ÐÒÅÄÐÏÌÁÇÁÅÔ ÉÓÐÏÌØÚÏ×ÁÎÉÅ ËÁÔÁÌÏÇÁ /usr/share/syscons/keymaps É ÒÁÓÛÉÒÅÎÉÑ .kbd. üÔÏ ÍÏÖÅÔ ÂÙÔØ ÎÁÓÔÒÏÅÎÏ × ÆÁÊÌÅ /etc/sysconfig (ÉÌÉ rc.conf). ïÂÒÁÔÉÔÅÓØ Ë ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÍ ËÏÍÍÅÎÔÁÒÉÑÍ × ÜÔÏÍ ÆÁÊÌÅ. ÷ ÓÉÓÔÅÍÁÈ 2.0.5R É ×ÙÛÅ, ×Ó£, ÏÔÎÏÓÑÝÅÅÓÑ Ë ÚÎÁËÏÇÅÎÅÒÁÔÏÒÕ, ÒÁÓËÌÁÄËÅ ËÌÁ×ÉÁÔÕÒÙ, ÎÁÈÏÄÉÔÓÑ × ËÁÔÁÌÏÇÅ /usr/share/examples/syscons. îÁ ÄÁÎÎÙÊ ÍÏÍÅÎÔ ÐÏÄÄÅÒÖÉ×ÁÀÔÓÑ ÓÌÅÄÕÀÝÉÅ ÒÁÓËÌÁÄËÉ: Belgian ISO-8859-1 Brazilian 275 keyboard Codepage 850 Brazilian 275 keyboard ISO-8859-1 Danish Codepage 865 Danish ISO-8859-1 French ISO-8859-1 German Codepage 850 German ISO-8859-1 Italian ISO-8859-1 Japanese 106 Japanese 106x Latin American Norwegian ISO-8859-1 Polish ISO-8859-2 (programmer's) Russian Codepage 866 (alternative) Russian koi8-r (shift) Russian koi8-r Spanish ISO-8859-1 Swedish Codepage 850 Swedish ISO-8859-1 Swiss-German ISO-8859-1 United Kingdom Codepage 850 United Kingdom ISO-8859-1 United States of America ISO-8859-1 United States of America dvorak United States of America dvorakx îÅ ÐÏÌÕÞÁÅÔÓÑ ÚÁÓÔÁ×ÉÔØ ÒÁÂÏÔÁÔØ ÄÉÓËÏ×ÙÅ Ë×ÏÔÙ. îÅ ×ËÌÀÞÁÊÔÅ Ë×ÏÔÉÒÏ×ÁÎÉÅ ÎÁ '/', ðÏÍÅÝÁÊÔÅ ÆÁÊÌ Ó Ë×ÏÔÁÍÉ × ÔÕ ÆÁÊÌÏ×ÕÀ ÓÉÓÔÅÍÕ, ËÏÔÏÒÕÀ ÏÎ ÏÂÓÌÕÖÉ×ÁÅÔ, ÔÏ ÅÓÔØ: æó æáêì ë÷ïô /usr /usr/admin/quotas /home /home/admin/quotas ... þÔÏ ÎÅ ÔÁË Ó ÕÓÔÒÏÊÓÔ×ÏÍ ccd? óÉÍÐÔÏÍ ×ÙÇÌÑÄÉÔ ÔÁË: # ccdconfig -C ccdconfig: ioctl (CCDIOCSET): /dev/ccd0c: Inappropriate file type or format # üÔÏ ÓÏÏÂÝÅÎÉÅ ÏÂÙÞÎÏ ×ÙÄÁ£ÔÓÑ, ËÏÇÄÁ ×Ù ÐÙÔÁÅÔÅÓØ ÏÂßÅÄÉÎÉÔØ ÒÁÚÄÅÌÙ 'c', ÐÏ ÕÍÏÌÞÁÎÉÀ ÉÍÅÀÝÉÅ ÔÉÐ 'unused'. äÒÁÊ×ÅÒ ccd ÔÒÅÂÕÅÔ, ÞÔÏÂÙ ÉÓÐÏÌØÚÕÅÍÙÅ ÒÁÚÄÅÌÙ ÉÍÅÌÉ ÔÉÐ FS_BSDFFS. ïÔÒÅÄÁËÔÉÒÕÊÔÅ ÍÅÔËÉ ÔÅÈ ÄÉÓËÏ×, ËÏÔÏÒÙÅ ×Ù ÈÏÔÉÔÅ ÉÓÐÏÌØÚÏ×ÁÔØ, ÓÍÅÎÉ× ÔÉÐÙ ÒÁÚÄÅÌÏ× ÎÁ '4.2BSD'. ðÏÞÅÍÕ ÎÅ×ÏÚÍÏÖÎÏ ÏÔÒÅÄÁËÔÉÒÏ×ÁÔØ ÍÅÔËÕ ÄÉÓËÁ ccd? óÉÍÐÔÏÍ ×ÙÇÌÑÄÉÔ ÔÁË: # disklabel ccd0 (ÚÄÅÓØ ×Ù×ÏÄÉÔÓÑ ÉÎÆÏÒÍÁÃÉÑ Ï ÄÉÓËÅ, ÐÒÏÂÕÅÍ ÏÔÒÅÄÁËÔÉÒÏ×ÁÔØ ÍÅÔËÕ) # disklabel -e ccd0 (ÒÅÄÁËÔÉÒÏ×ÁÎÉÅ, ÓÏÈÒÁÎÅÎÉÅ, ×ÙÈÏÄ) disklabel: ioctl DIOCWDINFO: No disk label on disk; use "disklabel -r" to install initial label # üÔÏ ÐÒÏÉÓÈÏÄÉÔ ÉÚ-ÚÁ ÔÏÇÏ, ÞÔÏ ÍÅÔËÁ ÄÉÓËÁ, ×ÏÚ×ÒÁÝÁÅÍÁÑ ccd, ÎÁ ÓÁÍÏÍ ÄÅÌÅ 'ÎÅÎÁÓÔÏÑÝÁÑ', ÎÅ ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÁÑ ÒÅÁÌØÎÏ ÒÁÓÐÏÌÁÇÁÀÝÅÊÓÑ ÎÁ ÄÉÓËÅ. ÷Ù ÍÏÖÅÔÅ ÒÅÛÉÔØ ÜÔÕ ÐÒÏÂÌÅÍÕ, Ñ×ÎÏ ÚÁÐÉÓÁ× ÜÔÕ ÍÅÔËÕ ÏÂÒÁÔÎÏ ÓÌÅÄÕÀÝÉÍ ÏÂÒÁÚÏÍ: # disklabel ccd0 > /tmp/disklabel.tmp # disklabel -Rr ccd0 /tmp/disklabel.tmp # disklabel -e ccd0 (ÔÅÐÅÒØ ÜÔÏ ÂÕÄÅÔ ÒÁÂÏÔÁÔØ) ðÏÄÄÅÒÖÉ×ÁÅÔ ÌÉ FreeBSD ×ÙÚÏ×Ù IPC ÉÚ System V? äÁ, FreeBSD ÐÏÄÄÅÒÖÉ×ÁÅÔ IPC ÉÚ System V, Á ÉÍÅÎÎÏ ÓÏ×ÍÅÓÔÎÏ ÉÓÐÏÌØÚÕÅÍÕÀ ÐÁÍÑÔØ, ÓÏÏÂÝÅÎÉÑ É ÓÅÍÁÆÏÒÙ. þÔÏÂÙ ÏÎÉ ÒÁÂÏÔÁÌÉ, ×ÁÍ ÎÕÖÎÏ ÄÏÂÁ×ÉÔØ ÓÌÅÄÕÀÝÉÅ ÓÔÒÏËÉ × ÆÁÊÌ ËÏÎÆÉÇÕÒÁÃÉÉ ÑÄÒÁ. options SYSVSHM options "SHMMAXPGS=64" # 256Kb of sharable memory options SYSVSEM # enable for semaphores options SYSVMSG # enable for messaging ðÅÒÅËÏÍÐÉÌÉÒÕÊÔÅ É ÐÒÏÉÎÓÔÁÌÌÉÒÕÊÔÅ ÑÄÒÏ. úáíåþáîéå: ÷ÁÍ ÍÏÖÅÔ ÐÏÔÒÅÂÏ×ÁÔØÓÑ Õ×ÅÌÉÞÉÔØ ÚÎÁÞÅÎÉÅ ËÏÎÓÔÁÎÔÙ SHMMAXGS ÎÁ ÞÔÏ-ÔÏ ÂÏÌØÛÅÅ, ÔÉÐÁ 4096 (16í!), ÅÓÌÉ ×Ù ÓÏÂÉÒÁÅÔÅÓØ ÉÐÏÌØÚÏ×ÁÔØ GIMP. 256ë ÄÏÓÔÁÔÏÞÎÏ ÄÌÑ ÒÁÂÏÔÙ X11R6. ëÁË ÎÁÓÔÒÏÉÔØ sendmail ÄÌÑ ÄÏÓÔÁ×ËÉ ÐÏÞÔÙ ÐÏ UUCP? ëÏÎÆÉÇÕÒÁÃÉÑ sendmail, ÐÏÓÔÁ×ÌÑÅÍÁÑ Ó FreeBSD, ÐÒÅÄÎÁÚÎÁÞÅÎÁ ÄÌÑ ÓÁÊÔÏ×, ËÏÔÏÒÙÅ ÉÍÅÀÔ ÎÅÐÏÓÒÅÄÓÔ×ÅÎÎÙÊ ×ÙÈÏÄ × Internet. óÁÊÔÙ, ËÏÔÏÒÙÍ ÔÒÅÂÕÅÔÓÑ ÏÂÍÅÎÉ×ÁÔØÓÑ ÐÏÞÔÏÊ ÐÏ UUCP, ÄÏÌÖÎÙ ÉÓÐÏÌØÚÏ×ÁÔØ ÄÒÕÇÏÊ ËÏÎÆÉÇÕÒÁÃÉÏÎÎÙÊ ÆÁÊÌ. ëÏ×ÙÒÑÎÉÅ × ÆÁÊÌÅ /etc/sendmail.cf ×ÒÕÞÎÕÀ - ÜÔÏ ÚÁÎÑÔÉÅ ÄÌÑ ÐÕÒÉÓÔÏ× (É ÍÁÚÏÈÉÓÔÏ×). ÷ÏÓØÍÁÑ ×ÅÒÓÉÑ sendmail ÐÏÓÔÁ×ÌÑÅÔÓÑ Ó ÎÏ×ÏÊ ÓÉÓÔÅÍÏÊ ÇÅÎÅÒÁÃÉÉ ËÏÎÆÉÇÕÒÁÃÉÏÎÎÙÈ ÆÁÊÌÏ× Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ ÐÒÅÐÒÏÃÅÓÓÏÒÁ m4, × ËÏÔÏÒÏÊ ÒÕÞÎÁÑ ËÏÎÆÉÇÕÒÁÃÉÑ ÐÅÒÅÎÅÓÅÎÁ ÎÁ ÂÏÌÅÅ ×ÙÓÏËÉÊ ÕÒÏ×ÅÎØ ÁÂÓÔÒÁËÃÉÉ. éÓÐÏÌØÚÕÊÔÅ ËÏÎÆÉÇÕÒÁÃÉÏÎÎÙÅ ÆÁÊÌÙ × ËÁÔÁÌÏÇÅ /usr/src/usr.sbin/sendmail/cf åÓÌÉ ×Ù ÎÅ ÓÏÂÉÒÁÅÔÅÓØ ÉÎÓÔÁÌÌÉÒÏ×ÁÔØ ×ÓÅ ÉÓÈÏÄÎÙÅ ÔÅËÓÔÙ ÓÉÓÔÅÍÙ, ÓÐÅÃÉÁÌØÎÏ ÄÌÑ ×ÁÓ ËÏÎÆÉÇÕÒÁÃÉÏÎÎÙÅ ÆÁÊÌÙ sendmail ×ÙÄÅÌÅÎÙ × ÏÔÄÅÌØÎÙÊ ÄÉÓÔÒÉÂÕÔÉ×. åÓÌÉ ×Ù ÉÍÅÅÔÅ ÓÍÏÎÔÉÒÏ×ÁÎÎÙÊ ËÏÍÐÁËÔ-ÄÉÓË, ×ÙÐÏÌÎÉÔÅ ÔÁËÕÀ ËÏÍÁÎÄÕ: cd /usr/src tar -xvzf /cdrom/dists/src/ssmailcf.aa îÅ ×ÏÌÎÕÊÔÅÓØ, ÜÔÉ ÆÁÊÌÙ ÚÁÎÉÍÁÀÔ ×ÓÅÇÏ ÌÉÛØ ÎÅÓËÏÌØËÏ ÓÏÔÅÎ ËÉÌÏÂÁÊÔ. æÁÊÌ README × ËÁÔÁÌÏÇÅ cf ÍÏÖÅÔ ÂÙÔØ ÉÓÐÏÌØÚÏ×ÁÎ ËÁË ÎÁÞÁÌØÎÏÅ ××ÅÄÅÎÉÅ × ËÏÎÆÉÇÕÒÁÃÉÀ m4. äÌÑ ÄÏÓÔÁ×ËÉ ÐÏÞÔÙ ÐÏ UUCP ÌÕÞÛÅ ×ÓÅÇÏ ÉÓÐÏÌØÚÏ×ÁÔØ mailertable. ÷ ÜÔÏÍ ÆÁÊÌÅ ÓÏÄÅÒÖÉÔÓÑ ÂÁÚÁ ÄÁÎÎÙÈ, ÉÓÐÏÌØÚÕÅÍÁÑ sendmail ÐÒÉ ÍÁÒÛÒÕÔÉÚÁÃÉÉ ÐÏÞÔÙ. ðÅÒ×ÙÍ ÄÅÌÏÍ ÓÏÚÄÁÊÔÅ ×ÁÛ ÆÁÊÌ .mc. äÌÑ ÔÁËÉÈ ÆÁÊÌÏ× ÐÒÅÄÎÁÚÎÁÞÅÎ ËÁÔÁÌÏÇ /usr/src/usr.sbin/sendmail/cf/cf. ðÏÓÍÏÔÒÉÔÅ × Î£Í, ÔÁÍ ÅÓÔØ ÕÖÅ ÎÅÓËÏÌØËÏ ÐÒÉÍÅÒÏ×. ðÏÌÏÖÉÍ, ÞÔÏ ×Ù ÎÁÚ×ÁÌÉ ×ÁÛ ÆÁÊÌ foo.mc, ×Ó£, ÞÔÏ ×ÁÍ ÎÕÖÎÏ ÄÌÑ ÐÅÒÏÂÒÁÚÏ×ÁÎÉÑ ÅÇÏ × ÎÏÒÍÁÌØÎÙÊ sendmail.cf, ÜÔÏ: cd /usr/src/usr.sbin/sendmail/cf/cf make foo.cf cp foo.cf /etc/sendmail.cf ôÉÐÉÞÎÙÊ ÆÁÊÌ .mc ×ÙÇÌÑÄÉÔ ÐÒÉÍÅÒÎÏ ÔÁË: include(`../m4/cf.m4') VERSIONID(`Your version number') OSTYPE(bsd4.4) FEATURE(nodns) FEATURE(nocanonify) FEATURE(mailertable) define(`UUCP_RELAY', your.uucp.relay) define(`UUCP_MAX_SIZE', 200000) MAILER(local) MAILER(smtp) MAILER(uucp) Cw your.alias.host.name Cw youruucpnodename.UUCP ðÁÒÁÍÅÔÒÙ nodns É nocanonify ÐÏÄÁ×ÌÑÀÔ ÉÓÐÏÌØÚÏ×ÁÎÉÅ DNS × ÐÒÏÃÅÓÓÅ ÄÏÓÔÁ×ËÉ. óÔÒÏËÁ UUCP_RELAY ÍÏÖÅÔ ÐÏÎÁÄÏÂÉÔØÓÑ ÔÏÌØËÏ × ÏÞÅÎØ ÓÔÒÁÎÎÙÈ ÓÌÕÞÁÑÈ, ÎÅ ÓÐÒÁÛÉ×ÁÊÔÅ Ï ÎÉÈ. ðÒÏÓÔÏ ÐÏÍÅÓÔÉÔÅ ÚÄÅÓØ ÉÍÑ ÈÏÓÔÁ Internet, ËÏÔÏÒÙÊ ÍÏÖÅÔ ÏÂÒÁÂÁÔÙ×ÁÔØ ÁÄÒÅÓÁ Ó ÐÓÅ×ÄÏ-ÄÏÍÅÎÁÍÉ .UUCP; × ÂÏÌØÛÉÎÓÔ×Å ÓÌÕÞÁÅ× ÄÏÓÔÁÔÏÞÎÏ ÐÏÓÔÁ×ÉÔØ ÓÀÄÁ ÉÍÑ ÐÏÞÔÏ×ÏÇÏ ÛÌÀÚÁ ×ÁÛÅÇÏ ÐÒÏ×ÁÊÄÅÒÁ. ëÁË ÔÏÌØËÏ ×Ù ÓÇÅÎÅÒÉÒÕÅÔÅ ËÏÎÆÉÇÕÒÁÃÉÏÎÎÙÊ ÆÁÊÌ, ×ÁÍ ÐÏÎÁÄÏÂÉÔÓÑ /etc/mailertable. ôÉÐÉÞÎÙÊ ÐÒÉÍÅÒ ÔÁËÏÇÏ ÆÁÊÌÁ: # # makemap hash /etc/mailertable.db < /etc/mailertable # horus.interface-business.de uucp-dom:horus .interface-business.de uucp-dom:if-bus interface-business.de uucp-dom:if-bus .heep.sax.de smtp8:%1 horus.UUCP uucp-dom:horus if-bus.UUCP uucp-dom:if-bus . uucp-dom:sax ëÁË ×ÉÄÉÔÅ, ÜÔÏ ÞÁÓÔØ ÒÅÁÌØÎÏ ÓÕÝÅÓÔ×ÕÀÝÅÇÏ ÆÁÊÌÁ. ðÅÒ×ÙÅ ÔÒÉ ÓÔÒÏËÉ ÏÐÉÓÙ×ÁÀÔ ÏÓÏÂÙÅ ÓÌÕÞÁÉ, ËÏÇÄÁ ÐÏÞÔÁ, ÎÁÐÒÁ×ÌÅÎÎÁÑ ÎÁ ÎÅËÏÔÏÒÙÅ ÄÏÍÅÎÙ, ÂÕÄÅÔ ÐÏÓÙÌÁÔØÓÑ ÎÅ ÐÏ ÓÔÁÎÄÁÒÔÎÏÍÕ ÍÁÒÛÒÕÔÕ, Á ÎÁ ÎÅËÏÔÏÒÕÀ ÂÌÉÚÌÅÖÁÝÕÀ UUCP-ÓÉÓÔÅÍÕ ÄÌÑ `ÓÏËÒÁÝÅÎÉÑ' ÍÁÒÛÒÕÔÁ ÄÏÓÔÁ×ËÉ. óÌÅÄÕÀÝÁÑ ÓÔÒÏËÁ ÏÐÉÓÙ×ÁÅÔ, ÞÔÏ ÐÏÞÔÁ ÎÁ ÌÏËÁÌØÎÙÊ ÄÏÍÅÎ × ÓÅÔÉ Ethernet ÍÏÖÅÔ ÂÙÔØ ÄÏÓÔÁ×ÌÅÎÁ ÐÏ SMTP. ÷ ËÏÎÃÅ ÆÁÊÌÁ ÏÐÉÓÁÎÙ ÂÌÉÚÌÅÖÁÝÉÅ ÓÉÓÔÅÍÙ UUCP × ÐÓÅ×ÄÏ-ÄÏÍÅÎÅ .UUCP, ÞÔÏ ÐÏÚ×ÏÌÉÔ ×ÙÐÏÌÎÑÔØ ÐÒÁ×ÉÌØÎÕÀ ÄÏÓÔÁ×ËÕ ÐÏÞÔÙ ÎÁ ÁÄÒÅÓÁ ``uucp-ÓÉÓÔÅÍÁ!ÐÏÌÕÞÁÔÅÌØ''. ÷ ÐÏÓÌÅÄÎÅÊ ÓÔÒÏËÅ ×ÓÅÇÄÁ ÐÒÉÓÕÔÓÔ×ÕÅÔ ÏÄÎÁ ÔÏÞËÁ, ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÁÑ ×ÓÅÍ ÏÓÔÁÌØÎÙÍ ÄÏÍÅÎÁÍ, Ó ÄÏÓÔÁ×ËÏÊ ÐÏ UUCP ÎÁ ÂÌÉÛÎÀÀ ÓÉÓÔÅÍÕ UUCP, ËÏÔÏÒÙÊ Ñ×ÌÑÅÔÓÑ ÕÎÉ×ÅÒÓÁÌØÎÙÊ ÐÏÞÔÏ×ÙÍ ÛÌÀÚÏÍ ×Ï ×ÅÓØ ÏÓÔÁÌØÎÏÊ ÍÉÒ. ÷ÓÅ ÉÍÅÎÁ ÕÚÌÏ× ÐÏÓÌÅ uucp-dom: ÄÏÌÖÎÙ ÂÙÔØ ÒÅÁÌØÎÏ ÓÕÝÅÓÔ×ÕÀÝÉÍÉ ÕÚÌÁÍÉ UUCP, ÞÔÏ ÍÏÖÎÏ ÐÒÏ×ÅÒÉÔØ ËÏÍÁÎÄÏÊ uuname. ëÁË ÎÁÐÏÍÉÎÁÎÉÅ Ï ÔÏÍ, ÞÔÏ ÜÔÏÔ ÆÁÊÌ ÄÏÌÖÅÎ ÂÙÔØ ÐÒÅÏÂÒÁÚÏ×ÁÎ × ÆÏÒÍÁÔ ÂÁÚÙ ÄÁÎÎÙÈ DBM ÐÅÒÅÄ ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ, ËÏÍÁÎÄÎÁÑ ÓÔÒÏËÁ, ×ÙÐÏÌÎÑÀÝÁÑ ÜÔÏ ÄÅÊÓÔ×ÉÅ, ÐÏÍÅÝÅÎÁ ËÁË ËÏÍÍÅÎÔÁÒÉÊ × ÎÁÞÁÌÏ ÆÁÊÌÁ. ðÒÉ ÉÚÍÅÎÅÎÉÉ mailertable ×ÓÅÇÄÁ ÎÕÖÎÏ ×ÙÐÏÌÎÑÔØ ÜÔÕ ËÏÍÁÎÄÕ. ðÏÓÌÅÄÎÑÑ ÐÏÄÓËÁÚËÁ: ÅÓÌÉ ×Ù ÎÅ Õ×ÅÒÅÎÙ × ÐÒÁ×ÉÌØÎÏÓÔÉ ÎÁÓÔÒÏÊËÉ ÍÁÒÛÒÕÔÉÚÁÃÉ ÐÏÞÔÙ, ÉÓÐÏÌØÚÕÊÔÅ sendmail Ó ÏÐÃÉÅÊ . ïÎÁ ÐÅÒÅ×ÏÄÉÔ sendmail × ÒÅÖÉÍ ÐÒÏ×ÅÒËÉ ÁÄÒÅÓÏ×; ××ÅÄÉÔÅ ``0 '', Á ÚÁÔÅÍ ÁÄÒÅÓ, ËÏÔÏÒÙÊ ×Ù ÈÏÔÉÔÅ ÐÒÏÔÅÓÔÉÒÏ×ÁÔØ ÎÁ ÐÒÁ×ÉÌØÎÏÓÔØ ÍÁÒÛÒÕÔÉÚÁÃÉÉ. ÷ ÐÏÓÌÅÄÎÅÊ ÓÔÒÏËÅ ÂÕÄÕÔ ÕËÁÚÁÎÙ ÉÓÐÏÌØÚÕÅÍÙÊ ÐÏÞÔÏ×ÙÊ ÁÇÅÎÔ, ÈÏÓÔ ÐÏÌÕÞÁÔÅÌÑ, Ó ËÏÔÏÒÙÍ ÂÕÄÅÔ ÒÁÂÏÔÁÔØ ÜÔÏÔ ÁÇÅÎÔ, É (ÍÏÖÅÔ ÂÙÔØ ÐÒÅÏÂÒÁÚÏ×ÁÎÎÙÊ) ÁÄÒÅÓ. ÷ÙÈÏÄ ÉÈ ÜÔÏÇÏ ÒÅÖÉÍÁ ÏÓÕÝÅÓÔ×ÌÑÅÔÓÑ ÐÏ Control-D. j@uriah 191% sendmail -bt ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter <ruleset> <address> > 0 foo@interface-business.de rewrite: ruleset 0 input: foo @ interface-business . de ... rewrite: ruleset 0 returns: $# uucp-dom $@ if-bus $: foo \ < @ interface-business . de > > ^D j@uriah 192% ëÁË ÎÁÓÔÒÏÉÔØ ÐÏÞÔÕ ÐÒÉ ËÏÍÍÕÔÉÒÕÅÍÏÍ ÓÏÅÄÉÎÅÎÉÉ Ó Internet? åÓÌÉ ×ÁÍ ×ÙÄÅÌÅÎ ÓÔÁÔÉÞÅÓËÉÊ IP-ÁÄÒÅÓ, ×ÁÍ ÎÅ ÎÕÖÎÏ ÎÉÞÅÇÏ ÍÅÎÑÔØ. õÓÔÁÎÏ×ÉÔÅ ÉÍÑ ×ÁÛÅÇÏ ÈÏÓÔÁ × ÓÏÏÔ×ÅÔÓÔ×ÉÉ Ó ×ÙÄÅÌÅÎÎÙÍ ÉÍÅÎÅÍ DNS, Á sendmail ÓÄÅÌÁ£Ô ×Ó£ ÏÓÔÁÌØÎÏÅ. åÓÌÉ ×ÁÛ IP-ÁÄÒÅÓ ×ÙÄÅÌÑÅÔÓÑ ÄÉÎÁÍÉÞÅÓËÉ ÐÒÉ ËÏÍÍÕÔÉÒÕÅÍÏÍ ÓÏÅÄÉÎÅÎÉÉ ÐÏ ppp Ó Internet, ÍÏÖÅÔ ÂÙÔØ, ×ÁÍ ×ÙÄÅÌÅÎ ÐÏÞÔÏ×ÙÊ ÑÝÉË ÎÁ ÓÅÒ×ÅÒÅ ÐÒÏ×ÁÊÄÅÒÁ. ðÒÅÄÐÏÌÏÖÉÍ, ÞÔÏ ÄÏÍÅÎ ×ÁÛÅÇÏ ÐÒÏ×ÁÊÄÅÒÁ ÎÁÚÙ×ÁÅÔÓÑ myISP.com, Á ×ÁÛÅ ÉÍÑ ÐÏÌØÚÏ×ÁÔÅÌÑ user. ôÁËÖÅ ÐÏÌÏÖÉÍ, ÞÔÏ ×Ù ÎÁÚ×ÁÌÉ ×ÁÛÕ ÍÁÛÉÎÕ bsd.home É ÞÔÏ ×ÁÛ ÐÒÏ×ÁÊÄÅÒ ÓËÁÚÁÌ, ÞÔÏ ×Ù ÄÏÌÖÎ× ÉÓÐÏÌØÚÏ×ÁÔØ relay.myISP.com ËÁË ÐÏÞÔÏ×ÙÊ ÛÌÀÚ. þÔÏÂÙ ÚÁÂÉÒÁÔØ ÐÏÞÔÕ ÉÚ ×ÁÛÅÇÏ ÐÏÞÔÏ×ÏÇÏ ÑÝÉËÁ, ×ÁÍ ÎÕÖÎÏ ÕÓÔÁÎÏ×ÉÔØ ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÊ ÁÇÅÎÔ. èÏÒÏÛÉÍ ÁÇÅÎÔÏ× Ñ×ÌÑÅÔÓÑ fetchmail, ÔÁË ËÁË ÏÎ ÐÏÄÄÅÒÖÉ×ÁÅÔ ÍÎÏÇÏ ÒÁÚÌÉÞÎÙÈ ÐÒÏÔÏËÏÌÏ×. ïÂÙÞÎÏ ÐÒÏ×ÁÊÄÅÒÙ ÐÒÅÄÌÁÇÁÀÔ POP3. åÓÌÉ ×Ù ÉÓÐÏÌØÚÕÅÔÅ user-ppp, ×Ù ÍÏÖÅÔÅ Á×ÔÏÍÁÔÉÞÅÓËÉ ÚÁÂÉÒÁÔØ ×ÁÛÕ ÐÏÞÔÕ ÐÒÉ ÕÓÔÁÎÏ×ÌÅÎÉÉ ÓÏÅÄÉÎÅÎÉÑ Ó Internet, ÄÏÂÁ×É× ÔÁËÕÀ ÓÔÒÏËÕ × /etc/ppp/ppp.linkup: MYADDR: !bg su user -c fetchmail åÓÌÉ ×Ù ÉÓÐÏÌØÚÕÅÔÅ sendmail (ËÁË ÐÏËÁÚÁÎÏ ÎÉÖÅ) ÄÌÑ ÄÏÓÔÁ×ËÉ ÐÏÞÔÙ ÄÌÑ ×ÎÅÛÎÉÈ ÐÏÌØÚÏ×ÁÔÅÌÅÊ, ÐÏÍÅÓÔÉÔÅ ËÏÍÁÎÄÕ !bg su user -c "sendmail -q" ÐÏÓÌÅ ×ÙÛÅÕËÁÚÁÎÎÏÊ ÓÔÒÏËÉ. üÔÏ ÚÁÓÔÁ×ÉÔ sendmail ÏÂÒÁÂÏÔÁÔØ ×ÁÛÕ ÏÞÅÒÅÄØ ÐÏÞÔÏ×ÙÈ ÓÏÏÂÝÅÎÉÊ, ËÁË ÔÏÌØËÏ ÂÕÄÅÔ ÏÓÕÝÅÓÔ×ÌÅÎÏ ÐÏÄËÌÀÞÅÎÉÅ Ë ÓÅÔÉ. ðÒÅÄÐÏÌÏÖÉÍ, ÞÔÏ ×Ù ÉÍÅÅÔ ÕÞ£ÔÎÕÀ ÚÁÐÉÓØ ÄÌÑ user ÎÁ ÍÁÛÉÎÅ bsd.home. ÷ ÄÏÍÁÛÎÅÍ ËÁÔÁÌÏÇÅ ÐÏÌØÚÏ×ÁÔÅÌÑ user ÎÁ ÍÁÛÉÎÅ bsd.home ÓÏÚÄÁÊÔÅ ÔÁËÏÊ ÆÁÊÌ .fetchmailrc: poll myISP.com protocol pop3 fetchall pass MySecret; éÚÌÉÛÎÉÍ ÂÕÄÅÔ ÎÁÐÏÍÉÎÁÎÉÅ Ï ÔÏÍ, ÞÔÏ ÜÔÏÔ ÆÁÊÌ ÎÉËÏÍÕ ÎÅ ÄÏÌÖÅÎ ÂÙÔØ ÄÏÓÔÕÐÅÎ ÄÌÑ ÞÔÅÎÉÑ, ËÒÏÍÅ ÐÏÌØÚÏ×ÁÔÅÌÑ user, ÐÏÔÏÍÕ ÞÔÏ ÏÎ ÓÏÄÅÒÖÉÔ ÐÁÒÏÌØ MySecret ÄÏÓÔÕÐÁ Ë ÐÏÞÔÏ×ÏÍÕ ÑÝÉËÕ. þÔÏÂÙ ÐÏÓÙÌÁÔØ ÐÏÞÔÕ Ó ÐÒÁ×ÉÌØÎÙÍ ÚÁÇÏÌÏ×ËÏÍ from:, ×Ù ÄÏÌÖÎÙ ÕËÁÚÁÔØ ÐÒÏÇÒÁÍÍÅ sendmail ÉÓÐÏÌØÚÏ×ÁÔØ user@myISP.com, Á ÎÅ user@bsd.home. ÷ÁÍ ÍÏÖÅÔ ÐÏÎÁÄÏÂÉÔØÓÑ ÎÁÓÔÒÏÉÔØ sendmail ÄÌÑ ÐÏÓÙÌËÉ ×ÓÅÊ ÐÏÞÔÙ ÞÅÒÅÚ relay.myISP.com, ÞÔÏÂÙ ÕÂÙÓÔÒÉÔØ Å£ ÐÅÒÅÄÁÞÕ. óÌÅÄÕÀÝÉÊ ÆÁÊÌ .mc ÄÏÌÖÅÎ ÐÏÄÏÊÔÉ: VERSIONID(`bsd.home.mc version 1.0') OSTYPE(bsd4.4)dnl FEATURE(nouucp)dnl MAILER(local)dnl MAILER(smtp)dnl Cwlocalhost Cwbsd.home MASQUERADE_AS(`myISP.com')dnl FEATURE(allmasquerade)dnl FEATURE(masquerade_envelope)dnl FEATURE(nocanonify)dnl FEATURE(nodns)dnl define(SMART_HOST, `relay.myISP.com') Dmbsd.home define(`confDOMAIN_NAME',`bsd.home')dnl define(`confDELIVERY_MODE',`deferred')dnl ÷ ÐÒÅÄÙÄÕÝÅÍ ÒÁÚÄÅÌÅ ÏÐÉÓÁÎÏ, ËÁË ÐÒÅÏÂÒÁÚÏ×ÁÔØ ÆÁÊÌ .mc × sendmail.cf. é ÎÅ ÚÁÂÕÄØÔÅ ÐÅÒÅÚÁÐÕÓÔÉÔØ sendmail ÐÏÓÌÅ ÏÂÎÏ×ÌÅÎÉÑ sendmail.cf. ïÊ! ñ ÚÁÂÙÌ ÐÁÒÏÌØ ÁÄÍÉÎÉÓÔÒÁÔÏÒÁ! âÅÚ ÐÁÎÉËÉ! ðÒÏÓÔÏ ÐÅÒÅÚÁÐÕÓÔÉÔÅ ÓÉÓÔÅÍÕ, ÎÁÂÅÒÉÔÅ -s × ÐÒÉÇÌÁÛÅÎÉÉ Boot: ÄÌÑ ×ÈÏÄÁ × ÏÄÎÏÐÏÌØÚÏ×ÁÔÅÌØÓËÉÊ ÒÅÖÉÍ. îÁ ×ÏÐÒÏÓ Ï ÉÓÐÏÌØÚÕÅÍÏÊ ÏÂÏÌÏÞËÅ ÎÁÖÍÉÔÅ ENTER. îÁ ÐÒÉÇÌÁÛÅÎÉÅ # ××ÅÄÉÔÅ mount -u /, ÞÔÏÂÙ ÐÅÒÅÍÏÎÔÉÒÏ×ÁÔØ ËÏÒÎÅ×ÕÀ ÆÁÊÌÏ×ÕÀ ÓÉÓÔÅÍÕ × ÒÅÖÉÍÅ ÞÔÅÎÉÑ/ÚÁÐÉÓÉ, ÚÁÔÅÍ ×ÙÐÏÌÎÉÔÅ ËÏÍÁÎÄÕ mount -a ÄÌÑ ÍÏÎÔÉÒÏ×ÁÎÉÑ ×ÓÅÈ ÆÁÊÌÏ×ÙÈ ÓÉÓÔÅÍ. úÁÐÕÓÔÉÔÅ ËÏÍÁÎÄÕ passwd root, ÞÔÏÂÙ ÓÍÅÎÉÔØ ÐÁÒÏÌØ ÁÄÍÉÎÉÓÔÒÁÔÏÒÁ É ÚÁÔÅÍ exit ÄÌÑ ÐÒÏÄÏÌÖÅÎÉÑ ÚÁÇÒÕÚËÉ. ëÁË ÚÁÐÒÅÔÉÔØ ÐÅÒÅÚÁÇÒÕÚËÕ ÐÏ ËÌÁ×ÉÛÁÍ Control-Alt-Delete? ïÔÒÅÄÁËÔÉÒÕÊÔÅ ÉÓÐÏÌØÚÕÅÍÙÊ ×ÁÍÉ ÄÌÑ ËÏÎÓÏÌÉ ÆÁÊÌ ÒÁÓËÌÁÄËÉ ËÌÁ×ÉÁÔÕÒÙ, ÚÁÍÅÎÉ× ËÌÀÞÅ×ÙÅ ÓÌÏ×Á boot ÎÁ nop. òÁÓËÌÁÄËÁ ÐÏ ÕÍÏÌÞÁÎÉÀ ÎÁÈÏÄÉÔÓÑ × ÆÁÊÌÅ /usr/share/syscons/keymaps/us.iso.kbd. ÷ÁÍ ÍÏÖÅÔ ÐÏÔÒÅÂÏ×ÁÔØÓÑ Ñ×ÎÏ ÕËÁÚÁÔØ × ÆÁÊÌÅ /etc/rc.conf ÚÁÇÒÕÚËÕ ÜÔÏÊ ÒÁÓËÌÁÄËÉ, ÞÔÏÂÙ ÏÎÁ ÄÅÊÓÔ×ÉÔÅÌØÎÏ ÐÏÍÅÎÑÌÁÓØ. ëÏÎÅÞÎÏ, ÅÓÌÉ × ×ÁÛÅÊ ÓÔÒÁÎÅ ×Ù ÉÓÐÏÌØÚÕÅÔÅ ÄÒÕÇÕÀ ÒÁÓËÌÁÄËÕ, ×Ù ÄÏÌÖÎÙ ÏÔÒÅÄÁËÔÉÒÏ×ÁÔØ ÉÍÅÎÎÏ Å£. ëÁË ÐÒÅÏÂÒÁÚÏ×ÁÔØ ÔÅËÓÔÏ×ÙÅ ÆÁÊÌÙ DOS × ÆÏÒÍÁÔ UNIX? éÓÐÏÌØÚÕÊÔÅ ÔÁËÕÀ ËÏÍÁÎÄÕ: perl -i.bak -npe 's/\r\n/\n/g' file ... ÇÄÅ file - ÜÔÏ ÉÍÑ ÆÁÊÌÁ(Ï×) ÄÌÑ ÐÒÅÏÂÒÁÚÏ×ÁÎÉÑ. ðÒÅÏÂÒÁÚÏ×ÁÎÉÅ ÄÅÌÁÅÔÓÑ × ÔÏÍ ÖÅ ÓÁÍÏÍ ÆÁÊÌÅ, ÏÒÉÇÉÎÁÌØÎÙÅ ÆÁÊÌÙ ÓÏÈÒÁÎÑÀÔÓÑ Ó ÒÁÓÛÉÒÅÎÉÅÍ .bak. üÔÏ ÐÒÅÏÂÒÁÚÏ×ÁÎÉÅ ÔÁËÖÅ ÍÏÖÎÏ ×ÙÐÏÌÎÉÔØ Ó ÐÏÍÏÝØÀ ËÏÍÁÎÄÙ tr(1): tr -d '\r' < dos-text-file > unix-file ÇÄÅ dos-text-file - ÜÔÏ ÉÍÑ ÆÁÊÌÁ, ÓÏÄÅÒÖÁÝÅÇÏ ÔÅËÓÔ DOS, Á × ÆÁÊÌ unix-file ÂÕÄÅÔ ÐÏÍÅݣΠÕÖÅ ÐÒÅÏÂÒÁÚÏ×ÁÎÎÙÊ ÔÅËÓÔ. üÔÏÔ ÓÐÏÓÏ ÍÏÖÅÔ ÒÁÂÏÔÁÔØ ÇÏÒÁÚÄÏ ÂÙÓÔÒÅÅ, ÞÅÍ ÐÒÉ ÉÓÐÏÌØÚÏ×ÁÎÉÉ perl. ëÁË ÐÒÅÒ×ÁÔØ ÐÒÏÃÅÓÓ ÐÏ ÉÍÅÎÉ? éÓÐÏÌØÚÕÊÔÅ ËÏÍÁÎÄÕ killall(1). ðÏÞÅÍÕ su ×ÙÄÁ£Ô ÓÏÏÂÝÅÎÉÅ Ï ÔÏÍ, ÞÔÏ Ñ ÎÅ ×ÈÏÖÕ × root ACL? üÔÁ ÏÛÉÂËÁ ×ÙÄÁ£ÔÓÑ ÒÁÓÐÒÅÄÅÌ£ÎÎÏÊ ÓÉÓÔÅÍÏÊ ÁÕÔÅÎÔÉÆÉËÁÃÉÉ Kerberos. üÔÁ ÏÛÉÂËÁ ÎÅ ÆÁÔÁÌØÎÁ, ÏÄÎÁËÏ ÜÔÏ ÒÁÚÄÒÁÖÁÅÔ. ÷Ù ÍÏÖÅÔÅ ÚÁÐÕÓÔÉÔ su Ó ËÌÀÞÏÍ -K ÌÉÂÏ ÄÅÉÎÓÔÁÌÌÉÒÏ×ÁÔØ Kerberos, ËÁË ÏÐÉÓÁÎÏ × ÓÌÅÄÕÀÝÅÍ ÒÁÚÄÅÌÅ. ëÁË ÄÅÉÎÓÔÁÌÌÉÒÏ×ÁÔØ Kerberos? þÔÏÂÙ ÕÂÒÁÔØ Kerberos ÉÚ ÓÉÓÔÅÍÙ, ÐÅÒÅÉÎÓÔÁÌÌÉÒÕÊÔÅ ÄÉÓÔÒÉÂÕÔÉ× bin ÔÏÇÏ ÒÅÌÉÚÁ, ËÏÔÏÒÙÊ Õ ×ÁÓ ÚÁÐÕÝÅÎ. åÓÌÉ Õ ×ÁÓ ÅÓÔØ CDROM, ×Ù ÍÏÖÅÔÅ ÓÍÏÎÔÉÒÏ×ÁÔØ ËÏÍÐÁËÔ-ÄÉÓË (ÐÏÌÏÖÉÍ, × ËÁÔÁÌÏÇ /cdrom) É ×ÙÐÏÌÎÉÔØ ËÏÍÁÎÄÕ cd /cdrom/bin ./install.sh ëÁË ÄÏÂÁ×ÉÔØ × ÓÉÓÔÅÍÕ ÄÏÐÏÌÎÉÔÅÌØÎÙÅ ÐÓÅ×ÄÏÔÅÒÍÉÎÁÌÙ? åÓÌÉ Õ ×ÁÓ ÍÎÏÇÏ ÐÏÌØÚÏ×ÁÔÅÌÅÊ, ÒÁÂÏÔÁÀÝÉÊ × ÓÅÁÎÓÁÈ telnet, ssh, X ÉÌÉ × screen, ×ÁÍ ÍÏÖÅÔÅ ÓÔÏÌËÎÕÔØÓÑ Ó ÐÒÏÂÌÅÍÏÊ ÎÅÈ×ÁÔËÉ ÐÓÅ×ÄÏÔÅÒÍÉÎÁÌÏ×. éÈ ËÏÌÉÞÅÓÔ×Ï ÍÏÖÎÏ ÕÙÅÌÉÞÉÔØ ÓÌÅÄÕÀÝÉÍ ÏÂÒÁÚÏÍ: ïÔËÏÍÐÉÌÉÒÕÊÔÅ É ÉÎÓÔÁÌÌÉÒÕÊÔÅ ÎÏ×ÏÅ ÑÄÒÏ, × ËÏÎÆÉÇÕÒÁÃÉÏÎÎÙÊ ÆÁÊÌ ËÏÔÏÒÏÇÏ ×ÈÏÄÉÔ ÓÔÒÏËÁ pseudo-device pty 256 ÷ÙÐÏÌÎÉÔÅ ËÏÍÁÎÄÕ # cd /dev # ./MAKEDEV pty{1,2,3,4,5,6,7} ÄÌÑ ÓÏÚÄÁÎÉÑ 256 ÄÏÐÏÌÎÉÔÅÌØÎÙÈ ÆÁÊÌÏ× ÕÓÔÒÏÊÓÔ× ÄÌÑ ÎÏ×ÙÈ ÔÅÒÍÉÎÁÌÏ×. ïÔÒÅÄÁËÔÉÒÕÊÔÅ ÆÁÊÌ /etc/ttys, ÄÏÂÁ×É× ÐÏ ÓÔÒÏËÅ ÄÌÑ ËÁÖÄÏÇÏ ÉÚ 256 ÔÅÒÍÉÎÁÌÏ×. ïÎÉ ÄÏÌÖÎÙ ÓÏÏÔ×ÅÔÓÔ×Ï×ÁÔØ ÆÏÒÍÁÔÕ ÓÕÝÅÓÔ×ÕÀÝÉÈ ÓÔÒÏË, ÔÏ ÅÓÔØ ÄÏÌÖÎÙ ×ÙÇÌÑÄÅÔØ ËÁË ttyqc none network ðÏÒÑÄÏË ÎÁÚÎÁÞÅÎÉÑ ÂÕË× ÐÒÉ ÚÁÐÉÓÉ × ×ÉÄÅ ÒÅÇÕÌÑÒÎÏÇÏ ×ÙÒÁÖÅÎÉÑ ÉÍÅÅÔ ×ÉÄ tty[pqrsPQRS][0-9a-v]. ôÅÐÅÒØ ÏÓÔÁÌÏÓØ ÔÏÌØËÏ ÐÅÒÅÚÁÐÕÓÔÉÔØ ÓÉÓÔÅÍÕ Ó ÎÏ×ÙÍ ÑÄÒÏÍ. ëÁË ÐÅÒÅÞÉÔÁÔØ ÓÏÄÅÒÖÉÍÏÅ /etc/rc.conf É ÐÅÒÅÓÔÁÒÔÏ×ÁÔØ /etc/rc ÂÅÚ ÐÅÒÅÚÁÇÒÕÚËÉ ÓÉÓÔÅÍÙ? ðÅÒÅÊÄÉÔÅ × ÏÄÎÏÐÏÌØÚÏ×ÁÔÅÌØÓËÉÊ ÒÅÖÉÍ, Á ÚÁÔÅÍ ×ÏÚ×ÒÁÔÉÔÅÓØ ÏÂÒÁÔÎÏ × ÍÎÏÇÏÐÏÌØÚÏ×ÁÔÅÌØÓËÉÊ. îÁ ËÏÎÓÏÌÉ ×ÙÐÏÌÎÉÔÅ ÓÌÅÄÕÀÝÅÅ: # shutdown now (úÁÍÅÞÁÎÉÅ: ÂÅÚ -r ÉÌÉ -h) # return # exit X Window System É ×ÉÒÔÕÁÌØÎÙÅ ËÏÎÓÏÌÉ ñ ÈÏÞÕ ÚÁÐÕÓÔÉÔØ X, ËÁË ÜÔÏ ÓÄÅÌÁÔØ? óÁÍÙÊ ÐÒÏÓÔÏÊ ÓÐÏÓÏ - ÜÔÏ ÕËÁÚÁÔØ ×Ï ×ÒÅÍÑ ÉÎÓÔÁÌÌÑÃÉÉ, ÞÔÏ ×Ù ÈÏÔÉÔÅ ÉÓÐÏÌØÚÏ×ÁÔØ X. úÁÔÅÍ ÓÌÅÄÕÊÔÅ ÕËÁÚÁÎÉÑÍ × ÄÏËÕÍÅÎÔÁÃÉÉ ÐÏ ÕÔÉÌÉÔÅ xf86config, ËÏÔÏÒÁÑ ÐÒÅÄÎÁÚÎÁÞÅÎÁ ÄÌÑ ËÏÎÆÉÇÕÒÉÒÏ×ÁÎÉÑ ÒÁÂÏÔÙ XFree86(tm) Ó ×ÁÛÉÍ ÇÒÁÆÉÞÅÓËÉÍ ÁÄÁÐÔÅÒÏÍ/ÍÙÛØÀ/ÉÔÄ. ÷Ù ÍÏÖÅÔÅ ÔÁËÖÅ ÐÏÐÒÏÂÏ×ÁÔØ ÓÅÒ×ÅÒ Xaccel. úÁ ÐÏÄÒÏÂÎÏÊ ÉÎÆÏÒÍÁÃÉÅÊ ÏÂÒÁÔÉÔÅÓØ Ë ÒÁÚÄÅÌÕ, ÐÏÓ×ÑÝ£ÎÎÏÍÕ ÐÒÏÄÕËÔÁÍ ÆÉÒÍ Xi Graphics É Metro Link. ðÏÞÅÍÕ ÍÏÑ ÍÙÛØ ÎÅ ÒÁÂÏÔÁÅÔ Ó X? åÓÌÉ ×Ù ÉÓÐÏÌØÚÕÅÔÅ syscons (ÓÔÁÎÄÁÒÔÎÙÊ ÄÒÁÊ×ÅÒ ËÏÎÓÏÌÉ), ÔÏ ÍÏÖÅÔÅ ÎÁÓÔÒÏÉÔØ ÐÏÄÄÅÒÖËÕ ÕËÁÚÁÔÅÌÑ ÍÙÛÉ ×Ï ×ÓÅÈ ×ÉÒÔÕÁÌØÎÙÈ ÜËÒÁÎÁÈ. ÷Ï ÉÚÂÅÖÁÎÉÅ ËÏÎÆÌÉËÔÏ× Ó X, ÄÒÁÊ×ÅÒ syscons ÐÏÄÄÅÒÖÉ×ÁÅÔ ×ÉÒÔÕÁÌØÎÏÅ ÕÓÔÒÏÊÓÔ×Ï ``/dev/sysmouse''. ÷ÓÅ ÓÏÂÙÔÉÑ, ÐÏÌÕÞÅÎÎÙÅ ÏÔ ÒÅÁÌØÎÏÊ ÍÙÛÉ, ÐÉÛÕÔÓÑ × ÕÓÔÒÏÊÓÔ×Ï sysmouse, ÒÅÁÌÉÚÕÀÝÅÅ ÐÒÏÔÏËÏÌ MouseSystems. åÓÌÉ ×Ù ÈÏÔÉÔÅ ÉÓÐÏÌØÚÏ×ÁÔØ ×ÁÛÕ ÍÙÛØ ÎÁ ÏÄÎÏÊ ÉÌÉ ÎÅÓËÏÌØËÉÈ ×ÉÒÔÕÁÌØÎÙÈ ËÏÎÓÏÌÑÈ, ÐÒÏÄÏÌÖÁÑ ÉÓÐÏÌØÚÏ×ÁÔØ X, ÒÅËÏÍÅÎÄÕÅÔÓÑ ÔÁËÁÑ ËÏÎÆÉÇÕÒÁÃÉÑ: /etc/rc.conf: moused_type=ps/2 # or whatever your actual type is moused_port=/dev/psm0 # or whatever your real port is moused_flags= /etc/XF86Config Section Pointer Protocol "MouseSystems" Device "/dev/sysmouse" ..... îÅËÏÔÏÒÙÅ ÐÒÅÄÐÏÞÉÔÁÀÀÔ ÉÓÐÏÌØÚÏ×ÁÔØ × X ÕÓÔÒÏÊÓÔ×Ï ``/dev/mouse''. þÔÏÂÙ ÏÎÏ ÒÁÂÏÔÁÌÏ, ÆÁÊÌ ÕÓÔÒÏÊÓÔ×Á ÄÏÌÖÅÎ Ñ×ÌÑÔØÓÑ ÓÓÙÌËÏÊ ÎÁ /dev/sysmouse: # cd /dev # rm -f mouse # ln -s sysmouse mouse íÅÎÀ É ÄÉÁÌÏÇÏ×ÙÅ ÏËÎÁ × X Window ÒÁÂÏÔÁÀÔ ÎÅÐÒÁ×ÉÌØÎÏ! ðÏÐÒÏÂÕÊÔÅ ×ÙËÌÀÞÉÔØ Num Lock. åÓÌÉ ËÌÁ×ÉÛÁ Num Lock ×Ï ×ÒÅÍÑ ÚÁÇÒÕÚËÉ ÐÏ ÕÍÏÌÞÁÎÉÀ ×ËÌÀÞÅÎÁ, ÄÏÂÁרÔÅ × ÓÅËÃÉÀ ``Keyboard'' ÆÁÊÌÁ XF86Config ÓÌÅÄÕÀÝÕÀ ÓÔÒÏËÕ. # Let the server do the NumLock processing. This should only be # required when using pre-R6 clients ServerNumLock þÔÏ ÔÁËÏÅ ×ÉÒÔÕÁÌØÎÙÅ ËÏÎÓÏÌÉ É ËÁË ÉÚÍÅÎÉÔØ ÉÈ ËÏÌÉÞÅÓÔ×Ï? ÷ÉÒÔÕÁÌØÎÙÅ ËÏÎÓÏÌÉ, ÕÐÒÏÝ£ÎÎÏ ÇÏ×ÏÒÑ, ÐÏÚ×ÏÌÑÀÔ ×ÁÍ ÉÍÅÔØ ÎÅÓËÏÌØËÏ ÏÄÎÏ×ÒÅÍÅÎÎÙÈ ÓÅÁÎÓÏ× ÒÁÂÏÔÙ Ó ÔÏÊ ÖÅ ÓÁÍÏÊ ÍÁÛÉÎÏÊ ÂÅÚ ÕÓÔÁÎÏ×ËÉ ËÁËÏÊ ÂÙ ÔÏ ÎÉ ÂÙÌÏ ÓÅÔÉ ÉÌÉ ÚÁÐÕÓËÁ X. ðÒÉ ÚÁÐÕÓËÅ ÓÉÓÔÅÍÙ ÐÏÓÌÅ ×Ù×ÏÄÁ ÓÏÏÂÝÅÎÉÊ ÜÔÁÐÁ ÚÁÇÒÕÚËÉ ÎÁ ËÏÎÓÏÌØ ×ÙÄÁ£ÔÓÑ ÐÒÉÇÌÁÛÅÎÉÅ ÎÁ ×ÈÏÄ × ÓÉÓÔÅÍÕ. ÷Ù ÍÏÖÅÔÅ ××ÅÓÔÉ Ó×Ï£ ÉÍÑ É ÐÁÒÏÌØ É ÎÁÞÁÔØ ÒÁÂÏÔÁÔØ (ÉÌÉ ÉÇÒÁÔØ!) ÎÁ ÐÅÒ×ÏÊ ×ÉÒÔÕÁÌØÎÏÊ ËÏÎÓÏÌÉ. ÷ ËÁËÏÊ-ÔÏ ÍÏÍÅÎÔ ×Ù ÍÏÖÅÔÅ ÚÁÈÏÔÅÔØ ÚÁÐÕÓÔÉÔØ ÅÝ£ ÏÄÎÕ ÓÅÁÎÓ, ÓËÁÖÅÍ, ÞÔÏÂÙ ÚÁÇÌÑÎÕÔØ × ÄÏËÕÍÅÎÔÁÃÉÀ ÐÏ ÐÒÏÇÒÁÍÍÅ, ËÏÔÏÒÕÀ ×Ù ÚÁÐÕÓÔÉÌÉ ÉÌÉ ÄÌÑ ÄÌÑ ÞÔÅÎÉÑ ÜÌÅËÔÒÏÎÎÏÊ ÐÏÞÔÙ ×Ï ×ÒÅÍÑ ÏÖÉÄÁÎÉÑ ÚÁ×ÅÒÛÅÎÉÑ ÐÅÒÅÄÁÞÉ ÄÁÎÎÙÈ ÐÏ FTP. ðÒÏÓÔÏ ÎÁÖÍÉÔÅ Alt-F2 (ÕÄÅÒÖÉ×ÁÑ ËÌÁ×ÉÛÕ Alt, ÎÁÖÍÉÔÅ F2) É ×Ù ÏÂÎÁÒÕÖÉÔÅ ÐÒÉÇÌÁÛÅÎÉÅ, ÖÄÕÝÅÅ ×ÁÓ ÎÁ ×ÔÏÒÏÊ ``×ÉÒÔÕÁÌØÎÏÊ ËÏÎÓÏÌÉ''! ëÏÇÄÁ ÚÁÈÏÔÉÔÅ ×ÅÒÎÕÔØÓÑ Ë ÐÅÒ×ÏÎÁÞÁÌØÎÏÍÕ ÓÅÁÎÓÕ, ÎÁÖÍÉÔÅ Alt-F1. ðÏÓÌÅ ÉÎÓÔÁÌÌÑÃÉÉ ÐÏ ÕÍÏÌÞÁÎÉÀ ×Ï FreeBSD ÚÁÄÅÊÓÔ×Ï×ÁÎÙ ÔÒÉ ×ÉÒÔÕÁÌØÎÙÈ ËÏÎÓÏÌÉ, Á ËÏÍÂÉÎÁÃÉÉ ËÌÁ×ÉÛ Alt-F1, Alt-F2, É Alt-F3 ÓÌÕÖÁÔ ÄÌÑ ÐÅÒÅËÌÀÞÅÎÉÑ ÍÅÖÄÕ ÎÉÍÉ. þÔÏÂÙ Õ×ÅÌÉÞÉÔØ ËÏÌÉÞÅÓÔ×Ï ËÏÎÓÏÌÅÊ, ÏÔÒÅÄÁËÔÉÒÕÊÔÅ ÆÁÊÌ /etc/ttys, ÄÏÂÁ×É× ÔÕÄÁ ÚÁÐÉÓÉ ÄÌÑ ÔÅÒÍÉÎÁÌÏ× Ó ÉÍÅÎÁÍÉ ÏÔ ``ttyv4'' ÄÏ ``ttyvc'' ÐÏÓÌÅ ÓÌÏ× ``Virtual terminals'': # Edit the existing entry for ttyv3 in /etc/ttys and change # "off" to "on". ttyv3 "/usr/libexec/getty Pc" cons25 on secure ttyv4 "/usr/libexec/getty Pc" cons25 on secure ttyv5 "/usr/libexec/getty Pc" cons25 on secure ttyv6 "/usr/libexec/getty Pc" cons25 on secure ttyv7 "/usr/libexec/getty Pc" cons25 on secure ttyv8 "/usr/libexec/getty Pc" cons25 on secure ttyv9 "/usr/libexec/getty Pc" cons25 on secure ttyva "/usr/libexec/getty Pc" cons25 on secure ttyvb "/usr/libexec/getty Pc" cons25 on secure éÓÐÏÌØÚÕÊÔÅ ÉÚ ÎÉÈ ÓÔÏÌØËÏ, ÓËÏÌØËÏ ÐÏÓÞÉÔÁÅÔÅ ÎÕÖÎÙÍ. þÅÍ ÂÏÌØÛÅ ×ÉÒÔÕÁÌØÎÙÈ ÔÅÒÍÉÎÁÌÏ× Õ ×ÁÓ ÉÍÅÅÔÓÑ, ÔÅÍ ÂÏÌØÛÅ ÒÅÓÕÒÓÏ× ÏÎÉ ÉÓÐÏÌØÚÕÀÔ; ÜÔÏ ÍÏÖÅÔ ÉÍÅÔØ ÚÎÁÞÅÎÉÅ, ÅÓÌÉ Õ ×ÁÓ ÍÅÎØÛÅ ÞÅÍ 8íâ ïúõ. ÷Ù ÍÏÖÅÔÅ ÓÍÅÎÉÔØ ÓÔÁÔÕÓ ËÏÎÓÏÌÅÊ Ó ``secure'' ÎÁ ``insecure''. ÷áöîïå úáíåþáîéå ÅÓÌÉ ×Ù ÈÏÔÉÔÅ ÚÁÐÕÓÔÉÔØ X, ×Ù äïìöîù ÏÓÔÁ×ÉÔØ ÄÌÑ ÎÅÇÏ ÐÏ ËÒÁÊÎÅÊ ÍÅÒÅ ÏÄÉÎ ÎÅÉÓÐÏÌØÚÕÅÍÙÊ (ÉÌÉ ×ÙËÌÀÞÅÎÎÙÊ) ×ÉÒÔÕÁÌØÎÙÊ ÔÅÒÍÉÎÁÌ. ôÁËÉÍ ÏÂÒÁÚÏ×, ÅÓÌÉ ×Ù ÈÏÔÉÔÅ ÉÍÅÔØ ÐÒÉÇÌÁÛÅÎÉÑ login ÎÁ ×ÓÅÈ Ä×ÅÎÁÄÃÁÔÉ ÆÕÎËÃÉÏÎÁÌØÎÙË ËÌÁ×ÉÛÉ, ÔÏ ×ÁÍ ÎÅ ÐÏ×ÅÚÌÏ - ×Ù ÍÏÖÅÔÅ ÜÔÏ ÓÄÅÌÁÔØ ÔÏÌØËÏ ÄÌÑ ÏÄÉÎÎÁÄÃÁÔÉ ÉÚ ÎÉÈ, ÅÓÌÉ ÈÏÔÉÔÅ ÎÁ ÜÔÏÊ ÖÅ ÍÁÛÉÎÅ ÅÝ£ ÚÁÐÕÓÔÉÔØ X-ÓÅÒ×ÅÒ. óÁÍÙÍ ÐÒÏÓÔÙÍ ÓÐÏÓÏÂÏÍ ÕÂÒÁÔØ ËÏÎÓÏÌØ Ñ×ÌÑÅÔÓÑ ÐÒÏÓÔÏ Å£ ×ÙËÌÀÞÅÎÉÅ. îÁÐÒÉÍÅÒ, ÅÓÌÉ ×Ù ÚÁÐÕÓÔÉÌÉ ÎÁ ×ÓÅÈ 12 ËÏÎÓÏÌÑÈ ×ÉÒÔÕÁÌØÎÙÅ ÔÅÒÍÉÎÁÌÙ, ËÁË ÕËÁÚÁÎÏ ×ÙÛÅ, É ÅÝ£ ÈÏÔÉÔÅ ÚÁÐÕÓÔÉÔØ X, ÔÏ ÄÏÌÖÎÙ ÂÕÄÅÔÅ ÉÚÍÅÎÉÔØ ÐÁÒÁÍÅÔÒÙ Ä×ÅÎÁÄÃÁÔÏÇÏ ×ÉÒÔÕÁÌØÎÏÇÏ ÔÅÒÍÉÎÁÌÁ Ó: ttyvb "/usr/libexec/getty Pc" cons25 on secure ÎÁ: ttyvb "/usr/libexec/getty Pc" cons25 off secure åÓÌÉ ÎÁ ×ÁÛÅÊ ËÌÁ×ÉÁÔÕÒÅ ÔÏÌØËÏ ÄÅÓÑÔØ ÆÕÎËÃÉÏÎÁÌØÎÙÈ ËÌÁ×ÉÛ, ÔÏ ÐÏÓÌÅÄÎÉÅ ÓÔÒÏËÉ ÂÕÄÕÔ ×ÙÇÌÑÄÅÔØ ÔÁË: ttyv9 "/usr/libexec/getty Pc" cons25 off secure ttyva "/usr/libexec/getty Pc" cons25 off secure ttyvb "/usr/libexec/getty Pc" cons25 off secure (÷Ù ÔÁËÖÅ ÍÏÖÅÔÅ ÐÒÏÓÔÏ ÉÈ ÕÄÁÌÉÔØ.) ðÏÓÌÅ ÔÏÇÏ, ËÁË ×Ù ÏÔÒÅÄÁËÔÉÒÏ×ÁÌÉ ÆÁÊÌ /etc/ttys, ÐÒÏ×ÅÒØÔÅ, ÞÔÏ Õ ×ÁÓ ÉÍÅÅÔÓÑ ÄÏÓÔÁÔÏÞÎÏÅ ËÏÌÉÞÅÓÔ×Ï ÕÓÔÒÏÊÓÔ× ÄÌÑ ×ÉÒÔÕÁÌØÎÙÈ ÔÅÒÍÉÎÁÌÏ×. óÁÍÙÊ ÐÒÏÓÔÏÊ ÓÐÏÓÏ ÓÄÅÌÁÔØ ÜÔÏ: # cd /dev # ./MAKEDEV vty12 # For 12 devices óÁÍÙÍ ÐÒÏÓÔÙÍ (É ÎÁÄ£ÖÎÙÍ) ÓÐÏÓÏÂÏÍ ÁËÔÉ×ÉÒÏ×ÁÔØ ×ÉÒÔÕÁÌØÎÙÅ ËÏÎÓÏÌÉ Ñ×ÌÑÅÔÓÑ ÐÅÒÅÚÁÇÒÕÚËÁ. ïÄÎÁËÏ ÅÓÌÉ ×Ù ×Ï×ÓÅ ÎÅ ÈÏÔÉÔÅ ÜÔÏÇÏ ÄÅÌÁÔØ, ÐÒÏÓÔÏ ÏÓÔÁÎÏ×ÉÔÅ X Window System É ×ÙÐÏÌÎÉÔÅ (ËÁË ÁÄÍÉÎÉÓÔÒÁÔÏÒ): kill -HUP 1 ðÒÉ ÜÔÏÍ ÔÒÅÂÕÅÔÓÑ, ÞÔÏÂÙ ×Ù ÐÏÌÎÏÓÔØÀ ÚÁËÒÙÌÉ X Window, ÅÓÌÉ ÏÎÁ ÂÙÌÁ ÚÁÐÕÝÅÎÁ, ÄÏ ÚÁÐÕÓËÁ ÜÔÏÊ ËÏÍÁÎÄÙ. åÓÌÉ ×Ù ÜÔÏ ÎÅ ÓÄÅÌÁÅÔÅ, ×ÁÛÁ ÓÉÓÔÅÍÁ ÍÏÖÅÔ ÐÏ×ÉÓÎÕÔØ/ÚÁÂÌÏËÉÒÏ×ÁÔØÓÑ ÐÏÓÌÅ ×ÙÐÏÌÎÅÎÉÑ ËÏÍÁÎÄÙ kill. ëÁË ÏÓÕÝÅÓÔ×ÌÑÅÔÓÑ ÄÏÓÔÕÐ Ë ×ÉÒÔÕÁÌØÎÙÍ ËÏÎÓÏÌÑÍ ÉÚ X? åÓÌÉ ÎÁ ËÏÎÓÏÌÉ ÚÁÐÕÝÅÎÁ X Window, ×Ù ÍÏÖÅÔÅ ÉÓÐÏÌØÚÏ×ÁÔØ ËÏÍÂÉÎÁÃÉÉ ËÌÁ×ÉÛ, ÐÏÄÏÂÎÙÅ Ctrl-Alt-F1, ÄÌÑ ÐÅÒÅËÌÀÞÅÎÉÑ × ÒÅÖÉÍ ÒÁÂÏÔÙ Ó ×ÉÒÔÕÁÌØÎÏÊ ËÏÎÓÏÌØÀ. úÁÍÅÔØÔÅ, ÏÄÎÁËÏ, ÞÔÏ ËÁË ÔÏÌØËÏ ×Ù ÐÅÒÅËÌÀÞÉÔÅÓØ ÉÚ X Window × ×ÉÒÔÕÁÌØÎÙÊ ÔÅÒÍÉÎÁÌ, ×Ù ÍÏÖÅÔÅ ÉÓÐÏÌØÚÏ×ÁÔØ ÔÏÌØËÏ Alt- ËÌÁ×ÉÛÉ ÄÌÑ ÐÅÒÅËÌÀÞÅÎÉÑ × ÄÒÕÇÏÊ ×ÉÒÔÕÁÌØÎÙÊ ÔÅÒÍÉÎÁÌ ÉÌÉ ÓÎÏ×Á × X Window. ÷ÁÍ ÎÅ ÎÕÖÎÏ ÅÝ£ ÎÁÖÉÍÁÔØ ËÌÁ×ÉÛÕ Ctrl. åÓÌÉ ×Ù ÉÓÐÏÌØÚÕÅÔÅ ËÌÁ×ÉÛÕ Ctrl ÐÒÉ ÐÅÒÅËÌÀÞÅÎÉÉ × X, ÔÏ × ÓÔÁÒÙÈ ÒÅÌÉÚÁÈ ×Ù ÍÏÖÅÔ ÏÂÎÁÒÕÖÉÔØ, ÞÔÏ ×ÁÛÁ ÔÅËÓÔÏ×ÁÑ ËÏÎÓÏÌØ ÏÓÔÁÌÁÓØ × ÒÅÖÉÍÅ ``ÚÁÂÌÏËÉÒÏ×ÁÎÎÏÇÏ control''. îÁÖÍÉÔÅ ÜÔÕ ËÌÁ×ÉÛÕ ÅÝ£ ÒÁÚ. ëÁË ÚÁÐÕÓÔÉÔØ XDM ×Ï ×ÒÅÍÑ ÚÁÇÒÕÚËÉ? åÓÔØ Ä×Å ÆÉÌÏÓÏÆÓËÉÅ ÛËÏÌÙ, ÐÒÏÐÏ×ÅÄÕÀÝÉÅ ÒÁÚÌÉÞÎÙÅ ÍÅÔÏÄÙ ÚÁÐÕÓËÁ xdm. ðÏÓÌÅÄÏ×ÁÔÅÌÉ ÏÄÎÏÇÏ ÔÅÞÅÎÉÑ ÚÁÐÕÓËÁÀÔ xdm ÉÚ /etc/ttys, ÉÓÐÏÌØÚÕÑ ÐÒÉ×ÏÄÉÍÙÊ ÐÒÉÍÅÒ, ÔÏÇÄÁ ËÁË ÄÒÕÇÉÅ ×ÓÔÁ×ÌÑÀÔ ÚÁÐÕÓË xdm × ÓËÒÉÐÔ rc.local ÉÌÉ X.sh, ÐÏÍÅÓÔÉ× ÐÏÓÌÅÄÎÉÊ × ËÁÔÁÌÏÇ /usr/local/etc/rc.d. ïÂÁ ÍÅÔÏÄÁ ÒÁ×ÎÏÐÒÁ×ÎÙ, É ÏÄÉÎ ÉÚ ÎÉÈ ÍÏÖÅÔ ÒÁÂÏÔÁÔØ × ÓÉÔÕÁÃÉÑÈ, Ó ËÏÔÏÒÙÍÉ ÎÅ ÓÐÒÁ×ÌÑÅÔÓÑ ÄÒÕÇÏÊ É ÎÁÏÂÏÒÏÔ. ÷ ÏÂÏÉÈ ÓÌÕÞÁÑ ÒÅÚÕÌØÔÁÔ ÏÄÉÎ É ÔÏÔ ÖÅ: X ×Ù×ÏÄÉÔ ÇÒÁÆÉÞÅÓËÏÅ ÐÒÉÇÌÁÛÅÎÉÅ login:. ðÌÀÓÏÍ ÍÅÔÏÄÁ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ ttys Ñ×ÌÑÅÔÓÑ ÄÏËÕÍÅÎÔÒÏ×ÁÎÉÅ ÔÏÇÏ, ÎÁ ËÁËÏÍ vty ÂÕÄÅÔ ÚÁÐÕÝÅÎ X É ÔÏ, ÞÔÏ ÏÔ×ÅÔÓÔ×ÅÎÎÏÓÔØ ÚÁ ÐÅÒÅÚÁÐÕÓË X-ÓÅÒ×ÅÒÁ ÐÒÉ ÚÁ×ÅÒÛÅÎÉÉ ÓÅÁÎÓÁ ÒÁÂÏÔÙ ÌÅÖÉÔ ÎÁ ÐÒÏÃÅÓÓÅ init. íÅÔÏÄ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ rc.local ÐÏÚ×ÏÌÑÅÔ ÐÒÏÓÔÏ ÐÒÅËÒÁÔÉÔØ ÒÁÂÏÔÕ xdm, ÅÓÌÉ ÐÒÉ ÚÁÐÕÓËÅ X ×ÏÚÎÉËÌÉ ËÁËÉÅ-ÎÉÂÕÄØ ÐÒÏÂÌÅÍÙ. éÚ rc.local xdm ÄÏÌÖÅÎ ÂÙÔØ ÚÁÐÕÝÅÎ ÂÅÚ ÁÒÇÕÍÅÎÔÏ×, (ÔÏ ÅÓÔØ ËÁË ÄÁÅÍÏÎ). xdm ÄÏÌÖÅÎ ÂÙÔØ ÚÁÐÕÝÅÎ ðïóìå ÚÁÐÕÓËÁ getty, ÉÎÁÞÅ ÏÎÉ ÂÕÄÕÔ ËÏÎÆÌÉËÔÏ×ÁÔØ, ÂÌÏËÉÒÕÑ ËÏÎÓÏÌØ. ìÕÞÛÅ ×ÓÅÇÏ ×ÙÄÅÒÖÁÔØ ÐÁÕÚÕ ÓÅËÕÎÄ ÎÁ 10 É ÐÏÔÏÍ ÚÁÐÕÓÔÉÔØ xdm. ÷ ÐÒÅÄÙÄÕÝÅÊ ×ÅÒÓÉÉ FAQ ÇÏ×ÏÒÉÌÏÓØ Ï ÎÅÏÂÈÏÄÉÍÏÓÔÉ ÄÏÂÁ×ÌÅÎÉÑ vt ËÏÔÏÒÙÊ ÂÕÄÅÔ ÉÓÐÏÌØÚÏ×ÁÔØ X, × ÆÁÊÌ /usr/X11R6/lib/X11/xdm/Xservers. îÁ ÓÁÍÏÍ ÄÅÌÅ ÄÅÌÁÔØ ÜÔÏ ÎÅÏÂÑÚÁÔÅÌØÎÏ: X ÂÕÄÅÔ ÉÓÐÏÌØÚÏ×ÁÔØ ÐÅÒ×ÙÊ Ó×ÏÂÏÄÎÙÊ vt, ËÏÔÏÒÙÊ ÓÍÏÖÅÔ ÎÁÊÔÉ. ðÒÉ ÚÁÐÕÓËÅ xconsole ×ÙÄÁ£ÔÓÑ ÓÏÏÂÝÅÎÉÅ ``Couldn't open console''. åÓÌÉ ×Ù ÚÁÐÕÓËÁÅÔÅ X ÞÅÒÅÚ ÓËÒÉÐÔ startx, ÐÒÁ×Á ÎÁ ÕÓÔÒÏÊÓÔ×Ï /dev/console ÎÅ ÉÚÍÅÎÑÀÔÓÑ, ÐÏÜÔÏÍÕ ÔÁËÉÅ ËÏÍÁÎÄÙ, ËÁË xterm -C É xconsole, ÎÅ ÂÕÄÕÔ ÒÁÂÏÔÁÔØ. üÔÏ ÚÁ×ÉÓÉÔ ÏÔ ÐÒÁ× ÄÏÓÔÕÐÁ, ÕÓÔÁÎÏ×ÌÅÎÎÙÈ ÄÌÑ ËÏÎÓÏÌÉ ÐÏ ÕÍÏÌÞÁÎÉÀ. ÷ ÍÎÏÇÏÐÏÌØÚÏ×ÁÔÅÌØÓËÏÊ ÓÉÓÔÅÍÅ ×Ï×ÓÅ ÎÅ ÎÕÖÎÏ, ÞÔÏÂÙ ÌÀÂÏÊ ÐÏÌØÚÏ×ÁÔÅÌØ ÍÏÇ ×Ù×ÏÄÉÔØ ÉÎÆÏÒÍÁÃÉÀ ÎÁ ÓÉÓÔÅÍÎÕÀ ËÏÎÓÏÌØ. äÌÑ ÐÏÌØÚÏ×ÁÔÅÌÅÊ, ×ÏÛÅÄÛÉÈ × ÓÉÓÔÅÍÕ ÞÅÒÅÚ VTY, ÄÌÑ ÒÅÛÅÎÉÑ ÜÔÏÊ ÐÒÏÂÌÅÍÙ ÓÕÝÅÓÔ×ÕÅÔ ÆÁÊÌ fbtab. ÷ ÏÂÝÅÍ, ÒÁÓËÏÍÍÅÎÔÉÒÕÊÔÅ ÓÔÒÏÞËÕ ×ÉÄÁ /dev/ttyv0 0600 /dev/console × ÆÁÊÌÅ /etc/fbtab, É ÜÔÏÇÏ ÂÕÄÅÔ ÄÏÓÔÁÔÏÞÎÏ ÄÌÑ ÔÏÇÏ, ÞÔÏÂÙ ×ÓÑËÉÊ, ËÔÏ ×ÏÛ£Ì × ÓÉÓÔÅÍÕ Ó /dev/ttyv0, ÂÕÄÅÔ ÉÍÅÔØ ÄÏÓÔÕÐ Ë ËÏÎÓÏÌÉ. íÏÑ ÍÙÛØ PS/2 × X ÒÁÂÏÔÁÅÔ ÎÅÐÒÁ×ÉÌØÎÏ. ÷ÐÏÌÎÅ ÍÏÖÅÔ ÂÙÔØ, ÞÔÏ ×ÁÛÁ ÍÙÛØ É Å£ ÄÒÁÊ×ÅÒ ÒÁÓÓÉÎÈÒÏÎÉÚÉÒÏ×ÁÌÉÓØ. ÷ ×ÅÒÓÉÑÈ 2.2.5 É ÂÏÌÅÅ ÒÁÎÎÉÈ ÜÔÏ ÍÏÖÅÔ ÐÒÏÉÚÏÊÔÉ ÐÒÉ ÐÅÒÅËÌÀÞÅÎÉÉ ÉÚ X × ×ÉÒÔÕÁÌØÎÙÊ ÔÅÒÍÉÎÁÌ É ÐÏÓÌÅÄÕÀÝÅÍ ×ÏÚ×ÒÁÝÅÎÉÉ × X. åÓÌÉ ÜÔÁ ÐÒÏÂÌÅÍÁ ×ÏÚÎÉËÁÅÔ ÄÏÓÔÁÔÏÞÎÏ ÞÁÓÔÏ, ÐÏÐÒÏÂÕÊÔÅ ÄÏÂÁ×ÉÔØ ÓÌÅÄÕÀÝÕÀ ÓÔÒÏËÕ × ÆÁÊÌ ËÏÎÆÉÇÕÒÁÃÉÉ ÑÄÒÁ É ÐÅÒÅËÏÍÐÉÌÉÒÏ×ÁÔØ ÅÇÏ. options PSM_CHECKSYNC åÓÌÉ Õ ×ÁÓ ÎÅÔ ÏÐÙÔÁ ÐÅÒÅËÏÍÐÉÌÑÃÉÉ ÑÄÒÁ, ÏÂÒÁÔÉÔÅÓØ Ë . ó ÜÔÏÊ ÏÐÃÉÅÊ ÐÒÏÂÌÅÍ Ó ÓÉÎÈÒÏÎÉÚÁÃÉÅÊ ÍÙÛÉ É Å£ ÄÒÁÊ×ÅÒÁ ÄÏÌÖÎÏ ÂÙÔØ ÍÅÎØÛÅ. åÓÌÉ, ÏÄÎÁËÏ, ÜÔÁ ÐÒÏÂÌÅÍÁ ×Ó£ ÖÅ ÏÓÔÁÌÁÓØ, Ý£ÌËÎÉÔÅ ÌÀÂÏÊ ËÎÏÐËÏÊ ÍÙÛÉ, ÎÅ Ä×ÉÇÁÑ ÅÊ, ÞÔÏ ÚÁÓÔÁ×ÉÔ ÍÙÛØ É ÄÒÁÊ×ÅÒ ÓÄÅÌÁÔØ ÐÏÐÙÔËÕ ÓÉÎÈÒÏÎÉÚÉÒÏ×ÁÔØÓÑ. úÁÍÅÔØÔÅ, ÞÔÏ × ÎÅËÏÔÏÒÙÈ ÓÉÓÔÅÍÁÈ ÜÔÁ ÏÐÃÉÑ ÍÏÖÅÔ ÎÅ ÒÁÂÏÔÁÔØ É ÐÒÉ×ÏÄÉÔØ Ë ÏÔËÌÀÞÅÎÉÀ ÆÕÎËÃÉÉ ``tap'' ÕÓÔÒÏÊÓÔ×Á ALPS GlidePoint, ÐÏÄËÌÀÞÅÎÎÏÇÏ Ë ÐÏÒÔÕ ÍÙÛÉ PS/2. ÷ ×ÅÒÓÉÑÈ 2.2.6 É ×ÙÛÅ, ÐÒÏ×ÅÒËÁ ÓÉÎÈÒÏÎÉÚÁÃÉÉ ÓÄÅÌÁÎÁ ÇÏÒÁÚÄÏ ÌÕÞÛÅ É ×ËÌÀÞÅÎÁ × ÓÔÁÎÄÁÒÔÎÙÊ ÄÒÁÊ×ÅÒ ÍÙÛÉ PS/2. ïÎÁ ÄÏÌÖÎÁ ÒÁÂÏÔÁÔØ ÄÁÖÅ Ó GlidePort. (ôÁË ËÁË ËÏÄ ÐÒÏ×ÅÒËÉ ÓÔÁÌ ÓÔÁÎÄÁÒÔÎÏÊ ÆÕÎËÃÉÅÊ, ÏÐÃÉÑ PSM_CHECKSYNC × ÜÔÉÈ ×ÅÒÓÉÑÈ ÎÅÖÏÓÔÕÐÎÁ.) ïÄÎÁËÏ × ÒÅÄËÉÈ ÓÌÕÞÁÑÈ ÄÒÁÊ×ÅÒ ÍÏÖÅÔ ÏÛÉÂÏÞÎÏ ÏÂÎÁÒÕÖÉ×ÁÔØ ÐÒÏÂÌÅÍÙ Ó ÓÉÎÈÒÏÎÉÚÁÃÉÅÊ, É ×Ù ÂÕÄÅÔÅ ×ÉÄÅÔØ ÔÁËÉÅ ÓÏÏÂÝÅÎÉÑ ÑÄÒÁ: psmintr: out of sync (xxxx != yyyy) Á ÔÁËÖÅ ÏÂÎÁÒÕÖÉÔÅ, ÞÔÏ ÍÙÛØ ÔÅÐÅÒØ ÒÁÂÏÔÁÅÔ ÎÅÐÒÁ×ÉÌØÎÏ. åÓÌÉ ÜÔÏ ÓÌÕÞÉÔÓÑ, ÏÔÍÅÎÉÔÅ ÐÒÏ×ÅÒËÕ ÓÏÇÌÁÓÏ×ÁÎÉÑ, ÕÓÔÁÎÏ×É× ÚÎÁÞÅÎÉÅ ÆÌÁÇÁ ÄÌÑ ÄÒÁÊ×ÅÒÁ ÍÙÛÉ PS/2 × 0x100. ÷ÏÊÄÉÔÅ × ËÏÎÆÉÇÕÒÁÔÏÒ UserConfig, ÚÁÄÁ× ÏÐÃÉÀ ``'' × ÐÒÉÇÌÁÛÅÎÉÉ ÚÁÇÒÕÚÞÉËÁ: boot: -c úÁÔÅÍ × ËÏÍÁÎÄÎÏÊ ÓÔÒÏËÅ UserConfig ÎÁÂÅÒÉÔÅ: UserConfig> flags psm0 0x100 UserConfig> quit íÏÑ ÍÙÛØ PS/2 ÏÔ MouseSystems ÐÏÈÏÖÅ, ÎÅ ÒÁÂÏÔÁÅÔ. âÙÌÏ ÎÅÓËÏÌØËÏ ÓÏÏÂÝÅÎÉÊ, ÞÔÏ ÎÅËÏÔÏÒÙÅ ÍÏÄÅÌÉ ÍÙÛÅÊ PS/2 ÏÔ MouseSystems ÒÁÂÏÔÁÀÔ ÔÏÌØËÏ × ÒÅÖÉÍÅ ``×ÙÓÏËÏÇÏ ÒÁÚÒÅÛÅÎÉÑ''. ÷ ÄÒÕÇÉÈ ÒÅÖÉÍÁÈ ËÕÒÓÏÒ ÍÙÛÉ ÐÏÓÔÏÑÎÎÏ ÐÒÙÇÁÅÔ × ×ÅÒÈÎÉÊ ÌÅ×ÙÊ ÕÇÏÌ ÜËÒÁÎÁ. ë ÓÏÖÁÌÅÎÉÀ, ÄÌÑ ×ÅÒÓÉÊ 2.0.X É 2.1.X ÒÅÛÅÎÉÑ ÜÔÏÊ ÐÒÏÂÌÅÍÙ ÎÅ ÓÕÝÅÓÔ×ÕÅÔ. äÌÑ ×ÅÒÓÉÊ ÏÔ 2.2 ÄÏ 2.2.5 ÐÒÉÌÏÖÉÔÅ ÓÌÅÄÕÀÝÉÊ ÐÁÔÞ Ë ÆÁÊÌÕ /sys/i386/isa/psm.c É ÐÅÒÅÓÔÒÏÊÔÅ ÑÄÒÏ. åÓÌÉ Õ ×ÁÓ ÎÅÔ ÏÐÙÔÁ ÐÅÒÅËÏÍÐÉÌÑÃÉÉ ÑÄÒÁ, ÏÂÒÁÔÉÔÅÓØ Ë . diff -u psm.c.orig psm.c @@ -766,6 +766,8 @@ if (verbose >= 2) log(LOG_DEBUG, "psm%d: SET_DEFAULTS return code:%04x\n", unit, i); + set_mouse_resolution(sc->kbdc, PSMD_RES_HIGH); + #if 0 set_mouse_scaling(sc->kbdc); /* 1:1 scaling */ set_mouse_mode(sc->kbdc); /* stream mode */ äÌÑ ×ÅÒÓÉÊ 2.2.6 É ×ÙÛÅ ÕËÁÖÉÔÅ ÆÌÁÇ 0x04 ÄÒÁÊ×ÅÒÕ ÍÙÛÉ PS/2 ÄÌÑ ÐÅÒÅ×ÏÄÁ Å£ × ÒÅÖÉÍ ×ÙÓÏËÏÇÏ ÒÁÚÒÅÛÅÎÉÑ. ÷ÏÊÄÉÔÅ × UserConfig, ÚÁÄÁ× ÏÐÃÉÀ ``'' × ÐÒÉÇÌÁÛÅÎÉÉ ÚÁÇÒÕÚÞÉËÁ: boot: -c úÁÔÅÍ × ËÏÍÁÎÄÎÏÊ ÓÔÒÏËÅ UserConfig ÎÁÂÅÒÉÔÅ: UserConfig> flags psm0 0x04 UserConfig> quit ÷ ÐÒÅÄÙÄÕÝÅÍ ÒÁÚÄÅÌÅ ÏÐÉÓÁÎÁ ×ÏÚÍÏÖÎÁÑ ÐÒÉÞÉÎÁ ÐÒÏÂÌÅÍ Ó ÍÙÛØÀ. ðÒÉ ËÏÍÐÉÌÑÃÉÉ ÐÒÉÌÏÖÅÎÉÊ ÄÌÑ X imake ÎÅ ÍÏÖÅÔ ÎÁÊÔÉ ÆÁÊÌ Imake.tmpl. çÄÅ ÏÎ ÎÁÈÏÄÉÔÓÑ? æÁÊÌ Imake.tmpl Ñ×ÌÑÅÔÓÑ ÞÁÓÔØÀ ÐÁËÅÔÁ Imake, ÓÔÁÎÄÁÒÔÎÏÇÏ ÉÎÓÔÒÕÍÅÎÔÁ ÄÌÑ ÐÏÓÔÒÏÅÎÉÑ X-ÐÒÉÌÏÖÅÎÉÊ. ïÎ, ÔÁËÖÅ ËÁË ÅÝ£ ÎÅÓËÏÌØËÏ ÚÁÇÏÌÏ×ÏÞÎÙÈ ÆÁÊÌÏ×, ÔÒÅÂÕÅÍÙÈ ÄÌÑ ÐÏÓÔÒÏÅÎÉÑ X-ÐÒÉÌÏÖÅÎÉÊ, ÓÏÄÅÒÖÉÔÓÑ × ÄÉÓÔÒÉÂÕÔÉ×Å ÐÒÏÇÒÁÍÍ X. ÷Ù ÍÏÖÅÔÅ ÉÈ ÐÒÏÉÎÓÔÁÌÌÉÒÏ×ÁÔØ ÉÚ sysinstall ÉÌÉ ×ÚÑÔØ ÉÚ ÄÉÓÔÒÉÂÕÔÉ×Á X. ëÁË ÐÏÍÅÎÑÔØ ÍÅÓÔÁÍÉ ËÎÏÐËÉ ÍÙÛÉ? ðÏÍÅÓÔÉÔÅ ËÏÍÁÎÄÕ xmodmap -e "pointer = 3 2 1" × ÏÄÉÎ ÉÚ ×ÁÛÉÈ ÓËÒÉÐÔÏ× .xinitrc ÉÌÉ .xsession. òÁÂÏÔÁ × ÓÅÔÉ çÄÅ ÍÏÖÎÏ ÎÁÊÔÉ ÉÎÆÏÒÍÁÃÉÀ Ï ``ÂÅÚÄÉÓËÏ×ÏÊ ÚÁÇÒÕÚËÅ''? ``âÅÚÄÉÓËÏ×ÁÑ ÚÁÇÒÕÚËÁ'' ÏÚÎÁÞÁÅÔ, ÞÔÏ ÍÁÛÉÎÁ Ó FreeBSD ÚÁÇÒÕÖÁÅÔÓÑ ÐÏ ÓÅÔÉ É ÞÉÔÁÅÔ ÎÅÏÂÈÏÄÉÍÙÅ ÆÁÊÌÙ Ó ÓÅÒ×ÅÒÁ, Á ÎÅ ÓÏ Ó×ÏÅÇÏ ÄÉÓËÁ. ðÏÄÒÏÂÎÏÅ ÏÐÉÓÁÎÉÅ ÅÓÔØ × ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÅÊ ÇÌÁ×Å òÕËÏ×ÏÄÓÔ×Á. íÏÖÅÔ ÌÉ ÍÁÛÉÎÁ Ó FreeBSD ÉÓÐÏÌØÚÏ×ÁÔØÓÑ ËÁË ÍÁÒÛÒÕÔÉÚÁÔÏÒ? óÔÁÎÄÁÒÔÙ Internet É ÏÐÙÔ ÐÒÁËÔÉÞÅÓËÏÊ ÒÁÂÏÔÙ ÎÅ ÐÏÚ×ÏÌÑÀÔ ÎÁÍ × FreeBSD ÄÅÒÖÁÔØ ÍÁÒÛÒÕÔÉÚÁÃÉÀ ÐÁËÅÔÏ× ×ËÌÀÞÅÎÎÏÊ ÐÏ ÕÍÏÌÞÁÎÉÀ. ÷Ù, ÍÏÖÅÔÅ ÓÄÅÌÁÔØ ÜÔÏ, ÉÚÍÅÎÉ× ÚÎÁÞÅÎÉÅ ÓÌÅÄÕÀÝÅÊ ÐÅÒÅÍÅÎÎÏÊ × ÆÁÊÌÅ rc.conf ÎÁ YES: gateway_enable=YES # Set to YES if this host will be a gateway üÔÏÔ ÐÁÒÁÍÅÔÒ ÉÚÍÅÎÉÔ ÚÎÁÞÅÎÉÅ ÓÉÓÔÅÍÎÏÊ ÐÅÒÅÍÅÎÎÏÊ net.inet.ip.forwarding ÎÁ 1. ëÒÏÍÅ ÔÏÇÏ, × ÂÏÌØÛÉÎÓÔ×Å ÓÌÕÞÁÅ× ×ÁÍ ÂÕÄÅÔ ÎÅÏÂÈÏÄÉÍÏ ÚÁÐÕÓÔÉÔØ ÐÒÏÇÒÁÍÍÕ ÍÁÒÛÒÕÔÉÚÁÃÉÉ, ÄÌÑ ÔÏÇÏ, ÞÔÏÂÙ ÏÂßÑ×ÉÔØ Ï ÐÏÑ×ÌÅÎÉÉ ÎÏ×ÏÇÏ ÍÁÒÛÒÕÔÉÚÁÔÏÒÁ ÄÒÕÇÉÍ ÓÉÓÔÅÍÁÍ × ×ÁÛÅÊ ÓÅÔÉ; FreeBSD ÐÏÓÔÁ×ÌÑÅÔÓÑ ÓÏ ÓÔÁÎÄÁÒÔÎÏÊ ÄÌÑ BSD-ÓÉÓÔÅÍ ÐÒÏÇÒÁÍÍÏÊ ÍÁÒÛÒÕÔÉÚÁÃÉÉ routed, × ÂÏÌÅÅ ÓÌÏÖÎÙÈ ÓÉÔÕÁÃÉÑÈ ×Ù ÍÏÖÅÔÅ ÐÏÐÒÏÂÏ×ÁÔØ GaTeD (ÄÏÓÔÕÐÎÙÊ ÐÏ FTP Ó ftp.gated.Merit.EDU), ËÏÔÏÒÙÊ ÐÏÄÄÅÒÖÉ×ÁÅÔ FreeBSD ÎÁÞÉÎÁÑ Ó ×ÅÒÓÉÉ 3_5Alpha7. íÙ ÏÂÑÚÁÎÙ ÐÒÅÄÕÐÒÅÄÉÔØ ×ÁÓ, ÞÔÏ ÄÁÖÅ ËÏÇÄÁ FreeBSD ÎÁÓÔÒÏÅÎÁ ÔÁËÉÍ ÏÂÒÁÚÏÍ, ÏÎÁ ÎÅ ÐÏÌÎÏÓÔØÀ ÓÏÏÔ×ÅÔÓÔ×ÕÅÔ ÓÔÁÎÄÁÒÔÁÍ Internet ÄÌÑ ÍÁÒÛÒÕÔÉÚÁÔÏÒÏ×, ÏÄÎÁËÏ ÄÌÑ ÏÂÙÞÎÏÊ ÒÁÂÏÔÙ ÜÔÏÇÏ È×ÁÔÁÅÔ. íÏÖÎÏ ÌÉ ÐÏÄËÌÀÞÉÔØ ÍÁÛÉÎÕ Ó Win95 Ë Internet Ó ÐÏÍÏÝØÀ FreeBSD? ëÁË ÐÒÁ×ÉÌÏ, ÔÅ, ËÔÏ ÚÁÄÁÅÔ ÔÁËÉÅ ×ÏÐÒÏÓÙ, ÉÍÅÀÔ ÄÏÍÁ Ä×Á ËÏÍÐØÀÔÅÒÁ, ÏÄÉÎ Ó FreeBSD, Á ÄÒÕÇÏÊ Ó Win95; ÉÄÅÑ ÓÏÓÔÏÉÔ × ÉÓÐÏÌØÚÏ×ÁÎÉÉ FreeBSD ÄÌÑ ÐÏÄËÌÀÞÅÎÉÑ Ë Internet, Á ÚÁÔÅÍ ÏÓÕÝÅÓÔ×ÌÑÔØ ×ÙÈÏÄ × Internet ÉÚ Windows95 ÞÅÒÅÚ FreeBSD. îÁ ÓÁÍÏÍ ÄÅÌÅ ÜÔÏ ÐÒÏÓÔÏ ÏÓÏÂÙÊ ÓÌÕÞÁÊ ÐÒÅÄÙÄÕÝÅÇÏ ×ÏÐÒÏÓÁ. óÕÝÅÓÔ×ÕÅÔ ÐÏÌÅÚÎÙÊ ÄÏËÕÍÅÎÔ, ÏÐÉÓÙ×ÁÀÝÉÊ, ËÁË ÎÁÓÔÒÏÉÔØ FreeBSD × ËÁÞÅÓÔ×Å ÍÁÒÛÒÕÔÉÚÁÔÏÒÁ Ó ×ÙÈÏÄÏÍ ÐÏ ÐÒÏÔÏËÏÌÕ PPP. úáíåþáîéå: ðÒÉ ÜÔÏÍ ÔÒÅÂÕÅÔÓÑ ÉÍÅÔØ ÐÏ ËÒÁÊÎÅÊ ÍÅÒÅ Ä×Á ÆÉËÓÉÒÏ×ÁÎÎÙÈ IP ÁÄÒÅÓÁ, Á ÍÏÖÅÔ ÂÙÔØ, ÔÒÉ ÉÌÉ ÂÏÌØÛÅ, × ÚÁ×ÉÓÉÍÏÓÔÉ ÏÔ ÔÏÇÏ, ÓËÏÌØËÏ ÍÁÛÉÎ Ó Windows ×Ù ÈÏÔÉÔÅ ÐÏÄËÌÀÞÉÔØ. ëÁË ×ÁÒÉÁÎÔ, ÅÓÌÉ Õ ×ÁÓ ÎÅÔ ÆÉËÓÉÒÏ×ÁÎÎÙÈ IP ÁÄÒÅÓÏ×, ×Ù ÍÏÖÅÔÅ ÉÓÐÏÌØÚÏ×ÁÔØ ÏÄÎÕ ÉÚ ÞÁÓÔÎÙÈ IP ÐÏÄÓÅÔÅÊ É ÕÓÔÁÎÏ×ÉÔØ ÐÒÏËÓÉ ÔÉÐÁ SQUID ÉÌÉ TIS ÎÁ ÍÁÛÉÎÅ Ó FreeBSD. ðÏÓÍÏÔÒÉÔÅ ÔÁËÖÅ ÒÁÚÄÅÌ Ï . ðÏÞÅÍÕ ÎÅ ÐÒÏÈÏÄÉÔ ËÏÍÐÉÌÑÃÉÑ ÐÏÓÌÅÄÎÅÊ ×ÅÒÓÉÉ BIND ÏÔ ISC? üÔÏ - ÒÅÚÕÌØÔÁÔ ËÏÎÆÌÉËÔÁ ÍÅÖÄÕ ÆÁÊÌÏÍ ``cdefs.h'' × ÄÉÓÔÒÉÂÕÔÉ×Å É ÔÅÍ, ÞÔÏ ÐÏÓÔÁ×ÌÑÅÔÓÑ Ó FreeBSD. äÏÓÔÁÔÏÞÎÏ ÕÄÁÌÉÔØ ÆÁÊÌ compat/include/sys/cdefs.h. ðÏÄÄÅÒÖÉ×ÁÅÔ ÌÉ FreeBSD ÐÒÏÔÏËÏÌÙ SLIP É PPP? äÁ. ðÏÓÍÏÔÒÉÔÅ ÓÔÒÁÎÉÃÙ ÓÐÒÁ×ÏÞÎÉËÁ ÐÏ ËÏÍÁÎÄÁÍ slattach, sliplogin, pppd É ppp. Pppd É ppp ÍÏÇÕÔ ÏÂÓÌÕÖÉ×ÁÔØ ËÁË ×ÈÏÄÑÝÉÅ, ÔÁË É ÉÓÈÏÄÑÝÉÅ ÓÏÅÄÉÎÅÎÉÑ. Sliplogin ÉÍÅÅÔ ÄÅÌÏ ÉÓËÌÀÞÉÔÅÌØÎÏ ÓÏ ×ÈÏÄÑÝÉÍÉ ÓÏÅÄÉÎÅÎÉÑÍ, Á slattach - ÔÏÌØËÏ Ó ÉÓÈÏÄÑÝÉÍÉ. üÔÉ ÐÒÏÇÒÁÍÍÙ ÏÐÉÓÁÎÙ × ÓÌÅÄÕÀÝÉÈ ÒÁÚÄÅÌÁÈ ÒÕËÏ×ÏÄÓÔ×Á: ðÒÏÔÏËÏÌ SLIP (ÓÅÒ×ÅÒ) ðÒÏÔÏËÏÌ SLIP (ËÌÉÅÎÔ) ðÒÏÔÏËÏÌ PPP (ÒÅÖÉÍ ÑÄÒÁ) ðÒÏÔÏËÏÌ PPP (ÒÅÖÉÍ ÐÏÌØÚÏ×ÁÔÅÌÑ) åÓÌÉ ×Ù ÉÍÅÅÔÅ ÄÏÓÔÕÐ × Internet ÞÅÒÅÚ ËÏÍÁÎÄÎÕÀ ÓÔÒÏËÕ ÏÂÏÌÏÞËÉ, ×ÁÍ ÍÏÖÅÔ ÐÏÄÏÊÔÉ slirp. ó ÅÇÏ ÐÏÍÏÝØÀ ÍÏÖÎÏ ÐÏÌÕÞÉÔØ (ÏÇÒÁÎÉÞÅÎÎÙÊ) ÄÏÓÔÕÐ Ë ÔÁËÉÍ ÓÌÕÖÂÁÍ, ËÁË ftp É http ÐÒÑÍÏ Ó ×ÁÛÅÊ ÍÁÛÉÎÙ. ðÏÄÄÅÒÖÉ×ÁÅÔ ÌÉ FreeBSD NAT ÉÌÉ Masquerading? åÓÌÉ Õ ×ÁÓ ÅÓÔØ ÌÏËÁÌØÎÁÑ ÓÅÔØ (ÏÄÎÁ ÉÌÉ ÂÏÌØÛÅ ÍÁÛÉÎ), ÎÏ ÔÏÌØËÏ ÏÄÉÎ IP ÁÄÒÅÓ, ÐÒÅÄÏÓÔÁ×ÌÅÎÎÙÊ ÐÒÏ×ÁÊÄÅÒÏÍ, ×ÁÓ ÍÏÖÅÔ ÐÒÉ×ÌÅÞØ natd. Natd ÐÏÚ×ÏÌÑÅÔ ÐÏÄËÌÀÞÉÔØ ×ÓÀ ÓÅÔØ Ë Internet, ÉÓÐÏÌØÚÕÑ ÅÄÉÎÓÔ×ÅÎÎÙÊ IP ÁÄÒÅÓ. ðÒÏÇÒÁÍÍÁ ppp ÉÍÅÅÔ ÐÏÈÏÖÕÀ ×ÓÔÒÏÅÎÎÕÀ ×ÏÚÍÏÖÎÏÓÔØ ÞÅÒÅÚ ÐÁÒÁÍÅÔÒ . ÷ ÏÂÏÉÈ ÓÌÕÞÁÑÈ ÉÓÐÏÌØÚÕÅÔÓÑ ÂÉÂÌÉÏÔÅËÁ libalias. îÅ ÍÏÇÕ ÓÏÚÄÁÔØ ÕÓÔÒÏÊÓÔ×Ï /dev/ed0! ÷ ÓÔÁÎÄÁÒÔÅ ÓÅÔÅ×ÏÇÏ ×ÚÁÉÍÏÄÅÊÓÔ×ÉÑ âÅÒËÌÉ ÓÅÔÅ×ÙÅ ÉÎÔÅÒÆÅÊÓÙ ÎÁÐÒÑÍÕÀ ÄÏÓÔÕÐÎÙ ÔÏÌØËÏ ÑÄÒÕ. úÁ ÄÏÐÏÌÎÉÔÅÌØÎÏÊ ÉÎÆÏÒÍÁÃÉÅÊ ÏÂÒÁÔÉÔÅÓØ Ë ÆÁÊÌÕ /etc/rc.network É ÓÔÒÁÎÉÃÁÍ ÓÐÒÁ×ÏÞÎÉËÁ, ÏÐÉÓÙ×ÁÀÝÉÍ ÒÁÚÌÉÞÎÙÅ ÓÅÔÅ×ÙÅ ÐÒÏÇÒÁÍÍÙ, ÕÐÏÍÉÎÁÅÍÙÅ ÚÄÅÓØ. åÓÌÉ ×Ó£ ÜÔÏ ÏÓÔÁ×ÉÔ ×ÁÓ × ÎÅÄÏÕÍÅÎÉÉ, ÐÏÞÉÔÁÊÔÅ ËÎÉÇÕ, ÏÐÉÓÙ×ÁÀÝÕÀ ÁÄÍÉÎÉÓÔÒÉÒÏ×ÁÎÉÅ ÓÅÔÉ × ÄÒÕÇÏÊ BSD-ÐÏÄÏÂÎÏÊ ÏÐÅÒÁÃÉÏÎÎÏÊ ÓÉÓÔÅÍÅ; Ó ÎÅËÏÔÏÒÙÍÉ ÎÅÚÎÁÞÉÔÁÌØÎÙÍÉ ÉÓËÌÀÞÅÎÉÑÍÉ, ÁÄÍÉÎÉÓÔÒÉÒÏ×ÁÎÉÅ ÓÅÔÉ ×Ï FreeBSD × ÏÓÎÏ×ÎÏÍ ÓÏ×ÐÁÄÁÅÔ Ó SunOS 4.0 É Ultrix. ëÁË ÎÁÓÔÒÏÉÔØ ÁÌÉÁÓ ÎÁ Ethernet? äÏÂÁרÔÅ ``netmask 0xffffffff'' × ËÏÍÁÎÄÎÏÊ ÓÔÒÏËÅ ifconfig ÔÁË, ËÁË ÜÔÏ ÓÄÅÌÁÎÏ ÚÄÅÓØ: ifconfig ed0 alias 204.141.95.2 netmask 0xffffffff ëÁË ÚÁÓÔÁ×ÉÔØ ÁÄÁÐÔÅÒ 3C503 ÉÓÐÏÌØÚÏ×ÁÔØ ÄÒÕÇÏÊ ÔÉÐ ÓÅÔÅ×ÏÇÏ ÒÁÚߣÍÁ? åÓÌÉ ×Ù ÈÏÔÉÔÅ ÚÁÄÅÊÓÔ×Ï×ÁÔØ ÄÒÕÇÏÊ ÒÁÚߣÍ, ÔÏ ÄÏÌÖÎÙ ÕËÁÚÁÔØ ÄÏÐÏÌÎÉÔÅÌØÎÙÊ ÐÁÒÁÍÅÔÒ × ËÏÍÁÎÄÎÏÊ ÓÔÒÏËÅ ifconfig. òÁÚߣÍÏÍ ÐÏ ÕÍÏÌÞÁÎÉÀ Ñ×ÌÑÅÔÓÑ ``link0''. þÔÏÂÙ ÚÁÄÅÊÓÔ×Ï×ÁÔØ ÒÁÚß£Í AUI, Á ÎÅ BNC, ÉÓÐÏÌØÚÕÊÔÅ ``link2''. üÔÉ ÆÌÁÇÉ ÄÏÌÖÎÙ ÂÙÔØ ÕËÁÚÁÎÙ Ó ÐÏÍÏÝØÀ ÐÅÒÅÍÅÎÎÙÈ ifconfig_* × /etc/rc.conf. õ ÍÅÎÑ ÐÒÏÂÌÅÍÙ ÐÒÉ ÒÁÂÏÔÅ NFS ×Ï FreeBSD. îÅËÏÔÏÒÙÅ ÓÅÔÅ×ÙÅ ÁÄÁÐÔÅÒÙ ÒÁÂÏÔÁÀÔ (ÍÑÇËÏ ÇÏ×ÏÒÑ) ÈÕÖÅ, ÞÅÍ ÄÒÕÇÉÅ ÞÔÏ ÍÏÖÅÔ ÉÎÏÇÄÁ ×ÙÚÙ×ÁÔØ ÐÒÏÂÌÅÍÙ ÐÒÉ ÒÁÂÏÔÅ ÐÒÉÌÏÖÅÎÉÊ ÔÉÐÁ NFS, ÉÎÔÅÎÓÉ×ÎÏ ÉÓÐÏÌØÚÕÀÝÉÈ ÓÅÔØ. ðÏÄÒÏÂÎÏÓÔÉ ÏÐÉÓÁÎÙ × ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÅÊ ÇÌÁ×Å òÕËÏ×ÏÄÓÔ×Á, ÐÏÓ×ÑÝ£ÎÎÏÊ NFS. ðÏÞÅÍÕ Ñ ÎÅ ÍÏÇÕ ÓÍÏÎÔÉÒÏ×ÁÔØ ÄÉÓË Linux ÐÏ NFS? îÅËÏÔÏÒÙÅ ×ÅÒÓÉÉ NFS ÄÌÑ Linux ÐÏÄÄÅÒÖÉ×ÁÀÔ ÚÁÐÒÏÓÙ ÎÁ ÍÏÎÔÉÒÏ×ÁÎÉÅ ÔÏÌØËÏ Ó ÐÒÉ×ÉÌÅÇÉÒÏ×ÁÎÎÏÇÏ ÐÏÒÔÁ; ÐÏÐÒÏÂÕÊÔÅ mount -o -P linuxbox:/blah /mnt ðÏÞÅÍÕ Ñ ÎÅ ÍÏÇÕ ÓÍÏÎÔÉÒÏ×ÁÔØ ÄÉÓË Sun ÐÏ NFS? òÁÂÏÞÉÅ ÓÔÁÎÃÉÉ Sun ÐÏÄ ÕÐÒÁ×ÌÅÎÉÅÍ SunOS 4.X ÐÏÄÄÅÒÖÉ×ÁÀÔ ÚÁÐÒÏÓÙ ÎÁ ÍÏÎÔÉÒÏ×ÁÎÉÅ ÔÏÌØËÏ Ó ÐÒÉ×ÉÌÅÇÉÒÏ×ÁÎÎÏÇÏ ÐÏÒÔÁ; ÐÏÐÒÏÂÕÊÔÅ mount -o -P sunbox:/blah /mnt ðÒÏÂÌÅÍÙ ÐÒÉ Ó×ÑÚÉ ÐÏ PPP Ó ÍÁÛÉÎÁÍÉ NeXTStep. ðÏÐÒÏÂÕÊÔÅ ÏÔÍÅÎÉÔØ ×ÓÅ ÒÁÓÛÉÒÅÎÉÑ TCP × /etc/rc.conf, ÉÚÍÅÎÉ× ÚÎÁÞÅÎÉÅ ÓÌÅÄÕÀÝÅÊ ÐÅÒÅÍÅÎÎÏÊ × NO: tcp_extensions=NO íÁÒÛÒÕÔÉÚÁÔÏÒÙ Annex ÆÉÒÍÙ Xylogic ÎÅ ÒÁÂÏÔÁÀÔ ÐÏ ÜÔÏÊ ÖÅ ÐÒÉÞÉÎÅ, ÐÏÜÔÏÍÕ ÐÒÉ ÐÏÄËÌÀÞÅÎÉÉ Ë ÎÉÍ ×ÁÍ ÎÕÖÎÏ ÐÒÏÄÅÌÁÔØ ÔÏ ÖÅ ÓÁÍÏÅ. ëÁË ×ËÌÀÞÉÔØ ÐÏÄÄÅÒÖËÕ multicast IP? òÁÂÏÔÁ Ó ÍÎÏÇÏÁÄÒÅÓÎÏÊ ÒÁÓÓÙÌËÏÊ ÐÏ ÕÍÏÌÞÁÎÉÀ ÐÏÌÎÏÓÔØÀ ÐÏÄÄÅÒÖÉ×ÁÅÔÓÑ ×ÅÒÓÉÑÍÉ FreeBSD 2.0 É ×ÙÛÅ. åÓÌÉ ×Ù ÈÏÔÉÔÅ ÉÓÐÏÌØÚÏ×ÁÔØ ×ÁÛ ËÏÍÐØÀÔÅÒ ËÁË ÍÁÒÛÒÕÔÉÚÁÔÏÒ ÍÎÏÇÏÁÄÒÅÓÎÏÇÏ ÔÒÁÆÉËÁ, ×ÁÍ ÎÕÖÎÏ ÐÅÒÅËÏÍÐÉÌÉÒÏ×ÁÔØ ÑÄÒÏ Ó ×ËÌÀÞÅÎÎÏÊ ÏÐÃÉÅÊ MROUTING É ÚÁÐÕÓÔÉÔØ mrouted. ÷ÅÒÓÉÉ FreeBSD 2.2 É ×ÙÛÅ ÂÕÄÕÔ ÚÁÐÕÓËÁÔØ mrouted ×Ï ×ÒÅÍÑ ÚÁÇÒÕÚËÉ, ÅÓÌÉ ÐÅÒÅÍÅÎÎÁÑ mrouted_enable × ÆÁÊÌÅ /etc/rc.conf ÕÓÔÁÎÏ×ÌÅÎÁ × ÚÎÁÞÅÎÉÅ "YES". ðÒÉÌÏÖÅÎÉÑ MBONE ÎÁÈÏÄÑÔÓÑ × Ó×ÏÅÊ ËÁÔÅÇÏÒÉÉ ÐÏÒÔÏ×, mbone. åÓÌÉ ×Ù ÉÝÅÔÅ ÐÒÉÌÏÖÅÎÉÑ ÄÌÑ ÏÒÇÁÎÉÚÁÃÉÉ ËÏÎÆÅÒÅÎÃÉÊ vic É vat, ÐÏÓÍÏÔÒÉÔÅ ÔÁÍ! âÏÌÅÅ ÐÏÄÒÏÂÎÁÑ ÉÎÆÏÒÍÁÃÉÑ ÒÁÓÐÏÌÁÇÁÅÔÓÑ ÎÁ ÓÅÒ×ÅÒÅ Mbone Information Web. ëÁËÉÅ ÓÅÔÅ×ÙÅ ÁÄÁÐÔÅÒÙ ÓÄÅÌÁÎÙ ÎÁ ÎÁÂÏÒÅ ÍÉËÒÏÓÈÅÍ DEC PCI? ÷ÏÔ ÓÐÉÓÏË, ÓÏÓÔÁ×ÌÅÎÎÙÊ çÌÅÎÏÍ æÏÓÔÅÒÏÍ (Glen Foster), Ó ÎÅËÏÔÏÒÙÍÉ ÎÅÚÎÁÞÉÔÅÌØÎÙÍÉ ÄÏÂÁ×ÌÅÎÉÑÍÉ: ðÒÏÉÚ×ÏÄÉÔÅÌØ íÏÄÅÌØ ---------------------------------------------- ASUS PCI-L101-TB Accton ENI1203 Cogent EM960PCI Compex ENET32-PCI D-Link DE-530 Dayna DP1203, DP2100 DEC DE435 Danpex EN-9400P3 JCIS Condor JC1260 Linksys EtherPCI Mylex LNP101 SMC EtherPower 10/100 (Model 9332) SMC EtherPower (Model 8432) TopWare TE-3500P Zynx ZX342 ðÏÞÅÍÕ Ñ ÄÏÌÖÅÎ ÉÓÐÏÌØÚÏ×ÁÔØ FQDN ÄÌÑ ÈÏÓÔÏ× ÎÅ × ÍÏÅÊ ÓÅÔÉ? ÷Ù, ÎÁ×ÅÒÎÏÅ, ÏÂÎÁÒÕÖÉÌÉ, ÞÔÏ ÈÏÓÔ, Ë ËÏÔÏÒÏÍÕ ×Ù ÏÂÒÁÔÉÌÉÓØ, ÏËÁÚÁÌÓÑ ÎÁ ÓÁÍÏÍ ÄÅÌÅ × ÄÒÕÇÏÍ ÄÏÍÅÎÅ; ÎÁÐÒÉÍÅÒ, ÅÓÌÉ ×Ù ÎÁÈÏÄÉÔÅÓØ × ÄÏÍÅÎÅ foo.bar.edu É ÈÏÔÉÔÅ ÏÂÒÁÔÔÉÔØÓÑ Ë ÈÏÓÔÕ ``mumble'' × ÄÏÍÅÎÅ bar.edu, ÔÏ ÄÏÌÖÎÙ ÕËÁÚÁÔØ ÅÇÏ ÐÏÌÎÏÅ ÄÏÍÅÎÎÏÅ ÉÍÑ, ``mumble.bar.edu'', Á ÎÅ ÐÒÏÓÔÏ ``mumble''. ôÒÁÄÉÃÉÏÎÎÏ, ÜÔÏ ÐÏÚ×ÏÌÑÌ ÄÅÌÁÔØ ÒÅÓÏÌ×ÅÒ BSD BIND. ïÄÎÁËÏ ÔÅËÕÝÁÑ ×ÅÒÓÉÑ bind, ÐÏÓÔÁ×ÌÑÅÍÁÑ Ó FreeBSD, ÂÏÌØÛÅ ÎÅ ÄÏÂÁ×ÌÑÅÔ ÉÍÅÎÁ ÄÏÍÅÎÏ×, ÏÔÌÉÞÁÀÝÉÈÓÑ ÏÔ ÔÏÇÏ, × ËÏÔÏÒÏÍ ×Ù ÎÁÈÏÄÉÔÅÓØ, ÄÌÑ ÎÅ ÐÏÌÎÏÓÔØÀ ÕËÁÚÁÎÎÙÈ ÉͣΠÈÏÓÔÏ×. ôÁË ÞÔÏ ÎÅÐÏÌÎÏ ÕËÁÚÁÎÎÙÊ ÈÏÓÔ mumble ÂÕÄÅÔ ÎÁÊÄÅÎ ÌÉÂÏ ËÁË mumble.foo.bar.edu, ÌÉÂÏ ÂÕÄÅÔ ÉÓËÁÔØÓÑ × ËÏÒÎÅ×ÏÍ ÄÏÍÅÎÅ. üÔÏ ÏÔÌÉÞÁÅÔÓÑ ÏÔ ÐÒÅÄÙÄÕÝÅÇÏ ÐÏ×ÅÄÅÎÉÑ, ÐÒÉ ËÏÔÏÒÏÍ ÐÏÉÓË ÐÒÏÄÏÌÖÁÌÓÑ × mumble.bar.edu, É mumble.edu. ðÏÓÍÏÔÒÉÔÅ RFC 1535 Ï ÐÒÉÞÉÎÁÈ ÏÂßÑ×ÌÅÎÉÑ ÔÁËÏÇÏ ÐÏ×ÅÄÅÎÉÑ ÐÌÏÈÏÊ ÐÒÁËÔÉËÏÊ É ÄÁÖÅ ÏÛÉÂËÏÊ × ÂÅÚÏÐÁÓÎÏÓÔÉ. ëÁË ÈÏÒÏÛÅÅ ÒÅÛÅÎÉÅ, ×Ù ÍÏÖÅÔÅ ÐÏÍÅÓÔÉÔØ ÓÔÒÏËÕ search foo.bar.edu bar.edu ×ÍÅÓÔÏ ÒÁÎÅÅ ÉÓÐÏÌØÚÕÅÍÏÊ domain foo.bar.edu × ÆÁÊÌ /etc/resolv.conf. ïÄÎÁËÏ ÕÄÏÓÔÏ×ÅÒØÔÅÓØ, ÞÔÏ ÐÏÒÑÄÏË ÐÏÉÓËÁ ÎÅ ÎÁÒÕÛÁÅÔ ``ÇÒÁÎÉà ÐÏÌÎÏÍÏÞÉÊ ÍÅÖÄÕ ÍÅÓÔÎÙÍ É ×ÎÅÛÎÉÍ ÁÄÍÉÎÉÓÔÒÉÒÏ×ÁÎÉÅÍ'', ËÁË ÜÔÏ ÎÁÚ×ÁÎÏ × RFC 1535. ``Permission denied'' ÄÌÑ ÌÀÂÙÈ ÄÅÊÓÔ×ÉÊ × ÓÅÔÉ. åÓÌÉ ×Ù ËÏÍÐÉÌÉÒÏ×ÁÌÉ ÑÄÒÏ Ó ÏÐÃÉÅÊ IPFIREWALL, ÉÍÅÊÔÅ × ×ÉÄÕ, ÞÔÏ ÐÏÌÉÔÉËÁ ÐÏ ÕÍÏÌÞÁÎÉÀ ÎÁÓÔÒÏÅÎÁ ËÁË × 2.1.7R (ÏÎÁ ÎÁ ÓÁÍÏÍ ÄÅÌÅ ÉÚÍÅÎÉÌÁÓØ ×Ï ×ÒÅÍÑ ÒÁÚÒÁÂÏÔËÉ 2.1-STABLE), ÔÏ ÅÓÔØ ÕËÁÚÁÎ ÚÁÐÒÅÔ ÎÁ ÐÒÏÈÏÖÄÅÎÉÅ ×ÓÅÈ ÐÁËÅÔÏ×, ËÏÔÏÒÙÅ Ñ×ÎÏ ÎÅ ÒÁÚÒÅÛÅÎÙ. åÓÌÉ ×Ù ÓÌÕÞÁÊÎÏ ÎÅ×ÅÒÎÏ ÏÔËÏÎÆÉÇÕÒÉÒÏ×ÁÌÉ ÂÒÁÎÄÍÁÕÜÒ, ÔÏ ÄÌÑ ×ÏÓÓÔÁÎÏ×ÌÅÎÉÑ ÒÁÂÏÔÏÓÐÏÓÏÂÎÏÓÔØ ÓÅÔÉ ÄÁÊÔÅ ÔÁËÕÀ ËÏÍÁÎÄÕ, ×ÏÊÄÑ ÓÕÐÅÒÐÏÌØÚÏ×ÁÔÅÌÅÍ: ipfw add 65534 allow all from any to any ôÁËÖÅ ×Ù ÍÏÖÅÔÅ ÕÓÔÁÎÏ×ÉÔØ "firewall_type='open'" × ÆÁÊÌÅ /etc/rc.conf. âÏÌÅÅ ÐÏÄÒÏÂÎÁÑ ÉÎÆÏÒÍÁÃÉÑ Ï ËÏÎÆÉÇÕÒÉÒÏ×ÁÎÉÉ ÂÒÁÎÄÍÁÕÜÒÁ × FreeBSD ÎÁÈÏÄÉÔÓÑ × ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÅÍ ÒÁÚÄÅÌÅ òÕËÏ×ÏÄÓÔ×Á. ëÁËÕÀ ÎÁÇÒÕÚËÕ ×ÙÚÙ×ÁÅÔ ÉÓÐÏÌØÚÏ×ÁÎÉÅ IPFW? ïÔ×ÅÔ ÎÁ ÜÔÏÔ ×ÏÐÒÏÓ ÚÁ×ÉÓÉÔ ÇÌÁ×ÎÙÍ ÏÂÒÁÚÏÍ ÏÔ ÎÁÂÏÒÁ ÐÒÁ×ÉÌ É ÐÒÏÉÚ×ÏÄÉÔÅÌØÎÏÓÔÉ ÐÒÏÃÅÓÓÏÒÁ. äÌÑ ÂÏÌØÛÉÎÓÔ×Á ÐÒÉÌÏÖÅÎÉÊ, ÉÍÅÀÝÉÈ ÄÅÌÏ Ó ethernet É ÐÒÏÓÔÙÍ ÎÁÂÏÒÏÍ ÐÒÁ×ÉÌ, ÏÔ×ÅÔ: ÎÅÚÎÁÞÉÔÅÌØÎÏ. äÌÑ ÔÅÈ, ËÏÍÕ ÎÕÖÎÙ ÒÅÁÌØÎÙÅ ÃÉÆÒÙ ÄÌÑ ÕÄÏ×ÌÅÔ×ÏÒÅÉÑ ÌÀÂÏÐÙÔÓÔ×Á, ÞÉÔÁÊÔÅ ÄÁÌØÛÅ. óÌÅÄÕÀÝÉÅ ÉÚÍÅÒÅÎÉÑ ÂÙÌÉ ÓÄÅÌÁÎÙ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ 2.2.5-STABLE ÎÁ ÍÁÛÉÎÅ 486-66. IPFW ÂÙÌ ÍÏÄÉÆÉÃÉÒÏ×ÁÎ ÄÌÑ ÉÚÍÅÒÅÎÉÑ ×ÒÅÍÅÎÉ, ÚÁÔÒÁÞÉ×ÁÅÍÏÇÏ ×ÎÕÔÒÉ ÐÒÏÃÅÄÕÒÙ ip_fw_chk É ×Ù×ÏÄÁ ÒÅÚÕÌØÔÁÔÏ× ÎÁ ËÏÎÓÏÌØ ËÁÖÄÕÀ ÔÙÓÑÞÕ ÐÁËÅÔÏ×. ôÅÓÔÉÒÏ×ÁÌÉÓØ Ä×Á ÎÁÂÏÒÁ ÐÏ 1000 ÐÒÁ×ÉÌ × ËÁÖÄÏÍ. ðÅÒ×ÙÊ ÎÁÂÏÒ ÂÙÌ ÐÒÅÄÎÁÚÎÁÞÅÎ ÄÌÑ ÄÅÍÏÎÓÔÒÁÃÉÉ ÎÁÉÈÕÄÛÅÇÏ ÓÌÕÞÁÑ, ÐÏ×ÔÏÒÑÑ ÕÓÌÏ×ÉÅ ipfw add deny tcp from any to any 55555 üÔÏ ÎÁÉÈÕÄÛÉÊ ÓÌÕÞÁÊ, ÔÁË ËÁË ×ÓÅ ÕÓÌÏ×ÉÑ IPFW ÂÕÄÕÔ ÐÒÏ×ÅÒÅÎÙ ÐÅÒÅÄ ÔÅÍ, ËÁË ÂÕÄÅÔ ÐÒÉÎÑÔÏ ÏËÏÎÞÁÔÅÌØÎÏÅ ÒÅÛÅÎÉÅ Ï ÔÏÍ, ÞÔÏ ÐÁËÅÔ ÎÅ ÓÏÏÔ×ÅÔÓÔ×ÕÅÔ ÕÓÌÏ×ÉÀ (ÍÙ ÍÅÎÑÌÉ ÎÏÍÅÒ ÐÏÒÔÁ). ðÏÓÌÅ 999 ÐÏ×ÔÏÒÅÎÉÊ ÜÔÏÇÏ ÕÓÌÏ×ÉÑ ÎÁÈÏÄÉÌÏÓØ ÐÒÁ×ÉÌÏ allow ip from any to any. ÷ÔÏÒÏÊ ÎÁÂÏÒ ÂÙÌ ÐÒÅÄÎÁÚÎÁÞÅÎ ÄÌÑ ÂÙÓÔÒÏÇÏ ÐÒÅÒÙ×ÁÎÉÑ ÐÒÏÃÅÓÓÁ ÐÒÏ×ÅÒËÉ ÕÓÌÏ×ÉÊ: ipfw add deny ip from 1.2.3.4 to 1.2.3.4 îÅÐÏÄÈÏÄÑÛÉÊ IP-ÁÄÒÅÓ ÉÓÔÏÞÎÉËÁ ÄÌÑ ÕËÁÚÁÎÎÏÇÏ ÕÓÌÏ×ÉÑ ÂÙÓÔÒÏ ×ÙÚÙ×ÁÅÔ ÐÒÏÐÕÓË ÜÔÏÇÏ ÐÒÁ×ÉÌÁ. ëÁË É ÒÁÎÅÅ, ÐÏÓÌÅÄÎÉÍ ÐÒÁ×ÉÌÏÍ ÂÙÌÏ allow ip from any to any. úÁÔÒÁÔÙ ÎÁ ÏÂÒÁÂÏÔËÕ ÐÁËÅÔÁ × ÐÅÒ×ÏÍ ÓÌÕÞÁÅ ÂÙÌÏ ÐÒÉÍÅÒÎÏ 2.703 ÍÓ/ÐÁËÅÔ, ÉÌÉ ÐÒÉÍÅÒÎÏ 2.7 ÍÉËÒÏÓÅËÕÎÄ ÎÁ ÐÒÁ×ÉÌÏ. ôÁËÉÍ ÏÂÒÁÚÏÍ, ÔÅÏÒÅÔÉÞÅÓËÉÊ ÐÒÅÄÅÌ ÓËÏÒÏÓÔÉ ÏÂÒÁÂÏÔËÉ ÐÁËÅÔÏ× Ó ÜÔÉÍÉ ÐÒÁ×ÉÌÁÍÉ ÒÁ×ÅÎ ÐÒÉÍÅÒÎÏ 370 ÐÁËÅÔÁÍ × ÓÅËÕÎÄÕ. ðÒÅÄÐÏÌÁÇÁÑ ÉÓÐÏÌØÚÏ×ÁÎÉÅ ethernet 10íÂ/Ó Ó ÒÁÚÍÅÒÏÍ ÐÁËÅÔÁ ÐÒÉÍÅÒÎÏ 1500, ÍÙ ÍÏÖÅÍ ÄÏÓÔÉÇÎÕÔØ ÔÏÌØËÏ 55.5% ÉÓÐÏÌØÚÏ×ÁÎÉÑ ÐÒÏÐÕÓËÎÏÊ ÓÐÏÓÏÂÎÏÓÔÉ. ÷ ÐÏÓÌÅÄÎÅÍ ÓÌÕÞÁÅ ÎÁ ÏÂÒÁÂÏÔËÕ ËÁÖÄÏÇÏ ÐÁËÅÔÁ ÂÙÌÏ ÚÁÔÒÁÞÅÎÏ ÐÒÉÍÅÒÎÏ 1.172ÍÓ, ÉÌÉ ÏËÏÌÏ 1.2 ÍÉËÒÏÓÅËÕÎÄ ÎÁ ÐÒÁ×ÉÌÏ. ôÅÏÒÅÔÉÞÅÓËÉÊ ÐÒÅÄÅÌ ÏÂÒÁÂÏÔËÉ ÂÕÄÅÔ ÒÁ×ÅÎ ÏËÏÌÏ 853 ÐÁËÅÔÁÍ × ÓÅËÕÎÄÕ, ÞÔÏ ÐÏÞÔÉ ÓÏÏÔ×ÅÔÓÔ×ÕÅÔ ÓËÏÒÏÓÔÉ 10íÂ/Ó ethernet. âÏÌØÛÏÅ ËÏÌÉÞÅÓÔ×Ï ÐÒÏÔÅÓÔÉÒÏ×ÁÎÎÙÈ ÐÒÁ×ÉÌ É ÐÒÉÒÏÄÁ ÜÔÉÈ ÐÒÁ×ÉÌ ÎÅ ÄÁ£Ô ÐÒÅÄÓÔÁ×ÌÅÎÉÅ Ï ÒÅÁÌØÎÏÊ ÖÉÚÎÉ - ÏÎÉ ÂÙÌÉ ÉÓÐÏÌØÚÏ×ÁÎÙ ÔÏÌØËÏ ÄÌÑ ÇÅÎÅÒÁÃÉÉ ÉÎÆÏÒÍÁÃÉÉ Ï ×ÒÅÍÅÎÉ ÏÂÒÁÂÏÔËÉ. ÷ÏÔ ÎÅÓËÏÌØËÏ ÎÁÂÌÀÄÅÎÉÊ, ËÏÔÏÒÙÅ ÎÕÖÎÏ ÉÍÅÔØ × ×ÉÄÕ ÄÌÑ ÐÏÓÔÒÏÅÎÉÉ ÜÆÆÅËÔÉ×ÎÏÇÏ ÎÁÂÏÒÁ ÐÒÁ×ÉÌ: ðÏÍÅÓÔÉÔÅ ÐÒÁ×ÉÌÏ `established' × ÓÁÍÏÅ ÎÁÞÁÌÏ ÓÐÉÓËÁ ÄÌÑ ÏÂÒÁÂÏÔËÉ ÏÓÎÏ×ÎÏÇÏ ÔÒÁÆÉËÁ TCP. îÅ ÐÏÍÅÝÁÊÔÅ ÐÅÒÅÄ ÎÉÍ ÎÉËÁËÉÈ ÐÒÁ×ÉÌ allow tcp. óÔÁÒÁÊÔÅÓØ ÐÏÍÅÝÁÔØ ÞÁÓÔÏ ×ÙÚÙ×ÁÅÍÙÅ ÐÒÁ×ÉÌÁ ËÁË ÍÏÖÎÏ ÒÁÎØÛÅ, Á ÒÅÄËÏ ÉÓÐÏÌØÚÕÅÍÙÅ - ÐÏÚÖÅ (ÂÅÚ ÉÚÍÅÎÅÎÉÑ ÐÏÌÉÔÉËÉ, ËÏÎÅÞÎÏ). ÷Ù ÍÏÖÅÔÅ ×ÙÑÓÎÉÔØ ÞÁÓÔÏÔÕ ÉÓÐÏÌØÚÏ×ÁÎÉÑ ÐÒÁ×ÉÌ Ó ÐÏÍÏÝØÀ ×Ù×ÏÄÁ ÓÔÁÔÉÓÔÉËÉ ËÏÍÁÎÄÏÊ ipfw -a l. ëÁË ÍÏÖÎÏ ÐÅÒÅÎÁÐÒÁ×ÉÔØ ÚÁÐÒÏÓÙ Ó ÏÄÎÏÊ ÍÁÛÉÎÙ ÎÁ ÄÒÕÇÕÀ? ÷Ù ÍÏÖÅÔÅ ÐÅÒÅÎÁÐÒÁ×ÉÔØ ÚÁÐÒÏÓ ÎÁ FTP (ÉÌÉ ÄÒÕÇÏÊ ÓÅÒ×ÉÓ) Ó ÐÏÍÏÝØÀ ÐÁËÁÄÖÁ 'socket', ÄÏÓÔÕÐÎÏÇÏ × ÄÅÒÅ×Å ÐÏÒÔÏ× × ËÁÔÅÇÏÒÉÉ 'sysutils'. ðÒÏÓÔÏ ÚÁÍÅÎÉÔÅ ËÏÍÁÎÄÎÕÀ ÓÔÒÏËÕ ÚÁÐÕÓËÁ ÓÅÒ×ÉÓÁ ÎÁ ×ÙÚÏ× socket, ÔÉÐÁ: ftp stream tcp nowait nobody /usr/local/bin/socket socket ftp.foo.com ftp ÇÄÅ 'ftp.foo.com' É 'ftp' Ñ×ÌÑÀÔÓÑ ÓÏÏÔ×ÅÔÓÔ×ÅÎÎÏ ÈÏÓÔÏÍ É ÐÏÒÔÏÍ ÄÌÑ ÐÅÒÅÎÁÐÒÁ×ÌÅÎÉÑ. çÄÅ ÍÏÖÎÏ ÎÁÊÔÉ ÓÒÅÄÓÔ×Á ÕÐÒÁ×ÌÅÎÉÑ ÓÅÔÅ×ÙÍ ÔÒÁÆÉËÏÍ? äÌÑ FreeBSD ÓÕÝÅÓÔ×ÕÀÔ Ä×Á ÓÒÅÄÓÔ×Á ÕÐÒÁ×ÌÅÎÉÑ ÔÒÁÆÉËÏÍ: Ó×ÏÂÏÄÎÏ ÒÁÓÐÒÏÓÔÒÁÎÑÅÍÙÊ ALTQ É ËÏÍÍÅÒÞÅÓËÉÊ ÐÒÏÄÕËÔ Bandwidth Manager ÏÔ Emerging Technologies. ðÏÞÅÍÕ ÐÏÑ×ÌÑÀÔÓÑ ÓÏÏÂÝÅÎÉÑ ``/dev/bpf0: device not configured"? äÌÑ ÒÁÂÏÔÙ ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ Berkeley Packet Filter (bpf) ÎÅÏÂÈÏÄÉÍÏ ×ËÌÀÞÅÎÉÅ × ÑÄÒÏ ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÅÇÏ ÄÒÁÊ×ÅÒÁ. ðÅÒÅËÏÍÐÉÌÉÒÕÊÔÅ ÑÄÒÏ, ÄÏÂÁ×É× × ÅÇÏ ËÏÎÆÉÇÕÒÁÃÉÏÎÎÙÊ ÆÁÊÌ ÓÌÅÄÕÀÝÕÀ ÓÔÒÏËÕ: pseudo-device bpfilter # Berkeley Packet Filter úÁÔÅÍ, ÐÏÓÌÅ ÐÅÒÅÚÁÐÕÓËÁ ÓÉÓÔÅÍÙ, ×ÁÍ ÎÕÖÎÏ ÓÏÚÄÁÔØ ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÊ ÆÁÊÌ ÕÓÔÒÏÊÓÔ×Á. üÔÏ ÍÏÖÎÏ ÓÄÅÌÁÔØ, ÓÍÅÎÉ× ÔÅËÕÝÉÊ ËÁÔÁÌÏÇ ÎÁ /dev É ×ÙÐÏÌÎÉ× ËÏÍÁÎÄÕ # sh MAKEDEV bpf0 ïÂÒÁÔÉÔÅÓØ Ë ÒÁÚÄÅÌÕ ÒÕËÏ×ÏÄÓÔ×Á, ÐÏÓ×ÑÝ£ÎÎÏÍÕ ÓÏÚÄÁÎÉÀ ÆÁÊÌÏ× ÕÓÔÒÏÊÓÔ× ÚÁ ÐÏÄÒÏÂÎÏÊ ÉÎÆÏÒÍÁÃÉÅÊ ÐÏ ÜÔÏÍÕ ×ÏÐÒÏÓÕ. PPP îÅ ÍÏÇÕ ÚÁÓÔÁ×ÉÔØ ÒÁÂÏÔÁÔØ ppp. þÔÏ Ñ ÄÅÌÁÀ ÎÅ ÔÁË? ðÅÒ×ÙÍ ÄÅÌÏÍ ÐÒÏÞÔÉÔÅ ÓÔÒÁÎÉÃÙ ÓÐÒÁ×ÏÞÎÉËÁ, ÐÏÓ×ÑÝ£ÎÎÙÅ ppp, Á ÔÁËÖÅ ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÊ ÒÁÚÄÅÌ ÒÕËÏ×ÏÄÓÔ×Á. ÷ËÌÀÞÉÔÅ ÐÒÏÔÏËÏÌÉÒÏ×ÁÎÉÅ ËÏÍÁÎÄÏÊ set log Phase Chat Connect Carrier lcp ipcp ccp command üÔÁ ËÏÍÁÎÄÁ ÍÏÖÅÔ ÂÙÔØ ÎÁÂÒÁÎÁ × ËÏÍÁÎÄÎÏÊ ÓÔÒÏËÅ ppp ÉÌÉ ÏÎÁ ÍÏÖÅÔ ÎÁÈÏÄÉÔØÓÑ × ËÏÎÆÉÇÕÒÁÃÉÏÎÎÏÍ ÆÁÊÌÅ /etc/ppp/ppp.conf (ÎÁÞÁÌÏ ÓÅËÃÉÉ default - ÌÕÞÛÅÅ ÄÌÑ ÎÅ£ ÍÅÓÔÏ. õÄÏÓÔÏ×ÅÒØÔÅÓØ, ÞÔÏ ÆÁÊÌ /etc/syslog.conf ÓÏÄÅÒÖÉÔ ÓÔÒÏËÉ !ppp *.* /var/log/ppp.log É ÆÁÊÌ /var/log/ppp.log ÓÕÝÅÓÔ×ÕÅÔ. ôÅÐÅÒØ ×Ù ÓÍÏÖÅÔÅ ÎÁÊÔÉ ÐÏÌÎÕÀ ÉÎÆÏÒÍÁÃÉÀ Ï ÐÒÏÉÓÈÏÄÑÝÅÍ × ÆÁÊÌÅ ÐÒÏÔÏËÏÌÁ. îÅ ÂÅÓÐÏËÏÊÔÅÓØ, ÅÓÌÉ ÎÅ ×Ó£ ×ÁÍ ÂÕÄÅÔ ÔÁÍ ÐÏÎÑÔÎÏ. åÓÌÉ ×Ù ÂÕÄÅÔÅ ÐÏÌØÚÏ×ÁÔØÓÑ ÞØÅÊ-ÔÏ ÐÏÍÏÝØÀ, ÐÒÏÔÏËÏÌ ×ÁÍ ÐÒÉÇÏÄÉÔÓÑ. åÓÌÉ ×ÁÛÁ ×ÅÒÓÉÑ ppp ÎÅ ÐÏÎÉÍÁÅÔ ËÏÍÁÎÄÕ "set log", ×Ù ÄÏÌÖÎÙ ÓËÁÞÁÔØ ÐÏÓÌÅÄÎÀÀ ×ÅÒÓÉÀ. ïÎÁ ÒÁÓÓÞÉÔÁÎÁ ÎÁ FreeBSD ×ÅÒÓÉÊ 2.1.5 É ×ÙÛÅ. Ppp ÐÒÏÓÔÏ ÚÁ×ÉÓÁÅÔ, ËÏÇÄÁ Ñ ÅÇÏ ÚÁÐÕÓËÁÀ ïÂÙÞÎÏ ÜÔÏ ÐÒÏÉÓÈÏÄÉÔ, ËÏÇÄÁ ÎÅ ÍÏÖÅÔ ÂÙÔØ ÏÐÒÅÄÅÌÅÎÏ ÉÍÑ ×ÁÛÅÇÏ ÈÏÓÔÁ. îÁÉÌÕÞÛÉÊ ÓÐÏÓÏ ÉÓÐÒÁ×ÉÔØ ÜÔÏ - ÕÄÏÓÔÏ×ÅÒÉÔØÓÑ, ÞÔÏ ÆÁÊÌ /etc/hosts ÉÓÐÏÌØÚÕÅÔÓÑ ×ÁÛÉÍ ÒÅÓÏÌ×ÅÒÏÍ. ïÔÒÅÄÁËÔÉÒÕÊÔÅ ÆÁÊÌ /etc/host.conf, ÐÏÍÅÓÔÉ× ÎÁ ÐÅÒ×ÏÅ ÍÅÓÔÏ ÓÔÒÏÞËÕ hosts. úÁÔÅÍ ÐÒÏÓÔÏ ÄÏÂÁרÔÅ ÚÁÐÉÓÉ Ï ×ÁÛÅÊ ÍÁÛÉÎÅ × ÆÁÊÌ /etc/hosts. åÓÌÉ Õ ×ÁÓ ÎÅÔ ÌÏËÁÌØÎÏÊ ÓÅÔÉ, ÉÚÍÅÎÉÔÅ ÓÔÒÏËÕ localhost: 127.0.0.1 foo.bar.com foo localhost ÷ ÐÒÏÔÉ×ÎÏÍ ÓÌÕÞÁÅ ÐÒÏÓÔÏ ÄÏÂÁרÔÅ ÅÝ£ ÏÄÎÕ ÚÁÐÉÓØ Ï ×ÁÛÅÍ ÈÏÓÔÅ. ïÂÒÁÔÉÔÅÓØ Ë ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÍ ÓÔÒÁÎÉÃÁÍ ÓÐÒÁ×ÏÞÎÉËÁ ÚÁ ÐÏÄÒÏÂÎÙÍ ÏÐÉÓÁÎÉÅÍ. åÓÌÉ ×Ù ×ÙÐÏÌÎÉÌÉ ÜÔÉ ÕËÁÚÁÎÉÑ, ×Ù ÓÍÏÖÅÔÅ ÕÓÐÅÛÎÏ ×ÙÐÏÌÎÉÔØ ËÏÍÁÎÄÕ ping -c1 `hostname`. Ppp ÎÅ Ú×ÏÎÉÔ × ÒÅÖÉÍÅ -auto ÷Ï-ÐÅÒ×ÙÈ, ÐÒÏ×ÅÒØÔÅ, ÞÔÏ Õ ×ÁÓ ÅÓÔØ ÍÁÒÛÒÕÔ ÐÏ ÕÍÏÌÞÁÎÉÀ. úÁÐÕÓÔÉ× netstat -rn, ×Ù ÄÏÌÖÎÙ Õ×ÉÄÅÔØ Ä×Å ÓÔÒÏËÉ ×ÉÄÁ: Destination Gateway Flags Refs Use Netif Expire default 10.0.0.2 UGSc 0 0 tun0 10.0.0.2 10.0.0.1 UH 0 0 tun0 úÄÅÓØ ÐÒÅÄÐÏÌÁÇÁÅÔÓÑ, ÞÔÏ ×Ù ÉÓÐÏÌØÚÏ×ÁÌÉ ÁÄÒÅÓÁ, ÐÒÉ×ÅÄ£ÎÎÙÅ × òÕËÏ×ÏÄÓÔ×Å, óÐÒÁ×ÏÞÎÉËÅ ÉÌÉ ÆÁÊÌÅ ppp.conf.sample. åÓÌÉ Õ ×ÁÓ ÎÅÔ ÍÁÒÛÒÕÔÁ ÐÏ ÕÍÏÌÞÁÎÉÀ, ÜÔÏ ÍÏÖÅÔ ÂÙÔØ ÉÚ-ÚÁ ÉÓÐÏÌØÚÏ×ÁÎÉÑ ÓÔÁÒÏÊ ×ÅÒÓÉÉ ppp, ËÏÔÏÒÁÑ ÎÅ ÐÏÎÉÍÁÅÔ ÓÌÏ×Á HISADDR × ÆÁÊÌÅ ppp.conf. åÓÌÉ ×ÁÛÁ ×ÅÒÓÉÑ ppp ÉÚ FreeBSD ×ÅÒÓÉÊ ÒÁÎÅÅ ÞÅÍ 2.2.5, ÚÁÍÅÎÉÔÅ ÓÔÒÏËÕ add 0 0 HISADDR ÎÁ add 0 0 10.0.0.2 äÒÕÇÏÊ ÐÒÉÞÉÎÏÊ ÏÔÓÕÔÓÔ×ÉÑ ÍÁÒÛÒÕÔÁ ÐÏ ÕÍÏÌÞÁÎÉÀ ÍÏÖÅÔ ÂÙÔØ ÔÏ, ÞÔÏ ×Ù ÏÛÉÂÏÞÎÏ ÕÓÔÁÎÏ×ÉÌÉ ÍÁÒÛÒÕÔ ÐÏ ÕÍÏÌÞÁÎÉÀ × ×ÁÛÅÍ ÆÁÊÌÅ /etc/rc.conf (ÜÔÏÔ ÆÁÊÌ ÎÁÚÙ×ÁÌÓÑ /etc/sysconfig ÄÏ 2.2.2-RELEASE), É ×Ù ÐÒÏÐÕÓÔÉÌÉ ÓÔÒÏËÕ delete ALL × ppp.conf. ÷ ÔÁËÏÍ ÓÌÕÞÁÅ ÏÂÒÁÔÉÔÅÓØ Ë ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÅÍÕ ÒÁÚÄÅÌÕ òÕËÏ×ÏÄÓÔ×Á. þÔÏ ÏÚÎÁÞÁÅÔ ÓÏÏÂÝÅÎÉÅ "No route to host"? üÔÁ ÏÛÉÂËÁ ÐÏÑ×ÌÑÅÔÓÑ ÉÚ-ÚÁ ÏÔÓÕÔÓÔ×ÕÀÝÅÇÏ ÒÁÚÄÅÌÁ MYADDR: delete ALL add 0 0 HISADDR × ÆÁÊÌÅ /etc/ppp/ppp.linkup. ïÎ ÎÅÏÂÈÏÄÉÍ, ÅÓÌÉ ×ÁÛ IP ÁÄÒÅÓ ×ÙÄÅÌÑÅÔÓÑ ÄÉÎÁÍÉÞÅÓËÉ ÉÌÉ ÁÄÒÅÓ ÍÁÒÛÒÕÔÉÚÁÔÏÒÁ ×ÁÍ ÎÅ ÉÚ×ÅÓÔÅÎ. åÓÌÉ ×Ù ÉÓÐÏÌØÚÕÅÔÅ ÉÎÔÅÒÁËÔÉ×ÎÙÊ ÒÅÖÉÍ, ×Ù ÍÏÖÅÔÅ ÎÁÂÒÁÔØ ÓÌÅÄÕÀÝÉÅ ËÏÍÁÎÄÙ ÐÏÓÌÅ ×ÈÏÄÁ × ÐÁËÅÔÎÙÊ ÒÅÖÉÍ (ÐÁËÅÔÎÙÊ ÒÅÖÉÍ ÉÄÅÎÔÉÆÉÃÉÒÕÅÔÓÑ ÚÁÇÌÁ×ÎÙÍÉ ÂÕË×ÁÍÉ PPP × ÐÒÉÇÌÁÛÅÎÉÉ): delete ALL add 0 0 HISADDR ïÂÒÁÔÉÔÅÓØ Ë ÒÁÚÄÅÌÕ PPP É ÄÉÎÁÍÉÞÅÓËÉÅ IP ÁÄÒÅÓÁ òÕËÏ×ÏÄÓÔ×Á ÚÁ ÐÏÄÒÏÂÎÏÊ ÉÎÆÏÒÍÁÃÉÅÊ. óÏÅÄÉÎÅÎÉÅ ÒÁÚÒÙ×ÁÅÔÓÑ ÞÅÒÅÚ 3 ÍÉÎÕÔÙ ôÁÊÍÁÕÔ ÄÌÑ ppp ÐÏ ÕÍÏÌÞÁÎÉÀ ÒÁ×ÅÎ 3 ÍÉÎÕÔÁÍ. üÔÏ ÍÏÖÅÔ ÂÙÔØ ÉÚÍÅÎÅÎÏ ÓÔÒÏËÏÊ set timeout NNN ÇÄÅ NNN - ×ÒÅÍÑ ÎÅÁËÔÉ×ÎÏÓÔÉ × ÓÅËÕÎÄÁÈ, ÐÏÓÌÅ ËÏÔÏÒÏÇÏ ÓÏÅÄÉÎÅÎÉÅ ÚÁËÙ×ÁÅÔÓÑ. åÓÌÉ NNN ÒÁ×ÎÏ ÎÕÌÀ, ÓÏÅÄÉÎÅÎÉÅ ÎÉËÏÇÄÁ ÎÅ ÒÁÚÒÙ×ÁÅÔÓÑ ÐÏ ÔÁÊÍÁÕÔÕ. üÔÕ ËÏÍÁÎÄÕ ÍÏÖÎÏ ÐÏÍÅÓÔÉÔØ × ÆÁÊÌ ppp.conf ÉÌÉ ÎÁÂÒÁÔØ ÅÅ × ÉÎÔÅÒÁËÔÉ×ÎÏÍ ÒÅÖÉÍÅ. éÚÍÅÎÅÎÉÅ ÜÔÏÇÏ ÐÁÒÁÍÅÔÒÁ ÔÁËÖÅ ×ÏÚÍÏÖÎÏ ÐÒÉ ÁËÔÉ×ÎÏÍ ÓÏÅÄÉÎÅÎÉÉ, ÅÓÌÉ ÐÏÄËÌÀÞÉÔØÓÑ Ë ÓÏËÅÔÕ ppp ÓÅÒ×ÅÒÁ Ó ÐÏÍÏÝØÀ ÐÒÏÇÒÁÍÍ telnet ÉÌÉ pppctl. ïÂÒÁÔÉÔÅÓØ Ë ÓÔÒÁÎÉÃÁÍ óÐÒÁ×ÏÞÎÉËÁ, ÐÏÓ×ÑÝ£ÎÎÙÍ ppp. óÏÅÄÉÎÅÎÉÅ ÒÁÚÒÙ×ÁÅÔÓÑ ÐÒÉ ÂÏÌØÛÏÊ ÎÁÇÒÕÚËÅ åÓÌÉ Õ ×ÁÓ ×ËÌÀÞÅÎ Link Quality Reporting (LQR), ×ÏÚÍÏÖÎÏ, ÞÔÏ ÓÌÉÛËÏÍ ÍÎÏÇÏ ÐÁËÅÔÏ× LQR ÔÅÒÑÅÔÓÑ × ËÁÎÁÌÅ. Ppp ÄÅÌÁÅÔ ×Ù×ÏÄ, ÞÔÏ ËÁÎÁÌ ÐÌÏÈ, É ÒÁÚÒÙ×ÁÅÔ ÓÏÅÄÉÎÅÎÉÅ. ÷ FreeBSD ÄÏ ×ÅÒÓÉÉ 2.2.5 LQR ÂÙÌÏ ×ËÌÀÞÅÎÏ ÐÏ ÕÍÏÌÞÁÎÉÀ. óÅÊÞÁÓ ÏÎÏ ÐÏ ÕÍÏÌÞÁÎÉÀ ×ÙËÌÀÞÅÎÏ. LQR ÍÏÖÎÏ ×ÙËÌÀÞÉÔØ ÓÔÒÏËÏÊ disable lqr óÏÅÄÉÎÅÎÉÅ ÒÁÚÒÙ×ÁÅÔÓÑ × ÓÌÕÞÁÊÎÙÅ ÐÒÏÍÅÖÕÔËÉ ×ÒÅÍÅÎÉ éÎÏÇÄÁ, ÎÁ ÛÕÍÎÏÊ ÌÉÎÉÉ ÉÌÉ ÄÁÖÅ ÎÁ ÌÉÎÉÉ Ó ×ËÌÀÞÅÎÎÙÍ ÒÅÖÉÍÏÍ ÏÖÉÄÁÎÉÑ Ú×ÏÎËÁ, ×ÁÛ ÍÏÄÅÍ ÍÏÖÅÔ ×ÅÛÁÔØ ÔÒÕÂËÕ, ÄÕÍÁÑ (ÓÏ×ÅÒÛÅÎÎÏ ÎÁÐÒÁÓÎÏ), ÞÔÏ ÐÏÔÅÒÑÌ ÎÅÓÕÝÕÀ. ÷ ÂÏÌØÛÉÎÓÔ×Å ÍÏÄÅÍÏ× ÅÓÔØ ÐÁÒÁÍÅÔÒ, ÏÐÒÅÄÅÌÑÀÝÉÊ ÞÕ×ÓÔ×ÉÔÅÌØÎÏÓÔØ Ë ×ÒÅÍÅÎÎÏÊ ÐÏÔÅÒÅ ÎÅÓÕÝÅÊ. îÁÐÒÉÍÅÒ, × ÍÏÄÅÍÅ USR Sportster, ÜÔÏ ÏÐÒÅÄÅÌÑÅÔÓÑ ÚÎÁÞÅÎÉÅÍ ÒÅÇÉÓÔÒÁ S10 × ÄÅÓÑÔÙÈ ÄÏÌÑÈ ÓÅËÕÎÄÙ. þÔÏÂÙ ÓÄÅÌÁÔØ Ó×ÑÚØ ÂÏÌÅÅ ÕÓÔÏÊÞÉ×ÏÊ, ÄÏÂÁרÔÅ ÓÌÅÄÕÀÝÕÀ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÏÓÔØ ÐÏÓÙÌÏË-ÏÖÉÄÁÎÉÊ × ÓÔÒÏËÕ ÎÁÂÏÒÁ: set dial "...... ATS10=10 OK ......" ïÂÒÁÔÉÔÅÓØ Ë ÒÕËÏ×ÏÄÓÔ×Õ ÐÏ ×ÁÛÅÍÕ ÍÏÄÅÍÕ. óÏÅÄÉÎÅÎÉÅ ÞÁÓÔÏ Ò×£ÔÓÑ × ÓÌÕÞÁÊÎÙÅ ÐÒÏÍÅÖÕÔËÉ ×ÒÅÍÅÎÉ íÎÏÇÉÅ ÓÏÏÂÝÁÀÔ Ï ÏÂÒÙ×ÁÈ ÓÏÅÄÉÎÅÎÉÊ ÂÅÚ ×ÉÄÉÍÏÊ ÐÒÉÞÉÎÙ. ðÅÒ×ÙÍ ÄÅÌÏÍ ÎÕÖÎÏ ×ÙÑÓÎÉÔØ, Ó ËÁËÏÊ ÓÔÏÒÏÎÙ ÓÏÅÄÉÎÅÎÉÑ Ò×£ÔÓÑ Ó×ÑÚØ. åÓÌÉ ×Ù ÉÓÐÏÌØÚÕÅÔÅ ×ÎÅÛÎÉÊ ÍÏÄÅÍ, ÍÏÖÅÔÅ ÐÒÏÓÔÏ ÐÏÐÒÏÂÏ×ÁÔØ ÉÓÐÏÌØÚÏ×ÁÔØ ÕÔÉÌÉÔÕ ping É ÐÏÓÍÏÔÒÅÔØ, ÍÉÇÁÅÔ ÌÉ ÉÎÄÉËÁÔÏÒ TD ÐÒÉ ÐÅÒÅÄÁÞÅ ÄÁÎÎÙÈ. åÓÌÉ ÏÎ ÍÉÇÁÅÔ (Á ÉÎÄÉËÁÔÏÒ TD ÎÅÔ), ÐÒÏÂÌÅÍÁ Ó ÔÏÊ ÓÔÏÒÏÎÙ. åÓÌÉ ÉÎÄÉËÁÔÏÒ TD ÎÅ ÚÁÇÏÒÁÅÔÓÑ, ÐÒÏÂÌÅÍÁ Ó ×ÁÛÅÊ ÓÔÏÒÏÎÙ. ðÒÉ ÉÓÐÏÌØÚÏ×ÁÎÉÉ ×ÎÕÔÒÅÎÎÅÇÏ ÍÏÄÅÍÁ ×ÁÍ ÎÅÏÂÈÏÄÉÍÏ ×ÏÓÐÏÌØÚÏ×ÁÔØÓÑ ËÏÍÁÎÄÏÊ set server, ÕËÁÚÁ× Å£ × ÆÁÊÌÅ ppp.conf. ëÏÇÄÁ ÐÒÏÉÚÏÊÄ£Ô ÏÂÒÙ× Ó×ÑÚÉ, ÐÏÄËÌÀÞÉÔÅÓØ Ë ppp Ó ÐÏÍÏÝØÀ pppctl. åÓÌÉ ×ÁÛÅ ÓÅÔÅ×ÏÅ ÐÏÄËÌÀÞÅÎÉÅ ÎÅÏÖÉÄÁÎÎÏ ×ÏÓÓÔÁÎÏ×ÉÔÓÑ (ppp ÏÖÉ×ÁÅÔ ÐÒÉ ÐÒÏÑ×ÌÅÎÉÉ ÁËÔÉ×ÎÏÓÔÉ ÎÁ ÄÉÁÇÎÏÓÔÉÞÅÓËÏÍ ÓÏËÅÔÅ) ÉÌÉ ÉÌÉ ÅÓÌÉ ×Ù ÎÅ ÓÍÏÖÅÔÅ ÓÏÅÄÉÎÉÔØÓÑ (ÚÄÅÓØ ÍÙ ÐÏÌÁÇÁÅÍ, ÞÔÏ ËÏÍÁÎÄÁ set socket × ÎÁÞÁÌØÎÙÊ ÍÏÍÅÎÔ ÂÙÌÁ ×ÙÐÏÌÎÅÎÁ ÕÓÐÅÛÎÏ), ÔÏ ÐÒÏÂÌÅÍÁ ÉÍÅÅÔ ÌÏËÁÌØÎÙÊ ÈÁÒÁËÔÅÒ. åÓÌÉ ×Ù ÓÍÏÖÅÔÅ ÐÏÄËÌÀÞÉÔØÓÑ, ÎÏ Ó×ÑÚÉ ×Ó£ ÒÁ×ÎÏ ÎÅÔ, ×ËÌÀÞÉÔÅ ×Ù×ÏÄ ÏÔÌÁÄÏÞÎÏÊ ÉÎÆÏÒÍÁÃÉÉ ËÏÍÁÎÄÏÊ set log local async É ÚÁÐÕÓÔÉÔÅ ping ÉÚ ÄÒÕÇÏÇÏ ÏËÎÁ ÉÌÉ ÔÅÒÍÉÎÁÌÁ, ÞÔÏÂÙ ÐÒÏ×ÅÒÉÔØ Ó×ÑÚØ. ÷ ÏÔÌÁÄÏÞÎÏÍ ×Ù×ÏÄÅ ÂÕÄÕÔ ÐÏËÁÚÁÎÙ ÄÁÎÎÙÅ, ÐÅÒÅÄÁ×ÁÅÍÙÅ É ÐÏÌÕÞÁÅÍÙÅ ÉÚ ËÁÎÁÌÁ Ó×ÑÚÉ. åÓÌÉ ÄÁÎÎÙÅ ÐÏÓÙÌÁÀÔÓÑ, ÎÏ ÎÅ ÐÒÉÎÉÍÁÀÔÓÑ ÏÂÒÁÔÎÏ, ÐÒÏÂÌÅÍÁ Ó ÐÒÏÔÉ×ÏÐÏÌÏÖÎÏÊ ÓÔÏÒÏÎÙ. ÷ÙÑÓÎÉ×, Ñ×ÌÑÅÔÓÑ ÜÔÁ ÐÒÏÂÌÅÍÁ ÌÏËÁÌØÎÏÊ ÉÌÉ ÕÄÁÌ£ÎÎÏÊ ÓÉÓÔÅÍÙ, ×Ù ÉÍÅÅÔÅ ÓÌÅÄÕÀÝÉÅ ×ÏÚÍÏÖÎÏÓÔÉ: õÄÁÌ£ÎÎÁÑ ÓÉÓÔÅÍÁ ÎÅ ÏÔ×ÅÞÁÅÔ úÄÅÓØ ×Ù ÍÁÌÏ ÞÔÏ ÍÏÖÅÔÅ ÓÄÅÌÁÔØ. âÏÌØÛÉÎÓÔ×Ï ÐÒÏ×ÁÊÄÅÒÏ× ÏÔËÁÚÙ×ÁÀÔÓÑ ÏËÁÚÁÔØ ÐÏÍÏÝØ, ÅÓÌÉ ×Ù ÉÓÐÏÌØÚÕÅÔÅ ïó ÎÅ ÏÔ Microsoft. ÷Ù ÍÏÖÅÔÅ ÄÏÂÁ×ÉÔØ ËÏÍÁÎÄÕ enable lqr × ×ÁÛ ppp.conf, ÞÔÏ ÐÏÚ×ÏÌÉÔ ppp ÏÔÓÌÅÄÉÔØ ÏÛÉÂËÉ × ÕÄÁÌ£ÎÎÏÊ ÓÉÓÔÅÍÅ É ÚÁËÒÙ×ÁÔØ ÓÏÅÄÉÎÅÎÉÅ, ÏÄÎÁËÏ ÔÁËÏÅ ÏÂÎÁÒÕÖÅÎÉÅ ÄÏÓÔÁÔÏÞÎÏ ÍÅÄÌÅÎÎÏÅ É ÐÏÜÔÏÍÕ ÎÅ ÔÁË ÕÖ ÐÏÌÅÚÎÏ. ÷Ù ÍÏÖÅÔÅ ÔÁËÖÅ ÐÒÏÓÔÏ ÎÅ ÓÏÏÂÝÁÔØ Ó×ÏÅÍÕ ÐÒÏ×ÁÊÄÅÒÕ, ÞÔÏ ÚÁÐÕÓËÁÅÔÅ user-ppp.... ðÅÒ×ÙÍ ÄÅÌÏÍ ÐÏÐÒÏÂÕÊÔÅ ÏÔËÌÀÞÉÔØ ×ÓÀ ÍÅÓÔÎÕÀ ËÏÍÐÒÅÓÓÉÀ, ÕËÁÚÁ× × ËÏÎÆÉÇÕÒÁÃÉÏÎÎÏÍ ÆÁÊÌÅ ÓÌÅÄÕÀÝÅÅ: disable pred1 deflate deflate24 protocomp acfcomp shortseq vj deny pred1 deflate deflate24 protocomp acfcomp shortseq vj ôÅÐÅÒØ ÐÏÐÒÏÂÕÊÔÅ ÕÓÔÁÎÏ×ÉÔØ ÓÏÅÄÉÎÅÎÉÅ ÅÝ£ ÒÁÚ É ÕÄÏÓÔÏ×ÅÒÉÔØÓÑ, ÞÔÏ ÓÉÔÕÁÃÉÑ ÎÅ ÉÚÍÅÎÉÌÁÓØ. åÓÌÉ ËÁÞÅÓÔ×Ï ÓÏÅÄÉÎÅÎÉÑ ÕÌÕÞÛÉÌÏÓØ ÉÌÉ ÐÒÏÂÌÅÍÁ ÏËÁÝÁÌÁÓØ ÐÏÌÎÏÓÔØÀ ÒÅÛ£ÎÎÏÊ, ×ÙÑÓÎÉÔÅ, ÎÁÓÔÒÏÊËÁ ÞÅÇÏ ÐÒÉ×ÏÄÉÌÁ Ë ÐÒÏÂÌÅÍÁÍ ÍÅÔÏÄÏÍ ÐÒÏÂ É ÏÛÉÂÏË. üÔÏ ÄÁÓÔ ×ÁÍ ÄÏÐÏÌÎÉÔÅÌØÎÕÀ ÚÁÝÉÔÕ, ËÏÇÄÁ ×Ù ÂÕÄÅÔÅ ÒÁÚÇÏ×ÁÒÉ×ÁÔØ Ó ×ÁÛÉÍ ÐÒÏ×ÁÊÄÅÒÏÍ (ÈÏÔÑ ÐÒÉ ÜÔÏÍ ÍÏÖÅÔ ÏÂÎÁÒÕÖÉÔØÓÑ, ÞÔÏ ×Ù ÒÁÂÏÔÁÅÔÅ ÎÅ Ó ÐÒÏÄÕËÔÏÍ Microsoft). ðÅÒÅÄ ÔÅÍ, ËÁË Ú×ÏÎÉÔØ ÐÒÏ×ÁÊÄÅÒÕ, ×ËÌÀÞÉÔÅ ×Ù×ÏÄ ÏÔÌÁÄÏÞÎÏÊ ÉÎÆÏÒÍÁÃÉÉ, ËÁË ×Ù ÜÔÏ ÄÅÌÁÌÉ ÒÁÎÅÅ É ÐÏÄÏÖÄÉÔÅ, ÐÏËÁ ÓÏÅÄÉÎÅÎÉÅ ÓÎÏ×Á ÎÅ ÐÒÅÒ×£ÔÓÑ. ðÒÁ×ÄÁ, ÄÌÑ ÜÔÏÇÏ ÔÒÅÂÕÅÔÓÑ ÎÅËÏÔÏÒÏÅ ÄÉÓËÏ×ÏÅ ÐÒÏÓÔÒÁÎÓÔ×Ï. éÎÔÅÒÅÓ ÍÏÇÕÔ ÐÒÅÄÓÔÁ×ÌÑÔØ ÐÏÓÌÅÄÎÉÅ ÐÒÏÞÉÔÁÎÎÙÅ ÉÚ ÐÏÒÔÁ ÄÁÎÎÙÅ. ïÂÙÞÎÏ ÜÔÏ ÄÁÎÎÙÅ × ÆÏÒÍÁÔÅ ascii É ÏÎÉ ÍÏÇÕÔ ÄÁÖÅ ÓÏÄÅÒÖÁÔØ ÏÐÉÓÁÎÉÅ ÐÒÏÂÌÅÍÙ (``Memory fault, core dumped'' ?). åÓÌÉ ×ÁÛ ÐÒÏ×ÁÊÄÅÒ ÓÏÇÌÁÓÅÎ ÐÏÍÏÞØ ×ÁÍ, ÎÕÖÎÏ ÂÕÄÅÔ ×ËÌÀÞÉÔØ ÒÅÖÉÍ ÏÔÌÁÄËÉ Ó ÉÈ ÓÔÏÒÏÎÙ, Á ÐÏÔÏÍ, ËÏÇÄÁ Ó×ÑÚØ ÐÒÅÒ×£ÔÓÑ × ÓÌÅÄÕÀÝÉÊ ÒÁÚ, ÏÎÉ ÍÏÇÕÔ ÓËÁÚÁÔØ ×ÁÍ, ÐÏÞÅÍÕ ×ÏÚÎÉËÌÉ ÐÒÏÂÌÅÍÙ Ó ÉÈ ÓÔÏÒÏÎÙ. âÕÄÅÔ ÈÏÒÏÛÏ, ÅÓÌÉ ×Ù ÐÒÉÛÌ£ÔÅ ÄÅÔÁÌØÎÏÅ ÏÐÉÓÁÎÉÅ ÎÁ ÁÄÒÅÓ brian@Awfulhak.org, ÉÌÉ ÄÁÖÅ ÐÏÐÒÏÓÉÔÅ ÐÒÏ×ÁÊÄÅÒÁ Ó×ÑÚÁÔØÓÑ ÓÏ ÍÎÏÊ ÎÁÐÒÑÍÕÀ. Ppp ÚÁ×ÉÓÁÅÔ ìÕÞÛÅ ×ÓÅÇÏ × ÜÔÏÍ ÓÌÕÞÁÅ ÐÅÒÅËÏÍÐÉÌÉÒÏ×ÁÔØ ppp, ÄÏÂÁ×É× ÐÁÒÁÍÅÔÒÙ CFLAGS+=-g É STRIP= × ËÏÎÅà Makefile, Á ÚÁÔÅÍ ×ÙÐÏÌÎÉÔØ make clean && make && make install. ëÏÇÄÁ ppp ÚÁ×ÉÓÎÅÔ, ÎÁÊÄÉÔÅ ÉÄÅÎÔÉÆÉËÁÔÏÒ ÐÒÏÃÅÓÓÁ ppp Ó ÐÏÍÏÝØÀ ËÏÍÁÎÄÙ ps ajxww | fgrep ppp É ×ÙÐÏÌÎÉÔÅ ËÏÍÁÎÄÕ gdb ppp PID. úÁÔÅÍ × ÐÒÉÇÌÁÛÅÎÉÉ gdb ×Ù ÍÏÖÅÔÅ ÉÓÐÏÌØÚÏ×ÁÔØ ËÏÍÁÎÄÕ bt ÄÌÑ ÐÏÌÕÞÅÎÉÑ ÓÔÅËÁ ×ÙÚÏ×Ï×. ðÏÛÌÉÔÅ ÒÅÚÕÌØÔÁÔ ÎÁ ÁÄÒÅÓ brian@Awfulhak.org. îÉÞÅÇÏ ÎÅ ÐÒÏÉÓÈÏÄÉÔ ÐÏÓÌÅ ÓÏÏÂÝÅÎÉÑ Login OK! äÏ ×ÅÒÓÉÉ FreeBSD 2.2.5, ËÁË ÔÏÌØËÏ Ó×ÑÚØ ÕÓÔÁÎÁ×ÌÉ×ÁÌÁÓØ, ppp ÏÖÉÄÁÌ ÎÁÞÁÌÁ ÓÏÇÌÁÓÏ×ÁÎÉÑ Line Control Protocol (LCP) Ó ÐÒÏÔÉ×ÏÐÏÌÏÖÎÏÊ ÓÔÏÒÏÎÙ. íÎÏÇÉÅ ÐÒÏ×ÁÊÄÅÒÙ Internet ÎÅ ÎÁÞÉÎÁÀÔ ÓÏÇÌÁÓÏ×ÁÎÉÑ É ÐÒÅÄÐÏÌÁÇÁÀÔ, ÞÔÏ ÜÔÏ ÓÄÅÌÁÅÔ ËÌÉÅÎÔ. þÔÏÂÙ ÚÁÓÔÁ×ÉÔØ ppp ÉÎÉÃÉÉÒÏ×ÁÔØ ÓÏÇÌÁÓÏ×ÁÎÉÅ ÐÁÒÁÍÅÔÒÏ× LCP, ÉÓÐÏÌØÚÕÊÔÅ ÓÌÅÄÕÀÝÕÀ ÓÔÒÏËÕ: set openmode active úÁÍÅÞÁÎÉÅ: îÉÞÅÇÏ ÓÔÒÁÛÎÏÇÏ ÎÅ ÐÒÏÉÚÏÊÄ£Ô, ÅÓÌÉ ÓÏÇÌÁÓÏ×ÁÎÉÅ ÎÁÞÎÕÔ ÏÂÅ ÓÔÏÒÏÎÙ, ÐÏÜÔÏÍÕ ÒÅÖÉÍ ÉÎÉÃÉÉÒÏ×ÁÎÉÑ ÓÅÊÞÁÓ ÐÏ ÕÍÏÌÞÁÎÉÀ ÁËÔÉ×ÎÙÊ. ïÄÎÁËÏ, × ÓÌÅÄÕÀÝÅÍ ÒÁÚÄÅÌÅ ÏÐÉÓÙ×ÁÅÔÓÑ ÓÉÔÕÁÃÉÑ, ËÏÇÄÁ ÜÔÏ ÐÒÉ×ÏÄÉÔ Ë ÎÅËÏÔÏÒÙÍ ÎÅÐÒÉÑÔÎÏÓÔÑÍ. ÷ ÐÒÏÔÏËÏÌÅ ÅÓÔØ ÓÏÏÂÝÅÎÉÑ Ï ÔÏÍ, ÞÔÏ 'magic being the same'. éÎÏÇÄÁ, ÓÒÁÚÕ ÖÅ ÐÏÓÌÅ ÕÓÔÁÎÏ×ÌÅÎÉÑ ÓÏÅÄÉÎÅÎÉÑ, ×Ù ÍÏÖÅÔÅ Õ×ÉÄÅÔØ ÓÏÏÂÝÅÎÉÑ × ÐÒÏÔÏËÏÌÅ, ÇÏ×ÏÒÑÝÉÅ ÞÔÏ "magic is the same". éÎÏÇÄÁ ÜÔÉ ÓÏÏÂÝÅÎÉÑ ÐÒÏÈÏÄÑÔ ÂÅÚÂÏÌÅÚÎÅÎÎÏ, Á ÉÎÏÇÄÁ ÏÄÎÁ ÉÚ ÓÔÏÒÏÎ ÐÒÅËÒÁÝÁÀÔ ÒÁÂÏÔÕ. âÏÌØÛÉÎÓÔ×Ï ÒÅÁÌÉÚÁÃÉÊ ppp ÎÅ ÍÏÖÅÔ ÓÐÒÁ×ÉÔØÓÑ Ó ÔÁËÏÊ ÓÉÔÕÁÃÉÅÊ, É, ÄÁÖÅ ËÏÇÄÁ Ó×ÑÚØ ×ÙÇÌÑÄÉÔ ÕÓÔÁÎÏ×É×ÛÅÊÓÑ, ×Ù ÂÕÄÅÔÅ ×ÉÄÅÔØ ÔÏÌØËÏ ÂÅÓËÏÎÅÞÎÏ ÐÏ×ÔÏÒÑÀÝÉÅÓÑ ËÏÎÆÉÇÕÒÁÃÉÏÎÎÙÅ ÚÁÐÒÏÓÙ É ÐÏÄÔ×ÅÒÖÄÅÎÉÑ × ÆÁÊÌÅ ÐÒÏÔÏËÏÌÁ ÄÏ ÔÅÈ ÐÏÒ, ÐÏËÁ ppp ÏËÏÎÞÁÔÅÌØÎÏ ÎÅ ÚÁËÒÏÅÔ ÓÏÅÄÉÎÅÎÉÅ. ïÂÙÞÎÏ ÜÔÏ ÐÒÏÉÓÈÏÄÉÔ ÎÁ ÓÅÒ×ÅÒÁÈ Ó ÍÅÄÌÅÎÎÙÍÉ ÄÉÓËÁÍÉ, ÎÁ ËÏÔÏÒÙÈ ÐÏÒÔ ÏÂÓÌÕÖÉ×ÁÅÔ ÐÒÏÇÒÁÍÍÁ getty, Á ppp ×ÙÐÏÌÎÑÅÔÓÑ ÉÚ ÓÃÅÎÁÒÉÑ ÒÅÇÉÓÔÒÁÃÉÉ ÉÌÉ ÄÒÕÇÏÊ ÐÒÏÇÒÁÍÍÙ ÐÏÓÌÅ ÒÅÇÉÓÔÒÁÃÉÉ ÐÏÌØÚÏ×ÁÔÅÌÑ. âÙÌÉ ÓÏÏÂÛÅÎÉÑ, ÞÔÏ ÔÁËÏÅ ÓÌÕÞÁÅÔÓÑ ÐÏÓÔÏÑÎÎÏ ÐÒÉ ÉÓÐÏÌØÚÏ×ÁÎÉÉ slirp. ðÒÉÞÉÎÁ ÚÁËÌÀÞÁÅÔÓÑ × ÔÏÍ, ÞÔÏ ×Ï ×ÒÅÍÑ, ÐÒÏÈÏÄÑÝÅÅ ÍÅÖÄÕ ÚÁ×ÅÒÛÅÎÉÅÍ ÒÁÂÏÔÙ getty É ÚÁÐÕÓËÏÍ ppp, ppp ÓÏ ÓÔÏÒÏÎÙ ËÌÉÅÎÔÁ ÎÁÞÉÎÁÅÔ ÐÏÓÙÌÁÔØ ÐÁËÅÔÙ Line Control Protocol (LCP). ôÁË ËÁË ÒÅÖÉÍ ÜÈÁ ÏÓÔÁ£ÔÓÑ ×Ó£ ÅÝ£ ×ËÌÀÞÅÎÎÙÍ, ppp ËÌÉÅÎÔÁ ÐÏÌÕÞÁÅÔ "ÏÔÒÁÖÅÎÉÑ" Ó×ÏÉÈ ÚÁÐÒÏÓÏ×. þÁÓÔØÀ ÐÒÏÃÅÓÓÁ ÓÏÇÌÁÓÏ×ÁÎÉÑ ÐÁÒÁÍÅÔÒÏ× LCP Ñ×ÌÑÅÔÓÑ ÏÐÒÅÄÅÌÅÎÉÅ "ÍÁÇÉÞÅÓËÏÇÏ" ÞÉÓÌÁ ÄÌÑ ËÁÖÄÏÊ ÓÔÏÒÏÎÙ ÓÏÅÄÉÎÅÎÉÑ ÄÌÑ ÏÂÎÁÒÕÖÅÎÉÑ "ÏÔÒÁÖÅÎÉÊ". óÏÇÌÁÓÎÏ ÓÐÅÃÉÆÉËÁÃÉÉ, ËÏÇÄÁ ÏÄÎÁ ÓÔÏÒÏÎÁ ÐÙÔÁÅÔÓÑ ÉÓÐÏÌØÚÏ×ÁÔØ ÓÏ×ÐÁÄÁÀÝÅÅ "ÍÁÇÉÞÅÓËÏÅ" ÞÉÓÌÏ, ÄÏÌÖÅÎ ÂÙÔØ ÐÏÓÌÁÎ ÏÔ×ÅÔ NAK É ÄÏÌÖÎÏ ÂÙÔØ ×ÙÂÒÁÎÏ ÎÏ×ÏÅ "ÍÁÇÉÞÅÓËÏÅ" ÞÉÓÌÏ. ÷ ÔÏÔ ÍÏÍÅÎÔ, ËÏÇÄÁ ÎÁ ÐÏÒÔÕ ÓÅÒ×ÅÒÁ ×ËÌÀÞÅÎ ÒÅÖÉÍ ÜÈÁ, ËÌÉÅÎÔ ppp ÐÏÓÙÌÁÅÔ ÐÁËÅÔÙ LCP, ÐÏÌÕÞÁÅÔ ÔÏ ÖÅ ÓÁÍÏÅ "ÍÁÇÉÞÅÓËÏÅ" ÞÉÓÌÏ × ÏÔÒÁÖ£ÎÎÏÍ ÐÁËÅÔÅ É ÏÔ×ÅÞÁÅÔ ÎÁ ÎÅÇÏ NAK. ïÎ ÔÁËÖÅ ×ÉÄÉÔ ÏÔÒÁÖ£ÎÎÙÊ NAK (ËÏÔÏÒÙÊ ÔÁËÖÅ ÏÚÎÁÞÁÅÔ, ÞÔÏ ppp ÄÏÌÖÅÎ ÉÚÍÅÎÉÔØ Ó×Ï£ "ÍÁÇÉÞÅÓËÏÅ" ÞÉÓÌÏ). ÷ ÐÏÔÅÎÃÉÁÌÅ ÜÔÏ ÍÏÖÅÔ ×ÙÚ×ÁÔØ ÐÏÑ×ÌÅÎÉÅ ÏÇÒÏÍÎÏÇÏ ËÏÌÉÞÅÓÔ×Á ÐÒÏÃÅÓÓÏ× ÓÍÅÎ "ÍÁÇÉÞÅÓËÉÈ" ÞÉÓÅÌ, É ×ÓÅ ÏÎÉ ÎÁËÁÐÌÉ×ÁÀÔÓÑ × ÂÕÆÅÒÅ ÔÅÒÍÉÎÁÌÁ. ëÁË ÔÏÌØËÏ ÚÁÐÕÓÔÉÔÓÑ ÓÅÒ×ÅÒ ppp, ÏÎ ÂÕÄÅÔ ÐÅÒÅÇÒÕÖÅÎ ÚÁÐÒÏÓÁÍÉ ÎÁ ÓÍÅÎÕ "ÍÁÇÉÞÅÓËÉÈ", ÎÅÍÅÄÌÅÎÎÏ ÒÅÛÉÔ, ÞÔÏ ÜÔÏÇÏ ÍÎÏÇÏ ÄÌÑ ÓÏÇÌÁÓÏ×ÁÎÉÑ LCP É ÐÒÅÒ×£Ô ÓÏÅÄÉÎÅÎÉÅ. ÷ ÔÏ ÖÅ ÓÁÍÏÅ ×ÒÅÍÑ, ËÌÉÅÎÔ, ËÏÔÏÒÙÊ ÂÏÌØÛÅ ÎÅ ×ÉÄÉÔ ÏÔÒÁÖÅÎÉÊ, ÏÓÔÁÎÁ×ÌÉ×ÁÅÔÓÑ ÄÌÑ ÔÏÇÏ, ÞÔÏÂÙ Õ×ÉÄÅÔØ, ÞÔÏ ÓÅÒ×ÅÒ ÚÁËÒÙÌ ÓÏÅÄÉÎÅÉÅ. üÔÏÇÏ ÍÏÖÎÏ ÉÚÂÅÖÁÔØ, ÐÏÚ×ÏÌÉ× ÎÁÞÉÎÁÔØ ÓÏÇÌÁÓÏ×ÁÎÉÅ ÐÒÏÔÉ×ÏÐÏÌÏÖÎÏÊ ÓÔÏÒÏÎÅ ÓÌÅÄÕÀÝÅÊ ÓÔÒÏËÏÊ × ÆÁÊÌÅ ppp.conf: set openmode passive üÔÏ ÚÁÓÔÁ×ÉÔ ppp ÏÖÉÄÁÔØ ÎÁÞÁÌÁ ÓÏÇÌÁÓÏ×ÁÎÉÑ LCP. îÅËÏÔÏÒÙÅ ÓÅÒ×ÅÒÙ, ÏÄÎÁËÏ, ÍÏÇÕÔ ÎÉËÏÇÄÁ ÎÅ ÎÁÞÁÔØ ÓÏÇÌÁÓÏ×ÁÎÉÅ. åÓÌÉ ÜÔÏ ÔÏÔ ÓÁÍÙÊ ÓÌÕÞÁÊ, ×Ù ÍÏÖÅÔÅ ÓÄÅÌÁÔØ ÓÌÅÄÕÀÝÅÅ: set openmode active 3 üÔÏ ÚÁÓÔÁ×ÉÔ ppp ÐÁÓÓÉ×ÎÏ ÖÄÁÔØ 3 ÓÅËÕÎÄÙ, É ÔÏÌØËÏ ÚÁÔÅÍ ÐÏÓÙÌÁÔØ ÚÁÐÒÏÓÙ LCP. åÓÌÉ ÐÒÏÔÉ×ÏÐÏÌÏÖÎÁÑ ÓÔÏÒÏÎÁ ÎÁÞÎ£Ô ÐÏÓÙÌÁÔØ × ÜÔÏÔ ÍÏÍÅÎÔ ÚÁÐÒÏÓÙ, ppp ÎÅÍÅÄÌÅÎÎÏ ÏÔ×ÅÔÉÔ, ÎÅ ÏÖÉÄÁÑ ÉÓÔÅÞÅÎÉÑ ÔÒ£ÈÓÅËÕÎÄÎÏÇÏ ÉÎÔÅÒ×ÁÌÁ. óÏÇÌÁÓÏ×ÁÎÉÅ LCP ÐÒÏÄÏÌÖÁÅÔÓÑ, ÐÏËÁ ÎÅ ÚÁËÒÏÅÔÓÑ ÓÏÅÄÉÎÅÎÉÅ ÷ ÎÁÓÔÏÑÝÉÊ ÍÏÍÅÎÔ ÏÄÎÏÊ ÉÚ ÎÅÐÒÉÑÔÎÙÈ ÏÓÏÂÅÎÎÏÓÔÅÊ ÒÅÁÌÉÚÁÃÉÉ ppp Ñ×ÌÑÅÔÓÑ ÔÏ, ÞÔÏ ÏÎÁ ÎÅ Ó×ÑÚÙ×ÁÅÔ ÓÏÏÂÝÅÎÉÑ LCP, CCP & IPCP Ó ÚÁÐÒÏÓÁÍÉ. ëÁË ÒÅÚÕÌØÔÁÔ, ÅÓÌÉ ÒÅÁÌÉÚÁÃÉÑ ppp Ó ÏÄÎÏÊ ÓÔÏÒÏÎÙ ÂÏÌÅÅ ÞÅÍ ÎÁ 6 ÓÅËÕÎÄ ÍÅÄÌÅÎÎÅÅ, ÞÅÍ Ó ÄÒÕÇÏÊ, ÐÒÏÔÉ×ÏÐÏÌÏÖÎÁÑ ÓÔÏÒÏÎÁ ÂÕÄÅÔ ÐÏÓÙÌÁÔØ Ä×Á ÄÏÐÏÌÎÉÔÅÌØÎÙÈ ÚÁÐÒÏÓÁ ÎÁ ÓÏÇÌÁÓÏ×ÁÎÉÅ ÐÁÒÁÍÅÔÒÏ× LCP. üÔÏ ÆÁÔÁÌØÎÏ. ðÒÅÄÐÏÌÏÖÉÍ, ÞÔÏ Õ ÎÁÓ ÒÁÂÏÔÁÀÔ Ä×Å ÒÅÁÌÉÚÁÃÉÉ, A É B. A ÎÁÞÉÎÁÅÔ ÐÏÓÙÌÁÔØ ÚÁÐÒÏÓÙ LCP ÓÒÁÚÕ ÖÅ ÐÏÓÌÅ ÓÏÅÄÉÎÅÎÉÑ, Á B ÔÒÅÂÕÅÔÓÑ 7 ÓÅËÕÎÄ ÄÌÑ ÚÁÐÕÓËÁ. ëÏÇÄÁ B ÚÁÐÕÓËÁÅÔÓÑ, A ÐÏÓÌÁÌÏ 3 LCP-ÚÁÐÒÏÓÁ. ðÏÌÁÇÁÅÍ, ÞÔÏ ÒÅÖÉÍ ÜÈÁ ×ÙËÌÀÞÅÎ, × ÐÒÏÔÉ×ÎÏÍ ÓÌÕÞÁÅ ÍÙ ÓÔÏÌËÎÕÌÉÓØ ÂÙ Ó ÐÒÏÂÌÅÍÁÍÉ "ÍÁÇÉÞÅÓËÏÇÏ" ÞÉÓÌÁ, ÏÐÉÓÁÎÎÙÅ × ÐÒÅÄÙÄÕÝÅÍ ÒÁÚÄÅÌÅ. B ÐÏÓÙÌÁÅÔ REQ, ÚÁÔÅÍ ACK ÎÁ ÐÅÒ×ÙÊ REQ ÏÔ A. üÔÏ ÐÒÉ×ÏÄÉÔ Ë ÔÏÍÕ, ÞÔÏ A ×ÈÏÄÉÔ × ÓÏÓÔÏÑÎÉÅ OPENED É ÐÏÓÙÌÁÅÔ (ÐÅÒ×ÙÊ) ACK ÏÂÒÁÔÎÏ B. ÷ ÔÏ ÖÅ ÓÁÍÏÅ ×ÒÅÍÑ B ÐÏÓÙÌÁÅÔ ÏÂÒÁÔÎÏ ÅÝ£ Ä×Á ACK × ÏÔ×ÅÔ ÎÁ Ä×Á ÄÏÐÏÌÎÉÔÅÌØÎÙÈ REQ, ÐÏÓÌÁÎÎÙÅ A ÄÏ ÓÔÁÒÔÁ B. B ÚÁÔÅÍ ÐÏÌÕÞÁÅÔ ÐÅÒ×ÙÊ ACK ÏÔ A É ×ÏÚ×ÒÁÝÁÅÔÓÑ × ÓÏÓÔÏÑÎÉÅ REQ-SENT, ÐÏÓÌÁ× ÅÝ£ ÏÄÉÎ (ÞÅÔ×£ÒÔÙÊ) REQ ÓÏÇÌÁÓÎÏ RFC. úÁÔÅÍ ÏÎ ÐÏÌÕÞÁÅÔ ÔÒÅÔÉÊ ACK É ×ÈÏÄÉÔ × ÓÏÓÔÏÑÎÉÅ OPENED. ÷ ÔÏ ÖÅ ×ÒÅÍÑ B ÐÒÉÎÉÍÁÅÔ ÞÅÔ×£ÒÔÙÊ REQ ÏÔ A, ÞÔÏ ×ÏÚ×ÒÁÝÁÅÔ ÅÇÏ × ÓÏÓÔÏÑÎÉÅ ACK-SENT É ÐÏÓÙÌÁÅÔ ÅÝ£ ÏÄÉÎ (×ÔÏÒÏÊ) REQ É (ÞÅÔ×£ÒÔÙÊ) ACK ÓÏÇÌÁÓÎÏ RFC. A ÐÏÌÕÞÁÅÔ REQ, ÐÅÒÅÈÏÄÉÔ × ÓÏÓÔÏÑÎÉÅ REQ-SENT É ÐÏÓÙÌÁÅÔ ÅÝ£ ÏÄÉÎ REQ. ïÎ ÎÅÍÅÄÌÅÎÎÏ ÐÒÉÎÉÍÁÅÔ ÐÏÓÌÅÄÕÀÝÉÊ ACK É ×ÈÏÄÉÔ × ÓÏÓÔÏÑÎÉÅ OPENED. üÔÏ ÂÕÄÅÔ ÐÒÏÄÏÌÖÁÔØÓÑ ÄÏ ÔÅÈ ÐÏÒ, ÐÏËÁ ÏÄÎÁ ÉÚ ÓÔÏÒÏÎ ÎÅ ÏÂÎÁÒÕÖÉÔ, ÞÔÏ ÜÔÏ ÎÉ Ë ÞÅÍÕ ÎÅ ÐÒÉ×ÏÄÉÔ É ÎÅ ÚÁËÒÏÅÔ ÓÏÅÄÉÎÅÎÉÅ. ìÕÞÛÉÍ ÓÐÏÓÏÂÏÍ ÉÚÂÅÖÁÔØ ÜÔÏÊ ÓÉÔÕÁÃÉÉ Ñ×ÌÑÅÔÓÑ ËÏÎÆÉÇÕÒÁÃÉÑ ÏÄÎÏÊ ÉÚ ÓÔÏÒÏÎ ËÁË passive, ÞÔÏÂÙ ÏÎÁ ÖÄÁÌÁ ÄÒÕÇÕÀ ÄÌÑ ÎÁÞÁÌÁ ÓÏÇÌÁÓÏ×ÁÎÉÑ. üÔÏ ÍÏÖÎÏ ÓÄÅÌÁÔØ ËÏÍÁÎÄÏÊ set openmode passive ó ÜÔÏÊ ËÏÍÁÎÄÏÊ ÎÕÖÎÏ ÂÙÔØ ÏÓÔÏÒÏÖÎÙÍ. ÷Ù ÔÁËÖÅ ÄÏÌÖÎÙ ÂÕÄÅÔÅ ÉÓÐÏÌØÚÏ×ÁÔØ ËÏÍÁÎÄÕ set stopped N ÄÌÑ ÏÇÒÁÎÉÞÅÎÉÑ ÐÅÒÉÏÄÁ ÏÖÉÄÁÎÉÑ, × ÔÅÞÅÎÉÉ ËÏÔÏÒÏÇÏ ppp ÖÄ£Ô ÎÁÞÁÌÁ ÓÏÇÌÁÓÏ×ÁÎÉÑ Ó ÐÒÏÔÉ×ÏÐÏÌÏÖÎÏÊ ÓÔÏÒÏÎÙ. ëÁË ×ÁÒÉÁÎÔ, ÍÏÖÅÔ ÂÙÔØ ÉÓÐÏÌØÚÏ×ÁÎÁ ÓÔÒÏËÁ set openmode active N (ÇÄÅ N - ÐÅÒÉÏÄ ÏÖÉÄÁÎÉÑ × ÓÅËÕÎÄÁÈ ÐÅÒÅÄ ÔÅÍ, ËÁË ÎÁÞÁÔØ ÓÏÇÌÁÓÏ×ÁÎÉÅ). ÷ÓËÏÒÅ ÐÏÓÌÅ ÓÏÅÄÉÎÅÎÉÑ ppp ÂÌÏËÉÒÕÅÔÓÑ ÷ ×ÅÒÓÉÑÈ FreeBSD ÒÁÎÅÅ 2.2.5, ÂÙÌÁ ×ÏÚÍÏÖÎÁ ÓÉÔÕÁÃÉÑ, ËÏÇÄÁ Ó×ÑÚØ ×ÙËÌÀÞÁÌÁÓØ ÏÞÅÎØ ÓËÏÒÏ ÐÏÓÌÅ ÓÏÅÄÉÎÅÎÉÑ ÉÚ-ÚÁ ÎÅËÏÒÒÅËÔÎÏÊ ÏÂÒÁÂÏÔËÉ ÚÁÐÒÏÓÁ ÎÁ ÓÏÇÌÁÓÏ×ÁÎÉÑ ÓÖÁÔÉÑ ÄÁÎÎÙÈ ppp. üÔÏ ÓÌÕÞÁÌÏÓØ, ËÏÇÄÁ ÏÂÅ ÓÔÏÒÏÎÙ ÐÙÔÁÌÉÓØ ÕÓÔÁÎÏ×ÉÔØ ÒÁÚÎÙÅ ÔÉÐÙ CCP (Compression Control Protocol). üÔÁ ÐÒÏÂÌÅÍÁ ÓÅÊÞÁÓ ÒÅÛÅÎÁ, ÎÏ ÅÓÌÉ ×Ù ×Ó£ ÅÝ£ ÉÓÐÏÌØÚÕÅÔÅ ÓÔÁÒÕÀ ×ÅÒÓÉÀ ppp, ÐÒÏÂÌÅÍÁ ÍÏÖÅÔ ÂÙÔØ ÏÂÏÊÄÅÎÁ Ó ÐÏÍÏÝØÀ ÓÔÒÏËÉ disable pred1 ëÏÇÄÁ Ñ ×ÙÐÏÌÎÑÀ ËÏÍÁÎÄÕ shell ÄÌÑ ÔÅÓÔÉÒÏ×ÁÎÉÑ ÓÏÅÄÉÎÅÎÉÑ, ppp ÂÌÏËÉÒÕÅÔÓÑ ëÏÇÄÁ ×Ù ×ÙÐÏÌÎÑÅÔÅ ËÏÍÁÎÄÕ shell ÉÌÉ !, ppp ÚÁÐÕÓËÁÅÔ ÏÂÏÌÏÞËÕ (ÅÓÌÉ ÂÙÌÉ ÚÁÄÁÎÙ ÐÁÒÁÍÅÔÒÙ, ppp ÉÈ ÉÓÐÏÌØÚÕÅÔ). Ppp ÂÕÄÅÔ ÖÄÁÔØ ÏËÏÎÞÁÎÉÑ ×ÙÐÏÌÎÅÎÉÑ ËÏÍÁÎÄÙ, ÐÒÅÖÄÅ ÞÅÍ ÐÒÏÄÏÌÖÉÔØ. åÓÌÉ ×Ù ÐÏÐÙÔÁÅÔÅÓØ ×ÏÓÐÏÌØÚÏ×ÁÔØÓÑ Ó×ÑÚØÀ ppp ÐÏÓÌÅ ÚÁÐÕÓËÁ ËÏÍÁÎÄÙ, Ó×ÑÚØ ÂÕÄÅÔ ×ÙÇÌÑÄÅÔØ ÚÁÂÌÏËÉÒÏ×ÁÎÎÏÊ. üÔÏ ÐÒÏÉÓÈÏÄÉÔ ÉÚ-ÚÁ ÔÏÇÏ, ÞÔÏ ppp ÖÄ£Ô ÚÁ×ÅÒÛÅÎÉÑ ×ÙÐÏÌÎÅÎÉÑ ÚÁÐÕÝÅÎÎÏÊ ËÏÍÁÎÄÙ. åÓÌÉ ×ÁÍ ÎÅÏÂÈÏÄÉÍÏ ×ÙÐÏÌÎÑÔØ ÐÏÄÏÂÎÙÅ ËÏÍÁÎÄÙ, ÉÓÐÏÌØÚÕÊÔÅ ËÏÍÁÎÄÕ !bg. ÷ ÜÔÏÍ ÓÌÕÞÁÅ ÎÕÖÎÁÑ ËÏÍÁÎÄÁ ÂÕÄÅÔ ×ÙÐÏÌÎÑÔØÓÑ × ÆÏÎÏ×ÏÍ ÒÅÖÉÍÅ, Á ppp ÓÍÏÖÅÔ ÐÒÏÄÏÌÖÉÔØ ÏÂÓÌÕÖÉ×ÁÎÉÅ ËÁÎÁÌÁ Ó×ÑÚÉ. Ppp, ÏÂÓÌÕÖÉ×ÁÀÝÅÅ ÎÕÌØ-ÍÏÄÅÍ, ÎÉËÏÇÄÁ ÎÅ ÚÁËÒÙ×ÁÅÔÓÑ Ppp ÎÅ ÍÏÖÅÔ ÏÐÒÅÄÅÌÉÔØ, ÞÔÏ ÓÏÅÄÉÎÅÎÉÅ ÂÙÌÏ ÚÁËÒÙÔÏ. üÔÏ ÐÒÏÉÓÈÏÄÉÔ ÉÚ-ÚÁ ÍÅÔÏÄÁ ÉÓÐÏÌØÚÏ×ÁÎÉÑ ÓÉÇÎÁÌØÎÙÈ ÌÉÎÉÊ ÎÕÌØ-ÍÏÄÅÍÎÏÇÏ ËÁÂÅÌÑ. ðÒÉ ÉÓÐÏÌØÚÏ×ÁÎÉÉ ÔÁËÏÇÏ ÔÉÐÁ ÓÏÅÄÉÎÅÎÉÑ ×ÓÅÇÄÁ ×ËÌÀÞÁÊÔÅ LQR. enable lqr ðÏ ÕÍÏÌÞÁÎÉÀ LQR ×ËÌÀÞÁÅÔÓÑ, ÅÓÌÉ ÜÔÏ ÂÙÌÏ ÚÁÔÒÅÂÏ×ÁÎÏ Ó ÐÒÏÔÉ×ÏÐÏÌÏÖÎÏÊ ÓÔÏÒÏÎÙ ÎÁ ÜÔÁÐÅ ÓÏÇÌÁÓÏ×ÁÎÉÑ ÐÁÒÁÍÅÔÒÏ× ÓÏÅÄÉÎÅÎÉÑ. ÷ ÒÅÖÉÍÅ -auto ppp ÎÅÏÖÉÄÁÎÎÏ ÎÁÞÉÎÁÅÔ Ú×ÏÎÉÔØ åÓÌÉ ppp ÎÁÞÉÎÁÅÔ ÎÅÏÖÉÄÁÎÎÏ Ú×ÏÎÉÔØ, ×Ù ÄÏÌÖÎÙ ÏÐÒÅÄÅÌÉÔØ ÐÒÉÞÉÎÕ É ÚÁÄÁÔØ ÆÉÌØÔÒÙ dfilters ÄÌÑ ÐÒÅÄÏÔ×ÒÁÝÅÎÉÑ ÐÏÄÏÂÎÙÈ Ú×ÏÎËÏ×. äÌÑ ×ÙÑÓÎÅÎÉÑ ÐÒÉÞÉÎÙ ÔÁËÏÇÏ ÐÏ×ÅÄÅÎÉÑ, ÉÓÐÏÌØÚÕÊÔÅ ÓÔÒÏËÕ: set log +tcp/ip üÔÏ ×ËÌÀÞÉÔ ÐÒÏÔÏËÏÌÉÒÏ×ÁÎÉÅ ×ÓÅÇÏ ÔÒÁÆÉËÁ ÞÅÒÅÚ ÓÏÅÄÉÎÅÎÉÅ. ÷ ÓÌÅÄÕÀÝÉÊ ÒÁÚ, ËÏÇÄÁ ÎÅÏÖÉÄÁÎÎÏ ÂÕÄÅÔ ÕÓÔÁÎÏ×ÌÅÎÏ ÓÏÅÄÉÎÅÎÉÅ, ×Ù ÕÓÔÁÎÏ×ÉÔÅ ÐÒÉÞÉÎÕ ÐÏ ×ÒÅÍÅÎÎÙÍ ÏÔÍÅÔËÁÍ × ÆÁÊÌÅ ÐÒÏÔÏËÏÌÁ. ðÏÓÌÅ ÜÔÏÇÏ ×Ù ÍÏÖÅÔÅ ÚÁÐÒÅÔÉÔØ ÄÏÚ×ÏÎËÕ ÐÒÉ ×ÙÑÓÎÅÎÎÙÈ ÕÓÌÏ×ÉÑÈ. ëÁË ÐÒÁ×ÉÌÏ, ÔÁËÉÅ ÐÒÏÂÌÅÍÙ ×ÏÚÎÉËÁÀÔ ÉÚ-ÚÁ ÏÂÒÁÝÅÎÉÊ Ë DNS. äÌÑ ÐÒÅÄÏÔ×ÒÁÝÅÎÉÑ ÏÂÒÁÝÅÎÉÊ Ë DNS É ÕÓÔÁÎÏ×ÌÅÎÉÑ ÓÏÅÄÉÎÅÎÉÑ (ÞÔÏ ÎÅ ÚÁÐÒÅÔÉÔ ppp ÐÒÏÐÕÓËÁÔØ ÐÁËÅÔÙ ÞÅÒÅÚ ÕÖÅ ÕÓÔÁÎÏ×ÌÅÎÎÏÅ ÓÏÅÄÉÎÅÎÉÅ), ÉÓÐÏÌØÚÕÊÔÅ ÔÁËÕÀ ËÏÍÂÉÎÁÃÉÀ: set dfilter 1 deny udp src eq 53 set dfilter 2 deny udp dst eq 53 set dfilter 3 permit 0/0 0/0 üÔÏ ÍÏÖÅÔ ×ÁÍ ÎÅ ÐÏÄÏÊÔÉ, ÔÁË ËÁË ÚÁËÒÏÅÔ ×ÏÚÍÏÖÎÏÓÔØ ÄÏÚ×ÏÎËÉ ÐÏ ÚÁÐÒÏÓÕ - ÂÏÌØÛÉÎÓÔ×Õ ÐÒÏÇÒÁÍÍ ÎÕÖÎÏ ÏÂÒÁÔÉÔØÓÑ Ë DNS ÄÏ ÔÏÇÏ, ËÁË ÎÁÞÁÔØ ÒÁÂÏÔÁÔØ. ÷ ÓÌÕÞÁÅ DNS, ×Ù ÄÏÌÖÎÙ ÐÏÐÙÔÁÔØÓÑ ÏÐÒÅÄÅÌÉÔØ, ËÔÏ ÐÙÔÁÅÔÓÑ ÏÐÒÅÄÅÌÉÔØ ÉÍÑ ÈÏÓÔÁ. ÷ ÂÏÌØÛÉÓÔ×Å ÓÌÕÞÁÅ× ×ÉÎÏ×ÎÙÍ ÏËÁÚÙ×ÁÅÔÓÑ sendmail. õÄÏÓÔÏ×ÅÒØÔÅÓØ, ÞÔÏ ×Ù ÕËÁÚÁÌÉ ÐÒÏÇÒÁÍÍÅ sendmail ÎÅ ÏÓÕÝÅÓÔ×ÌÑÔØ ÏÂÒÁÝÅÎÉÊ Ë DNS × ÅÇÏ ËÏÎÆÉÇÕÒÁÃÉÏÎÎÏÍ ÆÁÊÌÅ. ïÂÒÁÔÉÔÅÓØ Ë ÒÁÚÄÅÌÕ Ï ÚÁ ÐÏÄÒÏÂÎÙÍ ÏÐÉÓÁÎÉÅÍ ÓÏÚÄÁÎÉÑ ËÏÎÆÉÇÕÒÁÃÉÏÎÎÏÇÏ ÆÁÊÌÁ É ÞÔÏ ÔÕÄÁ ÎÕÖÎÏ ÐÏÍÅÓÔÉÔØ. ÷ÁÍ ÍÏÖÅÔ ÐÏÎÁÄÏÂÉÔØÓÑ ÄÏÂÁ×ÉÔØ × ÆÁÊÌ .mc ÓÔÒÏËÕ: define(`confDELIVERY_MODE', `d')dnl üÔÏ ÚÁÓÔÁ×ÉÔ sendmail ÓÔÁ×ÉÔØ ×ÓÅ ÓÏÏÂÝÅÎÉÑ × ÏÞÅÒÅÄØ ÄÏ ÔÅÈ ÐÏÒ, ÐÏËÁ ÎÅ ÂÕÄÅÔ ÚÁÐÕÝÅÎÁ Å£ ÏÂÒÁÂÏÔËÁ (ËÁË ÐÒÁ×ÉÌÏ, sendmail ÚÁÐÕÓËÁÅÔÓÑ Ó ÐÁÒÁÍÅÔÒÁÍÉ ``-bd -q30m'', ÕËÁÚÙ×ÁÀÝÉÅ, ÞÔÏ ÏÂÒÁÂÁÔÙ×ÁÔØ ÏÞÅÒÅÄØ ÎÕÖÎÏ ËÁÖÄÙÅ 30 ÍÉÎÕÔ) ÉÌÉ ÄÏ ÔÅÈ ÐÏÒ, ÐÏËÁ ÎÅ ÂÕÄÅÔ ×ÙÐÏÌÎÅÎÁ ËÏÍÁÎÄÁ ``sendmail -q'' (ÍÏÖÅÔ ÂÙÔØ, ÉÚ ÆÁÊÌÁ ppp.linkup). þÔÏ ÏÚÎÁÞÁÀÔ ÏÛÉÂËÉ CCP ÷ ÆÁÊÌÅ ÐÒÏÔÏËÏÌÁ ÐÏÑ×ÌÑÀÔÓÑ ÔÁËÉÅ ÓÏÏÂÝÅÎÉÑ Ï ÏÛÉÂËÁÈ: CCP: CcpSendConfigReq CCP: Received Terminate Ack (1) state = Req-Sent (6) üÔÏ ÐÒÏÉÓÈÏÄÉÔ, ÅÓÌÉ ppp ÐÙÔÁÅÔÓÑ ÕÓÔÁÎÏ×ÉÔØ ËÏÍÐÒÅÓÓÉÀ ÔÉÐÁ Predictor1, Á ÐÒÏÔÉ×ÏÐÏÌÏÖÎÁÑ ÓÔÏÒÏÎÁ ÎÅ ÈÏÞÅÔ ÕÓÔÁÎÁ×ÌÉ×ÁÔØ ÎÉËÁËÏÊ ËÏÍÐÒÅÓÓÉÉ. üÔÉ ÓÏÏÂÝÅÎÉÑ ÂÅÚÏÂÉÄÎÙ, ÎÏ ÅÓÌÉ ×Ù ÈÏÔÉÔÅ ÏÔ ÎÉÈ ÉÚÂÁ×ÉÔØÓÑ, ×Ù ÍÏÖÅÔÅ ÚÁÐÒÅÔÉÔØ ËÏÍÐÒÅÓÓÉÀ Predictor1 É Õ ÓÅÂÑ ÔÏÖÅ: disable pred1 Ppp ÂÌÏËÉÒÕÅÔÓÑ ×Ï ×ÒÅÍÑ ÐÅÒÅÄÁÞÉ ÆÁÊÌÁ Ó ÏÛÉÂËÁÍÉ ××ÏÄÁ-×Ù×ÏÄÁ ÷ FreeBSD 2.2.2 É ÒÁÎÅÅ ÓÕÝÅÓÔ×Ï×ÁÌÁ ÏÛÉÂËÁ × ÄÒÁÊ×ÅÒÅ ÕÓÔÒÏÊÓÔ×Á tun, ËÏÔÏÒÁÑ ÎÅ ÐÏÚ×ÏÌÑÌÁ ÐÒÏÈÏÄÉÔØ ÐÁËÅÔÁÍ ÒÁÚÍÅÒÏÍ, ÐÒÅ×ÙÛÁÀÝÉÍ ÚÎÁÞÅÎÅ MTU ÉÎÔÅÒÆÅÊÓÁ. ðÒÉ£Í ÐÁËÅÔÁ, ÂÏÌØÛÅÇÏ, ÞÅÍ ÒÁÚÍÅÒ MTU, ÐÒÉ×ÏÄÉÔ Ë ÏÛÉÂËÅ ××ÏÄÁ-×Ù×ÏÄÁ, ËÏÔÏÒÙÊ ÐÒÏÔÏËÏÌÉÒÕÅÔÓÑ ÞÅÒÅÚ syslogd. óÐÅÃÉÆÉËÁÃÉÑ ÐÒÏÔÏËÏÌÁ ppp ÕÔ×ÅÒÖÄÁÅÔ, ÞÔÏ MRU, ÒÁ×ÎÏÅ 1500, ÄÏÌÖÎÏ ×ÓÅÇÄÁ ÐÏÄÈÏÄÉÔØ ËÁË ÍÉÎÉÍÁÌØÎÏÅ, ÎÅÓÍÏÔÒÑ ÎÁ ÓÏÇÌÁÓÏ×ÁÎÉÅ LCP, ÔÁËÉÍ ÏÂÒÁÚÏÍ, ÅÓÌÉ ÓÄÅÌÁÔØ MTU ÍÅÎØÛÅ 1500, ×ÁÛ ÐÒÏ×ÁÊÄÅÒ ÍÏÖÅÔ ÎÁÞÁÔØ ÐÅÒÅÄÁ×ÁÔØ ÐÁËÅÔÙ ÒÁÚÍÅÒÏÍ 1500, ÎÅÓÍÏÔÒÑ ÎÉ ÎÁ ÞÔÏ, É ×Ù ÜÔÏ ÐÏÞÕ×ÓÔ×ÕÅÔÅ - ×ÁÛÅ ÓÏÅÄÉÎÅÎÉÅ ÚÁÂÌÏËÉÒÕÅÔÓÑ. ðÒÏÂÌÅÍÁ ÍÏÖÅÔ ÂÙÔØ ÏÂÏÊÄÅÎÁ, ÅÓÌÉ ÎÉËÏÇÄÁ ÎÅ ÓÔÁ×ÉÔØ MTU, ÍÅÎØÛÅÅ, ÞÅÍ 1500, ÄÌÑ FreeBSD 2.2.2 É ÒÁÎÅÅ. ðÏÞÅÍÕ ppp ÎÅ ÐÒÏÔÏËÏÌÉÒÕÅÔ ÓËÏÒÏÓÔØ ÓÏÅÄÉÎÅÎÉÑ? äÌÑ ×Ù×ÏÄÁ ÐÒÏÔÏËÏÌÁ ×ÚÁÉÍÏÄÅÊÓÔ×ÉÑ Ó ÍÏÄÅÍÏÍ ×ÁÍ ÎÕÖÎÏ ×ËÌÀÞÉÔØ ÓÌÅÄÕÀÝÅÅ: set log +connect üÔÏ ÚÁÓÔÁ×ÉÔ ppp ÐÒÏÔÏËÏÌÉÒÏ×ÁÔØ ×Ó£ ×ÐÌÏÔØ ÄÏ ÐÏÓÌÅÄÎÅÊ ÐÒÏÞÔ£ÎÎÏÊ ÞÅÒÅÚ "expect" ÓÔÒÏËÉ. åÓÌÉ ×Ù ÈÏÔÉÔÅ ×ÉÄÅÔØ ÓËÏÒÏÓÔØ ÓÏÅÄÉÎÅÎÉÑ É ÉÓÐÏÌØÚÕÅÔÅ PAP ÉÌÉ CHAP (É ÐÏÜÔÏÍÕ ×ÁÍ ÎÅ ÎÕÖÎÏ ÏÐÒÅÄÅÌÑÔØ ÎÉËÁËÉÈ ÓÃÅÎÁÒÉÅ× ×ÈÏÄÁ ÞÅÒÅÚ "set login" ÐÏÓÌÅ ÐÏÌÕÞÅÎÉÑ ÓÔÒÏËÉ CONNECT ÓÃÅÎÁÒÉÅÍ ÄÏÚ×ÏÎËÉ dial), ×Ù ÄÏÌÖÎÙ ÕËÁÚÁÔØ ppp, ÞÔÏ ÎÕÖÎÏ ÏÖÉÄÁÔØ ÐÏÌÎÕÀ ÓÔÒÏËÕ CONNECT, ×ÒÏÄÅ ÓÌÅÄÕÀÝÅÇÏ: set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 4 \"\" ATZ OK-ATZ-OK ATDT\\T TIMEOUT 60 CONNECT \\c \\n" úÄÅÓØ ÍÙ ÐÏÌÕÞÉÌÉ ÓÔÒÏËÕ CONNECT, ÎÉÞÅÇÏ ÎÅ ÐÏÓÙÌÁÅÍ, ÚÁÔÅÍ ÏÖÉÄÁÅÍ ÓÉÍ×ÏÌÁ ÐÅÒÅ×ÏÄÁ ÓÔÒÏËÉ, ÚÁÓÔÁ×ÌÑÑ ppp ÐÒÉÎÑÔØ ÐÏÌÎÙÊ ÏÔ×ÅÔ ÍÏÄÅÍÁ. Ppp ÉÇÎÏÒÉÒÕÅÔ ÓÉÍ×ÏÌ `\' × chat-ÓËÒÉÐÔÅ Ppp ×ÙÐÏÌÎÑÅÔ ËÁÖÄÕÀ ÓÔÒÏËÕ × ×ÁÛÉÈ ËÏÎÆÉÇÕÒÁÃÉÏÎÎÙÈ ÆÁÊÌÁÈ, ÔÁË ÞÔÏ ÏÎÁ ÍÏÖÅÔ ÐÒÏÉÎÔÅÒÐÒÅÔÉÒÏ×ÁÔØ ÓÔÒÏËÕ ×ÉÄÁ set phone "123 456 789" ÐÒÁ×ÉÌØÎÏ (É ÏÂÎÁÒÕÖÉÔØ. ÞÔÏ ÎÏÍÅÒ Ñ×ÌÑÅÔÓÑ ÎÁ ÓÁÍÏÍ ÄÅÌÅ ÅÄÉÎÓÔ×ÅÎÎÙÍ ÁÒÇÕÍÅÎÔÏÍ. äÌÑ ÔÏÇÏ, ÞÔÏÂÙ ÕËÁÚÁÔØ ÓÉÍ×ÏÌ ``"'', ×Ù ÄÏÌÖÎÙ ÜËÒÁÎÉÒÏ×ÁÔØ ÅÇÏ ÓÉÍ×ÏÌÏÍ ÏÂÒÁÔÎÏÇÏ ÓÌÜÛÁ (``\''). ëÏÇÄÁ ÉÎÔÅÒÐÒÅÔÁÔÏÒ chat ÏÂÒÁÂÁÔÙ×ÁÅÔ ËÁÖÄÕÀ ÓÔÒÏËÕ, ÏÎ ÅÝ£ ÒÁÚ ÐÒÏÓÍÁÔÒÉ×ÁÅÔ ÁÒÇÕÍÅÎÔ ÄÌÑ ÔÏÇÏ, ÞÔÏÂÙ ÎÁÊÔÉ ËÁËÕÀ-ÌÉÂÏ ÓÐÅÃÉÁÌØÎÕÀ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÏÓÔØ ÔÉÐÁ ``\P'' or ``\T'' (ÏÂÒÁÔÉÔÅÓØ Ó ÓÐÒÁ×ÏÞÎÉËÕ). ÷ ÒÅÚÕÌØÔÁÔÅ ÉÚ-ÚÁ ÜÔÏÊ Ä×ÏÊÎÏÊ ÉÎÔÅÒÐÒÅÔÁÃÉÉ ×Ù ÄÏÌÖÎÙ ×ÓÅÇÄÁ ÉÓÐÏÌØÚÏ×ÁÔØ ÐÒÁ×ÉÌØÎÏÅ ÞÉÓÌÏ ÓÉÍ×ÏÌÏ× ÜËÒÁÎÉÒÏ×ÁÎÉÑ. åÓÌÉ ×ÁÍ ÎÕÖÎÏ ÐÅÒÅÄÁÔØ ÓÉÍ×ÏÌ ``\'', ÎÁÐÒÉÍÅÒ, ×ÁÛÅÍÕ ÍÏÄÅÍÕ, ×ÁÍ ÎÅÏÂÈÏÄÉÍÏ ÕËÁÚÁÔØ ÞÔÏ-ÔÏ ÔÉÐÁ: set dial "\"\" ATZ OK-ATZ-OK AT\\\\X OK" ÞÔÏ ÐÒÉ×ÅÄ£Ô Ë ÔÁËÏÊ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÏÓÔÉ: ATZ OK AT\X OK ÉÌÉ set phone 1234567 set dial "\"\" ATZ OK ATDT\\T" ÞÔÏ ÄÁÓÔ ÔÁËÕÀ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÏÓÔØ: ATZ OK ATDT1234567 Ppp ÐÏÌÕÞÁÅÔ ÏÛÉÂËÕ ÚÁÝÉÔÙ, ÎÏ Ñ ÎÅ ×ÉÖÕ ÆÁÊÌÁ ppp.core Ppp (ÉÌÉ ÌÀÂÁÑ ÄÒÕÇÁÑ ÐÒÏÇÒÁÍÍÁ ÔÁËÏÇÏ ÒÏÄÁ) ÎÉËÏÇÄÁ ÎÅ ÓÏÚÄÁ£Ô ÆÁÊÌÏ× ÄÁÍÐÁ ÐÁÍÑÔÉ. ôÁË ÔÁË ppp ÚÁÐÕÓËÁÅÔÓÑ Ó ÜÆÆÅËÔÉ×ÎÙÍ uid, ÒÁ×ÎÙÍ 0, ÔÏ ÏÐÅÒÁÃÉÏÎÎÁÑ ÓÉÓÔÅÍÁ ÎÅ ÂÕÄÅÔ ÚÁÐÉÓÙ×ÁÔØ ÄÁÍÐ ÐÁÍÑÔÉ ppp ÎÁ ÄÉÓË ÐÅÒÅÄ ÅÇÏ ÚÁ×ÅÒÛÅÎÉÅÍ. åÓÌÉ, ÏÄÎÁËÏ ppp ×Ó£ ÖÅ ÐÒÅËÒÁÔÉÔ ÒÁÂÏÔÕ ÉÚ-ÚÁ ÎÁÒÕÛÅÎÉÑ ÚÁÝÉÔÙ, ÉÌÉ ÐÏ ÄÒÕÇÏÍÕ ÓÉÇÎÁÌÕ, ËÏÔÏÒÙÊ ×ÙÚÙ×ÁÅÔ ÓÏÚÄÁÎÉÅ ÄÁÍÐÁ ÐÁÍÑÔÉ, É ×Ù Õ×ÅÒÅÎÙ, ÞÔÏ ÉÓÐÏÌØÚÕÅÔÅ ÓÁÍÕÀ ÐÏÓÌÅÄÎÀÀ ×ÅÒÓÉÀ (ÓÍÏÔÒÉÔÅ ÓÁÍÏÅ ÎÁÞÁÌÏ ÒÁÚÄÅÌÁ), ÔÏ ×Ù ÄÏÌÖÎÙ ÓÄÅÌÁÔØ ÓÌÅÄÕÀÝÅÅ: $ tar xfz ppp-*.src.tar.gz $ cd ppp*/ppp $ echo STRIP= >>Makefile $ echo CFLAGS+=-g >>Makefile $ make clean all $ su # make install # chmod 555 /usr/sbin/ppp ôÅÐÅÒØ Õ ×ÁÓ ÅÓÔØ ÏÔÌÁÄÏÞÎÁÑ ×ÅÒÓÉÑ ppp. ÷ÁÍ ÎÕÖÎÏ ÓÔÁÔØ ÓÕÐÅÒÐÏÌØÚÏ×ÁÔÅÌÅÍ ÄÌÑ ÚÁÐÕÓËÁ ppp, ÔÁË ËÁË ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÅ ÂÉÔÙ ÐÒÁ× ÂÙÌÉ ÕÂÒÁÎÙ. ëÏÇÄÁ ÚÁÐÕÓÔÉÔÅ ppp, ÏÂÒÁÔÉÔÅ ÏÓÏÂÏÅ ×ÎÉÍÁÎÉÅ ÎÁ ÔÏ, ËÁËÏÊ ËÁÔÁÌÏÇ Õ ×ÁÓ ÂÙÌ ÔÅËÕÝÉÍ ÎÁ ÜÔÏÔ ÍÏÍÅÎÔ. éÔÁË, ÅÓÌÉ ppp ÐÏÌÕÞÉÔ ÏÛÉÂËÕ ÎÁÒÕÛÅÎÉÑ ÚÁÝÉÔÙ, ÏÎ ÓÂÒÏÓÉÔ ÄÁÍÐ ÐÁÍÑÔÉ Ó ÉÍÅÎÅÍ ppp.core. úÁÔÅÍ ×ÁÍ ÎÕÖÎÏ ÓÄÅÌÁÔØ ÓÌÅÄÕÀÝÅÅ: $ su # gdb /usr/sbin/ppp ppp.core (gdb) bt ..... (gdb) f 0 ..... (gdb) i args ..... (gdb) l ..... ÷ÓÑ ÜÔÁ ÉÎÆÏÒÍÁÃÉÑ ÄÏÌÖÎÁ ÂÙÔØ ÐÒÅÄÏÓÔÁ×ÌÅÎÁ ×ÍÅÓÔÅ Ó ×ÁÛÉÍ ×ÏÐÒÏÓÏÍ, ÞÔÏÂÙ ÐÒÏÂÌÅÍÕ ÍÏÖÎÏ ÂÙÌÏ ÐÒÏÄÉÁÇÎÏÓÔÉÒÏ×ÁÔØ. åÓÌÉ ×Ù ÕÍÅÅÔÅ ÏÂÒÁÝÁÔØÓÑ Ó gdb, ×Ù ÍÏÖÅÔÅ ÐÏÐÒÏÂÏ×ÁÔØ ÎÁÊÔÉ ÐÒÉÞÉÎÙ ÏÂÒÁÚÏ×ÁÎÉÑ ÄÁÍÐÁ, Á ÔÁËÖÅ ÁÄÒÅÓÁ É ÚÎÁÞÅÎÉÑ ÏÔÎÏÓÑÝÉÈÓÑ Ë ÜÔÏÍÕ ÐÅÒÅÍÅÎÎÙÈ. ðÒÏÃÅÓÓ, ×ÙÚ×Á×ÛÉÊ ÐÒÏÚ×ÏÎËÕ × ÒÅÖÉÍÅ auto, ÎÉËÏÇÄÁ ÎÅ ÐÏÌÕÞÁÅÔ ÚÁÔÒÅÂÏ×ÁÎÎÏÇÏ ÓÏÅÄÉÎÅÎÉÑ üÔÁ ÐÒÏÂÌÅÍÁ ÐÒÏÑ×ÌÑÌÁÓØ, ËÏÇÄÁ ppp × ÒÅÖÉÍÅ auto ÂÙÌ ÎÁÓÔÒÏÅÎ ÎÁ ÄÉÎÁÍÉÞÅÓËÏÅ ÓÏÇÌÁÓÏ×ÁÎÉÅ ÌÏËÁÌØÎÏÇÏ IP-ÁÄÒÅÓÁ Ó ÐÒÏÔÉ×ÏÐÏÌÏÖÎÏÊ ÓÔÏÒÏÎÏÊ. üÔÏ ÉÓÐÒÁ×ÌÅÎÏ × ÐÏÓÌÅÄÎÅÊ ×ÅÒÓÉÉ - ÐÏÉÝÉÔÅ ÎÁ ÓÔÒÁÎÉÃÅ ÓÐÒÁ×ÏÞÎÉËÁ ÓÌÏ×Ï iface. ðÒÉÞÉÎÏÊ ÂÙÌÏ ÔÏ, ÞÔÏ ËÏÇÄÁ ÜÔÁ ÐÒÏÇÒÁÍÍÁ ÉÓÐÏÌØÚÕÅÔ ÓÉÓÔÅÍÎÙÊ ×ÙÚÏ× connect(2), ÄÌÑ ÓÏËÅÔÁ ÎÁÚÎÁÞÁÅÔÓÑ IP-ÁÄÒÅÓ tun-ÉÎÔÅÒÆÅÊÓÁ. ñÄÒÏ ÓÏÚÄÁ£Ô ÐÅÒ×ÙÊ ÉÓÈÏÄÑÝÉÊ ÐÁËÅÔ É ÚÁÐÉÓÙ×ÁÅÔ ÅÇÏ × ÕÓÔÒÏÊÓÔ×Ï tun. úÁÔÅÍ ppp ÞÉÔÁÅÔ ÐÁËÅÔ É ÕÓÔÁÎÁ×ÌÉ×ÁÅÔ ÓÏÅÄÉÎÅÎÉÅ. åÓÌÉ × ÒÅÚÕÌØÔÁÔÅ ÓÏÇÌÁÓÏ×ÁÎÉÑ ppp ÄÉÎÁÍÉÞÅÓËÏÇÏ IP-ÁÄÒÅÓÁ, ÁÄÒÅÓ ÉÎÔÅÒÆÅÊÓÁ ÍÅÎÅÔÓÑ, ÓÏËÅÔ ÂÕÄÅÔ ÒÁÂÏÔÁÔØ ÎÅËÏÒÒÅËÔÎÏ. ìÀÂÙÅ IP-ÐÁËÅÔÙ, ÐÅÒÅÄÁ×ÁÅÍÙÅ ÞÅÒÅÚ ÓÏËÅÔ, ÂÕÄÕÔ ÏÔÂÒÏÛÅÎÙ. åÓÌÉ ÄÁÖÅ ÜÔÏÇÏ ÎÅ ÐÒÏÉÚÏÊÄ£Ô, ÏÔ×ÅÔÎÙÅ ÄÁÎÎÙÅ ÎÅ ÂÕÄÕÔ ÄÏÓÔÉÇÁÔØ ÏÔÐÒÁ×ÉÔÅÌÑ, ÔÁË ËÁË ÜÔÏÔ ÁÄÒÅÓ ÂÏÌØÛÅ ÅÍÕ ÎÅ ÐÒÉÎÁÄÌÅÖÉÔ. ôÅÏÒÅÔÉÞÅÓËÉ ÅÓÔØ ÎÅÓËÏÌØËÏ ÓÐÏÓÏÂÏ× ÒÅÛÉÔØ ÜÔÕ ÐÒÏÂÌÅÍÕ. ìÕÞÛÅ ×ÓÅÇÏ, ÅÓÌÉ ÐÒÏÔÉ×ÏÐÏÌÏÖÎÁÑ ÓÔÏÒÏÎÁ ÎÁÚÎÁÞÉÔ ÉÎÔÅÒÆÅÊÓÕ ÔÏÔ ÖÅ ÓÁÍÙÊ IP-ÁÄÒÅÓ :-) ôÅËÕÝÁÑ ×ÅÒÓÉÑ ppp ÉÍÅÎÎÏ ÔÁË É ÐÏÓÔÕÐÁÅÔ, ÂÏÌÅÅ ÒÁÎÎÉÅ ÒÅÁÌÉÚÁÃÉÉ ÜÔÏÇÏ ÎÅ ÄÅÌÁÌÉ. óÁÍÙÍ ÐÒÏÓÔÙÍ ÒÅÛÅÎÉÅÍ ÂÕÄÅÔ ÐÒÏÓÔÏ ÎÉËÏÇÄÁ ÎÅ ÍÅÎÑÔØ IP-ÁÄÒÅÓ tun-ÉÎÔÅÒÆÅÊÓÁ, Á ×ÍÅÓÔÏ ÜÔÏÇÏ ÉÚÍÅÎÑÔØ ÎÁ ÌÅÔÕ ×ÓÅ ÉÓÈÏÄÑÝÉÅ ÐÁËÅÔÙ ÔÁË, ÞÔÏÂÙ IP-ÁÄÒÅÓ ÉÓÔÏÞÎÉËÁ ÍÅÎÑÌÓÑ Ó IP-ÁÄÒÅÓÁ ÉÎÔÅÒÆÅÊÓÁ ÎÁ ÓÏÇÌÁÓÏ×ÁÎÎÙÊ Ó ÐÒÏÔÉ×ÏÐÏÌÏÖÎÏÊ ÓÔÏÒÏÎÏÊ. üÔÏ, × ÓÕÝÎÏÓÔÉ, ÔÏ ÖÅ ÓÁÍÏÅ, ÞÔÏ ÄÅÌÁÅÔ ÏÐÃÉÑ iface-alias × ÐÏÓÌÅÄÎÅÊ ×ÅÒÓÉÉ ppp (Ó ÐÏÍÏÝØÀ ÂÉÂÌÉÏÔÅËÉ libalias(3) É ËÌÀÞÁ ÄÌÑ ppp) - ÏÎÁ ÏÔÓÌÅÖÉ×ÁÅÔ ×ÓÅ ÎÁÚÎÁÞÅÎÎÙÅ ÒÁÎÅÅ ÉÎÔÅÒÆÅÊÓÕ ÁÄÒÅÓÁ É ÚÁÍÅÝÁÅÔ ÉÈ ÎÁ ÐÏÓÌÅÄÎÉÊ ÉÚ ÎÁÚÎÁÞÅÎÎÙÈ. äÒÕÇÏÊ ×ÏÚÍÏÖÎÙÊ (É ÎÁ×ÅÒÎÏÅ, ÓÁÍÙÊ ÎÁÄ£ÖÎÙÊ) ÓÐÏÓÏ - ÜÔÏ ÓÏÚÄÁÔØ ÓÉÓÔÅÍÎÙÊ ×ÙÚÏ×, ÍÅÎÑÀÝÉÊ IP-ÁÄÒÅÓÁ ×ÓÅÍ ÕÖÅ Ó×ÑÚÁÎÎÙÍ ÓÏËÅÔÁÍ. Ppp ÉÓÐÏÌØÚÏ×ÁÌ ÂÙ ÜÔÏÔ ×ÙÚÏ× ÄÌÑ ÍÏÄÉÆÉËÁÃÉÉ ÓÏËÅÔÏ× ×ÓÅÈ ÒÁÂÏÔÁÀÝÉÈ ÐÒÏÇÒÁÍÍ ÐÏÓÌÅ ÓÏÇÌÁÓÏ×ÁÎÉÑ ÎÏ×ÏÇÏ IP-ÁÄÒÅÓÁ. üÔÏÔ ÖÅ ÓÁÍÙÊ ÓÉÓÔÅÍÎÙÊ ×ÙÚÏ× ÍÏÇÌÉ ÂÙ ÉÓÐÏÌØÚÏ×ÁÔØ ËÌÉÅÎÔÙ DHCP, ËÏÇÄÁ ÏÎÉ ÏÓÕÝÅÓÔ×ÌÑÀÔ ÐÏ×ÔÏÒÎÕÀ ÐÒÉ×ÑÚËÕ Ë ÓÏËÅÔÕ. åÝ£ ÏÄÎÏÊ ×ÏÚÍÏÖÎÏÓÔØÀ Ñ×ÌÑÅÔÓÑ ÒÅÚÒÅÛÅÎÉÅ ÉÎÔÅÒÆÅÊÓÕ ÓÔÁÎÏ×ÉÔØÓÑ ÁËÔÉ×ÎÙÍ ÂÅÚ IP-ÁÄÒÅÓÁ. éÓÈÏÄÑÝÉÍ ÐÁËÅÔÁÍ ÂÕÄÅÔ ÄÁ×ÁÔØÓÑ IP ÁÄÒÅÓ 255.255.255.255 ÄÏ ÔÅÈ ÐÏÒ, ÐÏËÁ ÎÅ ÂÕÄÅÔ ÄÁÎ ioctl-ÚÁÐÒÏÓ SIOCAIFADDR. ÐÒÉ×ÏÄÑÝÉÊ Ë ÐÏÌÎÏÊ ÐÒÉ×ÑÚËÅ ÓÏËÅÔÁ. Ppp ÎÕÖÎÏ ÂÕÄÅÔ ÉÚÍÅÎÑÔØ IP-ÁÄÒÅÓ ÉÓÔÏÞÎÉËÁ É ËÏÎÔÒÏÌØÎÕÀ ÓÕÍÍÕ ÐÁËÅÔÁ, ÔÏÌØËÏ ÅÓÌÉ ÏÎ ÕÓÔÁÎÏ×ÌÅÎ × 255.255.255.255. üÔÏ, ÏÄÎÁËÏ, Ñ×ÌÑÅÔÓÑ ÎÅËÏÔÏÒÙÍ ÈÁËÏÍ, ÔÁË ËÁË ÑÄÒÏ ÂÕÄÅÔ ÐÏÓÙÌÁÔØ ÎÅËÏÒÒÅËÔÎÙÅ ÐÁËÅÔÙ ÎÁ ÎÅ ÐÏÌÎÏÓÔØÀ ÓËÏÎÆÉÇÕÒÉÒÏ×ÁÎÎÙÊ ÉÎÔÒÅÒÆÅÊÓ, × ÐÒÅÄÐÏÌÏÖÅÎÉÉ, ÞÔÏ ÓÕÝÅÓÔ×ÕÅÔ ÍÅÈÁÎÉÚÍ ÉÓÐÒÁ×ÌÅÎÉÑ ÜÔÉÈ ÐÁËÅÔÏ×. ðÏÞÅÍÕ ÂÏÌØÛÉÎÓÔ×Ï ÉÇÒ ÎÅ ÒÁÂÏÔÁÅÔ Ó ÏÐÃÉÅÊ -alias? ðÒÉÞÉÎÏÊ, ÐÏ ËÏÔÏÒÏÊ ÉÇÒÙ É ÐÏÄÏÂÎÙÅ ÐÒÏÇÒÁÍÍÙ ÎÅ ÒÁÂÏÔÁÀÔ Ó ÂÉÂÌÉÏÔÅËÏÊ libalias ÚÁËÌÀÞÁÅÔÓÑ × ÔÏÍ, ÞÔÏ ×ÎÅÛÎÑÑ ÍÁÛÉÎÁ ÂÕÄÅÔ ÐÙÔÁÔØÓÑ ÏÔËÒÙÔØ ÓÏÅÄÉÎÅÎÉÅ ÉÌÉ ÐÏÓÙÌÁÔØ (ÎÅÖÄÁÎÎÙÅ) UDP ÐÁËÅÔÙ ÎÁ ÍÁÛÉÎÕ ×ÎÕÔÒÅÎÎÅÊ ÓÅÔÉ. ðÒÏÇÒÁÍÍÎÏÅ ÏÂÅÓÐÅÞÅÎÉÅ, ÏÂÅÓÐÅÞÉ×ÁÀÝÅÅ ÏÐÃÉÀ -alias, ÎÅ ÚÎÁÅÔ Ï ÔÏÍ, ÞÔÏ ÄÏÌÖÎÁ ÐÏÓÙÌÁÔØ ÜÔÉ ÐÁËÅÔÙ ÍÁÛÉÎÅ ×ÎÕÔÒÅÎÎÅÊ ÓÅÔÉ. þÔÏÂÙ ÜÔÏ ×Ó£ ÖÅ ÚÁÒÁÂÏÔÁÌÏ, ÕÄÏÓÔÏ×ÅÒØÔÅÓØ, ÞÔÏ ÅÄÉÎÓÔ×ÅÎÎÏÊ ÚÁÐÕÝÅÎÎÏÊ ÐÒÏÇÒÁÍÍÏÊ Ñ×ÌÑÅÔÓÑ ÐÒÏÇÒÁÍÍÎÏÅ ÏÂÅÓÐÅÞÅÎÉÅ, Ó ËÏÔÏÒÙÍ ×Ù ÉÓÐÙÔÙ×ÁÅÔÅ ÐÒÏÂÌÅÍÙ, ÚÁÔÅÍ ÎÁÐÕÓÔÉÔÅ tcpdump ÎÁ tun-ÉÎÔÅÒÆÅÊÓ ÍÁÒÛÒÕÔÉÚÁÔÏÒÁ ÌÉÂÏ ×ËÌÀÞÉÔÅ ÐÒÏÔÏËÏÌÉÒÏ×ÁÎÉÅ tcp/ip × ppp (``set log +tcp/ip'') ÎÁ ÍÁÒÛÒÕÔÉÚÁÔÏÒÅ. ëÏÇÄÁ ×Ù ÚÁÐÕÓÔÉÔÅ ÎÅËÏÒÒÅËÔÎÏ ÒÁÂÏÔÁÀÝÅÅ ÐÒÏÇÒÁÍÍÎÏÅ ÏÂÅÓÐÅÞÅÎÉÅ, ×Ù ÄÏÌÖÎÙ Õ×ÉÄÅÔØ ÐÁËÅÔÙ, ÐÒÏÈÏÄÑÝÉÅ ÞÅÒÅÚ ÍÁÒÛÒÕÔÉÚÁÔÏÒ. ëÏÇÄÁ ÞÔÏ-ÔÏ ÎÁÞÎ£Ô ÐÒÉÈÏÄÉÔØ ÉÚ×ÎÅ, ÏÎÏ ÂÕÄÅÔ ÏÔÂÒÏÛÅÎÏ (× ÜÔÏÍ-ÔÏ É ÐÒÏÂÌÅÍÁ). úÁÍÅÔØÔÅ ÎÏÍÅÒ ÐÏÒÔÁ ÐÏÌÕÞÁÔÅÌÑ ÜÔÉÈ ÐÁËÅÔÏ×, ÚÁÔÅÍ ÚÁ×ÅÒÛÉÔÅ ÒÁÂÏÔÕ ×ÁÛÅÇÏ ÐÒÏÇÒÁÍÍÎÏÇÏ ÏÂÅÓÐÅÞÅÎÉÑ. ÷ÙÐÏÌÎÉÔÅ ÜÔÕ ÐÒÏÃÅÄÕÒÕ ÎÅÓËÏÌØËÏ ÒÁÚ ÄÌÑ ÔÏÇÏ, ÞÔÏÂÙ ÕÂÅÄÉÔØÓÑ, ÞÔÏ ÎÏÍÅÒ ÐÏÒÔÁ ÐÏÓÔÏÑÎÅÎ. åÓÌÉ ÜÔÏ ÔÁË, ÔÏ ÓÌÅÄÕÀÝÁÑ ÓÔÒÏÞËÁ × ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÅÍ ÒÁÚÄÅÌÅ /etc/ppp/ppp.conf ÚÁÓÔÁ×ÉÔ ÐÒÏÇÒÁÍÍÎÏÅ ÏÂÅÓÐÅÞÅÎÉÅ ÆÕÎËÃÉÏÎÉÒÏ×ÁÔØ ÎÏÒÍÁÌØÎÏ: alias port proto internalmachine:port port úÄÅÓØ ``proto'' - ÜÔÏ ``tcp'' ÌÉÂÏ ``udp'', ``internalmachine'' - ÜÔÏ ÍÁÛÉÎÁ, ËÏÔÏÒÏÊ ×Ù ÈÏÔÉÔÅ ÐÅÒÅÎÁÐÒÁ×ÌÑÔØ ÐÁËÅÔÙ, É ``port'' - ÜÔÏ ÎÏÍÅÒ ÐÏÒÔÁ ÐÏÌÕÞÁÔÅÌÑ ÐÁËÅÔÏ×. îÅÓÏÍÎÅÎÎÏ, ×Ù ÎÅ ÓÍÏÖÅÔÅ ÉÓÐÏÌØÚÏ×ÁÔØ ÐÒÏÇÒÁÍÍÎÏÅ ÏÂÅÓÐÅÞÅÎÉÅ ÎÁ ÄÒÕÇÉÈ ÍÁÛÉÎÁÈ, ÎÅ ÉÚÍÅÎÑÑ ÕËÁÚÁÎÎÕÀ ×ÙÛÅ ËÏÍÁÎÄÕ, Á ÔÁËÖÅ ÚÁÐÕÓËÁÔØ ÐÒÏÇÒÁÍÍÎÏÅ ÏÂÅÓÐÅÞÅÎÉÅ ÎÁ Ä×ÕÈ ÍÁÛÉÎÁÈ ×ÎÕÔÒÉ ÓÅÔÉ ÏÄÎÏ×ÒÅÍÅÎÎÏ - × ËÏÎÃÅ ËÏÎÃÏ×, ×ÎÅÛÎÉÊ ÍÉÒ ×ÉÄÉÔ ×ÓÀ ×ÁÛÕ ÓÅÔØ ËÁË ÅÄÉÎÓÔ×ÅÎÎÕÀ ÍÁÛÉÎÕ. åÓÏÉ ÎÏÍÅÒÁ ÐÏÒÔÏ× ÎÅÐÏÓÔÏÑÎÎÙ, ÅÓÔØ ÅÝ£ ÔÒÉ ×ÁÒÉÁÎÔÁ: 1) îÁÓÔÒÏÊÔÅ ÐÏÄÄÅÒÖËÕ ÜÔÏÇÏ × libalias. ðÒÉÍÅÒÙ ``ÏÓÏÂÙÈ ÓÌÕÞÁÅ×'' ÍÏÖÎÏ ÎÁÊÔÉ × /usr/src/lib/libalias/alias_*.c (alias_ftp.c - ÈÏÒÏÛÅÅ ÎÁÞÁÌÏ). üÔÏ ÏÚÎÁÞÁÅÔ, ÞÔÏ ×ÁÍ ÎÕÖÎÏ ÂÕÄÅÔ ÉÓÐÏÌØÚÏ×ÁÔØ ÞÔÅÎÉÅ ÎÅËÏÔÏÒÙÈ ÒÁÓÐÏÚÎÁ×ÁÅÍÙÈ ÉÓÈÏÄÑÝÉÈ ÐÁËÅÔÏ×, ÏÂÎÁÒÕÖÉ×ÁÔØ ËÏÍÁÎÄÙ ÄÌÑ ÕÓÔÁÎÏ×ÌÅÎÉÑ ×ÎÅÛÎÅÊ ÍÁÛÉÎÏÊ ÏÂÒÁÔÎÏÊ Ó×ÑÚÉ ÎÁ ×ÎÕÔÒÅÎÎÀÀ ÍÁÛÉÎÕ ÎÁ ËÏÎËÒÅÔÎÙÊ (ÓÌÕÞÁÊÎÙÊ) ÐÏÒÔ É ÎÁÓÔÒÁÉ×ÁÔØ ``ÍÁÒÛÒÕÔ'' × ÔÁÂÌÉÃÅ ÓÏÏÔ×ÅÔÓÔ×ÉÊ ÔÁË, ÞÔÏÂÙ ÐÏÓÌÅÄÕÀÝÉÅ ÐÁËÅÔÙ ÐÒÏÈÏÄÉÌÉ ÎÏÒÍÁÌØÎÏ. üÔÏ ÓÁÍÏÅ ÔÒÕÄÏ£ÍËÏÅ ÒÅÛÅÎÉÅ, ÎÏ ÏÎÏ ÎÁÉÌÕÞÛÅÅ É ÐÏÚ×ÏÌÉÔ ÐÒÏÇÒÁÍÍÎÏÍÕ ÏÂÅÓÐÅÞÅÎÉÀ ÒÁÂÏÔÁÔØ ÎÁ ÎÅÓËÏÌØËÉÈ ÍÁÛÉÎÁÈ. 2) éÓÐÏÌØÚÕÊÔÅ ÐÒÏËÓÉ. ðÒÉÌÏÖÅÎÉÅ ÍÏÖÅÔ ÐÏÄÄÅÒÖÉ×ÁÔØ, ÎÁÐÒÉÍÅÒ, socks5 ÉÌÉ (ËÁË × ÓÌÕÞÁÅ ``cvsup'') ÍÏÖÅÔ ÉÍÅÔØ ÒÅÖÉÍ ``passive'', ÏÂÈÏÄÑÝÉÊÓÑ ÂÅÚ ÚÁÐÒÏÓÏ× Ë ÐÒÏÔÉ×ÏÐÏÌÏÖÎÏÊ ÓÔÏÒÏÎÅ ÎÁ ÏÔËÒÙÔÉÅ ÏÂÒÁÔÎÏÇÏ ÓÏÅÄÉÎÅÎÉÑ. 3) ðÅÒÅÎÁÚÎÁÞØÔÅ ×Ó£ ÎÁ ×ÎÕÔÒÅÎÎÀÀ ÍÁÛÉÎÕ Ó ÐÏÍÏÝØÀ ËÏÍÁÎÄÙ ``alias addr''. üÔÏ ÒÅÛÅÎÉÅ × ÌÏÂ. ëÔÏ-ÎÉÂÕÄØ ÓÏÓÔÁ×ÌÑÅÔ ÓÐÉÓÏË ÐÏÌÅÚÎÙÈ ÎÏÍÅÒÏ× ÐÏÒÔÏ×? ðÏËÁ ÎÅÔ, ÎÏ ÎÉÖÅ ÎÁÈÏÄÉÔÓÑ ÓÐÉÓÏË, ÍÏÇÕÝÉÊ ÔÁËÏ×ÙÍ ÓÔÁÔØ (ÅÓÌÉ Ë ÜÔÏÍÕ ÂÕÄÅÔ ÐÒÏÑ×ÌÅÎ ËÁËÏÊ-ÌÉÂÏ ÉÎÔÅÒÅÓ). Quake Quake ÉÓÐÏÌØÚÕÅÔ UDP ÐÏÒÔ 6112, ÔÁË ÞÔÏ ÓÔÒÏÞËÁ alias port udp hostmachine:6112 6112 ÇÄÅ hostmachine ÜÔÏ IP-ÁÄÒÅÓ quake-ÓÅÒ×ÅÒÁ, ÄÏÌÖÎÁ ÓÒÁÂÏÔÁÔØ. áÌØÔÅÒÎÁÔÉ×ÎÏÅ ÒÅÛÅÎÉÅ, ÏÂÅÓÐÅÞÉ×ÁÀÝÅÅ ÐÏÄÄÅÒÖËÕ ÐÒÏËÓÉ ÄÌÑ Quake, ÍÏÖÎÏ ÎÁÊÔÉ ÎÁ ÓÅÒ×ÅÒÅ www.battle.net. þÔÏ ÔÁËÏÅ ÏÛÉÂËÉ FCS? FCS Ñ×ÌÑÅÔÓÑ ÓÏËÒÁÝÅÎÉÅÍ ÏÔ Frame Check Sequence (ËÏÎÔÒÏÌØ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÏÓÔÉ ËÁÄÒÏ×). ëÁÖÄÙÊ ËÁÄÒ ppp ÉÍÅÅÔ ËÏÎÔÒÏÌØÎÕÀ ÓÕÍÍÕ ÄÌÑ ÐÒÏ×ÅÒËÉ ÔÏÇÏ, ÞÔÏ ÐÒÉÎÑÔÙÅ ÄÁÎÎÙÅ ÓÏ×ÐÁÄÁÀÔ Ó ÐÅÒÅÄÁÎÎÙÍÉ. åÓÌÉ FCS ÐÒÉÎÑÔÏÇÏ ÐÁËÅÔÁ ÎÅËÏÒÒÅËÔÎÁ, ÐÁËÅÔ ÏÔÂÒÁÓÙ×ÁÅÔÓÑ É ÓÞ£ÔÞÉË FCS ÄÌÑ HDLC Õ×ÅÌÉÞÉ×ÁÅÔÑ. úÎÁÞÅÎÉÑ ÏÛÉÂÏË ÕÒÏ×ÎÑ HDLC ÍÏÖÎÏ ×Ù×ÅÓÔÉ ËÏÍÁÎÄÏÊ show hdlc. åÓÌÉ Õ ×ÁÓ ÐÌÏÈÁÑ ÌÉÎÉÑ (ÉÌÉ ÄÒÁÊ×ÅÒ ËÏÍÍÕÎÉËÁÃÉÏÎÎÏÇÏ ÁÄÁÐÔÅÒÁ ÏÔÂÒÁÓÙ×ÁÅÔ ÐÁËÅÔÙ), ÏÛÉÂËÉ FCS ÎÅÉÚÂÅÖÎÙ. üÔÏ ÏÂÙÞÎÏ ÎÅ Ñ×ÌÑÅÔÓÑ ÐÒÉÞÉÎÏÊ ÄÌÑ ×ÏÌÎÅÎÉÊ, ÈÏÔÑ ÜÔÏ ÓÕÝÅÓÔ×ÅÎÎÏ ÚÁÍÅÄÌÑÅÔ ÐÒÏÔÏËÏÌÙ ËÏÍÐÒÅÓÓÉÉ. åÓÌÉ Õ ×ÁÓ ×ÎÅÛÎÉÊ ÍÏÄÅÍ, ÐÒÏ×ÅÒØÔÅ ËÁÞÅÓÔ×Ï ÜËÒÁÎÉÒÏ×ÁÎÉÑ ÓÏÅÄÉÎÉÔÅÌØÎÏÇÏ ËÁÂÅÌÑ - ÜÔÏ ÍÏÖÅÔ ÉÚÂÁ×ÉÔØ ÏÔ ÐÒÏÂÌÅÍÙ. åÓÌÉ ×ÁÛÁ Ó×ÑÚØ ÚÁÍÉÒÁÅÔ, ËÁË ÔÏÌØËÏ ×Ù ÓÏÅÄÉÎÉÌÉÓØ É ÎÁÂÌÀÄÁÅÔÓÑ ÂÏÌØÛÏÅ ËÏÌÉÞÅÓÔ×Ï ÏÛÉÂÏË FCS, ÜÔÏ ÍÏÖÅÔ ÂÙÔØ ×ÙÚ×ÁÎÏ ÎÅ ÐÏÌÎÏÊ ÐÒÏÚÒÁÞÎÏÓÔØÀ ËÁÎÁÌÁ ÄÌÑ 8-ÂÉÔÏ×ÙÈ ÄÁÎÎÙÈ. ðÒÏ×ÅÒØÔÅ, ÞÔÏ ÍÏÄÅÍ ÎÅ ÉÓÐÏÌØÚÕÅÔ ÐÒÏÇÒÁÍÍÎÏÇÏ ÕÐÒÁ×ÏÅÎÉÑ ÐÏÔÏËÏÍ, ÉÓÐÏÌØÚÕÊÔÅ ËÏÍÁÎÄÕ set accmap 0x000a0000 ÄÌÑ ÕËÁÚÁÎÉÑ ppp ÜËÒÁÎÉÒÏ×ÁÔØ ÓÉÍ×ÏÌÙ ^Q É ^S. äÒÕÇÏÊ ÐÒÉÞÉÎÏÊ ÓÌÉÛËÏÍ ÂÏÌØÛÏÇÏ ËÏÌÉÞÅÓÔ×Á ÏÛÉÂÏË FCS ÍÏÖÅÔ ÂÙÔØ ÐÒÅËÒÁÝÅÎÉÅ ÐÒÏÔÉ×ÏÐÏÌÏÖÎÏÊ ÓÔÏÒÏÎÏÊ ÓÅÁÎÓÁ PPP. ÷ ÜÔÏÍ ÓÌÕÞÁÅ ÷ÁÍ ÍÏÖÅÔ ÐÏÎÁÄÏÂÉÔØÓÑ ×ËÌÀÞÉÔØ ÐÒÏÔÏËÏÌÉÒÏ×ÁÎÉÅ async ÄÌÑ ÐÒÏ×ÅÒËÉ ÔÏÇÏ, ÎÅ Ñ×ÌÑÀÔÓÑ ÌÉ ÐÏÓÔÕÐÁÅÍÙÅ ÉÚ ÌÉÎÉÉ ÄÁÎÎÙÅ ÎÁ ÓÁÍÏÍ ÄÅÌÅ ÐÒÉÇÌÁÛÅÎÉÑÍÉ login ÉÌÉ shell. åÓÌÉ ×Ù ÐÏÌÕÞÉÌÉ ÐÒÉÇÌÁÛÅÎÉÅ shell Ó ÐÒÏÔÉ×ÏÐÏÌÏÖÎÏÊ ÓÔÏÒÏÎÙ, ×ÏÚÍÏÖÎÏ ÚÁ×ÅÒÛÅÎÉÅ ppp ÂÅÚ ÏÂÒÙ×Á Ó×ÑÚÉ ËÏÍÁÎÄÏÊ close lcp (ÐÏÓÌÅÄÕÀÝÁÑ ËÏÍÁÎÄÁ term ÓÎÏ×Á ×ÅÒÎ£Ô ×ÁÓ Ë ÐÒÉÇÌÁÛÅÎÉÀ shell ÎÁ ÕÄÁÌ£ÎÎÏÊ ÍÁÛÉÎÅ). åÓÌÉ ÎÉÞÅÇÏ × ÆÁÊÌÅ ÐÒÏÔÏËÏÌÁ ÎÅ ÇÏ×ÏÒÉÔ Ï ÔÏÍ, ÞÔÏ Ó×ÑÚØ ÂÙÌÁ ÐÒÅÒ×ÁÎÁ, ×Ù ÄÏÌÖÎÙ ÓÐÒÏÓÉÔØ Õ ÁÄÍÉÎÉÓÔÒÁÔÏÒÁ ÕÄÁÌ£ÎÎÏÊ ÍÁÛÉÎÙ (×ÁÛÅÇÏ ÐÒÏ×ÁÊÄÅÒÁ), ÐÏÞÅÍÕ ÓÅÁÎÓ ÂÙÌ ÚÁËÒÙÔ. îÉÞÅÇÏ ÎÅ ÐÏÍÏÇÁÅÔ - Ñ ÕÖÅ ÏÔÞÁÑÌÓÑ! åÓÌÉ ×Ó£ ÕÖÅ ÐÅÒÅÐÒÏÂÏ×ÁÎÏ, É ÎÉÞÅÇÏ ÎÅ ÐÏÌÕÞÁÅÔÓÑ, ÐÏÛÌÉÔÅ ÎÁÍ ÍÁËÓÉÍÁÌØÎÏÅ ËÏÌÉÞÅÓÔ×Ï ÉÎÆÏÒÍÁÃÉÉ, ×ÁÛ ËÏÎÆÉÇÕÒÁÃÉÏÎÎÙÊ ÆÁÊÌ, ÓÐÏÓÏ ÚÁÐÕÓËÁ ppp, ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÅ ÞÁÓÔÉ ÆÁÊÌÁ ÐÒÏÔÏËÏÌÁ, É ×Ù×ÏÄ ËÏÍÁÎÄÙ netstat -rn (ÄÏ É ÐÏÓÌÅ ÓÏÅÄÉÎÅÎÉÑ) × ÁÄÒÅÓ ÓÐÉÓËÁ ÒÁÓÓÙÌËÉ freebsd-questions@FreeBSD.org ÉÌÉ × ÔÅÌÅËÏÎÆÅÒÅÎÃÉÀ comp.unix.bsd.freebsd.misc, É ÍÏÖÅÔ ÂÙÔØ, ËÔÏ-ÎÉÂÕÄØ ÕËÁÖÅÔ ×ÁÍ ×ÅÒÎÏÅ ÎÁÐÒÁ×ÌÅÎÉÅ. ëÏÍÍÕÎÉËÁÃÉÏÎÎÙÅ ÁÄÁÐÔÅÒÙ ÷ ÜÔÏÍ ÒÁÚÄÅÌÅ ÏÓ×ÅÝÅÎÙ ×ÏÐÒÏÓÙ Ï ÒÁÂÏÔÅ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÙÈ ÁÄÁÐÔÅÒÏ× ×Ï FreeBSD. ðÒÏÔÏËÏÌÙ PPP É SLIP ÒÁÓÓÍÁÔÒÉ×ÁÀÔÓÑ × ÒÁÚÄÅÌÅ, ÐÏÓ×ÑÝ£ÎÎÏÍ . ëÁË ÕÚÎÁÔØ, ËÁËÉÅ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÙÅ ÐÏÒÔÙ ÂÙÌÉ ÏÂÎÁÒÕÖÅÎÙ FreeBSD? ðÒÉ ÚÁÇÒÕÚËÅ ÑÄÒÁ FreeBSD ÏÎÏ ÂÕÄÅÔ ÐÙÔÁÔØÓÑ ÎÁÊÔÉ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÙÅ ÐÏÒÔÙ, Ó ÐÏÄÄÅÒÖËÏÊ ËÏÔÏÒÙÈ ÂÙÌÏ ÏÔËÏÍÐÉÌÉÒÏ×ÁÎÏ. ÷Ù ÍÏÖÅÔÅ ÐÏ×ÎÉÍÁÔÅÌØÎÅÊ ÐÒÉÓÍÏÔÒÅÔØÓÑ Ë ×ÙÄÁ×ÁÅÍÙÍ ÓÏÏÂÝÅÎÉÑÍ ÌÉÂÏ ×ÙÐÏÌÎÉÔØ ËÏÍÁÎÄÕ dmesg | grep sio ÐÏÓÌÅ ÚÁÇÒÕÚËÉ É ÚÁÐÕÓËÁ ÓÉÓÔÅÍÙ. ÷ÏÔ ÐÒÉÍÅÒ ×Ù×ÏÄÁ ÕËÁÚÁÎÎÏÊ ËÏÍÁÎÄÙ: sio0 at 0x3f8-0x3ff irq 4 on isa sio0: type 16550A sio1 at 0x2f8-0x2ff irq 3 on isa sio1: type 16550A úÄÅÓØ ÐÒÉÓÕÔÓÔ×ÕÀÔ Ä×Á ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÙÈ ÐÏÒÔÁ. ðÅÒ×ÙÊ ÉÓÐÏÌØÚÕÅÔ irq 4, ÐÏÒÔ ××ÏÄÁ/×Ù×ÏÄÁ 0x3f8 É ÐÏÓÔÒÏÅÎ ÎÁ ÍÉËÒÏÓÈÅÍÅ UART ÔÉÐÁ 16550A. ÷ÔÏÒÏÊ ÉÓÐÏÌØÚÕÅÔ ÔÏÔ ÖÅ ÔÉÐ ÍÉËÒÏÓÈÅÍÙ, ÎÏ ÉÓÐÏÌØÚÕÅÔ irq 3 É ÁÄÒÅÓ ÐÏÒÔÁ ××ÏÄÁ/×Ù×ÏÄÁ 0x2f8. ÷ÎÕÔÒÅÎÎÉÅ ÍÏÄÅÍÙ ×ÙÇÌÑÄÑÔ ÔÏÞÎÏ ÔÁËÖÅ, ËÁË ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÙÅ ÐÏÒÔÙ, ÚÁ ÉÓËÌÀÞÅÎÉÅÍ ÔÏÇÏ, ÞÔÏ Ë ÎÉÍ ×ÓÅÇÄÁ ``ÐÏÄËÌÀÞÅÎ'' ÍÏÄÅÍ. ÷ ÑÄÒÏ GENERIC ×ÓÔÒÏÅÎÁ ÐÏÄÄÅÒÖËÁ Ä×ÕÈ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÙÈ ÐÏÒÔÏ×, Ó irq É ÁÄÒÅÓÁÍÉ ÐÏÒÔÏ× ××ÏÄÁ/×Ù×ÏÄÁ, ËÁË × ÐÒÉÍÅÒÅ ×ÙÛÅ. åÓÌÉ ÜÔÉ ÎÁÓÔÒÏÊËÉ ÎÅ ÓÏÏÔ×ÅÔÓÔ×ÕÀÔ ×ÁÛÉÍ, ÉÌÉ ÅÓÌÉ ×Ù ÄÏÂÁ×ÉÌÉ ×ÎÕÔÒÅÎÎÉÅ ÍÏÄÅÍÙ, ÉÌÉ Õ ×ÁÓ ÂÏÌØÛÅ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÙÈ ÐÏÒÔÏ×, ÞÅÍ ÏÐÉÓÁÎÏ × ÑÄÒÅ, ÐÒÏÓÔÏ ÐÅÒÅËÏÎÆÉÇÕÒÉÒÕÊÔÅ ÑÄÒÏ. úÁ ÄÏÐÏÌÎÉÔÅÌØÎÏÊ ÉÎÆÏÒÍÁÃÉÅÊ ÏÂÒÁÔÉÔÅÓØ Ë ÒÁÚÄÅÌÕ . ëÁË ÕÚÎÁÔØ, ËÁËÉÅ ×ÎÕÔÒÅÎÎÉÅ ÍÏÄÅÍÙ ÂÙÌÉ ÏÂÎÁÒÕÖÅÎÙ FreeBSD? ðÏÓÍÏÔÒÉÔÅ ÏÔ×ÅÔ ÎÁ ÐÒÅÄÙÄÕÝÉÊ ×ÏÐÒÏÓ. ñ ÔÏÌØËÏ ÞÔÏ ÐÏÓÔÁ×ÉÌ 2.0.5 É ÎÅ ÎÁÛ£Ì ÕÓÔÒÏÊÓÔ× tty0X! îÅ ×ÏÌÎÕÊÔÅÓØ, ÏÎÉ ÂÙÌÉ ÏÂßÅÄÉÎÅÎÙ Ó ÕÓÔÒÏÊÓÔ×ÁÍÉ ttydX. ÷ÁÍ ÐÒÉÄ£ÔÓÑ ÐÏÄÐÒÁ×ÉÔØ ËÏÎÆÉÇÕÒÁÃÉÏÎÎÙÅ ÆÁÊÌÙ, ËÏÔÏÒÙÅ ×Ù ÒÁÎØÛÅ ÉÓÐÏÌØÚÏ×ÁÌÉ. ëÁË ÏÓÕÝÅÓÔ×ÌÑÅÔÓÑ ÄÏÓÔÕÐ Ë ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÙÍ ÐÏÒÔÁÍ ×Ï FreeBSD? ôÒÅÔÉÊ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÙÊ ÐÏÒÔ, sio2 (ËÏÔÏÒÙÊ × DOS ÎÁÚÙ×ÁÅÔÓÑ COM3), ÎÁÚÙ×ÁÅÔÓÑ /dev/cuaa2 ÄÌÑ ÕÓÔÒÏÊÓÔ×, ×ÙÐÏÌÎÑÀÝÉÈ ÉÓÈÏÄÑÝÉÅ Ú×ÏÎËÉ, É /dev/ttyd2 ÄÌÑ ÕÓÔÒÏÊÓÔ×, ÐÒÉÎÉÍÁÀÝÉÈ ×ÈÏÄÑÝÉÅ Ú×ÏÎËÉ. ëÁËÁÑ ÒÁÚÎÉÃÁ ÍÅÖÄÕ ÜÔÉÍÉ Ä×ÕÍÑ ËÌÁÓÓÁÍÉ ÕÓÔÒÏÊÓÔ×? ÷Ù ÄÏÌÖÎÙ ÉÓÐÏÌØÚÏ×ÁÔØ ttydX ÄÌÑ ×ÈÏÄÑÝÉÈ ÓÏÅÄÉÎÅÎÉÊ. ðÒÉ ÏÔËÒÙÔÉÉ /dev/ttydX × ÂÌÏËÉÒÕÀÝÅÍ ÒÅÖÉÍÅ, ÐÒÏÃÅÓÓ ÂÕÄÅÔ ÏÖÉÄÁÔØ ÎÅÁËÔÉ×ÎÏÓÔÉ ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÅÇÏ ÕÓÔÒÏÊÓÔ×Á cuaaX, Á ÚÁÔÅÍ ÐÏÑ×ÌÅÎÉÑ ÓÉÇÎÁÌÁ Ï ÎÁÌÉÞÉÉ ÎÅÓÕÝÅÊ. ðÒÉ ÏÔËÒÙÔÉÉ ÕÓÔÒÏÊÓÔ×Á cuaaX, ÏÎ ÐÒÏ×ÅÒÑÅÔ, ÞÔÏ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÙÊ ÐÏÒÔ ÎÅ ÉÓÐÏÌØÚÕÅÔÓÑ ÕÖÅ ÕÓÔÒÏÊÓÔ×ÏÍ ttydX. åÓÌÉ ÐÏÒÔ ÄÏÓÔÕÐÅÎ, ÏÎ ``ÐÏÈÉÝÁÅÔ'' ÅÇÏ Õ ÕÓÔÒÏÊÓÔ×Á ttydX. ôÁËÖÅ ÕÓÔÒÏÊÓÔ×Ï cuaXX ÎÅ ÓÌÅÄÉÔ ÚÁ ÎÁÌÉÞÉÅÍ ÎÅÓÕÝÅÊ. ó ÔÁËÏÊ ÓÈÅÍÏÊ ÒÁÂÏÔÙ É ÍÏÄÅÍÏÍ, ÎÁÈÏÄÑÝÉÍÓÑ × ÒÅÖÉÍÅ Á×ÔÏÏÔ×ÅÔÁ, ×Ù ÍÏÖÅÔÅ ÐÏÚ×ÏÌÉÔØ ÐÏÌØÚÏ×ÁÔÅÌÑÍ ×ÈÏÄÉÔØ × ÓÉÓÔÅÍÕ É × ÔÏ ÖÅ ×ÒÅÍÑ ÍÏÖÅÔÅ ÏÓÕÝÅÓÔ×ÌÑÔØ ÉÓÈÏÄÑÝÉÅ Ú×ÏÎËÉ, Á ÓÉÓÔÅÍÁ ÐÏÚÁÂÏÔÉÔÓÑ Ï ×ÏÚÍÏÖÎÙÈ ËÏÎÆÌÉËÔÁÈ. ëÁË ×ËÌÀÞÉÔØ ÐÏÄÄÅÒÖËÕ ÍÎÏÇÏÐÏÒÔÏ×ÙÈ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÙÈ ÁÄÁÐÔÅÒÏ×? ðÏ×ÔÏÒÉÍ ÅÝ£ ÒÁÚ: ÉÎÆÏÒÍÁÃÉÑ Ï ËÏÎÆÉÇÕÒÉÒÏ×ÁÎÉÉ ÑÄÒÁ ÓÏÄÅÒÖÉÔÓÑ × ÒÁÚÄÅÌÅ, ÐÏÓ×ÑÝ£ÎÎÏÍ ÜÔÏÍÕ ×ÏÐÒÏÓÕ. äÌÑ ÍÎÏÇÏÐÏÒÔÏ×ÙÈ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÙÈ ÁÄÁÐÔÅÒÏ× × ÆÁÊÌÅ ËÏÎÆÉÇÕÒÁÃÉÉ ÑÄÒÁ ÐÏÍÅÓÔÉÔÅ ËÌÀÞÅ×ÏÅ ÓÌÏ×Ï sio ÄÌÑ ËÁÖÄÏÇÏ ÐÏÒÔÁ ÎÁ ÁÄÁÐÔÅÒÅ. îÏ irq É ×ÅËÔÏÒ ÄÏÌÖÅÎ ÂÙÔØ ÕËÁÚÁÎ ÔÏÌØËÏ Õ ÏÄÎÏÇÏ ÐÏÒÔÁ. ÷ÓÅ ÐÏÒÔÙ ÎÁ ÁÄÁÐÔÅÒÅ ÄÏÌÖÎÙ ÉÓÐÏÌØÚÏ×ÁÔØ ÏÄÎÏ É ÔÏ ÖÅ irq. éÓÐÏÌØÚÕÊÔÅ ÐÏÓÌÅÄÎÉÊ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÙÊ ÐÏÒÔ ÄÌÑ ÕËÁÚÁÎÉÑ irq. ôÁËÖÅ ×ËÌÀÞÉÔÅ ÏÐÃÉÀ COM_MULTIPORT. ÷ ÓÌÅÄÕÀÝÅÍ ÐÒÉÍÅÒÅ ÄÁÎÏ ÏÐÉÓÁÎÉÅ 4-ÐÏÒÔÏ×ÏÇÏ ÁÄÁÐÔÅÒ AST ÎÁ irq 7: options "COM_MULTIPORT" device sio4 at isa? port 0x2a0 tty flags 0x781 device sio5 at isa? port 0x2a8 tty flags 0x781 device sio6 at isa? port 0x2b0 tty flags 0x781 device sio7 at isa? port 0x2b8 tty flags 0x781 irq 7 vector siointr æÌÁÇÉ ÕËÁÚÙ×ÁÀÔ, ÞÔÏ ÕÐÒÁ×ÌÑÀÝÉÊ ÐÏÒÔ ÉÍÅÅÔ ÍÌÁÄÛÉÊ ÎÏÍÅÒ ÕÓÔÒÏÊÓÔ×Á 7 (0x700), ×ËÌÀÞÅÎÁ ÄÉÁÇÎÏÓÔÉËÁ ÎÁ ×ÒÅÍÑ ÏÂÎÁÒÕÖÅÎÉÑ (0x080), É ×ÓÅ ÐÏÒÔÙ ÉÓÐÏÌØÚÕÀÔ ÏÄÎÏ É ÔÏ ÖÅ irq (0x001). íÏÖÅÔ ÌÉ FreeBSD ÉÓÐÏÌØÚÏ×ÁÔØ ÎÅÓËÏÌØËÏ ÍÎÏÇÏÐÏÒÔÏ×ÙÈ ÁÄÁÐÔÅÒÏ× Ó ÏÄÉÎÁËÏ×ÙÍ irq? ðÏËÁ ÎÅÔ. ÷Ù ÄÏÌÖÎÙ ÎÁÚÎÁÞÉÔØ ÕÎÉËÁÌØÎÙÊ irq ÄÌÑ ËÁÖÄÏÇÏ ÁÄÁÐÔÅÒÁ. íÏÖÎÏ ÌÉ ÕÓÔÁÎÏ×ÉÔØ ÒÅÖÉÍ ÒÁÂÏÔÙ ÐÏ ÕÍÏÌÞÁÎÉÀ ÄÌÑ ÐÏÒÔÁ? ÷ÁÛÅÍÕ ÐÒÉÌÏÖÅÎÉÀ ÍÏÖÅÔ ÐÏÎÁÄÏÂÉÔØÓÑ ÏÔËÒÙÔØ ÕÓÔÒÏÊÓÔ×Á ttydX (ÉÌÉ cuaaX). ëÏÇÄÁ ÐÒÏÃÅÓÓ ÏÔËÒÙ×ÁÅÔ ÕÓÔÒÏÊÓÔ×Ï, ÏÎÏ ÉÍÅÅÔ ÎÁÂÏÒ ÐÁÒÁÍÅÔÒÏ× ××ÏÄÁ/×Ù×ÏÄÁ. ÷Ù ÍÏÖÅÔÅ ÐÏÓÍÏÔÒÅÔØ ÉÈ ÚÎÁÞÅÎÉÑ ËÏÍÁÎÄÏÊ stty -a -f /dev/ttyd1 ëÏÇÄÁ ×Ù ÍÅÎÑÅÔÅ ÎÁÓÔÒÏÊËÉ ÜÔÏÇÏ ÕÓÔÒÏÊÓÔ×Á, ÏÎÉ ÄÅÊÓÔ×ÕÀÔ ×ÐÌÏÔØ ÄÏ ÚÁËÒÙÔÉÑ ÕÓÔÒÏÊÓÔ×Á. ðÒÉ ÐÏ×ÔÏÒÎÏÍ ÏÔËÒÙÔÉÉ ÏÎÏ ÂÕÄÕÔ ÉÍÅÔØ ÒÅÖÉÍÙ ÒÁÂÏÔÙ ÐÏ ÕÍÏÌÞÁÎÉÀ. þÔÏÂÙ ÉÚÍÅÎÉÔØ ÚÎÁÞÅÎÉÑ ÒÅÖÉÍÏ× ÒÁÂÏÔÙ ÐÏ ÕÍÏÌÞÁÎÉÀ, ×Ù ÍÏÖÅÔÅ ÏÔËÒÙÔØ É ÉÚÍÅÎÉÔØ ÎÁÓÔÒÏÊËÉ × ÕÓÔÒÏÊÓÔ×Å ``ÎÁÞÁÌØÎÏÇÏ ÓÏÓÔÏÑÎÉÑ''. îÁÐÒÉÍÅÒ, ÞÔÏÂÙ ÓÄÅÌÁÔØ ÒÅÖÉÍÏÍ ÐÏ ÕÍÏÌÞÁÎÉÀ ÒÅÖÉÍ CLOCAL, 8 ÂÉÔ, É ÕÐÒÁ×ÌÅÎÉÅ ÐÏÔÏËÏÍ XON/XOFF ÄÌÑ ÕÓÔÒÏÊÓÔ×Á ttyd5, ÓÄÅÌÁÊÔÅ ÓÌÅÄÕÀÝÅÅ: stty -f /dev/ttyid5 clocal cs8 ixon ixoff äÌÑ ×ÙÐÏÌÎÅÎÉÑ ÔÁËÉÈ ÄÅÊÓÔ×ÉÊ ÐÒÅÄÎÁÚÎÁÞÅÎ ÓËÒÉÐÔ /etc/rc.serial. ôÅÐÅÒØ ÐÒÉ ÏÔËÒÙÔÉÉ ÕÓÔÒÏÊÓÔ×Á ttyd5 ÐÒÉÌÏÖÅÎÉÅ ÂÕÄÅÔ ÉÍÅÔØ ÉÍÅÎÎÏ ÔÁËÏÊ ÒÅÖÉÍ ÒÁÂÏÔÙ Ó ÐÏÒÔÏÍ. ïÎÏ, ÏÄÎÁËÏ. ÍÏÖÅÔ ÉÚÍÅÎÉÔØ ÜÔÉ ÒÅÖÉÍÙ ÐÏ Ó×ÏÅÍÕ ÕÓÍÏÔÒÅÎÉÀ. ÷Ù ÍÏÖÅÔÅ ÚÁÐÒÅÔÉÔØ ÉÚÍÅÎÅÎÉÅ ÐÒÉÌÏÖÅÎÉÅÍ ÎÅËÏÔÏÒÙÈ ÒÅÖÉÍÏ× ÒÁÂÏÔÙ, ×ÙÐÏÌÎÉ× ÎÁÓÔÒÏÊËÉ ÕÓÔÒÏÊÓÔ×Á ``ÐÏÓÔÏÑÎÎÏÇÏ ÓÏÓÔÏÑÎÉÑ''. îÁÐÒÉÍÅÒ, ÞÔÏÂÙ ÓÄÅÌÁÔØ ÓËÏÒÏÓÔØ ÒÁÂÏÔÙ ttyd5 ÐÏÓÔÏÑÎÎÏ ÒÁ×ÎÏÊ 57600 bps, ×ÙÐÏÌÎÉÔÅ stty -f /dev/ttyld5 57600 ôÅÐÅÒØ, ÅÓÌÉ ÐÒÉÌÏÖÅÎÉÅ ÏÔËÒÏÅÔ ttyd5 É ÐÏÐÙÔÁÅÔÓÑ ÉÚÍÅÎÉÔØ ÓËÏÒÏÓÔØ ÒÁÂÏÔÙ ÐÏÒÔÁ, ÏÎÁ ×Ó£ ÒÁ×ÎÏ ÏÓÔÁÎÅÔÓÑ ÒÁ×ÎÏÊ 57600 bps. åÓÔÅÓÔ×ÅÎÎÏ, ×Ù ÄÏÌÖÎÙ ÓÄÅÌÁÔØ ÕÓÔÒÏÊÓÔ×Á ÎÁÞÁÌØÎÏÇÏ É ÐÏÓÔÏÑÎÎÏÇÏ ÓÏÓÔÏÑÎÉÊ ÄÏÓÔÕÐÎÙÍÉ ÎÁ ÚÁÐÉÓØ ÔÏÌØËÏ ÐÏÌØÚÏ×ÁÔÅÌÀ root. óËÒÉÐÔ MAKEDEV ÐÒÉ ÓÏÚÄÁÎÉÉ ÆÁÊÌÏ× ÕÓÔÒÏÊÓÔ× ÜÔÏÇÏ îå ÄÅÌÁÅÔ. ëÁË ÓÄÅÌÁÔØ ×ÈÏÄ ÞÅÒÅÚ ÍÏÄÅÍ? ðÏÈÏÖÅ, ÞÔÏ ×Ù ÈÏÔÉÔÅ ÓÔÁÔØ Internet-ÐÒÏ×ÁÊÄÅÒÏÍ, ÄÁ? óÎÁÞÁÌÁ ×ÁÍ ÎÅÏÂÈÏÄÉÍÏ ÐÏÄËÌÀÞÉÔØ Ë ÓÉÓÔÅÍÅ ÏÄÉÎ ÉÌÉ ÎÅÓËÏÌØËÏ ÍÏÄÅÍÏ×, ËÏÔÏÒÙÅ ÍÏÇÕÔ ÒÁÂÏÔÁÔØ × ÒÅÖÉÍÅ Á×ÔÏÏÔ×ÅÔÁ. íÏÄÅÍ ÄÏÌÖÅÎ ÄÅÒÖÁÔØ ÓÉÇÎÁÌ ÎÁÌÉÞÉÑ ÎÅÓÕÝÅÊ, ÔÏÌØËÏ ËÏÇÄÁ ÏÎÁ ÐÒÉÓÕÔÓÔ×ÕÅÔ. ïÎ ÄÏÌÖÅÎ ×ÅÛÁÔØ ÔÒÕÂËÕ É ÐÅÒÅÉÎÉÃÉÁÌÉÚÉÒÏ×ÁÔØ, ËÏÇÄÁ ÓÉÇÎÁÌ ÇÏÔÏ×ÎÏÓÔÉ ÕÓÔÒÏÊÓÔ×Á DTE (DTR) ÍÅÎÑÅÔ ÓÏÓÔÏÑÎÉÅ ÉÚ ×ËÌÀÞÅÎÎÏÇÏ ÎÁ ×ÙËÌÀÞÅÎÎÙÊ. äÏÌÖÎÏ ÉÓÐÏÌØÚÏ×ÁÔØÓÑ ÁÐÐÁÒÁÔÎÏÅ (RTS/CTS) ÕÐÒÁ×ÌÅÎÉÅ ÐÏÔÏËÏÍ ÉÌÉ ×Ï×ÓÅ ÏÔÓÕÔÓÔ×Ï×ÁÔØ. åÝ£ ÏÎ ÄÏÌÖÅÎ ÒÁÂÏÔÁÔØ ÎÁ ÐÏÓÔÏÑÎÎÏÊ ÓËÏÒÏÓÔÉ Ó ÐÏÒÔÏÍ ËÏÍÐØÀÔÅÒÁ, ÎÏ (ÞÔÏ ÕÄÏÂÎÏ ÄÌÑ Ú×ÏÎÑÝÉÈ) Ó ÓÏÇÌÁÓÏ×ÁÎÉÅÍ ÓËÏÒÏÓÔÉ ÐÅÒÅÄÁÞÉ Ó ÄÒÕÇÉÍ ÍÏÄÅÍÏÍ. äÌÑ ÂÏÌØÛÉÎÓÔ×Á ÍÏÄÅÍÏ×, ÐÏÄÄÅÒÖÉ×ÁÀÝÉÈ ÎÁÂÏÒ ËÏÍÁÎÄ Hayes, ÓÌÅÄÕÀÝÁÑ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÏÓÔØ ËÏÍÁÎÄ ×ÙÐÏÌÎÉÔ ÜÔÉ ÎÁÓÔÒÏÊËÉ É ÓÏÈÒÁÎÉÔ ÉÈ × ÜÎÅÒÇÏÎÅÚÁ×ÉÓÉÍÏÊ ÐÁÍÑÔÉ: AT &C1 &D3 &K3 &Q6 S0=1 &W éÎÆÏÒÍÁÃÉÑ Ï ÔÏÍ, ËÁË ÓÄÅÌÁÔØ ÜÔÉ ÎÁÓÔÒÏÊËÉ ÂÅÚ ÏÂÒÁÝÅÎÉÑ Ë ÔÅÒÍÉÎÁÌØÎÙÍ ÐÒÏÇÒÁÍÍÁÍ MS-DOS, ÓÏÄÅÒÖÉÔÓÑ × ÒÁÚÄÅÌÅ Ï . úÁÔÅÍ ÏÐÉÛÉÔÅ ÍÏÄÅÍ × ÆÁÊÌÅ /etc/ttys. ÷ Î£Í ÐÅÒÅÞÉÓÌÅÎÙ ×ÓÅ ÐÏÒÔÙ, Ó ËÏÔÏÒÙÈ ÏÐÅÒÁÃÉÏÎÎÁÑ ÓÉÓÔÅÍÁ ÏÖÉÄÁÅÔ ×ÈÏÄÁ ÐÏÌØÚÏ×ÁÔÅÌÅÊ. äÏÂÁרÔÅ ÓÔÒÏËÕ, ËÏÔÏÒÁÑ ×ÙÇÌÑÄÉÔ ËÁË ÜÔÁ: ttyd1 "/usr/libexec/getty std.57600" dialup on insecure ÷ ÜÔÏÊ ÓÔÒÏËÅ ÕËÁÚÁÎÏ, ÞÔÏ ËÏ ×ÔÏÒÏÍÕ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÏÍÕ ÐÏÒÔÕ (/dev/ttyd1) ÐÏÄËÌÀÞÅÎ ÍÏÄÅÍ ÎÁ ÓËÏÒÏÓÔÉ 57600 bps ÂÅÚ ËÏÎÔÒÏÌÑ ÐÏ Þ£ÔÎÏÓÔÉ (std.57600, ÞÔÏ ÂÅÒ£ÔÓÑ ÉÚ ÆÁÊÌÁ /etc/gettytab). ôÉÐ ÔÅÒÍÉÎÁÌÁ ÄÌÑ ÜÔÏÇÏ ÐÏÒÔÁ ÏÐÒÅÄẠ̊ΠËÁË ``dialup''. ðÏÒÔ ×ËÌÀÞÅÎ (``on'') É ÎÅÂÅÚÏÐÁÓÅÎ (``insecure''), ÞÔÏ ÏÚÎÁÞÁÅÔ, ÞÔÏ ÐÏÐÙÔËÉ ×ÏÊÔÉ × ÓÉÓÔÅÍÕ ÐÏÌØÚÏ×ÁÔÅÌÅÍ root Ó ÜÔÏÇÏ ÐÏÒÔÁ ÂÕÄÕÔ ÏÔ×ÅÒÇÎÕÔÙ. äÌÑ ÐÏÒÔÏ×, ÏÂÓÌÕÖÉ×ÁÀÝÉÈ ×ÈÏÄÑÝÉÅ Ú×ÏÎËÉ, ËÁË ÜÔÏÔ, ÉÓÐÏÌØÚÕÊÔÅ ÕÓÔÒÏÊÓÔ×Á ttydX. éÓÐÏÌØÚÏ×ÁÎÉÅ ÓÌÏ×Á ``dialup'' × ËÁÞÅÓÔ×Å ÉÍÅÎÉ ÔÅÒÍÉÎÁÌÁ Ñ×ÌÑÅÔÓÑ ÏÂÙÞÎÏÊ ÐÒÁËÔÉËÏÊ. íÎÏÇÉÅ ÐÏÌØÚÏ×ÁÔÅÌÉ ×ËÌÀÞÁÀÔ × Ó×ÏÉ ÆÁÊÌÙ .profile ÉÌÉ .login ÓËÒÉÐÔÙ ÄÌÑ ÚÁÄÁÎÉÑ ÒÅÁÌØÎÏÇÏ ÔÉÐÁ ÔÅÒÍÉÎÁÌÁ, ÅÓÌÉ ÎÁÞÁÌØÎÙÍ Ñ×ÌÑÅÔÓÑ ÔÉÐ dialup. ÷ ÐÒÉÍÅÒÅ ÐÏÒÔ ÏÐÉÓÁÎ ÎÅÂÅÚÏÐÁÓÎÙÍ. þÔÏÂÙ ×ÏÊÔÉ ÁÄÍÉÎÉÓÔÒÁÔÏÒÏÍ ÎÁ ÜÔÏÍ ÐÏÒÔÕ, ×ÁÍ ÎÕÖÎÏ ×ÏÊÔÉ ÏÂÙÞÎÙÍ ÐÏÌØÚÏ×ÁÔÅÌÅÍ, Á ÚÁÔÅÍ ËÏÍÁÎÄÏÊ ``su'' ÓÔÁÔØ ÐÏÌØÚÏ×ÁÔÅÌÅÍ root. åÓÌÉ ÐÏÒÔ ÉÍÅÅÔ ÁÔÒÉÂÕÔ ``secure'', ÔÏ ÐÏÌØÚÏ×ÁÔÅÌØ root ÍÏÖÅÔ ×ÈÏÄÉÔØ Ó ÜÔÏÇÏ ÐÏÒÔÁ ÎÅÐÏÓÒÅÄÓÔ×ÅÎÎÏ. ðÏÓÌÅ ÍÏÄÉÆÉÃÉÒÏ×ÁÎÉÑ /etc/ttys, ×ÁÍ ÎÕÖÎÏ ÐÏÓÌÁÔØ ÓÉÇÎÁÌ ÐÏÔÅÒÉ Ó×ÑÚÉ ÉÌÉ HUP ÐÒÏÃÅÓÓÕ init: kill -HUP 1 üÔÏ ÚÁÓÔÁ×ÉÔ ÐÒÏÃÅÓÓ init ÓÎÏ×Á ÐÒÏÞÉÔÁÔØ ÆÁÊÌ /etc/ttys. ðÒÏÃÅÓÓ init ÚÁÐÕÓÔÉÔ ÐÒÏÃÅÓÓÙ getty ÄÌÑ ×ÓÅÈ ×ËÌÀÞÅÎÎÙÈ ÐÏÒÔÏ×. ÷Ù ÍÏÖÅÔÅ ÐÒÏ×ÅÒÉÔØ, ÄÏÓÔÕÐÎÙ ÌÉ ×ÈÏÄÙ Ó ËÏÎËÒÅÔÎÏÇÏ ÐÏÒÔÁ, ×ÙÐÏÌÎÉ× ËÏÍÁÎÄÕ ps -ax | grep '[t]tyd1' ÷Ù ÄÏÌÖÎÙ Õ×ÉÄÅÔØ ÎÅÞÔÏ ×ÒÏÄÅ ÓÌÅÄÕÀÝÅÇÏ: 747 ?? I 0:00.04 /usr/libexec/getty std.57600 ttyd1 ëÁË ÐÏÄËÌÀÞÉÔØ ÔÅÒÍÉÎÁÌ Ë FreeBSD? åÓÌÉ ×Ù ÓÏÂÉÒÁÅÔÅÓØ ÉÓÐÏÌØÚÏ×ÁÔØ ÄÒÕÇÏÊ ËÏÍÐØÀÔÅÒ × ËÁÞÅÓÔ×Å ÔÅÒÍÉÎÁÌÁ ÄÌÑ FreeBSD, ÓÏÅÄÉÎÉÔÅ ÉÈ ÐÏÓÌÅÖÏ×ÁÔÅÌØÎÙÅ ÐÏÒÔÙ ÎÕÌØ-ÍÏÄÅÍÎÙÍ ËÁÂÅÌÅÍ. åÓÌÉ Õ ×ÁÓ ÅÓÔØ ÔÅÒÍÉÎÁÌ, ÏÂÒÁÔÉÔÅÓØ Ë ÅÇÏ ÄÏËÕÍÅÎÔÁÃÉÉ. úÁÔÅÍ ÍÏÄÉÆÉÃÉÒÕÊÔÅ ÆÁÊÌ /etc/ttys ÏÐÉÓÁÎÎÙÍ ×ÙÛÅ ÓÐÏÓÏÂÏÍ. îÁÐÒÉÍÅÒ, ÅÓÌÉ ×Ù ÐÏÄËÌÀÞÁÅÔÅ ÔÅÒÍÉÎÁÌ WYSE-50 Ë ÐÑÔÏÍÕ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÏÍÕ ÐÏÒÔÕ, ÉÓÐÏÌØÚÕÊÔÅ ÔÁËÕÀ ÓÔÒÏÞËÕ: ttyd4 "/usr/libexec/getty std.38400" wyse50 on secure ÷ ÜÔÏÍ ÐÒÉÍÅÒÅ ÏÐÉÓÁÎ ÐÏÒÔ ÎÁ /dev/ttyd4, ÉÍÅÀÝÉÊ ÔÅÒÍÉÎÁÌ wyse50, ÐÏÄËÌÀÞÅÎÎÙÊ ÎÁ ÓËÏÒÏÓÔÉ 34800 bps ÂÅÚ ËÏÎÔÒÏÌÑ ÐÏ ÞÅÔÎÏÓÔÉ (std.38400 ÉÚ /etc/gettytab) É ÒÁÚÒÅۣΠÎÅÐÏÓÒÅÄÓÔ×ÅÎÎÙÊ ×ÈÏÄ ÐÏÌØÚÏ×ÁÔÅÌÑ root (secure). ðÏÞÅÍÕ ÎÅ ÕÄÁ£ÔÓÑ ÚÁÐÕÓÔÉÔØ tip ÉÌÉ cu? óËÏÒÅÅ ×ÓÅÇÏ, × ×ÁÛÅÊ ÓÉÓÔÅÍÅ ÚÁÐÕÓË ÐÒÏÇÒÁÍÍ tip É cu ÒÁÚÒÅۣΠÔÏÌØËÏ ÐÏÌØÚÏ×ÁÔÅÌÀ uucp É ÞÌÅÎÁÍ ÇÒÕÐÐÙ dialer. ÷Ù ÍÏÖÅÔÅ ÉÓÐÏÌØÚÏ×ÁÔØ ÇÒÕÐÐÕ dialer ÄÌÑ ÕÐÒÁ×ÌÅÎÉÑ ÄÏÓÔÕÐÏÍ Ë ×ÁÛÅÍÕ ÍÏÄÅÍÕ ÉÌÉ ÕÄÁÌ£ÎÎÙÍ ÓÉÓÔÅÍÁÍ. äÏÓÔÁÔÏÞÎÏ ÄÏÂÁ×ÉÔØ ÐÏÌØÚÏ×ÁÔÅÑ × ÇÒÕÐÐÕ dialer. ÷Ù ÍÏÖÅÔÅ ÒÁÚÒÅÛÉÔØ ×ÓÅÍ ÐÏÌØÚÏ×ÁÔÅÌÑÍ ×ÁÛÅÊ ÓÉÓÔÅÍÙ ÚÁÐÕÓËÁÔØ tip É cu, ×ÙÐÏÌÎÉ× ËÏÍÁÎÄÙ: # chmod 4511 /usr/bin/cu # chmod 4511 /usr/bin/tip íÏÊ ÍÏÄÅÍ Hayes ÎÅ ÐÏÄÄÅÒÖÉ×ÁÅÔÓÑ---ÞÔÏ ÍÏÖÎÏ ÓÄÅÌÁÔØ? îÁ ÓÁÍÏÍ ÄÅÌÅ ÓÔÒÁÎÉÃÁ ÓÐÒÁ×ÏÞÎÉËÁ Ï ÐÒÏÇÒÁÍÍÅ tip ÕÓÔÁÒÅÌÁ. íÏÄÅÍÙ Hayes ÐÏÄÄÅÒÖÉ×ÁÀÔÓÑ ÓÉÓÔÅÍÏÊ. ðÒÏÓÔÏ ÄÏÂÁרÔÅ ``at=hayes'' × ×ÁÛ ÆÁÊÌ /etc/remote. äÒÁÊ×ÅÒ ÍÏÄÅÍÏ× Hayes ÎÅ ÄÏÓÔÁÔÏÞÎÏ ÕÍ£Î, ÞÔÏÂÙ ÐÏÄÄÅÒÖÉ×ÁÔØ ÎÅËÏÔÏÒÙÅ ÉÚ ÎÏ×ÙÈ ×ÏÚÍÏÖÎÏÓÔÅÊ ÓÏ×ÒÅÍÅÎÎÙÈ ÍÏÄÅÍÏ×---ÓÏÏÂÝÅÎÉÑ ÔÉÐÁ BUSY, NO DIALTONE, ÉÌÉ CONNECT 115200 ÂÕÄÕÔ ÐÒÉ×ÏÄÉÔØ ÅÇÏ × ÚÁÍÅÛÁÔÅÌØÓÔ×Ï. ÷Ù ÄÏÌÖÎÙ ×ÙËÌÀÞÉÔØ ×Ù×ÏÄ ÔÁËÉÈ ÓÏÏÂÝÅÎÉÊ ÐÒÉ ÉÓÐÏÌØÚÏ×ÁÎÉÉ ÐÒÏÇÒÁÍÍÙ tip (ËÏÍÁÎÄÏÊ ATX0&W). ôÁÊÍÁÕÔ ÐÏ ÕÍÏÌÞÁÎÉÀ ÄÌÑ ÐÒÏÇÒÁÍÍÙ tip ÒÁ×ÅÎ 60 ÓÅËÕÎÄÁÍ. ÷ÁÛ ÍÏÄÅÍ ÄÏÌÖÅÎ ÉÓÐÏÌØÚÏ×ÁÔØ ÍÅÎØÛÅÅ ÚÎÁÞÅÎÉÅ, ÉÎÁÞÅ tip ÂÕÄÅÔ ÄÕÍÁÔØ, ÞÔÏ Õ ×ÁÓ ÐÒÏÂÌÅÍÙ ÓÏ Ó×ÑÚØÀ. ðÏÐÒÏÂÕÊÔÅ ATS7=45&W. îÁ ÓÁÍÏÍ ÄÅÌÅ tip × ÔÏÍ ×ÉÄÅ, ËÁËÏÍ ÐÏÓÔÁ×ÌÑÅÔÓÑ, ÎÅ ÐÏÄÄÅÒÖÉÍÁÅÔ ÍÏÖÅÍÙ Hayes ÐÏÌÎÏÓÔØÀ. òÅÛÅÎÉÅÍ Ñ×ÌÑÅÔÓÑ ÒÅÄÁËÔÉÒÏ×ÁÎÉÅ ÆÁÊÌÁ tipconf.h × ËÁÔÁÌÏÇÅ /usr/src/usr.bin/tip/tip. þÔÏÂÙ ÜÔÏ ÓÄÅÌÁÔØ, ×ÁÍ ÎÕÖÅÎ ÄÉÓÔÒÉÂÕÔÉ× ÉÓÈÏÄÎÙÈ ÔÅËÓÔÏ× ÓÉÓÔÅÍÙ. úÁÍÅÎÉÔÅ ÓÔÒÏËÕ ``#define HAYES 0'' ÎÁ ``#define HAYES 1''. úÁÔÅÍ ×ÙÐÏÌÎÉÔÅ ``make'' É ``make install''. ðÏÓÌÅ ÜÔÉÈ ÄÅÊÓÔ×ÉÊ ×Ó£ ÒÁÂÏÔÁÅÔ ÚÁÍÅÞÁÔÅÌØÎÏ. ëÁË Ñ ÄÏÌÖÅÎ ××ÅÓÔÉ ÜÔÉ AT-ËÏÍÁÎÄÙ? óÏÚÄÁÊÔÅ ÔÁË ÎÁÚÙ×ÁÅÍÏÅ ``ÐÒÑÍÏÅ'' ÏÐÉÓÁÎÉÅ × ×ÁÛÅÍ ÆÁÊÌÅ /etc/remote. îÁÐÒÉÍÅÒ, ÅÓÌÉ ×ÁÛ ÍÏÄÅÍ ÐÏÄËÌÀÞÅÎ Ë ÐÅÒ×ÏÍÕ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÏÍÕ ÐÏÒÔÕ, /dev/cuaa0, ÓÄÅÌÁÊÔÅ ÔÁËÕÀ ÓÔÒÏËÕ: cuaa0:dv=/dev/cuaa0:br#19200:pa=none õËÁÖÉÔÅ ÍÁËÓÉÍÁÌØÎÕÀ ÓËÏÒÏÓÔØ ÏÂÍÅÎÁ Ó ÐÏÒÔÏÍ, ÐÏÄÄÅÒÖÉ×ÁÅÍÕÀ ÍÏÄÅÍÏÍ × ÐÁÒÁÍÅÔÒÅ br. úÁÔÅÍ ×ÙÐÏÌÎÉÔÅ ËÏÍÁÎÄÕ tip cuaa0 É ×Ù ÐÏÄËÌÀÞÉÔÅÓØ Ë ÍÏÄÅÍÕ. åÓÌÉ × ×ÁÛÅÊ ÓÉÓÔÅÍÅ ÎÅÔ ÕÓÔÒÏÊÓÔ×Á /dev/cuaa0, ÓÄÅÌÁÊÔÅ ÓÌÅÄÕÀÝÅÅ: # cd /dev # ./MAKEDEV cuaa0 éÌÉ ÉÓÐÏÌØÚÕÊÔÅ cu, ×ÏÊÄÑ ÁÄÍÉÎÉÓÔÒÁÔÏÒÏÍ, Ó ÔÁËÉÍÉ ÐÁÒÁÍÅÔÒÁÍÉ: # cu -l``line'' -s``speed'' ÇÄÅ line - ÜÔÏ ÉÍÑ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÏÇÏ ÐÏÒÔÁ (ÎÁÐÒÉÍÅÒ, /dev/cuaa0), Á speed - ÓËÏÒÏÓÔØ ÒÁÂÏÔÙ ÍÏÄÅÍÁ Ó ÐÏÒÔÏÍ (ÎÁÐÒÉÍÅÒ, 57600). ðÏÓÌÅ ××ÏÄÁ AT-ËÏÍÁÎÄ, ÎÁÂÅÒÉÔÅ ~. ÄÌÑ ÚÁ×ÅÒÛÅÎÉÑ ÒÁÂÏÔÙ. úÎÁË @ ÄÌÑ ÏÐÉÓÁÎÉÑ ÈÁÒÁËÔÅÒÉÓÔÉËÉ pn ÎÅ ÒÁÂÏÔÁÅÔ! úÎÁË @ × ÈÁÒÁËÔÅÒÉÓÔÉËÅ, ÏÐÉÓÙ×ÁÀÝÅÊ ÎÏÍÅÒ ÔÅÌÅÆÏÎÁ, ÕËÁÚÙ×ÁÅÔ ÐÒÏÇÒÁÍÍÅ tip ÏÂÒÁÔÉÔØÓÑ Ë ÆÁÊÌÕ /etc/phones ÄÌÑ ÐÏÉÓËÁ ÔÅÌÅÆÏÎÎÏÇÏ ÎÏÍÅÒÁ. ïÄÎÁËÏ ÚÎÁË @ Ñ×ÌÑÅÔÓÑ ÔÁËÖÅ É ÓÐÅÃÉÁÌØÎÙÍ ÓÉÍ×ÏÌÏÍ × ÆÁÊÌÁÈ ÏÐÉÓÁÎÉÑ ÈÁÒÁËÔÅÒÉÓÔÉË ÔÉÐÁ /etc/remote. üËÒÁÎÉÒÕÊÔÅ ÅÇÏ ÓÉÍ×ÏÌÏÍ ÏÂÒÁÔÎÏÇÏ ÓÌÜÛÁ: pn=\@ ëÁË ÎÁÂÒÁÔØ ÔÅÌÅÆÏÎÎÙÊ ÎÏÍÅÒ ÉÚ ËÏÍÁÎÄÎÏÊ ÓÔÒÏËÉ? ðÏÍÅÓÔÉÔÅ ÔÁË ÎÁÚÙ×ÁÅÍÏÅ ``ÏÂÝÅÅ'' ÏÐÉÓÁÎÉÅ × ×ÁÛ ÆÁÊÌ /etc/remote. îÁÐÒÉÍÅÒ: tip115200|Dial any phone number at 115200 bps:\ :dv=/dev/cuaa0:br#115200:at=hayes:pa=none:du: tip57600|Dial any phone number at 57600 bps:\ :dv=/dev/cuaa0:br#57600:at=hayes:pa=none:du: ôÏÇÄÁ ×Ù ÓÍÏÖÅÔÅ ×ÙÐÏÌÎÑÔØ ËÏÍÁÎÄÙ ×ÒÏÄÅ ``tip -115200 5551234''. åÓÌÉ ÐÒÅÄÐÏÞÉÔÁÅÔÅ ÐÒÏÇÒÁÍÍÕ cu, Á ÎÅ tip, ÉÓÐÏÌØÚÕÊÔÅ ÏÂÝÅÅ ÏÐÉÓÁÎÉÅ ÄÌÑ cu: cu115200|Use cu to dial any number at 115200bps:\ :dv=/dev/cuaa1:br#57600:at=hayes:pa=none:du: É ×ÙÐÏÌÎÑÊÔÅ ËÏÍÁÎÄÕ ``cu 5551234 -s 115200''. îÕÖÎÏ ÌÉ ÐÒÉ ÜÔÏÍ ËÁÖÄÙÊ ÒÁÚ ÚÁÄÁ×ÁÔØ ÓËÏÒÏÓÔØ ÒÁÂÏÔÙ Ó ÐÏÒÔÏÍ? óÏÚÄÁÊÔÅ ÏÐÉÓÁÎÉÅ ÄÌÑ tip1200 ÉÌÉ cu1200, ÎÏ ÎÅ ÏÓÔÁÎÁ×ÌÉ×ÁÊÔÅÓØ ÎÁ ÜÔÏÍ É ÉÓÐÏÌØÚÕÊÔÅ ÐÏÄÈÏÄÑÝÕÀ ÓËÏÒÏÓÔØ ÐÒÉ ÚÁÄÁÎÉÉ ÈÁÒÁËÔÅÒÉÓÔÉËÉ br. Tip ÐÏÌÁÇÁÅÔ, ÞÔÏ ÈÏÒÏÛÉÍ ÚÎÁÞÅÎÉÅÍ ÐÏ ÕÍÏÌÞÁÎÉÀ Ñ×ÌÑÅÔÓÑ 1200 bps, ÐÏÜÔÏÍÕ ÏÎ ÉÓÐÏÌØÚÕÅÔ ÏÐÉÓÁÎÉÅ ÄÌÑ ``tip1200''. ïÄÎÁËÏ ×ÁÓ ÎÉËÔÏ ÎÅ ÚÁÓÔÁ×ÌÑÅÔ ÉÓÐÏÌØÚÏ×ÁÔØ ÉÍÅÎÎÏ ÜÔÕ ÓËÏÒÏÓÔØ. íÎÅ ÎÕÖÎÏ ÉÍÅÔØ ÄÏÓÔÕÐ Ë ÎÅÓËÏÌØËÉÈ ÈÏÓÔÁÍ ÞÅÒÅÚ ÔÅÒÍÉÎÁÌØÎÙÊ ÓÅÒ×ÅÒ. ÷ÍÅÓÔÏ ÔÏÇÏ, ÞÔÏÂÙ ËÁÖÄÙÊ ÒÁÚ ÏÖÉÄÁÔØ ÐÏÄËÌÀÞÅÎÉÑ Ë ÔÅÒÍÉÎÁÌØÎÏÍÕ ÓÅÒ×ÅÒÕ, Á ÚÁÔÅÍ ÎÁÂÉÒÁÔØ ËÏÍÁÎÄÕ ``CONNECT <host>'', ÉÓÐÏÌØÚÕÊÔÅ ÈÁÒÁËÔÅÒÉÓÔÉËÕ cm ÐÒÏÇÒÁÍÍÙ tip. îÁÐÒÉÍÅÒ, ×ÏÔ ÔÁËÏÅ ÏÐÉÓÁÎÉÅ × ÆÁÊÌÅ /etc/remote: pain|pain.deep13.com|Forrester's machine:\ :cm=CONNECT pain\n:tc=deep13: muffin|muffin.deep13.com|Frank's machine:\ :cm=CONNECT muffin\n:tc=deep13: deep13:Gizmonics Institute terminal server:\ :dv=/dev/cua02:br#38400:at=hayes:du:pa=none:pn=5551234: ÐÏÚ×ÏÌÉÔ ×ÁÍ ÐÒÏÓÔÏ ÎÁÂÒÁÔØ ``tip pain'' ÉÌÉ ``tip muffin'' ÄÌÑ ÐÏÄËÌÀÞÅÎÉÑ Ë ÈÏÓÔÁÍ pain ÉÌÉ muffin É ``tip deep13'' ÄÌÑ ÄÏÓÔÕÐÁ Ë ÔÅÒÍÉÎÁÌØÎÏÍÕ ÓÅÒ×ÅÒÕ. íÏÖÅÔ ÌÉ tip ÉÓÐÏÌØÚÏ×ÁÔØ ÎÅÓËÏÌØËÏ ÔÅÌÅÆÏÎÏ× ÄÌÑ ÏÄÎÏÇÏ ÓÁÊÔÁ? üÔÁ ÐÒÏÂÌÅÍÁ ×ÏÚÎÉËÁÅÔ, ËÏÇÄÁ × ÕÎÉ×ÅÒÓÉÔÅÔÅ ÅÓÔØ ÐÁÒÁ ÍÏÄÅÍÎÙÈ ×ÈÏÄÏ× É ÎÅÓËÏÌØËÏ ÔÙÓÑÞ ÓÔÕÄÅÎÔÏ×, ÐÙÔÁÀÝÉÈÓÑ ÉÍÉ ×ÏÓÐÏÌØÚÏ×ÁÔØÓÑ... óÏÚÄÁÊÔÅ ÏÐÉÓÁÎÉÅ ÄÌÑ ×ÁÛÅÇÏ ÕÎÉ×ÅÒÓÉÔÅÔÁ × ÆÁÊÌÅ /etc/remote É ÉÓÐÏÌØÚÕÊÔÅ ÓÉÍ×ÏÌ \@ ÐÒÉ ÚÁÄÁÎÉÉ ÈÁÒÁËÔÅÒÉÓÔÉËÉ pn: big-university:\ :pn=\@:tc=dialout dialout:\ :dv=/dev/cuaa3:br#9600:at=courier:du:pa=none: ðÏÓÌÅ ÜÔÏÇÏ ÐÒÏÐÉÛÉÔÅ ÎÏÍÅÒÁ ÔÅÌÅÆÏÎÏ× ÕÎÉ×ÅÒÓÉÔÅÔÁ × ÆÁÊÌÅ /etc/phones: big-university 5551111 big-university 5551112 big-university 5551113 big-university 5551114 Tip ÂÕÄÅÔ ÐÙÔÁÔØÓÑ ×ÏÓÐÏÌØÚÏ×ÁÔØÓÑ ×ÓÅÍÉ ÔÅÌÅÆÏÎÎÙÍÉ ÎÏÍÅÒÁÍÉ × ÕËÁÚÁÎÎÏÍ ÐÏÒÑÄËÅ, ÐÒÅÖÄÅ ÞÅÍ ÚÁ×ÅÒÛÉÔØ ÒÁÂÏÔÕ. åÓÌÉ ×Ù ÈÏÔÉÔÅ, ÞÔÏÂÙ ÐÏÐÙÔËÉ ÂÙÌÉ ÐÒÏÄÏÌÖÅÎÙ, ÚÁÐÕÓÔÉÔÅ tip × ÃÉËÌÅ while. ðÏÞÅÍÕ ÎÕÖÎÏ ÎÁÖÉÍÁÔØ CTRL+P Ä×ÁÖÄÙ ÄÌÑ ÐÏÓÙÌËÉ ÏÄÎÏÇÏ ÜÔÏÇÏ ÓÉÍ×ÏÌÁ? ðÏ ÕÍÏÌÞÁÎÉÀ CTRL+P Ñ×ÌÑÅÔÓÑ ÓÐÅÃÉÁÌØÎÙÍ ÓÉÍ×ÏÌÏÍ ``ÐÒÉÎÕÄÉÔÅÌØÎÏÇÏ ××ÏÄÁ'', ÉÓÐÏÌØÚÕÅÍÙÍ ÄÌÑ ÕËÁÚÁÎÉÑ ÐÒÏÇÒÁÍÍÅ tip, ÞÔÏ ÓÌÅÄÕÀÝÉÊ ÓÉÍ×ÏÌ Ñ×ÌÑÅÔÓÑ ÂÁÊÔÏÍ ÄÁÎÎÙÈ. ÷Ù ÍÏÖÅÔÅ ÎÁÚÎÁÞÉÔØ ÆÕÎËÃÉÀ ÓÉÍ×ÏÌÁ ÐÒÉÎÕÄÉÔÅÌØÎÏÇÏ ××ÏÄÁ ÌÀÂÏÍÕ ÄÒÕÇÏÍÕ ÓÉÍ×ÏÌÕ Ó ÐÏÍÏÝØÀ ËÏÍÁÎÄÙ ~s, ËÏÔÏÒÁÑ ÐÒÅÄÎÁÚÎÁÞÅÎÁ ÄÌÑ ``ÕÓÔÁÎÏ×ËÉ ÚÎÁÞÅÎÉÊ ÐÅÒÅÍÅÎÎÙÈ''. îÁÂÅÒÉÔÅ ``~sforce=<single-char>'' Ó ÎÁÞÁÌÁ ÎÏ×ÏÊ ÓÔÒÏËÉ. úÄÅÓØ <single-char> - ÌÀÂÏÊ ÏÄÉÎÏÞÎÙÊ ÓÉÍ×ÏÌ. åÓÌÉ ×Ù ÎÅ ÚÁÄÁÄÉÔÅ <single-char>, ÔÏ ÓÉÍ×ÏÌÏÍ ÐÒÉÎÕÄÉÔÅÌØÎÏÇÏ ××ÏÄÁ ÂÕÄÅÔ ÎÕÌÅ×ÏÊ ÓÉÍ×ÏÌ, ËÏÔÏÒÙÊ ÍÏÖÎÏ ÐÏÌÕÞÉÔØ, ÎÁÂÒÁ× CTRL+2 ÉÌÉ CTRL+SPACE. ðÏÄÈÏÄÑÝÉÍ ÚÎÁÞÅÎÉÅÍ ÄÌÑ <single-char> ÍÏÖÅÔ ÂÙÔØ SHIFT+CTRL+6, ËÏÔÏÒÙÊ ÉÓÐÏÌØÚÕÅÔÓÑ ÔÏÌØËÏ ÎÅËÏÔÏÒÙÍÉ ÔÅÒÍÉÎÁÌØÎÙÍÉ ÓÅÒ×ÅÒÁÍÉ. ÷Ù ÍÏÖÅÔÅ ÚÁÄÁÔØ ÌÀÂÏÅ ÚÎÁÞÅÎÉÅ ÄÌÑ ÓÉÍ×ÏÌÁ ÐÒÉÎÕÄÉÔÅÌØÎÏÇÏ ××ÏÄÁ, ÕËÁÚÁ× ÅÇÏ × ×ÁÛÅÍ ÆÁÊÌÅ $HOME/.tiprc: force=<single-char> îÅÏÖÉÄÁÎÎÏ ×Ó£ ÓÔÁÌÏ ÎÁÂÉÒÁÔØÓÑ úáçìá÷îùíé âõë÷áíé? äÏÌÖÎÏ ÂÙÔØ, ×Ù ÎÁÖÁÌÉ CTRL+A, ÓÉÍ×ÏÌ ÐÅÒÅÈÏÄÁ × ×ÅÒÈÎÉÊ ÒÅÇÉÓÔÒ ÐÒÏÇÒÁÍÍÙ tip, ÓÐÅÃÉÁÌØÎÏ ÐÒÅÄÎÁÚÎÁÞÅÎÎÙÊ ÄÌÑ ÔÅÈ, Õ ËÏÇÏ ÎÅ ÒÁÂÏÔÁÅÔ ËÌÁ×ÉÛÁ caps-lock. éÓÐÏÌØÚÕÊÔÅ ËÏÍÁÎÄÕ ~s, ËÁË ÜÔÏ ÂÙÌÏ ÓÄÅÌÁÎÏ ×ÙÛÅ, É ÕÓÔÁÎÏ×ÉÔÅ ÚÎÁÞÅÎÉÅ ÐÅÒÅÍÅÎÎÏÊ ``raisechar'' ×Ï ÞÔÏ-ÎÉÂÕÄØ ÐÏÄÈÏÄÑÝÅÅ. ÷ ÄÅÊÓÔ×ÉÔÅÌØÎÏÓÔÉ ×Ù ÍÏÖÅÔÅ ÕÓÔÁÎÏ×ÉÔØ ÅÇÏ ÒÁ×ÎÙÍ ÓÉÍ×ÏÌÕ ÐÒÉÎÕÄÉÔÅÌØÎÏÇÏ ××ÏÄÁ, ÅÓÌÉ ÎÅ ÓÏÂÉÒÁÅÔÅÓØ ÐÏÌØÚÏ×ÁÔØÓÑ ÜÔÉÍÉ ÏÓÏÂÅÎÎÏÓÔÑÍÉ. óÌÅÄÕÀÝÉÊ ÐÒÉÍÅÒ ÆÁÊÌÁ .tiprc ÄÏÌÖÅÎ ÐÏÎÒÁ×ÉÔØÓÑ ÐÏÌØÚÏ×ÁÔÅÌÑÍ ÒÅÄÁËÔÏÒÁ Emacs, ËÏÔÏÒÙÍ ÞÁÓÔÏ ÐÒÉÈÏÄÉÔÓÑ ÎÁÖÉÍÁÔØ CTRL+2 É CTRL+A: force=^^ raisechar=^^ úÄÅÓØ ^^ ÜÔÏ SHIFT+CTRL+6. ëÁË ÍÏÖÎÏ ÐÅÒÅÄÁ×ÁÔØ ÆÁÊÌÙ Ó ÐÏÍÏÝØÀ ÐÒÏÇÒÁÍÍÙ tip? åÓÌÉ ×Ù ÓÏÅÄÉÎÉÌÉÓØ Ó ÄÒÕÇÏÊ UNIX-ÓÉÓÔÅÍÏÊ, ×Ù ÍÏÖÅÔÅ ÐÏÓÙÌÁÔØ É ÐÒÉÎÉÍÁÔØ ÆÁÊÌÙ ËÏÍÁÎÄÁÍÉ ~p (ÐÅÒÅÄÁÞÁ) É ~t (ÐÒÉ£Í). üÔÉ ËÏÍÁÎÄÙ ÚÁÐÕÓËÁÀÔ ÐÒÏÇÒÁÍÍÙ cat É echo ÎÁ ÕÄÁÌ£ÎÎÏÊ ÓÉÓÔÅÍÅ, ÞÔÏÂÙ ÐÒÉÎÑÔØ É ÐÏÓÌÁÔØ ÆÁÊÌÙ. óÉÎÔÁËÓÉÓ ×ÙÚÏ×Á ÉÍÅÅÔ ÔÁËÏÊ ×ÉÄ: ~p <local-file> [<remote-file>] ~t <remote-file> [<local-file>] ëÏÎÔÒÏÌØ ÏÛÉÂÏË ÐÅÒÅÄÁÞÉ ÐÒÉ ÜÔÏÍ ÎÅ ÏÓÕÝÅÓÔ×ÌÑÅÔÓÑ, ÔÁË ÞÔÏ ×ÁÍ ÍÏÖÅÔ ÐÏÎÁÄÏÂÉÔØÓÑ ÄÒÕÇÏÊ ÐÒÏÔÏËÏÌ ÐÅÒÅÄÁÞÉ, ÎÁÐÒÉÍÅÒ, zmodem. ëÁË ÉÓÐÏÌØÚÏ×ÁÔØ zmodem ×ÍÅÓÔÅ Ó tip? ðÅÒ×ÙÍ ÄÅÌÏÍ ÕÓÔÁÎÏ×ÉÔÅ ÏÄÎÕ ÉÚ ÐÒÏÇÒÁÍÍ, ÒÅÁÌÉÚÕÀÝÉÈ ÐÒÏÔÏËÏÌ zmodem ÉÚ ËÏÌÌÅËÃÉÉ ÐÏÒÔÏ× (ÔÁÍ ÅÓÔØ ÐÁÒÏÞËÁ × ËÁÔÅÇÏÒÉÉ comms, lrzsz É rzsz). äÌÑ ÐÒÉ£ÍÁ ÆÁÊÌÏ× ÚÁÐÕÓÔÉÔÅ ÐÒÏÇÒÁÍÍÕ ÐÅÒÅÄÁÞÉ ÎÁ ÐÒÏÔÉ×ÏÐÏÌÏÖÎÏÊ ÓÔÏÒÏÎÅ. úÁÔÅÍ ÎÁÖÍÉÔÅ enter É ÎÁÂÅÒÉÔÅ ``~C rz'' (ÉÌÉ ``~C lrz'', ÅÓÌÉ Õ ×ÁÓ ÕÓÔÁÎÏ×ÌÅÉ lrzsz) ÄÌÑ ÎÁÞÁÌÁ ÐÒÉ£ÍÁ ÉÈ ÎÁ ÌÏËÁÌØÎÕÀ ÍÁÛÉÎÕ. äÌÑ ÐÏÓÙÌËÉ ÆÁÊÌÏ×, ÚÁÐÕÓÔÉÔÅ ÐÒÏÇÒÁÍÍÕ ÐÒÉ£ÍÁ ÎÁ ÐÒÏÔÉ×ÏÐÏÌÏÖÎÏÊ ÓÔÏÒÏÎÅ. úÁÔÅÍ ÎÁÖÍÉÔÅ enter É ÎÁÂÅÒÉÔÅ ``~C sz <files>'' (ÉÌÉ ``~C lsz <files>'') ÄÌÑ ÐÏÓÙÌËÉ ÉÈ ÎÁ ÕÄÁÌ£ÎÎÕÀ ÓÉÓÔÅÍÕ. FreeBSD ÎÅ ÒÁÓÐÏÚÎÁ£Ô ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÙÅ ÐÏÒÔÙ ÎÁ ÍÏÅÊ ÍÁÛÉÎÅ, ÈÏÔÑ ×ÓÅ ÎÁÓÔÒÏÊËÉ ×ÅÒÎÙ. íÉËÒÏÓÈÅÍÙ UART ÐÒÏÉÚ×ÏÄÓÔ×Á Acer ÎÁ ÍÁÔÅÒÉÎÓËÉÈ ÐÌÁÔÁÈ É ÁÄÁÐÔÅÒÁÈ ÒÁÓÐÏÚÎÁÀÔÓÑ ÎÅËÏÒÒÅËÔÎÏ. äÌÑ ÒÅÛÅÎÉÑ ÜÔÏÊ ÐÒÏÂÌÅÍÙ ÐÏÐÒÏÂÕÊÔÅ ×ÏÓÐÏÌØÚÏ×ÁÔØÓÑ ÐÁÔÞÅÍ Ó ÓÅÒ×ÅÒÁ www.lemis.com. òÁÚÎÏÅ ðÏÞÅÍÕ FreeBSD ÉÓÐÏÌØÚÕÅÔ ÇÏÒÁÚÄÏ ÂÏÌØÛÅ ÍÅÓÔÁ × ÒÁÚÄÅÌÅ ÐÏÄËÁÞËÉ, ÞÅÍ Linux? üÔÏ ÔÏÌØËÏ ËÁÖÅÔÓÑ, ÞÔÏ ÄÌÑ FreeBSD ÔÒÅÂÕÅÔÓÑ ÂÏÌØÛÅ ÍÅÓÔÁ ÎÁ ÒÁÚÄÅÌÅ ÐÏÄËÁÞËÉ, ÞÅÍ ÄÌÑ Linux. îÁ ÓÁÍÏÍ ÄÅÌÅ ÜÔÏ ÎÅ ÔÁË. çÌÁ×ÎÏÅ ÏÔÌÉÞÉÅ FreeBSD ÏÔ Linux × ÜÔÏÍ ÐÌÁÎÅ ÚÁËÌÀÞÁÅÔÓÑ × ÔÏÍ, ÞÔÏ FreeBSD ÁËÔÉ×ÎÏ ÐÅÒÅÍÅÝÁÅÔ ÎÅÉÓÐÏÌØÚÕÅÍÙÅ ÓÔÒÁÎÉÃÙ ÐÁÍÑÔÉ, Ë ËÏÔÏÒÙÍ ÎÅ ÂÙÌÏ ÏÂÒÁÝÅÎÉÊ, × ÒÁÚÄÅÌ ÐÏÄËÁÞËÉ, ÞÔÏÂÙ Õ×ÅÌÉÞÉÔØ ÏÂß£Í ÄÏÓÔÕÐÎÏÊ ÆÉÚÉÞÅÓËÏÊ ÐÁÍÑÔÉ ÄÌÑ ÁËÔÉ×ÎÏÇÏ ÉÓÐÏÌØÚÏ×ÁÎÉÑ. Linux ÖÅ ÐÅÒÅÍÅÝÁÅÔ ÓÔÒÁÎÉÃÙ ÐÁÍÑÔÉ × ÒÁÚÄÅÌ ÐÏÄËÁÞËÉ ÔÏÌØËÏ × ËÒÁÊÎÅÍ ÓÌÕÞÁÅ. ðÏÌÕÞÁÅÍÏÅ ×Ï FreeBSD Õ×ÅÌÉÞÅÎÉÅ ÎÁÇÒÕÚËÉ ÎÁ ÒÁÚÄÅÌ ÐÏÄËÁÞËÉ ËÏÍÐÅÎÓÉÒÕÅÔÓÑ ÂÏÌÅÅ ÜÆÆÅËÔÉ×ÎÙÍ ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ ÏÐÅÒÁÔÉ×ÎÏÊ ÐÁÍÑÔÉ. úÁÍÅÔØÔÅ, ÞÔÏ, ÈÏÔÑ FreeBSD ÐÒÅÄÐÏÞÉÔÁÅÔ ÉÓÐÏÌØÚÏ×ÁÔØ ÒÁÚÄÅÌ ÐÏÄËÁÞËÉ, ÏÎÁ ÎÅ ÍÏÖÅÔ ÓÂÒÏÓÉÔØ ×ÓÅ ÎÅÁËÔÉ×ÎÙÅ ÓÔÒÁÎÉÃÙ × Ó×ÏÐ ÐÒÉ ÐÏÌÎÏÓÔØÀ ÎÅÁËÔÉ×ÎÏÊ ÓÉÓÔÅÍÅ. ôÁË ÞÔÏ ×ÒÑÄ ÌÉ ÍÏÖÅÔ ×ÏÚÎÉËÎÕÔØ ÓÉÔÕÁÃÉÑ, ËÏÇÄÁ, ÐÒÏÓÎÕ×ÛÉÓØ ÒÁÎÏ ÕÔÒÏÍ, ×Ù ÏÂÎÁÒÕÖÉÔÅ, ÞÔÏ ×ÓÑ ×ÁÛÁ ÓÉÓÔÅÍÁ ÎÁÈÏÄÉÔÓÑ × ÒÁÚÄÅÌÅ ÐÏÄËÁÞËÉ, ÈÏÔÑ ÏÎÁ ÐÒÏÓÔÁÉ×ÁÌÁ ×ÓÀ ÎÏÞØ. ðÏÞÅÍÕ ÉÓÐÏÌØÚÕÀÔÓÑ (É ÞÔÏ ÉÚ ÓÅÂÑ ÐÒÅÄÓÔÁ×ÌÑÀÔ) ÆÏÒÍÁÔÙ ×ÙÐÏÌÎÉÍÙÈ ÆÁÊÌÏ× a.aut É ELF? äÌÑ ÐÏÎÉÍÁÎÉÑ ÔÏÇÏ, ÐÏÞÅÍÕ FreeBSD ÉÓÐÏÌØÚÕÅÔ ÆÏÒÍÁÔ a.out, ×Ù ÄÏÌÖÎÙ ÓÎÁÞÁÌÁ ÐÏÌÕÞÉÔØ ÐÒÅÄÓÔÁ×ÌÅÎÉÅ Ï ÔÒ£È "ÏÓÎÏ×ÎÙÈ" ÆÏÒÍÁÔÁÈ ×ÙÐÏÌÎÉÍÙÈ ÆÁÊÌÏ× ÄÌÑ UNIX: a.out üÔÏ ÓÁÍÙÊ ÓÔÁÒÙÊ, `ËÌÁÓÓÉÞÅÓËÉÊ' ÆÏÒÍÁÔ ÏÂßÅËÔÎÙÈ ÆÁÊÌÏ× ÄÌÑ UNIX. ÷ Î£Í ÉÓÐÏÌØÚÕÅÔÓÑ ËÏÒÏÔËÉÊ É ËÏÍÐÁËÔÎÙÊ ÚÁÇÏÌÏ×ÏË Ó ÍÁÇÉÞÅÓËÉÍ ÞÉÓÌÏÍ × ÎÁÞÁÌÅ, ËÏÔÏÒÏÅ ÞÁÓÔÏ ÉÓÐÏÌØÚÕÅÔÓÑ ÄÌÑ ÏÐÒÅÄÅÌÅÎÉÑ ÆÏÒÍÁÔÁ (ÚÁ ÐÏÄÒÏÂÎÙÍ ÏÐÉÓÁÎÉÅÍ ÏÂÒÁÔÉÔÅÓØ Ë ÓÔÒÁÎÉÃÅ óÐÒÁ×ÏÞÎÉËÁ Ï a.out(5)). ïÎ ÓÏÄÅÒÖÉÔ ÔÒÉ ÚÁÇÒÕÖÁÅÍÙÈ ÓÅÇÍÅÎÔÁ: .text, .data É .bss ÐÌÀÓ ÔÁÂÌÉÃÕ ÓÉÍ×ÏÌÏ× É ÔÁÂÌÉÃÕ ÓÔÒÏË. COFF üÔÏ ÆÏÒÍÁÔ ÏÂßÅËÔÎÙÈ ÆÁÊÌÏ× SVR3. äÏÐÏÌÎÉÔÅÌØÎÏ × ÚÁÇÏÌÏ×ÏË ×ËÌÀÞÅÎÁ ÔÁÂÌÉÃÁ ÓÅËÃÉÊ, ÔÁË ÞÔÏ ×Ù ÍÏÖÅÔÅ ÉÍÅÔØ ÉÈ ÂÏÌØÛÅ, ÞÅÍ ÔÏÌØËÏ .text, .data É .bss. ELF ðÒÅÅÍÎÉË COFF, × ËÏÔÏÒÙÊ ÄÏÂÁ×ÌÅÎÙ ×ÏÚÍÏÖÎÏÓÔÉ ÉÍÅÔØ ÍÎÏÇÏ ÓÅËÃÉÊ É 32- ÉÌÉ 64-ÒÁÚÒÑÄÎÙÅ ÚÎÁÞÅÎÉÑ. ïÄÉÎ ÂÏÌØÛÏÊ ÍÉÎÕÓ: ELF ÂÙÌ ÓÐÒÏÅËÔÉÒÏ×ÁÎ ÔÁËÖÅ × ÐÒÅÄÐÏÌÏÖÅÎÉÉ, ÞÔÏ ÄÌÑ ËÁÖÄÏÊ ÁÐÐÁÒÁÔÎÏÊ ÐÌÁÔÆÏÒÍÙ ÂÕÄÅÔ ÓÕÝÅÓÔ×Ï×ÁÔØ ÔÏÌØËÏ ÏÄÉÎ ABI. üÔÏ ÐÒÅÄÐÏÌÏÖÅÎÉÅ ÄÏÓÔÁÔÏÞÎÏ ÎÅËÏÒÒÅËÔÎÏ, É ÄÁÖÅ × ÍÉÒÅ ËÏÍÍÅÒÞÅÓËÉÈ ÒÅÁÌÉÚÁÃÉÊ SYSV (× ËÏÔÏÒÏÍ ÉÍÅÅÔÓÑ ÐÏ ËÒÁÊÎÅÊ ÍÅÒÅ ÔÒÉ ABI: SVR4, Solaris É SCO) ÜÔÏ ÎÅ ÔÁË. FreeBSD ËÁËÉÍ-ÔÏ ÏÂÒÁÚÏÍ ÐÙÔÁÅÔÓÑ ÒÅÛÉÔØ ÜÔÕ ÐÒÏÂÌÅÍÕ, ÐÒÅÄÏÓÔÁ×ÌÑÑ ÕÔÉÌÉÔÕ ÄÌÑ ÐÏÍÅÔËÉ ËÏÎËÒÅÔÎÏÇÏ ×ÙÐÏÌÎÉÍÏÇÏ ÆÁÊÌÁ ELF Ó ÉÎÆÏÒÍÁÃÉÅÊ Ï ABI, Ó ËÏÔÏÒÙÍ ÏÎ ÓÏ×ÍÅÓÔÉÍ. ïÂÒÁÔÉÔÅÓØ Ë ÓÔÒÁÎÉÃÅ óÐÒÁ×ÏÞÎÉËÁ Ï ÕÔÉÌÉÔÅ brandelf ÚÁ ÐÏÄÒÏÂÎÏÊ ÉÎÆÏÒÍÁÃÉÅÊ. FreeBSD ×ÙÒÏÓÌÁ ÎÁ "ËÌÁÓÓÉÞÅÓËÉÈ" ÔÒÁÄÉÃÉÑÈ É ÔÒÁÄÉÃÉÏÎÎÏ ÉÓÐÏÌØÚÏ×ÁÌÁ ÆÏÒÍÁÔ a.out, ÔÅÈÎÏÌÏÇÉÀ, ÏÐÒÏÂÏ×ÁÎÎÕÀ É ÐÒÏ×ÅÒÅÎÎÕÀ ×Ï ÍÎÏÇÉÈ ×ÁÒÉÁÃÉÑÈ BSD. èÏÔÑ ÄÁ×ÎÏ ÕÖÅ ÍÏÖÎÏ ÂÙÌÏ ËÏÍÐÉÌÉÒÏ×ÁÔØ É ×ÙÐÏÌÎÑÔØ ÒÏÄÎÙÅ ×ÙÐÏÌÎÉÍÙÅ ÆÁÊÌÙ (É ÑÄÒÏ) × ÆÏÒÍÁÔÅ ELF, FreeBSD Ó ÓÁÍÏÇÏ ÎÁÞÁÌÁ ÓÏÐÒÏÔÉ×ÌÑÌÁÓØ ÐÅÒÅÈÏÄÕ ÎÁ ELF ËÁË ÎÁ ÆÏÒÍÁÔ, ÉÓÐÏÌØÚÕÅÍÙÊ ÐÏ ÕÍÏÌÞÁÎÉÀ. ðÏÞÅÍÕ? ëÏÇÄÁ ÍÉÒ Linux ÄÅÌÁÌ ÂÏÌÅÚÎÅÎÎÙÊ ÐÅÒÅÈÏÄ Ë ELF, ÐÒÉÞÉÎ ÏÔ×ÅÒÇÎÕÔØ ÆÏÒÍÁÔ a.out ÂÙÌÏ ÎÅ ÔÁË ÕÖ É ÍÎÏÇÏ, ÒÁÚ×Å ÞÔÏ ÉÈ ÎÅÇÉÂËÉÊ ÍÅÈÁÎÉÚÍ ÒÁÂÏÔÙ Ó ÓÏ×ÍÅÓÔÎÏ ÉÓÐÏÌØÚÕÅÍÙÍÉ ÂÉÂÌÉÏÔÅËÁÍÉ, ËÏÔÏÒÙÊ ÂÙÌ ÏÓÎÏ×ÁÎ ÎÁ ÔÁÂÌÉÃÅ ÐÅÒÅÈÏÄÏ×, ÞÔÏ ÄÅÌÁÌÏ ÐÏÓÔÒÏÅÎÉÅ ÔÁËÉÈ ÂÉÂÌÉÏÔÅË ÏÞÅÎØ ÚÁÔÒÕÄÎÉÔÅÌØÎÙÍ ÄÌÑ ÒÁÚÒÁÂÏÔÞÉËÏ×. ôÁË ËÁË ÓÒÅÄÓÔ×Á ÒÁÂÏÔÙ Ó ELF ÐÒÅÄÏÓÔÁ×ÌÑÌÉ ÒÅÛÅÎÉÅ ÜÔÏÊ ÐÒÏÂÌÅÍÙ É ÜÔÏ ÂÙÌÏ × ÏÂÝÅÍ-ÔÏ "ÛÁÇÏÍ ×ÐÅÒ£Ä" × ÌÀÂÏÍ ÓÌÕÞÁÅ, ÃÅÎÁ ÐÅÒÅÈÏÄÁ ÂÙÌÁ ÐÒÉÚÎÁÎÁ ÓÔÏÑÝÅÊ ÔÏÇÏ É ÐÅÒÅÈÏÄ ÂÙÌ ÓÄÅÌÁÎ. ÷ ÓÌÕÞÁÅ FreeBSD, ÎÁÛ ÍÅÈÁÎÉÚÍ ÒÁÂÏÔÙ Ó ÓÏ×ÍÅÓÔÎÏ ÉÓÐÏÌØÚÕÅÍÙÍÉ ÂÉÂÌÉÏÔÅËÁÍÉ ÏÞÅÎØ ÐÏÈÏÖ ÎÁ ÍÅÈÁÎÉÚÍ, ÐÒÉÍÅÎÑÅÍÙÊ × SunOS, ÐÏÜÔÏÍÕ ÅÇÏ ÏÞÅÎØ ÌÅÇËÏ ÉÓÐÏÌØÚÏ×ÁÔØ. ïÄÎÁËÏ, ÎÁÞÉÎÁÑ Ó 3.0, FreeBSD ÏÆÉÃÉÁÌØÎÏ ÐÏÄÄÅÒÖÉ×ÁÅÔ ELF ËÁË ÆÏÒÍÁÔ, ÉÓÐÏÌØÚÕÅÍÙÊ ÐÏ ÕÍÏÌÞÁÎÉÀ. é, ÈÏÔÑ ÆÏÒÍÁÔ a.out ÐÏÄÄÅÒÖÉ×ÁÅÔÓÑ × ÐÏÌÎÏÊ ÍÅÒÅ, ÒÁÚÒÁÂÏÔÞÉËÉ ÉÚ ÐÒÏÅËÔÁ GNU, Ñ×ÌÑÀÝÉÅÓÑ Á×ÔÏÒÁÍÉ ËÏÍÐÉÌÑÔÏÒÁ, ËÏÔÏÒÙÊ ÍÙ ÉÓÐÏÌØÚÕÅÍ, ÂÏÌØÛÅ ÎÅ ÐÏÄÄÅÒÖÉ×ÁÀÔ ÆÏÒÍÁÔ a.out. üÔÏ ÚÁÓÔÁ×ÉÌÏ ÎÁÓ ÐÏÄÄÅÒÖÉ×ÁÔØ ÒÁÚÌÉÞÎÙÅ ×ÅÒÓÉÉ ËÏÍÐÉÌÑÔÏÒÁ É ËÏÍÐÏÎÏ×ÝÉËÁ, É ÎÅ ÐÏÚ×ÏÌÉÌÏ ×ÏÓÐÏÌØÚÏ×ÁÔØÓÑ ×ÓÅÍÉ ×ÏÚÍÏÖÎÏÓÔÑÍÉ ÐÏÓÌÅÄÎÉÈ ÒÁÚÒÁÂÏÔÏË GNU. ðÏÔÒÅÂÎÏÓÔØ × ÎÁÌÉÞÉÉ ÒÅÁÌÉÚÁÃÉÉ ISO-C++, × ÏÓÎÏ×ÎÏÍ ËÏÎÓÔÒÕËÔÏÒÏ× É ÄÅÓÔÒÕËÔÏÒÏ×, ÔÁËÖÅ ÐÒÉ×ÅÌÁ Ë ÐÏÄÄÅÒÖËÅ ELF × ÂÕÄÕÝÉÈ ÒÅÌÉÚÁÈ FreeBSD. äÁ, ÎÏ ÐÏÞÅÍÕ ÔÁË ÍÎÏÇÏ ÒÁÚÎÙÈ ÆÏÒÍÁÔÏ×? åÓÌÉ ×ÅÒÎÕÔØÓÑ × ÄÁÌ£ËÏÅ Ô£ÍÎÏÅ ÐÒÏÛÌÏÅ, ÔÏ ÔÏÇÄÁ ËÏÍÐØÀÔÅÒÙ ÂÙÌÉ ÏÞÅÎØ ÐÒÏÓÔÏ ÕÓÔÒÏÅÎÙ. îÁ ÎÉÈ ÍÏÇÌÁ ÒÁÂÏÔÁÔØ ÐÒÏÓÔÁÑ, ÍÁÌÅÎØËÁÑ ÓÉÓÔÅÍÁ. æÏÒÍÁÔ a.out ÐÏÌÎÏÓÔØÀ ÒÅÛÁÌ ÚÁÄÁÞÕ ÐÒÅÄÓÔÁ×ÌÅÎÉÑ ÐÒÏÇÒÁÍÍ ÎÁ ÐÒÏÓÔÙÈ ÓÉÓÔÅÍÁÈ (PDP-11). ëÏÇÄÁ ÖÅ ÌÀÄÉ ÐÅÒÅÎÅÓÌÉ unix Ó ÐÒÏÓÔÙÈ ÓÉÓÔÅÍ, ÏÎÉ ÏÓÔÁ×ÉÌÉ a.out, ÔÁË ËÁË ÅÇÏ ÂÙÌÏ ÄÏÓÔÁÔÏÞÎÏ ÄÌÑ ÒÁÎÎÉÈ ÒÅÁÌÉÚÁÃÉÊ unix ÄÌÑ ÔÁËÉÈ ÁÒÈÉÔÅËÔÕÒ, ËÁË Motorola 68k, VAX, ÉÔÄ. úÁÔÅÍ ËÁËÏÊ-ÔÏ ÕÍÎÙÊ ÉÎÖÅÎÅÒ ÒÅÛÉÌ, ÞÔÏ ÅÓÌÉ ÏÎ ÍÏÖÅÔ ÚÁÓÔÁ×ÉÔØ ÐÒÏÇÒÁÍÍÎÏÅ ÏÂÅÓÐÅÞÅÎÉÅ ÄÅÌÁÔØ ÎÅËÏÔÏÒÙÅ ÔÏÎËÉÅ ÍÁÎÉÐÕÌÑÃÉÉ, ÔÏ ÜÔÏ ÐÏÚ×ÏÌÉÔ ÐÒÅÏÄÏÌÅÔØ ÎÅËÏÔÏÒÙÅ ÏÇÒÁÎÉÞÅÎÉÑ ÐÒÉ ÐÒÏÅËÔÉÒÏ×ÁÎÉÉ É ÐÏÚ×ÏÌÉÔ ÑÄÒÕ ÐÒÏÃÅÓÓÏÒÁ ÒÁÂÏÔÁÔØ ÂÙÓÔÒÅÅ. ëÏÇÄÁ ÜÔÏ ÂÙÌÏ ÓÄÅÌÁÎÏ Ó ÎÏ×ÙÍ ÔÉÐÏÍ ÁÐÐÁÒÁÔÕÒÙ (× ÎÁÛÉ ÄÎÉ ÉÚ×ÅÓÔÎÏÍ ËÁË RISC), ÏËÁÚÁÌÏÓØ, ÞÔÏ a.out ÐÌÏÈÏ ÐÏÄÈÏÄÉÔ ÄÌÑ ÜÔÏÊ ÁÐÐÁÒÁÔÕÒÙ, ÐÏÜÔÏÍÕ ÂÙÌÏ ÒÁÚÒÁÂÏÔÁÎÏ ÍÎÏÇÏ ÎÏ×ÙÈ ÆÏÒÍÁÔÏ× ÄÌÑ ÄÏÓÔÉÖÅÎÉÑ ÂÏÌØÛÅÊ ÐÒÏÉÚ×ÏÄÉÔÅÌØÎÏÓÔÉ ÏÔ ÔÁËÏÇÏ ÁÐÐÁÒÁÔÎÏÇÏ ÏÂÅÓÐÅÞÅÎÉÑ, ÞÅÍ ÍÏÖÅÔ ÄÁÔØ ÐÒÏÓÔÏÊ, ÉÍÅÀÝÉÊ ÏÇÒÁÎÉÞÅÎÉÑ ÆÏÒÍÁÔ a.out. âÙÌÉ ÒÁÚÒÁÂÏÔÁÎÙ ÔÁËÉÅ ÆÏÒÍÁÔÙ, ËÁË COFF, ECOFF É ÅÝ£ ÎÅÓËÏÌØËÏ ÂÅÚ×ÅÓÔÎÙÈ ÄÒÕÇÉÈ ÓÏ Ó×ÏÉÍÉ ÏÇÒÁÎÉÞÅÎÉÑÍÉ, ÐÏËÁ ÎÁËÏÎÅà ×ÓÅ ÎÅ ÏÓÔÁÎÏ×ÉÌÉÓØ ÎÁ ÆÏÒÍÁÔÅ ELF. ÷ÄÏÂÁ×ÏË Ë ÜÔÏÍÕ, ÔÁË ËÁË ÒÁÚÍÅÒÙ ÐÒÏÇÒÁÍÍ ÓÔÁÌÉ ÄÏÓÔÉÇÁÔØ ÏÇÒÏÍÎÙÈ ÒÁÚÍÅÒÏ×, Á ÄÉÓËÏ×ÁÑ (É ÆÉÚÉÞÅÓËÁÑ) ÐÁÍÑÔØ ÏÓÔÁ×ÁÌÁÓØ ÓÒÁ×ÎÉÔÅÌØÎÏ ÎÅÂÏÌØÛÏÊ, ÔÏ ×ÏÚÎÉËÌÁ ËÏÎÃÅÐÃÉÑ ÓÏ×ÍÅÓÔÎÏ ÉÓÐÏÌØÚÕÅÍÙÈ ÂÉÂÌÉÏÔÅË. óÉÓÔÅÍÁ VM ÔÁËÖÅ ÓÔÁÌÁ ÂÏÌÅÅ ÍÏÝÎÏÊ. èÏÔÑ ËÁÖÄÏÅ ÉÚ ÜÔÉÈ ÎÏ×Ï××ÅÄÅÎÉÊ ÐÒÏÄÏÌÖÁÌÏ ÉÓÐÏÌØÚÏ×ÁÔØ ÆÏÒÍÁÔ a.out, ÅÇÏ ÂÅÓÐÏÌÅÚÎÏÓÔØ ÓÔÁÎÏ×ÉÌÁÓØ ×ÉÄÎÁ ×Ó£ ÂÏÌØÛÅ É ÂÏÌØÛÅ Ó ÄÏÂÁ×ÌÅÎÉÅÍ ËÁÖÄÏÊ ÎÏ×ÏÊ ×ÏÚÍÏÖÎÏÓÔÉ. ë ÔÏÍÕ ÖÅ ÌÀÄÉ ÚÁÈÏÔÅÌÉ ÄÉÎÁÍÉÞÅÓËÉ ÚÁÇÒÕÖÁÔØ ËÏÄ ×Ï ×ÒÅÍÑ ×ÙÐÏÌÎÅÎÉÑ ÐÒÏÇÒÁÍÍ ÉÌÉ ÓÂÒÁÓÙ×ÁÔØ ÞÁÓÔÉ ÐÒÏÇÒÁÍÍ ÐÏÓÌÅ ×ÙÐÏÌÎÅÎÉÑ ËÏÄÁ ÉÎÉÃÉÁÌÉÚÁÃÉÉ ÄÌÑ ÜËÏÎÏÍÉÉ ÏÓÎÏ×ÎÏÊ ÐÁÍÑÔÉ É/ÉÌÉ ÒÁÚÍÅÒÁ Ó×ÏÐÁ. ñÚÙËÉ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ ÓÔÁÎÏ×ÉÌÉÓØ ×Ó£ ÂÏÌÅÅ ÕÍÎÙÍÉ É ÌÀÄÉ ÚÁÈÏÔÅÌÉ Á×ÔÏÍÁÔÉÞÅÓËÏÇÏ ÚÁÐÕÓËÁ ÎÅËÏÔÏÒÏÇÏ ËÏÄÁ ÐÅÒÅÄ ÇÌÁ×ÎÏÊ ÐÒÏÃÅÄÕÒÏÊ ÐÒÏÇÒÁÍÍÙ. ó ÆÏÒÍÁÔÏÍ a.out ÂÙÌÁ ÓÄÅÌÁÎÁ ÍÁÓÓÁ ÕÈÉÝÒÅÎÉÊ ÄÌÑ ÒÅÁÌÉÚÁÃÉÉ ×ÓÅÈ ÜÔÉÈ ÔÒÅÂÏ×ÁÎÉÊ, É ÏÎÉ × ÏÂÝÅÍ-ÔÏ ÒÁÂÏÔÁÌÉ. ÷ ËÏÎÃÅ ËÏÎÃÏ× ÎÁÓÔÕÐÉÌ ÍÏÍÅÎÔ, ËÏÇÄÁ ÆÏÒÍÁÔ a.out ÐÅÒÅÓÔÁÌ ÂÙ ÓÐÒÁ×ÌÑÔØÓÑ ÓÏ ×ÓÅÍÉ ÜÔÉÍÉ ÐÒÏÂÌÅÍÁÍÉ ÂÅÚ ÅÝ£ ÂÏÌØÛÉÈ ÐÏÔÅÒØ × ËÏÄÅ É ÇÉÂËÏÓÔÉ × ÒÁÂÏÔÅ. ôÏÇÄÁ ËÁË ELF ÒÅÛÁÌ ÍÎÏÇÉÅ ÉÚ ÜÔÉÈ ÐÒÏÂÌÅÍ, ÐÅÒÅÈÏÄ ÎÁ ÎÅÇÏ ÂÙÌ ÂÙ ÂÏÌÅÚÎÅÎÎÙÍ ÎÁ ÒÁÂÏÞÅÊ ÓÉÓÔÅÍÅ. ôÁË ÞÔÏ ELF ÖÄÁÌ ÍÏÍÅÎÔÁ, ËÏÇÄÁ ÂÙÌ ÂÙ ÂÏÌÅÅ ÂÏÌÅÚÎÅÎÎÙÍ ÏÓÔÁ×ÁÔØÓÑ Ó ÆÏÒÍÁÔÏÍ a.out, ÞÅÍ ÐÅÒÅÊÔÉ Ë ÆÏÒÍÁÔÕ ELF. ïÄÎÁËÏ Ó ÔÅÞÅÎÉÅÍ ×ÒÅÍÅÎÉ ÉÎÓÔÒÕÍÅÎÔÙ ÒÁÚÒÁÂÏÔËÉ, ÎÁ ËÏÔÏÒÙÈ ÏÓÎÏ×ÁÎÙ ÉÎÓÔÒÕÍÅÎÔÙ ÒÁÚÒÁÂÏÔËÉ FreeBSD (ÏÓÏÂÅÎÎÏ ÁÓÓÅÍÂÌÅÒ É ÚÁÇÒÕÚÞÉË), ÒÁÚÄÅÌÉÌÉÓØ ÎÁ Ä×Å ÐÁÒÁÌÌÅÌØÎÙÅ ×ÅÔ×É. ÷ ÄÅÒÅ×Ï FreeBSD ÂÙÌÁ ÄÏÂÁ×ÌÅÎÁ ÐÏÄÄÅÒÖËÁ ÓÏ×ÍÅÓÔÎÏ ÉÓÐÏÌØÚÕÅÍÙÈ ÂÉÂÌÉÏÔÅËÉ É ÂÙÌÉ ÉÓÐÒÁ×ÌÅÎÙ ÎÅËÏÔÏÒÙÅ ÏÛÉÂËÉ. òÁÚÒÁÂÏÔÞÉËÉ ÉÚ GNU, ËÏÔÏÒÙÅ ÉÚÎÁÞÁÌØÎÏ ÐÉÓÁÌÉ ÜÔÉ ÐÒÏÇÒÁÍÍÙ, ÐÏÌÎÏÓÔØÀ ÉÈ ÐÅÒÅÄÅÌÁÌÉ, ÄÏÂÁ×É× ÂÏÌÅÅ ÐÒÏÓÔÕÀ ÐÏÄÄÅÒÖËÕ ÐÏÓÔÒÏÅÎÉÑ ËÒÏÓÓ-ËÏÍÐÉÌÑÔÏÒÏ×, × ËÏÔÏÒÏÍ ÍÏÖÎÏ ÉÓÐÏÌØÚÏ×ÁÔØ ÒÁÚÌÉÞÎÙÅ ÆÏÒÍÁÔÙ, ÉÔÄ. ëÏÇÄÁ ÍÎÏÇÉÅ ÚÁÈÏÔÅÌÉ ÓÔÒÏÉÔØ ËÒÏÓÓ-ËÏÍÐÉÌÑÔÏÒ Ó ×ÙÈÏÄÎ×Í ËÏÄÏÍ ÄÌÑ FreeBSD, ÔÏ ÉÍ ÎÅ ÐÏ×ÅÚÌÏ, ÔÁË ËÁË ÓÔÁÒÙÅ ÉÓÈÏÄÎÙÅ ÔÅËÓÔÙ, ËÏÔÏÒÙÅ FreeBSD ÉÓÐÏÌØÚÏ×ÁÌÁ ÄÌÑ as É ld, ÎÅ ÐÏÄÏÛÌÉ. îÏ×ÙÊ ÎÁÂÏÒ ÕÔÉÌÉÔ ÏÔ GNU (binutils) ÐÏÄÄÅÒÖÉ×ÁÅÔ ËÒÏÓÓ-ËÏÍÐÉÌÑÃÉÀ, ELF, ÓÏ×ÍÅÓÔÎÏ ÉÓÐÏÌØÚÕÅÍÙÅ ÂÉÂÌÉÏÔÅËÉ, ÒÁÓÛÉÒÅÎÉÑ C++, ÉÔÄ. ÷ÄÏÂÁ×ÏË, ÍÎÏÇÉÅ ÒÁÚÒÁÂÏÔÞÉËÉ ×ÙÐÕÓËÁÀÔ ÐÒÏÇÒÁÍÍÙ × ÂÉÎÁÒÎÏÍ ÆÏÒÍÁÔÅ ELF, É ÄÌÑ FreeBSD ÂÙÌÏ ÂÙ ÐÏÌÅÚÎÏ ÉÍÅÔØ ×ÏÚÍÏÖÎÏÓÔØ ÉÈ ÚÁÐÕÓËÁÔØ. é ÅÓÌÉ ÔÁËÁÑ ×ÏÚÍÏÖÎÏÓÔØ ÂÕÄÅÔ ÒÅÁÌÉÚÏ×ÁÎÁ, ÚÁÞÅÍ ÔÏÇÄÁ ×ÏÏÂÝÅ ÐÒÏÄÏÌÖÁÔØ ÏÐÉÒÁÔØÓÑ ÎÁ a.out? üÔÏ ÉÚÍÕÞÅÎÎÁÑ ÓÔÁÒÁÑ ÌÏÛÁÄØ, ËÏÔÏÒÁÑ ÂÙÌÁ ÐÏÌÅÚÎÁ ÄÏÌÇÏÅ ×ÒÅÍÑ, ÎÏ ÓÅÊÞÁÓ ÓÁÍÏÅ ×ÒÅÍÑ ÏÔ ÎÅ£ ÏÔËÁÚÁÔØÓÑ, ÏÓÔÁ×É× × ÐÒÏÛÌÏÍ ÄÏÌÇÉÅ ÇÏÄÙ ÐÒÅÄÁÎÎÏÊ ÓÌÕÖÂÙ. ELF ÂÏÌÅÅ ×ÙÒÁÚÉÔÅÌÅÎ, ÞÅÍ a.out, É ÐÏÚ×ÏÌÑÅÔ ÒÅÁÌÉÚÏ×ÁÔØ ÂÏÌØÛÕÀ ÒÁÓÛÉÒÑÅÍÏÓÔØ ÏÓÎÏ×ÎÏÊ ÓÉÓÔÅÍÙ. éÎÓÔÒÕÍÅÎÔÙ ÄÌÑ ÒÁÂÏÔÙ Ó ELF ÌÕÞÛÅ ÐÏÄÄÅÒÖÉ×ÁÀÔÓÑ ÒÁÚÒÁÂÏÔÞÉËÁÍÉ, É ÐÒÅÄÏÓÔÁ×ÌÑÀÔ ÐÏÄÄÅÒÖËÕ ËÒÏÓÓ-ËÏÍÐÉÌÑÃÉÉ, ÞÔÏ ÄÌÑ ÍÎÏÇÉÈ ×ÁÖÎÏ. ELF ÍÏÖÅÔ ÒÁÂÏÔÁÔØ ÎÅÍÎÏÇÏ ÍÅÄÌÅÎÎÅÅ, ÞÅÍ a.out, ÎÏ ÜÔÏ ÔÒÕÄÎÏ ÉÚÍÅÒÉÔØ. ôÁËÖÅ ÍÅÖÄÕ ÎÉÍÉ ÅÓÔØ ÎÅËÏÔÏÒÙÅ ÏÔÌÉÞÉÑ ÐÏ ÒÁÓÐÒÅÄÅÌÅÎÉÀ ÓÔÒÁÎÉà ÐÁÍÑÔÉ, ÏÂÒÁÂÏÔËÅ ËÏÄÁ ÉÎÉÃÉÁÌÉÚÁÃÉÉ, ÉÔÄ. îÉËÁËÉÅ ÉÚ ÜÔÉÈ ÏÔÌÉÞÉÊ ÏÓÏÂÏ ÎÅ ×ÁÖÎÙ, ÎÏ ÜÔÉ ÏÔÌÉÞÉÑ ×Ó£ ÖÅ ÅÓÔØ. óÏ ×ÒÅÍÅÎÅÍ ÐÏÄÄÅÒÖËÁ a.out ÂÕÄÅÔ ÕÂÒÁÎÁ ÉÚ ÑÄÒÁ GENERIC, É ÐÏÓÔÅÐÅÎÎÏ ÕÂÒÁÎÁ ÉÚ ÓÉÓÔÅÍÙ ÓÏ×ÓÅÍ, ËÁË ÔÏÌØËÏ ÏÔÐÁÄ£Ô ÎÕÖÄÁ × ÚÁÐÕÓËÅ ÓÔÁÒÙÈ ÐÒÏÇÒÁÍÍ × ÆÏÒÍÁÔÅ a.out. ðÏÞÅÍÕ ÎÅ×ÏÚÍÏÖÎÏ ÉÚÍÅÎÉÔØ ÐÒÁ×Á ÎÁ ÓÉÍ×ÏÌÉÞÅÓËÉÅ ÓÓÙÌËÉ? þÔÏÂÙ ÜÔÏ ÒÁÂÏÔÁÌÏ, ÉÓÐÏÌØÚÕÊÔÅ ÏÐÃÉÉ ``'' ÉÌÉ ``'' ×ÍÅÓÔÅ Ó ÏÐÃÉÅÊ ``''. ïÂÒÁÔÉÔÅÓØ Ë ÓÔÒÁÎÉÃÁÍ óÐÒÁ×ÏÞÎÉËÁ ÐÏ ËÏÍÁÎÄÅ chmod É ÐÏ symlink. ðòåäõðòåöäåîéå ÏÐÃÉÑ ``'' ×ÙÐÏÌÎÑÅÔ ËÏÍÁÎÄÕ chmod òåëõòóé÷îï. âÕÄØÔÅ ÏÓÔÏÒÏÖÎÙ, ÚÁÄÁ×ÁÑ ËÁÔÁÌÏÇÉ ÉÌÉ ÓÉÍ×ÏÌÉÞÅÓËÉÅ ÓÓÙÌËÉ ÎÁ ËÁÔÁÌÏÇÉ × ÐÁÒÁÍÅÔÒÁÈ chmod. åÓÌÉ ×Ù ÈÏÔÉÔÅ ÉÚÍÅÎÉÔØ ÐÒÁ×Á ÎÁ ËÁÔÁÌÏÇ, ÎÁ ËÏÔÏÒÙÊ ÕËÁÚÙ×ÁÅÔ ÓÉÍ×ÏÌÉÞÅÓËÁÑ ÓÓÙÌËÁ, ÉÓÐÏÌØÚÕÊÔÅ chmod ÂÅÚ ÏÐÃÉÊ É ÓÌÅÄÕÊÔÅ ÓÉÍ×ÏÌÉÞÅÓËÏÊ ÓÓÙÌËÅ Ó ÐÏÍÏÝØÀ ÌÉÄÉÒÕÀÝÅÇÏ ÓÌÜÛÁ (``/''). îÁÐÒÉÍÅÒ, ÅÓÌÉ ``foo'' Ñ×ÌÑÅÔÓÑ ÓÉÍ×ÏÌÉÞÅÓËÏÊ ÓÓÙÌËÏÊ ÎÁ ËÁÔÁÌÏÇ ``bar'', Á ×Ù ÈÏÔÉÔÅ ÉÚÍÅÎÉÔØ ÐÒÁ×Á ÎÁ ``foo'' (ÎÁ ÓÁÍÏÍ ÄÅÌÅ ``bar''), ×Ù ÄÏÌÖÎÙ ×ÙÐÏÌÎÉÔØ ËÏÍÁÎÄÕ ÔÉÐÁ ÓÌÅÄÕÀÝÅÊ: chmod 555 foo/ åÓÌÉ ÚÁÄÁÎ ÌÉÄÉÒÕÀÝÉÊ ÓÌÜÛ, chmod ÂÕÄÅÔ ÓÌÅÄÏ×ÁÔØ ÓÉÍ×ÏÌÉÞÅÓËÏÊ ÓÓÙÌËÅ, ``foo'', ÍÅÎÑÑ ÐÒÁ×Á ÎÁ ËÁÔÁÌÏÇ ``bar''. ðÏÞÅÍÕ ÄÌÉÎÁ ÒÅÇÉÓÔÒÁÃÉÏÎÎÏÇÏ ÉÍÅÎÉ ×Ó£ ÅÝ£ ÏÇÒÁÎÉÞÅÎÁ 8 ÓÉÍ×ÏÌÁÍÉ? îÁ×ÅÒÎÏÅ, ×Ù ÄÕÍÁÅÔÅ, ÞÔÏ ÄÏÓÔÁÔÏÞÎÏ ÂÕÄÅÔ ÉÚÍÅÎÉÔØ ÚÎÁÞÅÎÉÅ ËÏÎÓÔÁÎÔÙ UT_NAMESIZE, ÐÅÒÅËÏÍÐÉÌÉÒÏ×ÁÔØ ÐÏÌÎÏÓÔØÀ ÓÉÓÔÅÍÕ É ×Ó£ ÂÕÄÅÔ ÒÁÂÏÔÁÔØ. ë ÎÅÓÞÁÓÔØÀ, ÞÁÓÔØ ÐÒÉÌÏÖÅÎÉÊ É ÕÔÉÌÉÔ (×ËÌÀÞÁÑ ÓÉÓÔÅÍÎÙÅ) ÉÍÅÀÔ Ö£ÓÔËÏ ÚÁÄÁÎÎÙÅ ÍÁÌÙÅ ÚÎÁÞÅÎÉÑ (ÎÅ ×ÓÅÇÄÁ "8" ÉÌÉ "9", ÎÏ É ÔÁËÉÅ ÓÔÒÁÎÎÙÅ, ËÁË "15" ÉÌÉ "20") × ÓÔÒÕËÔÕÒÁÈ É ÂÕÆÅÒÁÈ. üÔÏ ÐÒÉ×ÅÄ£Ô ÎÅ ÔÏÌØËÏ Ë ÐÏÒÞÅ ÆÁÊÌÏ× ÖÕÒÎÁÌÏ× (ÉÚ-ÚÁ ÚÁÐÉÓÉ ÐÏÌÅÊ ÐÅÒÅÍÅÎÎÏÇÏ ÒÁÚÍÅÒÁ ÔÁÍ, ÇÄÅ ÏÖÉÄÁÅÔÓÑ ÐÏÌÅ ÆÉËÓÉÒÏ×ÁÎÎÏÇÏ ÒÁÚÍÅÒÁ), ÎÏ ÍÏÖÅÔ ÐÏ×ÌÉÑÔØ ÎÁ ÒÁÂÏÔÕ ËÌÉÅÎÔÏ× ÓÉÓÔÅÍÙ Sun NIS É ÍÏÖÅÔ × ÐÒÉÎÃÉÐÅ ×ÙÚ×ÁÔØ ÄÒÕÇÉÅ ÐÒÏÂÌÅÍÙ ÐÒÉ ×ÚÁÉÍÏÄÅÊÓÔ×ÉÉ Ó ÄÒÕÇÉÍÉ ÓÉÓÔÅÍÁÍÉ UNIX. ÷Ï FreeBSD 3.0 É ÓÔÁÒÛÅ, ÍÁËÓÉÍÁÌØÎÁÑ ÄÌÉÎÁ ÉÍÅÎÉ ÂÙÌÁ Õ×ÅÌÉÞÅÎÁ ÄÏ 16 ÓÉÍ×ÏÌÏ× É ×ÓÅ ÕÔÉÌÉÔÙ Ó ÐÒÅÄÏÐÒÅÄÅÌ£ÎÎÙÍ ÒÁÚÍÅÒÏÍ ÉÍÅÎÉ ÂÙÌÉ ÎÁÊÄÅÎÙ É ÉÓÐÒÁ×ÌÅÎÙ. ôÁË ËÁË ÜÔÏ ËÁÓÁÅÔÓÑ ÓÔÏÌØ ÍÎÏÇÉÈ ÏÂÌÁÓÔÅÊ × ÓÉÓÔÅÍÅ, ÔÏ ÔÁËÉÅ ÉÚÍÅÎÅÎÉÑ ÎÅ ÄÅÌÁÌÉÓØ ×ÐÌÏÔØ ÄÏ 3.0. åÓÌÉ ×Ù ÁÂÓÏÌÀÔÎÏ Õ×ÅÒÅÎÙ, ÞÔÏ ÓÍÏÖÅÔÅ ÎÁÊÔÉ É ÉÓÐÒÁ×ÉÔØ ÐÒÏÂÌÅÍÙ ÔÁËÏÇÏ ÒÏÄÁ ÓÁÍÏÓÔÏÑÔÅÌØÎÏ, ËÏÇÄÁ ÏÎÉ ×ÏÚÎÉËÎÕÔ, ÔÏ ÍÏÖÅÔÅ Õ×ÅÌÉÞÉÔØ ÄÌÉÎÕ ÒÅÇÉÓÔÒÁÃÉÏÎÎÏÇÏ ÉÍÅÎÉ × ÒÁÎÎÉÈ ÒÅÌÉÚÁÈ, ÏÔÒÅÄÁËÔÉÒÏ×Á× ÆÁÊÌ /usr/include/utmp.h É ÉÚÍÅÎÉ× ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÍ ÏÂÒÁÚÏÍ ËÏÎÓÔÁÎÔÕ UT_NAMESIZE. ÷Ù ÄÏÌÖÎÙ ÂÕÄÅÔÅ ÔÁËÖÅ ÉÚÍÅÎÉÔØ ÚÎÁÞÅÎÉÅ MAXLOGNAME × ÆÁÊÌÅ /usr/include/sys/param.h, ÞÔÏÂÙ ÏÎÏ ÓÏÏÔ×ÅÔÓÔ×Ï×ÁÌÏ UT_NAMESIZE. é ÎÁËÏÎÅÃ, ÅÓÌÉ ×Ù ËÏÍÐÉÌÉÒÕÅÔÅ ÉÚ ÉÓÈÏÄÎÙÈ ÔÅËÓÔÏ×, ÎÅ ÚÁÂÕÄØÔÅ, ÞÔÏ /usr/include ÏÂÎÏ×ÌÑÅÔÓÑ ËÁÖÄÙÊ ÒÁÚ! äÅÌÁÊÔÅ ÉÚÍÅÎÅÎÉÑ × ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÈ ÆÁÊÌÁÈ ËÁÔÁÌÏÇÁ /usr/src/.. íÏÖÎÏ ÌÉ ÚÁÐÕÓËÁÔØ ÐÒÏÇÒÁÍÍÙ ÄÌÑ DOS ×Ï FreeBSD? äÁ, ÎÁÞÉÎÁÑ Ó ×ÅÒÓÉÉ 3.0, ×Ù ÍÏÖÅÔÅ ÉÓÐÏÌØÚÏ×ÁÔØ ÜÍÕÌÑÔÏÒ DOS rundos ÏÔ BSDI, ËÏÔÏÒÙÊ ÂÙÌ ÉÎÔÅÇÒÉÒÏ×ÁÎ × ÓÉÓÔÅÍÕ É ÕÓÏ×ÅÒÛÅÎÓÔ×Ï×ÁÎ. ðÏÛÌÉÔÅ ÐÉÓØÍÏ × ÓÐÉÓÏË ÒÁÓÓÙÌËÉ, ÐÏÓ×ÑÝ£ÎÎÙÊ ÜÍÕÌÑÃÉÉ ×Ï FreeBSD, ÅÓÌÉ ×Ù ÚÁÉÎÔÅÒÅÓÏ×ÁÎÙ × ÕÞÁÓÔÉÉ × ÜÔÏÍ ÐÒÏÅËÔÅ. äÌÑ ÓÉÓÔÅÍ, ÐÒÅÄÛÅÓÔ×Ï×Á×ÛÉÍ 3.0, × ËÏÌÌÅËÃÉÉ ÐÏÒÔÏ× ÅÓÔØ ÚÁÍÅÞÁÔÅÌØÎÁÑ ÕÔÉÌÉÔÁ pcemu, ÜÍÕÌÉÒÕÀÝÁÑ ÐÒÏÃÅÓÓÏÒ 8088 É ÆÕÎËÃÉÉ BIOS, ÞÅÇÏ ÄÏÓÔÁÔÏÞÎÏ ÄÌÑ ÚÁÐÕÓËÁ ÐÒÉÌÏÖÅÎÉÊ DOS, ÒÁÂÏÔÁÀÝÉÈ × ÔÅËÓÔÏ×ÏÍ ÒÅÖÉÍÅ. ïÎÁ ÔÒÅÂÕÅÔ X Window System (ËÏÔÏÒÁÑ ÐÏÓÔÁ×ÌÑÅÔÓÑ ËÁË XFree86). þÔÏ ÔÁËÏÅ ``sup'' É ËÁË ÜÔÏ ÍÏÖÎÏ ÉÓÐÏÌØÚÏ×ÁÔØ? óÏËÒÁÝÅÎÉÅ SUP ÏÚÎÁÞÁÅÔ Software Update Protocol, ËÏÔÏÒÙÊ ÂÙÌ ÒÁÚÒÁÂÏÔÁÎ × CMU ÄÌÑ ÓÉÎÈÒÏÎÉÚÁÃÉÉ ÉÓÈÏÄÎÙÈ ÔÅËÓÔÏ×. íÙ ÉÓÐÏÌØÚÕÅÍ ÅÇÏ ÄÌÑ ÓÉÎÈÒÏÎÉÚÁÃÉÉ ÉÓÈÏÄÎÙÈ ÔÅËÓÔÏ× ÎÁ ÕÄÁÌ£ÎÎÙÈ ÓÁÊÔÁÈ Ó ÏÓÎÏ×ÎÙÍ ÓÅÒ×ÅÒÏÍ ÒÁÚÒÁÂÏÔÞÉËÏ×. ðÒÏÔÏËÏÌ SUP ÉÓÐÏÌØÚÕÅÔ ÐÒÏÐÕÓËÎÕÀ ÓÐÏÓÏÂÎÏÓÔØ ËÁÎÁÌÁ ÎÅÜÆÆÅËÔÉ×ÎÏ, É ÂÙÌ ÏÔ×ÅÒÇÎÕÔ. ÷ ÎÁÓÔÏÑÝÅÅ ×ÒÅÍÑ ÒÅËÏÍÅÎÄÕÅÍÙÍ ÍÅÔÏÄÏÍ ÄÌÑ ÓÉÎÈÒÏÎÉÚÁÃÉÉ ÉÓÈÏÄÎÙÈ ÔÅËÓÔÏ× Ñ×ÌÑÅÔÓÑ ÐÒÏÔÏËÏÌ CVSup. îÁÓËÏÌØËÏ ÇÒÅÅÔÓÑ ÐÒÏÃÅÓÓÏÒ ÐÒÉ ÒÁÂÏÔÅ FreeBSD? ÷. ëÔÏ-ÎÉÂÕÄØ ÄÅÌÁÌ ÚÁÍÅÒÙ ÔÅÍÐÅÒÁÔÕÒÙ ÐÒÉ ÒÁÂÏÔÅ FreeBSD? ñ ÚÎÁÀ, ÞÔÏ Linux ÇÒÅÅÔÓÑ ÍÅÎØÛÅ, ÞÅÍ DOS, ÎÏ ÎÉËÏÇÄÁ ÎÅ ×ÉÄÅÌ ÕÐÏÍÉÎÁÎÉÑ FreeBSD. îÁ×ÅÒÎÏÅ, ÏÎ ÓÉÌØÎÏ ÇÒÅÅÔÓÑ. ï. îÅÔ, ÎÏ ÍÙ ÓÄÅÌÁÌÉ ÒÁÚÌÉÞÎÙÅ ×ËÕÓÏ×ÙÅ ÔÅÓÔÙ Õ ÄÏÂÒÏ×ÏÌØÃÅ× Ó ÚÁ×ÑÚÁÎÎÙÍÉ ÇÌÁÚÁÍÉ, ËÏÔÏÒÙÅ ÄÏ ÜÔÏÇÏ ÐÒÉÎÑÌÉ ÐÏ 250 ÍÉËÒÏÇÒÁÍÍ LSD-25. 35% ÄÏÂÒÏ×ÏÌØÃÅ× ÚÁÑ×ÉÌÏ, ÞÔÏ FreeBSD ÉÍÅÅÔ ×ËÕÓ ÁÐÅÌØÓÉÎÁ, ÔÏÇÄÁ ËÁË ×ËÕÓ Linux ÒÁÓÃÅÎÉ×ÁÌÓÑ ËÁË ÆÉÏÌÅÔÏ×ÙÊ ÔÕÍÁÎ. îÁÓËÏÌØËÏ Ñ ÐÏÍÎÀ, ÎÉ ÏÄÎÁ ÉÚ ÇÒÕÐÐ ÎÅ ÏÔÍÅÔÉÌÁ ÚÎÁÞÉÔÅÌØÎÏÊ ÒÁÚÎÉÃÙ × ÔÅÍÐÅÒÁÔÕÒÅ. ÷Ù ÈÏÔÅÌÉ ÏÐÕÂÌÉËÏ×ÁÔØ ÐÏÌÎÙÅ ÒÅÚÕÌØÔÁÔÙ ÜÔÏÇÏ ÏÐÒÏÓÁ, ËÏÇÄÁ ÏÂÎÁÒÕÖÉÄÉ, ÞÔÏ ÓÌÉÛËÏÍ ÍÎÏÇÏ ÄÏÂÒÏ×ÏÌØÃÅ× ÐÏËÉÎÕÌÉ ÐÏÍÅÝÅÎÉÅ ×Ï ×ÒÅÍÑ ÔÅÓÔÏ×, ÞÔÏ ÎÅÓËÏÌØËÏ ÓÍÁÚÁÌÏ ÒÅÚÕÌØÔÁÔÙ. ñ ÄÕÍÁÀ, ÞÔÏ ÂÏÌØÛÉÎÓÔ×Ï ÉÚ ÎÉÈ ÒÁÂÏÔÁÀÔ ÓÅÊÞÁÓ × Apple ÎÁÄ ÉÈ ÎÏ×ÙÍ GUI ``ÞÅÛÉ É ÎÀÈÁÊ''. üÔÏ ÓÔÁÒÙÊ ÄÏÂÒÙÊ ÂÉÚÎÅÓ! óÅÒØ£ÚÎÏ, É FreeBSD, É Linux ÉÓÐÏÌØÚÕÀÔ ÉÎÓÔÒÕËÃÉÀ ``HLT'' (halt), ËÏÇÄÁ ÓÉÓÔÅÍÁ ÐÒÏÓÔÁÉ×ÁÅÔ, ÞÔÏ ÕÍÅÎØÛÁÅÔ ÐÏÔÒÅÂÌÅÎÉÅ ÜÎÅÒÇÉÉ É × Ó×ÏÀ ÏÞÅÒÅÄØ, ×ÙÄÅÌÅÎÉÅ ÔÅÐÌÁ. ÷ÄÏÂÁ×ÏË, ÅÓÌÉ Õ ×ÁÓ ÎÁÓÔÒÏÅÎ APM (Á×ÔÏÍÁÔÉÞÅÓËÏÅ ÕÐÒÁ×ÌÅÎÉÅ ÜÎÅÒÇÏÐÏÔÒÅÂÌÅÎÉÅÍ), ÔÏ FreeBSD ÍÏÖÅÔ ÐÅÒÅ×ÏÄÉÔØ ÐÒÏÃÅÓÓÏÒ × ÒÅÖÉÍ ÐÏÎÉÖÅÎÎÏÇÏ ÜÎÅÒÇÏÐÏÔÒÅÂÌÅÎÉÑ. ëÔÏ ÔÁÍ ÓËÒÅ£ÔÓÑ × ÍÉËÒÏÓÈÅÍÁÈ ÐÁÍÑÔÉ?? ÷. äÅÌÁÅÔ ÌÉ FreeBSD ÞÔÏ-ÎÉÂÕÄØ ÜÄÁËÏÅ ÐÒÉ ËÏÍÐÉÌÑÃÉÉ ÑÄÒÁ, ÞÔÏ ×ÙÚÙ×ÁÅÔ ÐÏÓËÒÉÐÙ×ÁÎÉÅ ÍÉËÒÏÓÈÅÍ ÐÁÍÑÔÉ? ðÒÉ ËÏÍÐÉÌÑÃÉÉ (É × ËÏÒÏÔËÉÊ ÐÒÏÍÅÖÕÔÏË ×ÒÅÍÅÎÉ ÐÏÓÌÅ ÏÂÎÁÒÕÖÅÎÉÑ ÄÉÓËÏ×ÏÄÁ ÐÒÉ ÓÔÁÒÔÅ ÓÉÓÔÅÍÙ) ÏÔ ÍÉËÒÏÓÈÅÍ ÐÁÍÑÔÉ ÉÓÈÏÄÉÔ ÓÔÒÁÎÎÙÊ ÃÁÒÁÐÁÀÝÉÊ Ú×ÕË. ï. äÁ! ÷Ù, ÎÁ×ÅÒÎÏÅ, ×ÉÄÅÌÉ ÞÁÓÔÏÅ ÕÐÏÍÉÎÁÎÉÅ ``ÄÁÅÍÏÎÏ×'' × ÄÏËÕÍÅÎÔÁÃÉÉ ÐÏ BSD, ÎÏ ÎÅ ÍÎÏÇÉÅ ÚÎÁÀÔ, ÞÔÏ ÜÔÏ ÎÁÓÔÏÑÝÉÅ ÎÅÍÁÔÅÒÉÁÌØÎÙÅ ÓÕÝÅÓÔ×Á, ËÏÔÏÒÙÅ ÔÅÐÅÒØ ÚÁ×ÌÁÄÅÌÉ ×ÁÛÉÍ ËÏÍÐØÀÔÅÒÏÍ. ãÁÒÁÐÁÀÝÉÊ Ú×ÕË, ÉÚÄÁ×ÁÅÍÙÊ ÍÉËÒÏÓÈÅÍÁÍÉ ÐÁÍÑÔÉ - ÜÔÏ ÎÁ ÓÁÍÏÍ ÄÅÌÅ ×ÙÓÏËÏÞÁÓÔÏÔÎÏÅ ÐÅÒÅÛ£ÐÔÙ×ÁÎÉÅ ÍÅÖÄÕ ÄÁÅÍÏÎÁÍÉ, ËÏÇÄÁ ÏÎÉ ÒÅÛÁÀÔ, ËÁË ÌÕÞÛÅ ÓÐÒÁ×ÉÔØÓÑ Ó ÒÁÚÌÉÞÎÙÍÉ ÚÁÄÁÞÁÍÉ ÐÏ ÁÄÍÉÎÉÓÔÒÉÒÏ×ÁÎÉÀ ÓÉÓÔÅÍÙ. åÓÌÉ ÛÕÍ ÄÏÓÔÉÇ ×ÁÛÉÈ ÕÛÅÊ. ËÏÍÁÎÄÁ DOS ``fdisk /mbr'' ÉÈ ÓÐÕÇΣÔ, ÎÏ ÎÅ ÕÄÉ×ÌÑÊÔÅÓØ, ÅÓÌÉ ÏÎÉ ÏÔÒÅÁÇÉÒÕÀÔ ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÍ ÏÂÒÁÚÏÍ É ÐÏÐÙÔÁÀÔÓÑ ×ÁÓ ÏÓÔÁÎÏ×ÉÔØ. æÁËÔÉÞÅÓËÉ, ÅÓÌÉ ×Ï ×ÒÅÍÑ ×ÙÐÏÌÎÅÎÉÑ ÜÔÏÊ ËÏÍÁÎÄÙ ×Ù ÕÓÌÙÛÉÔÅ ÓÁÔÁÎÉÎÓËÉÊ ÇÏÌÏÓ âÉÌÌÁ çÅÊÔÓÁ ÉÚ ×ÓÔÒÏÅÎÎÏÇÏ ÄÉÎÁÍÉËÁ, ÂÅÇÉÔÅ É ÄÁÖÅ ÎÅ ÏÇÌÑÄÙ×ÁÊÔÅÓØ! éÚÂÁ×ÌÅÎÎÙÅ ÏÔ ÐÒÏÔÉ×ÏÓÔÏÑÎÉÑ Ó ÄÁÅÍÏÎÁÍÉ BSD, ÂÌÉÚÎÅÃÙ-ÄÅÍÏÎÙ DOS É Windows ÞÁÓÔÏ ÍÏÇÕÔ ÚÁÈ×ÁÔÉÔØ ÐÏÌÎÙÊ ËÏÎÔÒÏÌØ ÎÅ ÔÏÌØËÏ ÎÁÄ ×ÁÛÅÊ ÍÁÛÉÎÏÊ É ÎÁ×ÌÅÞØ ×ÅÞÎÏÅ ÐÒÏËÌÑÔÉÅ ÎÁ ×ÁÛÕ ÄÕÛÕ. åÓÌÉ ÂÙ Õ ÍÅÎÑ ÂÙÌ ×ÙÂÏÒ, Ñ ÄÕÍÁÀ, ÞÔÏ ÐÒÅÄÐÏÞÔÕ ÃÁÒÁÐÁÀÝÉÊ Ú×ÕË. þÔÏ ÔÁËÏÅ 'MFC'? MFC ÜÔÏ ÓÏËÒÁÝÅÎÉÅ ÏÔ 'Merged From -CURRENT.' ïÎÏ ÉÓÐÏÌØÚÕÅÔÓÑ × ÐÒÏÔÏËÏÌÁÈ ÉÚÍÅÎÅÎÉÊ CVS ÄÌÑ ÏÔÍÅÔËÉ ÔÏÇÏ, ÞÔÏ ÉÚÍÅÎÅÎÉÅ ÂÙÌÏ ÐÅÒÅÎÅÓÅÎÏ × ×ÅÔר STABLE ÉÚ CURRENT. þÔÏ ÏÚÎÁÞÁÅÔ ÓÏËÒÁÝÅÎÉÅ 'BSD'? üÔÏ ÓÏËÒÁÝÅÎÉÅ ÚÎÁÞÉÔ ÞÔÏ-ÔÏ ÎÁ ÓÅËÒÅÔÎÏÍ ÑÚÙËÅ, ËÏÔÏÒÙÊ ÍÏÇÕÔ ÚÎÁÔØ ÔÏÌØËÏ ÐÏÓ×ÑÝ£ÎÎÙÅ. üÔÏ ÎÅÌØÚÑ ÐÅÒÅ×ÅÓÔÉ ÏÄÉÎ Ë ÏÄÎÏÍÕ, ÏÄÎÁËÏ ÄÏÓÔÁÔÏÞÎÏ ÓËÁÚÁÔØ, ÞÔÏ ÐÅÒÅ×ÏÄ Ó BSD - ÜÔÏ ÞÔÏ-ÔÏ ÍÅÖÄÕ 'ëÏÍÁÎÄÁ Formula-1", 'ðÉÎÇ×ÉÎÙ - ÜÔÏ ×ËÕÓÎÙÅ ÐÌÀÛËÉ' É 'íÙ ÐÒÉËÏÌØÎÅÅ, ÞÅÍ Linux.' :-) åÓÌÉ ÓÅÒØ£ÚÎÏ, ÔÏ BSD Ñ×ÌÑÅÔÓÑ ÓÏËÒÁÝÅÎÉÅÍ ÏÔ 'Berkeley Software Distribution', ÎÁÚ×ÁÎÉÑ, ËÏÔÏÒÏÅ ÂÙÌÏ ×ÙÂÒÁÎÏ Berkeley CSRG (Computer Systems Research Group) ÄÌÑ ÉÈ ÄÉÓÔÒÉÂÕÔÉ×Á Unix. óËÏÌØËÏ ÔÒÅÂÕÅÔÓÑ ÒÁÚÒÁÂÏÔÞÉËÏ× FreeBSD, ÞÔÏÂÙ ÓÍÅÎÉÔØ ÌÁÍÐÏÞËÕ? îÅÏÂÈÏÄÉÍÏ ÉÍÅÔØ ÒÏ×ÎÏ ÏÄÎÕ ÔÙÓÑÞÕ ÓÔÏ ÓÅÍØÄÅÓÑÔ Ä×Á ÒÁÚÒÁÂÏÔÞÉËÁ: ä×ÁÄÃÁÔØ ÔÒÉ ÓÏÏÂÝÁÔ × -current Ï ÔÏÍ, ÞÔÏ ÎÅ ÇÏÒÉÔ Ó×ÅÔ; þÅÔÙÒÅ ÎÁÞÎÕÔ ÕÔ×ÅÒÖÄÁÔØ, ÞÔÏ ÜÔÏ ÐÒÏÂÌÅÍÁ ËÏÎÆÉÇÕÒÁÃÉÉ É ÔÁËÉÅ ÓÏÏÂÝÅÎÉÑ ÎÕÖÎÏ ÐÏÓÙÌÁÔØ × -questions; ôÒÏÅ ÏÆÏÒÍÑÔ PR ÐÏ ÜÔÏÍÕ ÐÏ×ÏÄÕ, ÐÒÉÞ£Í ÏÄÎÏ ÉÈ ÎÉÈ ÂÕÄÅÔ ÎÁÐÒÁ×ÌÅÎÏ × doc É ÂÕÄÅÔ ÓÏÄÅÒÖÁÔØ ÔÏÌØËÏ ÓÔÒÏÞËÕ "ÚÄÅÓØ ÔÅÍÎÏ"; ïÄÉÎ ÚÁËÏÍÍÉÔÉÔ ÎÅÏÔÔÅÓÔÉÒÏ×ÁÎÎÕÀ ÌÁÍÐÏÞËÕ, ÞÔÏ ÓÌÏÍÁÅÔ ÐÏÓÔÒÏÅÎÉÅ ÓÉÓÔÅÍÙ, Á ÚÁÔÅÍ ÞÅÒÅÚ ÐÑÔØ ÍÉÎÕÔ ×ÅÒÎ£Ô ×ÓÅ ÎÁÚÁÄ; ÷ÏÓÅÍØ ÐÏÒÕÇÁÀÔÓÑ Ó Á×ÔÏÒÁÍÉ PR ÐÏ ÐÏ×ÏÄÕ ×ËÌÀÞÅÎÉÑ ÐÁÔÞÅÊ × PR; ðÑÔØ ÓÏÏÂÝÁÔ Ï ÔÏÍ, ÞÔÏ ÎÅ ÐÒÏÈÏÄÉÔ ËÏÍÐÉÌÑÃÉÑ ÓÉÓÔÅÍÙ; ôÒÉÄÃÁÔØ ÏÄÉÎ ÞÅÌÏ×ÅË ÏÔ×ÅÔÉÔ, ÞÔÏ Õ ÎÉÈ ×Ó£ ÒÁÂÏÔÁÅÔ É ÎÁ×ÅÒÎÏÅ, ÔÅ ×ÙÐÏÌÎÑÌÉ cvsup × ÎÅÐÏÄÈÏÄÑÝÅÅ ×ÒÅÍÑ; ïÄÉÎ ÐÏÛÌ£Ô ÐÁÔÞ ÄÌÑ ÎÏ×ÏÊ ÌÁÍÐÏÞËÉ × -hackers; ïÄÉÎ ÐÏÖÁÌÕÅÔÓÑ, ÞÔÏ Õ ÎÅÇÏ ÉÍÅÌÉÓØ ÐÁÔÞÉËÉ ÅÝ£ ÔÒÉ ÇÏÄÁ ÎÁÚÁÄ, ÎÏ ËÏÇÄÁ ÏÎ ÐÏÓÌÁÌ ÉÈ × -current, ÏÎÉ ÂÙÌÉ ÐÒÏÉÇÎÏÒÉÒÏ×ÁÎÙ É ÏÎ ÉÍÅÌ ÎÅÕÄÁÞÎÙÊ ÏÐÙÔ ÒÁÂÏÔÙ Ó ÓÉÓÔÅÍÏÊ PR; ËÒÏÍÅ ÔÏÇÏ ÐÒÅÄÌÁÇÁÅÍÁÑ ÌÁÍÐÏÞËÁ ÎÅ ÉÍÅÅÔ ÏÔÒÁÖÁÔÅÌÑ. ôÒÉÄÃÁÔØ ÓÅÍØ ÎÁÞÎÕÔ ËÒÉÞÁÔØ, ÞÔÏ ÌÁÍÐÏÞËÉ ÎÅ ÏÔÎÏÓÑÔÓÑ Ë ÂÁÚÏ×ÏÊ ÓÉÓÔÅÍÅ, ÞÔÏ ËÏÍÍÉÔÔÅÒÙ ÎÅ ÉÍÅÀÔ ÐÒÁ×Á ÄÅÌÁÔØ ÔÁËÉÅ ×ÅÝÉ ÂÅÚ ÏÐÒÏÓÁ ÏÂÛÅÓÔ×ÅÎÎÏÓÔÉ É þôï ÷ïïâýå -CORE äåìáåô ðï üôïíõ ðï÷ïäõ? ä×Å ÓÏÔÎÉ ÎÁÐÉÛÕÔ Ï Ã×ÅÔÅ ×ÅÌÏÓÉÐÅÄÎÙÈ ÆÁÒ; ôÒÏÅ ÓËÁÖÕÔ, ÞÔÏ ÜÔÏÔ ÐÁÔÞ ÎÅ ÓÏÏÔ×ÅÔÓÔ×ÕÅÔ style(9); óÅÍÎÁÄÃÁÔØ ×ÏÚÒÁÚÑÔ, ÞÔÏ ÐÒÅÄÌÁÇÁÅÍÁÑ ÎÏ×ÁÑ ÌÁÍÐÁ ÐÏÄÐÁÄÁÅÔ ÐÏÄ ÌÉÃÅÎÚÉÀ GPL; ðÑÔØÓÏÔ ×ÏÓÅÍØÄÅÓÑÔ ÛÅÓÔØ ÒÁÚÄÕÀÔ ÆÌÜÊÍ ÐÏ ÐÏ×ÏÄÕ ÓÒÁ×ÎÅÎÉÑ ÌÉÃÅÎÚÉÊ GPL, BSD, MIT, NPL É ÌÉÞÎÙÈ ÍÎÅÎÉÊ Ï ÎÅÉÚ×ÅÓÔÎÙÈ ÏÓÎÏ×ÁÔÅÌÅÊ FSF; óÅÍÅÒÏ ÐÏÛÌÀÔ ÒÁÚÌÉÞÎÙÅ ÞÁÓÔÉ ÜÔÉÈ ÏÂÓÕÖÄÅÎÉÊ × -chat É -advocacy; ïÄÉÎ ÚÁËÏÍÍÉÔÉÔ ÐÒÅÄÌÁÇÁÅÍÕÀ ÌÁÍÐÕ, ÈÏÔÑ ÏÎÁ Ó×ÅÔÉÔ ÈÕÖÅ, ÞÅÍ ÓÔÁÒÁÑ; ä×ÏÅ ÏÔËÁÔÑÔ ÜÔÉ ÉÚÍÅÎÅÎÉÑ Ó ÕÖÁÓÎÏÊ ÒÕÇÁÎØÀ × ÖÕÒÎÁÌÅ ËÏÍÍÉÔÁ Ï ÔÏÍ, ÞÔÏ ÌÕÞÛÅ FreeBSD ÂÕÄÅÔ ÓÉÄÅÔØ × ÔÅÍÎÏÔÅ, ÞÅÍ Ó ÔÕÓËÌÏÊ ÌÁÍÐÏÊ. óÏÒÏË ÛÅÓÔØ ÇÒÏÍËÏ ×ÏÓÐÒÏÔÉ×ÑÔÓÑ ÜÔÏÍÕ ÉÚÍÅÎÅÎÉÀ É ÐÏÔÒÕÂÕÀÔ ÏÂßÑÓÎÅÎÉÊ ÏÔ -core; ïÄÉÎÎÁÄÃÁÔØ ÐÏÐÒÏÓÑÔ ÕÍÅÎØÛÉÔØ ÒÁÚÍÅÒ ÌÁÍÐÏÞËÉ, ÞÔÏÂÙ ÏÎÁ ÐÏÄÏÛÌÁ Ë ÉÈ ôÁÍÁÇÏÞÉ ÎÁ ÓÌÕÞÁÊ, ÅÓÌÉ ÍÙ ËÏÇÄÁ-ÎÉÂÕÄØ ÓÏÂÅÒ£ÍÓÑ ÐÅÒÅÎÏÓÉÔØ FreeBSD ÎÁ ÜÔÕ ÐÌÁÔÆÏÒÍÕ; óÅÍØÄÅÓÑÔ ÔÒÉ ÚÁÑ×ÑÔ Ï SNR × -hackers É -chat É × ÚÎÁË ÐÒÏÔÅÓÔÁ ÏÔÐÉÛÕÔÓÑ; ôÒÉÎÁÄÃÁÔØ ÐÏÛÌÀÔ ÐÉÓØÍÁ "unsubscribe", "How do I unsubscribe?", É "Please remove me from the list" Ó ÏÂÙÞÎÏÊ ÐÏÄÐÉÓØÀ; ïÄÉÎ ÚÁËÏÍÍÉÔÉÔ ÒÁÂÏÔÁÀÝÕÀ ÌÁÍÐÏÞËÕ × ÔÏ ×ÒÅÍÑ, ËÁË ×ÓÅ ÂÕÄÕÔ ÓÌÉÛËÏÍ ÚÁÎÑÔÙ ÒÕÇÁÎØÀ, ÞÔÏÂÙ ÜÔÏ ÚÁÍÅÔÉÔØ; ôÒÉÄÃÁÔØ ÏÄÉÎ ÞÅÌÏ×ÅË ÎÁÐÉÛÅÔ, ÞÔÏ ÎÏ×ÁÑ ÌÁÍÐÏÞËÁ ÂÕÄÅÔ Ó×ÅÔÉÔØ ÎÁ 0.364% ÑÒÞÅ, ÅÓÌÉ Å£ ÏÔËÏÍÐÉÌÉÒÏ×ÁÔØ Ó ÐÏÍÏÝØÀ TenDRA (ÈÏÔÑ ÐÒÉ ÜÔÏÍ ÏÎÁ ÐÒÉÏÂÒÅÔ£Ô ÆÏÒÍÕ ËÕÂÁ) É ÞÔÏ FreeBSD ÄÏÌÖÎÁ ÐÅÒÅÊÔÉ ÎÁ ËÏÍÐÉÌÑÔÏÒ TenDRA, Á ÎÅ ÎÁ EGCS; ïÄÉÎ ÚÁÍÅÔÉÔ, ÞÔÏ Õ ÌÁÍÐÏÞËÉ ÏÔÓÕÔÓÔ×ÕÅÔ ÃÏËÏÌØ; äÅ×ÑÔØ (×ËÌÀÞÁÑ Á×ÔÏÒÏ× PR) ÓÐÒÏÓÑÔ "ÞÔÏ ÔÁËÏÅ MFC?"; óÐÕÓÔÑ Ä×Å ÎÅÄÅÌÉ ÐÏÓÌÅ ÓÍÅÎÙ ÌÁÍÐÏÞËÉ ÐÑÔØÄÅÓÑÔ ÓÅÍØ ÞÅÌÏ×ÅË ÓÏÏÂÝÁÔ Ï ÔÏÍ, ÞÔÏ Ó×ÅÔÁ ×Ó£ ÒÁ×ÎÏ ÎÅÔ. îÉË ëÌÜÊÔÏÎ (Nik Clayton) ÄÏÂÁ×ÉÌ: ñ ÓÉÌØÎÏ ÓÍÅÑÌÓÑ ÎÁÄ ×ÓÅÍ ÜÔÉÍ. é ÔÏÇÄÁ Ñ ÐÏÄÕÍÁÌ, "ðÏÓÔÏÊÔÅ-ËÁ, ÎÁÊÄ£ÔÓÑ ÌÉ ËÔÏ-ÎÉÂÕÄØ, ÞÔÏÂÙ ÚÁÄÏËÕÍÅÎÔÉÒÏ×ÁÔØ ÜÔÏ ÇÄÅ-ÎÉÂÕÄØ?" é ÎÁ ÍÅÎÑ ÓÎÉÚÏÛÌÏ ÏÚÁÒÅÎÉÅ :-) ôÏÌØËÏ ÄÌÑ ÓÅÒØ£ÚÎÙÈ FreeBSD ÈÁËÅÒÏ× þÔÏ ÔÁËÏÅ SNAP É RELEASE? ÷ ÄÅÒÅ×Å CVS ÓÅÊÞÁÓ ÎÁÈÏÄÑÔÓÑ ÔÒÉ ÁËÔÉ×ÎÏ/ÐÏÌÕÁËÔÉ×ÎÏ ÒÁÚ×É×ÁÀÝÉÈÓÑ ×ÅÔËÉ FreeBSD: RELENG_2_2 AKA 2.2-stable AKA "×ÅÔר 2.2" RELENG_3 AKA 3.x-stable AKA "×ÅÔר 3.0" HEAD AKA AKA 4.0-current HEAD - ÜÔÏ ÎÅ ÒÅÁÌØÎÙÊ ÔÅÇ ×ÅÔËÉ, ËÁË ÄÒÕÇÉÅ Ä×Á, Á ÐÒÏÓÔÏ ÓÉÍ×ÏÌØÎÁÑ ËÏÎÓÔÁÎÔÁ ÄÌÑ ÏÂÏÚÎÁÞÅÎÉÑ "ÔÅËÕÝÅÇÏ, ÎÅ ×ÅÔ×ÑÝÅÇÏÓÑ, ÎÁÈÏÄÑÝÅÇÏÓÑ × ÒÁÚÒÁÂÏÔËÅ ÄÅÒÅ×Á", ÔÏ ÅÓÔØ . îÁ ÄÁÎÎÙÊ ÍÏÍÅÎÔ Ñ×ÌÑÅÔÓÑ ÎÁÈÏÄÑÝÉÍÓÑ × ÒÁÚÒÁÂÏÔËÅ ÄÅÒÅ×ÏÍ 4.0, ×ÅÔËÁ 3.0-stable, RELENG_3, ÏÔÄÅÌÉÌÁÓØ ÏÔ × ÑÎ×ÁÒÅ 1999. ÷ÅÔר 2.2-stable, RELENG_2_2, ÏÔÄÅÌÉÌÁÓØ ÏÔ -current × ÎÏÑÂÒÅ 1996. ÷ÅÔר 2.1-stable, RELENG_2_1_0, ÏÔÄÅÌÉÌÁÓØ ÏÔ -current × ÓÅÎÔÑÂÒÅ 1994. òÁÚ×ÉÔÉÅ ÜÔÏÊ ×ÅÔ×É ÐÏÌÎÏÓÔØÀ ÐÒÅËÒÁÝÅÎÏ. ëÁË ÓÁÍÉÍ ÓÄÅÌÁÔØ ÒÅÌÉÚ? þÔÏÂÙ ÓÄÅÌÁÔØ ÒÅÌÉÚ, ×ÁÍ ÎÕÖÎÏ ÉÍÅÔØ ÔÒÉ ×ÅÝÉ: ÷Ï-ÐÅÒ×ÙÈ, ×ÁÍ ÎÕÖÎÏ ÒÁÂÏÔÁÔØ Ó ÑÄÒÏÍ, ×ËÌÀÞÁÀÝÉÍ ÄÒÁÊ×ÅÒ vn. äÏÂÁרÔÅ ÅÇÏ × ÆÁÊÌ ËÏÎÆÉÇÕÒÁÃÉÉ ÑÄÒÁ É ÏÔËÏÍÐÉÌÉÒÕÊÔÅ ÎÏ×ÏÅ ÑÄÒÏ: pseudo-device vn #Vnode driver (turns a file into a device) ÷Ï-×ÔÏÒÙÈ, ×ÁÍ ÎÕÖÎÏ ÉÍÅÔØ ÎÁ ÄÉÓËÅ ÐÏÌÎÏÅ ÄÅÒÅ×Ï CVS. þÔÏÂÙ ÄÏÂÉÔØÓÑ ÜÔÏÇÏ, ×Ù ÍÏÖÅÔÅ ÉÓÐÏÌØÚÏ×ÁÔØ CVSUP, ÕËÁÚÁ× × ÆÁÊÌÅ supfile × ËÁÞÅÓÔ×Å ÉÍÅÎÉ ÒÅÌÉÚÁ cvs É ÕÄÁÌÉ× ×ÓÅ ÐÏÌÑ Ó ÔÅÇÁÍÉ É ÄÁÔÁÍÉ: *default prefix=/home/ncvs *default base=/a *default host=cvsup.FreeBSD.org *default release=cvs *default delete compress use-rel-suffix ## Main Source Tree src-all src-eBones src-secure # Other stuff ports-all www doc-all ðÏÓÌÅ ÜÔÏÇÏ ÚÁÐÕÓÔÉÔÅ cvsup -g supfile ÄÌÑ ×ÙËÁÞËÉ ×ÓÅÈ ÎÕÖÎÙÈ ÉÓÈÏÄÎÙÈ ÔÅËÓÔÏ× ÎÁ ×ÁÛ ËÏÍÐØÀÔÅÒ... îÁËÏÎÅÃ, ×ÁÍ ÎÕÖÎÏ Ó×ÏÂÏÄÎÏÅ ÍÅÓÔÏ ÄÌÑ ÐÏÓÔÒÏÅÎÉÑ ÓÉÓÔÅÍÙ. äÏÐÕÓÔÉÍ, ÞÔÏ Ó×ÏÂÏÄÎÏÅ ÍÅÓÔÏ ÅÓÔØ × ËÁÔÁÌÏÇÅ /some/big/filesystem É, ËÁË × ÐÒÉÍÅÒÅ ×ÙÛÅ, ×Ù ÐÏÍÅÓÔÉÌÉ ÄÅÒÅ×Ï CVS × ËÁÔÁÌÏÇ /home/ncvs: setenv CVSROOT /home/ncvs # or export CVSROOT=/home/ncvs cd /usr/src/release make release BUILDNAME=3.0-MY-SNAP CHROOTDIR=/some/big/filesystem/release ðÏÌÎÙÊ ÒÅÌÉÚ ÂÕÄÅÔ ÓÔÒÏÉÔØÓÑ × ËÁÔÁÌÏÇÅ /some/big/filesystem/release É ÐÏ ÏËÏÎÞÁÎÉÉ ÜÔÏÇÏ ÐÒÏÃÅÓÓÁ ÄÉÓÔÒÉÂÕÔÉ×, ÇÏÔÏ×ÙÊ Ë ÐÏÍÅÝÅÎÉÀ ÎÁ FTP-ÓÅÒ×ÅÒ, ÂÕÄÅÔ ÎÁÈÏÄÉÔØÓÑ × ËÁÔÁÌÏÇÅ /some/big/filesystem/release/R/ftp. åÓÌÉ ×Ù ÚÁÈÏÔÉÔÅ ÐÏÓÔÒÏÉÔØ SNAP ÄÒÕÇÏÊ ×ÅÔËÉ, ÎÅ -current, ÔÏ ÍÏÖÅÔÅ ÕËÁÚÁÔØ RELEASETAG=SOMETAG × ËÏÍÁÎÄÎÏÊ ÓÔÒÏËÅ make release ×ÙÛÅ, ÎÁÐÒÉÍÅÒ, ÐÒÉ ÕËÁÚÁÎÉÉ RELEASETAG=RELENG_2_2, ÂÕÄÅÔ ÓÔÒÏÉÔØÓÑ ÓÁÍÙÊ Ó×ÅÖÉÊ ÓÎÜÐÛÏÔ ×ÅÔËÉ 2.2-STABLE. ëÁË ÓÏÚÄÁÔØ ÉÎÓÔÁÌÌÑÃÉÏÎÎÙÅ ÄÉÓËÉ? ÷ÅÓØ ÐÒÏÃÅÓÓ ÓÏÚÄÁÎÉÑ ÉÎÓÔÁÌÌÑÃÉÏÎÎÙÈ ÄÉÓËÏ× É ÄÉÓÔÒÉÂÕÔÉ×Ï× ÉÓÈÏÄÎÙÈ ÔÅËÓÔÏ× É ÂÉÎÁÒÎÉËÏ× Á×ÔÏÍÁÔÉÚÉÒÏ×ÁÎ × ÆÁÊÌÅ /usr/src/release/Makefile. éÎÆÏÒÍÁÃÉÉ, × Î£Í ÓÏÄÅÒÖÁÝÅÊÓÑ, ÄÏÌÖÎÏ ÂÙÔØ ÄÏÓÔÁÔÏÞÎÏ, ÞÔÏÂÙ ÎÁÞÁÔØ. ïÄÎÁËÏ, ÄÏÌÖÎÙ ×ÁÓ ÐÒÅÄÕÐÒÅÄÉÔØ, ÞÔÏ ÜÔÏÔ ÐÒÏÃÅÓÓ ×ËÌÀÞÁÅÔ × ÓÅÂÑ ×ÙÐÏÌÎÅÎÉÅ ``make world'' É ÐÏÜÔÏÍÕ ÚÁÎÉÍÁÅÔ ÍÎÏÇÏ ×ÒÅÍÅÎÉ É ÄÉÓËÏ×ÏÇÏ ÐÒÏÓÔÒÁÎÓÔ×Á. ðÏ ËÏÍÁÎÄÅ ``make world'' ÂÙÌÉ ÐÅÒÅÕÓÔÁÎÏ×ÌÅÎÙ ×ÓÅ ÐÒÏÇÒÁÍÍÙ. äÁ, ÔÁË É ÄÏÌÖÎÏ ÂÙÔØ; ËÁË ÇÏ×ÏÒÉÔ ÎÁÚ×ÁÎÉÅ ÜÔÏÊ ËÏÍÁÎÄÙ, ``make world'' ×ÙÐÏÌÎÑÅÔ ÐÏÓÔÒÏÅÎÉÅ ×ÓÅÈ ÓÉÓÔÅÍÎÙÈ ÆÁÊÌÏ× Ó ÎÕÌÑ, ÔÁË ÞÔÏ × ÉÔÏÇÅ ÍÏÖÅÔÅ ÂÙÔØ Õ×ÅÒÅÎÙ, ÞÔÏ ÐÏÌÕÞÉÔÅ ÞÉÓÔÕÀ ÒÁÂÏÞÕÀ ÓÉÓÔÅÍÕ (×ÏÔ ÐÏÞÅÍÕ ÜÔÏ ÚÁÎÉÍÁÅÔ ÓÔÏÌØËÏ ×ÒÅÍÅÎÉ). åÓÌÉ × ÍÏÍÅÎÔ ÚÁÐÕÓËÁ ËÏÍÁÎÄ ``make world'' ÉÌÉ ``make install'' ÏÐÒÅÄÅÌÅÎÁ ÐÅÒÅÍÅÎÎÁÑ ÏËÒÕÖÅÎÉÑ DESTDIR, ÔÏ ×ÎÏר ÓÏÚÄÁ×ÁÅÍÙÅ ÆÁÊÌÙ ÂÕÄÕÔ ÐÏÍÅÝÅÎÙ × ÄÅÒÅ×Ï ËÁÔÁÌÏÇÏ×. ÉÄÅÎÔÉÞÎÏÅ ÓÕÝÅÓÔ×ÕÀÝÅÍÕ, Ó ËÏÒÎÅÍ, ÒÁÓÐÏÌÁÇÁÀÝÉÍÓÑ × ${DESTDIR}. ïÄÎÁËÏ ÎÅËÏÔÏÒÙÅ ÓÌÕÞÁÊÎÙÅ ËÏÍÂÉÎÁÃÉÉ ÍÏÄÉÆÉËÁÃÉÊ ÓÏ×ÍÅÓÔÎÏ ÉÓÐÏÌØÚÕÅÍÙÈ ÂÉÂÌÉÏÔÅË É ×ÅÒÓÉÊ ËÏÍÐÉÌÉÒÕÅÍÙÈ ÐÒÏÇÒÁÍÍ ÐÒÉ ÉÓÐÏÌÎÅÎÉÉ ËÏÍÁÎÄÙ ``make world'', ÍÏÖÅÔ ÜÔÏÍÕ ÐÏÍÅÛÁÔØ. ðÒÉ ÚÁÇÒÕÚËÅ ÓÉÓÔÅÍÙ ×ÙÄÁ£ÔÓÑ ÓÏÏÂÝÅÎÉÅ ``(bus speed defaulted)''. áÄÁÐÔÅÒÙ SCSI Adaptec 1542 ÐÏÚ×ÏÌÑÀÔ ÐÒÏÇÒÁÍÍÎÏ ÉÚÍÅÎÑÔØ ÓËÏÒÏÓÔØ ÄÏÓÔÕÐÁ Ë ÛÉÎÅ. ðÒÅÄÙÄÕÝÉÅ ×ÅÒÓÉÉ ÄÒÁÊ×ÅÒÁ 1542 ÐÙÔÁÌÉÓØ ÏÐÒÅÄÅÌÉÔØ ÍÁËÓÉÍÁÌØÎÏ ×ÏÚÍÏÖÎÕÀ ÓËÏÒÏÓÔØ ÒÁÂÏÔÙ É ÕÓÔÁÎÏ×ÉÔØ ÜÔÏ ÚÎÁÞÅÎÉÅ. íÙ ÏÂÎÁÒÕÖÉÌÉ, ÞÔÏ Õ ÎÅËÏÔÏÒÙÈ ÐÏÌØÚÏ×ÁÔÅÌÅÊ ÜÔÏ ÐÒÉ×ÏÄÉÌÏ Ë ÎÁÒÕÛÅÎÉÀ ÒÁÂÏÔÏÓÐÏÓÏÂÎÏÓÔÉ ÓÉÓÔÅÍÙ, ÐÏÜÔÏÍÕ ÜÔÁ ×ÏÚÍÏÖÎÏÓÔØ ÓÅÊÞÁÓ ×ÙÎÅÓÅÎÁ × ÐÁÒÁÍÅÔÒ ËÏÎÆÉÇÕÒÁÃÉÉ ÑÄÒÁ ``TUNE_1542''. éÓÐÏÌØÚÏ×ÁÎÉÅ ÜÔÏÊ ÏÐÃÉÉ ÎÁ ÔÅÈ ÓÉÓÔÅÍÁÈ, ÇÄÅ ÏÎÁ ÒÁÂÏÔÁÅÔ, ÍÏÖÅÔ ÐÒÉ×ÅÓÔÉ Ë ÕÓËÏÒÅÎÉÀ ÄÏÓÔÕÐÁ Ë ÄÉÓËÁÍ, Á ÔÁÍ, ÇÄÅ ÜÔÏ ÎÅ ÒÁÂÏÔÁÅÔ, ÍÏÖÅÔ ÐÒÉ×ÅÓÔÉ Ë ÐÏÔÅÒÅ ÄÁÎÎÙÈ. íÏÖÎÏ ÌÉ ÒÁÂÏÔÁÔØ Ó current ÐÒÉ ÏÇÒÁÎÉÞÅÎÎÏÍ ÄÏÓÔÕÐÅ × Internet? äÁ, ÜÔÏ ÍÏÖÎÏ ÄÅÌÁÔØ ÂÅÚ ÓËÁÞÉ×ÁÎÉÑ ÐÏÌÎÏÇÏ ÄÅÒÅ×Á ÉÓÈÏÄÎÙÈ ÔÅËÓÔÏ× Ó ÐÏÍÏÝØÀ ÓÉÓÔÅÍÙ CTM. ëÁË ×Ù ÒÁÚÄÅÌÑÅÔÅ ÄÉÓÔÒÉÂÕÔÉ× ÎÁ ÆÁÊÌÙ ÐÏ 240ë? ëÏÍÁÎÄÁ split × ÓÏ×ÒÅÍÅÎÎÙÈ BSD-ÓÉÓÔÅÍÁÈ ÉÍÅÅÔ ÏÐÃÉÀ ``'', ÐÏÚ×ÏÌÑÀÝÕÀ ÒÁÚÒÅÚÁÔØ ÆÁÊÌÙ ÎÁ ÞÁÓÔÉ Ó ÔÏÞÎÏÓÔØÀ ÄÏ ÂÁÊÔÁ. ÷ÏÔ ÐÒÉÍÅÒ ÉÚ ÆÁÊÌÁ /usr/src/Makefile. bin-tarball: (cd ${DISTDIR}; \ tar cf - . \ gzip --no-name -9 -c | \ split -b 240640 - \ ${RELEASEDIR}/tarballs/bindist/bin_tgz.) ñ ÎÁÐÉÓÁÌ ÎÅËÏÔÏÒÏÅ ÄÏÂÁ×ÌÅÎÉÅ Ë ÑÄÒÕ, ËÏÍÕ ÅÇÏ ÐÏÓÌÁÔØ? ïÂÒÁÔÉÔÅÓØ Ë ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÅÍÕ ÒÁÚÄÅÌÕ òÕËÏ×ÏÄÓÔ×Á, × ËÏÔÏÒÏÍ ÏÐÉÓÁÎÏ, ËÁË ÜÔÏ ÓÄÅÌÁÔØ. é ÓÐÁÓÉÂÏ ×ÁÍ ÚÁ ×ÁÛÉ ÕÓÉÌÉÑ! ëÁË ÒÁÓÐÏÚÎÁÀÔÓÑ É ÉÎÉÃÉÁÌÉÚÉÒÕÀÔÓÑ ÁÄÁÐÔÅÒÙ ISA Plug N Play? ïÔ: æÒÜÎËÁ äÕÒÄÙ IV (Frank Durda IV) åÓÌÉ ÒÁÓÓÍÁÔÒÉ×ÁÔØ ÎÁ ÓÁÍÏÍ ÎÉÚËÏÍ ÕÒÏ×ÎÅ, ÔÏ ÓÕÝÅÓÔ×ÕÅÔ ÎÅÓËÏÌØËÏ ÐÏÒÔÏ× ××ÏÄÁ/×Ù×ÏÄÁ, × ËÏÔÏÒÙÅ ÄÏÌÖÎÙ ×Ù×ÏÄÉÔØ ÉÎÆÏÒÍÁÃÉÀ ×ÓÅ ÁÄÁÐÔÅÒÙ PnP, ËÏÇÄÁ ËÏÍÐØÀÔÅÒ ÐÙÔÁÅÔÓÑ ×ÙÐÏÌÎÉÔØ ÚÁÐÒÏÓ Ï ÎÁÌÉÞÉÉ ÕÓÔÁÎÏ×ÌÅÎÎÙÈ ÁÄÁÐÔÅÒÏ×. ôÁË ÞÔÏ, ËÏÇÄÁ ÚÁÐÕÓËÁÅÔÓÑ ÐÒÏÃÅÄÕÒÁ ÏÐÒÅÄÅÌÅÎÉÑ ÁÄÁÐÔÅÒÏ× PnP, ÏÎÁ ×ÙÐÏÌÎÑÅÔ ÚÁÐÒÏÓ Ï ÎÁÌÉÞÉÉ ËÁËÉÈ-ÌÉÂÏ ÁÄÁÐÔÅÒÏ× PnP, Á ×ÓÅ ÔÁËÉÅ ÁÄÁÐÔÅÒÙ ×ÙÄÁÀÔ Ó×ÏÊ ÎÏÍÅÒ ÍÏÄÅÌÉ ÐÒÉ ÞÔÅÎÉÉ ÔÏÇÏ ÖÅ ÐÏÒÔÁ ××ÏÄÁ/×Ù×ÏÄÁ, ÐÏÜÔÏÍÕ ÐÒÏÃÅÄÕÒÁ ÏÐÒÅÄÅÌÅÎÉÑ ÐÏÌÕÞÉÔ ÏÔ×ÅÔ ÎÁ Ó×ÏÊ ÚÁÐÒÏÓ, ÓÏÓÔÏÑÝÉÊ ÉÚ ÌÏÇÉÞÅÓËÉ ÎÁÌÏÖÅÎÎÙÈ ÎÏÍÅÒÏ× ÍÏÄÅÌÅÊ, ÉÎÔÅÒÐÒÅÔÉÒÕÅÍÙÊ ËÁË ``ÄÁ''. ÷ ÜÔÏÍ ÏÔ×ÅÔÅ ÐÏ ËÒÁÊÎÅÊ ÍÅÒÅ ÏÄÉÎ ÂÉÔ ÂÕÄÅÔ ÕÓÔÁÎÏ×ÌÅÎ × ÅÄÉÎÉÃÕ. úÁÔÅÍ ËÏÄ ÏÐÒÅÄÅÌÅÎÉÑ ÁÄÁÐÔÅÒÏ× ÍÏÖÅÔ ``×ÙËÌÀÞÁÔØ'' ÁÄÁÐÔÅÒÙ Ó ID (ÎÁÚÎÁÞÁÅÍÙÍÉ Microsoft/Intel), ÍÅÎØÛÉÍÉ, ÞÅÍ X. ðÏÔÏÍ ÓÌÅÄÕÅÔ ÐÏÐÙÔËÁ ÏÐÒÅÄÅÌÉÔØ, ÏÓÔÁÌÉÓØ ÌÉ ÅÝ£ ÁÄÁÐÔÅÒÙ, ÏÔ×ÅÞÁÀÝÉÅ ÎÁ ÚÁÐÒÏÓ. åÓÌÉ ÏÔ×ÅÔ ``0'', ÔÏ ÁÄÁÐÔÅÒÏ× Ó ID, ÂÏÌØÛÉÍÉ ÞÅÍ X, ÎÅÔ. ðÏÓÌÅ ÜÔÏÇÏ ÄÅÌÁÅÔÓÑ ÐÏÐÙÔËÁ ÏÐÒÅÄÅÌÉÔØ ÎÁÌÉÞÉÅ ÁÄÁÐÔÅÒÏ× Ó ÎÏÍÅÒÁÍÉ, ÍÅÎØÛÉÍÉ ÞÅÍ ``X''. åÓÌÉ ÏÎÉ ÅÓÔØ, ÔÏ ÓÔÁÎÏ×ÉÔÓÑ ÉÚ×ÅÓÔÎÏ, ÞÔÏ ÅÓÔØ ÁÄÁÐÔÅÒÙ Ó ÎÏÍÅÒÁÍÉ, ÍÅÎØÛÉÍÉ ÞÅÍ X. ôÏÇÄÁ ÐÒÏÉÓÈÏÄÉÔ ÚÁÐÒÏÓ ÁÄÁÐÔÅÒÁÍ, ÂÏÌØÛÉÍ ÞÅÍ X-(limit-4), ÎÁ ×ÙËÌÀÞÅÎÉÅ. úÁÐÒÏÓ ÐÏ×ÔÏÒÑÅÔÓÑ. ðÒÉÍÅÎÉ× ÜÔÏÔ ÍÅÔÏÄ ÐÏÌÕÄ×ÏÉÞÎÏÇÏ ÐÏÉÓËÁ ÇÒÁÎÉà ÒÁÓÐÏÌÏÖÅÎÉÑ ID ÄÏÓÔÁÔÏÞÎÏÅ ËÏÌÉÞÅÓÔ×Ï ÒÁÚ, ËÏÄ ÉÄÅÎÔÉÆÉËÁÃÉÉ ÎÁÊÄ£Ô ×ÓÅ ÁÄÁÐÔÅÒÙ PnP, ÕÓÔÁÎÏ×ÌÅÎÎÙÅ × ÄÁÎÎÏÊ ÍÁÛÉÎÅ ÚÁ ÞÉÓÌÏ ÉÔÅÒÁÃÉÊ, ÇÏÒÁÚÄÏ ÍÅÎØÛÅÅ, ÞÅÍ ÍÏÖÅÔ ÚÁÎÑÔØ ÐÅÒÅÂÏÒ 2^64 ×ÏÚÍÏÖÎÙÈ ×ÁÒÉÁÎÔÏ× ID. ID ÐÒÅÄÓÔÁ×ÌÑÅÔ ÓÏÂÏÊ Ä×Á 32-ÒÁÚÒÑÄÎÙÅ ÞÉÓÌÁ (×ÓÅÇÏ ÉÈ 2ˆ64) + 8 ÂÉÔ ËÏÎÔÒÏÌØÎÏÊ ÓÕÍÍÙ. ðÅÒ×ÙÅ 32 ÂÉÔÁ Ñ×ÌÑÀÔÓÑ ÉÄÅÎÔÉÆÉËÁÔÏÒÏÍ ÐÒÏÉÚ×ÏÄÉÔÅÌÑ. ïÎÉ ÎÉËÏÇÄÁ ÎÅ ÓÏÏÂÝÁÀÔÓÑ, ÏÄÎÁËÏ ÞÁÓÔÏ ÂÙ×ÁÅÔ, ÞÔÏ ÒÁÚÌÉÞÎÙÅ ÔÉÐÙ ÁÄÁÐÔÅÒÏ× ÏÔ ÏÄÎÏÇÏ É ÔÏÇÏ ÖÅ ÐÒÏÉÚ×ÏÄÉÔÅÌÑ ÉÍÅÀÔ ÒÁÚÌÉÞÎÙÅ 32-ÂÉÔÎÙÅ ÚÎÁÞÅÎÉÑ ÉÄÅÎÔÉÆÉËÁÔÏÒÁ ÐÒÏÉÚ×ÏÄÉÔÅÌÑ. îÅÏÂÈÏÄÉÍÏÓÔØ × 32 ÒÁÚÒÑÄÁÈ ÔÏÌØËÏ ÄÌÑ ÚÁÄÁÎÉÑ ÐÒÏÉÚ×ÏÄÉÔÅÌÑ ÁÄÁÐÔÅÒÁ ×ÙÇÌÑÄÉÔ ÎÅÓËÏÌØËÏ ÉÚÌÉÛÎÉÍ. ïÓÔÁ×ÛÉÅÓÑ 32 ÂÉÔÁ Ñ×ÌÑÀÔÓÑ ÓÅÒÉÊÎÙÍ ÎÏÍÅÒÏÍ, ethernet-ÁÄÒÅÓÏÍ, ÞÅÍ-ÌÉÂÏ, ÄÅÌÁÀÝÉÍ ÜÔÏÔ ÁÄÁÐÔÅÒ ÕÎÉËÁÌØÎÙÍ. ðÒÏÉÚ×ÏÄÉÔÅÌØ ÎÅ ÄÏÌÖÅÎ ×ÙÐÕÓËÁÔØ ÄÒÕÇÉÈ ÁÄÁÐÔÅÒÏ×, ÉÍÅÀÝÉÈ ÔÏ ÖÅ ÓÁÍÏÅ ÚÎÁÞÅÎÉÅ ÜÔÉÈ ÂÉÔÏ×, ÅÓÌÉ, ËÏÎÅÞÎÏ, Õ ÎÉÈ ÎÅ ÒÁÚÎÙÅ ÉÄÅÎÔÉÆÉËÁÔÏÒÙ ÐÒÏÉÚ×ÏÄÉÔÅÌÑ. ôÁËÉÍ ÏÂÒÁÚÏÍ, ×Ù ÍÏÖÅÔÅ ÉÍÅÔØ ÎÅÓËÏÌØËÏ ÁÄÁÐÔÅÒÏ× ÏÄÉÎÁËÏ×ÏÇÏ ÔÉÐÁ, ÎÏ Ó ÒÁÚÌÉÞÎÙÍÉ 64-ÒÁÚÒÑÄÎÙÍÉ ÎÏÍÅÒÁÍÉ. çÒÕÐÐÙ ÐÏ 32 ÂÉÔÁ ÎÅ ÂÏÇÕÔ ÂÙÔØ ÎÕÌÅ×ÙÍÉ. üÔÏ ÐÏÚ×ÏÌÑÅÔ ÐÒÉ ÌÏÇÉÞÅÓËÏÍ ÏÂßÅÄÉÎÅÎÉÉ OR ÉÈ ÎÏÍÅÒÏ× ÐÏÌÕÞÁÔØ ÎÅÎÕÌÅ×ÏÅ ÚÎÁÞÅÎÉÅ ×Ï ×ÒÅÍÑ ÎÁÞÁÌØÎÏÇÏ ÐÏÉÓËÁ ÁÄÁÐÔÅÒÏ×. ëÁË ÔÏÌØËÏ ÓÉÓÔÅÍÁ ÏÐÒÅÄÅÌÉÌÁ ID ×ÓÅÈ ÁÄÁÐÔÅÒÏ×, ÏÎÁ ÁËÔÉ×ÉÚÉÒÕÅÔ ËÁÖÄÙÊ ÁÄÁÐÔÅÒ, ÐÏ ÏÄÎÏÍÕ ÚÁ ÒÁÚ (ÞÅÒÅÚ ÔÅ ÖÅ ÐÏÒÔÙ ××ÏÄÁ/×Ù×ÏÄÁ), É ÏÐÒÅÄÅÌÑÅÔ, ËÁËÉÅ ÒÅÓÕÒÓÙ ÔÒÅÂÕÀÔÓÑ ÄÁÎÎÏÍÕ ÁÄÁÐÔÅÒÕ, ËÁËÉÅ ×ÏÚÍÏÖÎÙÅ ÐÒÅÒÙ×ÁÎÉÑ ÄÏÓÔÕÐÎÙ ÉÔÄ. óËÁÎÉÒÏ×ÁÎÉÅ É ÓÂÏÒ ÉÎÆÏÒÍÁÃÉÉ ÐÒÏÉÓÈÏÄÉÔ ÐÏ ×ÓÅÍ ÁÄÁÐÔÅÒÁÍ. üÔÁ ÉÎÆÏÒÍÁÃÉÑ ÓÏÏÔÎÏÓÉÔÓÑ Ó ÓÏÄÅÒÖÁÝÅÊÓÑ × ÆÁÊÌÁÈ ECU ÎÁ ÄÉÓËÅ ÉÌÉ × MLB BIOS. ðÏÄÄÅÒÖËÁ PnP ÉÚ ECU É BIOS ÄÌÑ ÁÐÐÁÒÁÔÕÒÙ ÎÁ MLB ÏÂÙÞÎÏ ÉÍÅÅÔ ÓÉÎÔÅÔÉÞÅÓËÉÊ ÈÁÒÁËÔÅÒ, É ÐÅÒÉÆÅÒÉÑ ÎÅ ×ÙÐÏÌÎÑÅÔ ÐÏÌÎÏÓÔØÀ ÐÏÃÅÄÕÒÕ ÎÁÓÔÏÑÝÅÇÏ PnP. ïÄÎÁËÏ, ÉÓÐÏÌØÚÕÑ BIOS É ÉÎÆÏÒÍÁÃÉÀ ÉÚ ECU, ÐÒÏÃÅÄÕÒÁ ÉÎÉÃÉÁÌÉÚÁÃÉÉ ÍÏÖÅÔ ÏÂÎÁÒÕÖÉÔØ ÕÓÔÒÏÊÓÔ×Á PnP, ËÏÔÏÒÙÅ ÎÅ ÍÏÇÕÔ ÂÙÔØ ÎÁÊÄÅÎÙ ÄÒÕÇÉÍ ÓÐÏÓÏÂÏÍ. úÁÔÅÍ ÕÓÔÒÏÊÓÔ×Á PnP ÏÐÒÁÛÉ×ÁÀÔÓÑ ÅÝ£ ÒÁÚ ÄÌÑ ÎÁÚÎÁÞÅÎÉÑ ÉÍ ÐÏÒÔÏ× ××ÏÄÁ/×Ù×ÏÄÁ, DMA, IRQ É ÁÄÒÅÓÏ× ÏÔÏÂÒÁÖÁÅÍÏÊ ÐÁÍÑÔÉ. ôÅÐÅÒØ ÕÓÔÒÏÊÓÔ×Á ÄÏÌÖÎÙ ÉÍÅÔØ ÉÍÅÎÎÏ ÔÁËÉÅ ÎÁÓÔÒÏÊËÉ É ÏÎÉ ÄÏÌÖÎÙ ÏÓÔÁ×ÁÔØÓÑ ÔÁËÉÍÉ ÄÏ ÓÌÅÄÕÀÝÅÊ ÐÅÒÅÚÁÇÒÕÚËÉ, ÈÏÔÑ ÎÉÇÄÅ ÎÅ ÓËÁÚÁÎÏ, ÞÔÏ ×Ù ÎÅ ÍÏÖÅÔÅ ÉÈ ÍÅÎÑÔØ, ËÏÇÄÁ ÚÁÈÏÔÉÔÅ. úÄÅÓØ ÓÄÅÌÁÎÏ ÍÎÏÇÏ ÕÐÒÏÝÅÎÉÊ, ÏÄÎÁËÏ ÏÂÝÕÀ ÉÄÅÀ ×Ù ÄÏÌÖÎÙ ÕÌÏ×ÉÔØ. Microsoft ÉÓÐÏÌØÚÏ×ÁÌÁ ÄÌÑ PnP ÎÅËÏÔÏÒÙÅ ÐÏÒÔÙ ÓÔÁÔÕÓÁ ÐÅÒ×ÏÇÏ ÐÒÉÎÔÅÒÁ, ÐÏ ÉÈ ÌÏÇÉËÅ, ÎÅ ÓÕÝÅÓÔ×ÕÅÔ ÁÄÁÐÔÅÒÏ×, ÉÓÐÏÌØÚÕÀÝÉÈ ÜÔÉ ÁÄÒÅÓÁ ÄÌÑ ××ÏÄÁ/×Ù×ÏÄÁ. ñ ÏÂÎÁÒÕÖÉÌ ÏÄÉÎ ÔÁËÏÊ ÁÄÁÐÔÅÒ ÐÒÉÎÔÅÒÁ ÏÔ IBM, ËÏÔÏÒÙÊ ÄÅËÏÄÉÒÕÅÔ ÚÁÐÉÓØ × ÐÏÒÔ ÓÔÁÔÕÓÁ × ÍÏÍÅÎÔ ÎÁÞÁÌØÎÏÇÏ ÏÐÒÏÓÁ ÕÓÔÒÏÊÓÔ× PnP, ÎÁ ÞÔÏ MS ÏÔ×ÅÔÉÌ ``ÈÕÌÉÇÁÎ''. ôÁË ÞÔÏ ÏÎÉ ×ÙÐÏÌÎÑÀÔ ÚÁÐÉÓØ × ÐÏÒÔ ÓÔÁÔÕÓÁ ÐÒÉÎÔÅÒÁ ÄÌÑ ÕÓÔÁÎÏ×ËÉ ÁÄÒÅÓÏ×, ÐÌÀÓ ÉÓÐÏÌØÚÕÀÔ ÜÔÏÔ ÁÄÒÅÓ + 0x800, É ÅÝ£ ÏÄÉÎ ÐÏÒÔ ××ÏÄÁ/×Ù×ÏÄÁ, ËÏÔÏÒÙÊ ÍÏÖÅÔ ÒÁÓÐÏÌÁÇÁÔØÓÑ ÇÄÅ ÕÇÏÄÎÏ × ÄÉÁÐÁÚÏÎÅ ÍÅÖÄÕ 0x200 É 0x3ff, ÄÌÑ ÞÔÅÎÉÑ. ðÏÄÄÅÒÖÉ×ÁÅÔ ÌÉ FreeBSD ÐÌÁÔÆÏÒÍÙ, ÏÔÌÉÞÎÙÅ ÏÔ x86? éÎÔÅÒÅÓ Ë ÒÁÂÏÔÅ ÎÁÄ ÍÎÏÇÏÐÌÁÔÆÏÒÍÅÎÎÏÊ ÐÏÄÄÅÒÖËÏÊ ×Ï FreeBSD ÐÒÏÑ×ÉÌÉ ÎÅÓËÏÌØËÏ ÇÒÕÐÐ ÒÁÚÒÁÂÏÔÞÉËÏ×, É ÏÄÎÁ ÉÚ ÐÏÐÙÔÏË ÐÅÒÅÎÏÓÁ, FreeBSD/AXP (ALPHA), ÏËÁÚÁ×ÛÅÊÓÑ ÄÏÓÔÁÔÏÞÎÏ ÕÄÁÞÎÏÊ, × ÎÁÓÔÏÑÝÅÅ ×ÒÅÍÑ ÄÏÓÔÕÐÎÁ × ×ÉÄÅ ÒÅÌÉÚÁ 3.0 SNAP ÐÏ ÁÄÒÅÓÕ ftp://ftp.freebsd.org/pub/FreeBSD/alpha. üÔÁ ÒÅÁÌÉÚÁÃÉÑ ÄÌÑ ALPHA ÓÅÊÞÁÓ ÐÏÄÄÅÒÖÉ×Á£Ô ×Ó£ Õ×ÅÌÉÞÉ×ÁÀÝÅÅÓÑ ÞÉÓÌÏ ÍÁÛÉÎ ALPHA, × ÞÁÓÔÎÏÓÔÉ, ÍÏÄÅÌÉ AlphaStation, AXPpci, PC164, Miata É Multia. îÅÌØÚÑ ÓËÁÚÁÔØ, ÞÔÏ ÜÔÏ ÎÁÓÔÏÑÝÉÊ ÒÅÌÉÚ, ÏÎ É ÎÅ ÂÕÄÅÔ ÐÏÌÎÙÍ, ÐÏËÁ × ÎÅÇÏ ÎÅ ÂÕÄÕÔ ×ËÌÀÞÅÎÙ ×ÓÅ ÕÔÉÌÉÔÙ ÄÌÑ ÉÎÓÔÁÌÌÑÃÉÉ É ÎÅ ÂÕÄÅÔ ÓÄÅÌÁÎ ÄÉÓÔÒÉÂÕÔÉ×ÎÙÊ CDROM, ×ËÌÀÞÁÀÝÉÊ ÄÏÓÔÁÔÏÞÎÏÅ ËÏÌÉÞÅÓÔ×Ï ÒÁÂÏÞÉÈ ÐÏÒÔÏ× É ÐÁËÁÄÖÅÊ. FreeBSD/AXP ÓÅÊÞÁÓ ÎÁÈÏÄÉÔÓÑ × ÓÔÁÄÉÉ BETA. þÔÏÂÙ ÂÙÔØ × ËÕÒÓÅ ÓÏÂÙÔÉÊ, ÐÒÏÉÓÈÏÄÑÝÉÈ Ó ÜÔÉÍ ÐÏÒÔÏÍ, ÐÏÄÐÉÛÉÔÅÓØ ÎÁ ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÊ <freebsd-alpha@FreeBSD.ORG>. ôÁËÖÅ ÂÙÌ ÐÒÏÑ×ÌÅÎ ÉÎÔÅÒÅÓ Ë ÐÅÒÅÎÏÓÕ FreeBSD ÎÁ ÐÌÁÔÆÏÒÍÕ SPARC, ÅÓÌÉ ×Ù ÈÏÔÉÔÅ ÐÏÄËÌÀÞÉÔØÓÑ Ë ÜÔÏÍÕ ÐÒÏÅËÔÕ, ÐÏÄÐÉÛÉÔÅÓØ ÎÁ ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÊ <freebsd-sparc@FreeBSD.ORG> . äÌÑ ÏÂÓÕÖÄÅÎÉÅ ÏÂÝÉÈ ×ÏÐÒÏÓÏ×, ËÁÓÁÀÝÉÈÓÑ ÎÏ×ÙÈ ÁÐÐÁÒÁÔÎÙÈ ÐÌÁÔÆÏÒÍ, ÐÒÅÄÎÁÚÎÁÞÅÎ <freebsd-platforms@FreeBSD.ORG>. íÎÅ ÎÕÖÎÏ ÓÔÁÒÛÅÅ ÞÉÓÌÏ ÄÌÑ ÎÁÐÉÓÁÎÎÏÇÏ ÍÎÏÀ ÄÒÁÊ×ÅÒÁ ÕÓÔÒÏÊÓÔ×Á. ÷Ó£ ÚÁ×ÉÓÉÔ ÏÔ ÔÏÇÏ, ÐÌÁÎÉÒÕÅÔÅ ×Ù ÓÄÅÌÁÔØ ÜÔÏÔ ÄÒÁÊ×ÅÒ ÏÂÝÅÄÏÓÔÕÐÎÙÍ ÉÌÉ ÎÅÔ. åÓÌÉ ÜÔÏ ÔÁË, ÔÏ, ÐÏÖÁÌÕÊÓÔÁ, ÐÏÛÌÉÔÅ ÎÁÍ ËÏÐÉÀ ÉÓÈÏÄÎÙÈ ÔÅËÓÔÏ× ÄÒÁÊ×ÅÒÁ ×ÍÅÓÔÅ Ó ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÍÉ ÍÏÄÉÆÉËÁÃÉÑÍÉ × ÆÁÊÌÅ files.i386, ÐÒÉÍÅÒ ÏÐÉÓÁÎÉÑ ÕÓÔÒÏÊÓÔ×Á × ÆÁÊÌÅ ËÏÎÆÉÇÕÒÁÃÉÉ ÑÄÒÁ É ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÉÊ ËÏÄ MAKEDEV ÄÌÑ ÓÏÚÄÁÎÉÑ ÓÐÅÃÉÁÌØÎÙÈ ÆÁÊÌÏ× ÕÓÔÒÏÊÓÔ×, ËÏÔÏÒÙÅ ÉÓÐÏÌØÚÕÅÔ ×ÁÛÅ ÕÓÔÒÏÊÓÔ×Ï. åÓÌÉ ÜÔÏ ÎÅ ÔÁË. ÉÌÉ ÜÔÏ ÎÅ×ÏÚÍÏÖÎÏ ÉÚ-ÚÁ ÌÉÃÅÎÚÉÏÎÎÙÈ ÏÇÒÁÎÉÞÅÎÉÊ, ÔÏ ÄÌÑ ÓÔÁÒÛÅÇÏ ÞÉÓÌÁ ÓÉÍ×ÏÌØÎÏÇÏ ÕÓÔÒÏÊÓÔ×Á É ÓÔÁÒÛÅÇÏ ÞÉÓÌÁ ÂÌÏÞÎÏÇÏ ÕÓÔÒÏÊÓÔ×Á ÄÌÑ ÜÔÉÈ ÃÅÌÅÊ ÂÙÌÉ ÚÁÒÅÚÅÒ×ÉÒÏ×ÁÎÙ ÚÎÁÞÅÎÉÑ 32 É 8 ÓÏÏÔ×ÅÔÓÔ×ÅÎÎÏ; ÉÓÐÏÌØÚÕÊÔÅ ÉÈ. ÷ ÌÀÂÏÍ ÓÌÕÞÁÅ. ÍÙ ÂÕÄÅÍ ÒÁÄÙ ÕÓÌÙÛÁÔØ Ï ×ÁÛÅÍ ÄÒÁÊ×ÅÒÅ × ÓÐÉÓËÅ ÒÁÓÓÙÌËÉ <freebsd-hackers@FreeBSD.ORG>. áÌØÔÅÒÎÁÔÉ×ÎÙÊ ÍÅÔÏÄ ÒÁÚÍÅÝÅÎÉÑ ËÁÔÁÌÏÇÏ× ÷ ÏÔ×ÅÔ ÎÁ ×ÏÐÒÏÓ Ï ÄÒÕÇÉÈ ÍÅÔÏÄÁÈ ÒÁÚÍÅÝÅÎÉÑ ËÁÔÁÌÏÇÏ× ÍÏÇÕ ÓËÁÚÁÔØ, ÞÔÏ ÉÓÐÏÌØÚÕÅÍÁÑ × ÎÁÓÔÏÑÝÅÅ ÓÈÅÍÁ ÎÅ ÐÒÅÔÅÒÐÅÌÁ ÉÚÍÅÎÅÎÉÊ Ó 1983 ÇÏÄÁ. üÔÉ ÓÏÇÌÁÛÅÎÉÑ ÂÙÌÉ ÐÒÅÄÎÁÚÎÁÞÅÎÙ ÄÌÑ ÏÒÉÇÉÎÁÌØÎÏÊ ÆÁÊÌÏ×ÏÊ ÓÉÓÔÅÍÙ FFS, Ñ ÎÉËÏÇÄÁ ÉÈ ÎÅ ÐÅÒÅÓÍÁÔÒÉ×ÁÌ. üÔÁ ÓÈÅÍÁ ÐÒÅËÒÁÓÎÏ ÒÁÂÏÔÁÅÔ, ÐÏÚ×ÏÌÑÑ ÉÚÂÅÖÁÔØ ÐÅÒÅÐÏÌÎÅÎÉÑ ÇÒÕÐÐ ÄÏÒÏÖÅË. ëÁË ÎÅËÏÔÏÒÙÅ ÉÚ ×ÁÓ ÚÁÍÅÞÁÌÉ, ÏÎÁ ÒÁÂÏÔÁÅÔ ÐÌÏÈÏ ÐÒÉ ÐÏÉÓËÅ. âÏÌØÛÉÎÓÔ×Ï ÆÁÊÌÏ×ÙÈ ÓÉÓÔÅÍ ÓÏÚÄÁÀÔÓÑ ÉÚ ÁÒÈÉ×Ï×, ËÏÔÏÒÙÅ ÂÙÌÉ ÓÏÚÄÁÎÙ Ó ÇÌÕÂÉÎÏÊ ÐÅÒ×ÏÇÏ ÐÏÉÓËÁ (aka ftw). üÔÏ ÐÒÉ×ÏÄÉÔ Ë ÔÏÍÕ, ÞÔÏ ÉÈ ËÁÔÁÌÏÇÉ ÒÁÚÍÅÝÁÀÔÓÑ ÎÁ ÎÅÓËÏÌØËÉÈ ÇÒÕÐÐÁÈ ÄÏÒÏÖÅË, ÓÏÚÄÁ×ÁÑ ÎÁÉÈÕÄÛÉÊ ÓÌÕÞÁÊ ÄÌÑ ÐÏÓÌÅÄÕÀÝÅÇÏ ÐÏÉÓËÁ ÇÌÕÂÉÎÏÊ ÏÄÉÎ. åÓÌÉ ÂÙ ÂÙÌÏ ÉÚ×ÅÓÔÎÏ ÏÂÝÅÅ ËÏÌÉÞÅÓÔ×Ï ËÁÔÁÌÏÇÏ×, ËÏÔÏÒÙÅ ÄÏÌÖÎÙ ÂÙÔØ ÓÏÚÄÁÎÙ, ÂÙÈÏÄÏÍ ÂÙÌÏ ÂÙ ÓÏÚÄÁÎÉÅ (ÏÂÝÅÅ ËÏÌÉÞÅÓÔ×Ï / ËÏÌÉÞÅÓÔ×Ï ÇÒÕÐÐ ÄÏÒÏÖÅË) ÎÁ ÄÏÒÏÖËÕ ÇÒÕÐÐÕ ÐÅÒÅÄ ÐÅÒÅÈÏÄÏÍ. ïÂÙÞÎÏ ÜÔÏ ÞÉÓÌÏ ÏÐÒÅÄÅÌÑÅÔÓÑ ÞÉÓÔÏ Ü×ÒÉÓÔÉÞÅÓËÉ. äÁÖÅ ÐÒÉ ÉÓÐÏÌØÚÏ×ÁÎÉÉ ÍÁÌÅÎØËÏÇÏ ÆÉËÓÉÒÏ×ÁÎÎÏÅ ÞÉÓÌÁ, ÓËÁÖÅÍ 10, ÚÎÁÞÉÔÅÌØÎÏ ÕÌÕÞÛÁÅÔ ÓÉÔÕÁÃÉÀ. þÔÏÂÙ ÒÁÚÌÉÞÁÔØ ÏÐÅÒÁÃÉÉ ×ÏÓÓÔÁÎÏ×ÌÅÎÉÑ ÏÔ ÏÂÙÞÎÙÈ ÏÐÅÒÁÃÉÊ (ÇÄÅ ÔÅËÕÝÉÊ ÁÌÇÏÒÉÔÍ ÐÏÄÈÏÄÉÔ), ×Ù ÍÏÖÅÔÅ ÉÓÐÏÌØÚÏ×ÁÔØ ÏÂßÅÄÉÎÅÎÉÅ × ËÌÁÓÔÅÒÙ ÏÂߣÍÏÍ ÄÏ 10, ÅÓÌÉ ÏÎÉ ÄÅÌÁÀÔÓÑ × ÏËÎÅ, ÒÁ×ÎÙÍ 10 ÓÅËÕÎÄÁÍ. ÷Ï ×ÓÑËÏÍ ÓÌÕÞÁÅ, Ñ ÄÕÍÁÀ, ÞÔÏ ÜÔÏ ÔÒÅÂÕÅÔ ÎÅËÏÔÏÒÙÈ ÜËÓÐÅÒÉÍÅÎÔÏ×. ëÉÒË íÁËëÕÚÉË (Kirk McKusick), óÅÎÔÑÂÒØ 1998 þÔÏ ÄÅÌÁÔØ ÐÒÉ Á×ÁÒÉÊÎÏÍ ÏÓÔÁÎÏ×ÁÈ ÓÉÓÔÅÍÙ [üÔÏÔ ÒÁÚÄÅÌ ÂÙÌ ×ÙÒÅÚÁÎ ÉÚ ÐÉÓØÍÁ, ÎÁÐÉÓÁÎÎÏÇÏ âÉÌÌÏÍ ðÏÌÏÍ (Bill Paul) × ÓÐÉÓÏË ÒÁÓÓÙÌËÉ freebsd-current äÜÇÏÍ-üÌÉÎÇÏÍ ëÏÉÄÁÎÏÍ óÍ£ÇÒÁ×ÏÍ (Dag-Erling Coïdan Smørgrav), ËÏÔÏÒÙÊ ÉÓÐÒÁ×ÉÌ ÎÅÓËÏÌØËÏ ÏÐÅÞÁÔÏË É ÄÏÂÁ×ÉÌ ËÏÍÍÅÎÔÁÒÉÉ × Ë×ÁÄÒÁÔÎÙÈ ÓËÏÂËÁÈ] From: Bill Paul <wpaul@skynet.ctr.columbia.edu> Subject: Re: the fs fun never stops To: ben@rosengart.com Date: Sun, 20 Sep 1998 15:22:50 -0400 (EDT) Cc: current@FreeBSD.ORG [<ben@rosengart.com> ÏÔÐÒÁ×ÉÌ ÐÉÓØÍÏ, ÓÏÄÅÒÖÁÝÅÅ ÓÌÅÄÕÀÝÅÅ Á×ÁÒÉÊÎÏÅ ÓÏÏÂÝÅÎÉÅ ÓÉÓÔÅÍÙ] > Fatal trap 12: page fault while in kernel mode > fault virtual address = 0x40 > fault code = supervisor read, page not present > instruction pointer = 0x8:0xf014a7e5 ^^^^^^^^^^ > stack pointer = 0x10:0xf4ed6f24 > frame pointer = 0x10:0xf4ed6f28 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, def32 1, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 80 (mount) > interrupt mask = > trap number = 12 > panic: page fault [åÓÌÉ] ×Ù Õ×ÉÄÉÔÅ ÔÁËÏÅ ÓÏÏÂÝÅÎÉÅ, ÐÒÏÓÔÏ ÅÇÏ ×ÏÓÐÒÏÉÚ×ÅÓÔÉ É ÐÏÓÌÁÔØ ÎÁÍ ÎÅ ÄÏÓÔÁÔÏÞÎÏ. õËÁÚÁÔÅÌØ ÉÎÓÔÒÕËÃÉÊ, ×ÙÄÅÌÅÎÎÙÊ ÍÎÏÀ, ×ÁÖÅÎ, Ë ÓÏÖÁÌÅÎÉÀ, ÅÇÏ ÚÎÁÞÅÎÉÅ ÚÁ×ÉÓÉÔ ÏÔ ËÏÎÆÉÇÕÒÁÃÉÉ ÑÄÒÁ. äÒÕÇÉÍÉ ÓÌÏ×ÁÍÉ, ÅÇÏ ÚÎÁÞÅÎÉÅ ÍÅÎÑÅÔÓÑ × ÚÁ×ÉÓÉÍÏÓÔÉ ÏÔ ËÏÎËÒÅÔÎÏÇÏ ÑÄÒÁ, ËÏÔÏÒÏÅ ×Ù ÉÓÐÏÌØÚÕÅÔÅ. åÓÌÉ ×Ù ÉÓÐÏÌØÚÕÅÔÅ ÑÄÒÏ GENERIC ÏÄÎÏÇÏ ÉÚ ÓÎÜÐÛÏÔÏ×, ÔÏ ËÔÏ-ÔÏ ÅÝ£ ÍÏÖÅÔ ÏÔÓÌÅÄÉÔØ ÆÕÎËÃÉÀ, ×ÙÚ×Á×ÛÕÀ ÏÛÉÂËÕ, ÎÏ ÅÓÌÉ ×Ù ÒÁÂÏÔÁÅÔÅ ÓÏ ÓÐÅÃÉÁÌØÎÏ ÏÔËÏÎÆÉÇÕÒÉÒÏ×ÁÎÎÙÍ ÑÄÒÏÍ, ÔÏ ÔÏÌØËÏ ×Ù ÍÏÖÅÔÅ ÓËÁÚÁÔØ ÎÁÍ, ÇÄÅ ÓÌÕÞÉÌÁÓØ ÏÛÉÂËÁ. ÷ÏÔ ÞÔÏ ×Ù ÄÏÌÖÎÙ ÓÄÅÌÁÔØ: úÁÐÉÛÉÔÅ ÚÎÁÞÅÎÉÅ ÕËÁÚÁÔÅÌÑ ÉÎÓÔÒÕËÃÉÊ. úÁÍÅÔØÔÅ, ÞÔÏ ÞÁÓÔØ 0x8: × ÜÔÏÍ ÓÌÕÞÁÅ ÎÅ ×ÁÖÎÁ: ÎÁÍ ÎÕÖÎÁ ÞÁÓÔØ 0xf0xxxxxx. ëÏÇÄÁ ÓÉÓÔÅÍÁ ÐÅÒÅÚÁÇÒÕÚÉÔÓÑ, ÓÄÅÌÁÊÔÅ ÓÌÅÄÕÀÝÅÅ: % nm /kernel.that.caused.the.panic | grep f0xxxxxx ÇÄÅ f0xxxxxx - ÜÔÏ ÚÎÁÞÅÎÉÅ ÕËÁÚÁÔÅÌÑ ÉÎÓÔÒÕËÃÉÊ. ïÄÎÁËÏ ÎÅÐÒÉÑÔÎÏÓÔØ ÚÁËÌÀÞÁÅÔÓÑ × ÔÏÍ, ÞÔÏ ×Ù ÎÅ ÐÏÌÕÞÉÔÅ ÔÏÞÎÏÇÏ ÓÏÏÔ×ÅÔÓÔ×ÉÑ, ÔÁË ËÁË × ÔÁÂÌÉÃÅ ÉÍÅÎ ÑÄÒÁ ÄÌÑ ÔÏÞÅË ×ÈÏÄÁ × ÆÕÎËÃÉÉ ÄÁÎÙ ÁÄÒÅÓÁ ÎÁ ÎÁÞÁÌÏ ÆÕÎËÃÉÊ, Á ÕËÁÚÁÔÅÌØ ÉÎÓÔÒÕËÃÉÊ ÂÕÄÅÔ ÕËÁÚÙ×ÁÔØ ËÕÄÁ-ÔÏ ×ÎÕÔÒØ Å£ ÔÅÌÁ. åÓÌÉ ×Ù ÎÅ ÐÏÌÕÞÉÌÉ ÔÏÞÎÏÇÏ ÓÏÏÔ×ÅÔÓÔ×ÉÑ, ÏÐÕÓÔÉÔÅ ÐÏÓÌÅÄÎÀÀ ÃÉÆÒÕ × ÚÎÁÞÅÎÉÉ ÕËÁÚÁÔÅÌÑ ÉÎÓÔÒÕËÃÉÊ É ÐÏÐÒÏÂÕÊÔÅ ÓÎÏ×Á, ÔÏ ÅÓÔØ: % nm /kernel.that.caused.the.panic | grep f0xxxxx åÓÌÉ É ÜÔÏ ÎÅ ÐÒÉ×ÅÌÏ ÎÉ Ë ËÁËÉÍ ÒÅÚÕÌØÔÁÔÁÍ, ÏÔÒÅÖØÔÅ ÓÌÅÄÕÀÝÕÀ ÃÉÆÒÕ. ðÏ×ÔÏÒÑÊÔÅ, ÐÏËÁ ÎÅ ÐÏÌÕÞÉÔÅ ÈÏÔØ ÞÔÏ-ÔÏ. òÅÚÕÌØÔÁÔÏÍ ÂÕÄÅÔ ÓÐÉÓÏË ÆÕÎËÃÉÊ, ËÏÔÏÒÙÅ, ×ÏÚÍÏÖÎÏ, ÐÒÉ×ÅÌÉ Ë Á×ÁÒÉÊÎÏÍÕ ÏÓÔÁÎÏ×Õ. üÔÏÔ ÍÅÈÁÎÉÚÍ ÏÂÎÁÒÕÖÅÎÉÑ ÏÛÉÂÏÞÎÏÇÏ ÍÅÓÔÁ ÄÏ×ÏÌØÎÏ ÎÅÔÏÞÅÎ, ÎÏ ÜÔÏ ×Ó£ ÖÅ ÌÕÞÛÅ ÞÅÍ ÎÉÞÅÇÏ. úÁÞÁÓÔÕÀ ÌÀÄÉ ÐÒÉ×ÏÄÑÔ ÐÏÄÏÂÎÙÅ Á×ÁÒÉÊÎÙÅ ÓÏÏÂÝÅÎÉÑ, ÎÁ ÒÅÄËÏ ËÔÏ ÕÔÒÕÖÄÁÅÔÓÑ ÐÒÉ×ÅÓÔÉ ÓÏÏÔ×ÅÓÔ×ÉÅ ÕËÁÚÁÔÅÌÑ ÉÎÓÔÒÕËÃÉÊ Ó ÆÕÎËÃÉÅÊ × ÔÁÂÌÉÃÅ ÓÉÍ×ÏÌÏ× ÑÄÒÁ. ìÕÞÛÉÍ ÓÐÏÓÏÂÏÍ ×ÙÑÓÎÉÔØ ÐÒÉÞÉÎÕ, ×ÙÚ×Á×ÛÕÀ Á×ÁÒÉÊÎÙÊ ÏÓÔÁÎÏ×, Ñ×ÌÑÅÔÓÑ ÓÏÚÄÁÎÉÅ Á×ÁÒÉÊÎÏÇÏ ÄÁÍÐÁ ÓÉÓÔÅÍÙ, Á ÚÁÔÅÍ ÉÓÐÏÌØÚÏ×ÁÎÉÅ gdb(1) ÄÌÑ ÔÒÁÓÓÉÒÏ×ËÉ ×ÙÚÏ×Ï×. ëÏÎÅÞÎÏ, ÜÔÏ ÚÁ×ÉÓÉÔ ÏÔ ËÏÒÒÅËÔÎÏÓÔÉ ÒÁÂÏÔÙ gdb(1) Ó -current, ÞÔÏ Ñ ÇÁÒÁÎÔÉÒÏ×ÁÔØ ÎÅ ÍÏÇÕ (ÐÏÍÎÉÔÓÑ, ËÔÏ-ÔÏ ÇÏ×ÏÒÉÌ, ÞÔÏ ÎÏ×ÙÊ ELF gdb(1) ÎÅËÏÒÒÅËÔÎÏ ÒÁÂÏÔÁÅÔ Ó Á×ÁÒÉÊÎÙÍÉ ÄÁÍÐÁÍÉ ÑÄÒÁ: ÎÅÏÂÈÏÄÉÍÏ ÐÒÏ×ÅÒÉÔØ ÜÔÏ ÄÏ ×ÙÈÏÄÁ 3.0, ÉÎÁÞÅ ÎÅ ÉÚÂÅÖÁÔØ ËÒÁÓËÉ ÓÔÙÄÁ ÎÁ ÎÁÛÉÈ ÌÉÃÁÈ ÐÏÓÌÅ ×ÙÐÕÓËÁ CD). ÷Ï ×ÓÑËÏÍ ÓÌÕÞÁÅ, ÏÂÙÞÎÏ Ñ ÉÓÐÏÌØÚÕÀ ÔÁËÏÊ ÓÐÏÓÏÂ: ïÔÒÅÄÁËÔÉÒÕÊÔÅ ËÏÎÆÉÇÕÒÁÃÉÏÎÎÙÊ ÆÁÊÌ ÑÄÒÁ, ÄÏÂÁ×É× ÓÔÒÏËÕ 'options DDB', ÅÓÌÉ ×ÁÍ ÚÁÞÅÍ-ÔÏ ÐÏÎÁÄÏÂÉÌÓÑ ×ÓÔÒÏÅÎÎÙÊ ÏÔÌÁÄÞÉË. (ñ ÉÓÐÏÌØÚÕÀ ÅÇÏ × ÏÓÎÏ×ÎÏÍ ÄÌÑ ÕËÁÚÁÎÉÑ ÔÏÞÅË ÏÓÔÁÎÏ×Á, ÅÓÌÉ ÐÏÄÏÚÒÅ×ÁÀ ×ÏÚÎÉËÎÏ×ÅÎÉÅ ÂÅÓËÏÎÅÞÎÙÈ ÃÉËÌÏ×.) ÷ÙÐÏÌÎÉÔÅ config -g KERNELCONFIG ÄÌÑ ÓÏÚÄÁÎÉÑ ËÁÔÁÌÏÇÁ ÐÏÓÔÒÏÅÎÉÑ ÑÄÒÁ. cd /sys/compile/KERNELCONFIG; make äÏÖÄÉÔÅÓØ ÏËÏÎÞÁÎÉÑ ËÏÍÐÉÌÑÃÉÉ ÑÄÒÁ. cp kernel kernel.debug strip -d kernel mv kernel /kernel.orig/ cp kernel / reboot [úÁÍÅÞÁÎÉÅ: ôÁË ËÁË ÔÅÐÅÒØ ÑÄÒÁ FreeBSD 3.x ÐÏ ÕÍÏÌÞÁÎÉÀ ÉÍÅÀÔ ÆÏÒÍÁÔ Elf, ×Ù ÄÏÌÖÎÙ ÉÓÐÏÌØÚÏ×ÁÔØ ËÏÍÁÎÄÕ strip -g ×ÍÅÓÔÏ strip -d]. åÓÌÉ ÐÏ ËÁËÏÊ-ÔÏ ÐÒÉÞÉÎÅ ×ÁÛÅ ÑÄÒÏ ×Ó£ ÅÝ£ ÉÍÅÅÔ ÆÏÒÍÁÔ a.out, ÉÓÐÏÌØÚÕÊÔÅ ËÏÍÁÎÄÕ strip -aout -d.] úÁÍÅÔØÔÅ, ÞÔÏ ÷áí îå îõöîï úáçòõöáôø ñäòï ó ïôìáäïþîïê éîæïòíáãéåê. ñÄÒÏ, ÏÔËÏÍÐÉÌÉÒÏ×ÁÎÎÏÅ Ó ËÌÀÞÏÍ , ÍÏÖÅÔ ÚÁÎÉÍÁÔØ ÐÏÒÑÄËÁ 10íâ. ÷ÁÍ ÎÅ ÎÕÖÎÏ ÚÁÇÒÕÖÁÔØ ÜÔÏÔ ÏÇÒÏÍÎÙÊ ÏÂÒÁÚ: ÏÎ ×ÁÍ ÐÒÉÇÏÄÉÔÓÑ ÐÏÚÖÅ ÄÌÑ gdb(1)gdb(1) ÔÒÅÂÕÅÔ ÔÁÂÌÉÃÕ ÉÍ£Î). ÷ÍÅÓÔÏ ÜÔÏÇÏ ÐÒÏÓÔÏ ÓÏÈÒÁÎÉÔÅ ÐÏÌÎÙÊ ÏÂÒÁÚ É ÓÏÚÄÁÊÔÅ ÅÝ£ ÏÄÉÎ, ÕÄÁÌÉ× ÏÔÌÁÄÏÞÎÕÀ ÉÎÆÏÒÍÁÃÉÀ ËÏÍÁÎÄÏÊ strip -d. éÍÅÎÎÏ ÜÔÏÔ ÏÂÒÁÚ ×ÁÍ É ÎÕÖÅÎ ÄÌÑ ÚÁÇÒÕÚËÉ. þÔÏÂÙ ×ËÌÀÞÉÔØ ÓÂÒÏÓ Á×ÁÒÉÊÎÏÇÏ ÄÁÍÐÁ, ×ÁÍ ÎÕÖÎÏ ÏÔÒÅÄÁËÔÉÒÏ×ÁÔØ ÆÁÊÌÁ /etc/rc.conf, ÞÔÏÂÙ dumpdev ÕËÁÚÙ×ÁÌÏ ÎÁ ÒÁÚÄÅÌ ÐÏÄËÁÞËÉ. ÷ ÜÔÏÍ ÓÌÕÞÁÅ ÓËÒÉÐÔÙ rc(8) ÂÕÄÕÔ ×ÙÚÙ×ÁÔØ ËÏÍÁÎÄÕ dumpon(8) ÄÌÑ ×ËÌÀÞÅÎÉÑ ÓÏÚÄÁÎÉÑ Á×ÁÒÉÊÎÙÈ ÄÁÍÐÏ×. ÷Ù ÍÏÖÅÔÅ ÚÁÐÕÓÔÉÔØ ËÏÍÁÎÄÕ dumpon(8) ×ÒÕÞÎÕÀ. ðÏÓÌÅ Á×ÁÒÉÊÎÏÊ ÏÓÔÁÎÏ×ËÉ Á×ÁÒÉÊÎÙÊ ÄÁÍÐ ÍÏÖÅÔ ÂÙÔØ ÐÏÌÕÞÅÎ Ó ÐÏÍÏÝØÀ ÐÒÏÇÒÁÍÍÙ savecore(8); ÅÓÌÉ ÚÎÁÞÅÎÉÅ ÐÅÒÅÍÅÎÎÏÊ dumpdev ÂÙÌÏ ÕÓÔÁÎÏ×ÌÅÎÏ × /etc/rc.conf, ÓËÒÉÐÔÙ rc(8) ÚÁÐÕÓÔÑÔ savecore(8) Á×ÔÏÍÁÔÉÞÅÓËÉ É ÐÏÍÅÓÔÑÔ Á×ÁÒÉÊÎÙÊ ÄÁÍÐ × ËÁÔÁÌÏÇ /var/crash. úáíåþáîéå: Á×ÁÒÉÊÎÙÅ ÄÁÍÐÙ FreeBSD ÏÂÙÞÎÏ ÉÍÅÀÔ ÒÁÚÍÅÒ, ÒÁ×ÎÙÊ ÆÉÚÉÞÅÓËÏÍÕ ÏÂߣÍÕ ÏÐÅÒÁÔÉ×ÎÏÊ ÐÁÍÑÔÉ ×ÁÛÅÊ ÍÁÛÉÎÙ. ôÁË ÞÔÏ ÅÓÌÉ Õ ×ÁÓ 64íâ ïúõ, ×Ù ÐÏÌÕÞÉÔÅ ÄÁÍÐ ÒÁÚÍÅÒÏÍ 64íâ. ðÏÜÔÏÍÕ ×Ù ÄÏÌÖÎÙ ÕÄÏÓÔÏ×ÅÒÉÔØÓÑ, ÞÔÏ × ËÁÔÁÌÏÇÅ /var/crash ÄÏÓÔÁÔÏÞÎÏ ÍÅÓÔÁ ÄÌÑ ÈÒÁÎÅÎÉÑ ÄÁÍÐÁ. ìÉÂÏ ×Ù ÍÏÖÅÔÅ ×ÒÕÞÎÕÀ ÚÁÐÕÓÔÉÔØ savecore(8) É ÓÏÚÄÁÔØ Á×ÁÒÉÊÎÙÊ ÄÁÍÐ × ÄÒÕÇÏÍ ËÁÔÁÌÏÇÅ, ÇÄÅ ÄÏÓÔÁÔÏÞÎÏ ÍÅÓÔÁ. òÁÚÍÅÒ Á×ÁÒÉÊÎÏÇÏ ÄÁÍÐÁ ÍÏÖÎÏ ÕÍÅÎØÛÉÔØ, ÕËÁÚÁ× × ËÏÎÆÉÇÕÒÁÃÉÉ ÑÄÒÁ options MAXMEM=(ÒÁÚÍÅÒ) ÐÏÄÈÏÄÑÝÅÅ ÚÎÁÞÅÎÉÅ ÄÌÑ ÏÂߣÍÁ ÐÁÍÑÔÉ, ËÏÔÏÒÏÅ ÂÕÄÅÔ ÉÓÐÏÌØÚÏ×ÁÔØÓÑ ÑÄÒÏÍ. îÁÐÒÉÍÅÒ, ÅÓÌÉ Õ ×ÁÓ 128 íâ ïúõ, ×Ù ÍÏÖÅÔÅ ÏÇÒÁÎÉÞÉÔØ ÉÓÐÏÌØÚÏ×ÁÎÉÅ ÐÁÍÑÔÉ ÑÄÒÏÍ 16 ÍÅÇÁÂÁÊÔÁÍÉ, ÔÁË ÞÔÏ ÒÁÚÍÅÒ Á×ÁÒÉÊÎÏÇÏ ÄÁÍÐÁ ÂÕÄÅÔ ÒÁ×ÅÎ 16íâ, Á ÎÅ 128. ëÁË ÔÏÌØËÏ ×Ù ÐÏÌÕÞÉÌÉ Á×ÁÒÉÊÎÙÊ ÄÁÍÐ, ×Ù ÍÏÖÅÔÅ ×ÙÐÏÌÎÉÔØ ÔÒÁÓÓÉÒÏ×ËÕ ×ÙÚÏ×Ï× Ó ÐÏÍÏÝØÀ gdb(1) ÔÁËÉÍ ÏÂÒÁÚÏÍ: % gdb -k /sys/compile/KERNELCONFIG/kernel.debug /var/crash/vmcore.0 (gdb) where úÁÍÅÔØÔÅ, ÞÔÏ ÐÒÉ ÜÔÏÍ ÍÏÖÅÔ ÂÙÔØ ×Ù×ÅÄÅÎÏ ÎÅÓËÏÌØËÏ ÜËÒÁÎÏ× ÉÎÆÏÒÍÁÃÉÉ; × ÉÄÅÁÌÅ ×Ù ÄÏÌÖÎÙ ÉÓÐÏÌØÚÏ×ÁÔØ script(1) ÄÌÑ ÉÈ ÐÅÒÅÈ×ÁÔÁ. ðÒÉ ÉÓÐÏÌØÚÏ×ÁÎÉÉ ÎÅÏÂÒÁÂÏÔÁÎÎÏÇÏ ÏÂÒÁÚÁ ÑÄÒÁ ÓÏ ×ÓÅÊ ÏÔÌÁÄÏÞÎÏÊ ÉÎÆÏÒÍÁÃÉÅÊ ÍÏÖÅÔ ÂÙÔØ ÎÁÊÄÅÎÁ ËÏÎËÒÅÔÎÁÑ ÓÔÒÏËÁ ÉÓÈÏÄÎÏÇÏ ÔÅËÓÔÁ ÑÄÒÁ, ÐÒÉ ÄÏÓÔÉÖÅÎÉÉ ËÏÔÏÒÏÊ ÓÌÕÞÉÌÁÓØ Á×ÁÒÉÊÎÁÑ ÏÓÔÁÎÏ×ËÁ. äÌÑ ×ÙÑÓÎÅÎÉÑ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÏÓÔÉ ÓÏÂÙÔÉÊ, ÐÒÉ×ÅÄÛÉÈ Ë Á×ÁÒÉÊÎÏÍÕ ÏÓÔÁÎÏ×Õ, ÏÂÙÞÎÏ ÞÉÔÁÅÔÓÑ ÔÒÁÓÓÉÒÏ×ËÁ ÓÔÅËÁ ÓÎÉÚÕ ××ÅÒÈ. ÷Ù ÍÏÖÅÔÅ ÔÁËÖÅ ÉÓÐÏÌØÚÏ×ÁÔØ gdb(1) ÄÌÑ ×Ù×ÏÄÁ ÚÎÁÞÅÎÉÊ ÒÁÚÌÉÞÎÙÈ ÐÅÒÅÍÅÎÎÙÈ ÉÌÉ ÓÔÒÕËÔÕÒ, ÞÔÏÂÙ ×ÙÑÓÎÉÔØ ÓÏÓÔÏÑÎÉÅ ÓÉÓÔÅÍÙ ×Ï ×ÒÅÍÑ Á×ÁÒÉÉ. ôÅÐÅÒØ, ÅÓÌÉ ×Ù × ÓÁÍÏÍ ÄÅÌÅ ÄÕÛÅ×ÎÏÂÏÌØÎÏÊ É Õ ×ÁÓ ÅÓÔØ ×ÔÏÒÏÊ ËÏÍÐØÀÔÅÒ, ÔÏ ÍÏÖÅÔÅ ÎÁÓÔÒÏÉÔØ gdb(1) ÄÌÑ ÕÄÁÌ£ÎÎÏÊ ÏÔÌÁÄËÉ, ÔÁË, ÞÔÏ ÓÍÏÖÅÔÅ ÉÓÐÏÌØÚÏ×ÁÔØ gdb(1) ÎÁ ÏÄÎÏÍ ËÏÍÐØÀÔÅÒÅ, ÞÔÏÂÙ ÏÔÌÁÄÉÔØ ÑÄÒÏ ÎÁ ÄÒÕÇÏÍ, ×ËÌÀÞÁÑ ÉÓÐÏÌØÚÏ×ÁÎÉÅ ÔÏÞÅË ÏÓÔÁÎÏ×Á, ÐÏÛÁÇÏ×ÏÇÏ ÐÒÏÈÏÄÁ ÐÏ ËÏÄÕ ÑÄÒÁ, ×Ó£ ËÁË Ó ÏÂÙÞÎÏÊ ÐÒÉËÌÁÄÎÏÊ ÐÒÏÇÒÁÍÍÏÊ. ñ ÐÏËÁ Ó ÜÔÉÍ ÎÅ ÉÇÒÁÌÓÑ, ÔÁË ËÁË ÎÅ ÞÁÓÔÏ ÉÍÅÀ ×ÏÚÍÏÖÎÏÓÔØ ÐÏÓÔÁ×ÉÔØ Ä×Å ÍÁÛÉÎÙ ÏÄÎÕ ÎÁÐÒÏÔÉ× ÄÒÕÇÏÊ ÄÌÑ ÏÔÌÁÄËÉ. [âÉÌÌ (Bill) ÄÏÂÁ×ÉÌ: "ñ ÚÁÂÙÌ ÏÂÒÁÔÉÔØ ×ÁÛÅ ×ÎÉÍÁÎÉÅ ÎÁ ÏÄÎÕ ×ÅÝØ: ÅÓÌÉ Õ ×ÁÓ ×ËÌÀÞÅÎÁ ÐÏÄÄÅÒÖËÁ DDB É ÑÄÒÏ ÐÅÒÅÈÏÄÉÔ × ÒÅÖÉÍ ÏÔÌÁÄËÉ, ×Ù ÍÏÖÅÔÅ ÎÁÍÅÒÅÎÎÏ ×ÙÚ×ÁÔØ Á×ÁÒÉÊÎÙÊ ÏÓÔÁÎÏ× (É ÓÏÚÄÁÎÉÅ Á×ÁÒÉÊÎÏÇÏ ÄÁÍÐÁ), ÎÁÂÒÁ× 'panic' × ËÏÍÁÎÄÎÏÊ ÓÔÒÏËÅ ddb. üÔÏÔ ÐÒÏÃÅÓÓ ÍÏÖÅÔ ÓÎÏ×Á ×ÙÚ×ÁÔØ ÏÔÌÁÄÞÉË. ÷ ÜÔÏÍ ÓÌÕÞÁÅ ÎÁÂÅÒÉÔÅ 'continue' É ÐÒÏÃÅÓÓ ÂÕÄÅÔ ÚÁ×ÅÒۣΠÓÏÚÄÁÎÉÅÍ Á×ÁÒÉÊÎÏÇÏ ÄÁÍÐÁ." -ed] ðÅÒÅÓÔÁÌÁ ÒÁÂÏÔÁÔØ ÆÕÎËÃÉÑ dlsym() ÄÌÑ ELF! ðÏ ÕÍÏÌÞÁÎÉÀ ÐÒÉ ÒÁÂÏÔÅ Ó ÆÏÒÍÁÔÏÍ ELF ÓÉÍ×ÏÌÙ, ÏÐÒÅÄÅÌ£ÎÎÙÅ × ×ÙÐÏÌÎÉÍÏÍ ÆÁÊÌÅ, ÎÅ ÄÏÓÔÕÐÎÙ ÄÉÎÁÍÉÞÅÓËÏÍÕ ÚÁÇÒÕÚÞÉËÕ. ðÏÜÔÏÍÕ ÐÒÉ ×ÙÚÏ×Å ÆÕÎËÃÉÉ dlsym(), ËÏÔÏÒÁÑ ÏÓÕÝÅÓÔ×ÌÑÅÔ ÐÏÉÓË ÐÏ ÄÅÓËÒÉÐÔÏÒÕ, ÐÏÌÕÞÅÎÎÏÍÕ ÐÏÓÌÅ ×ÙÚÏ×Á dlopen(NULL, flags), ÖÅÌÁÅÍÙÊ ÒÅÚÕÌØÔÁÔ ÄÏÓÔÉÇÎÕÔ ÎÅ ÂÕÄÅÔ. åÓÌÉ ×Ù ÈÏÔÉÔÅ ÏÓÕÝÅÓÔ×ÉÔØ ÐÏÉÓË × ×ÙÐÏÌÎÉÍÏÍ ÆÁÊÌÅ ÐÒÏÃÅÓÓÁ Ó ÐÏÍÏÝØÀ ÆÕÎËÃÉÉ dlsym(), ×ÁÍ ÎÕÖÎÏ ËÏÍÐÏÎÏ×ÁÔØ ×ÙÐÏÌÎÉÍÙÊ ÆÁÊÌ Ó ÏÐÃÉÅÊ ËÏÍÐÏÎÏ×ÝÉËÁ ELF. õ×ÅÌÉÞÅÎÉÅ É ÕÍÅÎØÛÅÎÉÅ ÁÄÒÅÓÎÏÇÏ ÐÒÏÓÔÒÁÎÓÔ×Á ÑÄÒÁ ðÏ ÕÍÏÌÞÁÎÉÀ ÒÁÚÍÅÒ ÁÄÒÅÓÎÏÇÏ ÐÒÏÓÔÒÁÎÓÔ×Á ÑÄÒÁ ÒÁ×ÅÎ 256 íâ ×Ï FreeBSD 3.x É 1 çâ ×Ï FreeBSD 4.x. åÓÌÉ ×Ù ÉÓÐÏÌØÚÕÅÔÅ FreeBSD × ËÁÞÅÓÔ×Å ÓÅÒ×ÅÒÁ Ó ÉÎÔÅÎÓÉ×ÎÏÊ ÓÅÔÅ×ÏÊ ÎÁÇÒÕÚËÏÊ (ÓËÁÖÅÍ, ÂÏÌØÛÏÊ FTP ÉÌÉ HTTP ÓÅÒ×ÅÒ), ×Ù ÍÏÖÅÔÅ ÏÂÎÁÒÕÖÉÔØ, ÞÔÏ 256 íâ ÎÅÄÏÓÔÁÔÏÞÎÏ. ëÁËÉÍ ÖÅ ÏÂÒÁÚÏÍ ÍÏÖÎÏ Õ×ÅÌÉÞÉÔØ ÁÄÒÅÓÎÏÅ ÐÒÏÓÔÒÁÎÓÔ×Ï? úÄÅÓØ ÅÓÔØ Ä×Á ÍÏÍÅÎÔÁ. ÷Ï-ÐÅÒ×ÙÈ, ×ÁÍ ÎÕÖÎÏ ÕËÁÚÁÔØ ÑÄÒÕ ×ÙÄÅÌÉÔØ ÂÏÌØÛÅÅ ËÏÌÉÞÅÓÔ×Ï ÁÄÒÅÓÎÏÇÏ ÐÒÏÓÔÒÁÎÓÔ×Á ÄÌÑ ÓÁÍÏÇÏ ÑÄÒÁ. ÷Ï-×ÔÏÒÙÈ, ÔÁË ËÁË ÑÄÒÏ ÚÁÇÒÕÖÁÅÔÓÑ × ×ÅÒÈÎÀÀ ÞÁÓÔØ ÁÄÒÅÓÎÏÇÏ ÐÒÏÓÔÒÁÎÓÔ×Á, ×ÁÍ ÎÕÖÎÏ ÕÍÅÎØÛÉÔØ ÁÄÒÅÓ ÚÁÇÒÕÚËÉ ÔÁË, ÞÔÏÂÙ ÏÎ ÎÅ ×ÙÛÅÌ ÚÁ ×ÅÒÈÎÀÀ ÇÒÁÎÉÃÕ. ðÅÒ×ÁÑ ÐÒÏÂÌÅÍÁ ÒÅÛÁÅÔÓÑ Õ×ÅÌÉÞÅÎÉÅÍ ÚÎÁÞÅÎÉÑ ËÏÎÓÔÁÎÔÙ NKPDE × ÆÁÊÌÅ src/sys/i386/include/pmap.h. ÷ ÓÌÕÞÁÅ 1 çâ ÁÄÒÅÓÎÏÇÏ ÐÒÏÓÔÒÁÎÓÔ×Á ÏÎ ÄÏÌÖÅÎ ×ÙÇÌÑÄÅÔØ ÐÒÉÍÅÒÎÏ ÔÁË: #ifndef NKPDE #ifdef SMP #define NKPDE 254 /* addressable number of page tables/pde's */ #else #define NKPDE 255 /* addressable number of page tables/pde's */ #endif /* SMP */ #endif äÌÑ ×ÙÞÉÓÌÅÎÉÑ ÚÎÁÞÅÎÉÑ NKPDE ÒÁÚÄÅÌÉÔÅ ÖÅÌÁÅÍÙÊ ÏÂß£Í ÁÄÒÅÓÎÏÇÏ ÐÒÏÓÔÒÁÎÓÔ×Á (× ÍÅÇÁÂÁÊÔÁÈ) ÎÁ ÞÅÔÙÒÅ É ×ÙÞÔÉÔÅ ÉÚ ÐÏÌÕÞÉ×ÛÅÇÏÓÑ ÞÉÓÌÁ ÅÄÉÎÉÞËÕ × ÓÌÕÞÁÅ ÏÄÎÏÐÒÏÃÅÓÓÏÒÎÏÊ ÍÁÛÉÎÙ É Ä×ÏÅÞËÕ × ÓÌÕÞÁÅ ÍÎÏÇÏÐÒÏÃÅÓÓÏÒÎÏÇÏ ÑÄÒÁ. äÌÑ ÄÏÓÔÉÖÅÎÉÑ ×ÔÏÒÏÊ ÃÅÌÉ ×ÁÍ ÎÕÖÎÏ ÐÒÁ×ÉÌØÎÙÊ ÁÄÒÅÓ ÄÌÑ ÚÁÇÒÕÚËÉ ÑÄÒÁ: ÐÒÏÓÔÏ ÏÔÎÉÍÉÔÅ ÒÁÚÍÅÒ ÁÄÒÅÓÎÏÇÏ ÐÒÏÓÔÒÁÎÓÔ×Á (× ÂÁÊÔÁÈ) ÏÔ 0x100100000; ÒÅÚÕÌØÔÁÔ ÂÕÄÅÔ ÒÁ×ÎÙÍ 0xc0100000 ÄÌÑ ÁÄÒÅÓÎÏÇÏ ÐÒÏÓÔÒÁÎÓÔ×Á × 1 çâ. õÓÔÁÎÏ×ÉÔÅ ÚÎÁÞÅÎÉÅ ËÏÎÓÔÁÎÔÙ LOAD_ADDRESS × ÆÁÊÌÅ src/sys/i386/conf/Makefile.i386 × ÜÔÏ ÚÎÁÞÅÎÉÅ; ÚÁÔÅÍ ÕÓÔÁÎÏ×ÉÔÅ ÚÎÁÞÅÎÉÅ ÓÞ£ÔÞÉËÁ × ÎÁÞÁÌÅ ÓÐÉÓËÁ ÓÅËÃÉÊ × ÆÁÊÌÅ src/sys/i386/conf/kernel.script × ÔÏ ÖÅ ÓÁÍÏÅ ÚÎÁÞÅÎÉÅ, ËÁË ÜÔÏ ÓÄÅÌÁÎÏ ÚÄÅÓØ: OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386") OUTPUT_ARCH(i386) ENTRY(btext) SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/obj/elf/home/src/tmp/usr/i386-unknown-freebsdelf/lib); SECTIONS { /* Read-only sections, merged into text segment: */ . = 0xc0100000 + SIZEOF_HEADERS; .interp : { *(.interp) } ðÏÓÌÅ ÜÔÏÇÏ ÐÅÒÅËÏÎÆÉÇÕÒÉÒÕÊÔÅ É ÐÅÒÅÓÔÒÏÊÔÅ ÑÄÒÏ. ÷Ù ÍÏÖÅÔÅ ÓÔÏÌËÎÕÔØÓÑ Ó ÐÒÏÂÌÅÍÁÍÉ ÐÒÉ ÒÁÂÏÔÅ ÕÔÉÌÉÔ ps(1), top(1) É ÐÏÄÏÂÎÙÈ ÉÍ; ÒÅÛÉÔØ ÉÈ ÍÏÖÅÔ make world (ÉÌÉ ÒÕÞÎÁÑ ÐÅÒÅËÏÍÐÉÌÑÃÉÑ libkvm, ps É top ÐÏÓÌÅ ËÏÐÉÒÏ×ÁÎÉÑ ÉÓÐÒÁ×ÌÅÎÎÏÇÏ pmap.h × /usr/include/vm/). úáíåþáîéå: òÁÚÍÅÒ ÁÄÒÅÓÎÏÇÏ ÐÒÏÓÔÒÁÎÓÔ×Á ÑÄÒÁ ÄÏÌÖÅÎ ÂÙÔØ ËÒÁÔÅÎ ÞÅÔÙÒ£Í ÍÅÇÁÂÁÊÔÁÍ. [äÜ×ÉÄ çÒÉÎÍÜÎ (David Greenman) ÄÏÂÁ×ÉÌ: ñ ÄÕÍÁÀ, ÞÔÏ ÒÁÚÍÅÒ ÁÄÒÅÓÎÏÇÏ ÐÒÏÓÔÒÁÎÓÔ×Á ÑÄÒÁ ÄÏÌÖÅÎ ÂÙÔØ ÓÔÅÐÅÎØÀ Ä×ÏÊËÉ, ÎÏ Ñ × ÜÔÏÍ ÎÅ Õ×ÅÒÅÎ. äÌÑ ÒÁÂÏÔÙ Ó ×ÅÒÈÎÉÍÉ ÁÄÒÅÓÁÍÉ ÐÁÍÑÔÉ ÉÓÐÏÌØÚÏ×ÁÌÓÑ ËÏÄ ÓÔÁÒÏÇÏ ÚÁÇÒÕÚÞÉËÁ, É Ñ ÏÖÉÄÁÀ ÐÏ ËÒÁÊÎÅÊ ÍÅÒÅ ÔÏÞÎÏÓÔØ × 256 íâ.] îÁÛÉ ÂÌÁÇÏÄÁÒÎÏÓÔÉ åÓÌÉ ×Ù ÏÂÎÁÒÕÖÉÌÉ ÎÅÔÏÞÎÏÓÔÉ × ÜÔÏÍ FAQ ÉÌÉ ÈÏÔÉÔÅ ÞÔÏ-ÔÏ × ÎÅÇÏ ÄÏÂÁ×ÉÔØ, ÐÏÖÁÌÕÊÓÔÁ, ÎÁÐÉÛÉÔÅ ÎÁÍ ÐÏ ÁÄÒÅÓÕ <FAQ@FreeBSD.ORG>. íÙ ÖÄ£Í ×ÁÛÉ ÏÔÚÙ×Ù É ÐÏÖÅÌÁÎÉÑ, ÞÔÏÂÙ Ó ×ÁÛÅÊ ÐÏÍÏÝØÀ ÓÄÅÌÁÔØ ÜÔÏÔ ÄÏËÕÍÅÎÔ ÅÝ£ ÌÕÞÛÅ! FreeBSD Core Team Jordan Hubbard òÁÚÌÉÞÎÙÅ ÕÐÏÒÑÄÏÞÅÎÉÑ É ÄÏÂÁ×ÌÅÎÉÑ × FAQ. Doug White òÁÂÏÔÁ ÓÏ ÓÐÉÓËÏÍ ÒÁÓÓÙÌËÉ freebsd-questions Joerg Wunsch òÁÂÏÔÁ Ó ÔÅÌÅËÏÎÆÅÒÅÎÃÉÑÍÉ Usenet Garrett Wollman òÁÚÄÅÌ Ï ÓÅÔÉ É ÆÏÒÍÁÔÉÒÏ×ÁÎÉÅ Jim Lowe éÎÆÏÒÍÁÃÉÑ Ï ÐÒÏÔÏËÏÌÅ ÍÎÏÇÏÁÄÒÅÓÎÏÊ ÐÅÒÅÄÁÞÉ Peter da Silva òÁÂ-ÎÁÂÏÒÝÉË Andrey Zakhvatov ðÅÒÅ×ÏÄ ÎÁ ÒÕÓÓËÉÊ ÑÚÙË The FreeBSD Team ïÈÉ, ×ÚÄÏÈÉ, ÓÔÏÎÙ, ÄÏÂÁ×ÌÅÎÉÑ é ×ÓÅÍ ÏÓÔÁÌØÎÙÍ, ÏÓÔÁ×ÛÉÍÓÑ ÎÅÉÚ×ÅÓÔÎÙÍÉ, ÎÁÛÉ ÇÌÕÂÏÞÁÊÛÉÅ ÉÚ×ÉÎÅÎÉÑ É ÓÅÒÄÅÞÎÙÅ ÂÌÁÇÏÄÁÒÎÏÓÔÉ! diff --git a/zh_TW.Big5/FAQ/FAQ.sgml b/zh_TW.Big5/FAQ/FAQ.sgml index d64a3916ec..3f1d381e04 100644 --- a/zh_TW.Big5/FAQ/FAQ.sgml +++ b/zh_TW.Big5/FAQ/FAQ.sgml @@ -1,70 +1,70 @@ - + %includes; ]>
FreeBSD 2.X ±`¨£°Ýµª¶° FreeBSD ¤å¥ó­pµe - $Date: 1999-09-06 07:19:24 $ + $FreeBSD$ ³o¥÷¤å¥ó¬O FreeBSD 2.X ªº±`¨£°Ýµª¶°¡C°£«D¦³¯S§O¥[µù¡A§_«h³o¨Ç±ø¥Ø³£¾A ¥Î©ó FreeBSD 2.0.5 ¤Î¥H«áªºª©¥»¡C¦pªG±ø¥Ø¤º®e¤¤¦³ <XXX> «h¬O©|¥¼ §¹¦¨ªº³¡¥÷¡C¦pªG±z¹ï¨ó§U¥»­pµeªº¶i¦æ¦³¿³½ìªº¸Ü¡A½Ð±H¤@«Ê¹q¤l¶l¥ó¨ì FreeBSD ¤å¥ó­pµeªº mailing list ¡C ±z¥i¥H±q ®³¨ì³o¥÷¤å¥óªº³Ì·sª©¥»¡C±z¤]¥i¥H §Q¥Î HTTP ¨Ó¤U¸ü¥»¤å¥óªº ¡A ¡A ¡A ©Î¬O ¡A©Î¬O¸g¥Ñ ¨Ó¤U¸ü gzip'd ªºª©¥»¡C±z©Î³\¤]·Q ¡C &preface; &install; &hardware; &troubleshoot; &commercial; &applications; &kernelconfig; &admin; &x; &network; &serial; &misc; &hackers; &acknowledgments;
diff --git a/zh_TW.Big5/books/faq/book.sgml b/zh_TW.Big5/books/faq/book.sgml index 32c349ad00..ab9af8be1e 100644 --- a/zh_TW.Big5/books/faq/book.sgml +++ b/zh_TW.Big5/books/faq/book.sgml @@ -1,7542 +1,7542 @@ FreeBSD 2.X ±`¨£°Ýµª¶° FreeBSD ¤å¥ó­pµe -$Date: 1999-09-06 06:53:43 $ +$FreeBSD$ ³o¥÷¤å¥ó¬O FreeBSD 2.X ªº±`¨£°Ýµª¶°¡C°£«D¦³¯S§O¥[µù¡A§_«h³o¨Ç±ø¥Ø³£¾A ¥Î©ó FreeBSD 2.0.5 ¤Î¥H«áªºª©¥»¡C¦pªG±ø¥Ø¤º®e¤¤¦³ <XXX> «h¬O©|¥¼ §¹¦¨ªº³¡¥÷¡C¦pªG±z¹ï¨ó§U¥»­pµeªº¶i¦æ¦³¿³½ìªº¸Ü¡A½Ð±H¤@«Ê¹q¤l¶l¥ó¨ì FreeBSD ¤å¥ó­pµeªº mailing list <freebsd-doc@FreeBSD.org>¡C ±z¥i¥H±q FreeBSD World Wide Web server ®³¨ì³o¥÷¤å¥óªº³Ì·sª©¥»¡C±z¤]¥i¥H §Q¥Î HTTP ¨Ó¤U¸ü¥»¤å¥óªº ¯Â¤å¦rª©¡A postscript ª©¡A PDF ª©¡A ©Î¬O HTML ª©¡A©Î¬O¸g¥Ñ FreeBSD FTP ¯¸ ¨Ó¤U¸ü gzip'd ªºª©¥»¡C±z©Î³\¤]·Q ¦b±`¨£°Ýµª¶°¤¤·j´M¸ê®Æ¡C «e¨¥ Åwªï¨Ó¨ì FreeBSD 2.X FAQ¡I ¸ò¨ä¥L Usenet ¤Wªº FAQ ¤@¼Ë¡A³o¥÷¤å¥ó¥D­n²[»\¤F¦³Ãö FreeBSD ³o®M§@ ·~¨t²Î³Ì±`³Q°Ý¨ìªº°ÝÃD (·íµM¥]¬A¤F¦^µª¡I)¡CÁöµM»¡§Ú­Ì¥»¨Óªº¥Øªº¬O¬°¤F ´î¤Öºô¸ôÀW¼eªº®ö¶O¥H¤ÎÁ×§K¦P¼Ëªº°ÝÃD¤@¦A¥X²{¡A¦ý¬O FAQ ¤w¸g³Qµø¬°¬O¤@ ºØ«Ü¦³»ù­Èªº¸ê°T¤F¡C §Ú­Ì¤w¸g¾¨¥i¯à¦a¨Ï³o¥÷ FAQ §óÂ×´I¤F¡F¦pªG±z¹ï¦p¦ó¨Ï¨ä§ó¶i¨B¦³¥ô¦ó «ØÄ³¡A½ÐÀH®É±H¹q¤l¶l¥óµ¹ FAQ ºûÅ@ªÌ¡C ¤°»ò¬O FreeBSD¡H ²³æ¦a¨Ó»¡¡AFreeBSD 2.X ¬O¤@®M®Ú¾Ú U.C. Berkeley's 4.4BSD-lite release for the i386 platform ©Ò§¹¦¨ªº UN*X-like §@·~¨t²Î¡C¥¦¦P®É¤]¶¡ ±µ¨Ï¥Î¤F William Jolitz ²¾´Ó¨ì i386 ¤Wªº U.C. Berkeley's Net/2¡A¤]´N¬O 386BSD¡C¤£¹L²{¦b 386BSD ªºµ{¦¡½X¥u³Ñ¤U·¥¤Ö¼ÆÁÙ¯d¦s¦b FreeBSD ¤¤¡C±z¥i ¥H¦b FreeBSD ­º­¶ §ä¨ì¦³Ãö¤° »ò¬O FreeBSD ¥H¤Î¥¦¥i¥HÀ°±z°µ¨Ç¤°»òªº¬ÛÃö¸ê°T¡C FreeBSD ¤w³Q¼sªx¦a³Q¥@¬É¦U¦aªº¤½¥q¦æ¸¹¡AISP¡A¬ã¨s¤H­û¡A¹q¸£±M®a¡A¾Ç ¥Í¡A¥H¤Î®a®x¥Î¤á©Ò¨Ï¥Î¡A¥Î¦b¤u§@¡A±Ð¨|¡A¥H¤Î®T¼Ö¤W¡C±z¥i¥H¦b FreeBSD Gallery¬Ý¨ì¤@¨Ç¦³ Ãö¥L­Ìªº¸ê®Æ¡C ¦pªG·Q¬ÝÃö©ó FreeBSD §ó²`¤Jªº¸ê®Æ¡A½Ð¬Ý FreeBSD ¨Ï¥Î¤â¥U¡C µo®i FreeBSD ªº¥Øªº¬O¤°»ò¡H FreeBSD ­pµeªº¥Øªº¬O´£¨Ñ¥i¥H¥ô·N¨Ï¥Î¥B¨S¦³­­¨îªº³nÅé¡C§Ú­Ì¦bµ{¦¡½X (¥H¤Î­p±Þ¥»¨­) ¤W¥I¥X¤F¤j¶q¤ß¦å¡AÁöµM§Ú­Ì¨S¦³¯S§O±j½Õ¡A¤£¹L¨Ã¤£­n¨D¥ô ¦óª÷¿ú¤Wªº¦^õX¡C§Ú­Ì¬Û«H§Ú­Ì­º­nªº``¥ô°È''´N¬O´£¨Ñµ{¦¡½Xµ¹¨C¤@­Ó¨Ï¥Î ªÌ¡A¤£ºÞ¥L­Ìªº¥Øªº¬O¤°»ò¡F³o»ò¤@¨Ó¡A³o¨Çµ{¦¡½X¤~¯à³Q¥Î¦b³Ì¦h¦a¤è¡A¤] ¤~¯àµo´§¥¦­Ì³Ì¤jªº§Q¯q¡C§Ú­Ì¬Û«H³o´N¬O¦Û¥Ñ³nÅé³Ì°ò¥»ªº¥Ø¼Ð¤§¤@¡A¦Ó¥B§Ú ­Ì·|ºÉ¥þ¤O¥h¤ä«ù¥¦¡C ¦b§Ú­Ì source tree ¤¤¦³³¡¥÷ªºµ{¦¡½X¬O±Ä¥Î©Ò¿×ªº GPL ©Î¬O LGPL ª©Åv «Å§i¡AÁöµM³o¨Çª©Åv«Å§i¬O¥Î¨Ó«O»Ù¦Ó«D­­¨î¨Ï¥ÎªÌªºÅv§Q¡A²¦³º¬O¤£¨º»ò¦Û¥Ñ ¤F¨Ç¡C¥Ñ©ó³o¨Ç GPL ªº³nÅé¦b°Ó·~¨Ï¥Î¤W·|¤Þ°_«D±`½ÆÂøªºª©Åv°ÝÃD¡A¦]¦¹¥u ­n¦³¾÷·|¡A§Ú­Ì·|ºÉ¶q¥H±Ä¥Î¤ñ¸ûÃPªº BSD ª©Åvªº³nÅé¨Ó¨ú¥N³o¨Ç GPL ª©Åv«Å §iªº³nÅé¡C ¬°¤°»ò­n¥s°µ FreeBSD¡H ±z¥i¥H§K¶O¨Ï¥Î¥¦¡A§Y¨Ï¬O¥Î©ó°Ó·~¥Î³~¡C ¾ã­Ó FreeBSD §@·~¨t²Î§¹¾ãªº­ì©lµ{¦¡³£¥i¥H§K¶O¨ú±o¡A¦Ó¥B¦b¨Ï¥Î ¤Î´²§G¦U¤è­±¤]¥u¨ü¨ì³Ì¤pªº­­¨î (¤£½×¬O§_¥Î©ó°Ó·~¥Î³~)¡C ¥ô¦ó¤H³£¥i¥H¦Û¥Ñ¦a§â¥L¹ï¨t²Îªº§ï¨}©Î¿ù»~­×¥¿ªºµ{¦¡½X¥[¤J source tree ¤§¤¤ (·íµM­n²Å¦X´X­Ó¥ý¨M±ø¥ó)¡C ¦pªGŪªÌ±zªº¥À»y¤£¬O­^»yªº¸Ü¡A±z­n¯S§Oª`·N³o¸Ìªº``free''¨âºØ¥Îªkªº ·N«ä¬O¤£¤@¼Ëªº¡G¤@ºØªº·N«ä¬O``§K¶O''¡A¥t¤@ºØªº·N«ä¬O``¦Û¥Ñ''¡C±z¥i¥H®³ FreeBSD ¥h°µ¥ô¦ó±z·Q­n°µªº¨Æ¡A°£¤F¤@¨Ç¨Ò¥~¡A¨Ò¦p±z«ÅºÙ FreeBSD ¬O±z¼g ªº¡C ³Ì·sª©ªº FreeBSD ¬O¨º¤@ª©¡H 3.2 ¬O¥Ø«e³Ì·sªº stable ª©¡F¥¦©ó 1999 ¦~ 5 ¤ëµo¦æ¡C ¥¦¦P®É¤]¬O¥Ø«e³Ì·sªº release ª©¡C ²³æªº»¡¡A-stable ªº¥D­n¶D¨D¹ï¶H¬O¹ï©óí©w©Ê¤Î§CÅܲ§©Êªº»Ý¨D »·³Ó¹L¹ï³Ì·s -current snapshot ¤¤¯S§O·s¥\¯àªº»Ý¨D¡A¨Ò¦p ISP ©Î¤½ ¥q¦æ¸¹ªº¨Ï¥ÎªÌ¡C³o¨âºØ "branch" ³£¦³¥i¯à·|²£¥Í release ª©¡A¦ý¥u¦³·í§A ¯à±µ¨ü -current »·¤ñ -stable ®e©ö§ó°Ê³o¤@ÂI¡A¤~À³¸Ó¥Î -current¡C Release ª©­n¨C´X­Ó¤ë¤~·|µo¦æ¤@¦¸¡A ÁöµM¦³«Ü¦h¤HÂǥѭì©l½X¨Ó©M FreeBSD ªº³Ì·s°ÊºA¦P¨B¡]¨£ FreeBSD-current ©M FreeBSD-stable ªº¬ÛÃö°ÝÃD¡^¡A¦ý³o¼Ë·|­n¬YºØµ{«×ªº¥I¥X¡A¦]¬°­ì ©l½X¬O·|¤£Â_§ó°Êªº¡C ¤°»ò¬O FreeBSD-current¡H FreeBSD-current «üªº¬O¥¿ ¦bµo®i¤¤ªºª©¥»¡A¥¦²×±N¦b¾A·íªº®É¾÷¦¨¬° 4.0-RELEASE¡C¥¦¹ê¦b¬O¥u¾A¦Xµ¹ ¨t²Îµo®iªÌ¥H¤Î¦³¼Ý¤Oªº·~¾l·R¦nªÌ¨Ï¥Î¡C¦pªG·Q­n±o¨ì¦³Ãö¦p¦ó¨Ï¥Î -current ªº²`¤J¸ê°T¡A½Ð°Ñ¦Ò ¨Ï¥Î¤â¥U ªº ¬ÛÃö³¡¥÷¡C ¦pªG±z¹ï§@·~¨t²Î¥»¨­¨Ã¤£¬O«Ü¼ô±x¡A©Î¬O±z¨S¿ìªk¤À¿ë±z¹J¨ìªº°ÝÃD¬O¯u ªºµo¥Í¤F°ÝÃD¥ç©Î¬O¼È®É©Êªº¤pª¬ªp¡A¨º»ò±z´N¤£À³¸Ó¨Ï¥Î FreeBSD-current¡C ³o­Ó¤À¤äªºµ{¦¡½X¦³®É­ÔÅܰʱo«Ü§Ö¡A¦Ó¥B¥i¯à·|¦]¦¹¦Ó¨Ï±z¦³¦n´X¤Ñªº®É¶¡µL ªk§ó·s±zªº¨t²Î¡C§Ú­Ì°²³]¨Ï¥Î FreeBSD-current ªº¨Ï¥ÎªÌ³£¦³¯à¤O¥h¤ÀªR¥L ­Ì©Ò¹J¨ìªº°ÝÃD¨Ã¥B¥u¦^³ø¯u¥¿ªº°ÝÃD¦Ó«D¤pª¬ªp¡C¦pªG±z¦b -current mailing list ¤¤´£¨ìÃþ¦ü``make world ³y¦¨¤@¨Ç¦³Ãö groups ªº¿ù»~''ªº°ÝÃD¡A ¦³®É­Ô·|³Q¨ä¥L¤H»´µø¡C ¦³®É­Ô§Ú­Ì·|¬°³o¨Ç -current µo®i¤¤ªºµ{¦¡½Xµoªí snapshot¡A§ó¦³¬ÆªÌ¡A§Ú­Ì ÁÙ·|µoªí CDROM «¬¦¡ªº snapshot¡Cµoªí³o¨Ç snapshot ªº¥Øªº¦b©ó¡G ´ú¸Õ³Ì·sª©ªº¦w¸Ëµ{¦¡¡C ´£¨Ñ¤@­Ó²³æªº¤èªkµ¹¨º¨Ç³ßÅw¨Ï¥Î -current ¦ý¬O¨S¦³®É¶¡©MÀW¼e¥h ¨C¤Ñª@¯Åªº¨Ï¥ÎªÌ¡C ¬°¤F´À§Ú­Ìµo®i¤¤ªºµ{¦¡«O¯d¤@­Ó©T©wªº°Ñ¦ÒÂI¡A¥H¨¾¤î§Ú­Ì¥¼¨Ó³y¦¨ ¤£©¯¡C(ÁöµM CVS ¥i¥H¥¿±`¦a¨¾¤îÃþ¦ü³oºØªº¥i©È¨Æ¥ó :) ¬°¤F½T«O©Ò¦³»Ý­n´ú¸Õªº·s¥\¯à³£¥i¥H±o¨ì³Ì¦hªº´ú¸Õ¡C µL½×¦p¦ó¡A§Ú­Ì¤£«OÃÒ snapshot ªº«~½è¡C¬°¤Fí©w©Ê¡A±z³Ì¦n¨Ï¥Î§¹¥þ release ªºª©¥»¡C ±z¥i¥Hª½±µ±q ftp://current.FreeBSD.org/pub/FreeBSD/ ¨ú±o snapshot release¡A¤£ºÞ¬O 4.0-current ©Î¬O 3.0-stable¡A¥­§¡¨C¤Ñ³£·|²£¥Í¤@­Ó snapshot ªºª©¥»¡C ¤°»ò¬O FreeBSD-stable¡H ¦^·¹¨ì FreeBSD 2.0.5 ­èµoªíªº®É­Ô¡A§Ú­Ì¨M©w§â FreeBSD ªº release ¤À¦¨¨â¤ä¡C¤@¤ä¥s°µ-stable¡A §Ú­Ì¥u¹ï¥¦°µ¿ù»~­×¥¿¤Î¤p´T«×ªº­×§ï (³o¬Oµ¹ ISP ©M°Ó·~¤½¥qµ¥¹ï¹êÅ礤¥\ ¯à¤£·P¿³½ìªº³æ¦ì©Ò¨Ï¥Îªº)¡C¥t¥~¤@¤ä¥s°µ -current¡A±q 2.0 ª©µo¦æ¥H «á´N¤£¶¡Â_¦a´ÂµÛ 4.0-RELEASE (¥H¤Î¥H«áªºª©¥») «e¶iµÛ¡C¤U­±´N¬Oª©¥»ºt ¶iªº¥Ü·N¹Ï¡G 2.0 | | | [2.1-stable] *BRANCH* 2.0.5 -> 2.1 -> 2.1.5 -> 2.1.6 -> 2.1.7.1 [2.1-stable ends] | (Mar 1997) | | | [2.2-stable] *BRANCH* 2.2.1 -> 2.2.2-RELEASE -> 2.2.5 -> 2.2.6 -> 2.2.7 -> 2.2.8 [end] | (Mar 1997) (Oct 97) (Apr 98) (Jul 98) (Dec 98) | | 3.0-SNAPs (started Q1 1997) | | 3.0.0-RELEASE (Oct 1998) | | [3.0-stable] *BRANCH* 3.1 (Feb 1999) -> 3.2 -> ... future 3.x releases ... | (May 1999) | \|/ + [4.0-current continues] -current ³o­Ó¤À¤ä¥¿½wºC¦a´Â¦V 4.0 ¥H¤Î¥H«áªºª©¥»«e¶iµÛ¡A¦Ó¤§«eªº 2.2-stable ¤À¤ä«hÀHµÛ 2.2.8 ªºµoªí¦Ó¥\¦¨¨­°h¡C3.0-stable ±N·|¦¨¬°¥D­n ªºµo®i½u¡A3.3 ±N·|¦b 1999 ¦~²Ä¤T©u¤½¥¬¡A4.0 ¬O¥Ø«eªº "current ¤À¤ä"¡A 4.0 ªº²Ä¤@¦¸ release À³¸Ó·|¦b 2000 ¦~²Ä¤@©u¡C ·sªº FreeBSD ±N©ó¤°»ò®É­Ô±À¥X¡H ¤@¯ë¦Ó¨¥¡A·í FreeBSD core team »{¬°¤w¸g²Ö¿n¤F¨¬°÷¦hªº·s¥\¯à©M¿ù»~­× ¥¿¡A¦Ó¥B³o¨Ç§ó°Ê¨Ã¤£¼vÅT¨t²Îí©w«×ªº®É­Ô¡A¥L­Ì¤~·|±À¥X·sª©ªº FreeBSD¡C ÁöµMµ¥«Ý³o¨Ç¦nªF¦èªº®É¶¡¥O¤H¦³ÂIªq³à¡A¦ý¬O¤j¦h¼Æªº¨Ï¥ÎªÌ³£»{¬°³oºØÂÔ·V ªººA«×¬O FreeBSD ³Ì¦nªº³¡¥÷¤§¤@¡C ¥­§¡¦Ó¨¥¡A§Ú­Ì¨C¥|­Ó¤ëµo¦æ¤@¦¸ release¡C ¬°¤Fº¡¨¬¨º¨Ç»Ý­n (©Î·Q­n) ¨ë¿Eªº¨Ï¥ÎªÌ¡A³q±` SNAP ªºµoªí¬O¬Û·íÀWÁc ªº¡A¯S§O¬O¦b release µoªí¤§«e¤@­Ó¤ë¥ª¥k¡C FreeBSD ¥u¯à¦b PC ¤W¨Ï¥Î¶Ü¡H FreeBSD 3.x ¥Ø«e¥i¥H¦b DEC Alpha ¤W¨Ï¥Î¡A´N¹³¦b x86 ¬[ ºc¤U¨Ï¥Î¤@¼Ë¡C§Ú­Ì¹ï²¾´Ó¨ì SPARC ¤W¤]¦³¬Û·íªº¿³½ì¡A¤£¹L³o³¡¥÷ªº­pµeÁÙ ¨S¦³§¹¥þ©ú®Ô¤Æ¡C ¦pªG±zªº¾÷¾¹¤£¬O¥H¤W³o¨Ç¬[ºc¡A¦Ó¥B±z²{¦b´N­nªº¸Ü¡A§Ú­Ì«ØÄ³±z°Ñ¦Ò NetBSD ©Î¬O OpenBSD¡C ½Ö­t³d FreeBSD ªºµo®i¡H ¦pªG¬O¤@¨Ç¦³Ãö FreeBSD ­pµeªºÃöÁä©Ê¨M©w¡A¹³¬O¾ã­Ó­pµeªº¨«¦V©Î¬O¨M ©w½Ö¥i¥H§ï source tree ¸Ìªºµ{¦¡½X³oÃþªº¨Æ¡A¬O¥Ñ¤@­Ó¬ù 15 ­Ó¤H©Ò²Õ¦¨ªº core team ¨Ó¨M©w¡C¦Ó¦³ ¥t¤@¸s¬ù 150 ­Ó commiters ¦³Åv§Q¥i¥Hª½±µ­×§ï FreeBSD ªº source tree¡C µL½×¦p¦ó¡A¤j¦h¼Æªº§ïÅܳ£·|¨Æ«e¦b mailing lists ¥ý°Q½×¹L¡A¦Ó¥B¨C­Ó¤H³£¥i¥H°Ñ»P °Q½×¡C §Ú­n¦p¦ó¨ú±o FreeBSD¡H ¨C­Ó FreeBSD ªº­«­nª©¥»³£¥i¥H¸g¥Ñ°Î¦W ftp ±q FreeBSD FTP site ¨ú±o¡C ¦pªG¬O¥Ø«eªº 2.2-stable release¡A2.2.8R¡A½Ð¬Ý 2.2.8-RELEASE ³o­Ó¥Ø¿ý¡C ¦pªG¬O¥Ø«eªº 3.0-stable release¡A3.0-RELEASE¡A½Ð¬Ý 3.0-RELEASE ³o­Ó¥Ø¿ý¡C ÀHµÛ RELENG_2_2 ¤À¤ä («á¨Óªº 2.2.8) ºCºC¦a¶i¤JºûÅ@¶¥¬q¡A§Ú­Ì¨C ¤Ñ³£·|µo¦æ 2.2 Snapshot¡C§Ú­Ì¥Ø«e¥¿§´µ½ºûÅ@µÛ RELENG_2_2 ³o­Ó¤À¤ä¡A°£«D ¹ï¨t²Î¦w¥þ©Î¬O¨t²Îªº¥i¾a©Ê¦³©Ò¼W±j¡A§_«h§Ú­Ì±N¤£¦A§ó°Ê¡C ÀHµÛ RELENG_3 ¤À¤ä («á¨Óªº 3.0-release) ºCºC´ÂµÛ 3.2-RELEASE µo®i¡A§Ú­Ì¤]·|¨C¤Ñµo¦æ 3.0 Snapshot¡C -current ¤À¤ä¨C¤Ñ³£·|±À¥X 4.0 Snapshot¡A¯Âºé¬O¬°¤F¼ö¤ßªº´ú¸ÕªÌ¥H¤Îµo®i¤H­û©Ò´£¨Ñªº¡C FreeBSD ªº CDROM ¥i¥H±q¤U¦C¦a¤è¨ú±o : Walnut Creek CDROM 4041 Pike Lane, Suite F Concord, CA 94520 USA Orders: +1 800 786-9907 Questions: +1 925 674-0783 FAX: +1 925 674-0821 email: WC Orders address WWW: WC Home page ¦pªG±z¦b¿D¬w¡A±z¥i¥H§ä¡G Advanced Multimedia Distributors Factory 1/1 Ovata Drive Tullamarine, Melbourne Victoria Australia Voice: +61 3 9338 6777 CDROM Support BBS 17 Irvine St Peppermint Grove WA 6011 Voice: +61 9 385-3793 Fax: +61 9 385-2360 ¦b­^°ê¡G The Public Domain & Shareware Library Winscombe House¡ABeacon Rd Crowborough Sussex. TN6 1UL Voice: +44 1892 663-298 Fax: +44 1892 667-473 §Ú¦b¨º¸Ì¥i¥H§ä¨ì¦³Ãö FreeBSD mailing lists ªº¸ê°T¡H ±z¥i¥H¦b ¨Ï¥Î¤â¥U - mailing-lists ¤¤§ä¨ì§¹¾ãªº¸ê°T¡C ¦b¨º¸Ì¥i¥H§ä¨ì FreeBSD Y2K ªº¬ÛÃö¸ê°T¡H ±z¥i¥H¦b FreeBSD Y2K ±MÄæ ¨ú±o§¹¾ãªº¸ê°T¡C ¦³¤°»ò°Q½× FreeBSD ªº·s»D°Q½×¸s²Õ¶Ü¡H ±z¥i¥H¦b ¨Ï¥Î¤â¥U - ·s»D°Q½×¸s²Õ ¤¤§ä¨ì§¹¾ãªº¸ê°T¡C ¦³±Mªù°Q½× FreeBSD ªº IRC ÀW¹D¶Ü¡H ¬Oªº¡A¤j³¡¥÷¥D­nªº IRC ºô¸ô¥D¾÷³£´£¨Ñ¤F FreeBSD ªº²á¤ÑÀW¹D¡G EFNet ©Ò´£¨Ñªº #FreeBSD ÀW¹D¬O¤@­Ó FreeBSD ªº½× ¾Â¡A¦ý¬O±z¥i¯àµLªk±q¨ºÃä±o¨ì§Þ³N¤è­±ªº¤ä´©¡A±z¤]§O·Q¦b¨ºÃä§ä¨ì¥ô¦ó ¤H¥i¥HÀ°±zÁ×§K±¼¾\Ū man page ¥H¤Î¦Û¤v¬ã¨sªºµh­W¡C¨º¬O¤@­Ó¥H²á¤Ñ¬° ¥DªºÀW¹D¡A¦b¨ºÃä²á¨ì FreeBSD ©M²á¨ì©Ê¡B¹B°Ê¡B¥H¤Î®Ö¤lªZ¾¹ªº¾÷·|¬O ¤@¼Ë°ªªº¡C §Ú­Ì¤w¸gĵ§i¹L±z¤F¡C ±z¥i¥H¸g¥Ñ irc.chat.org ¨Ó³s½u¡C DALNET ©Ò´£¨Ñªº #FreeBSD ÀW¹D¡A¦b¬ü°ê¥i¥H¸g¥Ñ irc.dal.net ¨Ó³s½u¡A¦b¼Ú¬w¥i¥H¸g¥Ñ irc.eu.dal.net ¨Ó³s½u¡C UNDERNET ©Ò´£¨Ñªº #FreeBSD ÀW¹D¡A¦b¬ü°ê¥i¥H¸g¥Ñ us.undernet.org ¨Ó³s½u¡A¦b¼Ú¬w¥i¥H¸g¥Ñ eu.undernet.org ¨Ó³s½u¡C ³Ì«á¡A±z¤]¥i¥H¥[¤J BSDNET ©Ò´£¨Ñªº #FreeBSD ÀW ¹D¡A³o¬O¤@­Ó¤p«¬ªº BSD ±M¥Î²á¤Ñºô¸ô¡A¥i¥H¸g¥Ñ irc.FreeBSD.org ¨Ó³s½u¡C ¥H¤Wªº³o¨ÇÀW¹D³£¬O¤£¦Pªº¡A¦Ó¥B¥¦­Ì¨Ã¨S¦³¤¬¬Û³s³q¡C¥¦­Ì²á¤Ñªº¤è¦¡¤] ¤£¾¨¬Û¦P¡A©Ò¥H±z¥i¯à¨C­Ó³£­n¥hÀ|¸Õ¤@¤U¡A¥H§ä¨ì³Ì¾A¦X±zªºÀW¹D¡C FreeBSD ¬ÛÃö®ÑÄy ±z©Î³\¥i¥H¸Õ¸Õ¬Ý doc mailing list¡G <freebsd-doc@FreeBSD.org> ¤Wªº FreeBSD ¤å¥ó­pµe (¦pªG±z ¯à¥[¤J³o¬O­pµe¨º¬O¦A¦n¤£¹Lªº¤F)¡C³o­Ó mailing list ¬O¥Î¨Ó°Q½× FreeBSD ¤å¥óªº¡C¦pªG±z·Q­nµo°Ý°ÝÃDªº¸Ü¡A§Ú­Ì¤]¦³ questions mailing list¡G <freebsd-questions@FreeBSD.org> ¡C ±z¤]¥i¥H±q FreeBSD ¨Ï¥Î¤â¥U ¨ú±o FreeBSD``¨Ï¥Î¤â¥U''¡C½Ðª`·N¡A³o¥÷¤å¥ó¤´³B©ó»s§@¶¥¬q¡A¦³«Ü¦h³¡¥÷³£ ÁÙ¨S¦³§¹¦¨¡C ¦³Ãö FreeBSD ªº®ÑÄy¤¤¡A³Ì¦nªºÀ³¸Ó´N¬O Greg Lehey µÛ§@¡AWalnut Creek CDROM Books ¥Xª©ªº``The Complete FreeBSD''¤F¡C²{¦b³o¥»®Ñ¤w¸g¥X¨ì²Ä¤Gª© ¤F¡AÁ`¦@ 1750 ­¶¥ª¥k¡A¤º®e¥]¬A¦w¸Ë¡A¨t²ÎºÞ²z«ü¾É¡Aµ{¦¡¦w¸Ë¨ó§U¡A¥H¤Î manual pages¡C³o¥»®Ñ (¥H¤Î³Ì·sª©ªº FreeBSD release) ¥i¥H¦V Walnut Creek¡A CheapBytes¡A©Î¬O¥ô¦ó¤@¶¡ ±z³ßÅwªº®Ñ§½­qÁÊ¡C¥Lªº ISBN ¸¹½X¬O 1-57176-227-2¡C µM¦Ó¡A¦]¬° FreeBSD 2.2.X ¬O¥H 4.4BSD-Lite2 ¬°°ò¦¨Óµo®iªº¨t²Î¡A©Ò¥H ¤j³¡¥÷ 4.4BSD ªº¤â¥U³£¾A¥Î©ó FreeBSD 2.2.X¡CO'Reilly and Associates ¥Xª©¤F¤U¦C¤â¥U¡G 4.4BSD System Manager's Manual By Computer Systems Research Group, UC Berkeley 1st Edition June 1994, 804 pages ISBN: 1-56592-080-5 4.4BSD User's Reference Manual By Computer Systems Research Group, UC Berkeley 1st Edition June 1994, 905 pages ISBN: 1-56592-075-9 4.4BSD User's Supplementary Documents By Computer Systems Research Group, UC Berkeley 1st Edition July 1994, 712 pages ISBN: 1-56592-076-7 4.4BSD Programmer's Reference Manual By Computer Systems Research Group, UC Berkeley 1st Edition June 1994, 886 pages ISBN: 1-56592-078-3 4.4BSD Programmer's Supplementary Documents By Computer Systems Research Group, UC Berkeley 1st Edition July 1994, 596 pages ISBN: 1-56592-079-1 ±z¥i¥H¦b WWW ¤W§ä¨ì¬ÛÃö¤¶²Ð¡G 4.4BSD books description¡C¦]¬°¾P°â±¡§Î¨Ã¤£¬O«Ü¦n¡A©Ò¥H±z¥i¯à«Ü Ãø¥h¨ú±o³o¨Ç®ÑÄy¡C ¦pªG±z·Q¹ï 4.4BSD ªº®Ö¤ß¬[ºc¦³§ó²`¼hªº»{ÃÑ¡A±zµ´¤£¯à¿ù¹L³o¥»®Ñ : McKusick, Marshall Kirk, Keith Bostic, Michael J Karels, and John Quarterman. The Design and Implementation of the 4.4BSD Operating System. Reading, Mass. : Addison-Wesley, 1996. ISBN 0-201-54979-4 ¤@¥»¦³Ãö¨t²ÎºÞ²zªº¦n®Ñ¡G Evi Nemeth, Garth Snyder, Scott Seebass & Trent R. Hein, ``Unix System Administration Handbook'', Prentice-Hall, 1995 ISBN: 0-13-151051-7 NOTE ½Ð½T»{±z¶R¨ìªºªº½T¬O²Ä¤Gª©¡A¥¦¬O¬õ¦â®Ñ¥Öªº¡A²Ä¤@ª©ªº¤£¬O¡C ³o¥»®Ñ²[»\¤F¤@¨Ç°ò¦ªºªF¦è¡A¥]¬A TCP/IP¡ADNS¡ANFS¡ASLIP/PPP¡A sendmail¡AINN/NNTP¡Aprinting¡Aµ¥¡C³o¥»®ÑÆZ¶Qªº (¤j¬ù US$45-$55) ¡A¤£¹L¥¦ªº½T¦³³o­Ó»ù­È¡C¥¦¤]ªþ¤F¤@¤ù¤º§t¤@¨Ç ¤u¨ãµ{¦¡­ì©l½Xªº CDROM¡F¤j³¡¥÷ªºªF¦è¦b FreeBSD 2.2.6R ªº CDROM ¸Ì¤]¦³ ( ³q±` FreeBSD CDROM ¸Ìªº¬O¤ñ¸û·sª©ªº) ¡C §Ú­n¦p¦ó¥h¦s¨ú±z­Ìªº¿ù»~¦^³ø¸ê®Æ®w©O¡H ©Ò¦³¨Ï¥ÎªÌ open ªºÅܧó­n¨D³£¥i¥H¸g¥Ñ§Ú­Ì web ¬É­±ªº PR submission ¤Î query ¨Ó¬d¸ß (©Î¬O¦^³ø) §Ú­Ìªº¿ù»~¦^³ø¸ê®Æ®w¡Csend-pr(1) ³o­Ó«ü¥O¤] ¥i¥H¸g¥Ñ¹q¤l¶l¥ó¨Ó¦^³ø¿ù»~©Î¬O­n¨DÅܧó¡C ¨º¸Ì¥i¥H§ä¨ì ASCII ©Î¬O PostScript ª©ªº FAQ¡H ³Ì·sªº FAQ ¥i¥H±q FreeBSD ºô¯¸©Î¬O¥ô¦ó¤@­Ó mirror ¯¸»O¨ú±o¡A¤£½×¬O PostScript ©Î¬O¯Â¤å¦rªº (¥]¬A 7 bit ASCII ¥H¤Î 8-bit Latin1) ³£¦³¡C PostScript ®æ¦¡ (¤j¬ù 370KB)¡G http://www.FreeBSD.org/FAQ/FAQ.ps ASCII ®æ¦¡ (¤j¬ù 220KB)¡G http://www.FreeBSD.org/FAQ/FAQ.ascii ISO 8859-1 ®æ¦¡ (¤j¬ù 220KB)¡G http://www.FreeBSD.org/FAQ/FAQ.latin1 ¨º¸Ì¥i¥H§ä¨ì ASCII ©Î¬O PostScript ª©ªº¨Ï¥Î¤â¥U¡H ³Ì·sªº FAQ ¥i¥H±q FreeBSD ºô¯¸©Î¬O¥ô¦ó¤@­Ó mirror ¯¸»O¨ú±o¡A¤£½×¬O PostScript ©Î¬O¯Â¤å¦rªº (¥]¬A 7 bit ASCII ¥H¤Î 8-bit Latin1) ³£¦³¡C PostScript ®æ¦¡ (¤j¬ù 1.7MB)¡G http://www.FreeBSD.org/handbook/handbook.ps ASCII ®æ¦¡ (¤j¬ù 1080KB)¡G http://www.FreeBSD.org/handbook/handbook.ascii ISO 8859-1 ®æ¦¡ (¤j¬ù 1080KB)¡G http://www.FreeBSD.org/handbook/handbook.latin1 ASCII ª©ªº¨Ï¥Î¤â¥U¤£¬O¯Â¤å¦rÀÉ¡I ¬Oªº¡AASCII ©M Latin1 ®æ¦¡ªº FAQ ¥H¤Î¨Ï¥Î¤â¥UÄY®æ¨Ó»¡¨Ã¤£¯àºâ¬O¯Â ¤å¦rÀÉ¡F¥¦­Ì¥]§t¤F¤@¨Ç¦L¥X©³½u¥H¤Î­«ÂЦC¦Lªº±±¨î½X¥H«K¯àª½±µ¥ÑÂI¯x°} ¦¡¦Lªí¾÷¿é¥X¡C¦pªG±z·Q§â¥¦­ÌÂন¤@¯ëªº¤å¦rÀɪº¸Ü¡A¥i¥H§Q¥Î col¡G $ col -b < inputfile > outputfile §Ú·Q¦¨¬° FreeBSD ªº mirror ¯¸»O¡I ·íµM¥i¥H¡I¦³«Ü¦h¤èªk¥i¥H mirror §Ú­Ìªººô­¶¡C §Q¥Î CVSUP¡G±z¥i¥H§Q¥Î CVSUP ±q cvsup.FreeBSD.org ¨ú±o®æ¦¡¤Æ ¹LªºÀɮסC±z¥u»Ý­n§â¤U­±³o¦æ¥[¤J±zªº cvsup ³]©wÀÉ¡G www release=current hostname=/home base=/usr/local/etc/cvsup prefix=/usr/local/www/data/www.FreeBSD.org delete old use-rel-suffix §Q¥Î rsync¡G½Ð°Ñ¾\ the mirroring page ¥HÀò±o§ó¦h¸ê°T¡C §Q¥Î ftp mirror¡G±z¥i¥H§Q¥Î±z³ßÅwªº ftp mirror ¤u¨ã±q FTP ¯¸ »O¤¤¨ú±oºô­¶¸ê®Æ¡C´N±q ftp://ftp.FreeBSD.org/pub/FreeBSD/FreeBSD-current/www ¶}©l§a¡C §Ú·Q­n½Ķ¤å¥ó ¶â¡A§Ú­Ì¨S¯à¤Oµ¹±zÁ~¤ô¡A¤£¹L¦pªG±z¯à´£¨Ñ½Ķ¦nªº¤å¥óªº¸Ü¡A§Ú­Ì·|°e ±z CD ©Î¬O T-shirt¡A¨Ã§â±z¥[¤J¨Ï¥Î¤â¥U¸Ì Contributor ªº¦æ¦C¡C ¨ä¥L¸ê°T¨Ó·½ ¤U¦C newsgroups ¤¤¥]¬A¤F FreeBSD ¬ÛÃöªº°Q½×¡G comp.unix.bsd.freebsd.announce (moderated) comp.unix.bsd.freebsd.misc comp.unix.bsd.misc ºô­¶¸ê·½¡G The FreeBSD Home Page. ¦pªG±z¦³½¥¤W«¬¹q¸£ (laptop) ªº¸Ü¡A§O§Ñ¤F¥h¬Ý¬Ý ¦ì©ó¤é¥»ªº Tatsumi Hosokawa's Mobile Computing page¡C SMP (¥­¦æ¦h³B²z¾¹¬[ºc) ªº¬ÛÃö¸ê°T½Ð¬Ý SMP support page¡C ¦³Ãö FreeBSD ¦h´CÅé¤è­±ªºÀ³¥Îµ{¦¡¡A½Ð¬Ý multimedia¡C¦pªG±z¹ï Bt848 ³o­Ó¼v¹³Â^¨ú´¹¤ù¯S§O¦³¿³½ìªº¸Ü¡A ½Ð¬Ý³o­Óºô­¶¡C FreeBSD ¨Ï¥Î¤â¥U¤]¦³¤@¤À«Ü§¹¾ãªº °Ñ¦Ò®ÑÄy¦Cªí¡A¦pªG±z ¥¿·Q¶R®Ñªº¸Ü¡A³o³¡¥÷­È±o¤@¬Ý¡C ¦w¸Ë FreeBSD §Ú¸Ó¤U¸ü­þ¨ÇÀÉ®×¥H¨ú±o FreeBSD¡H ³q±`§A¥u»Ý­n¤@±i³nºÐ image ÀÉ¡Afloppies/boot.flp¡A§â¥¦«þ ¨©¨ì 1.44MB ³nºÐ¤ù¤WµM«á±Ò°Ê¥¦¡A¦A¥h¤U¸ü¨ä¥Lªº³¡¥÷(¦w¸Ëµ{§Ç·|ºÞ ²z§Aªº TCP/IP ³s½u¡A¥H¤Î tapes¡A¥úºÐ¾÷¡A³nºÐ¾÷¡ADOS ¤À³Î°Ï¡A¤Î ¨ä¥L¥u­n¬O¦w¸Ë¹Lµ{¤¤»Ý­n¥Î¨ìªº¨Æª«)¡C ­Y§A¥u»Ý­n¦Û¤v¤U¸ü distributions(¥i¨³³tªº¥Ñ DOS Àɮרt²Î¨Ó¦w¸Ë) ¡A¥H¤U¬O§Ú­Ì«ØÄ³§A§ì¨Ó¦w¸Ëªº distributions¡G bin/ manpages/ compat*/ doc/ src/ssys.* ¦w¸Ëµ{§Çªº§¹¾ã«ü¥O¡A¥H¤Î§ó¦h´¶¹M©Ê¦w¸Ë®É·|¸I¨ìªº°ÝÃD¥i¥H¦b Handbook entry on installing FreeBSD.³o¸Ì§ä¨ì¡C ±Ï©R¡I±Ò°Êªº³nºÐ image ÀɵLªk¶ë¨ì¤@¤ù³æ¿Wªº³nºÐ¤ù¸Ì¡I ¤@±i 3.5 ­^¦T(1.44MB)³nºÐ¤ù¥i¥H®e¯Ç 1474560 ¦ì¤¸²Õªº¸ê®Æ¡C ±Ò°Êªº image ÀÉ´N­è¦n¬O³o­Ó¤j¤p¡C ¦b·Ç³Æ±Ò°Ê³nºÐ¤ù®É±`¨£ªº¿ù»~¦³¡G ¨Ï¥Î FTP ®É¨S¦³¨Ï¥Î binary ¼Ò¦¡¤U¸ü³nºÐ image¡C ¬Y¨Ç FTP client ³nÅ饦­Ì¤º©wªº¶Ç¿é¼Ò¦¡¬O ascii ¨Ã¥B¸ÕµÛ§ó§ï¥ô¦óªº end-of-line ¦r¤¸¡A¥H²Å¦X³o­Ó client ¨t²Î ¥»¨­ªºÂà´«¡C¤j³¡¤À±¡§Î¤U³o¥²µM·|·´·l±Ò°Ê image ÀÉ¡AÀˬd¤@¤U §A¤U¸üªº±Ò°Ê image Àɤj¤p¡G¦pªG³o¤£¬O§¹¥þ¦a»P server ºÝ¤Wªº¤j¤p¬Û¦P¡A¨º»ò§Aªº¤U¸üµ{§Ç´N¦³°ÝÃD¡C ¸Ñ¨M¤èªk¡G¦b§A³s±µ¤W server ¦ý©|¥¼¶}©l¤U¸ü¬M¹³Àɤ§«e¡A ¬Ý¨ì FTP ©R¥O´£¥Ü¸¹®É¥´ binary¡C ¨Ï¥Î DOS ªº copy ©R¥O(©Îµ¥®Äªº GUI ¤u¨ã)¨Ó§â±Ò °Ê image Àɶǰe¨ì³nºÐ¤ù¡C Ãþ¦ü¹³ copy ªºµ{¦¡¡A¦b±Ò°Ê image ÀɳQ«Ø¥ß¨Ã¥Bª½±µ ¶}¾÷«á¨Ã¨S¦³¥\¥Î¡C¬M¹³Àɸ̦³§¹¾ãªººÏºÐ¤º®e¡AºÏ­y¹ïºÏ­y¡A³o¥N ªíµÛ§AµLªk¥ÎºÏ¤ù¤W©T©wªºÀÉ®×¥h¨ú¥N¥¦¡C §A¥²¶·§â¥¦¶Ç°e¨ì³nºÐ¤ùªº``raw''¤W¡A¨Ï¥Î§C¶¥¤Æ¤u¨ã(¹³¬O fdimage ©Î rawrite)¡A³o¨Ç¦b installation guide to FreeBSD¸Ì­±¦h¦³´y­z¡C ¦w¸Ë FreeBSD ªº«ü¥O¦b­þ¸Ì¡H §A¥i¥H¦b³o¸Ì§ä¨ì¦w¸Ë«ü¥O¡C Handbook entry on installing FreeBSD. ­n°õ¦æ FreeBSD §ÚÁٻݭn¤°»ò¡H §A»Ý­n¤@¥x 386 ©Î§ó¦nªº PC¡A¥]§t 5MB ©Î§ó¦hªº RAM ¥H¤Î¦Ü¤Ö 60MB ªººÏºÐªÅ¶¡¡C¥i¥H¶È¨Ï¥Î¤@­Ó§C¶¥ªº MDA ¹Ï§Î¥d¡A¦pªG§A­n°õ¦æ X11R6 ¡A´N»Ý­n VGA ©Î§ó¦nªºµø°T¥d¡C ¥ç°Ñ¦Ò³o­Ó³¹¸` §Ú¥u¦³ 4MB RAM¡A¨º§Ú¯à¦w¸Ë FreeBSD ¶Ü¡H FreeBSD 2.1.7 ¬O³Ì«á¤@­Ó¥i¦b 4MB ¨t²Î¤W³Q¦w¸Ëªºª©¥»¡C·sª©ªº FreeBSD¡A¹³¬O 2.2¡A»Ý­n¦Ü¤Ö 5MB ¨Ó¦w¸Ë¥¦¦b¤@­Ó¥þ·sªº¨t²Î¤W¡C FreeBSD ªº©Ò¦³ª©¥»¡A¥]¬A 3.0¡A³£¯à¦b 4MB ªº°O¾ÐÅé¤U°õ¦æ¡A¤£ ¹L¦w¸Ë®É¤£¯à¥u¥Î 4MB¡C¦pªG§A·Q³o¼Ë¡A§A¥i¥H¦b¦w¸Ë®É¥[¤JÃB¥~ªº °O¾ÐÅé¡AµM«áµ¥¨t²Î¥i¥H°õ¦æ«á¡A´«¦^ 4MB¡C©Î¬O§A¥i¥H§â§AªººÏºÐ ¾÷¤Á¥X¤@­Ó 4MB ¥H¤W¸m´«ªÅ¶¡¡A¦w¸Ë¦n¨t²Î«á¦A§â¸m´«ªÅ¶¡¬å±¼¡C FreeBSD 2.1.7 ¤]¦³¤£¯à¦b 4MB ¦w¸Ëªº±¡§Î¡C¥¿½Tªº»¡¡AÀ³¸Ó¬O«ü ¤£¯à¦b°ò¥»ªº 640kB ¥[¤W 3MB ©µ¦ù°O¾ÐÅé¸Ì¦w¸Ë¡C¦pªG§Aªº¥D¾÷ªO ¥i¥H­«·s§ä¦^¦b 640kB ¨ì 1MB ½d³ò¤¤¨º¨Ç``¿ò¥¢''ªº°O¾ÐÅé¡A¨º»ò ©Î³\§AÁÙ¬O¥i¥H§â FreeBSD 2.1.7 ¸Ë°_¨Ó¡C ¸ÕµÛ¶i¤J§Aªº BIOS ³]©w¿ï³æ¨Ã§ä¤@­Ó``remap''¿ï¶µ¡A§â¥¦¥´¶}¡C §A©Î³\¤]¸Ó§â ROM shadowing µ¹Ãö±¼¡C ¥u¦b¦w¸Ë®É¨Ï¥Î 4MB ¥i¯à®e©ö¤@ÂI¡A«Ø¥ß¤@­Ó¥u¦³§A»Ý­nªº¿ï¶µªº ®Ö¤ßµ{¦¡¡AµM«á´N¥i¥H¥u¥Î 4MB¡C §A¤]¥i¥H¦w¸Ë 2.0.5 µM«á¦A§â§Aªº¨t²Î¥Î 2.1.7 ¦w¸Ëµ{¦¡¸Ì ``upgrade''ªº¿ï¶µ¤É¯Å¨ì 2.1.7 ª©¥»¡C ¦w¸Ë«á¦pªG§A«Ø¥ß¤@­Ó¦Û­qªº®Ö¤ß¡A³o±N·|¦b 4MB ¤U°õ¦æ¡C´¿¦³ ¤H¦¨¥\ªº¥Î 2MB ¶}¾÷(¤£¹L¨t²Î´X¥G¤£¯à¥Î :-))¡C §Ú¸Ó«ç»ò»s§@¦Û­qªº¦w¸Ë³nºÐ¤ù¡H ¥Ø«e§AµLªk*¥u*»s§@¤@­Ó¦Û­qªº¦w¸Ë³nºÐ¤ù¡C§A¥²¶·°µ¥X¾ã­Ó¥þ·sªº release ¨t²Î¡A³o¸Ì­±´N¥]¬A§Aªº¦w¸Ë³nºÐ¤ù¡C¬Y¨Ç¦b /usr/src/release/floppies/Makefile ¸Ìªºµ{¦¡½X°²³]¯àÅý §A*¥u*°µ¥X¨º¨Ç³nºÐ¤ù¡A¦ý¬O¨Æ¹ê¤WÁÙ¤£¦æ¡C ­n°µ¥X¦Û­qªº release ª©¥»¡A½Ð¿í´` ªº«ü¥O¡C §Ú¥i¥H¦b§Úªº PC ¤W¾Ö¦³¶W¹L¤@­Ó¥H¤Wªº§@·~¨t²Î¶Ü¡H ½Ð°Ñ¦Ò The multi-OS page. Windows 95 ¥i¥H¸ò FreeBSD ¨Ã¦s¶Ü¡H ¥ý¦w¸Ë Windows 95¡AµM«á¦A¸Ë FreeBSD¡CFreeBSD ªº±Ò°ÊºÞ²z­û ·|±µµÛºÞ²z±Ò°Ê Win95 ©M FreeBSD ªº¤u§@¡C°²¨Ï§A²Ä¤G­Ó¤~¥h¸Ë Win95¡A¥¦±N·|°Ý³£¤£°Ýªº²Ê¾|¦a§â§Aªº±Ò°ÊºÞ²z­ûÂмg¹L¥h¡C°² ¦p³o¤w¸gµo¥Í¡A½Ð¬Ý¤U¤@¸`¡C Windows 95 §â§Úªº±Ò°ÊºÞ²z­û±þ±¼¤F¡I§Ú¸Ó«ç»ò§â¥¦±Ï¦^¨Ó¡H §A¥i¥H¥Î¥H¤U¨âºØ¤èªk¤§¤@¨Ó­«·s¦w¸Ë FreeBSD ªº±Ò°ÊºÞ²z­û¡G °õ¦æ DOS¡A¶i¤J§Aªº FreeBSD distributions ªº tools/ ¥Ø¿ý ¨Ã§ä¨ì bootinst.exe¡C§A¥i¥H³o¼Ë°õ¦æ¥¦¡G bootinst.exe boot.bin ³o¼Ë±Ò°ÊºÞ²z­û±N·|¦A¦¸³Q¦w¸Ë¡C ¥Î FreeBSD ±Ò°Ê³nºÐ¤ù¦A¦¸¶}¾÷µM«á¶i¤J Custom ¦w¸Ë¿ï³æ ¶µ¥Ø¡A¿ï¾Ü Partition¡A¿ï¾Ü¨º­Ó¥]§t±Ò°ÊºÞ²z­ûªººÏºÐ¾÷(¤j¦h¬O ²Ä¤@­Ó)¡AµM«á·í¤À³Î°Ï½s¿è¾¹(partition editor)¥X²{®É¡A²Ä¤@¥ó ¨Æ(·N«ä´N¬O¡G¤£­n°µ¥ô¦ó§ó§ï) ¥ý¿ï¾Ü (W)rite¡C·|¥X²{½T»{ªº¸ß °Ý¡A¦^µª yes¡AµM«á·í§A¬Ý¨ì Boot Manager ªº¿ï¾Ü´£¥Ü®É¡A½T©w §A¿ïªº¬O"Boot Manager"³o¶µ¡C ³o·|§â±Ò°ÊºÞ²z­û­«·s¼g¦^ºÏºÐ¸Ì¡C¸õÂ÷¦w¸Ë¿ï³æµM«á´N¸ò¥¿±`±¡§Î ¤@¼Ë­«·s±Ò°ÊµwºÐ¡C §Ú¥i¥H¦b¤@­Ó¦³Ãa­y(bad blocks)ªººÏºÐ¤W¶i¦æ¦w¸Ë¶Ü¡H FreeBSD ªº bad block (bad144 ©R¥O) ³B²z¨Ã«D 100% §¹¥þ(¥Î¹Ï§Î¤Æ¨Ó¬Ý)¡A¦Ó¥B«Ü¤£©¯§Ú­n§i ¶D§A°²¦p§A¦³¤@­Ó IDE ©Î ESDI ¸Ë¸m¥]§t¤j¶qªº bad blocks¡A¨º»ò FreeBSD ¥i¯à¤£¾A¦X§A¡I³oªí¥Ü¡A¹ï¨ä¥L¤j¦h¼Æªº IDE ¨t²Î¥i¯à¦³ ¥Î¡A§A¥i¯à·Q¦b©ñ±ó«e¥ý¹Á¸Õ¬Ý¬Ý¡C ¦pªG§A¦³¤@­Ó¦³ bad blocks ªº SCSI ¸Ë¸m¡A½Ð¬Ý . ·í§Ú±Ò°Ê¦w¸Ë³nºÐ¤ù®É¡A©_©Çªº¨Æ±¡µo¥Í¤F¡I ¦pªG§A¬Ý¨ì©_©Çªº¨Æ±¡¡A¹³¬O¾÷¾¹°±¦í¤F©Î¬O·í§A¸ÕµÛ±q¦w¸ËºÏ¤ù°_ °Ê®É¬ðµM¦Û°Ê­«·s¶}¾÷¤F¡A³o¸Ì¦³¤T­Ó°ÝÃD§A¸Ó¥ý°Ý°Ý¦Û¤v:- §A¬O§_¨Ï¥Î¤@­Ó·sªº¡A­è®æ¦¡¤Æ¹L¡A¨S¦³¥ô¦ó¿ù»~ªº³nºÐ¤ù(¥i ¥H¬O¤@±i¥þ·s­è©î«Êªº¡A¦Ó«D¬O¨ººØ¤w¸g§Aªº§É¤U½ö¤F¤T¦~¡A¬OÂø»xÃØ °eªº«Ê­±ºÏ¤ù)¡H §A¬O§_¥Î binary ¼Ò¦¡¤U¸ü³nºÐ¬M¹³ÀÉ¡H (¤£¥Î¤£¦n·N«ä¡A´Nºâ¬O§Ú­Ì¤§¤¤³Ì¦nªº¤@­Ó¤H¤]´¿·N¥~ªº§â binary ÀɥΠASCII ¼Ò¦¡¤U¸ü¦Ü¤Ö¤@¦¸¡I) ¦pªG§A¥¿¦b¨Ï¥Î¹³¬O Windows95 ©Î Windows NT ³o´XºØ·s«¬ªº §@·~¨t²Î¡A§A¦³¨S¦³§â¨t²ÎÃö¾÷µM«á±Ò°Ê¨ì³Ì­ì©lª¬ºA¡A¥u¦³ DOS¡H ³o¨Ç OS ¬Ý°_¨Ó·|ªý꨺¨Çª½±µ¾Þ§@µwÅ骺µ{¦¡¡A¹³¬O«Ø¥ßºÏºÐªºµ{¦¡ ¡A¥u­n¦b GUI Àô¹Ò¤Uªº DOS shell ´N·|¾É­P³o­Ó°ÝÃD¡C ¤]¦³¹L³ø§i¦³Ãö Netscape ·|¾É­P¤U¸ü±Ò°Ê³nºÐªº°ÝÃD¡A¦]¦¹¦pªG§A ¥i¥H¡A³Ì¦n¨Ï¥Î§OºØ¤£¦Pªº FTP client ¡C ±Ï©R¡I§Ú¤£¯à±q tape ¦w¸Ë¡I ¦pªG§A±q tape ¦w¸Ë 2.1.7¡A§A¥²¶·¥Î¨C­Ó tar blocksize ¬O 10 (5120 bytes)«Ø¥ß³o­Ó tape¡C¤º©wªº tar blocksize ¬O 20(10240 bytes)¡AµM¦Ó¥Î³oºØ¤º©w¤j¤p«Ø¥ßªº tape µLªk¥Î¨Ó¦w¸Ë 2.1.7R¡F ¦pªG§A¥Î³oºØ tapes¡A§A·|¬Ý¨ì¦³Ãö¸ê®Æ°O¿ý°Ï¤j¤p¹L¤jªº©ê«è°T ®§¡C ¥Î¤@±ø¨ÃÁp½u(PLIP)³s±µ¨â¥x FreeBSD¡C §ä¤@±ø laplink ½u¡A½T©w¨âÃä¹q¸£ªº®Ö¤ß³£¤ä´© lpt ÅX°Êµ{¦¡¡C $ dmesg | grep lp lpt0 at 0x378-0x37f irq 7 on isa lpt0: Interrupt-driven port lp0: TCP/IP capable interface §â laplink ½u´¡¤J¨ÃÁp¬É­±¤W¡C ¥Î root ¨­¤À¦b¨â¥x¹q¸£¤W³]©w lp0 ªººô¸ô¬É­±°Ñ¼Æ¡CÁ|¨Ò¡A¦pªG §A·Q¥Î max ³s±µ moritz¡G max <-----> moritz IP Address 10.0.0.1 10.0.0.2 max ºÝÀ³¸Ó³o¼Ë¶}©l¡G # ifconfig lp0 10.0.0.1 10.0.0.2 moritz «h³o¼Ë¡G # ifconfig lp0 10.0.0.2 10.0.0.1 ¦n¤F¡I¤]½Ð§A¬Ý¬Ý lp(4) ©M lpt(4) ªº manpages¡C §A¤]¸Ó§â³o¨Ç¥D¾÷¥[¨ì /etc/hosts ¸Ì­±¡C 127.0.0.1 localhost.my.domain localhost 10.0.0.1 max.my.domain max 10.0.0.2 moritz.my.domain moritz ¥Î¥H¤U¤èªkÀˬd¬O§_¦³¥¿±`°Ê§@¡G on max: $ ifconfig lp0 lp0: flags=8851<UP,POINTOPOINT,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 10.0.0.1 --> 10.0.0.2 netmask 0xff000000 $ netstat -r Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire moritz max UH 4 127592 lp0 $ ping -c 4 moritz PING moritz (10.0.0.2): 56 data bytes 64 bytes from 10.0.0.2: icmp_seq=0 ttl=255 time=2.774 ms 64 bytes from 10.0.0.2: icmp_seq=1 ttl=255 time=2.530 ms 64 bytes from 10.0.0.2: icmp_seq=2 ttl=255 time=2.556 ms 64 bytes from 10.0.0.2: icmp_seq=3 ttl=255 time=2.714 ms --- moritz ping statistics --- 4 packets transmitted, 4 packets received, 0% packet loss round-trip min/avg/max/stddev = 2.530/2.643/2.774/0.103 ms §Ú¥i¥H¦b§Úªº½¥¤W«¬¹q¸£¥Î PLIP(Parallel Line IP)¦w¸Ë¶Ü¡H ¥Î laplink ¨ÃÁp½u³s±µ¨â¥x¹q¸£¥H¨Ï¥Î³o­Ó¯S©Ê¡G +----------------------------------------+ |A-name A-End B-End Descr. Port/Bit | +----------------------------------------+ |DATA0 2 15 Data 0/0x01 | |-ERROR 15 2 1/0x08 | +----------------------------------------+ |DATA1 3 13 Data 0/0x02 | |+SLCT 13 3 1/0x10 | +----------------------------------------+ |DATA2 4 12 Data 0/0x04 | |+PE 12 4 1/0x20 | +----------------------------------------+ |DATA3 5 10 Strobe 0/0x08 | |-ACK 10 5 1/0x40 | +----------------------------------------+ |DATA4 6 11 Data 0/0x10 | |BUSY 11 6 1/0x80 | +----------------------------------------+ |GND 18-25 18-25 GND - | +----------------------------------------+ ½Ð°Ñ¦Ò Mobile Computing ºô­¶ªº ³o­Óµù¸Ñ¡C §Ú¸Ó«ç»ò¨Ï¥Î¤@­ÓºÏºÐ¸Ë¸mªº geometry¡H (¤@¥xºÏºÐªº"gromrtry"¡A§Ú­Ì«üªº¬O³o¥xºÏºÐ¤W cylinders¡Aheads ©M sectors/track ªº¼Æ¥Ø - ¬°¤F¤è«K¥BºÙ¤§¬° C/H/S¡C³o¬O PC ªº BIOS ¥Î¨ÓŪ/¼gºÏºÐªº¨Ì¾Ú)¡C ¬°¤F¬Y¨Ç²z¥Ñ¡A³o¦ü¥G·|¾É­P«Ü¦h§xÂZ¡C­º¥ý¡A¤@¥x SCSI ¸Ë¸mªº physical geometry ¸ò FreeBSD ¦b¨Ï¥Îªº disk blocks ¬O§¹ ¥þµLÃöªº¡C¨Æ¹ê¤W¡A¨Ã¨S¦³©Ò¿×"physical geometry"³oºØªF¦è¡A³o ¬O«üºÏºÐ¾÷¤WºÏ°Ï±K«×ªºÅÜ¤Æ - »s³y°Ó­n¨D¬O"¯u¹êªº"physical geometry ³q±`¬O«ü¡A¥L­Ì©Ò¯à§ä¥X®ö¶O³Ì¤ÖªÅ¶¡ªº geometry µ²ªG¡C ¹ï IDE ºÏºÐ¨Ó»¡¡AFreeBSD ¨Ï¥Î C/H/S ¤è¦¡¤u§@¡A¦ý¬O©Ò¦³²{¦b ªººÏºÐ¤w¸g¦b¤º³¡°Ñ¦Ò®É§â¥¦Âà´«¦¨ block ¤F¡C ¥t¥~´N¬O©Ò¿×ªºlogical geometry - ³o¬O·í BIOS °Ý"§Aªº geometry ¬O¤°»ò¡H"ªº®É­Ô¡A©Ò±o¨ìªºµª®×¨Ã¥B§â¥¦¥Î¨Ó¦s¨úºÏºÐ¡C ·í¶}¾÷®É FreeBSD ¨Ï¥Î BIOS ¸ê®Æ¡AÅý³o­Ó¥¿½T¬O¬Û·í­«­nªº¡C¥t¥~ ¡A¦pªG§A¦b¦P¤@­ÓºÏºÐ¾÷¤W¦³¤@­Ó¥H¤Wªº§@·~¨t²Î¡A¥L­Ì¥²¶·³£¦P·N grometry¡A§_«h§A¦b¶}¾÷®É·|¦³¤j°ÝÃD¡I ¹ï SCSI ºÏºÐ¾÷¨Ó»¡¡Ageometry ªº¨Ï¥Î¬O¨Ì¾a±Ò°Ê±±¨î¾¹¨Ó¤ä´© extended translation (³o³q±`ºÙ¤§¬°"¹ï>1GB DOS ºÏºÐ¾÷ ªº¤ä´©©Î"Ãþ¦üªººÙ©I)¡C¦pªG¤£¤ä´©¡A¨º»ò¨Ï¥Î N cylinders¡A64 heads ©M 32 sectors/track¡A³o¸Ì'N'¬O«üºÏºÐ¾÷ªº MB ®e¶q¡CÁ|¨Ò ¨Ó»¡¡A¤@­Ó 2GB ªººÏºÐ¾÷À³¸Ó°²³]¥¦¦³ 2048 cylinders¡A64 heads ©M 32 sectors/track¡C ¦pªG¥¦½T©w¬O ¥´¶}ªº(³q±`´£¨Ñ³oºØ¤èªk¦b MSDOS ¤U¦³¬Y¨Ç­­ ¨î)¡A¨Ã¥BºÏºÐ®e¶q¶W¹L 1GB¡A¨Ï¥Î M cylinders¡A¨C­Ó track 63 sectors (*¦Ó«D* 64)¡A¥H¤Î 255 heads¡A³o¸Ì 'M' ¬O¨C MB ªººÏºÐ®e¶q°£¥H 7.844238 (!)¡C©Ò¥H§Ú­Ìªº³o­Ó½d¨Ò¡A2G ºÏºÐ¾÷´N¦³ 261 cylinders¡A ¨C­Ó track 63 sectors ¥H¤Î 255 heads¡C ¦pªG§A¤£½T©w¥H¤W³o­Ó¡A©Î¬O FreeBSD ¦b¦w¸Ë¹Lµ{¤¤­n°»´ú geometry ªº¥¿½T©Ê®É¥¢±Ñ¤F¡A³Ì²³æªº¸Ñ¨M¤èªk³q±`¬O¦bºÏºÐ¤W«Ø¥ß¤@­Ó¤pªº DOS ¤À³Î°Ï¡C¥¿½Tªº geometry À³¸Ó¯à³Q°»´ú¨ì¡]¦Ó¥B¦pªG§A¤£·Q«O¯d¥¦¡A §AÁ`¬O¥i¥H¦b¤À³Î°Ï½s¿è¾¹¸Ì§â³o­Ó DOS ¤À³Î°Ï²¾°£±¼¡A©Î¬O§â¥¦¯d¤U ¨Ó¡Aµ¹µ{¦¡¤Æºô¸ô¥d¨Ï¥Î©ÎÀH§A°ª¿³«ç»ò¥Î¥¦¡^¡C ¥t¥~¡A¦³¤@­Ó§K¶O¦Ó¦³¥Îªº¤½¥Îµ{¦¡¥s ``pfdisk.exe'' ÀHµÛ FreeBSD ´²¼½¥X¨Ó¡]¦ì©ó FreeBSD CDROM ªº tools ¤l¥Ø¿ý ¤U©Î¬O¦b¤j¦h¼Æªº FreeBSD ftp ¯¸¥x¤º¥i§ä¨ì¡^¡A³o­Óµ{¦¡¥i¥Î¨Ó§ä ¥X¥t¤@§@·~¨t²Î¥¿¦b¨Ï¥ÎºÏºÐ¾÷¤Wªº­þ¶ô geometry¡CµM«á§A´N¥i¥H¦b ¤À³Î°Ï½s¿è¾¹¸Ì­±¿é¤J¥¦¡C ·í§Ú¤À³ÎºÏºÐ¾÷®É¦³¥ô¦ó­­¨î¶Ü¡S ¬Oªº¡C§A¥²¶·½T»{§Aªº root ¤À³Î°Ï¬O¦b 1024 cylinders ¤§¤º¡AÅý BIOS ¥i¥H±q¨ä¤¤±Ò°Ê®Ö¤ß¡C(ª`·N¡G³o¬O PC ªº BIOS ¥\¯à­­¨î¡A¦Ó¤£ ¬O FreeBSD ªº) ¹ï SCSI ¸Ë¸m¨Ó»¡¡A³o³q±`·t¥ÜµÛ root ¤À³Î°Ï±N©ñ¦b¶}©lªº 1024 MB(©Î¬O¶}©lªº 4096MB¡A¦pªG extended translation ¬O¥´¶}ªº - ½Ð °Ñ¦Ò«e¤@¸`)¡C¹ï IDE ¨Ó»¡¡A¬ÛÃöªº³¡¥÷¬O 504MB¡C ¥i¥H¨Ï¥ÎºÏºÐºÞ²zµ{¦¡(disk managers)¶Ü¡S©Î¬O¡A§Ú¦³¤@­Ó¥¨¤jªººÏºÐ¾÷¡I FreeBSD »{ÃÑ Ontrack Disk Manager ¨Ã¥B¤¹³\¨Ï¥Î¥¦¡A¨ä¥Lªº disk managers «h¤£¦b¤ä´©¤§¦C¡C ¦pªG§A¥u·Q¦bºÏºÐ¾÷¤W¨Ï¥Î FreeBSD ¨º»ò§A®Ú¥»¤£»Ý­n disk manager¡C ¥u­n§âºÏºÐ³]©w¦¨ BIOS ¯à§ì¨ìªº³Ì¤jªÅ¶¡(³q±`¬O 504 megabytes)¡A¨º»ò FreeBSD À³¸Ó´N¥i¥Hºâ¥X§A¨Æ¹ê¤W¾Ö¦³¦h¤ÖªÅ¶¡¡C¦pªG§A¥¿¨Ï¥Î¤@­Ó MFM ±±¨î¾¹¨Ó±±¨îªº¦ÑºÏºÐ¡A§A¥i¯à»Ý­n©ú¥Õªº§i¶D FreeBSD ­n¨Ï¥Î¦h¤Ö­Ó cylinders¡C ¦pªG§A·Q¦bºÏºÐ¤W¨Ï¥Î FreeBSD ©M¥t¤@­Ó§@·~¨t²Î¡A§A¥i¯à¤£»Ý­n disk manager¡G¥u­n½T©w FreeBSD ªº±Ò°Ê¤À³Î°Ï¸ò¨ä¥L§@·~¨t²Îªº slice ³£¦ì©ó¶}©lªº 1024 cylinders ¤º¡C¦pªG§A¬Û·í¦a¤p¤ß¡A¤@­Ó 20 megabytes ªº±Ò°Ê¤À³Î°ÏÀ³¸Ó´N°÷¤F¡C ·í§Ú±Ò°Ê FreeBSD¡A§Ú¬Ý¨ì ``Missing Operating System'' ³o¬O¤@­Ó¨å«¬ªº±¡§Î¡A¦³Ãö FreeBSD ¥H¤Î DOS ©Î¨ä¥L¦bºÏºÐ³B²z¤èªk ¤W¦³½Ä¬ðªº OS ¡C§A»Ý­n­«·s ¦w¸Ë FreeBSD¡A¦ý¬O½Ð¿í·Ó¤W­±©Ò´£¨ìªº«ü¥OÀ³¸Ó´N¥i¥H¤F¡C §Ú¬Ý¤£¨ì boot manager ªº 'F?' ´£¥Ü¸¹¡C ³o¬O«e¤@­¶©Ò´y­z°ÝÃDªº¥t¤@­Ó¼x¥ü¡C§Aªº BIOS geometry ©M FreeBSD ªº geometry ³]©w¤£¬Û¦P¡I¦pªG§Aªº±±¨î¾¹©Î BIOS ¤ä´© cylinders translation (³q±`³Q¼Ð¥Ü¦¨``>1GB drive support'')¡A¸ÕµÛ§â³o­Ó ³]©w¥´¶}µM«á­«·s¦w¸Ë FreeBSD¡C §Ú¦³ >16MB RAM¡C³o·|¾É­P¥ô¦ó°ÝÃD¶Ü¡S ±q®Ä¯àªº¨¤«×¨Ó¬Ý¡A¤£·|¡CFreeBSD 2.X ¤º§t bounce buffers¡A³o¤¹³\ §Aªº bus mastering controller ¦s¨ú¶W¹L 16MB¡C(ª`·N¦pªG§A¥¿¨Ï¥Î ISA ¸Ë¸m³oÀ³¸Ó¬O¥²»Ýªº¡A¾¨ºÞ¤@­Ó©Î¨â­Ó§ó¦­ªº EISA ©M VLB ¸Ë¸m¤] ¥i¯à»Ý­n¥¦)¡C ¤]½Ð°Ñ¦Ò ³o¸`¡A°²¦p§A¦³³o»ò¦h°O¾ÐÅé¡A©Î§A¨Ï¥Îªº¬O Compaq ©Î¬O¨ä¥L¯à³B²z ³o»ò¦h¦³¥Î°O¾ÐÅ骺¾÷¾¹¡C §Ú»Ý­n¦w¸Ë§¹¾ãªº­ì©lµ{¦¡(sources)¶Ü¡S ³q±`¬O¤£»Ý­n¡CµM¦Ó¡A·|±j¯P«ØÄ³§A¦Ü¤Ö¦w¸Ë ``base'' ³o­Ó source kit¡A³o¥]§t¼Æ­Ó³o¸Ì²³æ´y­z¹LªºÀɮסAÁÙ¦³ ``sys'' (kernel) source kit¡A³o¥]§t®Ö¤ßµ{¦¡ªº sources¡C¨t²Î¸Ì­±¤£»Ý ­n¦³ sources ¤~¯à¾Þ§@¡AµM¦Ó¡A°£¤F kernel-configuration µ{¦¡ config¥H¥~¡C¯Ê¤Ö®Ö¤ßªº sources¡A§Ú­Ìªº«Ø¿v¬[ºc¬O³]©w ¦¨Åý§A¥i¥H±q§O³B¦p NFS ¨Ó±¾¤W°ß¿Wªº­ì©lµ{¦¡¡A¦]¦¹ÁÙ¬O¥i¥H»s §@·sªº binaries¡C¡]¦]¬° kernel-source ªº­­¨î¡A§Ú­Ì«ØÄ³§A¤£­n ª½±µ§â¥¦±¾¦b /usr/src ¤U¡A³Ì¦n¥Î¨ä¥L¾A¦Xªº²Å¸¹©Ê­« ½Æ³sµ²¨ì source tree ªº¤W¼h¬[ºc¡C¡ ½u¤W¾Ö¦³ sources ¨Ãª¾¹D¦p¦ó«Ø¥ß¤@­Ó¨t²Î¡A±N·|Åý§A¦b¤É¯Å¤µ«á FreeBSD ªº releases ª©¥»§ó®e©ö¤@ÂI¡C ­n¹ê»Úªº¿ï¾Ü sources ªº¤@­Ó¤l¶°¦X¡A¦b§A¦b¨t²Î¦w¸Ë¤u¨ãªº Distributions ¿ï³æ®É¡A¨Ï¥Î Custom ¿ï³æ¶µ¥Ø¡Csrc/install.sh script ±N·|§â sources distribution ªº³¡¥÷¦w¸Ë¶i¥h¡A¥D­n¬O¬Ý §A¶Ç¤J­þ¨Ç°Ñ¼Æ¡C §Ú»Ý­n«Ø¥ß¤@­Ó®Ö¤ß¶Ü¡S «Ø¥ß¤@­Ó·sªº®Ö¤ß¦b FreeBSD ¦w¸Ë¹Lµ{¤¤¬Oµ´¹ï¥²»Ýªº¤@­Ó¨BÆJ¡C ¦ý·sª© releases ±a¨Ó¤@­Ó§ó¤Íµ½ªº®Ö¤ß³]©w¤u¨ã«ü¥Oªº¦n³B¡C¦b FreeBSD ±Ò°Ê´£¥Ü¸¹(boot:)®É¡A¨Ï¥Î "-c" flag §A´N·|¶i¤J¤@­Ó³] ©w¿Ã¹õ¡A³o¤¹³\§A°µ±`¨£ ISA ¥dªº®Ö¤ß³]©w¡C ¤´µM«ØÄ³§A³Ì«á«Ø¥ß¤@­Ó®Ö¤ß¡A¥u¥]§t§A»Ý­nªºÅX°Êµ{¦¡¡A³o¬O¬°¤F ¸`¬Ù¤@ÂI RAM¡A¦ý¬O¹ï¤j¦h¼Æªº¨t²Î¨Ó»¡³o«o¤£¬OÄY®æªº­n¨D¡C §Ú¤£¬O¦í¦b¬ü°ê¡A¨º§Ú¥i¥H¨Ï¥Î DES ¶Ü¡S ¦pªG¹ï§A¨Ó»¡¨Ï¥Î DES ®æ¦¡ªº¥[±K§Þ³N¤£¬Oµ´¹ï»Ý­nªº¡A§A¥i¥H¨Ï ¥Î FreeBSD ªº¤º©w¥[±K§Þ³N¡A¦³§ó¦n ªº¦w¥þ©Ê¡A¨Ã¥B¨S¦³ÃB¥~ ªº­­¨î¡CFreeBSD 2.0 ªº±K½X²{¦b¨Ï¥Î¤º©wªº MD5-based ¥[¥H ²V¦X¡A­n¥Î¦Û°Ê¯}¸Ñ±K½Xªºµ{¦¡¥h¯}¸Ñ¥¦¡A¤ñ°_ DES »Ý­n¨Ï¥Î§ó¦h CPU ±j¤Æ©Ê¥H«K¥Î¦Û°Ê±K½X¯}¸Ñ¾¹¡A¥¦ÁÙ¤¹³\§óªøªº±K½X¡C¤µ¤é¤£¨Ï ¥Î MD5-based ¥[±K§Þ³Nªº°ß¤@²z¥Ñ¬O¦b FreeBSD ©M«D FreeBSD ¨t²Î¤W¨Ï¥Î¬Û¦Pªº±K½X¶µ¥Ø¡C ¦]¬° DES ¥[±Kºtºâªk¤£¯à¥Ñ US ¦Xªk¿é¥X¨ì°ê¥~¡A«D US ¨Ï¥ÎªÌ¤£ À³¸Ó±q US FTP ¯¸¥x¤U¸ü³o­Ó³nÅé(secrdistªº¥ô¤@³¡¥÷)¡C µM¦Ó¥t¥~ÁÙ¦³­Ó¦³®Äªº libcrypt¡A­ì©lµ{¦¡°ò¥»¤W¥Ñ¿D¬wªº David Burren ¼g¦¨¡C³o­Óµ{¦¡½X¥Ø«e¦b¬Y¨Ç«D US FreeBSD mirror ¯¸¥x¤W¥i¥H§ä¨ì¡C³o­Ó¨S¦³­­¨îªº libcrypt ­ì©lµ{¦¡¡A¥H¤Î¨Ï¥Î¥¦ ªº binaries µ{¦¡¡A¥i¥H¦b¥H¤U FTP ¯¸¥xÀò±o¡G South Africa ftp://ftp.internat.FreeBSD.org/pub/FreeBSD ftp://storm.sea.uct.ac.za/pub/FreeBSD Brazil ftp://ftp.iqm.unicamp.br/pub/FreeBSD Finland ftp://nic.funet.fi/pub/unix/FreeBSD/eurocrypt «D US ªº securedist ¥i¥H·í­­¨î©Ê US securedist ªº§¹¥þ´À¥N¡C³o­Ó securedist package ¦w¸Ë¤èªk¸ò US package §¹¥þ¤@¼Ë(²Ó¸`½Ð°Ñ¦Ò¦w¸Ë¶·ª¾)¡C¦pªG§A­n¸Ë DES ¥[±Kªk §AÀ³¸Ó¾¨¥i¯à¦a¦b¦w¸Ë¨ä¥L³nÅ餧«e¥ý¸Ë¦n¥¦¡A¦A¸Ë¨ä¥L³nÅé¡C «D US ¨Ï¥ÎªÌ½Ð¤Å±q USA ¤U¸ü¥ô¦ó¥[±K³nÅé¡C³o·|¾É­P¯¸¥xªººÞ²z ªÌ¦]¬°³Q¤U¸üªº³nÅé·S¤W¼Æ­Óªk«ß©Êªº§xÃø¡C ¤@­Ó«D US ªº Kerberos distribution ¥ç¥¿¦bµo®i¤¤¡A²{¦æª©¥»³q ±`¥i¥Ñ°Î¦W FTP braae.ru.ac.za ¨ÓÀò±o¡C ¤]¦³¤@­Ó ±Mªù¥Î¨Ó°Q½× «D US ¥[±K³nÅé¡C±ýÀò±o§ó¦h¸ê°T¡A±H¤@«Ê¤º§t³æ¿W¤@¦æ°T®§»¡ ``help'' ªº email µ¹¡G <majordomo@braae.ru.ac.za>. ±Ò°Ê³nºÐ¶}©lŪ¤F¥i¬O«o°±¦b``Probing Devices...''¿Ã¹õ¡C ¦pªG§A¦w¸Ë¤F IDE Zip ©Î Jaz ¸Ë¸m¡A²¾°£¥¦¨Ã­«·s¸Õ¤@¹M¡C ±Ò°Ê³nºÐ¤ù¥i¯à·|³Q³o¨Ç¸Ë¸m²V²c¤F¡C·í¨t²Î¦w¸Ë¦n¥H«á§A¥i¥H¦A §â¥¦±µ¦^¨Ó¡C§Æ±æ³o¦b¤§«áªº release ª©¥»¥i¥H³Q­×¥¿¡C ·í§Ú¦w¸Ë¦n­«·s±Ò°Ê¨t²Î«á¡A§Ú¬Ý¨ì``panic: cant mount root'' ªº¿ù»~°T®§¡C ³o­Ó¿ù»~¬O¦]¬°±Ò°Ê°Ï¶ô¸ò®Ö¤ßµ{¦¡¹ïºÏºÐ¸Ë¸mªº»{ª¾¤£¬Û¦P¡C³q±`³o­Ó ¿ù»~·|¥X²{¦bÂùºÏºÐªº IDE ¨t²Î¡AµwºÐ©ñ¦b master¡A©Î¬O¦b¤ÀÂ÷ªº IDE ±±¨î¾¹¤W¥u¦³³æ¤@ºÏºÐ¾÷¡A¦ý¬O FreeBSD ¸Ë¦b secondary IDE ¤W ¡C·í®Ö¤ß«ü©w²Ä¤G­ÓºÏºÐ±±¨î¾¹ªº²Ä¤@­ÓºÏºÐ¾÷ wd2 ®É¡A±Ò°Ê block «o»{¬°¨t²Î¸Ë¦b wd1(²Ä¤G­Ó BIOS ºÏºÐ¾÷)¡C°»´ú§¹¸Ë¸m«á¡A®Ö¤ßµ{¦¡ ¸ÕµÛ§â±Ò°Ê block »{¬°ªº±Ò°ÊºÏºÐ(wd1) mount °_¨Ó¡A¨Æ¹ê¤W«o¬O wd2 ¡A©Ò¥H¥¢±Ñ¤F¡C ­n­×¥¿³o­Ó°ÝÃD¡A¥H¤U´XºØ¤èªk¤§¤@³£¥i¥H¸Ñ¨M¡G ·í Boot: ´£¥Ü¸¹¥X²{®É¡A¿é¤J¡G 1:wd(2,a)kernel µM«á«ö Enter¡C¦pªG¨t²Î¶}©l¤F¡A´N°õ¦æ¥H¤U©R¥O¡G echo "1:wd(2,a)kernel" > /boot.config Åý¥¦Åܦ¨¤º©wªº boot string¡C §â FreeBSD ºÏºÐ¾÷²¾¨ì primary IDE controller¡A¦]¦¹µwºÐ¾÷¬O ³sÄòªº¡C Rebuild your kernel, ­×§ï¦³Ãö wd ³]©wªº¦æ¼Æ¡G controller wdc0 at isa? port "IO_WD1" bio irq 14 vector wdintr disk wd0 at wdc0 drive 0 # disk wd1 at wdc0 drive 1 # comment out this line controller wdc1 at isa? port "IO_WD2" bio irq 15 vector wdintr disk wd1 at wdc1 drive 0 # change from wd2 to wd1 disk wd2 at wdc1 drive 1 # change from wd3 to wd2 ¦w¸Ë·sªº®Ö¤ßµ{¦¡¡C ¦pªG§A²¾°Ê§AªººÏºÐ¾÷¡A¨Ã§Æ±æ§â¥ý«eªº³]©w«ì´_¡A¥u­n§âºÏºÐ¥Î¹w´Á ªº³]©w¸m´«¦^¨ÓµM«á­«·s¶}¾÷¡C§Aªº¨t²ÎÀ³¸Ó´N¯à¦¨¥\ªº±Ò°Ê¡C °O¾ÐÅ骺­­¨î¬O¤°»ò¡S ¹ï°O¾ÐÅé¨Ó»¡¡A(²z½×¤W)­­¨î¬O 4 gigabytes¡C1 gigabytes ¤w³Q´ú¸Õ ¹L¡F¤@¯ë§A¤£¥i¯à¶R¨ì¥i¥H¤ä´©¶W¹L³o­Ó¼Æ¥Øªº i386 PC¡C ffs Àɮרt²Îªº­­¨î¬O¤°»ò¡S ¹ï ffs filesystems ¦Ó¨¥¡A³Ì¤j²z½×­È­­¨î¦b 8 terabytes(2G blocks )¡A©Î·í¨Ï¥Î¤º©w 8K block ¤j¤p®É¡A­­¨î¬O 16TB¡CÁÙ¦³¡A³nÅé­­¨î¬O 1 terabytes¡A¦ý¦pªG¬O¸g¹L­×§ïªºÀɮרt²Î¤W 4 terabytes ¬O¥i¯à(¨Ã ¥B¦s¦b)ªº¡C ³æ¤@ ffs Àɮתº¤j¤p³Ì¤j¬OÁͪñ 1G blocks(4TB) - °²¦p block ¤j¤p¬O 4K¡C maxfilesize ---------------------------------- 2.2.7 3.0 fs block size -stable -current works should-work ------------- ------- -------- ----- ----------- 4K 4T-1 4T-1 4T-1 4+T 8K 32+G 8T-1 32+G 16T-1 16K 128+G 16T-1 128+G 32T-1 32K 512+G 32T-1 512+G 64T-1 64K 2048+G 64T-1 2048+G 128T-1 ·í fs block ¤j¤p¬O 4K¡Atriple indirect block ¹B§@¨Ã¥B©Ò¦³ªº¨Æ±¡ ³£À³¸Ó¥Hªí¥Ü¦¨¨Ï¥Î triple indirect block ªº³Ì¤j fs block ¨Ó§@­­ ¨î(ªñ¦ü©ó 1K^3 + 1K^2 + 1K)¡A¦ý¦b fs block ¼Æ¥Ø¤W«o¦³¤@­Ó(¿ù»~) ªº 1G-1 ­­¨î¡C¹ï fs block ¼Æ¥Øªº­­¨îÀ³¸Ó¬O 2G-1¡C¦b fs block ¼Æ¥Ø±µªñ 2G-1 ®É¦³ÂI¿ù»~¡A¦ý·í fs block ¤j¤p¬O 4K ®É³o­Ó block ¼Æ¥Ø¬O¤£¯à¹F¨ìªº¡C block ¤j¤p¦pªG¬O 8K ©Î§ó¤j¡Afs block ¼Æ¥ØÀ³¸Ó­­¨î¦b 2G-1¡A¦ý¹ê »Ú fs block ¼Æ¥Ø«o­­¨î¦b 1G-1¡A°£¤F¦b -stable ®É triple indirect blocks ¬OµLªk¹F¨ìªº¡A©Ò¥H³Ì¦h fs block ¼Æ¥Øªº­­¨î¥i¥Hªí¥Ü¦¨¥Î double indirect blocks(ªñ¦ü©ó(blocksize/4)^2 + (blocksize/4)) ¡A¥B¦b -current ¤U¶W¹L³o­Ó­­¨î¥i¯à·|¾É­P°ÝÃD²£¥Í¡C¨Ï¥Î¥¿½Tªº 2G-1 block ­­¨îªº½T·|¾É­P°ÝÃDµo¥Í¡C §Ú¸Ó«ç»ò¦b³nºÐ¤W©ñ¤J 1TB ÀɮסH §Ú¦Û¤v´N¦b³nºÐ¤ù¤W©ñ¦n´X­Ó :-)¡CÀɮתº³Ì¤j®e¶q¨Æ¹ê¤W¸òºÏºÐ³Ì¤j ªº®e¶q¨Ã¨S¦³±K¤Á¬ÛÃö¡CºÏºÐªº³Ì¤j®e¶q¬O 1TB¡A³o¬O¤@­ÓÀɮפj¤p¥i ¥H¶W¹LºÏºÐ®e¶qªº¤@­Ó¯S¦â¡C ¥H¤U½d¨Ò·|¦b¤@­Ó¨Ï¥Î¾ã­Ó 32K ªÅ¶¡³o¼Ë¤pªº root partition ºÏºÐ ¤W«Ø¥ß¤@­Ó¤j¤p¬O 8T-1 ªºÀÉ®×(3 indirect blocks and 1 data block )¡Cdd «ü¥O»Ý­nÅý dd ¯à¦b¤@­Ó¤jÀɮפU°õ¦æ¡C ttyv0:bde@alphplex:/tmp/q> cat foo df . dd if=/dev/zero of=z bs=1 seek=`echo 2^43 - 2 | bc` count=1 ls -l z du z df . ttyv0:bde@alphplex:/tmp/q> sh foo Filesystem 1024-blocks Used Avail Capacity Mounted on /dev/sd0a 64479 27702 31619 47% / 1+0 records in 1+0 records out 1 bytes transferred in 0.000187 secs (5346 bytes/sec) -rw-r--r-- 1 bde bin 8796093022207 Sep 7 16:04 z 32 z Filesystem 1024-blocks Used Avail Capacity Mounted on /dev/sd0a 64479 27734 31587 47% / ttyv0:bde@alphplex:/tmp/q> exit Bruce Evans, September 1998 ¦b±Ò°Ê·sªº kernel ®É¡A¬Ý¨ì "archsw.readin.failed" ³o­Ó¿ù»~°T®§ ¦b±Ò°Ê loader ¤§«e·|¬Ý¨ì "|" ³o­Ó²Å¸¹¦bÂà¡A³o®É¥i¥H«ö¥ô¦óÁ䤤Â_¡AµM «á¦A«ü©w­n¸ü¤J¨º­Ó kernel¡C¥J²Ó¨Ó»¡¡A§A¤w¸g§ó·s kernel ªº­ì©l½X¡B¤]¥Î¥¦ °µ¤F·sªº kernel¡A¦ý«o *¨S¦³­«·s make world*¡C§Ú­Ì¤£¤ä´©³o»ò°µ¡A½Ð¥ý make world¡A¦A§ó·s kernel¡C µwÅ骺¬Û®e©Ê FreeBSD ¤ä´©­þ¨ÇµwºÐªº¤¶­±¡H FreeBSD ¤ä´© EIDE ¤Î SCSI ¶gÃä (¦³µÛ¬Û®eªº controller¡F ½Ð°Ñ¦Ò¤U¤@¬q)¡A¥H¤Î¨Ï¥Î¡uWestern Digital¡v¤¶­±ªº¶gÃä (MEM¡B ¡BRLL¡BESDI¡A·íµM¡AIDE ¤]¦b¥]¬A¤º)¡C¦ý¤Ö¼Æ¨Ï¥Î±M¦³ªº ESDI ªº¤¶­±µLªk¹B§@¡G¹³¬O WD1002/3/6/7 ¤¶­±µ¥µ¥¡C FreeBSD ¤ä´©­þ¤@¨Ç SCSI ¥d¡H ¦b Handbook ¸Ì¦³§¹¾ãªº¸ê®Æ¡C FreeBSD ¤ä´©­þ¤@¨Ç CD-ROM¡H ­º¥ý¡A¥ô¦ó±µ¦b SCSI ¤¶­±¤Wªº CDROM ³£¦³³Q FreeBSD ©Ò¤ä´©¡C ¨ä¦¸¡A¤U­±©Ò¦Cªº CD-ROM ¤]³£¦³³Q¤ä´©¡G Mitsumi LU002 (8bit), LU005 (16bit) ¤Î FX001D (16bit ¨â­¿³t)¡C Sony CDU 31/33A ±µ¦b Sound Blaster ¤W«D SCSI ¤¶­±ªº CD-ROM Matsushita/Panasonic CD-ROM ¬Û®e©ó ATAPI IDE ¤¶­±ªº CD-ROM ¤w¸gª¾¹D«D SCSI ªº¶gÃä³]³Æ·|¤ñ SCSI ªººC«Ü¦h¡A¥t¥~¡A¦³¤@¨Ç ATAPI CDROM (³o¤]´N¬O»¡«D SCSI ªº CDROM) ¥i¯àµLªk¹B§@¡C ¹ï¤F¡A2.2 ª©ªº FreeBSD CDROM (¥Ñ Walnut Creek ¾ã²zªº) ¤ä´©¥úºÐ¶}¾÷¡C FreeBSD ¤ä´© ZIP ¶Ü¡H FreeBSD ·íµM¤ä´© SCSI ZIP¡C¦ý¬O ZIP ¥u¯à°÷³Q³]©w¦b SCSI ID 5 ©Î¬O 6 ¡C¦ý¦pªG SCSI ¥d¤Wªº BIOS ¤ä´©¥¦¡A§A¬Æ¦Ü¥i¥H¥Î¥¦¨Ó¶}¾÷¡C§Ú­Ì¤£¾å±o­þ¤@ ¶ô¥d¥i¥HÅý§A§â¥dªº ID ³]¦b°£¤F 0 ©Î 1 ¥H¥~ªº¦a¤è¶}¾÷... ¬Ý¬Ý§Aªº»¡©ú¤â ¥U (ªG§A¦¨¥\ªº¸Ü¡A¤]½Ð§AÅý§Ú­Ìª¾¹D) ATAPI (¤]´N¬O IDE ¤¶­±) ZIP ¤w¸g¦b FreeBSD 2.2.6 ¤Î¥H«áªºª©¥»³Q¤ä´©¤F¡C FreeBSD ±q 3.0 ¶}©l¤]¤ä´© Parallel Port Zip¡C¦pªG§A¥Îªºª©¥»°÷·sªº ¸Ü¡A¥ýÀˬd kernel ³]©wÀɤ¤¬O§_¦³ scbus0¡Bda0¡B ppbus0 ©M vp0 ³o´X­ÓÅX°Êµ{¦¡¡]Generic kernel ³]©wÀÉ ¤¤°£¤F vp0 ¤§¥~³£¦³¡^¡C¥[¤F³o´X­ÓÅX°Êµ{¦¡¤§«á¡AParallel Port Zip ´N¥i ¥H·í§@ /dev/da0s4¡A¬Ý¬O¥Î mount /dev/da0s4 /mnt¡B©Î¬O¡]DOS ºÏ¤ù¡ mount_msdos /dev/da0s4 /mnt ¨ÓŪ¼g¡C ¤]¥i¥H°Ñ¦Ò¦³Ãö¥i²¾°£³]³Æªºµù¸Ñ¡A ¤Î®æ¦¡¤Æªº¸ê®Æ¡C FreeBSD ¦³¤ä´© JAZ¡BEZ ¤Î¨ä¥L¹³³o¤@Ãþ¥i¥H²¾°Êªº³]³Æ¶Ü¡H °£¤F IDE ªº EZ drive ¥~¡A¨ä¥LªºÀ³¸Ó³£¬O SCSI ¤¶­±¡C©Ò¥H§AÀ³¸Ó±N¤j³¡ ¥÷³]³Æ¬Ý¦¨ SCSI ºÏºÐ¾÷¡A§â³Ñ¤U¨º¨Çªº IDE EZ ªº³]³Æ¬Ý¦¨ IDE ³]³Æ¡C §Ú­Ì¨Ã¤£½T©w FreeBSD ¹ï©ó§ó´« jaz ºÏ¤ù®Éªº¤ä´©«ç¼Ë ¡C¦ý§Ú­Ìª¾¹D¥²»Ý¦b©â´« jaz ºÏ¤ù«e±N³o­ÓÀɮרt²Î¥ý¨ø¤U¡C·íµM¡A§A¥²»Ý½T ©w¦b¶}¾÷®É³o¨Ç³]³Æªº¹q·½¬O¥´¶}ªº¡A¥H«KÅý FreeBSD ¥i¥H°»´ú¨ì¡C °Ñ¦Ò®æ¦¡¤Æªº¸ê®Æ¡C ¦³¨º¨Ç multi-port serial ¥d³Q FreeBSD ©Ò¤ä´©¡H §A¥i¥H°Ñ¦Ò¨ä¥L¶gÃä³]³Æªºªí¡C ÁöµM¦³¨Ç¥d¬O¨SµPªº¡A¦ý¤]¥i¥H¦b FreeBSD ¤U¤u§@¡A¹³¬O¸¹ºÙ¤ä´© AST ªº¥d¡C °Ñ¦Ò sio ³o¥÷»¡©ú¤å¥ó¥i¥HÅý§A¤F¸Ñ§ó¦h¦³Ãö©ó³o¤@Ãþ¥dªº¸ê°T¡C §Ú¦³¤@°¦ bus mouse¡C§Ú¸Ó¦p¦ó³]©w¡H FreeBSD ¤ä´©¥Ñ Microsoft¡ALogitech ¤Î ATI ©Ò¥Í²£ªº bus mouse ¤Î InPort bus mouse¡C³o¨Ç·Æ¹«ªº driver ³£¤w¸g¤º§t¦b GENERIC ¸Ì­±¤F¡C¦pªG§A¦Û¤v¦³­«·s °µ¤@­Ó kernel¡A½Ð½T©w¦³¨S¦³§â¤U¦C³o¤@¦æ¥[¤J§Aªº kernel config file¡G device mse0 at isa? port 0x23c tty irq5 vector mseintr ¶R bus mouse ®ÉÀ³¸Ó·|§t¤@¶ô¤¶­±¥d¡C³o¶ô¥d¤¹³\§A³]©w¤£¦Pªº port address ¤Î IRQ number¡C°Ñ¦Ò§Aªº»¡©ú¤â¥U¤Î mse man page ¨Ó±o¨ì§ó¦hªº¸ê°T. §Ú¦p¦ó¨Ï¥Î PS/2 mouse ©Î¬O PS/2 keyboard¡H ¦pªG§Aªº FreeBSD ¬O 2.2.5 ¥H¤Wªºª©¥» (§t 2.2.5)¡A¨º»ò§A»Ý­nªº driver ¤£¶È©ñ¨ì kernel ¸Ì­±¤F¡A¦Ó¥B§Aªº PS/2 ³]³ÆÀ³¸Ó¥i¥H¦b¶}¾÷®É³Q°»´ú¨ì¡C ¦pªG§A¥Îªº¬O 2.1.x ¨ì 2.2.5 (¤£§t 2.2.5) ª©ªº FreeBSD¡A§A¥i¥H¦b ¶}¾÷ªº®É­Ô¶i¤J¡ukernel configuration menu¡v¸Ì¥h±Ò°Ê¡A¤]´N¬O¦b¶}¾÷®É¥X²{ boot: ªº²Å¸¹«á¥´¤J -c¡C¦]¬°¹w³]­È¬OÃö±¼ªº¡A©Ò¥H§A¥²»Ý¦Û¤v¥h±Ò°Ê¥¦¡C ¦pªG§A¥Îªº¬O§óªºª©¥»¡A§A»Ý­n¦Û¤v½s¤@­Ó kernel¡A¦b§Aªº®Ö¤ß³]©wÀɸ̭±¥[¤J¡G device psm0 at isa? port "IO_KBD" conflicts tty irq 12 vector psmintr ¦pªG§A¹ï©ó¦Û¤v½s¤@­Ó®Ö¤ß¨S¦³¸gÅç¡A½Ð°Ñ¦Ò¡u½s¤@­Ó®Ö¤ß¡v ¦pªG¦b¶}¾÷®É¦³§ä¨ì psm0 «o¤£¯à¨Ï¥Î¡A½Ð½T©w¦b /dev ¤U¦³ psm0 ³o­Ó³]³ÆÀÉ¡C ¦pªG¨S¦³¡A§AÀ³¸Ó¥Î root ªº¨­¥÷¿é¤J¤U­±³o¦æ¨Ó°µ¥X¡G cd /dev; sh MAKEDEV psm0 ¬O§_¦³¥i¯à¦b X Window ¤§¥~¨Ï¥Î·Æ¹«©O¡H ¦pªG§A¥Îªº¬O default console driver¡A¤]´N¬O syscons¡A¦Ó·Q­n¥Î ·Æ¹««ü¼Ð¨Ó°Å¶K¤å¦r¡A¨º»ò´N°õ¦æ·Æ¹«ªº daemon¡A¤]´N¬O moused¡AµM«á ¥Î¤U­±³o¨â¦æ¨Ó±Ò°Ê¥¦¡G moused -p /dev/xxxx -t yyyy vidcontrol -m on xxxx ªº¦a¤è¶ñ¤J mouse ªº device name¡A¦Ó yyyy ¶ñ¤J³o°¦·Æ¹«ªº protocol type¡C§A¥i¥H°Ñ¦Ò moused ³o­Ó man page ¨Ó§ä¬Ý¬Ý¦³¨º¨Ç protocol types ¥i¥H¶ñ¡C ¦pªG§A·Q­n¦b¶}¾÷®É´N°õ¦æ moused¡C¦b 2.2.1 ª©¤§«e (§t 2.2.1)¡A¨ì /etc/sysconfig ³]©w¤U­±ªº­È¡G mousedtype="yyyy" mousedport="xxxx" mousedflags="" ¦b 2.2.2 ª©¥H«á (§t 2.2.2) ¨ì /etc/rc.conf ³]©w¤U­±ªº­È¡G moused_type="yyyy" moused_port="xxxx" moused_flags="" ¥t¥~±q 2.2.6 ª©¶}©l¡Amoused ¥i¥H¦Û°Ê¨M©w protocol type¡A°£«D·Æ¹«¹ê¦b ¬O¤Ó¤F¡C¦pªG¤Óªº¸Ü¡A¦b moused_type ¶ñ¤J ``auto''¡AµM«á¬èë ¥i¥H°»´úªº¨ì¡C ·í°õ¦æ moused «á¡A·Q­n¦b¨ä¥Lµ{¦¡¸Ì¨Ï¥Î·Æ¹«»Ý­n¹³ X Window ³oÃþªºÀ³¥Î µ{¦¡¡C°Ñ¦Ò¥»¤åªº ¥t¥~³o¬q¡C ¦p¦ó¦b text console ¸Ì°Å¶K¡H ·í°õ¦æ moused «á¡A(°Ñ¦Ò«e¤@¸`)¡A«ö¦í¥ªÁä¡A ²¾°Ê·Æ¹«¨Ó¿ï¾Ü¤@­Ó°Ï°ì¤§«á©ñ¶}¡CµM«á¡A«ö¤U¤¤Áä©Î¥kÁä¡A´N¥i¥H¶K¤W¥h¤F¡C ¦b 2.2.6 ª©«á (§t 2.2.6)¡A«ö¤U¤¤Áä·|°õ¦æ¶K¤W³o­Ó°Ê§@¡A¦ý«ö¤U¥kÁä·|©µ¦ù ©Ò¿ï¨úªº°Ï°ì¡C¦pªG§Aªº·Æ¹«¨S¦³¤¤Áä¡A§A¥i¥H¥Î¼ÒÀÀªº¤è¦¡©Î¬O­«·s©w¸q·Æ¹««ö Á䪺¤è¦¡¨Ó¹F¦¨¡u©µ¦ù¡vªº¥\¯à¡C°Ñ¦Ò moused ³o­Ó man pages ¨Ó±o¨ì§ó¦h¬ÛÃö¸ê°T¡C §Úªº·Æ¹«¤W¦³ºu½ü¡A¯à¤£¯à¦b FreeBSD ¤U¨Ï¥Î¡H «Ü¤£©¯ªº¡A¦b¤j¦h¼Æªº±¡ªp¤U¤£¦æ¡C³o¨Ç±a¦³ºu½üªº·Æ¹«»Ý­n¥Î¯S ®íªºÅX°Êµ{¦¡¡C°£«D·Æ¹«¦³³Q§Aªºµ{¦¡©Î¬OÅX°Êµ{¦¡©Ò¤ä´©¡A¤£µM³o¨Ç·Æ ¹«¥u¯à°÷·í¦¨¬O´¶³qªº¨âÁä©Î¤TÁ䪺·Æ¹«¨Ï¥Î¡C §Ú¯à¦b§Úªº laptop ¤W¨Ï¥Î·Æ¹«/­y¸ñ²y/touchpad ¶Ü¡H °Ñ¦Ò¤W¤@¬qªºµª®×¡A¨Ã¥B°Ñ¦Ò Mobile Computing ºô­¶ªº ³o­Óµù¸Ñ¡C FreeBSD ¤ä´©­þ¨Ç tape ©PÃä¡H FreeBSD ¤ä´© SCSI¡AQIC-36 (QIC-02 ¤¶­±) ¤Î QIC-40/80 (Floppy ¤¶­±) tape drives¡C ¥]¬A 8-mm (aka Exabyte) ¤Î DAT drives¡C¤w¸gª¾¹D QIC-40/80 drives «ÜºC¡C ¬Y¨Ç¦­´Áªº 8-mm drives ¨Ã¤£¬Û®e©ó SCSI-2¡A¥i¯à¨S¦³¿ìªk¦b FreeBSD ¤W¹B§@¡C FreeBSD ¤ä´© tape changer ¶Ü¡H FreeBSD 2.2 §Q¥Î ch ³o­Ó³]³Æ¨Ó¤ä´© SCSI changers¡A§A¥i¥H°Ñ¦Ò chio ³o­Ó«ü¥O¡C ¦p¦ó±±¨î changer ªº¤èªk¥i¥H¦b chio ³o¥÷»¡©ú¤å¥ó¸Ì§ä¨ì¡C ¦pªG§A¤£¬O¥Î AMANDA ©Î ¨ä¥L¤w¸g³Qª¾¹Dªº changer¡A°O¦í¡A§A¥uª¾¹D¦p¦ó±N¤@­Ó tape ±q¨ä¤¤¤@­Ó²¾¨ì¥t¥~¤@­Ó¡A ©Ò¥H§A»Ý­n°O¦í¨º¤@­Ó tape ¦b¸Ì­±¡A¤Î²{¦b¦³¨º¤@­Ó tape »Ý­n©ñ¦^¥h¡C FreeBSD ¤ä´©­þ¨Ç­µ®Ä¥d¡H FreeBSD ¤ä´© SoundBlaster¡ASoundBlaster Pro¡ASoundBlaster 16¡A Pro Audio Spectrum 16¡AAdLib ¤Î Gravis UltraSound sound cards¡C ¦ý¹ï©ó MPU-401 ¤Î¨ä¬Û®e MIDI ¥dªº¤ä·½¦³­­¡C¹ï©ó¨Ï¥Î Microsoft Sound System ªº¥d¥i¥H³z¹L pcm ªºÅX°Êµ{¦¡¨Ó¨Ï¥Î¥¦¡C NOTE ³o­ÓÅX°Êµ{¦¡¥u¾A¥Î©óÁn­µ¤è­±¡A¦Ó¥B¨Ã¤£¤ä´©¦b³o¨Ç ¥d¤Wªº CD-ROM¡ASCSI ©Î joysticks¡C¦ý¤]¦³¨Ç¨Ò¥~¡A¹³¬O SoundBlaster¡B SoundBlaster SCSI ¤¶­±¤Î¬Y¨Ç«D SCSI CDROMS ¦³³Q¤ä´©¡A¦ý§AµLªk¨Ï¥Î³o ¨Ç³]³Æ¶}¾÷¡C es1370 ªº­µ®Ä¥d¥Î pcm ÅX°Êµ{¦¡Å¥¤£¨ìÁn­µ¡H ±z¥i¥H¦b¨C¦¸¶}¾÷®É°õ¦æ³o­Ó©R¥O¡G mixer pcm 100 vol 100 cd 100 FreeBSD ¤ä´©­þ¨Çºô¸ô¥d¡H °Ñ¦Ò¤A¤Óºô¸ô¥d ¡A¸Ì­±¦³§¹¾ãªº²M³æ¡C §Úªº¹q¸£¨S¦³¯BÂI¹Bºâ¾¹¡A³oÅ¥°_¨Ó¦n¹³¤£¤Ó¦n¡H Note ³o¥u·|¼vÅT¨ì¥Î 386/486SX/486SLC ªº¤H - ¨Ï¥Î¨ä¥Lªº CPU ³£ ¤w¸g¤º§t¯BÂI¹Bºâ¾¹¤F¡C ¤@¯ë¨Ó»¡³o¤£·|³y¦¨¥ô¦ó°ÝÃD¡A¦ý·í§A­n¥Îªº®É­Ô¡AµL½×¦b®Ä²v¤W»Pºë±K«×¤W¡A ¼ÒÀÀ¯BÂI¹Bºâªºµ{¦¡½X¤£¯à­ÝÅU (°Ñ¦Ò¯BÂI¹Bºâ¼ÒÀÀ¾¹)¡C ¤×¨ä¬O¦b X ¤U­±µe©·§Î®É·|«ÜºC¡C©Ò¥H¡A§Ú­ÌÁÙ¬O·|«ØÄ³¶R¤@Áû¯BÂI¹Bºâ¾¹¡C NOTE ¦³¨Ç¼Æ¾Ç¹Bºâ¾¹¤ñ¨ä¥Lªº¦n¡C¦ý¬O¨S¦³¤H±j­¢§A¶R Intel ªº¡C °£«D§A½T©w§A¶Rªº¥i¥H¦b FreeBSD ¤W¥¿½Tªº¤u§@¡C 2.X Á٤䴩­þ¨Ç³]³Æ¡H ½Ð¦h¦h°Ñ¦Ò Handbook ¡A¸Ì­±¦³¦C¥X¡C FreeBSD ¤ä´©¹q·½ºÞ²z¨t²Î¶Ü¡H FreeBSD ¤ä´©¬Y¨Ç¾÷¾¹¤Wªº APM¡C½Ð°Ñ¦Ò LINT ³o­Ó kernel ³]©wÀÉ¡A ¨Ã§ä¬Ý¬Ý APM ³o­ÓÃöÁä¦r¡C ¦b Micron systems ªº¥D¾÷ªO¤W§Ú¨S¦³¿ìªk¶i¤J FreeBSD Micron ªº¬Y¨Ç¥D¾÷ªO¨S¦³¿í¦u PCI BIOS ªº³W©w¡A¦Ó¾É¦Ü©ó·í¶i¤J FreeBSD ®É±¾±¼¡C¦]¬°³o¨Ç PCI ªº³]³Æ¨S¦³¦b¶}¾÷®É¦V¥D¾÷ªO³ø§i¥Lªºªº¦ì¸m¡C ¶i¤J BIOS «á¡A±N¡uPlug and Play Operating System¡v³o¶µµ¹ disable ±¼ ¥i¥H¼È®É¸Ñ¨M³o­Ó°ÝÃD¡C¦pªG§A·Q±o¨ì§ó¦h¦³Ãö Micron ªº°T®§¡A¥i¥H°Ñ¦Ò http://cesdis.gsfc.nasa.gov/linux/drivers/vortex.html#micron §Ú¦³¤@¶ô·s¶Rªº Adaptec ¥d¡A¦ý¬O FreeBSD §ä¤£¨ì¥¦¡C Adaptec ·sªº AIC789x ¨t¦C´¹¤ù²Õ¦b­è¥XÄlªº CAM SCSI Àô¹Ò¤U¥i¥H¨Ï¥Î¡C 2.2-STABLE »Ý­n patches¡A¦b ftp://ftp.FreeBSD.org/pub/FreeBSD/development/cam/¡CA CAM-enhanced ¶}¾÷ºÏ¤ù¦b http://www.FreeBSD.org/~abial/cam-boot/¡CµL½×§A¬O¥Î¨º¤@­Ó¡A½Ð¥ý°Ñ¦Ò README §Ú³o¦³¤@­Ó PnP ªº modem¡A¦ý¬O FreeBSD ¨S§ä¨ì«¨¡H §A»Ý­n§â modem ªº PnP ID ¥[¨ì serial ÅX°Êµ{¦¡ªº PnP ID ªí¸Ì¡AµM«á±N PnP ªº¥\¯àµ¹¥´¶}¡C¦b§Aªº®Ö¤ß³]©wÀɸ̥[¤J controller pnp0 «á¦A­«·s ½sͤ@­Ó kernel¡AµM«á­«·s±Ò°Ê§Aªº¨t²Î¡C®Ö¤ß·|¦C¥X¥¦©Ò§ä¨ìªº©Ò¦³³]³Æªº PnP ID¡C½Ð±N³o¨Ç modem ªº PnP ID ½Æ»s¨ì /sys/i386/isa/sio.c¡A ¤j¬ù 2777 ¦æªº¦a¤è¡C§A¥i¥H§ä "SUP1310" ³o­Ó¦r¦ê¨ÓÀ°§U§A§ä¨ì ¡¨siopnp_ids[]¡¨³o­Óªí¡C­«·s½sͤ@­Ó kernel ¤§«á­«·s¶}¾÷¡A§Aªº modem À³¸Ó·|³Q§ä¨ì¤F¡C ¦b¶}¾÷®É¥²¶·¤â°Ê¿é¤JÃþ¦ü¤U­±ªº¦r¦ê¡A¨Ï±o kernel ¥i¥H¬Ý¨ì§Aªº modem¡G pnp 1 0 enable os irq0 3 drq0 0 port0 0x2f8 §Ú¸Ó¦p¦ó¦b serial console «e¬Ý¨ì boot: ³o­Ó´£¥Ü²Å¸¹¡H ¦b§Aªº®Ö¤ßÀɸ̭±¥[¤J¤@¦æ options COMCONSOLE¡AµM«á­«·s½sͧAªº®Ö¤ß¡A µM«á¨ì /boot.config ¸Ì¼g¤J ³o¨â­Ó¦r¡C Unplug the keyboard from the system. °Ñ¦Ò /usr/src/sys/i386/boot/biosboot/README.serial ¨Ó¤F¸Ñ§ó¦hªº¸ê°T¡C ¬°¤°»ò§Úªº 3Com PCI ºô¸ô¥d¨S¦³¿ìªk¦b Micron ¥D¾÷ªO¤W¤u§@¡H ¬Y¨Ç Micron ¥D¾÷ªO¨S¦³¿í¦u PCI BIOS ªº³W©w¦Ó¨Ï±o PCI ªº¶gÃä³]³Æ¨S¦³¦^³ø ¥L­Ìªº¦ì¸m¡C³o¨Ï±o¦b¶i¤J FreeBSD ®É·|±¾±¼¡C ¦pªG­n¼È®É¸Ñ¨M³o­Ó°ÝÃD¡A½Ð¦b BIOS ¸Ì disable¡uPlug and Play Operating System¡v ¦³Ãö Micron §ó¦hªº°T®§¥i¥H°Ñ¦Ò¡G http://cesdis.gsfc.nasa.gov/linux/drivers/vortex.html#micron FreeBSD ¤ä´© Symmetric Multiproccessing (SMP) ¶Ü? SMP ¥u¦b 3.0-STABLE ¤Î¨ä¤§«áªºµo¦æª©¥»¤¤³Q¤ä´©. ±`¨£°ÝÃD¸Ñ¨M §ÚªºµwºÐ¦³Ãa­y! ­Y¬O SCSI µwºÐªº¸Ü¡AÀ³¸Ó¦³¯à¤O¦Û°Ê§@ re-mapping ªº°Ê§@¡C µM¦Ó¡A¦]¬°¤@¨Ç¯«¯µªº¦]¯À¡A¦b¥X¼t®É¡A«Ü¦hµwºÐªº³o¶µ¥\¯à¬OÃö³¬ªº. ­n±N¨ä­«·s¶}±Ò¡A±z»Ý­n½s¿è¸Ë¸mªº²Ä¤@­Ó page ¼Ò¦¡ ¡]first device page mode¡^¡A¦b FreeBSD ¤W¥i¥H¥Î¤U­±ªº«ü¥O¿ì¨ì ¡]¥H root ¨­¤À°õ¦æ¡ scsi -f /dev/rsd0c -m 1 -e -P 3 µM«á±N AWRE ©M ARRE ªº¼Æ­È±q 0 Åܦ¨ 1:- AWRE (Auto Write Reallocation Enbld): 1 ARRE (Auto Read Reallocation Enbld): 1 ¤W­±³o¬q¬O¥Ñ Ted Mittelstaedt ©Ò´£¨Ñ¡G ­Y¬° IDE µwºÐ¡A¥ô¦óªºÃa­y³q±`³£¬O³Â·Ðªº¹w¥ü¡C¥Ø«e©Ò¦³¸û·sªº IDE µw ºÐ¡A¤º³¡³£¦³¦Û°Ê remapping Ãa­yªº¯à¤O¡C¥Ø«e©Ò¦³ IDE µwºÐ»s³y°Ó¡A³£´£¨Ñ ¤F§ó¤[ªº«OÃÒ¡A¦Ó¥B·|À°±z§ó´«¥X²{Ãa­yªºµwºÐ¡C ¦pªG±z¤´·Q­n­×´_²£¥ÍÃa­yªº IDE µwºÐ¡A±z¤´¥i¥H¸ÕµÛ¥h¤U¸ü IDE µwºÐ»s³y °Ó©Ò´£¨ÑªºÀË´úµ{¦¡¡A¨Ã¥Î¥¦¨ÓÀˬd±zªºµwºÐ¡C¦³®É³o¨Ç³nÅé¥i¥H±j­¢µwºÐ¹q¸ô ­«·sÀˬdµwºÐªºÃa­y¡A¨Ã±N¥¦­Ì¼Ð¥Ü¥X¨Ó. ¹ï ESDI¡ARLL ¤Î MFM ªºµwºÐ¨Ó»¡¡A³q±`Ãa­y¬O¥¿±`²{¶H¡A¤]¤£¬O¤°»ò³Â·Ðªº «e¥ü¡C¦b PC ¤W¡AºÏºÐ±±¨î¥d©M BIOS ­t³d¼Ð¥ÜÃa­yªº¥ô°È¡C³o¹ï¤@¨Ç¨Ï¥Î BIOS ¨Ó¦s¨úºÏºÐªº§@·~Àô¹Ò(¦p DOS)¬O¨S¦³°ÝÃDªº¡CµM¦Ó¡AFreeBSD ªººÏºÐÅX°Êµ{¦¡ ¨Ã¤£¸g¹L BIOS ¨Ó¦s¨úºÏºÐ¡A©Ò¥H¡A¦³­Ó bad144 ªº¾÷¨î¥Î¨Ó¨ú¥N³o¶µ¥\¯à¡C bad144 ¥u¯à¥Î¦b wd ³o­ÓºÏºÐÅX°Êµ{¦¡¤W¡A¥¦µLªk¥Î¦b SCSI µwºÐ¤W¡Cbad144 ªº¤u§@¤èªk¬O±N©Ò¦³§ä¨ìªºÃa­y¸ê®Æ¦s¨ì¤@­Ó¯S§OªºÀÉ®×ùØ¡C ¨Ï¥Î bad144 ªºÄµ§i - ¦sµÛÃa­y¸ê®Æªº¯S§OÀɮ׬O©ñ¦bµwºÐªº³Ì«á¤@­y ¤W¡C¦]¬°³o­ÓÀÉ®×Àx¦sªºÃa­y¸ê®Æ¤¤¡A¦³¥i¯à¦³¨Ç¸ê®Æ¬O«ü¦VµwºÐ³Ì«eºÝ©Òµo¥Í ªºÃa­y±¡§Î¡A´N¬O¥i¯àÀx¦s /kernel ³o­ÓÀɪº¦a¤è¡A©Ò¥H¥¦¤@©w­n¯à³Q¶}¾÷µ{¦¡ ©ÒŪ¨ú¡A¦Ó¶}¾÷µ{¦¡¬O³z¹L BIOS ¨ÓŪ¨ú kernel ÀÉ¡C³oªí¥Ü¤F¨Ï¥Î bad144 ªº µwºÐµ´¤£¯à¾Ö¦³¶W¹L 1024 ­Ó cylinder¡A16 ­Ó head ¤Î 63 ­Ó sector¡C ³o³y¦¨¤F¨Ï¥Î bad144 ªºµwºÐªº¤j¤p¤£¯à¤j©ó 500 MB¡C ­n¨Ï¥Î bad144 «Ü²³æ¡A¥u­n¦b¶}©l¦w¸Ë®É¡A¦b FreeBSD fdisk µe­±§â "Bad Block" ±½ºË³]¬° ON §Y¥i¡C¦b FreeBSD 2.2.7 ¥H«á³£¥i¥H¨Ï¥Î¦¹¤èªk¡C ¦ý³o­ÓµwºÐªº cylinder ¤@©w­n¦b 1024 ¥H¤U¡C¨Ï¥Î«e¡A§Ú­Ì«ØÄ³³o­ÓµwºÐ­n ¦Ü¤Ö¥ý¨Ï¥Î¥|­Ó¤p®É¡A¥H«K¼ö¿±µÈ»PºÏ­y°¾²¾¹F¤@¯ëª¬ºA¡C ¦pªG³o­ÓµwºÐ¾Ö¦³¶W¹L 1024 ­Ó cylinder (¹³¤j®e¶qªº ESDI µwºÐ)¡A ESDI ±±¨î¥d§Q¥Î¤@­Ó¯S§OªºÂà´«¼Ò¦¡¨Ï¥¦¯à¦b DOS ¤U¤u§@¡C ¦Ó¦pªG±z¦b fdisk ùتº "set geometry" ¤¤¿é¤J "Âà´«¹L" ªº geometry¡Awd ³o ­ÓÅX°Êµ{¦¡¯à¤F¸Ñ³o¨ÇÂà´«¼Ò¦¡¡C±z¤]µ´¹ï¤£¯à¨Ï¥Î dangerously dedicated ¼Ò ¦¡¨Ó«Ø¥ß FreeBSD ªº¤À³Î°Ï¡A¦]¬°¥¦·|©¿²¤ geometry ³o­Ó°Ñ¼Æ¡C ¦¹¥~¡A´Nºâ fdisk ¨Ï¥Î±z©Ò¿é¤Jªº geometry °Ñ¼Æ¡A¥¦¨ÌµM·|¥hŪ¨ú³oµwºÐªº ¯u¥¿¸ê®Æ¡A¦Ó·|¹Á¸Õ¥h«Ø¥ß¤@­Ó¹L¤jªº FreeBSD ¤À³Î°Ï¡C¦pªGºÏºÐªº geometry ¤w¸g³Q "Âà´«" ¹L¤F¡A¨º»ò³o­Ó¤À³Î°Ï "¥²¶·" ¥H¤â°Ê¿é¤J block ¼Æ¥Øªº¤èªk¨Ó «Ø¥ß¡C ¤@­Ó§Ö³tªº¤p§Þ¥©¬O§Q¥Î ESDI ±±¨î¥d¨Ó³]©w¤j®e¶qªº ESDI µwºÐ¡A¥Î DOS ¶} ¾÷¤ù¶}¾÷¡A¦A±N¥¦ format ¬° DOS ªº¤À³Î°Ï¡CµM«á­«¶}¾÷¶i¤J FreeBSD ¦w¸Ëµ{§Ç ¡A¦b fdisk µe­±¡A§âDOS ¤À³Î°Ïªº blocksize ©M block number §Û¤U¨Ó¡CµM«á­« ·s³]©w geometry ¨Ï¨ä¸ò DOS ¨Ï¥Îªº¤@¼Ë¡C§R°£ DOS ¤À³Î°Ï¡AµM«á¨Ï¥Î±z­è­è§Û ¤Uªº blocksize ¨Ó«Ø¥ß¤@­Ó cooperative FreeBSD ¤À³Î°Ï¡CµM«á³]©w³o­Ó¤À³Î°Ï ¬°¥i¶}¾÷¡A¦A¥´¶}Ãa­y±½ºË¡C¦b¯u¥¿ªº¦w¸Ë¹Lµ{¤¤¡Abad144 ·|¦b¥ô¦óÀɮרt²Î³Q «Ø¥ß«e¥ý³Q°õ¦æ¡C(±z¥i¥H«ö Alt-F2 ¨ÓºÊ¬Ý³o¤@¤Á)¦pªG¦b«Ø¥ßÃa­y¸ê®ÆÀɮɵo¥Í ¤F°ÝÃD¡A±z·|»Ý­n³]©w¤@­Ó¸û¤jªººÏºÐ geometry - ³oªí¥Ü±z»Ý­n­«¶}¾÷¡AµM«á¥þ ³¡¦A­«·s¶}©l (¥]¬A­«·s¤À³Î¥H¤Î¦b DOS ¤U­«·s format)¡C ¦pªG remapping ªº¥\¯à¤w¸g±Ò°Ê¤F¡A¦Ó±z¨ÌµM¤@ª½¬Ý¨ìÃa­y²£¥Í¡A¨º»ò¦Ò¼{ ´«¤@¥xµwºÐ§a¡CÃa­yªº±¡§Î¥u·|ÀH®É¶¡¼W¥[¦Ó§ó¬°ÄY­«¡C FreeBSD §ì¤£¨ì§Úªº Bustek 742a EISA SCSI ¥d! ¤U­±ªº¸ê°T¬Oµ¹ 742a ³o±i¥d¥Îªº¡A¦ý¬O¨ä¥L Buslogic ªº¥d©Î³\¤]¥i¥H ¾A¥Î¡C (Bustek ´N¬O Buslogic) 742a ³o±i¥d¦³¨â­Ó¥D­nªº¡uª©¥»¡v¡C¤@­Ó¬Oª©¥» A-G¡A¥t¤@­Ó¬Oª©¥» H ¤Î¨ä¥H«á¡Cª©¥»¸ê°T¥i¥H±q¤¶­±¥dÃä½tªº¬y¤ô¸¹³Ì«á­±±oª¾¡C742a ³o±i ¥d¦³¨â­Ó°ßŪ´¹¤ù¦b¥¦¤W­±¡A¤@­Ó¬O BIOS ´¹¤ù¡A¦Ó¥t¤@­Ó¬O¶´Åé´¹¤ù¡C FreeBSD ¨Ã¤£¦b¥G±z¥d¤Wªº BIOS ª©¥»¡A¦ý¬O¶´Å骺ª©¥»´N«Ü­«­n¤F¡C¦pªG §A¥´¹q¸Üµ¹¥L­Ì§Þ³N¤ä´©±M½uªº¸Ü¡A¥L­Ì·|±Hµ¹±z³Ì·sªºª©¥»¨Ñ±z¤É¯Å¡C BIOS ©M¶´Åé´¹¤ù¬O¤@°_°e¨Óªº¡C ±z»Ý­n±N¥d¤W BIOS ©M¶´Å骩¥»¡A¨Ì±z¥d ª©¥»ªº¤£¦P¡A¤É¯Å¨ì³Ì·sªº¤@ª©¡C ª©¥» A-G ªº¥d³Ì°ª¥u¯à±N BIOS/¶´Åé ¤É¯Å¨ì 2.41/2.21 ª©¡A¦Óª©¥» H «á¡A¥Ø«e BIOS/¶´Å骺³Ì·sª©¥»¬O 4.70/3.37¡C³o¨â­Ó¶´Å骩¥»¶¡ªº®t²§¦b ©ó¡A3.37 ³oª©¤ä´© ``round robin'' Buslogic ªº¥d¤W­±¤]³£¦³§Ç¸¹¡C¦pªG±z¥dªºª©¥»¸û¡A±z¥i¥H¸ÕµÛ¥´¹q ¸Üµ¹ Buslogic ªºRMA ³¡ªù¡AµM«áµ¹¥L­Ì±zªº§Ç¸¹¡A¬Ý¯à¤£¯à¸ò¥L­Ì¥æ´«¤@ ±i¸û·sª©¥»ªº¥d¡C¦pªG¨º±i¥d°÷ªº¸Ü¡A¥L­Ì·|´«µ¹§A¡C FreeBSD 2.1 ¥u¤ä´©¶´Åé 2.21 ª©¥H«áªºª©¥»¡C¦pªG±z¶´Å骩¥»¤ñ³o­ÓÁ٠ªº¸Ü¡A¨º»ò±zªº¥d´N¤£¯à³Q¿ëÃÑ¥X¬O Buslogic ªº¥d¡C¥¦¦³¥i¯à·|³Q¿ëÃѦ¨ Adaptec 1540¡C¸û¦­ªº Buslogic ¥d¤Wªº¶´Å馳¤@­Ó AHA1540``¼ÒÀÀ''¼Ò¦¡¡A ³o¹ï¤@±i EISA ¥d¨Ó»¡¨Ã¤£¬O¥ó¦n¨Æ¡C ¦pªG±z¦³¤@±i¸ûª©¥»ªº¥d¡A¦Ó±z¨ú±o 2.21 ª©¶´Å骺¸Ü¡A±z»Ý­nÀˬd¤@¤U jumper W1 ªº¦ì¸m¡A±N¥¦½Õ¦Ü B-C¡A­ì©l³]©w¬O A-B¡C 742a EISA ¥d¨S¦³¦b ¦b¾Ö¦³ >16 MB °O¾ÐÅ骺¾÷¾¹¤W ³o¬q¤¤©Ò´£¹Lªº ``>16MB'' °ÝÃD¡C³o­Ó°ÝÃD¥u·|µo¥Í¦b Vesa-Local ¶×¬y±Æªº Buslogic SCSI ¥d¤W¡C FreeBSD §ì¤£¨ì§Úªº HP Netserver ªº SCSI ±±¨î¥d¡I °ò¥»¤W³o­Ó¬O¤@­Ó¤wª¾ªº°ÝÃD¡C¦b HP Netserver ¾÷¾¹¤Wªº on-board EISA ¤¶­± SCSI ±±¨î¥d¥e¾Ú¤F©w§}¬°²Ä 11 ªº EISA ¼Ñ¡A¦]¦¹©Ò¦³ªº ``¯u¹ê'' EISA ¼Ñ³£¦b¥¦¤§«e¡C¥i¬O¡A¦b EISA ©w§}ªÅ¶¡ >= 10 ®É¡A·|»P«ü©wµ¹ PCI ¥Îªº©w§}ªÅ¶¡¬Û½Ä¬ð¡A¥B FreeBSD ªº auto-configuration µLªk¥¿½Tªº³B²z ³o­Ó±¡§Î¡C ¦]¦¹¡A²{¦b§A¯à°µªº³Ì¦n¨Æ±¡´N¬O¦b kernel ùس]©w EISA_SLOTS ³o­Ó¿ï¶µ¬° 12 ¡AµM«á·í§@¨S¦³³o­Ó°ÝÃD :)¡C ½Ð¨Ì·Ó Handbook ¤¤¦³Ãö kernel ªº³]©w ùةһ¡ªº¤èªk¨Ó ³]©w»P½sͱzªº kernel ·íµM¡A¦b¦w¸Ë¨ì³oºØ¾÷¾¹¤W®É¡A³o¬O¤@­ÓÂû¥Í³J³J¥ÍÂûªº°ÝÃD¡C ¬°¤F¸Ñ¨M³o­Ó°ÝÃD¡A¦b UserConfig ¤¤¦³¤@­Ó¯S§Oªº¤èªk¡A ¦w¸Ë®É¤£­n¶i¤J ``visual'' ¤¶­±¡A¬Û¤Ïªº¡A¦b©R¥O¦C¼Ò¦¡¤¤¡AÁä¤J eisa 12 quit µM«á´N¦p¥H©¹¤@¼Ë¦w¸Ë±zªº¨t²Î¡CÁöµM§Ú­Ì«ØÄ³±z½sĶ»P¦w¸Ë¤@­Ó ÄÝ©ó¦Û¤vªº kernel¡A¦ý dset ²{¦b¤]¤w¸g¤F¸Ñ³o­Ó°Ñ¼Æ¡A¥B·|Àx¦s¥¦¡C §Æ±æ¡A¦b¥¼¨Óªºª©¥»¤¤¯à¹ï³o­Ó°ÝÃD¦³¤@­Ó¦nªº¸Ñ¨M¤èªk¡C ª`·N: ±zµLªk¦b HP Netserver ¤W¨Ï¥Î dangerously dedicated ºÏºÐ¼Ò¦¡¡C±z¥i¥H°Ñ¦Ò ³o¥÷µù¸Ñ¥HÀò±o§ó¦h¸ê°T¡C CMD640 IDE ±±¨î´¹¤ù¥X¤F¤°»ò°ÝÃD? ¥¦ªº°ÝÃD¦b©óµLªk¦P®É³B²z¨â­Ó channel ªº«ü¥O¡C ²{¦b¤w¸g¦³­Ó¸Ñ¨M¤èªk¤F¡A¥B·|¦Û°Ê¦b±z¨Ï¥Î³o¶ô´¹¤ù®É±Ò°Ê¡C ¦pªG»Ý­n§ó¸ÔºÉªº¸ÑÄÀ¡A½Ð¬d¾\¦³ÃöºÏºÐÅX°Êµ{¦¡ªº»¡©ú(man 4 wd) ¦pªG±z¥Ø«e¬O¨Ï¥Î CMD640 IDE ±±¨î´¹¤ù¡A¥[¤W FreeBSD 2.2.1 ©Î 2.2.2¡A¦Ó¥B±z¤S·Q­n¨Ï¥Î¨ì²Ä¤G­Ó channel ®É¡A½Ð¦b±zªº kernel ³] ©w¤¤¥[¤J options "CMD640" µM«á­«·s½sͤ@­Ó·sªº kernel¡C ³o­Ó option ¦b 2.2.5 ª©¥H«á¬O¤º©w±Ò°Êªº¡C §Ú¤@ª½¬Ý¨ìÃþ¦ü ``ed1: timeout'' ªº°T®§ ³o­Ó³q±`¬O¥Ñ©ó¤¤Â_½Ä¬ð(interrupt conflict)©Ò³y¦¨ªº (¨Ò¦p¡A¨â¶ô¥d ¨Ï¥Î¨ì¤F¬Û¦Pªº IRQ)¡C FreeBSD ¦b 2.0.5 ª©¥H«e³£®e³\³o­Ó±¡§Î¡A ´Nºâ¦³ IRQ ½Ä¬ð±¡§Î¡Aºô¸ô¥d¤]À³¸Ó¤´¥i¥¿±`¹B§@¡C µM¦Ó¡A¦b 2.0.5 ª©¤Î¨ä¥H«á¡A¤w¤£¦A®e³\¦³ IRQ ½Ä¬ðªº±¡§Î¤F¡C ½Ð©ó¶}¾÷®É¨Ï¥Î -c ³o­Ó¿ï¶µ¡AµM«á§ó§ï ed0/de0/..¡Cµ¥ªº³]©w¡A¨Ï¨ä ©M±zºô¸ô¥d¥»¨­ªº³]©w¤@­P¡C ¦pªG±z¬O¨Ï¥Î±zºô¸ô¥d¤Wªº BNC ±µÀY¡A±z©Î³\¤]·|¦]¤£¨}ªº²×ºÝ¹qªý³]©w¡A ¦Óµo¥Í¸Ë¸m (device) timeout ªº±¡§Î¡C­nÀˬd¬O§_¦³³oºØ±¡§Î¡A±z¥i¥H¦b ºô¸ô¥d¤Wª½±µ±µ¤W²×ºÝ¹qªý (¤£­n±µºô¸ô½u)¡AµM«á¬Ý¬Ý³o­Ó¿ù»~°T®§¬O¤£¬O ´N®ø¥¢¤F¡C ¦³¨Ç NE2000 ªº¬Û®e¥d¡A¦pªG¥¦ªº UTP °ð¨S¦³±µºô¸ô½u¡A©Î¬O¸Óºô¸ô½u¨Ã ¨S³Q¨Ï¥Îªº¸Ü¡A¤]·|¥X²{³o­Ó¿ù»~°T®§¡C ¦b§Ú·Q­n±¾¤W CDROM ®É¡A¥X²{``Incorrect super block''ªº°T®§ ±z¥²¶·§i¶D mount ±z·Q±¾¤Wªº device ªºÀɮ׮榡¡C¦b­ì©l³]©wùØ¡A mount ·|°²³]±zªºÀɮ׮榡¬° ``ufs''¡C¦pªG±z·Q­n±¾¤W CD-ROM ùتºÀɮסA ±z»Ý­n¦b mount ®É«ü©w ``'' ³o­Ó¿ï¶µ¡C·íµM¡A³o¬O°²³]¥úºÐ¤ù¬O¨Ï¥Î ISO 9660 ªºÀɮרt²Î (µ´¤j¦h¼Æ¥úºÐ¤ù¬Ò¬O¥Î³o®MÀɮרt²Î) ¥B¦b 1.1 ª©¥H«á¡AFreeBSD ¤w¸g¯à¬Ý±oÀ´ Rock Ridge (ªøÀɦW) ³o­Ó©µ¦ù®æ¦¡¡C Á|¨Ò¨Ó»¡¡A¦pªG±z·Q±N ``/dev/cd0c'' ³o­Ó CDROM ¸Ë¸m (device) ±¾¦b /mnt ¤U¡A±z»Ý­n°õ¦æ: mount -t cd9660 /dev/cd0c /mnt ­nª`·Nªº¬O¡A±zªº¸Ë¸m¦WºÙ¥i¯à·|¤£¤@¼Ë (¦b¦¹½d¨Ò¤¤¬O ``/dev/cd0c''¡A¥¦¬O®Ú¾Ú±zªº CDROM ¤¶­±¦Ó©wªº¡C ¥t¥~­nª`·Nªº¡A``'' ³o­Ó¿ï¶µ¥u¬O©I¥s ``mount_cd9660'' ³o­Ó«ü¥O¡A©Ò¥H¤W­±³o­Ó½d¨Ò ¤]¥i¥HÁYµu¬°: mount_cd9660 /dev/cd0c /mnt ·í§Ú·Q±¾¤W CDROM ®É¡A¥X²{¤F ``Device not configured'' ªº¿ù»~°T®§ ³o³q±`¬Oªí¥Ü±zªº CD-ROM ùØ­±¨S¦³¥úºÐ¤ù¡A©ÎªÌ¬O³o¥x¾÷¾¹µLªk³Q ¶×¬y±Æ (bus) §ì¨ì¡C©ñ¤ù¥úºÐ¤ù¦b¥úºÐ¾÷ùØ¡A¦pªG¥¦¬O IDE (ATAPI) ªº ¥úºÐ¾÷ªº¸Ü¡AÀˬd¤@¤U¥¦ªº master/slave ª¬ºA¡C¥úºÐ¾÷³q±`»Ý­n´X¬íÄÁ ªº®É¶¡¤~¯à³Æ§´ (ready)¡A©Ò¥H½Ð­@¤ßµ¥­Ô¡C ¦³®É³o¬Oµo¥Í¦b SCSI CD-ROM ¤W¡A¦]¬°¥¦¦b¶×¬y±Æ­«¸m (bus reset) ®É¨Ó¤£¤Î¦^À³¡A©Ò¥H®ø¥¢¤F¡C¦pªG±z¾Ö¦³ªº¬O SCSI CD-ROM¡A½Ð¹Á¸Õ¦b kernel ³]©wÀɤ¤¥[¤J¥H¤Uªº³]©w¡AµM«á­«·s½sĶ¡C options "SCSI_DELAY=15" §Úªº¦Lªí³t«×¯}¤Ñ¯îªººC¡C§Ú¸Ó«ç»ò°µ¡H ¦pªG¬O¥­¦æ°ð¡A¥B°ß¤@ªº°ÝÃD´N¬O³t«×«ÜºCªº¸Ü¡A¸ÕµÛ³]©w±zªº ¦Lªí¾÷°ð¬° ``polled'' ¼Ò¦¡: lptcontrol -p ¦³¨Ç·sªº HP ¦Lªí¾÷¦ü¥GµLªk¦b interrupt ¼Ò¦¡¤¤¥¿±`¤u§@¡A «Ü©úÅ㪺¬O¦]¬°¤@¨Ç®É¯ß°ÝÃD (¦ýÁÙ¤£¬O«ÜÁA¸Ñ¬°¤°»ò·|¦p¦¹) §Úªºµ{¦¡¦³®É·|¦] ``Signal 11'' ³o­Ó¿ù»~¦Ó°±¤î ³o­Ó³q±`¬O¦]¬°¦³°ÝÃDªºµwÅé (°O¾ÐÅé¡A¥D¾÷ªOµ¥µ¥) ©Ò³y¦¨ªº. ¸Õ¸Õ¦b±zªº PC ¤W¶]­Ó°O¾ÐÅé´ú¸Õµ{¦¡¬Ý¬Ý¡Cª`·N¡A´Nºâ±z¸Õ¹Lªº¨C¤@ºØ°O ¾ÐÅé´ú¸Õµ{¦¡³£¦^³ø»¡±zªº°O¾ÐÅé¨S¦³°ÝÃD¡A¦ý¬O¡A¦³¤@¨Ç§C«~½èªº°O¾ÐÅé¡A ÁöµM¯à³q¹L°O¾ÐÅé´ú¸Õ¡A¤£¹L¦b¯u¥¿¤u§@®É«o·|¥X°ÝÃD (¨Ò¦p±q Adaptec 1542 µ¥µ¥ SCSI ±±¨î¥d°µ bus mastering DMA¡B¦b½s¿è kernel ®É¡B ©Î¬O¨t²Îªº­t¸ü«Ü°ª®É) SIG11 FAQ (¦ì§}¦b¤U­±) «ü¥X°O¾ÐÅ骺³t«×¤£°÷§Ö³q±`¬O³o­Ó°ÝÃDªº­ì¦]¡C ¸ÕµÛ¦b±zªº BIOS ³]©w¤¤¼W¥[°O¾ÐÅé wait ª¬ºAªº®É¶¡¡A©Î¬O§ó´«§ó§Öªº°O¾Ð Åé¡C ¥H§Ú¦Ó¨¥¡A§Ú´¿¹J¹L¥Ñ¤£¨}ªº§Ö¨ú°O¾ÐÅé©Î¬O¤£¨}ªº on-board §Ö¨ú¥d ©Ò³y¦¨ªº³o­Ó°ÝÃD¡C¸ÕµÛ¦b BIOS ³]©w¤¤¨ú®ø on-board (²Ä¤G¶¥) §Ö¨ú¡A ¬Ý¬Ý³o¼Ë¯à¤£¯à¸Ñ¨M³o­Ó°ÝÃD ³o¨à¦³¤@¥÷«Ü¦nªº FAQ: SIG11 °ÝÃDªº FAQ ·í§Ú¶}¾÷®É¡A¿Ã¹õÅܶ¡A¥B¤£°±°{°Ê¡I ³o­Ó°ÝÃD¡A¤wª¾¬O¥Ñ ATI Mach 64 Åã¥Ü¥d©Ò¤Þ°_ªº¡C¦]¬°³o¶ô¥d¨Ï¥Î¨ì 2e8 ³o­Ó¦ì§}¡A¦Ó³o»P²Ä¥|­Ó§Ç¦C°ð(serial port)©Ò¨Ï¥Îªº¦ì§}¬Û¦P¡C¦Ó sio.c ³o­ÓÅX°Êµ{¦¡¡A¤£ª¾¹D¬O bug ©Î¬O¥\¯à(feather)¡A´Nºâ±z¨S¦³²Ä¥|­Ó§Ç¦C°ð¡A ©Î¬O¤w¸g±N sio3 (²Ä¥|­Ó§Ç¦C°ð¡^¨ú®ø¤F¡A¥¦¨ÌµM·|¥h¹Á¸ÕÅX°Ê¥¦¡C ª½¨ì³o­Ó°ÝÃD³Q¸Ñ¨M¥H«e¡A±z¥i¥H¨Ï¥Î³o­Ó¤èªk¡G ¦b¶}¾÷´£¥Ü¡]¬Ý¨ìboot: ®É¡^¥´¤J ¡C ¡]³o·|Åý kernel ¶i¤J³]©w¼Ò¦¡¡^ ¨ú®ø sio0¡Asio1¡Asio2 and sio3 ¡]¥þ³¡¡^ ³o¥i¥HÅý sio ÅX°Êµ{¦¡¤£°Ê§@ -> ©ó¬O°ÝÃD¸Ñ¨M¡C ¿é¤J exit ¥HÄ~Äò±Ò°Êµ{§Ç ¦pªG±z·Q­n¨Ï¥Î±zªº§Ç¦C°ð¡A±z»Ý­n­×§ï /usr/src/sys/i386/isa/sio.c¡A¦b¸ÓÀɤ¤§ä¥X 0x2e8 ³o­Ó¦r¦ê ²¾°£³o­Ó¦r¦ê¤Î¥¦«e­±ªº³r¸¹¡]«O¯d«á­±ªº¡^¡AµM«á­«·s½sͤ@­Ó·sªº kernel ´Nºâ¨Ï¥Î¤F¤W­±³o¨Ç¤èªk¡AX Window ¤´µM¦³¥i¯àµLªk¶¶§Q°õ¦æ¡C¦³¨Ç·sªº ATI Mach 64 Åã¥Ü¥d¡]¯S§O¬O ATI Mach Xpression¡^¡AµLªk¦b¥Ø«eª©¥»ªº XFree86 ¤W¥¿±`¤u§@¡F±Ò°Ê X Window ®É¿Ã¹õÅܶ¡A©Î¬O·|¦³©_©Çªº°ÝÃD µo¥Í¡C±z¥i¥H¨ì XFree86 ªººô¯¸ §ä¨ì new beta release ³o­Ó³sµ²(link)¡A¨Ó¨ú±o X-server ªº beta ª©¡A¥¦ªº ¬Û®e±¡§ÎÀ³¸Ó´N¤ñ¸û¦n¤F¡C±z»Ý­n¨ú±o¤U¦C³o¨ÇÀɮסG AccelCards¡ABetaReport¡ACards¡ADevices¡AFILES¡AREADME.ati¡A README.FreeBSD¡AREADME.Mach64¡ARELNOTES¡AVGADriver.Doc¡A X312BMa64.tgz ¥H³o¨ÇÀɮרú¥N±z­ì¦³ªºÂÂÀɮסAµM«á¤Á°O¦A¶] xf86config ¤@¹M¡C §Ú¦³ 128 MB ªº RAM¡A¦ý¬O¨t²Î¥u¥Î¨ä¤¤ªº 64MB ¦]¬° FreeBSD ¬O¨Ï¥Î©I¥s BIOS ¨Ó¨ú±o°O¾ÐÅé¤j¤pªº¤èªk¡A¦]¦¹¥¦¥u¯à °»´ú¨ì 16 bits ¦ì¤¸ªø«×ªº KByte ¤j¤p (65535 KBytes = 64MB) (©ÎªÌ§ó¤Ö..¡C¦³¨Ç BIOS ±N³Ì°ª°O¾ÐÅé¤j¤p­­¬°¥u¦³ 16MB) ¦pªG±z¾Ö¦³ 64MB ¥H¤Wªº RAM¡AFreeBSD ·|¹Á¸Õ¥h°»´ú¥X¥¦¡A¦ý¬O¦³¥i¯à ·|¥¢±Ñ¡C ­n¸Ñ¨M³o­Ó°ÝÃD¡A±z»Ý­n¨Ï¥Î¤U­±©Ò´£ªº kernel ³]©w¿ï¶µ¡C ÁöµM¦³¤èªk¥i¥H±q BIOS ¤¤¨ú±o°O¾ÐÅ骺§¹¾ã¸ê°T¡A¦ý¬O¥Ø«e§Ú­Ì¦b bootblock ¤¤¨Ã¨S¦³¦h¾lªºªÅ¶¡¨Ó°µ³o¥ó¨Æ¡C·í¬Y¤Ñ bootblock ªÅ¶¡ ¤£¨¬ªº±¡§ÎÀò±o¸Ñ¨M®É¡A§Ú­Ì±N·|¨Ï¥Î BIOS ªº©µ¦ù¥\¯à¨Ó¨ú±o°O¾Ð Å骺§¹¾ã¸ê°T...¦ý²{¦b§Ú­Ì±N¥¦©ñ¦b kernel ³]©w¿ï¶µ¤¤¡C options "MAXMEM=<n>" n ¬O«ü±zªº°O¾ÐÅé¤j¤p¡A¥H KB ¬°³æ¦ì¡C¥H¤@¥x¦³ 128MB RAM ªº ¾÷¾¹¨Ó»¡¡A±z¥i¨Ï¥Î 131072 ³o­Ó¼Æ¦r¡C FreeBSD 2.0 ¦]¬° ``kmem_map too small!'' ¦Óµo¥Í panic¡I ª`·N ³o­Ó°T®§¤]¦³¥i¯à¬O ``mb_map too small!'' ³o­Ó panic ¬Oªí¥Ü¨t²Î¥Î¥ú¤Fµ¹ºô¸ô½w½Ä°Ïªº©Ò¦³ªºµêÀÀ°O¾ÐÅé (¯S §O¬O mbuf clusters)¡C±z¥i¥H¼W¥[µ¹ mbuf clusters ªº VM ªº¼Æ¶q¡A ¥u­n¥[¤J: options "NMBCLUSTERS=<n>" ¦b±zªº kernel ³]©wÀɤ¤¡A<n> ¬O¤@­Ó¦b 512-4096 ¶¡ªº¼Æ¦r¡A ¨Ì±z·Q´£¨Ñ¦h¤Ö¦P®Éªº TCP ³s±µ¼Æ¥Ø¦h¹è¦Ó©w¡C§Ú·|«ØÄ³¸Õ¸Õ 2048 - ³o¼Æ¦rÀ³¸Ó¥i¥H§¹¥þÁ×§K³o­Ó panic ¤F¡C±z¥i¥H°õ¦æ: netstat -m ¨ÓºÊ¬Ý¦³¦h¤Ö mbuf clusters ¦b¨t²Î¤W¥¿³Q °t¸m/¨Ï¥Î¡CNMBCLUSTERS ªº¼Æ­È¤º©w¬° 512 + MAXUSERS * 16¡C ¥Î·s kernel ¶}¾÷®É¡A¥X²{ ``CMAP busy panic'' ³o­Ó¿ù»~°T®§ ¥Î¨Ó°»´ú¹L´Á /var/db/kvm_*.db Àɮתº¾÷¨î°¸º¸·|"¥XÂñ" ¦Ó¨Ï¥Î¤@­Ó§t¤£¥¿½T¸ê®ÆªºÀɮצ³®É´N·|¾É­P panic¡C ¦pªGµo¥Í¤F³o­Ó°ÝÃD¡A½Ð­«·s¶}¾÷¡A¶i¤J³æ¨Ï¥ÎªÌ¼Ò¦¡¡AµM«á°õ¦æ: rm /var/db/kvm_*.db ahc0: brkadrint¡A Illegal Host Access at seqaddr 0x0 ³o¬O¤@­Ó©M Ultrastor SCSI ±±¨î¥d¦³Ãöªº½Ä¬ð ¦b¶}¾÷®É¡A¶i¤J kernel ³]©w¿ï³æ ¨ú®ø uha0¡A¥¦¬O³y¦¨³o­Ó°ÝÃDªº­ì¦] Sendmail ¤@ª½©ê«è ``mail loops back to myself'' ³o­Ó°ÝÃD¦b sendmail ªº FAQ ¤¤¬O³o¼Ë¦^µªªº:- * §Ú¤@ª½¦¬¨ì¦³Ãö "Local configuration error" ªº«H¥ó¡A¨Ò¦p: 553 relay.domain.net config error: mail loops back to myself 554 <user@domain.net>... Local configuration error §Ú­n¦p¦ó¸Ñ¨M³o­Ó°ÝÃD? ±z§Q¥Î MX ³]©w¡AÅý­n±H¨ì¬Y domain (¦p: domain.net) ªº«H¥ó¡A ±H¨ì±z©Ò«ü©wªº¾÷¾¹ (¦b³o­Ó¨Ò¤l¤¤¬° relay.domain.net)¡A¦ý¬O³o ³¡¾÷¾¹¨Ã¥¼³Q³]©w±µ¨ü domain.net ªº«H¥ó¡C§â domain.net ¥[¨ì /etc/sendmail.cw ¤¤ (¦pªG±z¦³¨Ï¥Î FEATURE(use_cw_file)) ©Î¬O ¦b sendmail.cf ¤¤¥[¤J "Cw domain.net" sendmail FAQ ²{¦b¤w¤£¦AÀHµÛ sendmail "¥X³f"¡C ¥¦¥Ø«e¬O³Q©w´Áªºµoªí¦b: comp.mail.sendmail¡A comp.mail.misc¡A comp.mail.smail¡A comp.answers¡A©M news.answers¡C ±z¤]¥i¥H±H¤@«Ê Email ¨ì mail-server@rtfm.mit.edu¡AµM«á¦b«H¥ó¤º¤å¤¤¼g¤W "send usenet/news.answers/mail/sendmail-faq" ³o­Ó«ü¥O ¥H¨ú±o³o¥÷¤å¥ó¡C ¦b»·ºÝ¾÷¾¹(remote machine)°õ¦æ¥þ¿Ã¹õªº³nÅé®É¡A¦³¤£¥¿±`ªº±¡§Î¡I ©Î³\»·ºÝ¾÷¾¹¨Ã«D±N±zªº²×ºÝ¾÷§ÎºA³]¬° FreeBSD console ©Ò¥Î ªº cons25¡A¦Ó¬O³]¬°¨ä¥¦ºØÃþ¡C ³o¨à¦³´X­Ó¸Ñ¨M³o­Ó°ÝÃDªº¤èªk: ¦b logging ¶i»·ºÝ¾÷¾¹«á¡A§ó§ï±zªº shell ÅÜ¼Æ TERM ¬° ansi ©Î¬O sco¡C ¦b local ºÝ¥Î¤@¨Ç¥i¥H¼ÒÀÀ VT100 ªº¼ÒÀÀ¾¹¡A¦p screen¡C screen ´£¨Ñ±z¦b¤@­Ó terminal ùئP®É¶]¦n´X­Ó session ªº¯à¤O¡A¦Ó¥B¥¦¥»¨­¤]¬O¤@­Ó¬Û·í¦nªº³nÅé¡C ¦b»·ºÝ¾÷¾¹ªº²×ºÝ¾÷¸ê®Æ®w(terminal database)¤¤¥[¤J cons25 ªº¸ê®Æ¡C ±Ò°Ê X µM«á§Q¥Î xterm ¨Ó login ¶i»·ºÝªº¾÷¾¹¡C §Úªº¾÷¾¹¤@ª½Åã¥Ü "calcru: negative time..." ¸ò¤¤Â_ ¡]interrupt¡^ ¦³Ãöªº¤£¦PµwÅé »P/©Î ³nÅ骺·f°t³£¦³¥i¯à³y¦¨ ³o­Ó°ÝÃD¡C³o¦³¥i¯à¬O bug ©Î¬O¬Y­Ó¸Ë¸m¥»¨­ªº°ÝÃD¡C¦b¥­¦æ°ð¤W¨Ï¥Î ¤jªº MTU ¨Ó§@ TCP/IP ¶Ç¿é¥i¥H­«²{³o­Ó°ÝÃD¡C­Y¬O¹Ï§Î¥[³t¥d³y¦¨³o­Ó °ÝÃDªº¸Ü¡A±zÀ³¸Ó¥ýÀˬd¥dªº¤¤Â_³]©w¡C ³o­Ó°ÝÃDªºÃä»Ú®ÄÀ³¬O·|³y¦¨¦³¨Ç process ¥X²{ "SIGXCPU exceeded cpu time limit" ªº°T®§¡A¦Ó¤£¥¿±`¤¤Â_ ­Yª©¥»¬O 1998 ¦~ 11 ¤ë 29 ¤é¥H«áªº FreeBSD 3.0¡A¦pªG³o­Ó °ÝÃD¤@ª½µLªk¥H¨ä¥L¤èªk¸Ñ¨M¡A´N¥u¯à³]©w sysctl ÅܼơG sysctl -w kern.timecounter.method=1 ³o¼Ë·|¹ï®Ä¯à¦³¨Ç¼vÅT¡A¦ý¬O­Y¦Ò¼{¨ì³o­Ó°ÝÃD±a¨Óªº«áªG¡A³o¼Ë°µ¬O­È ±oªº¡C¦pªG³o­Ó°ÝÃDÁÙ¬O¦s¦bªº¸Ü¡A±N sysctl ¨º­Ó­È¨ÌµM³]¬° 1¡AµM«á ¼W¥[ kernel ³]©wÀɤ¤ "NTIMECOUNTER" ³o­Ó¿ï¶µªº¼Æ­È¡C¦pªG±z±N "NTIMECOUNTER" ¼W¥[¨ì 20 ¨ÌµMµLªk¸Ñ¨M³o­Ó°ÝÃD¡A¨º»ò±z¾÷¾¹¤Wªº¤¤Â_ ¤w¸g¦h¨ìµLªk«O«ùí©wªºª¬ºA¤F¡C °Ó·~³nÅé ª`·N³o¤@¸`ªº¤º®eÁÙ¬O¬Û·í¤Ö¡A¤£¹L§Ú­Ì·íµM§Æ±æ¦U­Ó¤½¥q¯à¬°¥¦¥[ ÂI¤º®e :) FreeBSD ²Õ´©M¦C¦b³o¸Ìªº¥ô¦ó¤@®a¤½¥q³£¨S¦³ª÷¿ú¤Wªº§Q®` Ãö«Y¡A¦C¥X¨Ó¥u¬O¹ï¤j²³ªº¤½¶}ªA°È¡]¦P®É¤]»{¬°¦b FreeBSD ¤Wªº°Ó·~¿³ ½ì¡A·|¹ï FreeBSD ªø¤[¥Í¾÷¦³·¥¥¿­±ªº®Ä¯q¡^¡C§Ú­Ì¹ªÀy°Ó·~³nÅ骺¼t°Ó §â¥L­Ìªº²£«~¥]¬A¦b¤U­±ªº¦W³æ¤¤¡A¦b Vendors page ¥i¥H¬Ý¨ì¸ûªø¦Cªí¡C §Ú¥i¥H¦b­þÃä§ä¨ìµ¹ FreeBSD ¥Îªº Motif¡H ¥i¥HÁpµ¸ Apps2go ¨ú±o FreeBSD ELF ª©¥»ªº Motif 2.1 ®M¥ó¡C ³o­Ó®M¥ó¸Ì¦³¡G OSF/Motif manager, xmbind, panner, wsm. Development kit with uil, mrm, xm, xmcxx, include and Imake files. Static and dynamic ELF libraries¡]µ¹ FreeBSD 3.0 ¤Î¥H«áª©¥» ¨Ï¥Î¡^ Demonstration applets. ¦]¬° Apps2go ¤]¦³´£¨Ñ NetBSD ©M OpenBSD ªºª©¥»¡A©Ò¥H¦b­qÁÊ ®É½Ð¯S§O«ü©w¬O­n FreeBSD ª©¥»ªº Motif¡I¥L­Ì¥Ø«e¥u´£¨Ñ¥H FTP ªº¤è¦¡¨ú±o ³o¥÷®M¥ó¡C §ó¦h¸ê°T Apps2go WWW ­º­¶ ©Î Sales ©Î Support email «H½c¡C ©Î ¹q¸Ü (817) 431 8775 or +1 817 431-8775 ¤]¥i¥HÁpµ¸ Metro Link ¨ú±oµ¹ FreeBSD ELF ©Î a.out ª©¥»ªº Motif 2.1 ®M¥ó¡C ³o¥÷®M¥ó¥]¬A¡G OSF/Motif manager, xmbind, panner, wsm. Development kit with uil, mrm, xm, xmcxx, include and Imake files. Static and dynamic libraries¡]FreeBSD 3.0 ¤Î¤§«áª©¥»¬O¥Î ELF¡FFreeBSD 2.2.8 ¤Î¤§«eªº¬O¥Î a.out¡^ Demonstration applets. Preformatted man pages. ¥Ñ©ó Metro Link ¤]¦³´£¨Ñ Linux ªºª©¥»¡A©Ò¥H­qÁʮɭn¯S§O«ü ©ú¬O FreeBSD ª©¥»ªº Motif¡I¥i¥H¥Ñ¥úºÐ©Î±q FTP ¨Ó¨ú±o³o­Ó®M¥ó¡C Ápµ¸ Xi Graphics¡A¥L­Ì´£¨Ñ¤F¤@­Óµ¹ FreeBSD ¥Îªº a.out ®æ¦¡ªº Motif 2.0 ®M¥ó¡C ¦b³o®M¥ó¤¤¥]¬A¤F¡G OSF/Motif manager, xmbind, panner, wsm. Development kit with uil, mrm, xm, xmcxx, include and Imake files. Static and dynamic libraries¡]µ¹ FreeBSD 2.2.8 ©M§ó¦­ª©¥»¥Îªº¡^ Demonstration applets. Preformatted man pages. ¦b§A¸ò¥L­Ì­qÁÊ Motif ®É¡A½Ð¤@©wµù©ú§A­nªº¬O FreeBSD ªºª©¥»¡I ¦]¬° Xi Graphics ¤]¦P®É´£¨Ñ¤F BSDI ¸ò Linux ª©¥»ªº Motif¡C ¥Ø«eµo¦æªºª©¥»¬O©ñ¦b¥|¶ôºÏ¤ù¤¤¡A±N¨Ó¥L­Ì·|±N©Ò¦³ªºªF¦è³£©ñ¨ì¥úºÐ¸Ì¡A ´N¹³¥L­Ì©Òµo¦æªº CDE ¤@¼Ë¡C §Ú¥i¥H¦b­þÃä§ä¨ìµ¹ FreeBSD ¥Îªº CDE¡H Xi Graphics ¥H«e¦³½æ FreeBSD ¥Îªº CDE¡A¤£¹L²{¦b¤w¸g °±¤îµo°â¤F¡C KDE ¬O¥t¤@­Ó­ì©l½X¤½¶}ªº X11 ®à­±µ{¦¡¡A¦³«Ü¦h¦a¤è©M CDE ¬Û·íÃþ¦ü¡C ¦³¨S¦³­n¿ú¡A¦ý¬O°ª®Ä²vªº X servers¡H ¦³¡AXi Graphics ©M Metro Link ³£¦³´£¨Ñµ¹ FreeBSD¡]©Î¨ä¥L Intel ¥­¥x¤W¡^¥Îªº X µøµ¡¥[³t²£«~¡C Metro Link ´£¨Ñªº°ª®Ä¯à X Server ¨Ï¥Î¤F FreeBSD ¤ºªº package ¾ã®M¤u ¨ã¡A¦]¦¹³]©w¤Q¤À®e©ö¡A¤ä´©¥Ø«e¥«­±¤W¦U¤j¼tµPªºÅã¥Ü¥d¡C¥u¦³ binary ÀɮסA ¥i¥H±q FTP ¯¸¬Û·í¤è«K¦aª½±µ¤U¸ü¡A§ó¤£¥Î»¡ Metro Link ³o®M²£«~ªº»ù®æ¬O «D±`¦X²zªº $39¡C Metro Link ¤]¦³´£¨Ñ FreeBSD ¤Wªº ELF ©M a.out Motif¡]©¹¤W­±¬Ý¬Ý¡^¡C §ó¦hªº¸ê°T Metro Link WWW ­º­¶ ©Î Sales ©Î Support email «H½c ©Î ¹q¸Ü (954) 938-0283 or +1 954 938-0283 Xi Graphics ©Ò´£¨Ñªº°ª®Ä¯à X Server ¦³«D±`²³æªº³]©w¤è¦¡¡A¨Ã¥B¤ä´© ¤F¥Ø«e¥«­±¤W·í¬õªº¦U¤j¼tµPªºÅã¥Ü¥d¡C¥¦¥uµ¹§A Binary ÀɮסA¬O¥ÎºÏ¤ùªº¤è ¦¡µo¦æ¡AFreeBSD ¸ò Linux ª©¥»³£¬Û¦P¡CXi Graphics ¦P®É¤]´£¨Ñ¤F±Mªùµ¹ laptop ¥Îªº°ª®Ä¯à X Server¡C 5.0 ª©¦³´£¨Ñ§K¶Oªº "compatibility demo" ª©¥»¡A§A¥i¥H¦b FreeBSD ªº­ì ¼t¥|¤ù¥úºÐ¤¤§ä¨ì¡A·íµM§A¤]¥i¥Hª½±µ¦bºô¸ô¤W¨ú±o¡C Xi Graphics ¤]¦³¦b½æ FreeBSD ¥Îªº Motif ¸ò CDE¡]©¹¤W­±¬Ý¬Ý¡^¡C §ó¦hªº¸ê°T Xi Graphics WWW ­º­¶ ©Î Sales ©Î Support email «H½c ©Î ¹q¸Ü (800) 946 7433 or +1 303 298-7478. ¦b FreeBSD ¤W¦³¥ô¦óªº¸ê®Æ®w¶Ü¡H ¦³! ½Ð¬Ý FreeBSD ºô¯¸¤W°Ó·~³nÅ餽¥q³o¤@³¡¥÷¡C ÁÙ¦³½Ð°Ñ¦Ò ports ¤¤ Databases ¬ÛÃöªº¦¬¶°¡C ¥i¥H¦b FreeBSD ¤W°õ¦æ Oracle ¶Ü¡H ¥i¥H¡A¤U­±³o­Óºô­¶·|»¡©ú¦p¦ó¦b FreeBSD ¤W°õ¦æ Linux ª©ªº Oracle¡G http://www.scc.nl/~marcel/howto-oracle.html http://www.lf.net/lf/pi/oracle/install-linux-oracle-on-freebsd ¤@¯ëÀ³¥Îµ{¦¡ ¶â..§Ú­n¦b­þ§ä¨ì§Ú­nªºµ{¦¡©O? ½Ð¬Ý¬Ý ports ¥Ø¿ý §a¡C ³oÃ䦳¥÷¤w¸g port ¨ì FreeBSD ªº³nÅé¦Cªí¡C¥Ø«e¦³¶W¹L 1800 ­Ó³nÅé¤w¸g³Q port ¨ì FreeBSD ¤W¡A¨Ã¥B¨C¤Ñ³£¦b¼W¥[¤¤¡C©Ò¥H¦³ªÅ´N¦h¬Ý¬Ý³o¥÷¦Cªí¡A ¤£µM§A¤]¥i¥H­q¾\ freebsd-announce ³o¥÷ mailing list¡A·|¦³¤H±N ¨C­Ó¬P´Á³Ì·sªº³nÅé¦Cªí¶K¦b¤W­±¡C ¤j³¡¥÷ªº ports À³¸Ó³£¥i¥H¦b 2.2¡A3.0 ¸ò 4.0 ªº¨t²Î¤W¨Ï¥Î¡A ¨Ã¥BÁÙ¦³³¡¥÷ªº ports ¥i¥H¦b 2.1.x ªº¨t²Î¤W¹B§@¡C ¨C¦¸·í FreeBSD release ®É¡A³£·|¦³¤@¥÷ ports tree ³Q©ñ¦b³o¤@­Ó release cd ¸Ì­±ªº ports/ ¥Ø¿ý¸Ì¡C §Ú­Ì¤]¤ä´©¤@ºØ¥s ``package'' ªº·§©À¡A°ò¥»¤W´N¬O gzip À£ÁY¡B¥i¥Î ¨Óµo¦æªº binary ÀɮסA¦ý¬O¸Ì­±ÂäF¤@¨Ç¬Û·í¦³¥Îªº¸ê°T¡A¥i¥Hµ¹¦UºØ¦Û ­q¦w¸Ë¨Ó¨Ï¥Î¡C¨Ï¥ÎªÌ¤£¥²ª¾¹D¬Y­Ó package ¸Ì¨s³º¦³¥]¬A­þ¨ÇÀɮסA´N¥i ¥H«Ü¤è«K¦a­«½Æ±N¥¦¦w¸Ë/¤Ï¦w¸Ë¡C §A¥i¥H°õ¦æ /stand/sysinstall «á¡A¦b post-configuration ¿ï³æ¤U¿ï¾Ü package ³o­Ó¦w¸Ë¿ï¶µ¡F©Î¬O¹ï¬Y­Ó¦³¿³½ìªº package ÀÉ®×°õ ¦æ pkg_add(1)¡A§â¥¦¸Ë°_¨Ó¡CPackage Àɮ׳q±`¥H .tgz §@¬°©µ¦ùÀɦW¡A¤â¤W¦³ FreeBSD CDROM ªº¤H¥i¥H¦b packages/All ³o­Ó¥Ø¿ý¤U§ä¨ì³oÃþÀɮסC¹ï¤£¦Pªº FreeBSD ª©¥»¡A¤]¥i¥H±q¤U¦C¦ì§}¥Ñºô ¸ô¤W¨ú±o¡G µ¹ 2.2.8-release/2.2.8-stable ¥Îªº ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-2.2.8/ µ¹ 3.2-release/3.2-stable ¥Îªº ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-3-stable/ µ¹ 4.0-current ¥Îªº ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-4-current/ ©Î¬OÂ÷§A³Ìªñªº mirror ¯¸¡C ­nª`·Nªº¬O¡A¦]¬°·sªº port ¤@ª½¦b¼W¥[¤¤¡A©Ò¥H¨Ã¤£¬O©Ò¦³ port ³£ ¦³¬Û¹ïÀ³ªº package¡C³Ì¦n©w®ÉÀˬd ftp.FreeBSD.org¡A ¬Ý¬Ý¦³­þ¨Ç package ¥i¥H¥Î¡C §Ú¥i¥H¦b­þÃä§ä¨ì libc.so.3.0? §A¥i¯à¦b¤@¥x 2.1.x ªº¾÷¾¹¤W¡A¶]µÛµ¹ 2.2/3.x/4.0 ªº³nÅé¡C ½Ð¦A©¹¤W­±¤@­Ó³¹¸`¬Ý¡A¥¿½Tªº¨ú±oµ¹§A¾÷¾¹¥Îªº port/package¡C ghostscript ¦b§Úªº 386/486SX ¤W¦³ÂI°ÝÃD©O¡I §A¨S¦³¯BÂI¹Bºâ¾¹¡A¹ï§a¡H §A¥²¶·¦b§Aªº kernel ¤¤¥[¤J¼Æ¾Ç¹Bºâ¼ÒÀÀ¾¹¡A§A¥i¥H¸òµÛ¤U­±ªº¨BÆJ°µ¡A ¨Ã¦b§ó§ï¹L§Aªº kernel ³]©wÀÉ«á¡A­«·s½s͹L¤@¦¸¡C options GPL_MATH_EMULATE NOTE ·í§A¥[¤J¤W¤@¦æªº¦P®É¡A§A¥²¶·±N MATH_EMULATE ²¾°£±¼¡C ·í§Ú°õ¦æ SCO/iBCS2 ªºµ{¦¡®É¡A¥¦±¾¦b socksys¡C §A¥²¶·¥ý­×§ï /etc/sysconfig (or /etc/rc.conf) ³oÀɮ׳̫á¤@­Ó³¹¸`¡A±N¤U­±©ÒÁ¿¨ìªºÅÜ¼Æ ³]¦¨ YES: # Set to YES if you want ibcs2 (SCO) emulation loaded at startup ibcs2=NO ³o·|¦b¶}¾÷®É±N ibcs2 ³o¤@­Ó kernel ¼Ò²Õ¸ü¤J¡C §AÁÙ­n±N§Aªº /compat/ibcs2/dev §ï¦¨¤U­±³o¼Ë¡G lrwxr-xr-x 1 root wheel 9 Oct 15 22:20 X0R@ -> /dev/null lrwxr-xr-x 1 root wheel 7 Oct 15 22:20 nfsd@ -> socksys -rw-rw-r-- 1 root wheel 0 Oct 28 12:02 null lrwxr-xr-x 1 root wheel 9 Oct 15 22:20 socksys@ -> /dev/null crw-rw-rw- 1 root wheel 41, 1 Oct 15 22:14 spx §A¥u»Ý­n±N socksys Âà¦V¨ì /dev/null ¥hÄF¹L open & close ªº°Ê§@¡C¦b -current ¸Ì­±ªº ibcs2 ¬ÛÃöµ{¦¡½X±N·|³B ²z¨ä¾lªº³¡¥÷¡A³oºØ§@ªk¤ñ¥H«eªº¤è¦¡°®²b¤Ó¦h¤F¡C °²¦p§A·Q­n¨Ï¥Î spx ¤è­±ªºµ{¦¡¡A¦b§Aªº®Ö¤ß³]©wÀɸ̭±¥[¤W SPX_HACK¡C §Ú­n¦p¦ó¦b§Úªº¾÷¾¹¤W³]©w INN (Internet News)¡H ¦b§A¨Ï¥Î package ©ÎªÌ¬O port ¦w¸Ë§¹ inn ¤§«á¡A Dave Barr's INN Page ¬O­Ó«D±`¦nªº¶}©l¡A§A¥i¥H¦b¨ºÃä§ä¨ì INN ªº FAQ¡C §Ú¸Ó¨Ï¥Î¨º­Óª©¥»ªº Microsoft FrontPage¡H Use the Port, Luke¡I¦b ports tree ¤¤¤w¸g¦³¤@­Ó¥]§t FrontPage ªº Apache ª©¥»¤F¡C FreeBSD ¤ä´© Java ¶Ü¡H ¦³¡A½Ð¬Ý http://www.FreeBSD.org/java. ¨º¸Ì¥i¥H§ä±o¨ì ld.so¡H ¦pªG±z§Æ±æ¦b 3.1-R ¤§«áªº ELF ¾÷¾¹¤W°õ¦æ¹³ Netscape Navagator µ¥ ªº aout µ{¦¡¡A¥¦·|»Ý­n /usr/libexec/ld.so ©M aout library¡C³o¨Ç³£¥] ¬A¦b compat22 ®M¥ó¤¤¡A±z¥i¥H¥Î /stand/sysinstall ©Î compat22 ¤l¥Ø¿ý ¤Uªº install.sh ¸Ë°_¨Ó¡C ¦P®É¤]½Ð±z¬Ý¤@¤U 3.1-R ©M 3.2-R ªº ERRATA¡C ®Ö¤ß³]©w §Ú·Q¦Û­q®Ö¤ßµ{¦¡¡A³o·|«Ü§xÃø¶Ü¡H ¤£·|¡I½Ð¬d¾\ ¨Ï¥Î¤â¥U¤¤ªº®Ö¤ß³]©w¤@¸`¡C ª`·N¡G§Ú·|«ØÄ³§A¦b§AÅý®Ö¤ß¯à¥¿±`¤u§@«á¡A°µ¤@­Ó kernel.YYMMDD¤é´Á§Î¦¡ªº³Æ¥÷¡A³o¼Ë¤U¦¸¦pªG§A«Ü¤£©¯ªºª±Ãa ¤F³]©w¡A¦Ü¤Ö¥i¥H¤£»Ý­n¨Ï¥Î³Ì­ì©lªºkernel.GENERIC¡C°²¦p§A ¥¿±q¤@­Ó¨S¦³¦b GENERIC kernel ¸Ì­±¤ä´©ªº±±¨î¾¹¸Ì±Ò°Ê¡A³oÅã±o¯S §O­«­n(¨S¿ù¡A³o¬Oµ§ªÌªº¸gÅç)¡C §Úªº®Ö¤ß¦]¬° _hw_float ¿ò¥¢¦Ó½sĶ¥¢±Ñ¡C Åý§Ú²q¬Ý¬Ý¡A§A§â npx0 ±q§A ªº®Ö¤ß³]©wÀɲ¾°£¤F¡A¦]¬°§A¨S¦³¼Æ¾Ç¹Bºâ¾¹¡A¹ï¶Ü¡H¿ù¤F¡I:-) ³o­Ó npx0¬O¥²¶·­n¦³ªº¡C´Nºâ§A¨S¦³¼Æ¾Ç¹Bºâ¾¹¡A§A¤´¥²¶· ¤Þ¤Jnpx0¸Ë¸m¡C multi-port serial code ªº¤¤Â_½Ä¬ð¡C Q. ·í§Ú½sͤ@­Ó multi-port serial code ªº®Ö¤ß®É¡A¥¦§i¶D§Ú ¥u¦³²Ä¤@­Ó³Q°»´ú¨ì¡A¨ä¥Lªº«h¦]¤¤Â_½Ä¬ð¦Ó¸õ¹L¤F¡A§Ú¸Ó«ç»ò­×¥¿¥¦¡H A. ³o­Ó°ÝÃD¬O¦]¬° FreeBSD ¨Ï¥Î¤º«Øµ{¦¡½XÁ×§K¦]¬°µwÅé©Î³nÅé ½Ä¬ð¾É­P®Ö¤ßµ{¦¡¹L©óªÎ¤j©ÎµL¥Î¡C­n­×¥¿³oºØ±¡§Îªº¤èªk¬O°£¤F¤@­Ó port ¥~§â¨ä¥L©Ò¦³ªº IRQ ³]©w³£°µ«O¯d¡C³o¸Ì¦³¤@­Ó½d¨Ò¡G # # Multiport high-speed serial line - 16550 UARTS # device sio2 at isa? port 0x2a0 tty irq 5 flags 0x501 vector siointr device sio3 at isa? port 0x2a8 tty flags 0x501 vector siointr device sio4 at isa? port 0x2b0 tty flags 0x501 vector siointr device sio5 at isa? port 0x2b8 tty flags 0x501 vector siointr §Ú¸Ó«ç»ò±Ò°Ê QIC-40/80 ªº¤ä´©¡H §A»Ý­n¦b generic config Àɤ¤§â¥H¤U³o¦æªºµù¸Ñ¨ú®ø(©Î¬O§â¥¦¥[¨ì§Aªº ³]©wÀÉ)¡A¦b fdc ³o¦æ¥[¤J``flags 0x1''µM«á­«·s½s֤ͮߡC controller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2 flags 0x1 vector fdintr disk fd0 at fdc0 drive 0 ^^^^^^^^^ disk fd1 at fdc0 drive 1 #tape ft0 at fdc0 drive 2 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ±µµÛ¡A§A¥i¥H¦b/dev°õ¦æ¥H¤U©R¥O¡A«Ø¥ß¤@­Ó¥s /dev/ft0 ªº¸Ë¸m¡G sh ./MAKEDEV ft0 ¬Oµ¹²Ä¤@­Ó¸Ë¸m¨Ï¥Î¡C¦P²z ft1 ¬O²Ä¤G­Ó¡A¥H¦¹Ãþ±À¡C §A±N·|¦³­Ó¥s/dev/ft0ªº¸Ë¸m¡A¥i¥H³z¹L¤@­Ó¯S®íªºµ{¦¡¥s ``ft''ªº¨ÓºÞ²z¥¦ - ½Ð¬Ý ft ªº man page ¦³§ó¶i¤@¨B»¡©ú¡C ª©¥»¤ñ¦­ªº¨t²Î¦b³B²zÃaªººÏ±a´CÅé®É¦³¨Ç°ÝÃD¡A¦pªG§A ªºftºÏÀY¦³¤@ª½¦b¦P¤@­Ó¦a¤è¨Ó¦^²¾°Êªº°ÝÃD¡A¹Á¸Õ±q ¸Ìªº/usr/src/sbin/ft§ä¥X³Ì·sª©ªº ft ¨Ã¥B¸Õ¬Ý¬Ý¡C ¨t²ÎºÞ²z ¨t²Î°_©l³]©wÀɦb­þ¡H ±q 2.0.5R ¨ì 2.2.1R¡A¥D­nªº³]©wÀɬO /etc/sysconfig¡C ©Ò¦³ªº¿ï¶µ³£³Q«ü©w¦b³o­ÓÀÉ¡A¦Ó¨ä¥L¹³ /etc/rc ©M /etc/netstart ¥u¬O¤Þ¥Î¥¦¡C Æ[¹î /etc/sysconfig ³o­ÓÀɨíץ¿¨ä­È¥H¾A¦X§Aªº¨t²Î¡C ³o­ÓÀɥεù¸Ñ¶ñº¡¥Hªí¥Ü¦ó³B¸Ó©ñ¸m¤°»ò³]©w¡C ¦b 2.2.1 ¥H«á¤Î 3.0 ¡A/etc/sysconfig §ó¦W¬°¤@­Ó§ó®e ©ö´y­zªºÀɦW¥s rc.conf ¡A¨Ã¥B»yªk²¤Æ¤F¨Ç¡C/etc/netstart ¥ç§ó¦W¬° /etc/rc.network ¦]¦¹©Ò¦³ªºÀɮ׳£¥i¥H¥Î cp /usr/src/etc/rc* /etc ¨Ó«þ¨©¡C /etc/rc.local ¥X²{¨Ã¥i¥H¥Î¨Ó±Ò°ÊÃB¥~ªº¥»¦aªA°È¹³¬O INN ©Î¬Y¨Ç¦Û­q¿ï¶µ¡C /etc/rc.serial ¥Î¨Óªì©l¤Æ§Ç¦C°ð(¹³¬OÂê©w°ðªº¯S©Êµ¥¡^¡C /etc/rc.i386 ¬O Intel ±M¥Î³]©w¡A¹³¬O iBCS2 ¼ÒÀÀ©Î¬O PC ¨t²Î¥D±±¥x³]©w¡C ¥Ñ 2.1.0R ¶}©l¡A§A¤]¥i¥H¦b /etc/sysconfig (©Î /etc/rc.conf) ¸Ì«ü©w¤@­Ó¥Ø¿ý¾Ö¦³"¥»¦a"°_©lÀÉ¡G # Location of local startup files. local_startup=/usr/local/etc/rc.local.d ¨C­Ó¥H .sh µ²§ÀªºÀɱN¥H¦r¥À¶¶§Ç³Q°õ¦æ¡C °²¦p§A·Q½T«O¬Y­Ó°õ¦æ¶¶§Ç¤S¤£·Q§ï©Ò¦³ªºÀɦW¡A§A¥i¥H¨Ï¥Î¤@­Ó²³æ ªº¬[ºc¦p¤U¡A§Q¥Î¨Æ¥ý¦w±Æ¨ì¨C­ÓÀɦW«eªº¼Æ¦r¨Ó½T«O¶¶§Ç¡G 10news.sh 15httpd.sh 20ssh.sh ³o¥i¯à¬Ý°_¨Ó¦³ÂIÁà(©ÎÃþ¦ü SysV :-)) ¦ý¬O¥¦´£¨Ñ¤@­Ó²³æ¦Ó³W«ßªº ¬[ºcÅý¥»¦a¥[¤Jªº®M¥ó¤£¶·½s¿è /etc/rc.local ´N¯à­«·s±Æ §Ç¡C³\¦hªº ports/packages °²³] /usr/local/etc/rc.d ¬O ¥»¦a°_©lªº¥Ø¿ý¡C §Ú¸Ó¦p¦ó²³æ¦a¥[¤J¨Ï¥ÎªÌ¡S ¨Ï¥Î adduser «ü¥O¡C¦pªG»Ý­n§ó½ÆÂøªº¨Ï¥Î¤è¦¡¡A½Ð¥Î pw ³o­Ó«ü¥O¡C ­n¦A¦¸²¾°£¨Ï¥ÎªÌ¡A¨Ï¥Î rmuser «ü¥O¡C §Ú¸Ó«ç»ò§â·sµwºÐ¥[¤J FreeBSD ¨t²Î¤¤¡S ¹î¬Ý www.FreeBSD.org ªººÏºÐ®æ¦¡¤Æ«ü¾É¤å¥ó¡C §Ú¦³¤@­Ó·sªº¥i²¾°£¸Ë¸m¡A§Ú¸Ó«ç»ò¨Ï¥Î¡S ¥i²¾°£¸Ë¸mµL½×¬O ZIP ©Î EZ(©Î¬Æ¦Ü¬O³nºÐ¾÷¡A¦pªG§A­n³o¼Ë¨Ï¥Î ¥¦)¡A©Î¬O¤@­Ó·sªºµwºÐ¡A¥u­n¬O¦w¸Ë¨Ã¥Ñ¨t²Î­«²Õ¡A¦Ó§A¦³ºÏ¤ù§X /³nºÐ¤ù/©Î¨ä¥LªF¦è¥i¥H´¡¤J¡A¨º³o¨Ç¸Ë¸m³£¬OÃþ¦ü¥\¯àªºªF¦è¡C (¥»¸`¥D­n¥Ñ Mark Mayo's ZIP FAQ ¤Þ¤J) °²¦p¬O ZIP ©Î³nºÐ¾÷¡A§A¤w¸g¦b¤W­±¦³ DOS Àɮרt²Î¡A¥i¥H¨Ï¥Î ¹³³o¼Ëªº©R¥O¡G mount -t msdos /dev/fd0c /floppy ³o¬O°w¹ï³nºÐ¾÷¡A©Î¬O¥H¤U©R¥O¡G mount -t msdos /dev/da2s4 /zip ¨Ï¥Î ZIP ªº¥X¼t¹w³]­È¡C ¨ä¥LºÏ¤ù¡A¥Î fdisk ©Î /stand/sysinstall ¹î¬Ý ¦p¦ó°t¸m¡C ±µ¤U¨Ó³o­Ó½d¨Ò¬O ZIP ¸Ë¦b da2¡A¦b²Ä¤T­Ó SCSI ºÏºÐ¡C °£«D¬O³nºÐ¾÷¡A©Î¤@­Ó§A­pµe¸ò¨ä¥L¤H¤À¨É¨Ï¥Îªº¥i²¾°£¸Ë¸m¡A¦b ¦w¸Ë BSD Àɮרt²Î¥i¯à¬O¤@­Ó¤ñ¸û¦nªº¥D·N¡C§A±N¾Ö¦³ªøÀɦW¤ä´© ¡A¦Ü¤Ö¨â­¿¥H¤Wªº®Ä²v¼W¶i¡AÁÙ¦³§ó°ªªºÃ­©w«×¡C­º¥ý¡A§A»Ý­n­«·s »s§@ DOS ¼hªº¤À³Î°Ï/Àɮרt²Î¡C§A¥i¥H¨Ï¥Î fdisk ©Î /stand/sysinstall¡A©Î¹ï¤@­Ó§A¤£·Q¤ä´©¦h­«§@·~¨t²Îªº ¤pºÏºÐ¡A¥u­n§â¥¦¹º¤À¦¨¾ã­Ó FAT ¤À³Îªí(slices)¨Ã¥Î¥H¤U BSD ¤À ³Îªk¡G dd if=/dev/zero of=/dev/rda2 count=2 disklabel -Brw da2 auto §A¥i¥H¨Ï¥Î disklabel ©Î /stand/sysinstall ¥h«Ø¥ß¦h­« BSD ¤À³Î°Ï¡CµLºÃªº¦pªG§A¥¿¦bµwºÐ¾÷¤W¼W¥[¸m´«ªÅ¶¡(swap space)®É §A´N»Ý­n³o»ò°µ¡A¦ý¬O¦b¥i²¾°£¸Ë¸m¦p ZIP ¤W¥i¯à´N¬OµL·N¸qªº¡C ³Ì«á¡A«Ø¥ß¤@­Ó·sªºÀɮרt²Î¡A¤]´N¬O¦b ZIP ¸Ë¸m¤W¬O¨Ï¥Î¾ã­ÓºÏºÐ¡G newfs /dev/rda2c ¨Ã¥B§â¥¦ mount °_¨Ó¡G mount /dev/da2c /zip ¦b /etc/fstab ¥[¤J¤U­±³o¤@¦æ¥i¯à¬O¤@­Ó¦n¥D·N¡A§A¥H«á´N¥u ­n¥´"mount /zip" : /dev/da2c /zip ffs rw,noauto 0 0 §Ú¸Ó«ç»ò mount ¦¸­nªº DOS ¤À³Î°Ï¡S ¦¸­n DOS ¤À³Î°Ï¬O¦b©Ò¦³¥D­n¤À³Î°Ï¤§«á³Q§ä¨ì¡AÁ|¨Ò¡A¦pªG§A¦³¤@­Ó "E" ¤À³Î°Ï¦b²Ä¤G­Ó SCSI ¸Ë¸mªº²Ä¤G­Ó DOS ¤À³Î°Ï¡A§A»Ý­n¦b /dev ¤U «Ø¥ß "slice 5" ªº¯S®íÀɮסAµM«á mount /dev/da1s5¡G # cd /dev # ./MAKEDEV sd1s5 # mount -t msdos /dev/da1s5 /dos/e §Ú¥i¥H¦b FreeBSD ¤U mount ¨ä¥L²§½è©ÊÀɮרt²Î¶Ü¡S Digital UNIX UFS ¥úºÐ¾÷¥i¥H¦b FreeBSD ¤Wª½±µ mount¡C±q Digital UNIX ©M¨ä¥L¤ä´© UFS ®æ¦¡ªº¨t²Î mount ºÏºÐ¤À³Î°Ï¥i¯à§ó ½ÆÂø¡A¥D­n²Ó¸`¬O¨Ì¿à§@·~¨t²ÎªººÏºÐ¤À³Îªk¡C Linux: 2.2 ¤Î¥H«áªºª©¥»¤ä´© ext2fs ¤À³Î°Ï¡A½Ð¬d¾\ mount_ext2fs ¦³§ó¦h¸ê°T¡C NT: ¤w¸g¦³¤@­Ó FreeBSD ¤U¥i¥H¨Ï¥Îªº°ßŪ NTFS ÅX°Êµ{¦¡ ¦s¦b¡A§ó¦h¸ê°T§A¥i¥H¹î¬Ý Mark Ovens ¦b http://www.users.globalnet.co.uk/~markov/ntfs_install.html ªº«ü¾É¤¶²Ð¡C ¦pªG±z¯à´£¨Ñ¥ô¦ó³o­Ó¥DÃDªº¨ä¥L¸ê°T¡A§Ú­Ì·|«Ü·P¿E¡C §Ú¸Ó¦p¦ó¨Ï¥Î NT loader ¨Ó±Ò°Ê FreeBSD¡S ³Ì´¶¹Mªº·Qªk¬O§â§A­ì¥» FreeBSD root ¤À³Î°Ïªº²Ä¤@­ÓºÏ°Ï«þ¨©¨ì DOS/NT ¤À³Î°Ï¸Ìªº¤@­ÓÀɮפº¡C°²³]§A©R¦W¥¦¬°¡G c:\bootsect.bsd (¥Ñ c:\bootsect.dos ±Â·N¦Ó¨Ó)¡A±µµÛ§A¥i¥H½s¿è c:\boot.ini Àɮפº®e¦p¤U¡G [boot loader] timeout=30 default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS [operating systems] multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows NT" C:\BOOTSECT.BSD="FreeBSD" C:\="DOS" ¦¹µ{§Ç°²³] DOS¡ANT¡AFreeBSD¡A©Î¨ä¥L§@·~¨t²Î¤w¸g³Q¦w¸Ë¦b <¦P¤@­Ó> ºÏºÐªº¦U¦Û¤À³Î°Ï¡C¥»¨Ò¤¤§Úªº DOS & NT ¬O¦b²Ä¤@ ­Ó¤À³Î°Ï¦Ó FreeBSD ¦b²Ä¤G­Ó¡C§Ú¤]§â FreeBSD ¦w¸Ë¦¨¥Ñ native partition ±Ò°Ê¡A¦Ó¤£¬O ±qºÏºÐªº MBR¡C Mount ¤@­Ó DOS ®æ¦¡¤Æªº³nºÐ¡]°²¦p§A¤w¸gÂà´«¨ì NTFS¡^©Î FAT ¤À ³Î°Ï¨ì /mnt¡G dd if=/dev/rda0a of=/mnt/bootsect.bsd bs=512 count=1 ­«·s¶}¾÷¶i¤J DOS ©Î NT¡CNTFS ¨Ï¥ÎªÌ§â bootsect.bsd ¥H¤Î/©Î bootsect.lnx ±q³nºÐ«þ¨©¨ì C:\¡C­×§ï boot.ini ªºÄÝ©Ê(¦s¨ú³\¥i)¡G attrib -s -r c:\boot.ini ½s¿è¨Ã±q¤W­z boot.ini ªº½d¨Ò¥[¤J¬ÛÃö¾A·íªº¶µ¥Ø¡A¦A§âÄݩʦ^´_ ¡G attrib +r +s c:\boot.ini ¦pªG FreeBSD ¬O¥Ñ MBR ±Ò°Ê¡A¦b§A­«·s³]©w±q­þ­Ó native ¤À³Î°Ï±Ò°Ê«á ¡A¥Î DOS ªº ``fdisk'' ©R¥O¦^´_¥¦¡C §Ú¸Ó¦p¦ó¥Î LILO ±Ò°Ê FreeBSD ©M Linux¡S ¦pªG§A¦b¦P¤@­ÓºÏºÐ¾÷¸Ì¦³ FreeBSD ©M Linux¡A¥u­n¸òÀH LILO ªº¦w ¸Ë«ü¥O¡A±q¤@­Ó«D Linux §@·~¨t²Î±Ò°Ê¡C²²¤»¡©ú¦p¤U¡G ±Ò°Ê Linux¡A¨Ã¦b /etc/lilo.conf ¤¤¥[¤J¥H¤U´X¦æ¡G other=/dev/hda2 table=/dev/hda label=FreeBSD ¡]¤W­±¬O°²³]§Aªº FreeBSD slice ¦b Linux ¬O /dev/hda2¡F½Ð °t¦X¦Û¤vªº³]©w¡^¡CµM«á¡A¥Î root °õ¦æ lilo À³¸Ó´N§¹¦¨¤F¡C °²¦p FreeBSD ¦b¥t¥~¤@­ÓºÏºÐ¡A§A¥²¶·¦b LILO ¿ï¶µ¤¤¥[¤J ``loader=/boot/chain.b''¡AÁ|¨Ò¡G other=/dev/dab4 table=/dev/dab loader=/boot/chain.b label=FreeBSD ¬Y¨Ç±¡§Î§A¥²¶·«ü©w BIOS ºÏºÐ¥N¸¹µ¹ FreeBSD boot loader ¥H´Á±q²Ä ¤GºÏºÐ¦¨¥\ªº±Ò°Ê¡CÁ|¨Ò¡A°²¦p FreeBSD SCSI ºÏºÐ¦b BIOS ¤¤°»´ú ¬O BIOS disk 1¡A¨º¦b FreeBSD boot loader ªº´£¥Ü¸¹¥X²{®É§A¥²¶·«ü ©w¡G Boot: 1:da(0,a)/kernel ¦b FreeBSD 2.2.5 ©M¤§«áªºª©¥»¡A§A¥i¥H³]©w boot(8) ³o¼Ë¨C¦¸±Ò°Ê®É´N·|¦Û°Ê°õ¦æ¡C Linux+FreeBSD mini-HOWTO ¬O FreeBSD ©M Linux ¦@¥Î¾Þ§@ªº¨}¦n °Ñ¦Ò¤å¥ó¡C §Ú«ç»ò¨Ï¥Î BootEasy ¨Ó±Ò°Ê FreeBSD ©M Linux¡S ¦b Linux ±Ò°Ê¤À³Î°Ï¦w¸Ë LILO ¨ú¥N¥D­n±Ò°Ê¸ê®Æ(Master Boot Record)¡C±µµÛ§A¥i¥H±q BootEasy ±Ò°Ê LILO¡C °²¦p§A¥¿¦b¥Î Windows-95 ©M Linux¡A³o¦³¤@­Ó«ØÄ³¤èªk¡G­n§ó²³æ ªº±q Linux ¦A¦¸±Ò°Ê¦b©ó§A¬O§_À³¸Ó­«·s¦w¸Ë Windows95¡]³o¬O¤@­Ó µ½§ªªº§@·~¨t²Î¡A¥¦À£­¢¤£Åý¨ä¥L§@·~¨t²Î¦s¦b©ó Master Boot Record ¤º¡^¡C ¤@­Ó©Ò¿×``¦MÀI©^Äm(dangerously dedicated)''ªººÏºÐ¦³®`¶Ü¡S ¦w¸Ëµ{§Ç¤¹³\§A¿ï¾Ü¨âºØ¤£¦Pªº¤èªk¨Ó¤À³Î§Aªº ºÏºÐ¾÷¡C¤º©w¤èªk¬°¤F¦b¦P¤@¥x¾÷¾¹¤W©M¨ä¥L§@·~¨t²Î¥i¥H¬Û®e¡A©ó¬O ¨Ï¥Î fdisk table entries(FreeBSD ¸ÌºÙ¤§¬°``slices'')¡AFreeBSD ªº slice ´N¬O¨Ï¥Î¾ã­Ó¦Û¤vªº¤À³Î°Ï¡C¥i¨Ñ¿ï¾Üªº¬O¡A§A¥i¥H¿ï¾Ü¦w¸Ë ±Ò°Ê¿ï¾Ü¾¹(boot-selector) ¦bºÏºÐ¾÷¼Æ­Ó¥i¯àªº§@·~¨t²Î¤W¨Ó¦^¤Á´«¡C ¥t¥~¤@­Ó¥i¿ï¾Üªº¥Îªk¬O§â¾ã­ÓºÏºÐ¼·µ¹ FreeBSD ¨Ï¥Î¡A¨Ã¥B¤£°µ¨ä¥L §@·~¨t²Îªº¬Û®e©Ê¦Ò¶q¡C ¦]¦¹¬°¦ó¥s¥¦``¦MÀIªº''¡S¤@­Ó³B©ó³oºØ¼Ò¦¡ªººÏºÐ¾÷¤£¥]§t¯à³Q¥¿ ±` PC ¤½¥Îµ{¦¡µø¬°¦³®Äªº fdisk table¡C¨Ì´`¥¦­Ì³Q³]­pªº¼Ò¦¡¡A¥u ­n¥¦­Ì¦b³o¼Ë¤@­ÓºÏºÐ¾÷¤¤¤@¥¹³QIJ¤Î¥i¯à´N·|²£¥Í¿ù»~ªº´£¥Ü¡A©Î§ó ÁV¿|ªº¡A¥i¯à¥¼¸g´£¥Ü©Î³qª¾§A´N§â FreeBSD bootstrap §ËÃa¡C¥t¥~ ¡A``¦MÀI©^Äm''ªººÏºÐ layout ·|»~¾É³\¦h¼tµPªº BIOSsen(BIOS °»´ú) ¹³¬OAWARD(¤ñ¦p»¡¦b HP Netserver ©M Micronics µ¥¥H¤Î¨ä¥L³\¦h¨t ²Î)¡A©M Symbios/NCR(¦p¦b SCSI controllers ¤¤«Ü¬y¦æªº 53C8xx ¨t¦C)¡C³o¨Ã«D¤@­Ó§¹¾ãªº¦Cªí¡AÁÙ¦³§ó¦h¥¼¦C¥X¡C³oºØ»~¾Éªº¼x¥ü¥] ¬A¥Ñ FreeBSD bootstrap ±Ò°Ê¡A·íµwºÐµLªk³Q§ä¨ì®É¦Ó¦L¥X "read error" ªº°T®§¡A¥H­P©ó¾ã­Ó¨t²Î¦b±Ò°Ê¤¤¾ã­Ó°±º¢¡C ¨º¬°¦ó¤S­n¦³³oºØ¼Ò¦¡©O¡H¥¦¥u¸`¬ÙºÏºÐªÅ¶¡¤¤¼Æ kbyte ªº¤j¤p¡A ¦Ó¹ï¤@­Ó·sªº¦w¸Ë¹Lµ{¤¤«o¥i¯à²£¥Í¹ê»Úªº§xÃø¡C`¦MÀI©^Äm'¼Ò¦¡­ì¥» ªº·Qªk¬O°ò©óÁ×§K¤@­Ó¥þ·s FreeBSD installer ¤¤³Ì±`¨£ªº°ÝÃD - ¬° ¤F­n¦bºÏºÐ¾÷¤W°t¦X BIOS ªº ``geometry'' ¼Æ¥Ø¡C ``Geometry''¬O¤@­Ó¦³ÂI¸¨¥îªº·§©À¡A¦ý¬O«o¤´¦b PC ªº BIOS ¤¤ ¨Ï¥Î¨Ã¥B»PºÏºÐ¾÷¥æ¤¬¹B§@µÛ¡A·í FreeBSD installer «Ø¥ß slice ®É ¡A¥¦¥²¶·°O¿ý³o¨Ç slices ¦bºÏºÐ¾÷¤Wªº¦ì¸m¡A³o¤èªk¥²¶·©M BIOS §Æ ±æ¯à§ä¨ì¥¦­Ìªº¦ì¸m¤@­P¡C°²¦p¿ù¤F¡A§A±N¤£¥i¯à±Ò°Ê¨t²Î¡C ``Dangerously dedicated''¼Ò¦¡(«á­±·|²ºÙ¬° DD mode)¸ÕµÛ­nÅý ³o­Ó°ÝÃD²³æ¤@ÂI¡A¬Y¨Ç±¡§Î¤U¥¦°µ¹ï¤F¡C¦ý³o¥u¯à·í¦¨³Ì«áªº¤U¤U¤§ µ¦ - ÁÙ¦³§ó¦nªº¤èªk¥i¥H¸Ñ¨M³o°ÝÃDªºµ´¤j³¡¥÷¡C(ĶªÌ¡G³o³¡¥÷¥Î¤F ³\¦hªº¤f»y¥Îµü¡A­ì¤å·Ó¿ý¥H¨Ñ¹ï·Ó¡C) ``Dangerously dedicated'' mode tries to work around this by making the problem simpler. In some cases, it gets it right. But it's meant to be used as a last-ditch alternative - there are better ways to solve the problem 99 times out of 100. ¦]¦¹¡A·í§A¦b¦w¸Ë®É«ç»òÁ×§K­n¨Ï¥Î``DD''¼Ò¦¡¡H¦b¶}©l®É°O¤U BIOS ­n¨D¨Ï¥ÎºÏºÐ¾÷ªº geometry¡A§A¥i¥H¦b±Ò°Êªº ``boot:''´£¥Ü ¸¹¥X²{®É¡A¥H``-v''«ü©w®Ö¤ß¦L¥X³o­Ó°T®§¡A©Î¬O¦b loader ¸Ì­± ¨Ï¥Î``boot -v''¡C¦b installer ¶}©l°Ê§@«e¡A®Ö¤ß·|¦L¥X¤@¦ê BIOS geometries¡C§Oºò±i - µ¥ installer ¶}©l±Ò°Ê«á¨Ï¥Î scrollback ¤è¦¡¥hŪ³o¨Ç¼Æ¦r¡A«ö·ÓºD¨Ò¦a BIOS ºÏºÐ¾÷ªº³æ¤¸·|¸ò FreeBSD ¦C Á|¥X¨Óªº¤@¼Ë¡AIDE ¥ý¡AµM«á¤~¬O SCSI¡C ·í§A¦b¤À³Î§AªººÏºÐ®É¡AÀˬd¦b FDISK ¿Ã¹õ¤W¥X²{ªººÏºÐ geometry ¬O¥¿½Tªº(¤]´N¬O»¡­n¸ò BIOS ªº¼Æ¦r¬Û²Å¦X)¡F¦pªG¿ù¤F¡A¥Î``g''«öÁä ­×§ï¡C·í§A¦b¿Ã¹õ¤W¬Ý¤£¨ì¥ô¦óºÏºÐ¾÷¡A©Î°²¨ÏºÏºÐ¾÷¤w¸g¥Ñ¥t¤@­Ó¨t ²Î¤¤²¾°£®É¡A¯S§OÀ³¸Ó³o»ò°µ¡C­È±oª`·Nªº¬O³o¥u¬O«ü©w§A­n¥Ñ­þ­ÓºÏºÐ ¤W±Ò°Ê¡FFreeBSD ±N·|¦Û¦æ§ä¥X¦b§A¨t²Î¤Wªº¨ä¥LºÏºÐ¾÷¡C ¤@¥¹§A¨ú±o BIOS ¸ò FreeBSD ¨âªÌ¹ïºÏºÐ¾÷ geometry ªº¦@ÃÑ¡A§A ªº§xÃø´X¥G¤w¸gªï¤b¦Ó¸Ñ¡A¦Ó¥B¦A¤]¤£»Ý­n¨Ï¥Î``DD''mode¡CµM¦Ó¡A°² ¦p§A¤´¾á¤ß·í§A¹Á¸Õ±Ò°Ê®É·|¬Ý¨ì``read error''°T®§¡A³o®É­Ô§A¯à°µ ªº´N¬Oë§iµM«á¸Õ¬Ý¬Ý - ¤Ï¥¿¤]¨S¤°»ò¦n¥¢¥hªº¡C ­n§â``¦MÀI©^Äm''ªººÏºÐ¦^´_¨ì¥¿±` PC ¨Ï¥Î¡A°ò¥»¤W¦³¨â­Ó¿ï¾Ü¡C ²Ä¤@¡A¬O§A§â¨¬°÷ªº NULL ¦ì¤¸²Õ¼g¤J MBR ½T«O¥ô¦óÀH«áªº¦w¸Ëµ{ ¦¡¬Û«H³o¥u¬O¤@­ÓªÅ¥ÕªººÏºÐ¡CÁ|¨Ò¨Ó»¡§A¥i¥H³o¼Ë°µ¡G dd if=/dev/zero of=/dev/rda0 count=15 ©Î¬O±Ä¥Î¥t¥~¤@­Ó¡A«D¥¿¦¡ªº DOS ``¯S¦â''¡G fdisk /mbr ³o±N·|¦w¸Ë¤@­Ó¥þ·sªº¥D­n±Ò°Ê°O¿ý¡A¦]¦¹·|¯}Ãa BSD bootstrap¡C §Ú¦p¦ó¯à¥[¤J§ó¦hªº¸m´«ªÅ¶¡(swap space)¡S ³Ì¦nªº¤èªk¬O¼W¥[§A swap ¤À³Î°Ïªº¤j¤p¡A©Î§Q¥Î³o­Ó¤è«K²z¥Ñªº¦n³B¥h ¼W¥[¥t¤@­ÓµwºÐ¡CºD¨Òºâªk¬O¥Î¥D°O¾ÐÅ骺¨â­¿·í¸m´«ªÅ¶¡(swap space) ¡AµM¦Ó¦pªG§A¥u¦³«Ü¤Ö¶qªº¥D°O¾ÐÅé¡A§A¥i¯à·Q¥t¥~³]©w swap¡C³]©w¨¬°÷ ªº¸m´«ªÅ¶¡¡A¨Ã¬°¥H«á°O¾ÐÅéÂX¥R¹w§@·Ç³Æ¥i¯à¬O­Ó¦n¥D·N¡A³o¼Ë¥H«á´N ¤£»Ý­n¦A°µ¤@¦¸¸m´«ªÅ¶¡ªº³]©w¡C ¦b¤À´²ªººÏºÐ¤W¼W¥[¸m´«ªÅ¶¡·|¤ñ³æ¯Â¦a¦b¦P¤@­ÓºÏºÐ¥[¤J¸m´«ªÅ¶¡ Åý®Ä²v¨Óªº§Ö¤@ÂI¡CÁ|¤@­Ó¨Ò¤l¨Ó»¡¡A¦pªG§A¥¿¦b¤@­ÓºÏºÐ¸Ì½sĶ¨Ó ·½µ{¦¡¡A¦Ó¸m´«ªÅ¶¡¦b¥t¤@­ÓºÏºÐ¡A³o·|¤ñ¸m´«ªÅ¶¡¸ò½s͵{¦¡³£¦b ¦P¤@­ÓºÏºÐ®É¨Ó±o§Ö¡C³o¹ï SCSI ºÏºÐ¾÷¯S§O¥¿½T¡C ·í§A¦³¦n´X­ÓºÏºÐ¾÷®É¡A¦b¨C­ÓºÏºÐ¤W³]©w¤@­Ó swap ¤À³Î°Ï¬O¦³ §Qªº¡A¬Æ¦Ü³Ì«á¨Ï¥Î¤@¾ã­ÓºÏºÐ¾÷·í¸m´«ªÅ¶¡¡C¤@¯ë¨Ó»¡¡A¨C­Ó¨t²Î ¤Wªº§Ö³tºÏºÐ³£À³³]©w¬Y¨Ç swap¡AFreeBSD ¤º©w¤ä´©³Ì¦h¥|­Ó¥æ¿ù¦¡ swap ¸Ë¸m¡C³q±`³]©w¦h­« swap ¤À³Î°Ï®É§A·|·QÅý¥¦­Ì³£¨Ï¥Î¦P¼Ë¤j ¤p¡A¦ý¦³®É§Ú­Ì·|·QÅý¥D­n swap ¤À³Î°Ï(primary swap partition) §ó¤j¤@ÂI¥H®e¯Ç®Ö¤ßµ{¦¡ªº core dump¡C§Aªº primary swap partition ¦Ü¤Ö¥²¶·©M¥D°O¾ÐÅé¤@¼Ë¤j¡A¥H¯à®e¯Ç¤@­Ó kernel core¡C IDE ºÏºÐ¨Ã¤£¤¹³\¦P®É¦b¦P¤@³q¹D¸Ì¦s¨ú¨â­Ó¸Ë¸m¡]FreeBSD ¤£¤ä´© mode 4¡A¦]¦¹©Ò¦³ªº IDE ºÏºÐ I/O ¬O``¥iµ{¦¡¤Æªº''¡^¡CµM¦Ó§Ú¤´ ·|«ØÄ³§A§â¸m´«ªÅ¶¡©ñ¦b¤À§OªººÏºÐ¡CºÏºÐ¾÷³o»ò«K©y¡A¹ê¦b¨S¤°»ò ¦n¾á¤ßªº¡C ¦b NFS ¤W°µ¸m´«¶È¦b¥H¤U±¡§Î³Q«ØÄ³¨Ï¥Î¡G§A¨S¦³¦Û¤vªººÏºÐ¥i ¥H¨Ï¥Î¡CFreeBSD 4.0 ¥H«e release ªºª©¥»¦b NFS ¤W°µ¸m´«¬O¬Û·í ½wºC¦ÓµL®Ä²vªº¡A¦ý¦bµ¥©ó 4.0 ©Î¤§«áªº release ª©¥»´N¦³¦X²zªº ³t«×¤F¡C§Y¨Ï¦p¦¹¡AÁÙ¬O¨ü¨ìºô¸ô¦³®ÄÀW¼e©M¦b NFS server ¤WÃB¥~ ¸Ë¸üªº­­¨î¡C ³o¸Ì¦³­Ó½d¨Ò¬O¥Î 64MB vn-swap (/usr/swap0¡A·íµM§A¯à¥Î ¥ô¦ó§A·Q¥Îªº¦W¦r¡^¡C ½T©w§Aªº®Ö¤ßµ{¦¡«Ø¥ß®É¦³¥]§t¥H¤U³o¦æ¡G pseudo-device vn 1 #Vnode driver (turns a file into a device) ¦b§Aªº³]©wÀɤ¤¡CGENERIC ³o­Ó®Ö¤ß¤w¸g¥]§t³o¶µ¤F¡C «Ø¥ß¤@­Ó vn-device cd /dev sh ./MAKEDEV vn0 «Ø¥ß¤@­Ó¸m´«ÀÉ (/usr/swap0) dd if=/dev/zero of=/usr/swap0 bs=1024k count=64 ³]©w¾A·íªº¦s¨úÅv©ó(/usr/swap0) chmod 0600 /usr/swap0 ¦b /etc/rc.conf ¤¤±Ò°Ê¸m´«ÀÉ swapfile="/usr/swap0" # Set to name of swapfile if aux swapfile desired. ­«·s¶}¾÷¡C ­n°¨¤W±Ò°Ê¸m´«ÀÉ¡AÁä¤J¡G vnconfig -ce /dev/vn0c /usr/swap0 swap §Ú¤£·|³]©w§Úªº¦Lªí¾÷¡C ½Ð°Ñ¾\ Handbook ¸Ì¦³Ãö¦C¦Lªº³¡¥÷¡C³oÀ³¸Ó¯à¸Ñ¨M§A¤j³¡¤Àªº°ÝÃD¡A½Ð¬Ý Handbook entry on printing. §Ú¨t²Î¤WªºÁä½L°t¸m¿ù¤F¡C kbdcontrol µ{¦¡¦³¤@­Ó¿ï¶µ¥i¥HŪ¨úÁä½L°t¸mÀɮסC¦b /usr/share/syscons/keymaps ¦³¤@¨Ç°t¸mÀÉ¡C¿ï¾Ü¤@­Ó¸ò§Aªº ¬ÛÃöªº¨ÃŪ¨ú¥¦¡C kbdcontrol -l uk.iso /usr/share/syscons/keymaps ©M .kbd ©µ®i¶°¨â­Ó³£¥Ñ kbdcontrol ©ÒÂ_©w¡C ¥i¥H±q /etc/sysconfig (©Î rc.conf) ¨Ó³]©w¡A½Ð¬Ý¦¹Àɸ̬ÛÃöªºµù¸Ñ¡C ¦b 2.0.5R ¤Î¨ä¤§«áªºª©¥»¡A©Ò¦³¸ò¤å¦r¦r«¬¡AÁä½L¹ïÀ³¬ÛÃöªº³]©w³£¦b /usr/share/examples/syscons¡C ¥H¤U¬O¥Ø«e¤ä´©ªº¹ïÀ³³]©w¡G Belgian ISO-8859-1 Brazilian 275 keyboard Codepage 850 Brazilian 275 keyboard ISO-8859-1 Danish Codepage 865 Danish ISO-8859-1 French ISO-8859-1 German Codepage 850 German ISO-8859-1 Italian ISO-8859-1 Japanese 106 Japanese 106x Latin American Norwegian ISO-8859-1 Polish ISO-8859-2 (programmer's) Russian Codepage 866 (alternative) Russian koi8-r (shift) Russian koi8-r Spanish ISO-8859-1 Swedish Codepage 850 Swedish ISO-8859-1 Swiss-German ISO-8859-1 United Kingdom Codepage 850 United Kingdom ISO-8859-1 United States of America ISO-8859-1 United States of America dvorak United States of America dvorakx §ÚµLªkÅý user quotas ¥¿±`¤u§@¡C ¤£­n¦b '/' ¥´¶} quotas¡A §â quotas ÀÉ©ñ¦b¥¦¥²¶·±j­¢¸m¤JªºÀɮרt²Î¤º¡AÁ|¨Ò¡G FS QUOTA FILE /usr /usr/admin/quotas /home /home/admin/quotas ... §Úªº ccd ¦³¦ó¤£§´¡S ³oºØ±¡§Îªº¼x¥ü¬O¡G # ccdconfig -C ccdconfig: ioctl (CCDIOCSET): /dev/ccd0c: Inappropriate file type or format # ³q±`³o·|µo¥Í¦b§A¹Á¸Õ­n³sµ² `c' ¤À³Î°Ï¡A³o¤º©wªº«¬§O¬O`µLªk¨Ï¥Îªº' ¡Cccd ÅX°Êµ{¦¡»Ý­nªº°ò¦¤À³Î°Ï«¬§O¬° FS_BSDFFS¡A½s¿è§A­n¸ÕµÛ³sµ²ªººÏºÐ ¼Ð°O¨Ã§ó§ï¤À³Î°Ïªº«¬§O¬°`4.2BSD'¡C ¬°¦ó§Ú¤£¯à½s¿è§Ú ccd ªººÏºÐ¼Ð°O¡S ³oºØ±¡§Îªº¼x¥ü¬O¡G # disklabel ccd0 (³o¸Ì¦L¥X¬Y¨Ç©úÅ㪺¸ê®Æ¡A©Ò¥H¸ÕµÛ½s¿è¥¦¡^ # disklabel -e ccd0 (½s¿è¡AÀx¦s¡AµM«áÂ÷¶}) disklabel: ioctl DIOCWDINFO: No disk label on disk; use "disklabel -r" to install initial label # ³o¬O¦]¬°¥Ñ ccd ¶Ç¦^ªººÏºÐ¼Ð°O¨Æ¹ê¤W¬O¤@­Ó`°²ªº'¦Ó¨S¦³¯u¥¿¦bºÏºÐ ¤W¡C§A¥i¥H§â¥¦§¹¥þ¼g¤J¨Ó¸Ñ¨M³o­Ó°ÝÃD¡A¹³³o¼Ë¡G # disklabel ccd0 > /tmp/disklabel.tmp # disklabel -Rr ccd0 /tmp/disklabel.tmp # disklabel -e ccd0 (this will work now) FreeBSD ¤ä´© System V IPC ®æ¦¡«ü¥O¶°¡H ¬Oªº¡AFreeBSD ¤ä´© System V-style IPC¡C³o¥]¬A¦@¨É°O¾ÐÅé¡A°T®§¸ò «H¸¹¡C§A»Ý­n¦b§Aªº®Ö¤ß³]©wÀɤº¥[¤J¤U¦C´X¦æ¥H±Ò°Ê¥¦­Ì¡C options SYSVSHM options "SHMMAXPGS=64" # 256Kb of sharable memory options SYSVSEM # enable for semaphores options SYSVMSG # enable for messaging ­«·s½sĶ¨Ã¦w¸Ë¡C ª`·N¡G ¦pªG§A­n°õ¦æ GIMP §A¥i¯à»Ý­n¼W¥[ SHMMAXPKGS ¨ì¬Y¨Ç¯î ÂÕªº¼Æ¥Ø¹³¬O 4096(16M!)¡A256Kb ¹ï X11R6 ¦@¨É°O¾ÐÅé¨Ó»¡¤w¸g¥R¤À¨¬ °÷¤F¡C §Ú¸Ó¦p¦ó¨Ï¥Î sendmail ³z¹L UUCP ¨Ó»¼°e¶l¥ó¡H ¸òÀH FreeBSD ®M¸Ë¦Ó¨Óªº sendmail ³]©w¬O¾A¦X¨º¨Çª½±µ³s¤Wºô»Úºô¸ô ªº¯¸¥x¡C·Q³z¹L UUCP ¥æ´«¶l¥óªº¯¸¥x¥²¶·¥t¥~¦w¸Ë sendmil ªº³]©wÀÉ ®×¡C ¤â°Ê­×§ï /etc/sendmail.cf ¬Oµ´¹ï¥²­nªº¡C²Ä 8 ª©ªº sendmail ´£¨Ñ¤@­Ó¥þ·sªº¤J¤f¥H³z¹L¤@¨Ç¹³ m4 ªº³B²z´N¯à ²£¥Í³]©wÀÉ¡A³o¨Æ¹ê¤W¬O¤@­Ó°ª¼h·§©Àµ¥¯Åªº§Þ¥©©Ê³]©w¡C§AÀ³¸Ó¥i¥H¦b¥H ¤UÀɮ׸̨ϥΥ¦¡G /usr/src/usr.sbin/sendmail/cf °²¦p§A¤£¬O¥Î full sources ¤è¦¡¦w¸Ë¨t²Î¡A¨º»ò sendmail ³]©w¶µ¥Ø¥i ¯à¤w¸g¤À´²¦¨¦n´X­Ó¨Ó·½¤À¥¬Àɦbµ¥µÛ§A¡A°²³]§A¤w¸g mount ¥úºÐ¾÷¡A°µ ¥H¤U°Ê§@¡G cd /usr/src tar -xvzf /cdrom/dists/src/ssmailcf.aa §OÅå·W¡A³o¥u¦³¼Æ¤Q¸U­Ó¦ì¤¸²Õªº¤j¤p¡C¦b cf ¥Ø¿ý¸Ìªº README ¥i¥H´£¨Ñ¤@­Ó m4 ³]©wªkªº°ò¥»¤¶²Ð¡C ¥H UUCP »¼°e¨Ó»¡¡A«ØÄ³§A³Ì¦n¨Ï¥Î mailertable ¯SÂI¡C «Øºc¤@­Ó¸ê®Æ®wÅý sendmail ¥i¥H¨Ï¥Î¥¦¦Û¤vªº¸ô®|¨Mµ¦¡C ­º¥ý¡A§A¥²¶·«Ø¥ß¦Û¤vªº .mc ÀÉ¡C /usr/src/usr.sbin/sendmail/cf/cf ¥Ø¿ý¬O³o¨ÇÀɮתº®a¡C ¬d¬Ý¤@¤U¡A¤w¸g¦³¦n´X­Ó½d¨ÒÀÉ¡A°²³]§A¤w¸g©R¦W¦Û¤vªºÀÉ¥s foo.mc¡A§A­n°µªº¥u¬O§â¥¦Âà´«¦¨¤@­Ó¦³®Äªº sendmail.cf ¡G cd /usr/src/usr.sbin/sendmail/cf/cf make foo.cf cp foo.cf /etc/sendmail.cf ¤@­Ó¨å«¬ªº .mc Àɬݰ_¨Ó¥i¯à¹³³o¼Ë¡G include(`../m4/cf.m4') VERSIONID(`Your version number') OSTYPE(bsd4.4) FEATURE(nodns) FEATURE(nocanonify) FEATURE(mailertable) define(`UUCP_RELAY', your.uucp.relay) define(`UUCP_MAX_SIZE', 200000) MAILER(local) MAILER(smtp) MAILER(uucp) Cw your.alias.host.name Cw youruucpnodename.UUCP nodns ©M nocanonify ¯S©Ê±NÁ×§K¥ô¦ó¦b»¼°e¶l¥ó ®É·|¥Î¨ì DNS ªº¾÷·|¡CUUCP_RELAY ¶µ¥Øªº¥X²{²z¥Ñ«Ü©_©Ç¡A ´N¤£­n°Ý¬°¦ó¤F¡C²³æªº©ñ¤J¤@­Óºô»Úºô¸ô¤W¥i¥H³B²z .UUCP µêÀÀºô°ì ¦ì§}ªº¥D¾÷¦WºÙ¡F³q±`¡A§A¥u»Ý­n¦b³o¸Ì¶ñ¤J§A ISP ªº«H¥ó¦^ÂгB (mail replay)¡C §A¤w¸g°µ¨ì³o¸Ì¤F¡A§AÁٻݭn³o­Ó¥s /etc/mailertable ªº ÀɮסC¤@­Ó¨å«¬ªº½d¨Ò¦p¤U¡G # # makemap hash /etc/mailertable.db < /etc/mailertable # horus.interface-business.de uucp-dom:horus .interface-business.de uucp-dom:if-bus interface-business.de uucp-dom:if-bus .heep.sax.de smtp8:%1 horus.UUCP uucp-dom:horus if-bus.UUCP uucp-dom:if-bus . uucp-dom:sax ¦p§A©Ò¨£¡A³o¬O¬Y­Ó¯u¹êÀɮ׸̪º¤@³¡¥÷¡C­º¤T¦æ³B²zºô°ì©w§}«H¥ó ¤£À³¸Ó³Q°e¥X¨ì¤º©w¸ô®|¡A¦Ó¥Ñ¬Y¨Ç UUCP ¾F©~(UUCP neighbor)¨ú¥N ªº¯S®í±¡§Î¡A³o¬O¬°¤F``ÁYµu''»¼°eªº¸ô®|¡C¤U¤@¦æ³B²z¨ì¥»¦a¤A¤Ó ºô¸ôºô°ìªº«H¥óÅý¥¦¥i¥H¨Ï¥Î SMTP ¨Ó»¼°e¡C³Ì«á¡AUUCP ¾F©~´£¨ì .UUCP µêÀÀºô°ìªº°O¸ü¡A¤¹³\¤@­Ó``uucp-neighbor!recipient''±À½¤º©w³W«h¡C³Ì«á¤@¦æ«h¥H¤@ ­Ó³æ¿Wªº¥yÂI°µµ²§ô¡A¥H UUCP »¼°e¨ì´£¨Ñ·í§A¥þ¥@¬É©Ê¶l¥ó¹hªùªº UUCP ¾F©~¡C©Ò¦³¦b uucp-dom: ÃöÁä¦r¸Ìªº¸`ÂI¦WºÙ¥²¶·³£¬O ¦³®Äªº UUCP ¾F©~¡A§A¥i¥H¥Î uuname ©R¥O¥h½T»{¡C ´£¿ô§A³o­ÓÀɮצb¨Ï¥Î«e¥²¶·³QÂà´«¦¨ DBM ¸ê®Æ®wÀɮסA³Ì¦n¦b mailertable ³Ì¤W­±¥Îµù¸Ñ¼g¥X©R¥O¦C¨Ó§¹¦¨³o­Ó¤u§@¡C·í§A¨C¦¸§ó´«§A ªº mailertable «á§AÁ`¬O»Ý­n°õ¦æ³o­Ó©R¥O¡C ³Ì«á´£¥Ü¡G¦pªG§A¤£½T©w¬Y¨Ç¯S©wªº«H¥ó¸ô®|¥i¥Î¡A°O±o§â ¿ï¶µ¥[¨ì sendmail¡C³o·|±N sendmail ±Ò°Ê¦b address test mode ¡F¥u­n«ö¤U ``0''¡A±µµÛ¿é¤J§A§Æ±æ´ú¸Õªº«H¥ó¸ô®|¦ì§}¡C³Ì«á¤@¦æ§i¶D§A¨Ï ¥Î¤º³¡ªº«H¥ó¥N²zµ{¦¡¡A¥N²zµ{¦¡ªº·|³qª¾¥Øªº¥D¾÷¡A¥H¤Î(¥i¯àÂà´«ªº)¦ì§} ¡C­nÂ÷¶}¦¹¼Ò¦¡½Ð«ö Control-D¡C j@uriah 191% sendmail -bt ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter <ruleset> <address> > 0 foo@interface-business.de rewrite: ruleset 0 input: foo @ interface-business . de ... rewrite: ruleset 0 returns: $# uucp-dom $@ if-bus $: foo \ < @ interface-business . de > > ^D j@uriah 192% ·í§Ú¥Î¼·±µ³s¤Wºô¸ô®É¸Ó«ç»ò³]©w«H¥ó»¼°e¡H ¦pªG§A¤w¸g¦³¤@­Ó©T©wªº IP ¼Æ¦r¡A§A¤£»Ý­n½Õ¾ã¥ô¦ó¤º©w­È¡C³]¦n §A­n«ü©wªººô¸ô¦WºÙ¡A¨ä¥Lªº sendmail ³£·|À°§A°µ§¹¡C ¦pªG§A®³¨ìªº¬O°ÊºA°t¸mªº IP ¼Æ¦r¦Ó¨Ï¥Î¼·±µ ppp ³s±µ¨ìºô »Úºô¸ô¡A§A¥i¯à¤w¸g¦b§Aªº ISP «H¥ó¥D¾÷¤W¦³¤@­Ó«H½c¡C°²³]§Aªº ISP ºô°ì¬O myISP.com¡A§Aªº¨Ï¥ÎªÌ¦WºÙ¬O user¡C¥ç°² ³]§AºÙ¦Û¤vªº¥D¾÷¦WºÙ¬O bsd.home ¦Ó§Aªº ISP §i¶D§A¥i¥H¨Ï¥Î relay.myISP.com ·í§@«H¥ó¦^ÂгB¡C ¬°¤F±q§Aªº«H½c±µ¦¬«H¥ó¡A§A±N»Ý­n¦w¸Ë¨ú«Hµ{¦¡¥H«K±q«H½c¨ú¦^«H¥ó¡C Fetchmail ¬O¤@­Ó¤£¿ùªº¿ï¾Ü¦]¬°¥¦¤ä´©³\¦h¤£¦Pªº³q°T¨ó©w¡A³q±` §Aªº ISP ·|´£¨Ñ POP3¡C¦pªG§A¿ï¾Ü¨Ï¥Î user-ppp¡A§A¥i¥H¦b³s½u¨ìºô¸ô ¦¨¥\«á¦Û°Ê§ì¨ú§Aªº«H¥ó¡A¥u­n¦b /etc/ppp/ppp.linkup ¸Ì­± ³]©w¥H¤U³o¶µ¡G MYADDR: !bg su user -c fetchmail °²¨Ï§A¥¿¨Ï¥Î sendmail(¦p¤U©Ò¥Ü)¶Ç°e«H¥ó¨ì«D¥»¦a±b¸¹ ¡A¸m¤J¥H¤U©R¥O¡G !bg su user -c "sendmail -q" ¦b¤W­±¨º¶µ©R¥O¤§«á¡C³o·|±j­¢ sendmail ¦b³s±µ¤Wºô¸ô«á°¨¤W¶}©l³B ²z mailqueue¡C §Ú°²³]§A¦b bsd.home ¾÷¾¹¤W¦³¤@­Ó user ªº±b¸¹¡C¦b bsd.home ¾÷¾¹¤W user ªº®a¥Ø¿ý¸Ì«Ø¥ß¤@­Ó .fetchmailrc ªºÀɮסG poll myISP.com protocol pop3 fetchall pass MySecret; µL¶·Âب¥¡A³o­ÓÀɰ£¤F user ¥~¤£À³¸Ó³Q¥ô¦ó¤HŪ¨ú¡A¦]¬°¥¦¥]§t ¤F MySecret ³o­Ó±K½X¡C ¬°¤F¦b±H«H®É¦³¥¿½Tªº©ïÀY from: ¡A§A¥²¶·§i¶D sendmail ¨Ï¥Î user@myISP.com ¦Ó«D user@bsd.home¡C§A¥i¯à·|§Æ±æ§i¶D sendmail ±q relay.myISP.com °e¥X©Ò¦³«H¥ó¡A¥[§Ö«H¥ó¶Ç°e¡C ¥H¤Uªº .mc ÀÉÀ³¯àº¡¨¬§Aªº­n¨D¡G VERSIONID(`bsd.home.mc version 1.0') OSTYPE(bsd4.4)dnl FEATURE(nouucp)dnl MAILER(local)dnl MAILER(smtp)dnl Cwlocalhost Cwbsd.home MASQUERADE_AS(`myISP.com')dnl FEATURE(allmasquerade)dnl FEATURE(masquerade_envelope)dnl FEATURE(nocanonify)dnl FEATURE(nodns)dnl define(SMART_HOST, `relay.myISP.com') Dmbsd.home define(`confDOMAIN_NAME',`bsd.home')dnl define(`confDELIVERY_MODE',`deferred')dnl ¦p¦óÂà´«³o­Ó .mc Àɮרì sendmail.cf Àɪº¸Ô²Ó²Ó¸`½Ð °Ñ¦Ò¤W¤@¸`¡C¥t¥~¡A¦b§ó·s sendmail.cf ¥H«á¤£­n§Ñ°O­«·s±Ò°Ê sendmail¡C «x¡I§Ú§Ñ°O root ªº±K½X¤F¡I ¤£­nÅå·W¡I¥u­n­«·s±Ò°Ê¨t²Î¡A¦b boot: ´£¥Ü¸¹¥´ -s ¶i¤J³æ¨Ï¥ÎªÌ¼Ò¦¡¡C ¦b°Ý­n¨Ï¥Î­þ­Ó shell ®É¡A«ö¤U ENTER¡C§A·|¬Ý¨ì¤@­Ó # ªº´£¥Ü¸¹¡A¿é¤J mount -u / ¥H­«·s¬[³]§Aªº®ÚÀɮרt²Î¥i¨ÑŪ/¼g¡C°õ¦æ passwd root ¥H§ó´« root ±K½X¡AµM«á°õ¦æ exit Ä~Äò±Ò°Ê¡C §Ú¸Ó«ç»ò«O¯dÅý Control-Alt-Delete ¤£¯à­«·s±Ò°Ê¨t²Î¡H ­×§ï§A¥¿¦b¨Ï¥Îªº¥D±±¥xÁä½L¹ïÀ³¡A¨Ã¥B§â©Ò¦³ boot ªºÃöÁä¦r¥Î nop ¨ú¥N¡C¤º©wªºÁä½L¹ïÀ³¬O¦b /usr/share/syscons/keymaps/us.iso.kbd¡C§A¥i¯à»Ý­n©ú¥Õªº §h©J /etc/rc.conf ¥hŪ¨ú³o­ÓÁä½L¹ïÀ³¥H½T«O§ó°Ê¥Í®Ä¡C·í µM¦pªG§A¥¿¦b¥Î¾A¦X§A°êÄyªºÁä½L¹ïÀ³¡A§AÀ³¸Ó½s¿è¨º¤@­Ó¡C §Ú¸Ó«ç»ò§â DOS ¤å¦rÀÉ®×­«·s®æ¦¡¤Æ¦¨ UNIX ªº¡H ²³æ¦a¨Ï¥Î³o­Ó perl ©R¥O¡G perl -i.bak -npe 's/\r\n/\n/g' file ... file ´N¬O­n³B²zªºÀɮסC³o­Ó­×§ï¬O¦b¤º³¡§¹¦¨¡A­ì©lªºÀÉ®×·|Àx¦s¦¨ °ÆÀɦW¬° .bak ªºÀɮסC ©ÎªÌ§A¥i¥H¨Ï¥Î tr ³o­Ó©R¥O¡G tr -d '\r' < dos-text-file > unix-file dos-text-file ¬O¥]§t DOS ¤å¦rªºÀɮסA¦Ó unix-text-file «h¬O¥]§t Âà´«ªº¿é¥Xµ²ªG¡C³o¤ñ¨Ï¥Î perl ÁÙ­n§Ö¤W¤@ÂIÂI¡C §Ú¸Ó«ç»ò¥Î¦WºÙ¬å±¼ process¡H ¨Ï¥Î killall¡C ¬°¦ó¦b root ªº ACL ®É su ¦n¹³¦³°ÝÃD¡H ³o­Ó¿ù»~¬O¦]¬° Kerberos ¤À´²»{ÃÒ¨t²Î¡C³o­Ó°ÝÃD¨Ã¤£¬O«ÜÄY­«¦ý¬O¥O¤H ¹½·Ð¡C§A¥i¥H¥Î -K ¿ï¶µ¥h°õ¦æ su¡A©Î¬O¹³¤U­Ó°ÝÃD©Ò´y­zªº²¾°£ Kerberos¡C §Ú¸Ó«ç»ò²¾°£ Kerberos¡H ­n±q¨t²Î¸Ì²¾°£ Kerberos¡A­«¸Ë§A¥¿¦b°õ¦æªº release ª©¥»ªº bin distribution¡C¦pªG§A¦³ CDROM¡A§A¥i¥H mount cd(°²³]¦b /cdrom)¨Ã°õ ¦æ¡G cd /cdrom/bin ./install.sh §Ú¸Ó«ç»ò¼W¥[¨t²ÎªºµêÀÀ²×ºÝ¾÷¡H ¦pªG§A¦³³\¦h telnet¡Assh¡AX ©Î¬O screen ¨Ï¥ÎªÌ¡A§A©Î³\·|¥Î§¹µêÀÀ ²×ºÝ¾÷¡A³o¯à±Ð§A«ç»ò¥[§ó¦h¡G «Ø¥ß¨Ã¦w¸Ë¤@­Ó·sªº®Ö¤ßµ{¦¡¨Ã¥B¥[¤J³o¦æ¨ì³]©wÀÉ¡G pseudo-device pty 256 °õ¦æ³o­Ó©R¥O¡G # cd /dev # ./MAKEDEV pty{1,2,3,4,5,6,7} ·|³y¥X 256 ­ÓµêÀÀ²×ºÝ¾÷ªº¸Ë¸m¸`ÂI¡C ½s¿è /etc/ttys ¨Ã¥[¤J²Å¦X 256 ­Ó²×ºÝ¾÷ªº¦æ¼Æ¡C¥¦­ÌÀ³ ¸Ó²Å¦X¤w¸g¦s¦b³æ¶µªº®æ¦¡¡AÁ|¨Ò¨Ó»¡¡A¥¦­Ì¬Ý°_¨Ó¹³¡G ttyqc none network ¦r¥À³]­pªº¶¶§Ç¬O tty[pqrsPQRS][0-9a-v]¡A¨Ï¥Î¥¿³Wªí¥Ü¦¡¡C ¥Î·sªº®Ö¤ßµ{¦¡­«·s±Ò°Ê¹q¸£´N¥i¥H¤F¡C /dev/snd0 ³o­Ó¸Ë¸m°µ¤£¥X¨Ó¡I ¥i¥H¥Î³o­Ó©R¥O²£¥Í­µ®Ä¥d©Ò»Ý­nªº snd0 ¸Ë¸m¡G # cd /dev # sh MAKEDEV snd0 ³o­Ó©R¥O¨Ã¤£·|°µ¥X /dev/snd0¡A¦Ó¬O²£¥Í mixer0¡B audio0¡Bdsp0 ¤ÎÃþ¦üªº¸Ë¸m¡CÁöµM¦p¦¹¡A¦pªG±z·Q¨Ï¥Î ­µ®Ä¡A¤´µM­n°õ¦æ³o­Ó©R¥O¡C ¥i¥H¤£¥Î¶}¾÷¡A­«·sŪ¨ú /etc/rc.conf¡B¦A¦¸±Ò°Ê /etc/rc ¶Ü¡H ¥ý¶i¤J³æ¤H¨Ï¥ÎªÌ¼Ò¦¡¡AµM«á¦A¦^¨ì¦h¨Ï¥ÎªÌ¼Ò¦¡¡C ¦b¥D±±¥x°õ¦æ¡G # shutdown now (Note: without -r or -h) # return # exit ¤°»ò¬O sandbox¡H "Sandbox" ¬O¨t²Î¦w¥þ¥Îªº³N»y¡A¦³¨â­Ó·N¸q¡G ©ñ¦b¬Y¨ÇµêÀÀ¨¾Å@Àð¸Ìªº°õ¦æµ{§Ç¡A³o¨Ç¨¾Å@Àð¬O¥Î¨Óªý¤î¬Y¨Ç¤H«I¤J ³o¹Dµ{§Ç¡A¶i¦Ó¥X¤J©ó§ó¤jªº¨t²Î¤¤¡C ³o¹Dµ{§Ç¥i¥H§¹¥þ¦b¨¾Å@Àð¸Ì°Ê§@¡C¤]´N¬O»¡¡A¥¦©Ò°õ¦æªº¥ô¦óµ{¦¡¤£ ¥i¯à·|º¯³z¨ìÀ𪺥~­±¡C©Ò¥H¦pªG±z¹ï¥¦¦³¦w¥þ¤WªºÅU¼{¡A¨Ã¤£»Ý­n¯S§O¥h ºÊÅ¥¥¦ªº¤@Á|¤@°Ê¡A¤Ï¥¿¥¦¥u¯à¦bÀ𤺬¡°Ê¡C Á|¨Ò¨Ó»¡¡A¥i¥H¥Î userid ¨Ó°µ³o¹D¨¾Å@Àð¡A³o¥¿¬O security(7) ©M named(8) »¡©ú¤å¥ó¤¤ªº©w¸q¡C ²{¦b´N¥Î 'ntalk' ³o­ÓªA°È§@»¡©ú¡]¨£ /etc/inetd.conf¡^¡C³o­ÓªA°È ¥H«eªº userid ¬O root¡A²{¦b°õ¦æ®É«h¬O¥Î tty¡Ctty ³o­Ó userid ´N¬O¤@ ­Ó sandbox¡A¦pªG¦³¤H¯à°÷¶¶§Q¥Î ntalk «I¤J¨t²Î¡A²{¦b¥L´Nºâ¶i±o¨Ó¤]¥u ¯à¥Î tty ³o­Ó userid¡C ©ñ¦b¬Y­Ó¼ÒÀÀ¾÷¾¹¸Ìªºµ{¦¡¡A³o¤ñ¤W­z¨Ó±o§óÄY±K¡C°ò¥»¤W³oªí¥Ü¯à«I¤J ¸Óµ{¦¡ªº¤H¬Û«H¥L¯à¦A¶i¤J©ÒÄݪº¾÷¾¹¡A¦ý¨Æ¹ê¤W¥u·|¶i¤J¼ÒÀÀ¥X¨Óªº¾÷¾¹¡A µLªk¶i¤@¨B­×§ï¥ô¦ó¸ê®Æ¡C ¹F¨ì³o­Ó¥Øªº³Ì±`¥Îªº¤èªk¡A´N¬O¦b¬Y­Ó¤l¥Ø¿ý¤U°µ¥X¼ÒÀÀªºÀô¹Ò¡AµM«á ¥Î chroot °õ¦æ¸Óµ{¦¡¡A³o¼Ë¸Óµ{¦¡ªº®Ú¥Ø¿ý«K¬O³o­Ó¤l¥Ø¿ý¡A¦Ó«D¨t²Î¯u ¥¿ªº®Ú¥Ø¿ý¡C ¥t¤@­Ó±`¨£§@ªk¬O±N¬Y­ÓÀɮרt²Î mount ¦¨°ßŪ¡A¦ý¦b¥¦¤W­±¥t¥~»s³y ¥Xµ{¦¡¥H¬°¥i¥H¼g¤JªºÀɮרt²Î¡C³o­Óµ{¦¡·|¬Û«H¥¦¥i¥H¹ï¨ä¥LÀÉ®×Ū¼g¡A ¦ý¥u¦³¥¦¬Ý¤£¨ì³o­Ó°ßŪ®ÄÀ³ - ¨t²Î°õ¦æªº¤@¯ëµ{¦¡³£¬Ý±o¨ì¡C §Ú­Ì¸Õ¹Ï±N³oÃþ sandbox ºÉ¶q³z©ú¤Æ¡AÅý¨Ï¥ÎªÌ©Î«I¤JªÌµLªk¬Ý¨ì¥L¬O §_¦b¬Y­Ó sandbox ¸Ì­±¡C UNIX ¹ê§@¨âºØ sandbox¡A¤@­Ó¦bµ{¦¡¼h­±¡A¥t¤@­Ó«h¬O¥Ñ userid ¨Ó¹F¦¨¡C ¨C­Ó UNIX °õ¦æµ{§Ç·|¥Î¨¾¤õÀð±N¥¦©M©Ò¦³¨ä¥Lµ{§Ç¹j¶}¡A¬Y­Óµ{§Ç¤£¥i¥H ÀH·N­×§ï¨ä¥Lµ{§Ç¦ì§}ªº¸ê®Æ¡C³o©M Windows ¤¤¡Aµ{¦¡¥i¥H»´©ö­×§ï¨ä¥L¦ì§} ¸ê®Æªº±¡ªp¡A¤j¤£¬Û¦P¡C ¨C­Ó UNIX µ{§Ç³£ÄÝ©ó¬Y­Ó¯S©wªº userid¡C¦pªG¸Ó userid ¤£¬O root¡A´N ·|±N¥¦©M¨ä¥L¨Ï¥ÎªÌªºµ{§Ç¹j¶}¡CUserid ¦P®É¤]¥Î©óµwºÐ¸ê®Æªº¦s¨úÅv¤W¡C X Window System ¤Î Virtual Consoles §Ú·Q­n°õ¦æ X ¡A§Ú¸Ó«ç»ò°µ¡H ³Ì²³æªº¤èªk´N¬O¦b¦w¸Ë¨t²Îªº®É­Ô¤@¨Ö¦w¸Ë¡C µM«á¬Ý¬Ý xf86config ªº man page ¡A³o­Óµ{¦¡¥i¥HÀ°±z³]©w XFree86(tm) ¨Ï¥¦ ¯à°÷¨Ï¥Î±zªºÅã¥Ü¥d/·Æ¹«µ¥¶gÃä¡C ±z©Î³\¤]·Q¸Õ¸Õ¬Ý Xaccel server¡C¸Ô±¡½Ð¬Ý Metro Link ©Î¬O Xi Graphics ³o¤@¬q¡C ¬°¤°»ò§Ú¤£¯à¦b X ¸Ì¨Ï¥Î·Æ¹«¡H ¦pªG±z¥Îªº¬O syscons (¤º©wªº console ÅX°Êµ{¦¡) ªº¸Ü¡A±z¥i¥H¸g¥Ñ³]©w FreeBSD ¨ÓÅý¥¦¤ä´©¦b¨C­Ó virtual console ¨Ï¥Î·Æ¹«¡C¬°¤FÁ×§K©M X ²£¥Í½Ä ¬ð¡Asyscons ¨Ï¥Î¤F¤@­Ó¥s°µ``/dev/sysmouse''ªºµêÀÀ¸Ë¸m¡C©Ò¦³·Æ ¹«²£¥Íªº event ³£·|§Q¥Î MouseSystems ³o­Ó¨ó©w¨Ó¶Ç¨ì sysmouse ³o­Ó¸Ë¸m ¡C¦pªG±z§Æ±æ¦b¤@­Ó©Î¥H¤Wªº virtual console ¤W¨Ï¥Î·Æ¹«¡A¨Ã¥B ¯à°÷ ¨Ï¥Î X ªº¸Ü¡A§Ú­Ì«ØÄ³±z³o¼Ë³]©w¡G /etc/rc.conf: moused_type=ps/2 # or whatever your actual type is moused_port=/dev/psm0 # or whatever your real port is moused_flags= /etc/XF86Config Section Pointer Protocol "MouseSystems" Device "/dev/sysmouse" ..... ¦³¨Ç¤H¤ñ¸û³ßÅw¦b³]©w X ªº®É­Ô¥Î "/dev/mouse" ³o­Ó¸Ë¸m¡C¦p ªG±z­nÅý¥¦¯à°÷¥¿±`¤u§@ªº¸Ü¡A±z´N¥²¶·§â "/dev/mouse" ³sµ²¨ì /dev/sysmouse¡G # cd /dev # rm -f mouse # ln -s sysmouse mouse X Window ªº¿ï³æ©M¹ï¸Ü®Ø¤£¯à¥¿±`¹B§@¡I §â Num Lock Ãö±¼¸Õ¸Õ¡C ¦pªG±zªº Num Lock ¦b¶}¾÷®Éªº¹w³]­È¬O¶}µÛªº¸Ü¡A±z¥²¶·§â¤U¦C³o¦æ©ñ¨ì XF86Config ³]©wÀɤ¤ªº "Keyboard" ³¡¥÷¡C # Let the server do the NumLock processing. This should only be # required when using pre-R6 clients ServerNumLock ¤°»ò¬O virtual console¡H§Ú­n«ç»ò°µ¤~¯à¥Î¦h¤@ÂI¡H ²³æ¨Ó»¡¡Avirtual console ´N¬O¥i¥HÅý±z¤£¥²°µ¤Ó¦h½ÆÂøªº³]©w¦p¨Ï¥Îºô ¸ô©Î°õ¦æ X ¡A¦Ó¦b¦P¤@»O¾÷¾¹¤W¦P®É°µ¦n´X¥ó¨Æªº¤èªk¡C ·í±Ò°Ê¨t²Î¨ÃÅã¥Ü§¹©Ò¦³¶}¾÷°T®§¤§«á¡A±z´N·|¦b¿Ã¹õ¤W¬Ý¨ì¤@­Ó login ªº ´£¥Ü²Å¸¹¡C¦b³o­Ó®É­Ô±z´N¥i¥H¿é¤J±zªº login name ¥H¤Î password ¡AµM«á´N ¥i¥H¦b²Ä¤@­Ó virtual console ¤W¶}©l¤u§@¤F (©ÎªÌ¶}©lª±¡I) ¡C ¦b¬Y¨Ç±¡ªp¤U¡A±z¥i¯à·|·Q­n§@¨ä¥Lªº¤u§@¡A¨Ò¦p»¡¬O¬Ý¬Ý±z¥¿¦b°õ¦æªºµ{ ¦¡ªº»¡©ú¤å¥ó¡A©Î¬O·í±z¦b FTP ¶Ç¿éªºµ¥«Ý®É¶¡¤¤¬Ý¬Ý±zªº¶l¥ó¡C±z¥u»Ý­n«ö Alt-F2 («ö¦í Alt Á䤣©ñ¡A¨Ã«ö¤U F2 Áä) ¡AµM«á±z´N·|¦b²Ä¤G­Ó "virtual console" ¤W¬Ý¨ì¤@­Ó login ´£¥Ü²Å¸¹¡I·í±z·Q­n¦^¨ì­ì¨Óªº¤u§@®É¡A½Ð«ö Alt-F1¡C FreeBSD ¦b¦w¸Ë®Éªº¹w³]­È¬O¨Ï¥Î¤T­Ó virtual console ¡A±z¥i¥H¥Î Alt-F1¡AAlt-F2¡A¥H¤Î Alt-F3 ¦b¥¦­Ì¤§¶¡°µ¤Á´«¡C ¦pªG±z·Q­n¦h¤@ÂI virtual console ªº¸Ü¡A±z¥u»Ý­n½s¿è /etc/ttys ³o­ÓÀÉ ¡A¦b "Virtual terminals" ³o­Óµù¸Ñ«á­±¥[¤J "ttyv4" ¨ì "ttyvc" ªºÄæ¦ì¡G # Edit the existing entry for ttyv3 in /etc/ttys and change # "off" to "on". ttyv3 "/usr/libexec/getty Pc" cons25 on secure ttyv4 "/usr/libexec/getty Pc" cons25 on secure ttyv5 "/usr/libexec/getty Pc" cons25 on secure ttyv6 "/usr/libexec/getty Pc" cons25 on secure ttyv7 "/usr/libexec/getty Pc" cons25 on secure ttyv8 "/usr/libexec/getty Pc" cons25 on secure ttyv9 "/usr/libexec/getty Pc" cons25 on secure ttyva "/usr/libexec/getty Pc" cons25 on secure ttyvb "/usr/libexec/getty Pc" cons25 on secure ±z·Q¥Î´X­Ó´N³]´X­Ó¡C±z³]¶V¦h virtual terminal ¡A¥¦­Ì´N¥Î±¼¶V¦h¨t²Î ¸ê·½¡F¦pªG±z¥u¦³¤£¨ì 8MB ªº°O¾ÐÅ骺¸Ü¡A³o¼vÅT´N¤j¤F¡C±z¥i¯à¤]·|·Q§â "secure" ´«¦¨ "insecure" ¡C IMPORTANT NOTE ¦pªG±z·Q­n°õ¦æ X ªº¸Ü¡A±z ¥²¶· ¬°¥¦«O¯d ( ©ÎÃö±¼) ¦Ü¤Ö¤@­Ó virtual terminal ¡C³o´N¬O»¡¡A¦pªG±z·Q¦b«ö¤Q¤G­Ó Alt ¥\¯àÁä®É³£¦³ login ´£¥Ü²Å¸¹¡A¦Ó¥B¤S¦b¦P¤@³¡¹q¸£¤W¤]·Q°õ¦æ X ªº¸Ü¡A¨º»ò ³o¯u¬O¤Ó¤£©¯¤F - ±z¥u¯à¥Î¤Q¤@­Ó¡C ¨ú®ø¤@­Ó console ³Ì²³æªº¤èªk´N¬O§â¥¦Ãö±¼¡CÁ|¨Ò¨Ó»¡¡A¦pªG±z¹³¤W­±Á¿ ªº¤@¼Ë³]©w¤F¥þ³¡ªº 12 ­Ó terminal ¨Ã¥B·Q­n°õ¦æ X ¡A±z¥²»Ý§â virtual terminal 12 ±q¡G ttyvb "/usr/libexec/getty Pc" cons25 on secure ³]¦¨¡G ttyvb "/usr/libexec/getty Pc" cons25 off secure ¦pªG±zªºÁä½L¥u¦³ 10 ­Ó¥\¯àÁ䪺¸Ü¡A±z´N­n§ï¦¨³o¼Ë¡G ttyv9 "/usr/libexec/getty Pc" cons25 off secure ttyva "/usr/libexec/getty Pc" cons25 off secure ttyvb "/usr/libexec/getty Pc" cons25 off secure (±z¤]¥i¥Hª½±µ§â³o´X¦æ¬å±¼¡C) ¤@¥¹±z§ï¤F /etc/ttys¡A ¤U¤@­Ó¨BÆJ´N¬O­n½T©w±z¦³¨¬°÷ªº virtual terminal ¸Ë¸m¡C³Ì²³æªº¤èªk´N¬O¡G # cd /dev # ./MAKEDEV vty12 # For 12 devices ¦A¹L¨Ó¡A·Q­n±Ò°Ê³o¨Ç virtual console ³Ì²³æ (¤]¬O³Ì°®²b) ªº°µªk´N¬O ­«¶}¾÷¡CµM«á¡A¦pªG±z¤£·Q­«¶}¾÷ªº¸Ü¡A±z¥i¥H§â X Window Ãö±¼¡AµM«á¥Î root ªº¨­¥÷°õ¦æ¤U¦C«ü¥O¡G kill -HUP 1 ·í±z°õ¦æ³o­Ó©R¥O«e¡A±z¤@©w­n§¹¥þ§â X Window Ãö±¼¡C¦pªG±z¤£³o»ò°µªº ¸Ü¡A±zªº¨t²Î¥i¯à·|¦b±z°õ¦æ kill ©R¥O«á¥X²{·í±¼©ÎÂꦺªº±¡ªp¡C §Ú­n«ç»ò±q X ¤Á´«¨ì virtual console¡H ¦pªG±z¿Ã¹õ¤W¥¿¦bÅã¥Ü X Window ªº¸Ü¡A±z¥i¥H¥Î Ctrl-Alt-F1 µ¥«öÁä¨Ó¤Á ´«¨ì virtual console ¡Cª`·N¡A¤@¥¹±z±q X Window ¤Á´«¨ì¥ô¤@­Ó virtual console ¤§«á¡A±z´N¥i¥H¥u¥Î Alt- ¥\¯àÁä¨Ó¤Á´«¨ì¨ä¥L virtual terminal ©Î ¬O¤Á¦^ X Window ¡C±z¤£¥²¦P®É«öµÛ Ctrl Áä¡C¦pªG¦b¤ñ¸ûªºª©¥»¤¤±z¥Î Ctrl Áä¨Ó¤Á¦^ X Window ªº¸Ü¡A±z·|µo²{±zªº¤å¦r¿Ã¹õ³Q¥d¦b "control-lock" ¼Ò¦¡¤U¡C±z¥u»Ý­n¦A«ö¤@¦¸±±¨îÁä´N¥i¥H«ì´_­ìª¬¡C §Ú­n«ç»ò°µ¤~¯à¦b¶}¾÷®É±Ò°Ê XDM¡H ¦³¨âºØ¤èªk¥i¥H±Ò°Ê xdm ¡C¤@ºØ¤èªk¬O±q /etc/ttys ¨Ó±Ò°Ê¡A¥i¥H°Ñ¦Ò man page ¤¤ªº½d¨Ò¡F¥t¤@ºØ¤èªk¬O¦b rc.local °õ¦æ xdm ¡A©Î¬O¦b /usr/local/etc/rc.d ©ñ¤@­Ó X.sh ¡C³o¨â ºØ¤èªk³£¬O¦Xªkªº¡A¦pªG±z¸Õ¬Y¤@ºØ¤èªkµL®Äªº¸Ü¡A±z¥i¥H¸Õ¸Õ¥t¥~¤@ºØ¡C³o¨â ºØ¤èªkªºµ²ªG¬O¤@¼Ëªº¡GX ·|Åã¥Ü¤@­Ó¹Ï§Î¤Æªº login: ´£¥Ü¡C ¥Î ttys ªº¤èªkªºÀuÂI¡A¦b©ó«ü©ú¤F X ¦b±Ò°Ê®É¨ì©³¬O¥Î¨º­Ó vty¡A¨Ã¥B±N logout ®É­«·s±Ò°Ê X server ªº³d¥ô¥áµ¹ init¡C rc.local ªº¤èªk«h¬O¦b·í±Ò °Ê X ¥X¤F°ÝÃD®É¡A¥i¥H«Ü»´ÃP¦a§â xdm ±þ±¼¨Ó¸Ñ¨M°ÝÃD¡C ¦pªG¬O¥Î rc.local ªº¤èªk¡A¦b°õ¦æ xdm ®É±z¤£¯à¥[¥ô¦ó°Ñ¼Æ¡]¤]´N ¬O¶]¦¨ daemon¡^¡C¥²¶·¦b getty °õ¦æ«á¤~¯à±Ò°Ê xdm¡A§_«h getty ©M xdm ·| ¤¬¬Û½Ä¬ð¦ÓÂê¦í console¡C³Ì¦nªº¤è¦¡¬O¦b script ¤¤¥[­Ó sleep¡AÅý¥¦¼È°± 10 ¬íÄÁ¥ª¥k¡A±µµÛ¤~°õ¦æ xdm¡C «e¤@ª©ªº FAQ »¡±z¥²¶·§â±z·QÅý X ¨Ï¥Îªº vt ¥[¨ì /usr/X11R6/lib/X11/xdm/Xservers Àɸ̥h¡C³o¬O¤£¥²­nªº¡GX ·|¦Û °Ê¨Ï¥Î²Ä¤@­Ó§ä¨ìªº¥i¥Î vt ¡C ·í§Ú°õ¦æ xconsole ®É¡Aµo¥Í¤F "Couldn't open console" ªº¿ù»~ ¦pªG±z¬O¥Î startx ¨Ó±Ò°Ê X ªº¸Ü¡A/dev/console ªºÅv­­¨Ã¤£·|§ïÅÜ¡Aµ²ªG´N¬O xterm -C ©M xconsole ³oÃþªºµ{¦¡µLªk¥¿±`°õ¦æ¡C ³o¤@¤Áªº°ÝÃD¡A³£¬O¦]¬° console ªºÅv­­¬O±Ä¥Î¨t²Î¹w³]­È¡C¦b¤@­Ó¦h¨Ï¥Î ªÌªº¨t²Î¸Ì¡A§Ú­Ì¤£§Æ±æ¨C­Ó¨Ï¥ÎªÌ³£¥i¥Hª½±µ¼g¤J¨t²Î console ¡C¦pªG¨Ï ¥ÎªÌ¬O±q¾÷¾¹ªº VTY ª½±µ login ªº¸Ü¡A¨º»ò fbtab ¥i¥H¸Ñ¨M³oÃþªº°ÝÃD¡C ²³æ¦a»¡¡A½Ð½T«O /etc/fbtab ³o­ÓÀɮפ¤ªº³o¤@¦æ¨S¦³³Qµù¸Ñ±¼¡G /dev/ttyv0 0600 /dev/console ³o¤@¦æ³]©wªº¦s¦b¥i¥H½T«O±q /dev/ttyv0 µn¤Jªº¨Ï¥ÎªÌ¥i¥H±±¨î console ¡C §Úªº PS/2 ·Æ¹«¦b X ¤¤¦³ÂI¤£¥¿±` ±zªº·Æ¹«©M±zªº·Æ¹«ÅX°Êµ{¦¡¥i¯à¦s¦b¦³¤£¦P¨Bªº²{¶H¡C ¦b 2.2.5 ¥H¤Î§ó¦­ªº¨t²Î¸Ì¡A±q X ¤Á¨ì virtual terminal µM«á¦A¤Á¦^¨Ó ´N¥i¥H¨Ï¥¦­Ì­«·s°µ¦P¨Bªº°Ê§@¡C¦pªG³o­Ó°ÝÃD±`±`µo¥Íªº¸Ü¡A±z¥i¥H¦b±zªº ®Ö¤ß³]©wÀɤ¤¥[¤J¤U­±³o­Ó¿ï¶µµM«á­«·s½sĶ¡G options PSM_CHECKSYNC ¦pªG±z¨S¦³«Ø¥ß®Ö¤ßµ{¦¡ªº¸gÅç¡A½Ð¬Ý ¦Û­q®Ö¤ß ³o¤@¸`¡C ¥[¤W³o­Ó¿ï¶µ¥H«á¡A·Æ¹«©M·Æ¹«ÅX°Êµ{¦¡¶¡ªº¦P¨B°ÝÃDÀ³¸Ó´N¤ñ¸û¤£·|¥X²{ ¤F¡C¦pªG³o­Ó°ÝÃD¤´µM¦s¦bªº¸Ü¡A¦b²¾°Ê·Æ¹«®É«ö«ö·Æ¹««öÁä¥i¥H¨Ï·Æ¹«©M·Æ ¹«ÅX°Êµ{¦¡­«·s°µ¦P¨Bªº°Ê§@¡C ¸Óª`·Nªº¬O³o­Ó¿ï¶µ¨Ã¤£¬O¹ï¨C¤@­Ó¨t²Î³£¦³®Ä¡A¥¦¥i¯à·|Åý±µ¦b PS/2 ·Æ ¹«¦ì¸mªº ALPS GlidePoint ¸Ë¸m¥¢¥h "tap" ³o¶µ¥\¯à¡C ¦b 2.2.6 ¤Î¨ä«áªºª©¥»¡A¦P¨Bªº½T»{¤w¸g¦³¤F¸û¦nªº¸Ñ¨M¿ìªk¡A¦Ó¥B³o¨Ç³£ ¤w¸g¬O PS/2 ·Æ¹«ÅX°Êµ{¦¡ªº¼Ð·Ç¤F¡C³o­Ó¤èªk¤]¥i¥H¦b GlidePoint ¤W¥¿±`¤u §@¡C (¦]¬°½T»{ªºµ{¦¡½X¤w¸g¦¨¬°¤@­Ó¼Ð·Ç¥\¯à¡A©Ò¥H¦b³o¨Çª©¥»¤¤§Ú­Ì¤£¦b´£ ¨Ñ PSM_CHECKSYNC ªº¿ï¶µ¤F¡C) ¤£¹L¦b·¥¤Ö¼Æªº®×¨Ò¤¤¡A³o¨ÇÅX°Êµ{¦¡·|»~³ø ¦P¨B©Ê¿ù»~¡AµM«á±z´N·|¬Ý¨ì³o¼Ëªº®Ö¤ß°T®§¡G psmintr: out of sync (xxxx != yyyy) µM«á±z´N·|µo²{±zªº·Æ¹«¤£¯à¥¿±`¹B§@¤F¡C ¦pªG±zµo¥Í¤F³o¼Ëªºª¬ªp¡A±z¥²¶·Âǥѧâ PS/2 ·Æ¹«ÅX°Êµ{¦¡ªº flag ³]¦¨ 0x100 ¨Ó§â¦P¨B½T»{ªºµ{¦¡½Xµ¹¨ú®ø±¼¡CµM«á¦b¶}¾÷´£¥Ü²Å¸¹®É¥Î "" ¿ï¶µ¨Ó¶i¤J UserConfig¡G boot: -c µM«á¡A¦b UserConfig ªº©R¥O¦C¤¤Áä¤J¡G UserConfig> flags psm0 0x100 UserConfig> quit §Úªº PS/2 ·Æ¹«¤£¯à³z¹L MouseSystem ¨Ó¹B§@ ¦³¤@¨Ç³ø§i«ü¥X¬Y¨Ç¼tµPªº PS/2 ·Æ¹«¥u¯à¦b "°ª¸ÑªR«×" ª¬ºA¤U¤~¯à¹B§@ ¡C¦pªG¤£¬Oªº¸Ü¡A·Æ¹«´å¼Ð·|±`±`¶]¨ì¿Ã¹õªº¥ª¤W¨¤¥h¡C «D±`¤£©¯ªº¡A³o­Ó°ÝÃD¦b 2.0.X ©M 2.1.X ¤U¬OµL¸Ñªº¡C¦b 2.2 ¨ì 2.2.5 ª©¡A±z¥i¥H¹ï /sys/i386/isa/psm.c ¨Ï¥Î¤U¦C patch µM«á­««Ø±zªº ®Ö¤ß¡C¦pªG±z¨S¦³«Ø¥ß®Ö¤ßµ{¦¡ªº¸gÅç¡A½Ð¬Ý ¦Û­q®Ö¤ß ³o¸`¡C diff -u psm.c.orig psm.c @@ -766,6 +766,8 @@ if (verbose >= 2) log(LOG_DEBUG¡A"psm%d: SET_DEFAULTS return code:%04x\n", unit¡Ai); + set_mouse_resolution(sc->kbdc¡APSMD_RES_HIGH); + #if 0 set_mouse_scaling(sc->kbdc); /* 1:1 scaling */ set_mouse_mode(sc->kbdc); /* stream mode */ ¦b 2.2.6 ¤Î¥H«áªºª©¥»¡A¦b PS/2 ·Æ¹«ÅX°Êµ{¦¡¤¤³]©w 0x04 ªº flag ·| §â·Æ¹«³]¦¨°ª¸ÑªR«×¼Ò¦¡¡C¦b¶}¾÷´£¥Ü²Å¸¹®É¥Î "" ¿ï¶µ¨Ó¶i¤J UserConfig¡G boot: -c µM«á¡A¦b UserConfig ªº©R¥O¦C¤¤Áä¤J¡G UserConfig> flags psm0 0x04 UserConfig> quit «e¤@¸`¦³´£¨ì¥t¤@­Ó¥i¯à¾É­P·Æ¹«°ÝÃDªº­ì¦]¡C ·í§Ú«Ø¥ß X µ{¦¡®É¡Aimake »¡¥¦§ä¤£¨ì Imake.tmpl ¡C¥¦¦b¨º¡H Imake.tmpl ¬O Imake ®M¥óªº¤@³¡¥÷¡AImake ¬O¼Ð·Çªº«Ø¥ß X µ{¦¡ªº¤u¨ã¡C Imake.tmpl ©M¨ä¥L¼Æ­Ó header file ¤@¼Ë¬O«Ø¥ß X µ{¦¡ªº¥²­nÀɮסA±z¥i¥H¦b X prog distribution ¤¤§ä¨ì¥¦­Ì¡C±z¥i¥H¥Î sysinstall ¨Ó¦w¸Ë©Î¬Oª½±µ±q X distribution ¤¤¤â°Ê¦w¸Ë¡C §Ú­n«ç»ò°µ¤~¯à³]©w¥ªºJ¤l¥Îªº·Æ¹«¡H ¦b±zªº .xinitrc ©Î¬O .xsession ¤¤°õ¦æ xmodmap -e "pointer = 3 2 1" ªº«ü¥O¡C ­n¦p¦ó¦w¸Ë splash ¹Ï§ÎÅã¥Üµ{¦¡¡H¨º¸Ì¥i¥H§ä±o¨ì©O¡H ´N¦bµo¦æ FreeBSD 3.1 ¤§«e¡A§Ú­Ì¥[¶i¤F¦b¶}¾÷®ÉÅã¥Ü "splash" ¹Ï§Îªº·s¥\¯à¡C¥Ø«e¥Î¨ÓÅã¥Ü¦b¿Ã¹õ¤WªºÀÉ®×¥²¶·¬O 256 ¦âªºÂI¯x°}¹Ï§Î ¡]*.BMP ¡B©Î ZSoft PCX¡]*.PCX ªº®æ¦¡¡C°£¦¹¤§¥~¡A¸ÑªR «×¤]¥²¶·¦b 320x200 ¥H¤U¡A¤~¯à©M¼Ð·Ç VGA Åã¥Ü¥d·f°t¨Ï¥Î¡C¦pªG±z½sĶ kernel ®É¦³¥[¤J VESA ¤ä´©¡A¨º»ò³Ì¤j¸ÑªR«×¥i¥H¨ì 1024x768¡Cª`·N VESA ªº ¤ä´©»Ý­n¥[¤J VM86 ³o­Ó kernel ¿ï¶µ¡CVESA ¤ä´©¹ê»Ú¤W¥i¥H¦b½sĶ kernel ®É¥[¤J VESA ¿ï¶µ¡B©Î¸ü¤J VESA ªº kld module ¨Ó¹F¦¨¡C ±z­n­×§ï±±¨î FreeBSD ¶}¾÷¨BÆJªº³]©wÀÉ¡A¤~¯à¨Ï¥Î splash Åã¥Ü¹Ï§Îªº¥\ ¯à¡C³]©wÀɦbµo¦æ FreeBSD 3.2 «e¦³¨Ç§ó°Ê¡A©Ò¥H²{¦b¦³¨â­Ó¤èªk¥i¥H¸ü¤J splash ªº¥\¯à¡G FreeBSD 3.1 ¥ý¿ï¥X¥Î¨ÓÅã¥Ü¦b¿Ã¹õ¤Wªº¹Ï§Î¡A3.1 ª©¥u¤ä´© Windows ªºÂI¯x°}®æ¦¡¡C ¿ï¦n¤F±z­nªº¹ÏÀÉ«á¡A±N¥¦«þ¨ì /boot/splash.bmp¡C±µµÛ§â¤U­±´X ¦æ¥[¤J /boot/loader.rc ¤¤¡G load kernel load -t splash_image_data /boot/splash.bmp load splash_bmp autoboot FreeBSD 3.2 ¥H«áªºª©¥» °£¤F¥[¤J¹ï PCX Àɮתº¤ä´©¥~¡AFreeBSD 3.2 ¤]§ï¶i¤F¶}¾÷µ{§Çªº³]©w ¤è¦¡¡C¦pªG±zÄ@·Nªº¸Ü¡A¥i¥H¥Î¤W­z FreeBSD 3.1 ªº¤èªk¡A±N splash_bmp ´«¦¨ splash_pcx ¨Ó¸ü¤J PCX ÀÉ®×§Y¥i¡C ¦pªG·Q¥Î·sªº³]©w¤è¦¡¡A±zªº /boot/loader.rc ¥²¶·¥]¬A³o´X¦æ¡G include /boot/loader.4th start ¨Ã¥B /boot/loader.conf ¤]­n¥]¬A³o´X¦æ¡G splash_bmp_load="YES" bitmap_load="YES" ³o¬O°²³]±z¥Î /boot/splash.bmp ¨Ó·í§@ splash ªº¿Ã¹õÅ㠥ܡC¦pªG·Q¥Î PCX ªºÀɮסA±N¥¦«þ¦¨ /boot/splash.pcx¡A¦p¤W ­z°µ¥X /boot/loader.rc¡A¦A±N³o´X¦æ¥[¨ì /boot/loader.conf ¤¤¡G splash_pcx_load="YES" bitmap_load="YES" bitmap_name="/boot/splash.pcx" ²{¦b´N¥u³Ñ¤U splash ¥Î¨ÓÅã¥Üªº¹ÏÀÉ¡A±z¥i¥H¦b http://www.cslab.vt.edu/~jobaldwi/splash/ §ä¨ì¦UºØ¼Ë«~. ºô¸ô³]©w §ÚÀ³¸Ó¨ì­þÃä§ä¦³ÃöµLºÏºÐ¶}¾÷ (diskless booting) ªº¸ê®Æ? µLºÏºÐ¶}¾÷´N¬OÅý FreeBSD ¥D¾÷±qºô¸ô¤W¶}¾÷¡A¨Ã¥B±qºô¸ô¤Wªº server ¤WŪ¨ú ¨ä¥L¥²­nªºÀɮסA¦Ó«D¥Ñ¥D¾÷ªºµwºÐ¤W¨ú±o³o¨ÇÀɮסC¸Ô²Óªº¸ê®Æ¥i¥H°Ñ¦Ò FreeBSD ¤â¥UªºµLºÏºÐ¶}¾÷½g¡C FreeBSD ªº¥D¾÷¥i¥H·í§@¬Y­Óºô¸ô¤Wªº¸ô¥Ñ¾¹ (router) ¶Ü ? ¥Ñ©óºô»Úºô¸ôªº¼Ð·Ç¤Æ©Mµ{¦¡³]­pªº¥R¤À¸gÅ礧½ç¡A§Ú­Ì ¯à°÷¦b FreeBSD ¨t²Î¤º«Ø«Ê¥]Âà¶Ç (packet fowarding) ªº¥\¯à¡C§A¥i¥H ±N³o­Ó¥\¯à¥´¶}¡A¥u­n±N³o­ÓÅܼƳ]©w¬° YES ¦b rc.conf ³o­ÓÀɮפ¤ gateway_enable=YES # Set to YES if this host will be a gateway ³o­Ó¿ï¶µ·|±N sysctl ÅܼƳ]©w net.inet.ip.forwarding ¬° 1. ¦b¤j³¡¤Àªºª¬ªp¤U¡A§AÁÙ¥²¶·¦A¶]¤@­Ó³B²z routing ªºµ{¦¡¡A§i¶Dºô¸ô¤Wªº¨ä¥L ¥D¾÷Ãö©ó§Aªº router ³]©wªº¸ê®Æ¡FFreeBSD ¥X¼t®É«K¤ºªþ¤@­Ó¼Ð·Çªº BSD routing µ{¦¡ routed¡A¦pªG§Aªººô¸ô³]©w§ó¬°½ÆÂø¡A§A¥i¥H¸Õ¸Õ¬Ý GaTeD (¥i¥H¥Ñ http://www.gated.org/ ¤U¸ü) ³o­Óµ{¦¡¦Û 3_5Alpha7 «á¤ä´© FreeBSD¡C §Ú­Ì¦³¥²­n§i¶D§A¡A´Nºâ¬O FreeBSD ¥H³oºØ¤è¦¡³]©w§¹¦¨ ¡A¥¦ÁÙ¬OµLªk§¹¥þº¡¨¬ Internet ¹ï router ªº¼Ð·Ç©w¸q ¡A¤£¹L¡A´N¤é±`¨Ï¥Î¦Ó¨¥¥¦¤w¸g¨¬°÷À³¥I¨Ï¥ÎªÌªº»Ý¨D¤F¡C §Ú¥i¥H³z¹L FreeBSD ±N§Úªº Win95 ¾÷¾¹³s¤W Internet ¶Ü? °ò¥»¤W¡A·|°Ý³oºØ°ÝÃDªº¤H¦b®a¸Ì¦Ü¤Ö¦³¨â¥x¹q¸£¡A¤@¥x¶] FreeBSD ¥t¥~¤@¥x¶] Win95¡F³o­Ó¥D·N¬O±N FreeBSD ¥D¾÷³s¤W Internet¡AµM«á³z¹L³o¥x FreeBSD ¥D¾÷¡AÅý¶] Win95 ªº¹q¸£¯à°÷¤Wºô¡C ³o­Ó°ÝÃDºâ¬O«e¤@­Ó°ÝÃDªº¤@­Ó¯S¨Ò¡C ³oÃ䦳­«­nªº¤å¥ó¡C±Ð§A«ç»ò§â FreeBSD ªº¥D¾÷³]©w¦¨ PPP Dialup Router¡C ª`·N¡G ¦b³oºØª¬ªp¤U§A¦Ü¤Ö­n¦³¨â­Ó¥H¤Wªº©T©w IP addresses¡A ¦³®É¬O¤T­Ó¥H¤W©Î§ó¦h²Õ IP ¦P®É¨Ï¥Î¡Aµø§Aªº»Ý¨D¦Ó©w¡C ¦pªG§A¨S¦³©T©wªº IP ¥i¥H¨Ï¥Î¡A§A¥i¥H¦Ò¼{¨Ï¥Î private IP ¤lºô¸ô¡A¨Ã¦w¸Ë proxies ¨Ò¦p SQUID ©Î¬O the TIS firewall toolkit ¦b§Aªº FreeBSD ¥D¾÷¤W¡C ¥t¥~¥i¥H°Ñ¦Ò natd ¡C ¬°¤°»ò§Ú¦b compile ISC ³Ì·sª©ªº BIND µ{¦¡®É¦Ñ¬O¥¢±Ñ? ¦b ``cdefs.h'' Àɮפ¤ªº©w¸q»P FreeBSD ¨t²Î¤¤¤ºªþ ªºÀɮשw¸q¦³©Ò½Ä¬ð¡Cª½±µ§â compat/include/sys/cdefs.h ¬å±¼´N¥i¥H¤F¡C FreeBSD ¤ä´© SLIP ©M PPP ¶Ü? ¬Oªº¡C §A¥i¥H¬d¬d man pages ¤¤Ãö©ó slattach¡Asliplogin¡A pppd ¥H¤Î ppp ªº»¡©ú¡C pppd ©M ppp ³£´£¨Ñ¼·¶i¤Î¼·¥Xªº¥\¯à¡C Sliplogin ±Mªù³B²z¦³Ãö¼·¤Jªº¥\¯à¡A¦Ó slattach ³B²z¦³Ãö¼·¥Xªº¥\¯à¡C ³o¨Çµ{¦¡¦³¸Ô²Óªº»¡©ú¡A§A¥i¥H¦b handbook¤¤§ä¨ì: SLIP (server ºÝ) ªº»¡©ú SLIP (client ºÝ) ªº»¡©ú PPP (kernel ¼Ò¦¡) ªº»¡©ú PPP (¨Ï¥ÎªÌ¼Ò¦¡) ªº»¡©ú ¦pªG§A¥u¯àÂÇ¥Ñ"shell account"ªº¤è¦¡¤Wºôªº¸Ü¡A §A¥i¯à·|·Q¬Ý¬Ý slirp ³o­Ó³nÅé¡C¥¦¥i¥HÅý§Aªº¹q¸£ª½±µ³s¤W (¬Y¨Ç) ªA°È¡A ¨Ò¦p ftp ©M http µ¥µ¥¡C FreeBSD ¤ä´© NAT ©Î Masquerading ¶Ü? ¦pªG§A¦³¤@­ÓªñºÝªº¤lºô¸ô(¦³¤@¥x¥H¤Wªº¾÷¾¹)¡A¦ý¬O§Aªº Internet provider «o¥u¤À°t¤@­Ó IP number µ¹§A (©ÎªÌ§A¥u¤À°t¨ì¤@­Ó°ÊºAªº IP number)¡A§A¥i¥H°Ñ¦Ò natd ³o­Óµ{¦¡¡C Natd Åý§A¥i¥H³z¹L³o¤@­Ó IP number Åý¾ã­Ó¤lºô¸ôªº¹q¸£³£¯à ³s¤W internet ¡C ppp ³o­Óµ{¦¡¤]´£¨ÑÃþ¦üªº¥\¯à¡A¦pªG§A¤U ³o­Ó¿ï¶µªº¸Ü¡C alias library ¦b³o¨â­Ó³B²z¤è¦¡¤¤³£·|³Q¨Ï¥Î¨ì¡C §Ú¨S¦³¿ìªk«Ø¥ß /dev/ed0 ³o­Ó device! ¦b Berkeley ºô¸ô¬[ºc¤¤¡A¥u¦³ kernel µ{¦¡½X¥i¥Hª½±µ¦s¨úºô¸ô¬É­±¥d¡C ½Ð°Ñ¦Ò /etc/rc.network ³o­ÓÀɮשM manual pages ¨ú±o»P¨ä¥L¤£¦Pºô¸ôµ{¦¡ §ó¶i¤@¨Bªº¸ê°T¡C¦pªG§Aı±o§A§¹¥þ·d²V¤Fªº¸Ü¡A±zÀ³¸Ó§ä¤@¥»»P¨ä¥L BSD ¬ÛÃö §@·~¨t²Îºô¸ôºÞ²z¦³Ãö®Ñ¨Ó°Ñ¦Ò¡F°£¤F¤Ö¼ÆÅãµÛªº¤£¦P¥~¡AFreeBSD ªººô¸ôºÞ²z °ò¥»¤W©M SunOS 4.0 ©M Ultrix ¬O¤@¼Ëªº¡C §Ú¦p¦ó«Ø¥ß Ethernet aliases? §â ``netmask 0xffffffff'' ¥[¨ì§Aªº ifconfig ©R¥O¦C¤¤¡A¨Ò¦p¡G ifconfig ed0 alias 204.141.95.2 netmask 0xffffffff §Ú¦p¦ó«ü©w§Úªº 3C503 ¨Ï¥Î¨ä¥L¤£¦Pªºªº network port? ¦pªG±z·Q¨Ï¥Î¨ä¥Lªº port¡A§A¥²¶·¦b ifconfig ªº©R¥O¤¤«ü©wÃB¥~ªº°Ñ¼Æ. ¤º©wªº port ¬O ``link0''¡C­n¨Ï¥Î AUI port ¥N´À BNC port ªº¸Ü¡A§ï¥Î ``link2''¡C³o¨Ç flags À³¸Ó§ïÅÜ ifconfig_* ªºÅܼƨӫü©w¡A§A¥i¥H¦b³o­ÓÀɮ׸̭±§ä¨ì /etc/rc.conf. §Ú¦b³s¤W/¿é¥X FreeBSD ªº NFS ®É¥X²{°ÝÃD. ¬Y¨Ç PC ªººô¸ô¥d¤ñ¨ä¥Lªº¦n(§t»Wªº»¡¨Ó) ³oºØª¬ªp¦b³y¦¨ NFS ³oºØ¹ïºô¸ô±Ó·Pªºµ{¦¡¦³®É·|¥X²{°ÝÃD. °Ñ¦Ò the Handbook entry on NFS ¥HÀò±o³o­Ó¥DÃDªº§ó¦h¸ê°T. ¬°¤°»ò§Ú¤£¯à NFS-mount Linux ªº¾÷¾¹? ¬Y¨Çª©¥»ªº Linux NFS µ{¦¡½X¥u±µ¨ü privileged port ªº mount request ; ¸Õ¥Î³o¦æ«ü¥O¬Ý¬Ý mount -o -P linuxbox:/blah /mnt ¬°¤°»ò§Ú¤£¯à NFS-mount Sun ªº¾÷¾¹? ¶] SunOS 4.X ªº Sun ¤u§@¯¸¥u±µ¨ü¨Ó¦Û privileged port ªº mount request ; ¸Õ¥Î³o¦æ«ü¥O¬Ý¬Ý mount -o -P sunbox:/blah /mnt §Ú¦b¨Ï¥Î PPP ³s½u¨ì NeXTStep ¾÷¾¹®É¦³°ÝÃD. §â TCP extensions ¨ú®ø¡A³o­Ó³]©w¦b /etc/rc.conf ¸Ì­±. §â¥H¤U³o­Ó­È³]¦¨ NO¡G tcp_extensions=NO Xylogic ªº Annex ¥D¾÷¤]¦³¬Û¦Pªº°ÝÃD¡A±z­n°µ¬Û¦Pªº­×§ï¤~¯à³s¤W ³o¨Ç¥D¾÷¡C §Ú­n«ç¼Ë¤~¯à§â IP multicast support ¥´¶}? FreeBSD 2.0 ¥H«áªºª©¥»¤º©w³£¦³ ¤ä´© Multicast host ¾Þ§@¡C¦pªG±z·Q±N±zªº¥D¾÷³]©w¦¨ multicast router ªº¸Ü¡A±z¥²¶·­«·s compile ±zªº kernel¡A¥[¤J MROUTING ªº¿ï¶µ¡A¨Ã¥B°õ¦æ mrouted¡C¦pªG±zªº/etc/rc.conf ¸Ì­±ªº mrouted_enable ³o­Ó°Ñ¼Æ¬O³]©w¦¨"YES" ªº¸Ü.FreeBSD 2.2 ¤Î¤§«áªº ª©¥»·|¦b¶}¾÷®É°õ¦æ mrouted¡C MBONE ªº¦UºØ¤u¨ã¥i¥H¦b¥L­Ì ports ¤U©ÒÄÝ¥s°µ mbone¥Ø¿ý¤¤§ä¨ì¡C ¦pªG±z¦b§äµø°T·|ijªº¤u¨ã¦p vic ©M vat ªº¸Ü¡A ¨ì¨ºÃä§ä§ä¡I ¦pªG»Ý­n§ó¶i¤@³¡ªº°T®§¡A¥i¨ì Mbone Information Web´M§ä¡C ­þ¨Çºô¸ô¥d¬O¨Ï¥Î DEC PCI chipset? ¥H¤U¬O Glen Foster´£¨Ñªº²M³æ: Vendor Model ---------------------------------------------- ASUS PCI-L101-TB Accton ENI1203 Cogent EM960PCI Compex ENET32-PCI D-Link DE-530 Dayna DP1203, DP2100 DEC DE435, DE450 Danpex EN-9400P3 JCIS Condor JC1260 Linksys EtherPCI Mylex LNP101 SMC EtherPower 10/100 (Model 9332) SMC EtherPower (Model 8432) TopWare TE-3500P Zynx ZX342 ¬°¤°»ò­n¥Î FQDN ¤~¯à³s¨ì¨ä¥L¾÷¾¹¡H §A¤]³\·|µo²{­n³sªº¾÷¾¹¨ä¹ê¬O¦b¥t¤@­Óºô°ì¡CÁ|­Ó¨Ò¤l¡A°²³]§A¬O¦b foo.bar.edu ³o­Óºô°ì¤¤¡A·Q­n³s¨ì¦b bar.edu ¸Ì¤@¥x¥s ``mumble'' ªº ¾÷¾¹¡A«h¥²¶·¥Î Fully-Qualified Domain Name¡A¤]´N¬O ``mumble.bar.edu''¡A¦Ó¤£¬O¥u¥Î ``mumble'' ¨Ó«ü¦V¥¦¡C ¶Ç²Îªº BSD BIND resolver ¤¹³\¥Î³oºØ¤è¦¡¸Ñ¥X¾÷¾¹ªº¦ì§}¡A¦ý¬O FreeBSD ¤ºªþ bind ª©¥» ªº¤º©w¤è¦¡¡A«h¬O°£¤F§A©Ò¦bªººô°ì¥H¥~¡A¤£¤ä´©¨ä¥L«D FQDN ªºÁY¼g¡C ©Ò¥H¦p mumble ³oºØ¤£¦X®æªº¾÷¾¹¦WºÙ¡A¥²¶·¦b mumble.foo.bar.edu¡A§_«h´N·|±qºô°ìªº³Ì©³¼h¶}©l§ä¡C ³o©M¥ý«eªº°µªk¤£¦P¡A¤]´N¬O¤£¥Î mumble.bar.edu ©M mumble.edu Ä~Äò·j´M¡C¬Ý¤@¤U RFC 1535¡A¸Ì­±¦³´£¨ì¬°¤°»ò¤§ «eªº°µªk¤£¦n¡A¬Æ¦Üºâ¬O­Ó¦w¥þº|¬}¡C ³o¸Ì¦³­Ó¤£¿ùªº¸Ñªk¡A§â /etc/resolv.conf ¸Ìªº³o¤@¦æ¡G domain foo.bar.edu ´«¦¨³o¤@¦æ¡G search foo.bar.edu bar.edu ¦ý¬O­n½T©w·j´M¶¶§Ç¤£·|¹H¤Ï RFC 2535 ©Ò¿×ªº ``boundary between local and public administration''¡C ©Ò¦³ºô¸ô°Ê§@³£·|¥X²{ ``Permission denied'' ¿ù»~°T®§ ¦pªG¦b½sĶ kernel ®É¥[¤F IPFIREWALL ³o­Ó¿ï¶µ¡A­n¾å±o 2.1.7R ¤º©w¬O©Úµ´©Ò¦³¥¼¸g®Ö­ãªººô¸ô«Ê¥](¦ý¦b¶}µo 2.1-STABLE ®É§ï±¼¤F)¡C ¦pªG¤£¤p¤ß§Ë¿ù¤F firewall ªº³]©w¡A¥H root ¨­¥÷°õ¦æ³o­Ó©R¥O¡A±µµÛ ºô¸ô¥\¯à´N·|¥¿±`¡G ipfw add 65534 allow all from any to any ¤]¥i¥H¦b /etc/rc.conf ³] "firewall_type='open'" ³o­Ó¿ï¶µ¡C ¦pªG·Qª¾¹D¦p¦ó³]©w FreeBSD firewall¡A½Ð¬Ý Handbook ¬ÛÃö³¡¥÷¡C IPFW ·|³y¦¨¦h¤jªººô¸ô©µ¿ð¡H ³o­Ó°ÝÃDªºµª®×¤j¦h­n¬Ý§A«ç»ò­q firewall ³W«h¡BÁÙ¦³ CPU ³t«×¡C¹ï¤j ¦h¼Æ¦b ethernet ¤Wªºµ{¦¡¤Î³W«h¤£¦hªº±¡ªp¤U¡A©µ¿ð¤p¨ì¥i¥H©¿²¤¡C¦ý¦pªG §A·Q­nºë½T¼Æ¦r¨Óº¡¨¬¦n©_¤ß¡AÄ~Äò©¹¤UŪ¡C ¤U­±¬O¦b 486-66 2.2.5-STABLE ¤W©Ò§@ªº´ú¶q¡A§Ú­Ì­×§ï¤F IPFW ­ì©l½X ¨Ó´ú¶q¦b ip_fw_chk ¨ç¦¡¤W©Òªáªº®É¶¡¡A¨C³B²z 1000 ­Ó«Ê¥]«á´N·|¦b console ¤WÅã¥Üµ²ªG¡C ´ú¸Õ¤F¨â²Õ¡A¨C²Õ¦U¦³ 1000 ­Ó³W«h¡C²Ä¤@²Õ­«½Æ¤U­±³W«h¡A¬G·N³]­p¦¨ ³ÌÁVªº±¡ªp¡G ipfw add deny tcp from any to any 55555 ÂÇ¥ÑÀˬd port number¡A³o¼Ë·|¨Ï IPFW ¦b¨M©w¬Y­Ó«Ê¥]¤£²Å¦X±ø¥ó«e°õ ¦æ¤j³¡¥÷ªºÀˬdµ{¦¡¡A¦]¦¹³y¦¨³Ì®tªºª¬ªp¡C¦b­«½Æ³o­Ó³W«h 999 ¦¸«á¡A±µ µÛ¬O allow ip from any to any¡C ²Ä¤G²Õ³]­p¦¨¥H·¥§Öªº³t«×¸õ¹LÀˬd³W«h¡G ipfw add deny ip from 1.2.3.4 to 1.2.3.4 ¤@¸I¨ì«Ê¥]ªº¨Ó·½¤£²Å¦X³W«h©Ò­z¡A·|«Ü§Ö¸õ¹LÀˬdÅý«Ê¥]³q¹L¡C©M¤W­± ¤@¼Ë¡A²Ä 1000 ­Ó³W«h¬O allow ip from any to any¡C ¦b²Ä¤@ºØ±¡ªp¤¤¡A³B²z¨C¤@­Ó«Ê¥]©Ò³y¦¨ªº©µ¿ð¤j¬ù¬O 2.703 ms¡A©Ò¥H¨C ­Ó³W«h¤j·§·|³y¦¨ 2.7 microsecond ªº©µ¿ð¡C©Ò¥H¦b³o¨Ç³W«h¤§¤U¡A²z½×¤W¨C ¬í³Ì¦h¥i¥H³B²z 370 ­Ó«Ê¥]¡C¦b 10Mbps ethernet ©M¤@­Ó«Ê¥]¤j·§ 1500 byte ªº°²³]¤U¡A¤j·§¥u·|¥Î¨ì 55.5% ªººô¸ôÀW¼e¡C ²Ä¤GºØ±¡ªp¡A¨C­Ó«Ê¥]ªá¤F¤j¬ù 1.172ms¡A©Ò¥H¨C±ø³W«h¤j¬ù¥Î¤F 1.2 microsecond¡C²z½×¤W¨C¬í³Ì¦h¥i¥H³B²z 853 ­Ó«Ê¥]¡A¯ÓºÉ 10Mbps ªºÀW¼e¡C ¤W­±´ú¸Õ¥Î¨ìªº¤j¶q³W«h¡B¤Î³o¨Ç³W«h¥»¨­¨Ã¤£¥Nªí¯u¹ê¥@¬Éªº±¡ªp¡A¥L­Ì ¥u¬O¥Î¨Ó²£¥Í©Òªí¥Üªº¼Æ¾Ú¡C­Y·Q­n­q¥X¤@®M¦³®Ä²vªº³W«h¡A°O±o³o´X¥ó¨Æ¡G ¦b³Ì«e­±©ñ¤@­Ó±Mªù³B²z¤j¶q TCP ¬y¶qªº¥i¥Î³W«h¡A¦b³o±ø«e­±¤£ ­n©ñ¥ô¦ó allow tcp ªº¬ÛÃö±Ô­z¡C §â±`±`IJµoªº³W«h©ñ¦b«e­±¡A¤£±`¥Î¨ìªº«h¥á¨ì«á­±(·íµM¦b¤£ ¼vÅT firewall ¥X¤J¤¹³\³]©wªº«e´£¤U)¡C°õ¦æ ipfw -a l ´N¥i¬Ý¨ì«Ê¥]ªº²Î­p¼Æ¥Ø¡A¨Ó¬Ý³Ì±`¥Î¨ì­þ¨Ç³W«h¡C ­n¦p¦ó§â¹ï¬Y¥x¾÷¾¹ªººô¸ôªA°È­n¨D(service request)Âà¦V¨ì¥t¤@¥x¡H ¦b ports ¥Ø¿ýªº sysutils ºØÃþ¤¤¦³­Ó¥s 'socket' ªº package¡A¥i¥HÀ° §AÂà¦V FTP ©Î¨ä¥LÃþ¦üªººô¸ôªA°È¡C¥u­n§â¸Óºô¸ôªA°Èªº©R¥O§ï¦¨©I¥s socket §Y¥i¡A¦p¤U(¦b /etc/inetd.conf ¸Ì)¡G ftp stream tcp nowait nobody /usr/local/bin/socket socket ftp.foo.com ftp ¨ä¤¤ 'ftp.foo.com' ©M 'ftp' ¤À§O¬O³QÂà¨ìªº¾÷¾¹©M port ¦WºÙ¡C ¨º¸Ì¥i¥H§ä¨ìºÞ²zÀW¼eªº¤u¨ã¡H FreeBSD ¤W¦³¨â®MÀW¼eºÞ²z¤u¨ã¡G ALTQ ¥i¥H§K¶O¨Ï¥Î¡A Emerging Technologies ¥Xªº Bandwidth Manager «h¬O°Ó¥Î³nÅé¡C «ç»ò·|¶]¥X ``/dev/bpf0: device not configured'' ³o­Ó°T®§¡H ¬f§JµÜ«Ê¥]¹LÂo¾¹(Berkeley Packet Filter) (bpf) ¦bµ{¦¡¨Ï¥Î«e¥²¶·¦b kernel ¥´¶}¥¦ªºÅX°Êµ{¦¡¡A§â¤U­±³o¤@¦æ¥[¤J kernel ³]©wÀɤ¤¡A½s­Ó·sªº kernel¡G pseudo-device bpfilter # Berkeley Packet Filter+ ¦b­«·s¶}¾÷¤§«á¡AÁÙ­n°µ¥X device node¡A¦b /dev ¤U°õ¦æ¡G # sh MAKEDEV bpf0 ¦pªG·Q­n§ó¶i¤@¨Bª¾¹D¦p¦ó°µ¥X¦UºØ device node¡A½Ð¬Ý handbook ¤¤¦³Ãö device node ªº»¡©ú¡C PPP §Ú¤£¯à¨Ï¥Î ppp¡A§Ú°µ¿ù¤F¤°»ò¶Ü ? §AÀ³¸Ó¥ý¬Ý¬Ý ppp man page ©M ppp ¨Ï¥Î»¡©ú¡C¨Ï¥Î¥H¤U«ü¥O¨Ó¥´¶}°O¿ý (logging) ªº¥\¯à set log Phase Chat Connect Carrier lcp ipcp ccp command ³o­Ó©R¥O¥i¥H¦b ppp command prompt ©ÎªÌ¬O¦b /etc/ppp/ppp.conf ²ÕºAÀɮפ¤¥[¤J¡C (¥[¦b default section ªº¶}ÀY³Ì¦n). ½T©w¦b /etc/syslog.conf ¸Ì­±¦³³o»ò¤@¦æ: !ppp *.* /var/log/ppp.log ¦Ó¥B/var/log/ppp.log ³o­ÓÀɮצs¦b¡C ¦p¦¹¤@¨Ó §A¥i¥H±q log Àɮפ¤ª¾¹D¨ì©³µo¥Í¤F¤°»ò¨Æ±¡¡C ¥ý¤£¥Î¾á¤ßÀɮתº¤º®e§A¬Ý¤£À´¡A¦pªG§A­n¦V¤H¨D±Ïªº¸Ü ¡A±Ï§Aªº¤H·|¬Ý±oÀ´ªº¡C ¦pªG§A¨t²Î¤Wªº¨º¥÷ ppp ¤£´£¨Ñ "set log" ªº«ü¥Oªº¸Ü¡A§AÀ³¸Ó¥h¤U¸ü ³Ì·sª©¥»¡C ³o­Óª©¥»¦b FreeBSD 2.1.5 ¥H¤Wªºª©¥»³£¥i¥H¨Ï¥Î¡C §Ú¤@°õ¦æ ppp¡A¥¦´N±¾¦b¨ºÃ䤣°Ê¤F ·|µo¥Í³oºØ±¡§Î³q±`¬O§Aªº hostname ¨S¦³¿ìªk¸Ñ¥X¨Ó¡C¸Ñ¨M³o­Ó°ÝÃD ³Ì¦nªº¿ìªk¬O½T©w /etc/hosts ·|³Q§Aªº resolver ²Ä¤@­Ó°Ñ¦Ò¨ì¡C §A¥i¥H­×§ï/etc/host.conf ¨Ã¥B§âhosts ©ñ¨ì³Ì«e­±¡C±µµÛ¡A¥u­n§â§Aªº¾÷¾¹¦WºÙ©ñ¨ì /etc/hosts ¸Ì­±´N¥i¥H¤F¡C¦pªG§A¨S¦³ local network ªº¸Ü¡A­×§ï localhost ³o¤@¦æ¡G 127.0.0.1 foo.bar.com foo localhost §_«h¡A´N§â§A¥D¾÷ªº¸ê°T¥[¤JÀɮפ¤¡C§A¥i¥H°Ñ¦Ò¬ÛÃöªº man pages ¥HÀò±o¶i¤@¨Bªº¸ê°T¡C ¦pªG§A¶¶§Qªº§¹¦¨³o¨Ç°Ê§@¡A§AÀ³¸Ó¥i¥H¦¨¥\ªº°õ¦æ ping -c1 `hostname` ¡C Ppp ¦b -auto ¼Ò¦¡¤U¤£¯à¼·¸¹ ­º¥ý½T©w§Aªº¤º©w¸ô¥Ñ (default route) ¬O§_¦³³]©w¡C¤U netstat -rn ³o­Ó«ü¥O¡A§AÀ³¸Ó¯à°÷¬Ý¨ì¦p¥H¤U½d¨Òªº¨â­Ó entries¡G Destination Gateway Flags Refs Use Netif Expire default 10.0.0.2 UGSc 0 0 tun0 10.0.0.2 10.0.0.1 UH 0 0 tun0 ³o¨Ç³]©w¬O°²³]±z¨Ï¥Îªº address ¸ò handbook ¸Ì­±ªº¡B©Î¬O man page ªº½d¨Ò¡B©ÎªÌ©M ppp.conf.sample ¸Ìªº³]©w¬Û¦P¡C¦pªG±z¨S¦³³]©w default route¡A¨º»ò¦³¥i¯à±z²{¦b¨Ï¥Îª©¥»ªº ppp¡Aªº ppp ·|¬Ý¤£À´ ppp.conf ¸Ìªº HISADDR¡C¦pªG±zªº¨t²Î ppp ¬O¦b FreeBSD 2.2.5 ¤§«eªº¸Ü¡A­×§ï³o¤@¦æ add 0 0 HISADDR ¦¨¬° add 0 0 10.0.0.2 default route ³o¦æ¨S¦³¥X²{ªº¥t¤@­Ó­ì¦]¬O§A³]¿ù¤F default router¡A³o­Ó³]©w¦b /etc/rc.conf Àɮפ¤(³o­ÓÀɮצb release 2.2.2 «e¥s /etc/sysconfig)¡A§A»Ý­n¦b ppp.conf ¤¤¥[¤J³o »ò¤@¦æ delete ALL ¦pªGµo¥Í³oºØ±¡§Î¡A¦^¨ì handbook userppp ³Ì«á³]©w ªº»¡©ú¤¤¬d¸ß¡C ¤°»ò¥s°µ "No route to host" ³o­Óª¬ªp³q±`¬O¦]¬°¯Ê¤Ö¤F³o¬q³]©w MYADDR: delete ALL add 0 0 HISADDR ½ÐÀˬd±zªº /etc/ppp/ppp.linkup Àɮפ¤¬O§_¦³³o¨Ç³]©w¡C ¥u¦³¦b±z¨Ï¥Î°ÊºA IP(dynamic IP) ©Î¤£ª¾¹D±z gateway ªº IP ®É¤~»Ý­n ³]©w³o­Ó¡C¦pªG±z¬O¨Ï¥Î interactive mode ªº¸Ü¡A±z¥i¥H¦b¶i¤J packet mode «á¿é¤J¦p¤U©R¥O(¦pªG ppp ´£¥Ü²Å¸¹Åܦ¨¤j¼gªº PPP¡A«K¥Nªí¤w ¸g¶i¤J packet mode)¡G delete ALL add 0 0 HISADDR ±z¥i¥H°Ñ¦Ò handbook ¤¤ PPP ©M°ÊºA IP ¦ì§} ªº³¡¥÷¡A¦³¸û¸ÔºÉªº»¡©ú¡C §Úªº³s½u¦b¤T¤ÀÄÁ«á¦Û°ÊÂ_±¼¤F ppp ¹w³]ªº timeout ­È¬O¤T¤ÀÄÁ¡C¥i¥H¥Î¥H¤U³o¦æ©R¥O½Õ¾ã set timeout NNN ³o¥Nªí¦pªG¦b NNN ¬í¤ººô¸ô³£¨S¦³°ÊÀRªº¸Ü¡Appp ´N·|¦Û°ÊÃö³¬ ³s½u¡C¦pªG NNN ³]¦¨ 0¡A¨º»ò±N¤£·|¦]¬°¨S¦³¸ê®Æ¨Ó©¹¦ÓÃö³¬³s½u¡C §A¥i¥H§â³o¦æ©R¥O©ñ¨ì ppp.conf ³o­ÓÀɮ׸̭±¡A©Î¬O¦b interactive mode ¸Ì­±¿é¤J³o­Ó«ü¥O¡A¤]¥i¥H¥Î telnet ©Î pppctl ³s¨ì ppps ¦øªA¾¹ªº socket¡A¦b³s½u«áÀH®É½Õ¾ã timeout ªº­È¡C°Ñ¦Ò ppp man page ¥HÀò±o§ó¸ÔºÉªº¸ê®Æ. §Úªº³s½u¦]¬°­t²ü¤Ó­«¦ÓÂ_½u ¦pªG±z³]©w­n¥Î Link Quality Reporting(LQR)¡A±z©M¹ï¤è¥D¾÷¤§¶¡´N ¦³¥i¯à¿ò¥¢¤Ó¦hªº LQR «Ê¥]¡CPpp ·|¦]¦¹§PÂ_¹q¸Ü½u¸ô¦³°ÝÃD¡AµM«á´N·| ¤ÁÂ_³s½u¡C¦b FreeBSD 2.2.5 ª©¥H«e¡A¤º©w·|¨Ï¥Î LQR¡A²{¦bªº¤º©w­È¬O ¤£¥Î¡CLQR ¥i¥H¥Î³o¤@¦æ©R¥O¨ú®ø disable lqr ppp ·|¤£©w®ÉªºÂ_½u ¦³®É­Ô¦pªG½u¸ô¤W¦³¤Ó¦hÂø°T¡A¬Æ¦Ü¦pªG±z¨Ï¥Î¤F¹q¸Ü´¡¼·ªA°Èªº¸Ü¡A ±zªº¼Æ¾Ú¾÷±N·|±¾Â_¹q¸Ü¡A¦]¬°¥¦»~»{³o¨Ç°T®§¬O lost carrier¡C ¤j³¡¤Àªº¼Æ¾Ú¾÷³£¦³®e§Ô¼È®É¥¢¥h carrier ªº³]©w¡C¥H USR Sportster ¬°¨Ò¡A¥¢¥h carrier ©M±¾Â_¹q¸Ü¤§¶¡ªº®É¶¡¡A¬O¥H 1/10 ¬í¬°³æ¦ì¦s¦b S10 ¼È¦s¾¹¤¤¡C¦pªG­nÅý±zªº¼Æ¾Ú¾÷¯à®e§Ô§óªøªº®É¶¡¡A§A¥i¥H¦b dial string ¸Ì­±¥[¤J¥H¤U "°e¥X©R¥O - µ¥«Ý¦r¦ê" ªº³¡¥÷¡G set dial "...... ATS10=10 OK ......" °Ñ¦Ò¼Æ¾Ú¾÷¤ºªþªº»¡©ú®Ñ¥H¨ú±o§ó¸Ô²Óªº¸ê®Æ¡C ³s½u·|¤£©w®É·í±¼ ³\¦h¤Hªº³s½u·|²@µL¨Ó¥Ñªº¥d¦í¡A­º¥ý­n°µªº¬O§ä¥X³s½u¨º¤@¤è·í±¼¡C ¦pªG¥Îªº¬O¥~±µ¼Æ¾Ú¾÷¡A´N¥Î ping ¨Ó¬Ý¦b¶Ç¸ê®Æ®É¡ATD ¿O¸¹ ·|¤£·|°{¡C¦pªG·|ªº¸Ü¡]¨Ã¥B RD ¤£·|°{¡^¡A¥Nªí¬O¹ï¤è¥X°ÝÃD¡F¦pªG ¤£·|¡A«h¬O¦Û¤vªº°ÝÃD¡C¦pªG¥Î¤º±µ¼Æ¾Ú¾÷¡A¥ý¦b ppp.conf ¤¤¥[¤J set server ³o¹D«ü¥O¡A·í³s½u·í±¼®É¡A°õ¦æ pppctl ³s¨ì ppp¡C¦pªGºô ¸ô³s½u¬ðµM¦n¤F¡]¦]¬° ppp ¬Ý¨ì¥Î¨Ó¶EÂ_°ÝÃDªº socket¡^©ÎµLªk³s¤W¡]°²³] ¦b¤@¶}©l¥i¥H°õ¦æ set socket ³o¹D«ü¥O¡^¡Aªí¥Ü¥»¦a¥X°ÝÃD¡C¦pªG³s ±o¤W ppp «o¤´µM¤£¯à¥Î¡A¥Î set log local async ¥´¶}¥»¦aªº«D¦P¨B °O¿ý¡A±µµÛ¦b¥t¤@­Óµøµ¡¡]©Î²×ºÝ¾÷¡^°õ¦æ ping ¦b³s½u¤W¶Ç°e¸ê®Æ¡C «D¦P¨B°O¿ýªº¥\¯à·|¦P®ÉÅã¥Ü°e¥X©M±µ¦¬ªº¸ê®Æ¡A¦pªG¸ê®Æ¥u¥X¤£¶i¡A´N¬O¹ï ¤è¾÷¾¹¥X°ÝÃD¡C ª¾¹D¬O¥»¦a©Î¹ï¤è¥X°ÝÃD«á¡A´N¦³¨âºØ¥i¯à¡G ¹ï¤èªº¾÷¾¹¨S¦³¦^À³ ¦b³o¤è­±¯à§@ªº¬Û·í¦³­­¡A¤j³¡¥÷ªº ISP ·|¦]¬°§A¤£¬O¥Î Microsoft §@·~¨t²Î¦Ó¤£Ä@À°¦£¡C¥i¥H¦b ppp.conf ¤¤¥[¤J enable lqr¡A ¤¹³\ ppp °»´ú¹ï¤èªº¿ù»~¦Ó±¾Â_¡A¦ý³o­Ó¹Lµ{¬Û·íºC¡A©Ò¥H¤£¤j¹ê¥Î¡C¤] ³\¤£·Q§i¶D ISP §A¬O¥Î user-ppp ¤W½uªº.... ­º¥ý¡A¥Î¤U­±¨â¹D©R¥OÃö±¼©Ò¦³¥»¦aªºÀ£ÁY¥\¯à¡G disable pred1 deflate deflate24 protocomp acfcomp shortseq vj deny pred1 deflate deflate24 protocomp acfcomp shortseq vj µM«á­«·s³s½u¡A½T©w³o¼Ë¤£·|¦³©Ò¤£¦P¡C¦pªG¤Ï¦Ó¦³¶i¨B©Î¬Æ¦Ü±N°ÝÃD ¸Ñ¨M±¼¡A´N¥Î¸Õ»~ªk¨Ó§ä¥X¬O¨º­Ó³]©w³y¦¨ªº¡C³o¼Ë¦bÁpµ¸ ISP ®É´N¥i¥H ´£¨Ñ¬Û·í¦³¥Îªº¸ê®Æ¡]ÁöµM·|«Ü®e©ö¬Ý¥X§A¤£¬O¥Î Microsoft ªº²£«~¡^¡C ¦bÁpµ¸ ISP ¤§«e¡A¥´¶}¥»¦aªº«D¦P¨B°O¿ý¥\¯à¡A±µµÛ´Nµ¥³s½u¦A«×·í±¼¡A ³o¥i¯à·|¥Î¨ì¬Û·í¤jªºµwºÐªÅ¶¡¡C³Ì«á±q³s±µ°ðŪ¶iªº¸ê®Æ¥i¯à·|¬Û·í¦³¥Î¡A ¥¦³q±`¬O ASCII ¤å¦r¡A¬Æ¦Ü¦³¥i¯à·|»¡©ú°ÝÃD¥X¦b¨º¸Ì(``Memory fault¡A core dumped''?)¡C ¦pªG ISP Ä@·N¨ó§Uªº¸Ü¡AÀ³¸Ó·|¦b¥L­Ì¨º¤@ºÝ¤]¥´¶}°O¿ý¥\¯à¡A¨º»ò¦b ¤U¦¸³s½u·í±¼®É¡A´N¥i¥H§i¶D§A¬°¦ó·|¥X°ÝÃD¡C«ÜÅwªï±N¸Ô²Ó¤º®e°e¨ì brian@Awfulhak.org¡A¬Æ¦Ü­n ¨D ISP ª½±µ¦V§Ú³sµ¸¡C ¦Û¤vªº Ppp ·í±¼¤F ³o¸Ì¯à°µªº³Ì¦h´N¬O­«·s½sĶ ppp¡G¦b Makefile ³Ì«á­±¥[¤W CFLAGS+=-g ©M STRIP=¡A±µµÛ°µ make clean && make && make install¡C¦b ppp ·í ±¼®É¡A¥ý¥Î ps ajxww |fgrep ppp §ä¥X ppp ªº process id¡AµM«á°õ ¦æ gdb ppp PID¡C¦b gdb ´£¥Ü²Å¸¹¤U¡A¥i¥H¥Î bt §ä¥X stack trace¡C ±Nµ²ªG°e¨ì brian@Awfulhak.org. ¦b¬Ý¨ì Login OK! ªº°T®§¥H«á´N¨S¦³¤ÏÀ³¤F ¦b FreeBSD 2.2.5 ¥H«eªºª©¥»¤W¡A¤@¥¹³s½u«Ø¥ß§¹¦¨¥H«á¡A ppp ·|µ¥¹ï¤èªº¾÷¾¹±Ò°Ê Line Control Protocol (LCP)¡C«Ü¦h ISP ¤£·|¦Û°Ê ±Ò°Ê¡A¦Ó¬Oµ¥«Ý¥Ñ client ºÝ¨Ó±Ò°Ê¡C­n±j­¢ ppp ¥D°Ê±Ò°Ê LCP¡A½Ð °õ¦æ³o­Ó©R¥O¡G set openmode active Note: ³q±`¦pªG¨âÃä³£±Ò°Ê°T®§¥æ´«ªº¸Ü¡A³q±`¤£·|³y¦¨¥ô¦ó°Æ§@ ¥Î¡A©Ò¥H openmode ¥Ø«e¤º©w¬O¥´¶}ªº¡CµM¦Ó¡A¤U¤@¬q±N¸ÑÄÀ¦b¤°»òª¬ªp¤U ³o¼Ë³]©w ¯uªº ·|³y¦¨°Æ§@¥Î¡C §Ú¤@ª½¬Ý¨ì magic being the same ªº¿ù»~°T®§ ¦³®É´N¦b³s¤W¤§«á¡A¦b°O¿ýÀÉ·|¬Ý¨ì "magic is the same" ªº°T®§¡C³q ±`³o¨Ç¬OµL®`ªº¡A¦³®É­Ô¬Y¤@ºÝ«h·|Â_½u¡C¤j¦h¼Æªº ppp ¹ê§@µLªk¸Ñ¨M³o­Ó °ÝÃD¡A´Nºâ¦ü¥G³s¤W¤F¡A¦b°O¿ýÀɤ]¥i¥H¬Ý¨ì¤@ª½­«½Æªº configure request ©M configure acknowledgement ¤§Ãþªº·¾³q°T®§¡Appp ³Ì«á·|©ñ±ó¦ÓÃö±¼³s ½u¡C ·|µo¥Í³oºØ°ÝÃDªº³q±`±¡ªp¬O¡A¦øªA¾¹¥Î³t«×ºCªºµwºÐ¡B¦b³q°T°ð¤W°õ¦æ getty¡B¨Ã¥Bµ¥¨ì¨Ï¥ÎªÌµn¤J«á¤~¥Î script ©Îµ{¦¡°õ¦æ ppp¡F¤]¦³Å¥»¡¥Î slirp ´N¤@©w·|µo¥ÍÃþ¦ü°ÝÃDªº³ø§i¡C­ì¦]¬O¦b getty µ²§ô©M ppp ¶}©l°õ¦æ ªº³o¬q®É¶¡¤º¡Aclient ºÝªº ppp ¶}©l°e¥X Line Control Protocol(LCP) «Ê ¥]¡A¥Ñ©ó¦øªA¾¹³q°T°ðªº ECHO ¤´¦b¥´¶}ª¬ºA¡Aclient ºÝªº ppp ´N·|¬Ý¨ì°e ¥X¥hªº«Ê¥]³Q "¤Ï¼u" ¦^¨Ó¡C ¦b¥Î LCP ·¾³q®É¡A¦³³¡¥÷¬O­n³s½u¨âÃä¤À§O«Ø¥ß¦Û¤vªº magic number¡A ¨Ó°»´ú¤ÎÁ×§K«Ê¥]³Q "¤Ï¼u" ¦^¨Óªºª¬ªp¡C¨ó©w¼Ð·Ç¤¤»¡·í¹ï¤è¸Õ¹Ï¥Î©M¦Û¤v ¬Û¦Pªº magic number ·¾³q®É¡A­n°eµ¹¹ï¤è¤@­Ó NAK ªº°T¸¹¡]ªí¥Ü¤£±µ¨ü¡^¡A ±µµÛ¹ï¤è´N·|¿ï¥t¤@­Ó¼Æ¦r¡C¦ý¦b¦øªA¾¹³q°T°ð ECHO ¤´¥´¶}ªº³o¬q´Á¶¡¡A client ºÝªº ppp °e¥X LCP «Ê¥]¡A¬Ý¨ì¬Û¦Pªº magic number¡A©ó¬O°e¥X NAK °T¸¹¡C³o­Ó NAK ¤]·|³Q "¤Ï¼u" ¦^¨Ó¡A³Q»~»{¥Ñ¹ï¤è°e¥X¡A¦]¦¹ client ºÝ·|§ïÅܦۤvªº magic number¡C³o¼Ë magic number ªºÅܰʦ¸¼Æ·|«D±`¦a¦h¡A ¨Ã¥B¤]¥þ³£¦s¦b¹ï¤èªº²×ºÝ¾÷½w½Ä°Ï¤¤¡C·í¦øªA¾¹±Ò°Ê ppp ®É¡A¥¦°¨¤W´N ³Q magic number ªº¤j¶q§ó°Ê©Ò²T¨S¡A¨Ã¥B¡]´X¥G¬O¥ß¨è¡^¨M©w¤w¸g¸Õ°÷¤F LCP ¦Ó©ñ±ó¡F¦b³o´Á¶¡¡Aclient ºÝÁöµM¦A¤]¬Ý¤£¨ì³Q¤Ï¼uªº«Ê¥]¡A¦ý«o¨Ó±o ¤Î¬Ý¨ì¦øªA¾¹§â¹q¸Ü½u±¾±¼¡C ¤¹³\Åý¹ï¤è¨Ó§@ LCP ·¾³q¥i¥HÁ×§K³oºØ±¡§Î¡A¦b ppp.conf ¤¤¥[¤U­±³o ¤@¦æ¡G set openmode passive ³o¦æ§i¶D ppp ¥Ñ¹ï¤è¨Ó±Ò°Ê LCP¡A¤£¹L¦³¨Ç¦øªA¾¹¥Ã»·³£¤£·|¥D°Ê·¾³q ¡A¦b³oºØ±¡ªp¤U¡A¥i¥H³o»ò³]©w¡G set openmode active 3 ³o¬O­n ppp µ¥­Ó¤T¬íÄÁ¡AµM«á¦A¶}©l°e LCP ¬ÛÃö­n¨D¡C¦pªG¹ï¤è¦b³o ¬q®É¶¡°e¥X LCP «Ê¥]¡Appp ´N¤£·|µ¥¨¬¤T¬í¦Ó¥ß¨è¦^À³¡C LCP ªº·¾³q¤@ª½¨ì³s½uÃö³¬¤~µ²§ô ¥Ø«e ppp ¦b¹ê§@¤W¦³­Ó·|¥X°ÝÃDªº "¥\¯à"¡A¤£·|±N LCP¡BCCP & IPCP ³o´XºØ«Ê¥]ªº¦^À³©M­ì¥ý­n¨D§@¹ï·Ó¡Cµ²ªG¬O¦pªG¦³¤@¤èªº ppp ±Ò°Ê®É¤ñ¹ï¤èºC¤F¤»¬í¥H¤W¡A¹ï¤è·|¦b¨ä¶¡¦h°e¥X¨â­Ó LCP ªº³]©w ­n¨D¡A«áªG¬Û·íÄY­«¡C °²³]¦³¨âºÝ A ©M B ³£¦b°õ¦æ ppp¡AA ¦b³s½u«á¥ß¨è °e¥X LCP ­n¨D¡AB «hªá¤F¤C¬í¤~¶}©l¡A©Ò¥H·í B ±Ò°Ê®É¡AA ¦­¤w°e¥X¤T­Ó LCP REQ(request)¡C§Ú­Ì¤]°²³]³s½u¤w±N ECHO Ãö±¼¡A§_«h´N ·|¬Ý¨ì¤W­Ó°ÝÃD´£¨ìªº magic number °ÝÃD¡CB ±Ò°Ê®É¤]·|°e¥X REQ¡A ¦P®É¹ï A °e¥Xªº²Ä¤@­Ó REQ ¦^À³¡A°e¥X ACK(acknowledge)¡CA ¦¬¨ì³o ­Ó ACK «á·|¶i¤J OPENED ª¬ºA¡A¦P®É¤]¹ï B ªº²Ä¤@­Ó REQ °e¥X ACK¡C¦ý¦b³o¬q´Á¶¡¡AB ·|¬Ý¨ì A ¤§«e¦h°e¥Xªº¨â­Ó REQ¡A¦]¦Ó¤] ¥H¨â­Ó ACK ¦^À³¡CB ±µµÛ¬Ý¨ì A ¶Ç¨Óªº²Ä¤@­Ó ACK¡A¦]¦¹¤]¶i¤J OPENED ª¬ºA¡C¦ý³o®É A ¦¬¨ì B ¦h°eªº¨â­Ó ACK¡C®Ú¾Ú RFC ªº³W©w¡A·|¹ï²Ä¤G­Ó ACK °e¥X²Ä¥|­Ó REQ ¦Ó¦^¨ì REQ-SENT ª¬ºA ¡]¦A­«½Æ¤@¦¸ REQ-ACK ªº¹Lµ{¡^¡A¦ý¤@¬Ý¨ì²Ä¤T­Ó ACK¡AA ¥H¬°¬O B ¦^À³­è­è°e¥Xªº REQ¡A¤S¶i¤J OPENED ª¬ºA¡C¦¹®É B ¦¬¨ì A µo¥Xªº²Ä¥|­Ó REQ¡A®Ú¾Ú RFC¡A·|¹ï³o­Ó REQ °e¥X ACK¡AµM«á¦A°e¥X ²Ä¤G­Ó REQ¡]¤]¬O¦A­«½Æ¤@¦¸ REQ-ACK ªº¹Lµ{¡^¡CA ¦¬¨ì³o­Ó REQ «á ·|¦A­«·s°e REQ ¦Ó¦^¨ì REQ-SENT ª¬ºA¡A±µµÛ¤S¦¬¨ì ACK ¦Ó¶i¤J OPENED ª¬ºA¡C¦]¦¹Âù¤è³£·|¥H¬°¦¬¨ìªº ACK ¬O¹ï¤è¦^À³­è­è°e¥X¥hªº REQ¡A³Ì«á A ·|¤@ª½¦b OPENED ©M REQ-SENT ¨âºØª¬ºA¶¡¤Á ´«¡A¹ï B «h¬O OPENED ©M ACK-SENT¡C ³oºØ´c©Ê´`Àô·|¤@ª½«ùÄòµÛ¡Aª½¨ì¦³¤@¤èµo²{¦Û¤v¦b­ì¦a¥´Âà¦Ó©ñ±óÄ~Äò ¤U¥h¡C Á×§K³oºØ±¡ªpªº³Ì¦n¤è¦¡¡A¬O±N¬Y¤@ºÝ³]¦¨³Q°Ê¼Ò¦¡¡Ð¤]´N¬Oµ¥¥t¤@ ¤è¥ý¶}©l·¾³q¡A¥Î³o¹D©R¥O¡G set openmode passive ¥Î³o­Ó¿ï¶µ®É­n¤p¤ß¡AÀ³¸Ó©M³o­Ó©R¥O¤@°_¥Î¡G set stopped N ³o·|³]©w ppp µ¥«Ý¹ï¤è¶}©l·¾³qªº®É¶¡¤W­­¡A¥t¤@­Ó¤èªk¬O¥Î¡G set openmode active N ¨ä¤¤ N ¬O¦b¥D°Ê·¾³q¤§«e¥ýµ¥«Ýªº¬í¼Æ¡Aman page ¦³§ó¸Ô²Óªº»¡©ú¡C Ppp ¦b³s½u«á´N¥d¦í¤F ¦b FreeBSD 2.2.5 ¤§«eªºª©¥»¡A¦³¥i¯à¦]¬° ppp ¦b³B²z Predictor1 À£ÁY®Éµo¥Í¿ù»~¡A¨Ï±o¦b³s½u«á°¨¤W´N¥d¦í¡C¥u¦³·í³s½uÂù¤è³£¸Õ¹Ï¥Î¤£¦P ºØ Compression Control Protocol(CCP) ·¾³q®É¡A¤~·|µo¥Í³oºØ±¡§Î¡C³o­Ó °ÝÃD¤w¸g¸Ñ¨M¤F¡A¦ý¦pªG¤´¦b¥Îª©ªº ppp¡A¥i¥H¥Î³oºØ¤èªkÁ×§K¡G disable pred1 ¥Î shell ¸õ¥X Ppp °µ´ú¸Õ®É¡A³s½u¦ü¥G¥d¦í¤F ¦b¥Î shell ©Î ! ©R¥O®É¡Appp ·|°õ¦æ shell(ppp ¤]·|§â§A«ü©wªº°Ñ¼Æ¶Çµ¹ shell)¡APpp ·|µ¥¨ì³o¨Ç©R¥Oµ²§ô«á¤~Ä~Äò¡C¦pªG ¦³¨Ï¥Î¨ì ppp ³s½uªº©R¥O¡A³s½u·|¹³¬O³Q­á¦í¤F¡A³o¬O¦]¬° ppp ¥¿¦b µ¥³o¨Ç«ü¥Oµ²§ô¡C ¦pªG·Q°õ¦æµ{¦¡¡A¥Î !bg ³o­Ó©R¥O¡A¥¦·|§âµ{¦¡¥á¨ì­I´º°õ¦æ¡Appp ±µµÛ´N¯àÄ~Äò«O«ù³s½u¡C ¦b null-modem ½u¤W«Ø¥ßªº Ppp ¦n¹³¤£·|¦Û°ÊÂ_½u ¥Ñ©ó null-modem ¥»¨­¥Îªº½u§÷¡Appp ¨S¦³¿ìªk¦Û°Ê¨M©w¬O§_ ¬Y­Óª½±µ³s½u¤w¸gÂ_±¼¡C·í¨Ï¥Î³oÃþ¤è¦¡ªº³s½u®É¡A¤@©w­n¥´¶} LQR¡G enable lqr ¤º©w¬O·|±µ¨ü LQR¡A¦pªG¹ï¤è¥Î¥¦¨Ó·¾³qªº¸Ü¡C ¬°¤°»ò ppp ¦b -auto ¼Ò¦¡¤U·|µL½tµL¬G¼½¸¹¡H ¦pªG ppp «D¹w´Á¦a¼½¸¹¡A´N¥²¶·­n§ä¥X­ì¦]¡AµM«á³]©w¼½¸¹¹LÂo ¾¹¡]dfilter, Dial filter¡^¨ÓÁ×§K³oºØ±¡§Î¡C ­n§ä¥X­ì¦]¡A¥ý¥Î³o­Ó©R¥O¡G set log +tcp/ip ³o¼Ë·|°O¿ý¸g¥Ñ³s½uªº©Ò¦³¸ê®Æ¡C¤U¦¸¦pªG¤SµL¬G¼½¸¹¡A´N¥i¥H±q°O¿ý ®ÇÃ䪺®É¶¡«Ü§Ö§ä¨ì­ì¦]¡C ²{¦b¥i¥HÁ×§K¦]¬°³o¨Ç­ì¦]¼½¸¹¡C³q±`¬O¦b§@ DNS ¬d¸ß®É¤~·|µo¥Í³oºØ °ÝÃD¡A­nÁ×§K¦] DNS ¬d¸ß¦Ó³s½u¡]³o¼Ë¤£·|¨Ï ppp ¦b³s½uª¬ºA ¤U¾×±¼³o¨Ç«Ê¥]¡^¡A¥Î¤U­±³o´X¦æ¡G set dfilter 1 deny udp src eq 53 set dfilter 2 deny udp dst eq 53 set dfilter 3 permit 0/0 0/0 ³oºØ°µªk¨Ã¤£¥Ã»·¾A¥Î¡A¦]¬°¥¦¨Æ¹ê¤W¨Ï±o§AµLªk¥Î demand-dial ¥\¯à ¡Ð ¤j³¡¥÷µ{¦¡¦b°µºô¸ô¬ÛÃö°Ê§@«e³£·|¥Î¨ì DNS ¬d¸ß¡C ¦b DNS ³o­Ó±¡ªp¤U¡AÀ³¸Ó¸ÕµÛ§ä¥X¨ì©³¬O½Ö·Q­n¸Ñ¥X¥D¾÷¦WºÙ¡A³q±`´X ¥G³£¬O¥Ñ sendmail ©Ò³y¦¨¡A©Ò¥H­n¦b sendmail ³]©wÀɤ¤«ü¥Ü¥¦¤£­n°µ¥ô¦ó DNS ¬d¸ß¡C¦b Mail ³]©w ¤@¸`¤¤¦³¸Ô²Ó»¡©ú¦p¦ó§@¥X ¦Û¤vªº³]©wÀÉ¡B¤Î¸Ì­±À³¸Ó©ñ­þ¨Ç³]©w¡A§A¤]³\·Q­n±N¤U¤@¦æ¥[¤J .mc Àɤ¤¡G define(`confDELIVERY_MODE', `d')dnl ³o·|¨Ï sendmail ¥ý¾×µÛ©Ò¦³«H¥ó¡Aª½¨ì°e«H®É¦A¤@»ô°e¥X¥h¡]³q±` sendmail °õ¦æ®É¬O¥Î ``-bd -q30m'' ³o­Ó°Ñ¼Æ¡A§i¶D¥¦¨C¤T¤Q¤ÀÄÁ¤~°e«H¡^ ©Î¬O¦³¤H°õ¦æ ``sendmail -q''¡]¤]³\¥i¥H©ñ¦b ppp.linkup ¸Ì¡^¡C ³o¨Ç CCP ¿ù»~°T®§¬O«ü¡H §Ú¦b log Àɤ@ª½¬Ý¨ì³o¨Ç¿ù»~°T®§¡G CCP: CcpSendConfigReq CCP: Received Terminate Ack (1) state = Req-Sent (6) ³o¬O¦]¬° ppp ¸Õ¹Ï§@ Predictor1 À£ÁY¤è­±ªº·¾³q¡A¦ý¹ï¤èªº¾÷¾¹«o§¹ ¥þ¤£¥ÎÀ£ÁY¥\¯à¡C³o¨Ç°T®§¬OµL®`ªº¡A¦ý¦pªG¤£·Q¬Ý¨ì¥¦ªº¸Ü¡A¥i¥H§â¥»¦a ppp ªº Predictor1 À£ÁY¤]¤@°_Ãö±¼¡G disable pred1 ¶ÇÀɮ׮ɵo¥Í IO ¿ù»~¡AµM«á Ppp ´N±¾±¼¤F ¦b FreeBSD 2.2.2 ¤Î¥ý«eªºª©¥»¤¤¡Atun ªºÅX°Êµ{¦¡¦³­Ó°ÝÃD¡A¥¦¤£·| ±µ¦¬¨º¨Ç¤j¹L tun ¤¶­± MTU ªº«Ê¥]¡C¦pªG¦¬¨ì¤ñ MTU ¤jªº«Ê¥]¡A¥¦·|¥Î syslogd °O¿ý¬° IO ¿ù»~¡C ¦ý ppp ³W®æ¤¤¦³´£¨ì¡A¤£ºÞ LCP ·¾³qªºµ²ªG¦p¦ó¡AMRU ³Ì¤pªº¥i±µ¨ü ­È¥Ã»·¬O 1500¡C©Ò¥H¦³¥i¯à§A¤£¤p¤ß±N MTU ½Õ§C©ó 1500¡AISP ·|¤£²z¥¦¦Ó°e¥X 1500 ¤j¤pªº«Ê¥]¡AµM«á´N·|IJµo¤W­zªº "¥\¯à"¡C ¦b FreeBSD 2.2.2 ¤Î¤§«eªºª©¥»¤¤¡A¥Ã»·¤£­n±N MTU ½Õ§C©ó 1500¡A´N ¥i¥H¸Ñ¨M³o­Ó°ÝÃD¡C ¬°¤°»ò ppp ¤£·|°O¿ý§Úªº³s½u³t«×¡H ¦pªG­n°O¿ý¹q¸£©M¼Æ¾Ú¾÷¶¡ªº¨C¤@¦æ ``¹ï¸Ü''¡A¥Î¤U¤@¦æ¥´¶}¡G set log +connect ³o·|¨Ï ppp °O¿ý©Ò¦³¸ê®Æ¡Aª½¨ì¼½¸¹¦r¦ê³Ì«á¤@­Óµ¥«Ýªº¼Æ¾Ú¾÷¶Ç¦^­È ¬°¤î¡C ¦pªG¨Ï¥Î PAP ©Î CHAP (¦]¬°¨S¦³ "set login" ©R¥O¡A©Ò¥H³]©wÀɤ¤ CONNECT ¤§«á´N¤£·|¬Ý¨ì¥ô¦ó¹ï¸Ü)¡A·Q­n¬Ý¨ì³s½u³t«×ªº¸Ü¡A½T©w ppp µ¥«Ýªº¼Æ¾Ú¾÷¶Ç¦^­È¬O CONNECT ³o¤@¾ã¦æ¡A¹³³o¼Ë¡G set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 4 \"\" ATZ OK-ATZ-OK ATDT\\T TIMEOUT 60 CONNECT \\c \\n" ³o¼Ë¦b¬Ý¨ì CONNECT «á¤£·|°e¥X¥ô¦óªF¦è¡A±µµÛ¦Aµ¥­Ó´«¦æ¦r¤¸¡A±j ­¢ ppp Ū¨ú¦^À³ªº CONNECT ¤@¾ã¦æ¡C Ppp ¤£²z·| chat script ¤¤ªº `\' ¦r¤¸ Ppp ·|¥h¤ÀªR³]©wÀɤ¤ªº¨C¤@¦æ¡A³o¼Ë¥¦¤~·|¥¿½T¸ÑŪ¹³¬O set phone "123 456 789" ªº¦r¦ê¡]§AÀ³¸Óª¾¹D³o­Ó¼Æ¦r¥u¬O <¤@­Ó> °Ñ¼Æ¡A¦pªG­n«ü©wÂù¤Þ¸¹ (") ³o­Ó¦r¤¸¡A¥²¶·¦b¥¦«e­±¥Î¤Ï±×½u (\)±N¥¦¹j¶}¡^¡C ·í¸Ñ͵{¦¡¤ÀªR¨C­Ó°Ñ¼Æ®É¡A¬°¤F§ä¥X¦r¦ê¤¤©Ò¦³¹³¬O ``\P'' ``\T'' ªº¸õ²æ¦r¤¸¡]¨£ man page¡^¡A¥²¶·­«·s¸ÑĶ¸Ó°Ñ¼Æ¡C¦b³oºØÂù­«¤ÀªR¤§¤U¡A §A¥²¶·°O±o¥Î¥¿½Tªº¸õ²æ¼Æ¥Ø¡C °²³]­n¹ï¼Æ¾Ú¾÷°e¥X ``\'' ³o­Ó¦r¤¸¡AÀ³¸Ó¹³¬O¡G set dial "\"\" ATZ OK-ATZ-OK AT\\\\X OK" ³o¼Ë«h·|±o¨ì¤U­±³o¦ê¡G ATZ OK AT\X OK ¦pªG¬O set phone 1234567 set dial "\"\" ATZ OK ATDT\\T" «h·|±o¨ì¤U­±µ²ªG¡G ATZ OK ATDT1234567 Ppp ¸I¨ì¤F seg-fault¡A¦ý§ä¤£¨ì ppp.core ³o­ÓÀÉ¡H Ppp (©Î¥ô¦óÃþ¦üªºµ{¦¡) À³¸Ó¤£¥i¯à¦³ core dump¡C¥Ñ©ó ppp °õ¦æ®É ªº effective user id ¬O 0 (§Y¥H root ¨­¥÷°õ¦æ)¡A§@·~¨t²Î¦b²×¤î ppp «e¤£·|¹ïºÏºÐ¼g¥¦ªº core ¬M¹³ÀÉ¡C¦pªG ppp ¯uªº¦]¬° segmentation violation ©Î¨ä¥L¤@¯ë·| core dump ªº signal ¦Ó²×¤î¡B¨Ã¥B½T©w¥Î ªº¬O³Ì·sª©¥»(¨£¥»¸`¶}ÀY)¡A¨º»ò§A¥i¥H³o»ò°µ¡G $ tar xfz ppp-*.src.tar.gz $ cd ppp*/ppp $ echo STRIP= >>Makefile $ echo CFLAGS+=-g >>Makefile $ make clean all $ su # make install # chmod 555 /usr/sbin/ppp §A²{¦b¤w¸g¸Ë¤W¥i¥H¥Î¨Ó°£¿ùªº ppp ª©¥»¡A¥Ñ©óÅv­­¤W¨S¦³§@¯S§O³]©w¡A ©Ò¥H¥²¶·¥H root ¨Ó°õ¦æ ppp¡A¶¶«K¤]­nª`·N¬O¦b¨º­Ó¥Ø¿ý°õ¦æªº¡C ²{¦b¦pªG ppp ¸I¨ì¤F segmentation violation¡A´N·|±N coredump ¦s¦b ppp.core Àɤ¤¡A±µ¤U¨Ó´N¬O¡G $ su # gdb /usr/sbin/ppp ppp.core (gdb) bt ..... (gdb) f 0 ..... (gdb) i args ..... (gdb) l ..... ®Ú¾Ú§Aªº°ÝÃD¨Ó¨ú±o¬ÛÃö¸ê®Æ¡A´N¥i¥H¶EÂ_°ÝÃD¥X¦b¨º¸Ì¡C ¦pªG¼ô±x gdb¡A¤]³\·|·Q§ä¥X¨ä¥Lªº¸Ô²Ó¸ê®Æ¡A¹³¬O¨º­Ó°Ê§@³y¦¨ dump¡B¤Î¬ÛÃöÅܼƪº¦ì§}¤Î¼Æ­Èµ¥¡C ¦b -auto ¼Ò¦¡¤U¡A¨Ï ppp ¼½¸¹ªºµ{¦¡¦b³s½u«á«o³s¤£¨ì¥Øªº¦a ³o¬O³]©w ppp ¦b -auto ¼Ò¦¡¦V¹ï¤è¨ú±o°ÊºA IP ®Éªº¤wª¾°ÝÃD¡A ¦b³Ì·sª©ªº ppp ¤w¸g¸Ñ¨M¤F ¡Ð ¦b man page ¤¤¥Î iface ÃöÁä¦r§ä§ä ¬Ý¡C ·í¥Î¨ìºô¸ôªºµ{¦¡©I¥s connect(2) ®É¡Asocket endpoint ·|³]¦¨ tun ³o­Ó¬É­±ªº IP¡Akernel ±µµÛ²£¥Í­n°e¥X ¥hªº²Ä¤@­Ó«Ê¥]¡A§â¥¦¶Çµ¹ tun¡APpp Ū¨ì³o­Ó«Ê¥]«á´N·|¶}©l«Ø¥ß³s ½u¡C¦pªG ppp ¥Îªº¬O°ÊºA¤À°t IP¡A¨º»ò´N·|§ïÅÜ tun ¬É­±ªº¦ì§}¡A ­ì¥ýªº socket endpoint ´N¦¨¬°¤£¥¿½Tªº­È¡C±µµÛ°e¨ì¹ï¤èªº«Ê¥]³q±`³£·| ³Q¥á±¼¡A´Nºâ¯à¶¶§Q¹F¨ì¹ï¤è¾÷¾¹¡A¥Ñ©ó¸Ó¨Ó·½ IP ¤wµ¹¨ä¥L¤H¨Ï¥Î¡A¥ô¦ó¦^ À³¤]¤£·|³Q¶Ç¦^¥»¦aªº¾÷¾¹¤W¡C ²z½×¤W¡A¦³¦n´XºØ¤èªk¥i¥H¸Ñ¨M³o­Ó°ÝÃD¡C¦pªG ISP Ä@·N¨C¦¸³£´£¨Ñ¬Û¦P IP ·íµM¬O³Ì¦n :-)¡A¥Ø«eª©¥»ªº ppp ·|°µ¨ì³o¤@ÂI¡A¦ý¤j¦h¼Æªº ppp ¹ê§@¤£·|³o»ò°µ¡C ±q client ºÝ³Ì®e©öªº¸Ñ¨M¤è¦¡¬O¡A¥Ã»·³£¤£­n§ïÅÜ tun ¬É­±ªº IP ­È¡A ¦ý¬O±N©Ò¦³¥X¥hªº«Ê¥]¨Ó·½ IP ±q­ì¥ýªº tun ¬É­± IP §ï¬°³s½u®É¨ú±oªº IP¡A°ò¥»¤W³o´N¬O³Ì·sª© ppp ¸Ì iface-alias ¿ï¶µªº°µªk¡]¨Ï¥Î ¤F libalias(3) ©M°õ¦æ ppp ®Éªº °Ñ¼Æ¡^¡Ð°O¦í¤§«e©Ò¦³ ¥Î¹Lªº tun ¬É­± IP¡A¦A§â¥þ³¡´«¦¨³Ìªñ¤@¦¸®³¨ìªº¦ì§}¡C ¥t¤@ºØ¤èªk¡]¥i¯à¬O³Ì¥i¾a¡^¬O¼g­Ó¥i¥H­×§ï©Ò¦³ socket endpoint ­Èªº system call¡C·í®³¨ì·sªº IP ®É¡APpp ´N¥i¥H¥Î¥¦¨Ó­×§ï©Ò¦³°õ¦æµ{¦¡ ©Ò«Ø¥ßªº socket¡C·í DHCP client µ{¦¡¹ï socket ­«·s¨Ï¥Î bind() ®É¡A¤] ¥i¥H¥Î¦P¼Ëªº©I¥s¡C ÁÙ¦³¤@­Ó¥i¯à«h¬O¤¹³\¤£¥Î IP¡A´N¥i¥H±Ò¥Î¬Y­Óºô¸ô¬É­±¡C°e¥X¥hªº«Ê¥] ¨Ó·½ IP ·|³]¦¨ 255.255.255.255¡Aª½¨ì SIOCAIFADDR ³o­Ó ioctl ²Ä¤@¦¸°õ ¦æ§¹¦¨¬°¤î¡C³o¼Ë·|§¹¥þ³sµ² socket ªº¨âºÝ¡A¦Ó¥Ñ ppp ¨Ó­×§ï¨Ó·½ªº IP ­È¡A¦ý¥u¦³·í­ì¨Ó IP ­È¬O 255.255.255.255 ®É¡B©ÎªÌ IP ­È©M IP °»¿ù ½X»Ý­n­×§ï®É¤~·|¥h§ó°Ê¡C³oºØ¤è¦¡¦³ÂIºâ¬O hack¡A§Y kernel ¥i¥H¹ï¨S³] ©w¦nªº¬É­±°e¥XÃa±¼ªº«Ê¥]¡A¦]¬°°²³]·|¦³¨ä¥L¾÷¨î¥i¥H­×¥¿³oºØ¿ù»~¡C ¬°¦óª±¤j¦h¼Æ¹CÀ¸®É¡A³£¤£¯à¨Ï¥Î -alias ³o­Ó°Ñ¼Æ¡H ¹CÀ¸©ÎÃþ¦üµ{¦¡¤£¯à©M libalias ·f°t¨Ï¥Îªº­ì¦]¬O¡A¥~­±ªº¾÷¾¹¸ÕµÛ¹ï µÛ¤º³¡ªº¾÷¾¹¶}±Ò³s½u¡B©Î¡]¤£½Ð¦Û¨Ó¦a¡^°e¥X UDP «Ê¥]¡A¦Ó alias «Ê¥]ªº ³nÅ餣ª¾¹D¥¦À³¸Ó§â³o¨Ç«Ê¥]°e¨ì¸Ì­±ªº¾÷¾¹¥h¡C ¸Ñ¨Mªº¤è¦¡¬O¡A¥ý½T©w²{¦b¥u¦³°õ¦æ¨º­Ó·|¥X°ÝÃDªºµ{¦¡¡AµM«á¦b gateway ¾÷¾¹¤W¹ï tun ¬É­±°õ¦æ tcpdump¡B©Î¦b¤W­±¥´¶}°O¿ý tcp/ip ªº¥\ ¯à¡]``set log +tcp/ip''¡^¡C ¦b±Ò°Ê¥X°ÝÃDªºµ{¦¡®É¡AÀ³¸Ó·|¦b gateway ¾÷¾¹¤W¬Ý¨ì¦³«Ê¥]³q¹L¡A·í¥~ ¬É¦³¶Ç¦^«Ê¥]®É«h·|³Q¥á±¼¡]³o´N¬O°ÝÃD©Ò¦b¡^¡C°O¤U³o¨Ç«Ê¥]­n°e¨ì¥Øªº¦a ªº¨º­Ó°ð¡AµM«áÃö±¼µ{¦¡¡C­«½Æ´X¦¸¡A¬Ý¬Ý¬O§_³£­n°e¨ì¦P¼Ë©T©wªº°ð¡A¦pªG ¬Oªº¸Ü¡A¦b /etc/ppp/ppp.conf ¬ÛÃö¦ì¸m¥[¤W³o¤@¦æ¡A´N¥i¨Ïµ{¦¡¥¿½T¹B§@¡G alias port proto internalmachine:port port ¨ä¤¤ ``proto'' ¬O ``tcp'' ©Î ``udp''¡A``internalmachine'' ¬O­n±µ ¦¬³o¨Ç«Ê¥]ªº¾÷¾¹¡A``port'' «h¬O³o¨Ç«Ê¥]­n°e¨ì¨º­Ó°ð¡C ¦pªG­n¦b¨ä¥L¾÷¾¹¤W°õ¦æ¦P¼Ëµ{¦¡¡A¥²¶·­«½Æ¦P¼Ë¹Lµ{­×§ï¤W¤@¦æ³]©w¡A §_«h´N¤£¯à¥¿±`¨Ï¥Î¡F¤]¤£¥i¯à¦b¨â¥x¤º³¡¾÷¾¹¤W¦P®É¨Ï¥Î¡Ð²¦³º¥~¬É¥u¬O§â ³o­Ó¤º³¡ºô¸ô¬Ý¦¨¤@¥x¾÷¾¹¦Ó¤w¡C ¦pªG«Ê¥]¤£¤@©w°e¨ì¦P¼Ëªº°ð¡A§A¦³¤TºØ¿ï¾Ü¡G 1) ¦b libalias ¥[¤J¹ï¥¦ªº¤ä´©¡A /usr/src/lib/libalias/alias_*.c ¦³¤@¨Ç ``¯S¨Ò'' ªº¥Ü½d¡]alias_ftp.c ¬O­Ó¤£¿ùªº­ì«¬ÀÉ¡^¡C³q±`¬OŪ¨ú¬Y¨Ç¥i¥H»{±o¥Xªº¥~°e«Ê¥]¡A§ä¥X­n¥~­±³s ¨ì¤º³¡¾÷¾¹¬Y­Ó°ðªº«ü¥O¡AµM«á¦b alias ªí¤¤³]©w ``route''¡A¥H«á¦A¦¬¨ì ³oºØ«Ê¥]´Nª¾¹D­n©¹¨º¸Ì°e¡C ³o¬O³Ì§xÃøªº¸Ñªk¡A¦ý¤]¬O³Ì¦nªº¡A¨Ã¥BÁÙ¥i¥H¦b¦h¥x¾÷¾¹¤W¥Î¦P¼Ëµ{¦¡¡C 2) ¨Ï¥Î proxy¡CÁ|¨Ò¨Ó»¡¡A¸ÓÀ³¥Îµ{¦¡¤]³\¤ä´© socks5¡A©Î¬O ¦³­Ó ``passive'' ªº¿ï¶µ¡]¹³¬O ``cvsup''¡^¥i¥HÁ×§K¹ï¤è¦V¤º³¡¾÷¾¹´£¥X ³s½uªº­n¨D¡C 3) ¥Î ``alias addr'' §â©Ò¦³¸ê®Æ³£Â൹¤º³¡¾÷¾¹¡A³o¬O³Ì«á ¤~¥Îªº¼É¤Oªk¡C ¨º¸Ì¥i¥H§ä¨ì±`¥Î°ðªº¦Cªí¡H ²{¦bÁÙ¨S¦³¡A¦ý¥i¥H±N³o¨Ç§Ë¦¨¤@­Ó¦W³æ¡]¦pªG¦³¤H·P¿³½ìªº¸Ü¡^¡C ¦b¤U­±ªº¨Ò¤l¸Ì¡A§â internal ´«¦¨ª±¹CÀ¸¨º¥x¾÷¾¹ªº IP¡C Quake alias port udp internal:6112 6112 ¦pªG·Q¥Î¨ä¥L¤è¦¡¡Awww.battle.net ¦³ Quake ¹ï proxy ¤ä´©ªº»¡©ú¡C Quake 2 alias port udp internal:27901 27910 ¬õ¦âĵ§Ù¡]Red Alert¡ alias port udp internal:8675 8675 alias port udp internal:5009 5009 Half Life alias port udp internal:27005 27015 PCAnywhere 8.0 alias port udp internal:5632 5632 alias port tcp internal:5631 5631 ¤°»ò¬O FCS ¿ù»~¡H FCS ¬O Frame Check Sequence ªºÁY¼g¡C¨C¤@­Ó ppp «Ê¥]³£ªþ¦³°»¿ù½X¨Ó½T©w¦¬¨ìªº¸ê®Æªº½T¬O°e¥Xªº¸ê®Æ¡C¦pªG¶i¨Óªº¬Y­Ó «Ê¥] FCS ¤£¥¿½T¡A´N¥á±¼³o­Ó«Ê¥]¡B¦A§â HDLC ¸Ìªº FCS ­p¼Æ¾¹¥[ 1¡C ¥Î show hdlc «K¥i¬Ý¨ì HDLC ¸Ìªº¦UºØ¿ù»~­p¼Æ­È¡C ¤£¨}½u¸ô(©Î«Ê¥]³Q¦ê¦C°ðªºÅX°Êµ{¦¡¥á±¼)¦³®É­Ô´N·|µo¥Í FCS ¿ù»~¡A ÁöµM¥¦ªº½T·|¤j¤j©ìºCÀ£ÁY¨ó©w¡A¤£¹L³q±`³o¨S¤°»ò¤j¤£¤F¡C¦pªG§A¥Îªº ¬O¥~±µ¼Æ¾Ú¾÷¡A½T©w¦³«OÅ@½u¸ô¤£¨ü¥~¬É¤zÂZ ¡Ð ³o¼Ë»¡¤£©w´N¸Ñ¨M¤F¡C ¦pªG¦b³s¤W®É°¨¤W´N­á¦í¡B¨Ã¥BÁ٬ݨì¤@¤j°ï FCS ¿ù»~ªº¸Ü¡A¦³¥i¯à ¬O¦]¬°§Aªº³s½u¨Ã«D¬O 8 bit clean¡C½T©w¼Æ¾Ú¾÷¤£¬O¥Î³nÅé¬yµ{±±¨î (XON/XOFF)¡A¦pªG§Aªº³s½u <¤@©w> ­n¥Î³nÅé¬yµ{±±¨îªº¸Ü¡A¥Î set accmap 0x000a0000 ³o¹D©R¥O§i¶D ppp ¸õ¹L ^Q ©M ^S ³o¨â­Ó¦r¤¸¡C ¬Ý¨ì¤@¤j°ï FCS ¿ù»~ªº¥t¤@­Ó­ì¦]¡A¬O³s½u¥t¤@ºÝ¤£¦A¨Ï¥Î PPP ·¾³q¡C³o®É­Ô¤]³\À³¸Ó¥´¶} async ªº°O¿ý¥\¯à¡A¨Ó¨M©w¬O§_¶i¨Óªº ¸ê®Æ¨ä¹ê¬O login ©Î shell ´£¥Ü²Å¸¹¡C¦pªG¥t¤@ºÝ¬O shell ´£¥Ü²Å¸¹¡A ¥ý°õ¦æ close lcp¡B±µµÛ term ´N¥i¥H­«·s³s±µ¨ì¹ï ¤è¾÷¾¹ªº shell ¤U¡A¦Ó¤£¥Î±¾±¼¹q¸Ü½u¡C ¦pªG°O¿ýÀɸ̨S¦³¥ô¦ó¸ê°T¥i¥H«ü¥Ü³s½u¬°¦óÂ_±¼¡A¨º»ò´N¸Ó°Ý°Ý¥t¤@ ºÝªººÞ²z­û(§Aªº ISP¡H) «ç»ò·|³o¼Ëµ²§ô¡C ¨S¦³¤@­Ó¤èªk¥i¥H¥Î¡A§Ú§¹³J¤F°Õ¡I ¦pªG¤W­±»¡ªº³£¨S¥Î¡A´NºÉ¥i¯à§ä¥X©Ò¦³¸ê°T¡A³o¥]¬A¤F³]©wÀÉ¡B¦p¦ó ±Ò°Ê ppp¡Blog Àɪº¬ÛÃö³¡¥÷¡B³s½u«e«áªº netstat -rn ¿é¥Xµ²ªG¡A§â³o¨Ç°e¨ì freebsd-questions@FreeBSD.org mailing list ©Î comp.unix.bsd.freebsd.misc newsgroup¡A³o¼ËÀ³¸Ó´N·|¦³¤H«üÂI ¥¿½Tªº¤è¦V¡C Serial ³q°T ³o¤@³¹¥D­n¬O¦b°Q½× FreeBSD ¤W¦³Ãö serial ³q°Tªº°ÝÃD¡C¦³Ãö PPP ¥H¤Î SLIP ªº°ÝÃD¬O©ñ¦b ³o¤@¸`¡C §Ú­n«ç»òª¾¹D FreeBSD ¬O¤£¬O¦³§ì¨ì§Úªº serial port¡H ·í FreeBSD ¶}¾÷ªº®É­Ô¡A¥¦·|®Ú¾Ú±z¦b kernel ¤¤ªº³]©w¨Ó°»´ú±zªº serial port¡C±z¥i¥H¦b³o¨Ç°T®§¥X²{ªº®É­ÔÀˬd¡A¤]¥i¥H¦b¨t²Î¶}¾÷¤§«á¥Î ¤U­±ªº«ü¥O¨ÓÆ[¹î¡G dmesg | grep sio ³o¸Ì¦³¤@¨Ç¿é¥Xªº½d¨Ò¡G sio0 at 0x3f8-0x3ff irq 4 on isa sio0: type 16550A sio1 at 0x2f8-0x2ff irq 3 on isa sio1: type 16550A ³o¥Nªí±z¦³¨â­Ó serial port¡C²Ä¤@­Ó port ¦û¥Î irq 4¡Aport address ¬O 0x3f8 ¡A¦Ó¥B¥Îªº¬O 16550A «¬ªº UART ´¹¤ù¡C²Ä¤G­Ó port ¥Îªº¬O¦P «¬ªº´¹¤ù¡A¤£¹L¥¦¦û¥Îªº¬O irq 3 ¡A¥¦ªº port address ¦b 0x2f8 ¡C ¤º±µ¦¡ modem ¥d·|³Q¿ëÃѦ¨¬O serial port -- °ß¤@ªº®t§O´N¬O¸Ó port ¤W Á`¬O±µ¤W modem ¦Ó¤w¡C GENERIC kernel ¤ä´©¨â­Ó serial port ¡A¥¦­Ìªº³]©w­È´N¦p¦P¤W­±ªº ½d¨Ò¤@¼Ë¡C¦pªG±z¨t²Î¤Wªº³]©w¤£¤@¼Ë¡A©ÎªÌ±z¥t¥~±µ¤F¤º±µ¦¡ modem ¥d¡A ©Î¬O±z¨t²Îªº¹ê»Ú serial port ¼Æ¤ñ±z¦b kernel ³]©w¤¤ªºÁÙ­n¦hªº¸Ü¡A±z ¥u­n­«·s«Ø¥ß kernel ´N¦n¤F¡C¸Ô±¡½Ð¬Ý ¦p¦ó«Ø¥ß kernel¡C §Ú­n«ç»òª¾¹D FreeBSD ¬O¤£¬O¦³§ì¨ì§Úªº modem ¥d¡H ½Ð¬Ý¤W¤@­Ó°ÝÃD¡C §Ú¤É¯Å¨ì 2.0.5 ¥H«á§Úªº tty0X ©~µM¤£¨£¤F¡I ¤£­nºò±i¡A¥¦­Ì¤w¸g³Q¨Ö¨ì ttydX ¸Ë¸m¤U¥h¤F¡C¤£¹L±zÁÙ¬O±o¨ì¦Û¤v ­×§ï³]©wÀɤ~¯àÅý¥¦­Ì¥¿±`¤u§@¡C §Ú­n¦p¦ó¦b FreeBSD ¤U¦s¨ú seral ports¡H ²Ä¤T­Ó serial port¡Asio2 (´N¬O DOS ¤Uªº COM3) ¡A¥H dial-out ¸Ë¸m¨Ó¬Ý¬O¦ì©ó /dev/cuaa2 ¡A¦Ó¥H dial-in ¸Ë¸m¨Ó¬Ý«h¬O¦ì©ó /dev/ttyd2 ¡C³o¨â­Ó¸Ë¸m¦³¤°»ò¤£¦P ©O¡H ±z¦b dial-in ®É¨Ï¥Îªº¬O ttydX ¡C·í±z¥Î block ¼Ò¦¡¶}±Ò /dev/ttydX ®É¡A·|¦³¤@°¦ process ¦b¹ïÀ³ªº cuaaX ¤Wµ¥¥¦ Åܦ¨ inactive ¡AµM«á¤@ª½µ¥¨ì carrier detect line Åܦ¨ active ¬°¤î¡C ·í±z¶}±Ò cuaaX ¸Ë¸m®É¡A¥¦·|¥h½T©w¥Ø«e ttydX ¸Ë¸m¬O¤£¬O¥¿ ¦b¨Ï¥Î serial port¡C¦pªG¥¦¥i¥H¥Îªº¸Ü¡A¥¦´N·|§â serial port ±q ttydX ¸Ë¸m¤â¤¤·m¹L¨Ó¡C¦P¼Ëªº¡AcuaXX ¸Ë¸m¤£·|¥hºÞ carrier detect¡C¦³¤F³o¼Ëªº³]­p¡A¦A¥[¤W¤@¥x·|¦Û°Ê¦^À³ªº modem¡A±z´N¥i¥H¥O¦P ¤@¥x modem ¥i¥H³Q»·ºÝ¨Ï¥ÎªÌ®³¨Óµn¤J¡A±z¦Û¤v¤]¥i¥H®³¨Ó dialout¡A¨t²Î ·|¦Û°ÊÀˬd¬O§_¦³½Ä¬ðªº²{¶H¡C §Ú­n¦p¦ó±Ò°Ê¹ï serial ¦h°ð¥dªº¤ä´©¡H ¦P¼Ëªº¡A¦b kernel ³]©w¨º¤@¸`¦³´£¨ì¦³Ãö³]©w kernel ªº¸ê°T¡C­n³]©w¤@ ±i serial ¦h°ð¥d¡A±z¥²»Ý¦b±zªº kernel ³]©wÀɤ¤¬°¨C¤@­Ó serial port ³£³]¤@¦æ sio ªº³]©w¡C¦ý¬O±z¥u¯à¦b¥¦­Ì¤§¤¤¿ï¤@­Ó¨Ó³]©w irq ¥H¤Î vector ¡C¥d¤Wªº©Ò¦³ port ·|¦@¨É¦P¤@­Ó irq ¡C¤@¯ë¨Ó»¡§Ú­Ì³£§â¥¦³]¦b³Ì «á¤@­Ó serial port ¤W¡C¤£­n§Ñ¤F«ü©w COM_MULTIPORT ³o­Ó option ¡C ¤U­±¬O¤@­Ó§â AST 4-port ¥d ³]¦b irq 7 ªº¨Ò¤l¡G options "COM_MULTIPORT" device sio4 at isa? port 0x2a0 tty flags 0x781 device sio5 at isa? port 0x2a8 tty flags 0x781 device sio6 at isa? port 0x2b0 tty flags 0x781 device sio7 at isa? port 0x2b8 tty flags 0x781 irq 7 vector siointr ³o¸Ìªº flags ³]©w¬O«ü master port ªº minor number ¬O 7 (0x700)¡A¦b°»´ú®É°µÀˬd (0x080)¡A¥H¤Î©Ò¦³ªº port ¦@¨É¤@­Ó irq (0x001) ¡C FreeBSD ¥i¥H±±¨î¦h±i serial ¦h°ð¥d¨Ï¥Î¦P¤@­Ó irq ¶Ü¡H ÁÙ¨S¤ä´©¡C±z¥²»Ý¬°¨C±i¥d³]©w¤£¦Pªº irq ¡C §Ú¥i¥H¬° port ³]©w¹w³]°Ñ¼Æ¶Ü¡H ³q±`±z·|·Q¬°±zªºÀ³¥Îµ{¦¡¶}±Ò ttydX (©Î¬O cuaaX) ¸Ë¸m¡C·í ¤@­Ó process ¶}±Ò¸Ë¸m¥H«á¡A¥¦·|¦³¤@²Õ¹w³]ªº²×ºÝ¾÷ I/O ³]©w¡C±z¥i¥H¥Î ¤U­±³o­Ó«ü¥O¨ÓÆ[¹î³o¨Ç³]©w stty -a -f /dev/ttyd1 ·í±z§ïÅܤF¬Y­Ó¸Ë¸mªº³]©w«á¡A³o¨Ç³]©w·|¤@ª½§@¥Î¡Aª½¨ì³o­Ó¸Ë¸m³QÃö³¬ ¤F¬°¤î¡C·í¥¦³Q­«¶}±Ò«á¡A¤S¦^¨ì­ì¥ýªº¹w³]­È¤F¡C¦pªG·Q­n§ïÅܹw³]­È¡A±z ¥i¥H¶}±Ò¨Ã­×§ï ``ªì©lª¬ºA'' ¸Ë¸mªº³]©w¡CÁ|¨Ò¨Ó»¡¡A¦pªG±z·Q§ïÅÜ ttyd5 ªº¹w³]­È¡A§â CLOCAL ¼Ò¦¡¥´¶}¡A8 bits¡A¨Ã¥B¨Ï¥Î XON/XOFF ¬y¶q±±¨î¡A±z¥i¥H³o¼Ë°µ¡G stty -f /dev/ttyid5 clocal cs8 ixon ixoff ±z¥i¥H¦b /etc/rc.serial ¸Ì°µ³o¼Ëªº³]©w¡C²{¦b¨C¤@­Ó¶}±Ò ttyd5 ªºÀ³¥Îµ{¦¡³£·|¹w³]¨Ï¥Î³o¨Ç³]©w¤F¡C±z¨ÌµM¥i¥H¥Î¦P¼Ëªº¤èªk ¥h§ïÅܳo¨Ç³]©w¡C ±z¤]¥i¥HÂǥѳ]©w ``Âê©wª¬ºA'' ¸Ë¸m¨Ó¨¾¤î¨ä¥LÀ³¥Îµ{¦¡¥h§ó°Ê³o¨Ç³]©w ¡CÁ|¨Ò¨Ó»¡¡A·Q­n§â ttyd5 ªº³t«×Âê©w¦b 57600 bps¡A±z­n³o¼Ë°µ stty -f /dev/ttyld5 57600 ³o¼Ë¤@¨Ó¡A¨C¤@­Ó¶}±Ò ttyd5 ªºÀ³¥Îµ{¦¡³£¥u¯à¨Ï¥Î 57600 bps ªº³t «×¤F¡C ·íµM¡A±z¥²»Ý½T©w±zªºªì©lª¬ºA¥H¤ÎÂê©wª¬ºAªº¸Ë¸m¥u¯à³Q root ¼g¤J ¡CMAKEDEV ³o­Ó script ¨Ã ¤£·| ¦b«Ø¥ß³o¨Ç¸Ë¸m®É¦Û°ÊÀ°±z³] ©w¦n¡C §Ú­n«ç¼Ë¤~¯àÅý modem ±µ¨ü dialup µn¤J©O¡H ±z¬O¤£¬O·Q·í ISP¡H­º¥ý¡A±z­n¦³¤@³¡¥H¤W¥i¥H¦Û°Ê±µÅ¥ªº modem¡C±zªº modem ¥²¶·­n¦³ carrier-detect ªº¥\¯à¡C¥¦¤]­n¯à°÷¦b data terminal ready (DTR) ¥Ñ¶}ÂରÃö®É­«·s³]©w¦Û¤v¡C¥¦©Î³\¤]­n¯à°÷¨Ï¥Î RTS/CTS ¬y¶q±±¨î©Î¬O¤£°µ¥ô¦ó¬y¶q±±¨î¡C³Ì«á¡A¥¦¥²¶·¯à°÷¦b¹q ¸£©M¥¦¦Û¤vªº¶Ç¿é¤¤¨Ï¥Î©w³t¡A¦ý¬O¦b¥¦©M»·ºÝ modem ªº³s½u¤è­±«h­n¦³¨ó °Ó¶Ç¿é³t«×ªº¯à¤O¡C ¹ï Hayes «ü¥O¶°¬Û®e modem ¨Ó»¡¡A¤U­±ªº«ü¥O·|§â¤W¤@¬q©ÒÁ¿ªº¥þ³¡³]¦n ¨Ã¦s¦b«D´§µo©Ê°O¾ÐÅ餤¡G AT &C1 &D3 &K3 &Q6 S0=1 &W ¬Ý¬Ý¤U­±ªº ¶Ç°e AT «ü¥O¶° ³o¤@¸`¥i¥H±o §ó¦h¦³Ãö¦p¦ó¤£§Q¥Î MS-DOS ²×ºÝµ{¦¡¨Ó°µ³o¨Ç³]©wªº¸ê®Æ¡C ±µ¤U¨Ó¡A¦b /etc/ttys ¬°±zªº modem °µ³]©w¡C¦C¦b³o­ÓÀɮפ¤ªº¬O©Ò¦³¨t²Î·| «Ý login ªº ports ¡C¹³¤U­±³o¼Ë¥[¤J¤@¦æ¡G ttyd1 "/usr/libexec/getty std.57600" dialup on insecure ³o¤@¦æ«ü¥O²Ä¤G­Ó serial port (/dev/ttyd1) ¬O¤@­Ó¥H 57600 bps ³t«×¦b¶Ç¿éªº modem¡A¨Ã¥B¤£°µ¦P¦ìÀˬd ( std.57600 ¬O¦b /etc/gettytab Àɸ̫ü©wªº)¡C ³o­Ó port ªº²×ºÝ¾÷«¬ºA¬O ``dialup''¡C³o­Ó port ³]¦¨ ``on'' ¦Ó¥B¬O ``insecure'' ªº --- ·N«ä¬O root ¤£¯à±q³o¸Ì³s½u¶i¨Ó¡C±z¥²»Ý¬°¨C­Ó dialin port ³£°µÃþ¦ü ttydX ªº³]©w¡C ³q±`§Ú­Ì·|¥Î ``dialup'' ¨Ó°µ¬°²×ºÝ¾÷«¬ºA¡C¦pªG¨Ï¥ÎªÌµn¤J®Éªº±Ò©l«¬ ºA¬O dialup ªº¸Ü¡A«Ü¦h¨Ï¥ÎªÌ³£·|¦b¥L­Ìªº .profile ©Î¬O .login Àɤ¤³] ©w¥L­Ì¯u¥¿ªº²×ºÝ¾÷«¬ºA¡C¤W­±ªº¨Ò¤l¤¤§Ú­ÌÁ|ªº¬O insecure ªº¨Ò¤l¡C¦pªG ±z·Q­n¦b³o­Ó port Åܦ¨ root ªº¸Ü¡A±z¥²¶·¥Î¤@¯ë¨Ï¥ÎªÌªº¨­¥÷µn¤J¡AµM«á ``su'' ¦¨ root ¡C¦pªG±z¥Îªº¬O ``secure'' ªº¸Ü¡A«h root ¥i¥Hª½±µµn ¤J¡C ¦b¹ï /etc/ttys °µ¹L­×§ï¤§«á¡A±z¥²¶·°e¤@­Ó hangup ©Î¬O HUP ªº signal µ¹ init process¡G kill -HUP 1 ³o¼Ë·|±j­¢ init process ¥h­«Åª /etc/ttys ¡C µM«á init process ´N·|¦b©Ò¦³ªº ``on'' port ¤W­«·s±Ò°Ê getty process ¡C±z¥i¥H¥Î¤U¦C«ü¥O¨ÓÀˬd±zªº port ¬O¤£¬O¥i¥H login ¤F ps -ax | grep '[t]tyd1' ±z·|¨£¨ìÃþ¦ü³o¼Ëªºµ²ªG¡G 747 ?? I 0:00.04 /usr/libexec/getty std.57600 ttyd1 §Ú­n«ç»ò§â dumb terminal ³s¤W FreeBSD¡H ¦pªG±z­n§â§Oªº¹q¸£·í¦¨¬O FreeBSD ªº²×ºÝ¾÷ªº¸Ü¡A±z¥u»Ý­n¦b¨âªÌªº serial port ¤§¶¡²o¤@±ø null modem ±Æ½u§Y¥i¡C¦pªG±z¦³¤@­Ó¯uªº²×ºÝ¾÷ ªº¸Ü¡A¬Ý¬Ý¥¦ªº«ü¥O¶°§a¡C µM«á¡A¹³¤W¤@­Ó°ÝÃD¤@¼Ë­×§ï /etc/ttys ¡CÁ|¨Ò¨Ó»¡¡A¦pªG±z§â¤@­Ó WYSE-50 ²×ºÝ¾÷±µ¦b²Ä¤­­Ó serial port ¤Wªº¸Ü¡A´N­n¥Î³o¼Ëªº³]©w¡G ttyd4 "/usr/libexec/getty std.38400" wyse50 on secure ³o­Ó¨Ò¤l¥Ü½dªº¬O /dev/ttyd4 ©Ò¥Nªíªº port ¥Îªº¬O wyse50 ²× ºÝ¾÷¡A³s½u³t«× 38400 bps¡A¤£¨Ï¥Î¦P¦ìÀˬd (std.38400 ¬O±q /etc/gettytab ³]©wªº) ¦Ó¥B root ¥i¥H login (secure) ¡C ¬°¤°»ò§Ú¤£¯à°õ¦æ tip ¤Î cu ©O¡H ¦b±zªº¨t²Î¤¤¡Atip ©M cu «Ü¥i¯à¥u¯à¥Ñ uucp ¨Ï¥ÎªÌ©M dialer ¸s²Õ¤~¯à°õ¦æ¡C±z¥i¥H¥Î dialer ¸s²Õ¨Ó±±¨î¨ì©³¦³½Ö¥i ¥H¦s¨ú±zªº modem ¥H¤Î»·ºÝ¨t²Î¡C±z¥u­n§â±z¦Û¤v¥[¨ì dialer ¸s²Õ¤¤´N¥i ¥H¤F¡C ¥t¥~¤@ºØ¤èªk¬O¡A±z¥i¥HÅý±z¨t²Î¤W©Ò¦³¨Ï¥ÎªÌ³£¥i¥H°õ¦æ tip ©M cu ¡A¥u­n±z # chmod 4511 /usr/bin/cu # chmod 4511 /usr/bin/tip FreeBSD ¤£¤ä´©§Úªº stock Hayes modem --- §Ú­n«ç»ò¿ì¡H ¨Æ¹ê¤W¡Atip ªº man page ¤w¸g¹L®É¤F¡C¤@¯ëªº Hayes dialer ¤w¸g¤º«Ø¦b¨t ²Î¤º¡C±z¥u­n¦b /etc/remote «ü©w ``at=hayes'' ´N¥i¥H¤F¡C ¥i±¤ªº¬O¡AHayes ªºÅX°Êµ{¦¡¤£°÷Áo©ú¡A¦³¨Ç·s modem ¤Wªº¶i¶¥¥\¯à¥¦µLªk ¿ëÃÑ¥X¨Ó --- ¨Ò¦p BUSY ¡ANO DIALTONE ¡A©Î¬O CONNECT 115200 ³oÃþªº°T®§¥¦´N·|·d²V¡C±z¦b¨Ï¥Î tip ªº®É­Ô¥²¶· §â¥¦­ÌÃö±¼ (¥Î ATX0&W) ¡C ÁÙ¦³¡Atip ªº dial ¹O®É®É¶¡¬O 60 ¬í¡C±zªº modem ¥i¯à­n³]±o§óµu¡A §_«h tip ·|»{¬°µo¥Í¤F³q°T¤Wªº°ÝÃD¡C¸Õ¸Õ¬ÝATS7=45&W ¡C ¨Æ¹ê¤W tip ÁÙ¨S¦³§¹¥þ¤ä´©¥¦¡C¸Ñ¨M¤èªk¬O¥h­×§ï /usr/src/usr.bin/tip/tip ¥Ø¿ý¸Ìªº tipconf.h ¡C«ÜÅãµM±z ¥²¶·­n¦³­ì©lµ{¦¡½X¤~¯à³o»ò°µ¡C §â ``#define HAYES 0'' §ï¦¨ ``#define HAYES 1'' ¡CµM«á ``make'' ¨Ã ``make install'' ¡C¤§«á¤@¤Á³£·|«ì´_¥¿±`¤F¡C §Ú¤°»ò®É­Ô­nª½±µÁä¤J AT «ü¥O¡H ¦b±zªº /etc/remote Àɸ̥[¤@­Ó ``direct'' ¡CÁ|¨Ò¨Ó»¡¡A¦pªG±zªº modem ³s±µ¦b²Ä¤@­Ó serial port¡A/dev/cuaa0¡A«h±z­n¥[¤J¤U­± ³o¤@¦æ¡G cuaa0:dv=/dev/cuaa0:br#19200:pa=none ¦b br Äæ¤¤³]©w±z modem ©Ò¤ä´©ªº³Ì°ª³t¡C¤§«á¡AÁä¤J tip cuaa0 ¤§«á ±z´N³s¤W±zªº modem ¤F¡C ¦pªG±zªº¨t²Î¤W¨S¦³ /dev/cuaa0 ¡A±z´N¥ý³o¼Ë¡G # cd /dev # ./MAKEDEV cuaa0 ©Î¬O±z¥i¥H¥Î root °õ¦æ cu «ü¥O¡A¹³³o¼Ë¡G # cu -l``line'' -s``speed'' ³o¸Ìªº line ¬O«ü±zªº serial port (¨Ò¦p /dev/cuaa0) ¡Aspeed ¬O«ü±zªº¶Ç¿é³t«× (¨Ò¦p 57600) ¡C¦pªG±z¤U§¹ AT «ü¥O«á¡AÁä¤J ~. ¥i¥HÂ÷¶}¡C pn Äæ¤¤ªº [@] ¤£¯à¥Î¤F¡I ¹q¸Ü¸¹½XÄæ¤¤ªº [@] °O¸¹¬O¥Î¨Ó§i¶D tip ¥h /etc/phones §ä¹q¸Ü¸¹½X¡C ¦ý¬O [@] ¦P®É¤]¬O /etc/remote ³oÃþÀɮפ¤ªº¯S®í¦r¤¸¡C±z¥i¥H¥[¤W¤Ï±×½u¡G pn=\@ §Ú­n«ç»ò¦b©R¥O¦C¤U¼·¹q¸Ü©O¡H ¦b±zªº /etc/remote ©ñ¤@­Ó ``generic''¡CÁ|¨Ò¨Ó»¡¡G tip115200|Dial any phone number at 115200 bps:\ :dv=/dev/cuaa0:br#115200:at=hayes:pa=none:du: tip57600|Dial any phone number at 57600 bps:\ :dv=/dev/cuaa0:br#57600:at=hayes:pa=none:du: µM«á±z´N¥i¥H¹³ ``tip -115200 5551234'' ³o¼Ë¥Î¤F¡C¦pªG±z¤ñ¸û³ß Åw¥Î cu ªº¸Ü¡A¨Ï¥Î generic cu Äæ¦ì¡G cu115200|Use cu to dial any number at 115200bps:\ :dv=/dev/cuaa1:br#57600:at=hayes:pa=none:du: µM«á¿é¤J ``cu 5551234 -s 115200'' ¡C §Ú¨C¦¸¥Îªº®É­Ô³£­n¿é¤J bps ³t«×¶Ü¡H ±z¥i¥H¨Ï¥ÎÃþ¦ü tip1200 ©Î¬O cu1200 ªºÄæ¦ì¡A¤£¹L¦b±z¨Ï¥Î¤§ «e½Ð¥ý½T©w±zªº br Äæ¥i¥H¤ä´©³o­Ó³t«×¡Ctip »{¬° 1200 bps ¬O¤@­Ó«Ü¦nªº¹w³]­È¡A³o¤]´N¬O¬°¤°»ò­n¥s°µ ``tip1200'' ªº­ì¦] ¤F¡C·íµM±z¤]¥i¥H¤£­n¥Î 1200 bps ¡C ³z¹L¤@¥x terminal server ¨Ó¦s¨ú¥D¾÷¡C °£¤F¨C¦¸µ¥±z³s¤W server ¨ÃÁä¤J ``CONNECT <host>'' ¥H¥~¡A ¤ñ¸û¦nªº¤èªk¬O¥Î tip ªº cm ¡CÁ|¨Ò¨Ó»¡¡A¬Ý¬Ý /etc/remote¡G pain|pain.deep13.com|Forrester's machine:\ :cm=CONNECT pain\n:tc=deep13: muffin|muffin.deep13.com|Frank's machine:\ :cm=CONNECT muffin\n:tc=deep13: deep13:Gizmonics Institute terminal server:\ :dv=/dev/cua02:br#38400:at=hayes:du:pa=none:pn=5551234: ¥i¥HÅý±z¥u¥´ ``tip pain'' ©Î¬O ``tip muffin'' ´N¥i¥H³s¤W pain ©Î muffin¡FµM«á ``tip deep13'' ¥i¥H³s¤W terminal server¡C tip ¥i¥H¦b¤@¦¸³s½u¤¤¿ï¾Ü¦h¥x¾÷¾¹¶Ü¡H ³q±`³o­Ó°ÝÃDµo¥Í¦b¡G¤@¶¡¤j¾Ç¦³¤@¨Ç modem¡A¦Ó¥B¦³¤W¤d¦W¾Ç¥Í­n¥Î... ¦b /etc/remote ¸Ì¬°±zªº¤j¾Ç³]¤@­ÓÄæ¦ì¡A¨Ã¨Ï¥Î [\@] §@¬° ¥¦ªº pn¡G big-university:\ :pn=\@:tc=dialout dialout:\ :dv=/dev/cuaa3:br#9600:at=courier:du:pa=none: µM«á¡A§â¤j¾Çªº¼·±µ¹q¸Ü©ñ¦b /etc/phones ¤¤¡G big-university 5551111 big-university 5551112 big-university 5551113 big-university 5551114 tip ·|¨Ì·Óªí¦Cªº¶¶§Ç¨Ì¦¸À|¸Õ¡A³Ì«á©ñ±ó¡C¦pªG±z­n¤@ª½¸Õªº¸Ü¡A±z¥i¥H¦b while °j°é¸Ì°õ¦æ tip ¡C ¬°¤°»ò§Ú«ö¨â¦¸ CTRL+P¡A¥i¬O«o¥u°e¥X¤F¤@­Ó CTRL+P¡H CTRL+P ¬O¤º©wªº ``force'' ¦r¤¸¡A¥Î¨Ó§i¶D tip ¤U¤@­Ó¦r¤¸ ¬O¤@¯ë¦r¤¸¡C±z¥i¥HÂÇ¥Ñ ~s (¥Nªí ``³]©wÅܼÆ'') §â¨ä¥L¦r¤¸³]¦¨±j ­¢¦r¤¸¡C Áä¤J ``~sforce=<single-char>'' «á­±±µ¤@­Ó newline ¡C <single-char> ¥i¥H¬O¥ô·N³æ¤@¦r¤¸¡C¦pªG±z¥u¥´ <single-char> ¡A«h nul ´N³Q³]¦¨¬O force character¡A±z¥i ¥HÂǥѫö CTRL+2 ©Î¬O CTRL+SPACE ¨Ó«ö¥X nul ¡CSHIFT+CTRL+6 ¬O¤@­Ó¤£ ¿ùªº <single-char> ¡A§Ú¬Ý¹L¤@¨Ç²×ºÝ¾÷³£¬O³o»ò³]©w¡C ±z¤]¥i¥H¦b $HOME/.tiprc ¤¤³]©w force character¡G force=<single-char> ¬ðµM¶¡§Ú¥´ªºªF¦è³£Åܦ¨¤j¼g¤F¡H¡H ±zÀ³¸Ó¬O«ö¨ì¤F CTRL+A¡A¦b tip ¤¤¬°¨S¦³ caps-lock Á䪺¨Ï¥ÎªÌ©Ò³]­pªº ``raise character''¡C±z¥i¥H¹³¤W­Ó°ÝÃD ¤@¼Ë§Q¥Î ~s ¨Ó§â ``raisechar'' ³o­ÓÅܼƧ令¦X²zªº­È¡C¨Æ¹ê¤W¡A ¦pªG±z»{¬°±z¥Ã»·³£¤£·|¥Î¨ì³o¨â­Ó¥\¯àªº¸Ü¡A±z¥i¥H§â¥¦³]¦¨¸ò force character ¤@¼Ë¡C ¤U­±¬O¤@­Ó¬° Emacs ¨Ï¥ÎªÌ©Ò³]©wªº .tiprc ¡AEmacs ¨Ï¥ÎªÌ±`±`·|¥Î¨ì CTRL+2 ©M CTRL+A¡G force=^^ raisechar=^^ ^ ´N¬O SHIFT+CTRL+6 ¡C §Ú­n¦p¦ó¨Ï¥Î tip ¨Ó¶ÇÀɮשO¡H ¦pªG±zªº¹ï¹³¤]¬O UNIX ¨t²Îªº¸Ü¡A±z¥i¥H¥Î ~p (put) ©M ~t (take) ¨Ó¦¬°e¸ê®Æ¡C³o¨â­Ó©R¥O·|¦b»·ºÝ¾÷¾¹°õ¦æ cat ©M echo ¨Ó¦¬°eÀÉ ®×¡C¥Îªk¬O¡G ~p <local-file> [<remote-file>] ~t <remote-file> [<local-file>] ¥¦¤£·|°µ¿ù»~Àˬd¡A©Ò¥H±z³Ì¦n¥Î§Oªº³q°T¨ó©w¡A¨Ò¦p zmodem ¡C §Ú­n«ç»ò¥Î tip ¨Ó¶] zmodem ©O¡H ­º¥ý¡A±q ports ¤¤¿ï¤@­Ó zmodem µ{¦¡¨Ó¦w ¸Ë (¨Ò¦p¦b comms ¥Ø¿ý¤Uªº lrzsz ©Î¬O rzsz) ¡C ¦b±µ¦¬Àɮפ譱¡A±z­n¥ý¦b»·ºÝ±Ò°Ê¶Ç°eµ{¦¡¡CµM«á«ö enter ¦AÁä¤J ``~C rz'' (¦pªG±z¦w¸Ë lrzsz ªº¸Ü´N­n¥´ ``~C lrz'') ´N¥i¥H ¶}©l±µ¦¬¤F¡C ¦b¶Ç°eÀɮפ譱¡A±z­n¥ý¦b»·ºÝ±Ò°Ê¶Ç°eµ{¦¡¡CµM«á«ö enter ¦AÁä¤J ``~C sz <files>'' (©Î¬O ``~C lsz <files>'') ´N ¥i¥H§âÀÉ®×°e¨ì»·ºÝ¨t²Î¤F¡C ´Nºâ§Ú³]©wµL»~¡AFreeBSD ¦n¹³ÁÙ¬O§ä¤£¨ì§Úªº serial port¡H ¦pªG±zªº¥D¾÷ªO©Î¬O¥d¤W¦³¥Î¨ì Acer ªº UART ´¹¤ùªº¸Ü¡AFreeBSD ¦b¶}¾÷®É ªº sio °»´ú¥i¯à·|¤£¥¿½T¡C±z¥i¥H±q www.lemis.com §ä¨ì patch ¨Ó­×¥¿³o­Ó°ÝÃD¡C ¨ä¥¦¦U¦¡¦U¼Ëªº°ÝÃD ¬°¬Æ»ò FreeBSD ¥Îªº swap ªÅ¶¡¤ñ Linux ¦h¡H ¤£¬O³o¼Ëªº¡C¦pªG§Aªº·N«ä¬O¡G ``¬°¬Æ»ò§Úªº swap ¬Ý°_¨Óº¡¤F¡H'' ¨º¬O¦]¬°§âªF¦è©ñ¦b swap ¸Ì«á®³¦^¨Óªº³t«×·|¤ñ pager ¸g¥ÑÀɮרt ²Î®³¦^(¥¼­×§ï)ªº°õ¦æ½X§Ö¡C ¨Æ¹ê¤W¡A°O¾ÐÅ餤 dirty pages ªº¶q¨Ã¥¼´î¤Ö¡F clean pages «h¦b»Ý ­nªº®É­Ô²¾¨«¡C ¬°¬Æ»ò­n¥Î(¬Æ»ò¬O) a.out ©M ELF °õ¦æÀɮ榡¡H ­n¤F¸Ñ¬°¬Æ»ò FreeBSD ¨Ï¥Î a.out ®æ¦¡¡A­º¥ý§A­nª¾¹D¤@¨Ç ¥Ø«e Unix ¤¤¨Ï¥Î³Ì¼sªxªº¤TºØ®æ¦¡¡G a.out ³Ì¦­©M`¥j¨å'ªº unix ¥ØªºÀɮ榡¡C¨Ï¥Î¤@ºØµu¦Óºò±KªºÀÉÀY¡A ¦ñÀH¤@­Ó³q±`¥Î¨Ó¿ë»{®æ¦¡ªºÅ]³N¼Æ¦r(°Ñ¦Ò a.out(5) ¦³§ó¦h²Ó¸`)¡C¨ã¦³¤T­Ó¸`°Ï¡G.text¡A.data¡A©M.bss ¥[¤W¤@­Ó²Å¸¹ªí©M¦r¦êªí¡C COFF SVR3 ¥ØªºÀɮ榡¡CÀÉÀY¥]§t¤F¤@­Ó¸`°Ïªí¡A©Ò¥H¥i¥H¨ã³Æ¤ñ .text¡A.data¡A.bss ÁÙ¦hªº¸`°Ï¡C ELF COFF ªº«áÄ~ªÌ¡A¨ã¦³¦h­Ó¸`°Ï¥H¤Î 32-bit ©Î 64-bit ªº possible values¡C¥D­nªº¯ÊÂI¡GELF ¬O¦b¨C­Ó¨t²Î¬[ºc¥u ·|¦³¤@ºØ ABI ªº°²³]¤U³]­p¥X¨Óªº¡C¨Æ¹ê¤W³o­Ó°²³]¿ùªºÂ÷ÃСA §Y¨Ï¬O°Ó·~ªº SYSV ¥@¬É¡A¤]¦Ü¤Ö¦³ SVR4¡ASolaris¡ASCO ¤TºØ ABI¡C FreeBSD ÂǥѤ@­Ó¤u¨ã¡A§âµ{¦¡»Ý­n¨ººØ ABI ªº¸ê°T ¯O¦L ¦b ELF °õ¦æÀɤW¡C °Ñ¦Ò man page brandelf ¨ú±o§ó¦h¸ê°T¡C FreeBSD ¨Ó¦Û "¥j¨å" °}Àç¡A¶Ç²Î¤W³£¨Ï¥Î a.out ®æ¦¡¡A³o¬O¦b¦n´X¥Nªº BSD ¤¤ÃÒ©ú¥i¾aªº­p³N¡C ÁöµM¥i¥H¦b FreeBSD ¤W¥i¥H«Ø¥ß¥H¤Î°õ¦æ­ì¥Íªº ELF °õ¦æÀÉ( ¥H¤Î®Ö¤ß)¡A­è¶}©l FreeBSD ¤Ï¹ïÂà´«¨ì¥H ELF °µ¬°¹w³]ªº ®æ¦¡¡C¬°¬Æ»ò¡H¶â¡A·í Linux ¶}©lµh­W¦aÂà´«¦ÜELF¡A¨Ã«D¦]¬°­n°kÂ÷ a.out®æ¦¡¡A¦Ó¬O¦]¬°¥L­Ì¨S¦³¼u©Êªº¡A¥H¸õÅDªí¬°°ò¦ªº¦@¨Éµ{¦¡®w¾÷¨î¡C¨º¬O¤@ºØ«D±`Ãø¥H¨Ï¥Î¡Aµo®i ªÌ¤£³ßÅwªºªF¦è¡C¬JµM¤w¸g¦s¦bªºELF¤u¨ã´£¨Ñ¤F¦@¨Éµ{¦¡®wªº¸Ñ¨M¤è®×¡A¦Ó¥B¬Ý¨Ó¬O"«e½Ãªº¤èªk" ¡A©Ò»Ýªº¥N»ù´N¥i±µ¨ü¦]¦ÓÂà´«¡C ¦b FreeBSD ªºª¬ªp¤¤¡A§Ú­Ìªº¦@¨Éµ{¦¡®w¾÷¨î§ó±µªñ SunOS ªº «¬¦¡¡A¤]´N¬O¡A©ö©ó¨Ï¥Î¡CµM¦Ó¡A±q 3.0 ¶}©l¡AFreeBSD ¥¿¦¡¤ä´© ELF ¬°¹w³]®æ¦¡¡C §Y¨Ïa.out ®æ¦¡¤´µM«D±`¦n¡A§Ú­Ì½sͤu¨ãªº¼¶¼gªÌ¡AGNU ªº¦¨­û¡A ¤w¤¤¤î¤F¹ï¡Aa.out ®æ¦¡ªº¤ä´©¡C³o­¢¨Ï§Ú­ÌºûÅ@¥t¤@¥÷ª©¥»ªº compiler ©M linker ¡A¤]¨Ï±o§Ú­Ì¤£¯à±q³Ì·sªº GNU µo®i¦¨ªG¤¤Àò±o¦n³B¡C¦¹¥~¹ï ISO-C++ ªº»Ý¨D¡A¤×¨ä¬O«ØºcªÌ©M¸Ñºc ªÌ¡A¤]±a°Ê¥¼¨Óª©¥»¤¤¹ï ELF ªº­ì¥Í¤ä´©¡C ¦n§a¡A¦ý¬°¬Æ»ò·|¦³³o»ò¦hºØ¤£¦Pªº®æ¦¡¡H ¦b¶Â·tªº¹L¥h¡A¥u¦³Â²­®ªºµwÅé¡C²­®ªºµwÅé¶È¤ä´©¤p«¬¡B²³æªº¨t²Î¡C a.out ¦b²³æªº¨t²Î¤W³Ó¥ô´r§Ö (PDP-11)¡C·í unix ²¾´Ó¨ì¨ä¥L¥­¥x®É¡A a.out «O¯d¤F¤U¨Ó¡A¦]¬°¹ï¦­´Áªº Motorola 68K¡AVAX ¤§Ãþªº¬[ºc¤w¸g °÷¥Î¤F¡C µM«á¦³¨ÇÁo©úªºµwÅé¤uµ{®vı±oÅý³nÅé¦h°µÂI¨Æ¡A¨º CPU ªº¹q´¹Åé´N¯à¤Ö¤@ÂI¦Ó¶]ªº§ó§Ö¡C­n¦b³oºØ ·s¦¡µwÅé¤W¤u§@(²{¦bºÙ¬°RISC)¡A a.out ´N¤£¾A¦X¤F¡A©Ò¥H³\¦hªº®æ¦¡´Nµo ®i¥X¨Ó¡A¥H´£¨Ñ¤ñ¨ü­­¨î¦Ó¤S²³æªº a.out §ó¦nªº®Ä¯à¡C¹³¬O COFF¡A ECOFF¡A¥H¤Î¤@¨Ç¤ñ¸û¤£¥X¦Wªº®æ¦¡¡A¨C¤@ºØ ³£³Q³Ð³y¥X¨Ó¡A¦ý¬O«o³£¹F¨ì¦U¦Ûªº·¥­­¡Aª½¨ì ELF ¥X­±¸Ñ¨M³o¤@¤Á¡C ¦¹¥~¡A·íµ{¦¡¶V¨Ó¶V¤j¦ÓºÏºÐ(¥H¤Î¥D°O¾ÐÅé)¬Û¹ï¨Ó»¡¸û¤p®É¡A¦@¨Éµ{¦¡®wªº·§©À´Nµo®i¥X¨Ó¤F¡A µêÀÀ°O¾ÐÅé¨t²Î¤]Åܱo¶V¨Ó¶Vºë¥©¡C·í¨C¤@ºØ¶i¨B³£¦b a.out ¤W§¹¦¨®É¡A ¥¦ªº¥i¥Î©Ê¤]¶V¨Ó¶V§C¡C¥t¥~¡A¤H­ÌÁÙ­n¦b°õ¦æ®É´Á¥i¥H°ÊºA¸ü¤J¡A©Î¬O¥á±ó°õ¦æ¹Lªºªì©l¤Æµ{¦¡ ¥H¸`¬Ù°O¾ÐÅé¡Cµ{¦¡»y¨¥¤]Åܱo§óºë¥©¦Ó¥B¤H­Ì·Q­n¦b main ¤§«e°õ¦æ§Oªºµ{¦¡½X¡C³\¦hÁcÂøªº§Þ¥© ¥Î¦ba.out ¤W¥H¸Ñ¨M³o¨Ç°ÝÃD¡Ca.out ­n¸Ñ¨M³o¨Ç °ÝÃD»Ý­n¶V¨Ó¶V¦hÃB¥~ªº­t¾á©M½ÆÂø«×¡CELF¥i¥H»´©öªº¸Ñ¨M³o¨Ç°ÝÃD¡A¦ý¬O ±q°ò¥»¤W¥i¥H¤u§@ªº¨t²ÎÂà´«¦¨ ELF «o«Ü´Æ¤â¡C©Ò¥H­nµ¥¨ìºûÅ@ a.out ¤ñÂà´«¨ì ELF ´Æ¤â¡C µM¦Ó¡AÀHµÛ®É¶¡¹L¥h¡A FreeBSD ªº build tools §Î¦¨¤F¥­¦æªº¨â¤ä (¤×¨ä¬O²Õ;¹©M loader)¡CFreeBSD ³o¤ä¥[¶i¤F¦@¨Éµ{¦¡®w¥H¤Î­×¥¿¤F ¤@¨Ç¿ù»~¡C­ì¨Ó¼¶¼g³o¨Çµ{¦¡ªº GNU ¦¨­û«h­«¼g¤F³o¨Çµ{¦¡¡A¥H§ó²³æ ªº¤è¦¡¤ä´©¸ó¥­¥x½sĶ¡B¦hºØ®æ¦¡µ¥µ¥¡C³\¦h¤H·Q­n°µ¥X¥H FreeBSD ¬° ¥Øªº¥­¥xªº¸ó¥­¥x½s;¹¡A¤£©¯ªº¬O FreeBSD ªº as ©M ld ¤£¯à°µ³o¶µ ¤u§@¡C·sªº GNU ¤u¨ã(binutils)¥[¤J¤F¸ó¥­¥x½sĶ¡BELF¡B¦@¨Éµ{ ¦¡®w¡B C++ ÂX¥R¡Aµ¥µ¥¡C¦¹¥~¡A³\¦h¼t°Ó¥H ELF ®æ¦¡µo¦æ²£«~¡A ¦Ó¯à°÷¦b FreeBSD ¤W¶]ªº¸Ü·íµM«Ü¦n¡C¦Ó¥B¦pªG¯à¶] ELF ®æ¦¡ªº °õ¦æÀÉ¡A¬°¬Æ»òÁÙ­n²z a.out ¡H¨e¬O¤@¤Ç¤S²Ö¤S¦Ñªº°¨¡A¹L¥h«D±` ¦³¥Î¡A¦ý¬O®É­ÔÅý¨e°h¥ð¤F¡C ELF ¤ñ a.out §óÀ³¦³ªí¹F¤O(expressive¡H)¦Ó¥B¨ã¦³§ó¦hªº ÂX¥R©Ê¡CELF¤u¨ãºûÅ@ªº¤ñ¸û¦n¡A¦Ó¥B´£¨Ñ¸ó¥­¥x½sĶªº¤ä´©¡A ³o¹ï³\¦h¤H¨Ó»¡¬O«Ü­«­nªº¡CELF ¥i¯à¤ñ a.out ºC¤@ÂI¡A¦ý®t²§ «D±`Ãø´ú¶q¥X¨Ó¡C³o¨âªÌ¤§¶¡ÁÙ¦³³\¦h²Ó¸`¤Wªº¤£¦P¡A¨Ò¦p¤À­¶ªº¹ïÀ³¤è¦¡¡Aªì©l¤Æµ{ ¦¡½Xªº§@ªkµ¥µ¥¡C³o¨Ç¨Ã¤£¬O«Ü­«­n¡A¦ý´N¬O¤£¦P¡C¦b¥H«á GENERIC ®Ö¤ß¤£·|¤ä´© a.out ¡A·í¤£¦A¦³°õ¦æ¶Ç²Î a.out µ{¦¡ ªº»Ý­n®É¡A·|±q®Ö¤ß²¾°£¡C ¬°¬Æ»ò chmod ¤£·|§ïÅܲŸ¹³sµ²(symlink)ªº¦s¨úÅv­­¡H §A¥²¶·§â ``'' ©Î¬O ``'' »P ``'' ¿ï¶µ¤@°_¨Ï¥Î. °Ñ¦Ò chmod ¤Î symlink man pages ¥H¨ú±o§ó¦h¸ê°T. ĵ§i¡G ``'' ¿ï¶µ·|Åý chmod °µ»¼°j¡C¥Î¦b¥Ø¿ý©Î¬O³sµ²¨ì¥Ø¿ýªº²Å¸¹³sµ²®É­n¤p¤ß¡C¦pªG§A­n§ïÅܤ@­Ó²Å¸¹³sµ²°Ñ ¦Ò¨ìªº¥Ø¿ý¤§¦s¨úÅv­­¡A¨Ï¥Î chmod ¥B¤£­n ¥[¥ô¦ó¿ï¶µ¡A¨Ã¥B¦b symlink ªºµ²§À¥[¤W±×½u(``/'')¡CÁ|¨Ò¨Ó»¡ ¡A¦pªG ``foo'' ³sµ²¨ì ``bar''¡A¦Ó§A­n§ó§ï ``foo'' ªº Åv­­ (¨Æ¹ê¤W¬O ``bar'')¡A¨º´N¥Î¡G chmod 555 foo/ µ²§Àªº±×½u¡A·|Åý chmod §ïÅÜ ``foo'' «ü¦Vªº ``bar'' ¥Ø¿ýªºÅv­­¡C ¬°¬Æ»ò±b¸¹ ¤´µM ­­¨î¬°¤K­Ó¦r¤¸¡H §A·|»{¬°­×§ï UT_NAMESIZEµM«á­««Ø¨t²Î¬O«Ü²³æªº¨Æ±¡¡A¦Ó¥B¨C¥ó¨Æ³£¥i¥H¹B§@¦a«Ü¦n¡C¤£©¯ªº¬O¡A ¦³³\¦hªºµ{¦¡©M¤u¨ã(¥]§t¨t²Î¤u¨ã)§â¼Æ¦r¼g¦º¦bµ{¦¡¸Ì(¨Ã«DÁ`¬O 8 ©Î 9¡A¦³®É¬O¥j©Çªº 15¡B20µ¥µ¥)¡C ³o¤£¥u·|§â§Aªº°O¿ýÀɧËÃa(¨Ó¦Û©óÅܰʪø«×©M©T©wªø«×°O¿ýªº®t²§)¡A¤]·|¯}Ãa Sun ªº NIS «È¤áºÝªº¹B§@¡A©M¨ä¥¦ UNIX ¨t²Îªº¥æ¤¬§@¥Î¤]¥i¯à¦³¼ç¦bªº°ÝÃD¡C ¦b FreeBSD 3.0 ¥H¤Î¤§«áªºª©¥»¡A±b¸¹ªº³Ì¤jªø«×¼W¥[¨ì 16 ­Ó¦r¤¸¡A ¦Ó¨º¨Ç¼g¦ºªø«×ªºµ{¦¡¤]§ä¥X¨Ó­×¥¿¡C¥¿¦]¬°¼vÅT¨t²Îªº½d³ò«Ü¼s¡A©Ò¥Hª½¨ì 3.0 ¤~ºâ¤j­P­×§ï§¹¦¨¡C ¦pªG§A¦³¦Û«H¦b¥X°ÝÃDªº®É«á¯à¦Û¦æ¸Ñ¨M¡A§A¥i¥H¥Î¤U­±ªº¤èªkÅý¸û¦­ªº ª©¥»¤ä´©¸ûªøªº±b¸¹¡C­×§ï /usr/include/utmp.h ¤¤ªº UT_NAMESIZE¡C§A¤] ¥²¶·§â /usr/include/sys/param.h ¤¤ªº MAXLOGNAME §ï¦¨¸ò UT_NAMESIZE ¬Û²Å¡C³Ì«á¡A¦pªG§A¬O±q­ì©lµ{¦¡«Ø¥ß¨t²Î¡A§O§Ñ¤F /usr/include ¨C¦¸³£ ·|§ó·s¡I­×§ï /usr/src/.. ¤¤¾A·íªºÀɮסC §Ú¯à¦b FreeBSD ¤U¶] DOS µ{¦¡¶Ü¡H ¬Oªº¡A±q 3.0 ª©¶}©l¥i¥H¨Ï¥Î¤w¸g¾ã¦X¨Ã¥[±jªº BSDI rundos DOS ¼ÒÀÀ¾¹¡C¦pªG§A¹ï³o­ÓªF¦è¦³¿³½ì¡A°e«Ê«H¨ì The FreeBSD emulation °Q½×°Ï¡C ¹ï 3.0 ¤§«eªº¨t²Î¡A¦b port ¤¤¦³¤@­Ó·¥¨Îªº¤u¨ãµ{¦¡ pcemu ¥i¥H¼ÒÀÀ 8088 ©M¨¬°÷ªº BIOS ªA°È¥H°õ¦æ DOS ¤å¦r¼Ò¦¡µ{¦¡¡C¥¦¶·­n X Window System(¥Ñ XFree86 ´£¨Ñ)¡C ¬Æ»ò¬O ``sup''¡A¦p¦ó¨Ï¥Î¡H SUP ·N«ä¬O Software Update Protocol¡A¥Ñ CMU µo®i¥Hºû«ùµo®iªº¦P¨B¡A §Ú­Ì§Q¥Î¥L¨Ó«O«ù»·ºÝªº¯¸¥x©M­ì©l¯¸¥x¦P¨B¡C SUP ¹ïÀW¼eªº¨Ï¥Î¤£¤Íµ½¡A¦Ó¥B¤w¸g¤£¨Ï¥Î¤F¡C¥Ø«e«ØÄ³ºû«ù­ì©l½X§ó·sªº¤èªk¬O ¨Ï¥Î¤â¥U¤¤ªº CVSup¡C How cool is FreeBSD¡H °Ý¡G¦³¤H°µ¹L FreeBSD °õ¦æ®Éªº·Å«×´ú¸Õ¶Ü¡H§Úª¾¹D Linux ¤ñ DOS ²D¡A ¦ý¨SÅ¥¤H´£¹L FreeBSD¡A¦ü¥G«Ü¼ö¡C µª¡G¨S¦³¡A¦ý¬O¦b¨ýı¤W¦³°µ¹LµL¼Æ¦¸´ú¸Õ¡C§Ú­Ìé¤W¦ÛÄ@¨ü¸ÕªÌªº ²´·ú¡A¨Æ¥ý¦Aµ¹¥L­ÌªA¥Î 250 ²@§Jªº LSD-25 °g¤ÛÃÄ¡C35% ªº¨ü¸ÕªÌ»¡ FreeBSD ¹Á°_¨Ó¹³¾ï¤l¡A¦Ó Linux «h¬Oµµ¦âªººd¾ðªG¹ê¡C¾Ú§Ú©Òª¾¡A¨S ¦³¤@²Õ´£¨ì·Å«×¤W¯S§Oªº®t²§¡C«á¨Óµo²{¡A¦³¤Ó¦h¨ü¸ÕªÌ¦b´ú¸Õ®É¹Ú¹C¨« ¥X©Ð¶¡¼vÅT¨ì¼Æ¾Ú¡A³Ì«á¥u±o©ñ±ó¾ã­Ó½Õ¬d¡C§Ú·Q¤j³¡¥÷ªº¨ü¸ÕªÌ²{¦b¦b Apple ¤u§@¡AÄ~ Drag and Drop ¤§«á¡A¬ã¨s¥þ·sªº Scratch and Sniff ¹Ï§Î¬É­±¡CIt's a funny old business we're in¡I ¤£¶}ª±¯º¤F¡AFreeBSD ©M Linux ³£¨Ï¥Î ``HLT'' (halt) «ü¥O ¥H¦b¨t²Î¶¢¸m®É­°§C¹q¤Oªº¨Ï¥Î¤]´î¤Ö¤F¼öªº²£¥Í¡C¦pªG¦³³]©w APM (automatic power management)¡AFreeBSD ¤]¥i¥HÅý CPU ¶i¤J§C¹q¤O ¼Ò¦¡¡C ½Ö¦b§Úªº°O¾ÐÅé´¡¼Ñ¤¤¨F¨F§@ÅT¡H¡H °Ý¡GFreeBSD ½s֤ͮ߮ɦ³°µ¬Æ»ò "©_¯S" ªº¨ÆÅý°O¾ÐÅé¨F¨F§@ÅT¶Ü¡H ·í½sĶ®É(ÁÙ¦³¶}¾÷®É½T»{³nºÐ«áªºµu¼È®É¶¡)¡A¤]ºØ¦ü¥G¨Ó¦Û°O¾ÐÅé´¡¼Ñ ªº©_©ÇÁn­µ¡C µª¡G¬Oªº¡I¦b BSD ªº¤å¥ó¤¤§A·|±`±`¬Ý¨ì ``­I«áÆF''¡A¤j³¡¥÷ªº¤H ³£¤£ª¾¹D¨º¬O¤@ºØ¹ê»Ú¦s¦bªººë¯«Åé --- ´x±±µÛ§Aªº¹q¸£¡C§AÅ¥¨ìªºÁn­µ ¬O³o¨Ç­I«áÆF¥H°ª­µ¤f­ï¦b·¾³q«ç¼Ë°µ³\¦hªº¨t²ÎºÞ²z¤u§@¡C ¦pªG³o¨ÇÁn­µ«Ü§xÂZ§A¡A¨Ó¦Û DOS ªº ``fdisk /mbr'' ´N ¯àÂ\²æ¡A¦ý¦pªG¦³¬Û¤Ïªº®ÄªG¤]¤£­nÅå³Y¡C¨Æ¹ê¤W¡A¦pªG¦b»ö¦¡¤¤Å¥¨ì Bill Gates ®£©ÆªºÁn­µ±q¤º«Øªº³â¥z¶Ç¨Ó¡A°¨¤W°k¦Ó¥B¤£­n¦^ÀY¡I ±q BSD ­I«áÆF¤£¥­¿Åªº¼vÅT¤¤¸Ñ©ñ¡ADOS ©M Windows ­I«áÆF³q±`³£¯à ­«·s±±¨î¾ã¥x¾÷¾¹¨Ã¹ï§AªºÆF»î¶A©G¡C¦pªG¦³¿ï¾Ü¡A§Ú·Q§Ú¹çÄ@²ßºD©_ ©ÇªºÁn­µ¡C MFC ¬O¬Æ»ò·N«ä¡H MFC ¬O 'Merged From -CURRENT' ªºÁY¼g¡C¨Ï¥Î¦b CVS °O¿ý¤¤¥H ªí¥Ü±q CURRENT ¤¤¾ã¦X¶i STABLE ¤À¤äªº§ïÅÜ¡C 'BSD' ¬O¤°»ò·N«ä¡H ¦b¥u¦³·|­ûª¾¹Dªº¯µ±K»y¨¥¤¤¡A¥¦¥Î¨Óªí¥Ü¬YºØªF¦è¡C§Ú­ÌµLªk§@¤å¦r¤Wª½±µªºÂ½Ä¶¡A ¥u¯à»¡¥¦ªº·N«ä¤j·§¦b '¤@¯Å¤èµ{¦¡Áɨ®'¡B'¥øÃZ¬O¦n¦Yªº¤pÂI¤ß'¡B©M '§Ú­Ì¤ñ Linux ¨Ó±o¦³«ÕÀq·P' ³o¤TªÌ¤§¶¡¡C:-) ¥¿¸gÂI¡ABSD ¬O 'Berkeley Software Distribution' ªºÁY¼g¡A¥Ñ·í®Éªº Berkeley CSRG(Computer Systems Research Group)¿ï¨Ó·í§@¥L­Ì©Òµo¦æ Unix ª©¥»ªº¦WºÙ¡C ­n´X­Ó FreeBSD hacker ¤~¯à´«±¼¤@­Ó¹q¿Oªw¡H ¤@¤d¤@¦Ê¤C¤Q¤G­Ó¡G ¤G¤Q¤T­Ó¦b -current ¤W©ê«è¬Ý¤£¨ì¥ú¤F¡F ¥|­Ó«ÅºÙ³o¬O³]©w¤Wªº°ÝÃD¡A©Ò¥H¹³³o¼Ëªº email À³¸Ó©ñ¦b -questions¡F ¤T­Ó submit PR¡A¨ä¤¤¤@­Ó°e¿ù¨ì doc ¤U¡A¨Ã¥B¤º®e¥u¦³¡¨³o¸Ì¦n·t¡¨¡F ¤@­Ó commit ©|¥¼´ú¸Õªº¹q¿Oªw¡A³y¦¨¤£¯à buildworld¡A¤­¤ÀÄÁ«á¥L§â­ì¨Ó ªº¿Oªw´«¦^¨Ó¡F ¤K­Óº´°_ flame war¡A³d©Ç°e¥X PR ªº¤H¨S¦³¥]¬A patch¡F ¤­­Ó®I«è buildworld Äê±¼¤F¡F ¤T¤Q¤@­Ó»¡ buildworld ¥i¥H¥Î¡A¤£¯à¥Îªº¤H¤@©w¬O cvsup ªº®É¾÷¤£¹ï¡F ¤@­Ó§â´«¦¨·s¿Oªwªº patch ¥á¨ì -hackers ¤W¡F ¤@­Ó»¡¥L¤T¦~«e´N°µ¥X¤F patch¡A¦ý°e¨ì -current «á«o³Q©¿²¤±¼¡A©Ò¥H¥L ¹ï¾ã­Ó PR ¨t²Î¦³«Ü¤£¦nªº¦L¶H¡C¦¹¥~¡A¥L¤]»{¬°®³¥Xªº·s¿OªwµLªk¤Ï¥ú¡F ¤T¤Q¤C­Ó©H­ý»¡¹q¿Oªw¤£ÄÝ©ó°ò¥»¨t²Îªº¤@³¡¥÷¡A©Ò¥H committer ¤£¯à¤£¥ý ¿Ô¸ß¾ã­Ó Community ªº·N¨£´N³o¼Ë°µ¤U¥h¡CÁÙ¦³¡A-CORE ¨ì©³©M³o¥ó¨Æ¦³¤°»ò Ãö«Y¡H¡I ¨â¦Ê¤H©ê«è´«¿Oªw¤§«á¡A¸}½ñ¨®´×ªºÃC¦âÅܱo¦n©_©Ç¡F ¤T­Ó«ü¥X¡A¥Î¨Ó´«¿Oªwªº patch ¤£²Å¦X style(9) ªº³W©w¡F ¤Q¤C­Ó®I«è®³¥X¨Óªº·s¿Oªw¬°¤°»ò¬O¥Î GPL¡F ¤­¦Ê¤K¤Q¤»¤H³´¤J¤@³õ flame war¡A¦b GPL¡BBSD¡BMIT¡BNPL ¦U­Ó license ©M FSF ¬Y¦ì¤£¨ã¦W³Ð¿ì¤H¤h­Ó¤H½Ã¥Í¤§¶¡¡A¤ñ¸û©¼¦¹ªºÀu¶Õ¡F ¤C­Ó±N³o¤@¦ê°Q½×ªº¤£¦P³¡¥÷¤À§O²¾¨ì -chat ©M -advocacy¡F ´Nºâ´£¥Xªº·s¿Oªw¤ñªº·t¡AÁÙ¬O¦³¤@­Ó§â¥¦ commit ¶i¨Ó¡F ¨â­Ó´«¦^­ì¥ýªº¿Oªw¡A¨Ã¥B¯d¤U·¥¬°¼««ãªº commit °T®§¡C¥L­Ì»{¬°»P¨äÅý FreeBSD ¥Î·t¿Oªw¡AÁÙ¤£¦p°®¯Ü«Ý¦b¶Â·t¤¤ºâ¤F¡F ¥|¤Q¤»¤H¹ï¨ú®ø¤£¥Î·t¿Oªw³o¥ó¨Æ¤jÁn¯e©I¡A­n¨D -core ¥ß¨è´£¥X¼á²M¡F ¤Q¤@­Ó­n¨D´«¦¨¤p¤@ÂIªº¹q¿Oªw¡A¥H«K¥¼¨Ó FreeBSD ¦pªG²¾´Ó¨ì¹q¤lÂû¤W«á ·|§ó¬°¤è«K¡F ¤C¤Q¤T¤H©ê«è -hackers ©M -chat ¤Wªº SNR¡AÂÇ unsubscribe ¨Óªí¥Ü§Üij¡F ¤Q¤T­Ó°e¥X "unsubscribe"¡B¡¨§Ú­n¦p¦ó unsubscribe¡¨©Î¡¨«ô°U§â§Ú±q list ¦W³æ¤¤§R±¼¡¨¡A«Hªº³Ì«á­±«h¬O¤@¯ë¥Ñ majordomo ¥[¤W¥hªº footer¡F ·í¨C­Ó¤H¦£©ó©¼¦¹¥s½|®É¡A¦³­Ó³Ã¥ë¶X¨S¤Hª`·N¡A§â¥i¥H¥Îªº¿Oªw°½°½´«¤W ¥h¡F ¤T¤Q¤@­Ó«ü¥X¦pªG¥Î TenDRA ½sĶ·sªº¿Oªw¡A·|¤ñªº¨Ó±o«G 0.364%¡]ÁöµM ¿Oªw·|³Q½sͦ¨¥¿¤»­±Åé¡^¡A©Ò¥H FreeBSD ¤º©wªº½s;¹À³¸Ó¬O TenDRA¡A¦Ó¤£ ¬O EGCS¡F ¦³­Ó¤H»¡·s¿Oªw¯Ê¥F¬ü·P¡F ¤E­Ó¤H¡]¥]¬A­ì¥ý°e PR ªº¤H¡^°Ý¡¨¤°»ò¬O MFC¡H¡¨¡F ¤­¤Q¤C­Ó©ê«è¦Û±q´«¤F¿Oªw«á¡A¨â­Ó¬P´Á³£¨S¦³¥ú¥X²{¡C Nik Clayton ¸Éª`¡G ­è¬Ý¨ì®É¡A§Ú§Ö¯ºÂ½¤F¡C µM«á·Q¨ì¡A¡¨µ¥¤@¤U¡A¤£¬OÀ³¸ÓÁÙ¦³¤@­Ó­n±N³o¨Ç°O¦b list ¤W¶Ü¡H¡¨ ±µµÛ²×©ó¤F¸Ñ§Úªº¨Ï©R :-) µ¹¦³¤ß²`¤J¬ã¨sªº FreeBSD hacker SNAPs ©M RELEASEs ¬O¤°»ò¡H ¥Ø«e¦³¤T­Ó¬¡ÅD/¥b¬¡ÅDªº¤À¤ä¦b FreeBSD ªº CVS Repository: RELENG_2_2 §Y 2.2-stable §Y "2.2 branch" RELENG_3 §Y 3.x-stable §Y "3.0 branch" HEAD §Y §Y 4.0-current ¦p¦P¨ä¥L¨â­Ó¡AHEAD ¨Ã¤£¬O¯u¥¿ªº branch tag¡A¥¦¥u¬O¤@­Ó²Å¸¹ ±`¼Æ¡A«ü¦V "current¡G©|¥¼¤À¤äªºµo®i¤¤ª©¥»" ¡A²°O¬° ¡C ¥H²{¦b¨Ó»¡¡A ´Â¦V 4.0 µo®i¡A¦Ó 3.0-stable ³o ­Ó¤À¤ä¡A¤]´N¬O RELENG_3¡A¦b 1999 ¦~ 1 ¤ë±q ¤À¥X ¨Ó¡C 2.2-stable ³o­Ó¤À¤ä¡A¤]´N¬O RELENG_2_2¡A¬O¦b 1996 ¦~ 11 ¤ë±q -current ¤À¥X¨Ó¡C 2.1-stable ³o­Ó¤À¤ä¡A¤]´N¬O RELENG_2_1_0¡A«h¬O¦b 1994 ¦~ 9 ¤ë±q -current ¤À¤ä¥X¨Ó¡A³o­Ó¤À¤ä¤w¸g§¹¥þ°h¥ð¤F¡C §Ú­n«ç»ò§@¥X¦Û¤vªº release¡H °µ release ¥]¬A¤U­±³o¤T­Ó¨BÆJ¡G­º¥ý¡A°µ¥X¦³ vn ³o­ÓÅX°Êµ{ ¦¡ªº¥i¥Î kernel¡C§â¤U­±³o¤@¦æ¥[¨ì kernel ³]©wÀÉ¡AµM«á°µ¥X·sªº kernel ­«·s¶}¾÷¡G pseudo-device vn #Vnode driver (turns a file into a device) ±µµÛ¡A§A¤â¤W­n¦³¾ã­Ó CVS repository¡C¥i¥H°Ñ¦Ò CVSUP ³o½g¤å³¹¡A¦ý¦b supfile ¤¤§â release ¦WºÙ³]¦¨ cvs¡A¦A§R±¼©Ò¦³ tag ©Î date ªºÄæ¦ì¡A¦p ¤U¡G *default prefix=/home/ncvs *default base=/a *default host=cvsup.FreeBSD.org *default release=cvs *default delete compress use-rel-suffix ## Main Source Tree src-all src-eBones src-secure # Other stuff ports-all www doc-all µM«á°õ¦æ cvsup -g supfile §â©Ò¦³ªF¦è³£§ì¤U¨Ó... ³Ì«á¡AµwºÐ­n¦³¬Û·í¤jªºªÅ¶¡¨Ó°µ release¡C°²³]§A·Q§â¥¦©ñ¦b /some/big/filesystem ³o¸Ì¡A¤W­±³o­Ó¨Ò¤l¤]§â CVS repository ©ñ¦b /home/ncvs ¤F¡A±µµÛ¡G setenv CVSROOT /home/ncvs # or export CVSROOT=/home/ncvs cd /usr/src/release make release BUILDNAME=3.0-MY-SNAP CHROOTDIR=/some/big/filesystem/release ¾ã­Ó release ·|°µ¦b /some/big/filesystem/release¡Cµ²§ô ®É /some/big/filesystem/release/R/ftp ³o­Ó¥Ø¿ý¥i¥Hª½±µ¥Î ¨Ó°µ¬° FTP ¦w¸Ë¤è¦¡ªº¨Ó·½¡C¦pªG·Q°µ¥X -current ¥H¥~¤À¤äªº SNAP¡A ¦b¤W­± make release ³o¤@¦æ¥[ RELEASETAG=SOMETAG¡CÁ|¨Ò¨Ó»¡¡A RELEASETAG=RELENG_2_2 ³o­Ó°Ñ¼Æ·|°µ­Ó§Y®Éªº 2.2-STABLE snapshot¡C «ç¼Ë¤~¯à°µ¥X¦Û¤v¥Îªº¦w¸ËºÏ¤ù¡H «Ø¥ß¦w¸ËºÏ¤ù¡BÁÙ¦³°µ¥X source/binary archive¡A³£¬O¥Ñ /usr/src/release/Makefile ¸Ì­±ªº¦UºØ target ¦Û°Ê²£¥Í¡A³o ­ÓÀɮ׸̪º¸ê°TÀ³¸Ó¨¬¥H¶}©l¡C¦ý¬O³o­Ó¹Lµ{²o¯A¨ì make world¡A©Ò¥H·| ¥Î¨ì¬Û·í¦hªº®É¶¡©MµwºÐªÅ¶¡¡C ``make world'' §â­ì¨Ó¸Ëªº binary Àɳ£´«±¼¤F¡C ¨S¿ù¡A´N¬O³o¼Ë¤l¡C¦p¦W¦r©Ò¥Ü¡A``make world'' ·|­«·s½s͍t²Î¤º«Ø ªº¨C­Ó binary ÀÉ¡A³o¼Ë¦bµ²§ô®É´N¥i½T©w¦³­Ó¤@­P¥B°®²bªºÀô¹Ò(©Ò¥H­n ªá¤W¦n¤@¬q®É¶¡)¡C ¦b°õ¦æ ``make world'' ©Î ``make install'' ®É¡A¦pªG¦³ ³] DESTDIR ³o­ÓÀô¹ÒÅܼơA·s²£¥Íªº binary ±N·|¸Ë¦b ${DESTDIR} ¤Uªº¦P¼Ë¥Ø¿ý¾ð¤¤¡C¦ý¦b¬Y¨Ç­× §ï shared library ©M­««Ø binary ªºµL¯S©w±¡ªp¤U¡A³o¼Ë°µ¥i¯à·|¨Ï ``make world'' ¥¢±Ñ¡C ¦b¨t²Î¶}¾÷®É¡A¥X²{ ``(bus speed defaulted)''¡C Adaptec 1542 SCSI ¥d¤¹³\¨Ï¥ÎªÌ¥Î³nÅé½Õ¾ã¶×¬y±Æªº¦s¨ú³t«×¡C¦­ ´Áªº 1542 ÅX°Êµ{¦¡¸Õ¹Ï±N¥¦³]¦¨¥i¥Îªº³Ì§Ö³t«×¡A¦ý«á¨Óµo²{¦b¤@¨Ç ¾÷¾¹¤W¤£¯à¥Î¡A©Ò¥H²{¦b­n¦b kernel ³]©w¤¤¥[ ``TUNE_1542'' ³o­Ó¿ï¶µ¨Ó±Ò°Ê³o­Ó¥\¯à¡C¦b¤ä´©ªº¾÷¾¹¤W¥Î³o­Ó¿ï¶µ·|¨ÏµwºÐ¦s¨ú§ó §Ö¡A¦ý¦b¤£¤ä´©ªº¾÷¾¹¤W¦³¥i¯à·|·´±¼¸ê®Æ¡C §Úªººô¸ô³s½u¤£§Ö¡A¨º¥i¥H¸òµÛ current ªºµo®i¶Ü¡H ¥i¥H¡AÂÇµÛ CTM ´N ¥i¥H¤£¥Î¤U¶Ç©Ò¦³ªº­ì©l½X¥Ø¿ý¾ð¡C §A¬O«ç»ò§âµo¦æª©¥»¤¤ªºÀɮפÁ¦¨¤@­Ó­Ó 240k ªº¤pÀɮסH ¦b¥H BSD ¬°¥Dªº¸û·s¨t²Î¤¤¡Asplit ¦³­Ó ``'' ¿ï¶µ¡A¬O¥Î¨Ó §âÀÉ®×¥H¥ô·N¼Æ¥Ø byte ¤Á¶}¡C ³o¸Ì¬O /usr/src/Makefile ¤¤ªº¤@­Ó¨Ò¤l¡G bin-tarball: (cd ${DISTDIR}; \ tar cf - . \ gzip --no-name -9 -c | \ split -b 240640 - \ ${RELEASEDIR}/tarballs/bindist/bin_tgz.) §Ú¦b kernel ¸Ì¥[¤F¨Ç·s¥\¯à¡A­n§â¥¦±Hµ¹½Ö¡H ½Ð¬Ý¤@¤U Handbook ¤¤¥[¤Jµ{¦¡½Xªº³¡¥÷¡C ¦P®É¤]·PÁ§Aªº¶O¤ß¡I ISA ªº Plug N Play ¥d¬O«ç»ò°»´ú©Mªì©l¤Æªº¡H ¥Ñ Frank Durda IV ©Ò¼g¡G ²³æªº»¡¡A·í¥D¾÷µo¥X¬O§_¦³ PnP ¥dªº¸ß°Ý°T¸¹®É¡A©Ò¦³ªº PnP ·|¦b´X­Ó©T©wªº I/O port §@¦^À³¡C©Ò¥H·í°»´ú PnP ªºµ{¦¡¶}©l®É¡A¥¦ ·|¥ý°Ý¦³¨S¦³ PnP ¥d¦b¡A±µµÛ©Ò¦³ PnP ¥d·|¦b¥¦©ÒŪªº port ¥H¦Û¤v ªº«¬¸¹ # §@¦^µª¡A³o¼Ë°»´úµ{¦¡´N·|±o¨ì¤@­Ó wired-OR ``yes'' ªº¼Æ¦r¡A¨ä¤¤¦Ü¤Ö·|¦³¤@­Ó bit ¬O¥´¶}ªº¡CµM«á°»´úµ{¦¡·|­n¨D«¬¸¹ (¥Ñ Microsoft/Intel«ü©w)¤p©ó X ªº¥d``Â÷½u''¡A¦A¥h¬Ý¬O§_ÁÙ¦³¥d¦^ µª¦P¼Ëªº¸ß°Ý¡A¦pªG±o¨ì ``0''¡A´Nªí¥Ü¨S¦³«¬¸¹¤j©ó X ªº¥d¡C ²{¦bµ{¦¡·|°Ý¬O§_¦³«¬¸¹¤p©ó X ªº¥d¡A¦pªG¦³ªº¸Ü¡Aµ{¦¡¦A­n«¬¸¹¤j©ó X-(limit/4) ªº¥dÂ÷½u¡AµM«á­«ÂФW­±ªº°Ê§@¡C¥Î³oºØÃþ¦ü binary search ªº¤èªk¡A¦b¬Y½d³ò¤º§ä­Ó´X¦¸«á¡A°»´úµ{¦¡³Ì«á·|¦b¾÷¾¹¤¤°Ï¤À ¥X©Ò¦³ªº PnP ¥d¡A·j´M¦¸¼Æ¤]»·§C©ó¤@­Ó­Ó§äªº 2^64 ¦¸¡C ¤@±i¥dªº ID ¥Ñ¨â­Ó 32-bit(©Ò¥H¤W­±¬O 2ˆ64) + 8bit °»¿ù ½X²Õ¦¨¡A²Ä¤@­Ó 32 bits ¬O¥Î¨Ó°Ï¤À¦U®a¼t°Óªº¡C³o¨Ç¼t°Ó¨S¦³¥X¨Ó¼á ²M¹L¡A¦ý¬Ý¨ÓÀ³°²³]¦P¤@®a¥Xªº¤£¦PºØÃþªº¥dªº¼t°Ó ID ¦³¥i¯à¤£¦P¡C ¥Î 32 bits ¥u¨Óªí¥Ü¤£¦P¼t°Óªº·Qªk¹ê¦b¦³ÂI¹LÀY¤F¡C ²Ä¤G­Ó 32 bits «h¬O«¬¸¹ #¡B¤A¤Óºô¸ô¦ì§}¡B©Î¤@¨Ç¨Ï³o±i¥d¿W ¯Sªº¸ê®Æ¡C°£«D²Ä¤@­Ó 32 bits ¤£¦P¡A§_«h¼t°Ó¤£¥i¯à§@¥X²Ä¤G­Ó 32 bit ¬Û¦Pªº¨â±i¥d¡C©Ò¥H¦b¤@¥x¾÷¾¹¤¤¥i¥H¦³¦P¼Ëªº¦n´X±i¥d¡AµM¦Ó¥L­Ì ¾ã­Ó 64 bits ÁÙ¬O·|³£¤£¤@¼Ë¡C ³o¨â­Ó 32 bit ¥Ã»·³£¤£¥i¯à¬°¹s¡A³o¨Ï±o³Ì¶}©l binary search ¤¤ ªº wired-OR ·|±o¨ì¤@­Ó«D¹s¼Æ¦r¡C ¤@¥¹¨t²Î°Ï¤À¥X©Ò¦³¥dªº ID¡A±µµÛ·|¸g¥Ñ¦P¼Ëªº port ¤@­Ó­Ó­«·s±Ò °Ê¨C±i¥d¡A±µµÛ§ä¥X¤wª¾¤¶­±¥d©Ò»Ýªº¸ê·½¡B¦³­þ¨Ç¥i¥H¿ïªº interrupt µ¥µ¥¡C©Ò¦³¥d³£·|³Q±½´y¤@¦¸¡A¨Ó¦¬¶°³o¨Ç¸ê®Æ¡C ³o¨Ç¸ê°T±µµÛ©MµwºÐ¤Wªº ECU ÀɮסB©Î MLB BIOS ¸Ìªº¸ê®Æµ²¦X¦b¤@ °_¡A³q±`¬Oºî¦X ECU ©M MLB ¸Ìªº BIOS PnP ¸ê®Æ¡A³o¨Ç¶gÃä¨Ã¤£¤ä´©¯u ¥¿ªº PnP¡AµM¦Ó°»´úµ{¦¡¦bÀˬd BIOS ©M ECU ¸ê®Æ«á¡A¥¦¥i¥HÁ×§K PnP ¶gÃä©M¨º¨Ç°»´ú¤£¨ìªº¬Û½Ä¬ð¡C ±µµÛ¦A«×«ô³X³o¨Ç PnP ¶gÃä¡A³o¦¸·|§â¥i¥Îªº I/O¡BDMA¡BIRQ ©M°O ¾ÐÅé¬M®gªº¦ì§}³£«ü©wµ¹¥¦­Ì¡C³o¨Ç¶gÃä´N·|¥X²{¦b©Ò«ü©wªº¦a¤è¡Aª½¨ì ¤U¤@¦¸­«·s¶}¾÷¬°¤î¡A¤£¹L¤]¨S¦³¤H»¡¤£¯à§â¥¦­ÌÀH®É²¾¨Ó²¾¥h¡C ¤W­±¦³¬Û·í¦hªºÂ²¤Æ¡A¦ý§AÀ³¸Ó¤w¸g¤F¸Ñ¤j­Pªº¹Lµ{¡C Microsoft §âªí¥Ü¦Lªí¾÷ª¬ºAªº´X­Ó¥D­n port ®³¨Ó§@ PnP¡A¥L­Ìªº ÅÞ¿è¬O¨S¦³¤@±i¥d·|¦b³o¨Ç¦a¤è¸Ñ½X§@¬Û¤Ïªº I/O cycles¡C¦ý¬O§Ú§ä¨ì ¤@´Ú¦­´Á¤´¦bµû¦ô PnP ´£®×®Éªº IBM ­ì¼t printer board¡A¥¦ªº½T¥h¸Ñ ¹ï³o¨Çª¬ºA port ªº¼g¤J¸ê®Æ¡A¦ý¬O MS ``»¡¤F´Nºâ''¡C©Ò¥H¥¦­Ìªº½T¦³ ¹ï¦Lªí¾÷ª¬ºA port ¼g¤J¡AÁÙ¦³Åª¨ú¸Ó¦ì§} + 0x800¡B©M¥t¤@­Ó¦b 0x200 ¤Î 0x3ff ¤§¶¡ªº port¡C FreeBSD ¬O§_¦³¤ä´© x86 ¥H¥~ªº¾÷¾¹¬[ºc¡H ¦³´X¸s¤H¤h¤w¸gªí¥Ü¹ïµo®i¦h¥­¥x FreeBSD ªº¿³½ì¡A¨ä¤¤ FreeBSD/AXP (ALPHA) §Y¬O¨ä¤¤¬Û·í¦¨¥\ªº¨Ò¤l¡A¥i¥H¦b ftp://ftp.FreeBSD.org/pub/FreeBSD/alpha ³o¸Ì¨ú±o¥¦ªº 3.0 SNAPshot ª©¥»¡CALPHA ª©ªº FreeBSD ¦b¶V¨Ó¶V¦hªº ALPHA ¾÷¾¹¤W ¨Ï¥Î¡A¨ä¤¤¥]¬A¤F AlphaStation¡BAXPpci¡BPC164¡BMiata ©M Multia ³o´XºØ¡C­nµ¥¨ì¨t²Î¦w¸Ë¤u¨ã§¹¥þ¡B¯à¥Î¥úºÐ¦w¸Ë¡B¥H¤Î¦³¨¬°÷¯à¥Îªº port/package ¤§«á¡A§Ú­Ì¤~¥´ºâ§â¥¦·í§@§¹¾ãªºª©¥»¡A©Ò¥H²{¦bÀ³¸Ó§â FreeBSD/AXP ·í§@ BETA «~½èªº³nÅé¡C­Y­n¬ÛÃöª¬ªpªº®ø®§¡A½Ð¥[¤J freebsd-alpha@FreeBSD.org mailing list¡C ¤]¦³¤Hªí¥Ü¹L±N FreeBSD SPARC ª©¥»ªº¿³½ì¡A¦pªG§A·Q°Ñ¥[³o­Ó­pµe¡A ½Ð¥[¤J freebsd-sparc@FreeBSD.org mailing list¡C¦pªG·Q­nª¾¹DÃö©ó ·s¥­¥xªº°Q½×¡A½Ð¥[¤J freebsd-platforms@FreeBSD.org mailing list ¡C §Ú­è­è¼g¤F¬Y­Ó³]³ÆªºÅX°Êµ{¦¡¡A¯à¤£¯àµ¹¥¦¤@­Ó major number¡H ³o­n¬Ý§A¬O§_¥´ºâ±N³o­ÓÅX°Êµ{¦¡¤½¶}¨Ï¥Î¡A¦pªG¬Oªº¸Ü¡A½Ð§â¥¦ªº­ì©l ½X°e¤@¥÷µ¹§Ú­Ì¡AÁÙ¦³ files.i386 ­×§ïªº³¡¥÷¡Bkernel ³]©w Àɼ˥»¡B¥H¤Î¥Î¨Ó²£¥Í³]³ÆÀɪº MAKEDEV¡C ¦pªG§A¤£¥´ºâ¡B©Î¦]¬°ª©Åv°ÝÃD¦Ó¤£¯à¤½¶}ªº¸Ü¡A§Ú­Ì¦³¯S¦a«O¯d character major number 32 ©M block major number 8 µ¹³o¤è­±ªº¨Ï¥Î¡A ª½±µ¥Î³o¨â­Ó´N¦n¤F¡C¤£½×¦p¦ó¡A§Ú­Ì³£·|«Ü·P¿E§A¯à¦b freebsd-hackers@FreeBSD.org µoªíÅX°Êµ{¦¡ªº®ø®§¡C Ãö©ó©ñ¸m¥Ø¿ý©MÀÉ®× inode §@ªk¤Wªº¬Û²§ ¦b¦^µª¦³Ãö¥Ø¿ý©ñ¸m¤è¦¡¤£¦Pªº°ÝÃD¤W¡A§Ú¦b 1983 ¦~¼g¦n¥Ø«eªº§@ªk «á´N¨S¦³¦A§ïÅܹL¡A³oºØ¤è¦¡¬O°w¹ï­ì¥ýªº FFS Àɮרt²Î¡A«á¨Ó¤]¨S ¦³¹ï¥¦§@¥ô¦ó§ó°Ê¡C¥¦¦bÁ×§K cylinder group ³Q¶ñº¡³o¤è­±°µ±o¬Û·í ¦¨¥\¡A¦ý¬O´N¹³¦³¨Ç¤H¤w¸gª`·N¨ì¡A¥¦©M `find' ´N°t¦X±o¤£¤j¦n¡C¤j ³¡¥÷ªºÀɮרt²Î¬O¥Ñ¨º¨Ç¥Î depth first search(aka ftw) ²£¥Íªº archive »s³y¥X¨Ó¡A¸Ñ¥X¨Óªº¥Ø¿ý inode ·|¾î¸ó¦n´X­Ó cylinder group¡A¦pªG¥H«á­n°µ depth first search ªº¸Ü¡A³o¬O³ÌÁV¿|ªº±¡ªp¤§ ¤@¡C¦pªG§Ú­Ìª¾¹DÁ`¦@·|²£¥Í¦h¤Ö¥Ø¿ýªº¸Ü¡A¸Ñªk¬O¦b°µ¥ô¦ó¦s¨ú/¼g ¤J°Ê§@¤§«e¡A¦b¨C­Ó cylinder group ¤W¥ý³y¥X(©Ò¦³¥Ø¿ý¼Æ/cylinder greoup ªº¼Æ¥Ø)³o»ò¦hªº¥Ø¿ý¡C«Ü©úÅ㪺¡A§Ú­Ì¥²¶·­n¦³®Ú¾Ú¦a¥h²q³o ­Ó¼Æ¦r¡A´Nºâ¤@­Ó¹³ 10 ªº«Ü¤p©T©w¼Æ¥Ø¤]·|¨Ï®Ä²v¥H¯Å¼Æ¦¨ªø¡C°Ï¤À restore (§Y¸Ñ¶}¤W­zªº archive) ©M¤@¯ëÀÉ®×¾Þ§@ªº¤èªk¥i¥H¬O(²{¦b ¥Îªººtºâªk¥i¯à­n§ó±Ó·P)¡G¦pªG¤@¨Ç¥Ø¿ý(³Ì¦h 10 ­Ó)³£¦b 10 ¬í¤º²£ ¥Íªº¸Ü¡A¨º»ò´N§â³o¨Ç¥Ø¿ý»E¶°¦b¦P¤@­Ó cylinder group¡C¤£ºÞ«ç¼Ë¡A §Úªº¸gÅç«ü¥X³o¬O¤@­Ó¤w¸g¥R¥÷¹êÅç¹Lªº³¡¥÷¡C Kirk McKusick, September 1998 ¦p¦ó±q kernel panic ±o¨ì³Ì¦h¸ê°T¡H [³o¸`¬O±q Bill Paul ¦b freebsd-current mailing list ¤Wµoªí ªº«H¤¤¸`¿ý¡ADag-Erling Coïdan Smørgrav ­×¥¿¤F¥´¦r¿ù»~¡B¦A ¥[¤W¬A©·¸Ìªºª`¸Ñ¡C] From: Bill Paul <wpaul@skynet.ctr.columbia.edu> Subject: Re: the fs fun never stops To: ben@rosengart.com Date: Sun, 20 Sep 1998 15:22:50 -0400 (EDT) Cc: current@FreeBSD.org [<ben@rosengart.com> µoªí¤F¤U­±ªº panic °T®§] > Fatal trap 12: page fault while in kernel mode > fault virtual address = 0x40 > fault code = supervisor read, page not present > instruction pointer = 0x8:0xf014a7e5 ^^^^^^^^^^ > stack pointer = 0x10:0xf4ed6f24 > frame pointer = 0x10:0xf4ed6f28 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, def32 1, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 80 (mount) > interrupt mask = > trap number = 12 > panic: page fault ·í§A¬Ý¨ì¹³³o¼Ëªº°T®§®É¡A¥u§â¥¦«þ¤@¥÷°e¤W¨Ó¬O¤£°÷ªº¡C§Ú¦b¤W ­±¯S¦a¼Ð©úªº instruction pointer ­È¬Û·í­«­n¡A¤£©¯ªº¬O¥¦·|¦]³] ©w¦Ó¤£¦P¡C´«¥y¸Ü»¡¡A³o­Ó­È·|¸ò§A¥Îªº kernel image ÀɦÓÅܰʡC¦p ªG¬O¥Î¬Y­Ó snapshot ª©¥»ªº GENERIC kernel¡A¤]³\¨ä¥L¤H¥i¥H°lÂÜ ¨ì¥X°ÝÃDªº¨ç¦¡¡A¦ý¦pªG§A¬O¥Î¦Û­qªº kernel¡A¨º»ò¥u¦³§A¤~¯à §i¶D§Ú­Ì°ÝÃD¥X¦b¨º¸Ì¡C ­n°µªº¨Æ¥]¬A³o¨Ç¡G §â instruction pointer ªº­È°O¤U¨Ó¡Cª`·N¦b«e­±ªº 0x8: ¦b³o­Ó±¡ªp¤¤¨Ã¤£­«­n¡A§Ú­Ì­nªº¬O 0xf0xxxxxx¡C ·í¨t²Î­«·s¶}¾÷«á¡A°õ¦æ³o¹D©R¥O¡G % nm /(³y¦¨ panic ªº kernel ÀÉ®×) | grep f0xxxxxx ¨ä¤¤ f0xxxxxx ´N¬O°O¤U¨Óªº instruction pointer ­È¡C¦³¥i¯à ¤£·|­è¦n§ä¨ì§¹¾ãªº³o­Ó¦r¦ê¡A³o¬O¦]¬° kernel symbol table ¸Ìªº¦U ­Ó symbol ¥u¬O¨ç¦¡ªº¶i¤JÂI¡A¦ý instruction pointer ©Ò«üªº¦ì§}¦³ ¥i¯à¬O¦b¨ç¦¡¤ºªº¬Y¤@³B¡A¦Ó¤£¤@©w¦b¶}ÀY¡C©Ò¥H¦pªG§ä¤£¨ì¾ã­Ó¦r¦ê¡A ¨º»ò§â instruction pointer ­Èªº³Ì«á¤@­Ó¼Æ¦r®³±¼¡A¦A¸Õ¤@¦¸¡G % nm /kernel.that.caused.the.panic | grep f0xxxxx ¦pªG³o¼Ë¤]§ä¤£¨ì¡A¨º´N§â¥t¤@­Ó¼Æ¦r¥h±¼¦A§ä¡A¤@ª½­«½Æ¨ì§ä¨ì¬°¤î¡A µ²ªG¬O¤@¦ê¥i¯à³y¦¨ panic ªº¨ç¦¡¦Cªí¡C³o¼Ë¤ñª½±µ§ä¨ì¥X°ÝÃDªº¨ç¦¡ ¨Ó±o®t¡A¦ý¦Ü¤Ö¦n¹L¤°»ò³£¨S¦³¡C §Ú±`±`¬Ý¨ì¤H­ÌÅã¥Ü¤@¤j¤ù panic °T®§¡A¦ý«Ü¤Ö¬Ý¨ì¦³¤Hªá¤@ÂI®É¶¡ §â instruction pointer ©M kernel symbol table ¤¤ªº¨ç¦¡¤ñ¸û¤@¤U¡C ­n°lÂÜ¥X³y¦¨ panic ­ì¦]ªº³Ì¦n¤èªk¬O¥ý°µ¥X crash dump¡AµM«á¥Î gdb(1) ¦b¤W­±°µ stack trace¡C·íµM¡A³o­n¾a -current ¤¤ªº gdb(1) ¯à¹B§@¥¿±`¡AµM¦Ó§ÚµLªk«OÃÒ³o¤@ÂI¡C(°O±o¦³¤H»¡ ELF ªº gdb(1) ¦b kernel ªº crash dump ¤W¤£¯à¥¿±`¾Þ§@¡A¦b 3.0 ²æÂ÷ BETA ¶¥¬q®É³Ì¦n¦³¤H¥ýÀˬd³o¤è­±ªºª¬ªp¡A§K±o«Ü¦h¤H¦b¦¬¨ì 3.0 ¥úºÐ «áµÈ¬õ¤FÁy¡C) ¤£ºÞ¬O¨º¤@ºØ¡A§Ú³q±`¬O¥Î³o­Ó¤èªk¡G ¼g¦n kernel ³]©wÀÉ¡C¦pªG§A»Ý­n¥Î kernel debugger¡A¦b³]©w Àɤ¤¥[¤W `options DDB' ³o­Ó¿ï¶µ¡C(·í§ÚÃhºÃ¦³¥X²{µL½a°j°é®É¡A³q ±`·|¥Î³o­Ó¨Ó³]©w¤¤Â_ÂI¡C) ¥Î config -g KERNELCONFIG °µ¥X¥Î¨Ó½sĶªº¥Ø¿ý cd /sys/compile/KERNELCONFIG; make µ¥ kernel ½sĶ¥X¨Ó cp kernel kernel.debug strip -d kernel mv kernel /kernel.orig/ cp kernel / ­«·s¶}¾÷ [ª`·N¡G²{¦b FreeBSD 3.x kernel ¤º©w¬O ELF ®æ¦¡¡A©Ò¥HÀ³¸Ó ¥Î strip -g ¦Ó¤£¬O strip -d¡C¦pªG§Aªº kernel ¦]¬YºØ­ì ¦]¤´¬O a.out ®æ¦¡ªº¸Ü¡A«h¥Î strip -aout -d¡C] ª`·N§A¤£·|¯uªº¥Î¥]¬A©Ò¦³ debug symbol ªº kernel ¨Ó¶}¾÷¡A ¥Î ½sĶ¥X¨Óªº kernel ¤j¤p«Ü®e©ö´N¶W¹L 10MB¡C¤£»Ý­n¥Î³o»ò ¤jªº kernel ¶}¾÷¡A±ß¤@ÂI gdb(1) ¤~·|»Ý­n¥¦(gdb(1) ·|¥Î ¨ì¸Ì­±ªº symbol table)¡C©Ò¥H§Ú­Ì¤~·|§â§¹¾ãªº kernel ½Æ»s¤@¥÷¡A±µ µÛ¥Î strip -d §R±¼ debug symbol¡A°µ¥X²Ä¤G­Ó kernel¡A³o­Ó¤~¯u ¥¿®³¨Ó¶}¾÷¡C ­n½T©w¯à§ì¨ì crash dump¡A¥ý½s¿è /etc/rc.conf¡A±N dumpdev «ü¨ì swap ¤À³Î°Ï¡C³o¼Ë rc(8) ·|¥Î dumpon(8) ¨Ó±Ò°Ê crash dump¡A§A¤]¥i¥H¤â°Ê¥Î dumpon(8)¡C¦b panic ¤§«á¡A crash dump ¥i¥H¥Î savecore(8) ¦s°_¨Ó¡F¦pªG /etc/rc.conf ¸Ì¦³³] dumpdev¡A¨º»ò­«·s¶}¾÷«á rc(8) ·|¦Û°Ê°õ¦æ savecore(8) §â crash dump ¦s¦b /var/crash¡C ª`·N¡GFreeBSD ªº crash dump ³q±`©M¾÷¾¹¸Ìªº¹ê»Ú°O¾ÐÅé¤@¼Ë¤j¡A ´N¹³¦pªG¦³ 64MB °O¾ÐÅé¡Acrash dump ¤j¤p´N¬O 64MB¡C©Ò¥H­n½T©w /var/crash ¤U¦³¨¬°÷ªºªÅ¶¡¡A©Î¬O¥i¥H¤â°Ê°õ¦æ savecore(8) §â crash dump ©ñ¨ì¥t¤@­ÓªÅ¶¡¸û°÷ªº¥Ø¿ý¤U¡C¥t¤@ºØ¤]³\¥i¥H­­¨î crash dump ªº¤èªk¡A¬O¦b kernel ³]©wÀɤ¤¥Î options MAXMEM=(foo)¡A ±N kernel ¥i¥Îªº°O¾ÐÅé­­¨î¦b¦X²zªº¤j¤p¡CÁ|¨Ò¨Ó»¡¡A¦pªG§A¦³ 128MB ªº°O¾ÐÅé¡A¦ý¬O¥i¥H­­¨î kernel ¥u¯à¥Î 16MB ªº°O¾ÐÅé¡A³o¼Ë crash dump ´N¬O 16MB ¦Ó¤£¬O 128MB ¤F¡C ¤@¥¹µo²{¦³¤F crash dump¡A´N¥i¥H¥Î gdb(1) ¨Ó°µ stack trace ¡A¦p¤U©Ò¥Ü¡G % gdb -k /sys/compile/KERNELCONFIG/kernel.debug /var/crash/vmcore.0 (gdb) where ­nª`·N¥i¯à·|¥X²{¦n´X­Ó¿Ã¹õªº¥i¥Î¸ê°T¡A§A¥i¥H¥Î script(1) §â©Ò¦³¿é¥X³£¦s°_¨Ó¡C¥Î¥]¬A©Ò¦³ debug symbol ªº kernel ¨Ó°£¿ù¡A ³o¼ËÀ³¸Ó¥i¥Hª½±µÅã¥Ü panic ¬Oµo¥Í¦b¨º¤@¦æ¡C³q±`¬O¥Ñ¤U©¹¤WŪ stack strace¡A³o¼Ë¤~¯à¤@­Ó­Ó°lÂÜ¥X¦³­þ¨Ç°Ê§@¤Þ¨ì crash¡C¤]¥i¥H¥Î gdb(1) §â¦UºØÅܼƩε²ºcªº¤º®e¦L¥X¨Ó¡A¥HÀˬd¨t²Î crash ®Éªº ¹ê»Úª¬ºA¡C ¦n°Õ¡A¦pªG§A¦³²Ä¤G¥x¹q¸£¦Ó¥B¦³°÷ºÆ¨g¡A¥i¥H±N gdb(1) ³]©w ¦¨»·ºÝ°£¿ù¡C³o¼Ë§A¥i¥H¦b¤@¥x¾÷¾¹¤¤¥Î gdb(1) ¥h°£¿ù¥t¤@¥x¸Ìªº kernel¡A¥i¥H°õ¦æªº¥]¬A³]©w¤¤Â_ÂI¡B¦b kernel ­ì©l½X¤¤¤@¨B¨B°õ¦æµ¥ µ¥¡A´N¹³¦b¤@¯ë¨Ï¥ÎªÌµ{¦¡¤W°£¿ù¤@¼Ë¡C¥Ñ©ó¨S¦³¤°»ò¾÷·|¬°°£¿ù¦Ó³]¸m ¨â¥x¨Ã¾F¹q¸£¡A©Ò¥H§ÚÁÙ¨S¦³³o¼Ëª±¹L¡C [Bill ªþª`¡G§Ú§Ñ¤F´£¨ì¤@ÂI¡G¦pªG§A¦³±Ò°Ê DDB ¦Ó kernel ¤] ¤w¸g¶i¤J°£¿ù¾¹¡A¥i¥H¦b DDB ©R¥O¦C¤U¥´ `panic'¡A±j­¢²£¥Í panic(ÁÙ ¦³ crash dump)¡C¤]¦³¥i¯à¦b panic ¶¥¬q®É¦A¶i¤J°£¿ù¾¹¡A¦pªG³o¼Ëªº¸Ü ¡A¿é¤J `continue'¡A±µµÛ¥¦´N·|§¹¦¨ crash dump¡C -ed] dlsym() ¹ï ELF °õ¦æÀɤ£¯à¥Î! ¦b ELF ¤@¨t¦Cªº¤u¨ã¤¤¡A¤º©w¬O¤£·|Åý dynamic linker ¬Ý¨ì°õ¦æÀÉ ¸Ì©w¸q¤F­þ¨Ç symbol¡C©Ò¥H dlsym() ¨S¦³¿ìªk¥ÎÂǥѩI¥s dlopen(NULL, flags) ¨ú±oªº handle¡A¥Î¥¦¥h·j´M¦³¨º¨Ç symbol ¤@©w·|¥¢±Ñ¡C ¦pªG§A·Q­n¥Î dlsym() §ä¥X¬Y­Ó process ªº¥D°õ¦æÀɤ¤ ¦³­þ¨Ç symbol¡A«h­n¦b link ®É¹ï ELF linker ¥[¤W ³o­Ó°Ñ¼Æ¡C ¼W¥[©Î´î¤Ö kernel ¯à©w§}ªºªÅ¶¡ ¨t²Îªº¤º©w¬O¡AFreeBSD 3.x kernel ¯à©w§}¨ì 256 MB¡A4.x «h¬O 1 GB¡C¦pªG¬Oºô¸ô­t²ü¬Û·í­«ªº¦øªA¾¹(´N¹³¤j«¬ FTP ©Î HTTP ¦øªA¾¹)¡A 256 MB ¥i¯à·|¤£¤j°÷¡C ­n«ç»ò¼W¥[©w§}ªÅ¶¡©O? ­n±q¨â¤è­±µÛ¤â¡C­º¥ý§i¶D kernel ¥»¨­­n «O¯d¸û¤jªÅ¶¡; ¨ä¦¸¡A¬JµM¬O¦b©w§}ªÅ¶¡ªº³Ì¤W­±¸ü¤J kernel¡A©Ò¥HÁÙ ­n½Õ§C¸ü¤Jªº¦ì§}¡A§_«h´N·|¶W¹L©w§}½d³ò¡C ¼W¥[ src/sys/i386/include/pmap.h ¸Ìªº NKPDE ­È «K¥i¹F¦¨²Ä¤@­Ó¥Ø¼Ð¡C1 GB ªº©w§}ªÅ¶¡·|¹³³o¼Ë¡G #ifndef NKPDE #ifdef SMP #define NKPDE 254 /* addressable number of page tables/pde's */ #else #define NKPDE 255 /* addressable number of page tables/pde's */ #endif /* SMP */ #endif ­nºâ¥X NKPDE ªº¥¿½T­È¡A±N·Q­nªºªÅ¶¡¤j¤p(¥H megabyte ¬°³æ ¦ì)°£¥H 4¡A±µµÛ³æ CPU ¾÷¾¹´î 1¡AÂù CPU «h¬O´î 2¡C ­n¸Ñ¨M²Ä¤G­Ó°ÝÃD¡A¥²¶·¦Û¦æºâ¥X kernel ³Q¸ü¤Jªº¦ì§}¡G¨D¥X 0x100100000 ´î±¼©w§}ªÅ¶¡¤j¤pªº­È(¥H byte ¬°³æ¦ì)¡A¦p 1 GB ¤j¤p´N ¬O 0xc0100000¡C§â src/sys/i386/conf/Makefile.i386 ¸Ìªº LOAD_ADDRESS ³]¦¨³o­Ó­È¡A±µµÛ¦b src/sys/i386/conf/kernel.script ¤¤¡A±N section ¦Cªí³Ì«e­±ªº location counter ³]¦¨¬Û¦Pªº­È¡A¦p¤U¡G OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386") OUTPUT_ARCH(i386) ENTRY(btext) SEARCH_DIR(/usr/lib); SEARCH_DIR(/usr/obj/elf/home/src/tmp/usr/i386-unknown-freebsdelf/lib); SECTIONS { /* Read-only sections, merged into text segment: */ . = 0xc0100000 + SIZEOF_HEADERS; .interp : { *(.interp) } µM«á­«·s config ©M°µ¥X·sªº kernel¡C¦b°õ¦æ¹³ ps(1)¡B top(1) ³oÃþµ{¦¡®É¥i¯à·|¸I¨ì°ÝÃD¡A°µ¤@¦¸ make world À³¸Ó´N¥i¥H¸Ñ¨M(©Î§â§ï¹Lªº pmap.h «þ¨ì /usr/include/vm/ ¤U¡A¦A¤â°Ê½sĶ libkvm¡Bps ©M top)¡C ª`·N¡Gkernel ©Ò¯à©w§}ªºªÅ¶¡¤j¤p¥²¶·¬O 4 megabytes ªº­¿¼Æ¡C [David Greenman ¥[¤W ³o¤@¬q¡G§Ú»{¬° kernel ©w§}ªÅ¶¡¤j¤pÀ³¸Ó¬O 2 ªº­¼¾­¡A¦ý¤£¤j½T ©w³o¤@ÂI¡Cªº±Ò°Êµ{¦¡·|°Ê¨ì high order address bits¡A°O±o¥¦°²³] ¦Ü¤Ö¦³ 256 MB¡C] ·PÁ °²¦p±z¦b³o¥÷ FAQ ¤¤§ä¨ì¿ù»~ªº¦a¤è¡A©Î¬O±z·Q¼W¥[¨Ç¬Æ»ò¡A ½Ð¼g«Ê«H¨ì <FAQ@FreeBSD.org>¡C§Ú­Ì«D±`·PÁ±zªº«ØÄ³¡A ¦]¬°±zªº«ØÄ³Åý³o¥÷¤å¥óÅܱo§ó¦n¡I FreeBSD Core Team Jordan Hubbard ¤£°±ªº§ó·s¹L®Éªº FAQ Doug White ¸g±`¦b freebsd-questions ¤W¦^µª°ÝÃD Joerg Wunsch ¸g±`¦b Usenet ¤W¦^µª°ÝÃD Garrett Wollman Networking and formatting Jim Lowe Multicast information Peter da Silva FreeBSD FAQ ³o¥÷¤å¥óªº¥´¦r­W¤u The FreeBSD Team Kvetching¡Amoaning¡Asubmitting data ¹ï©ó¨º¨Ç´¿¸g¹ï³o¥÷ FAQ ´£¨ÑÀ°§U¡A¦Ó§Ú­Ì¨S´£¨ìªº¤H­Ì¡A§Ú­Ì¥Ñ°Jªº·PÁ±z¡I