10.1. | Where are the system start-up configuration files? | ||||||||
The primary configuration file is
For example, if you wish to start named, the included DNS server, all you need to do is:
To start up local services, place shell scripts in the
| |||||||||
10.2. | How do I add a user easily? | ||||||||
Use the adduser(8) command, or the pw(8) command for more complicated situations. To remove the user, use the rmuser(8) command or, if necessary, pw(8). | |||||||||
10.3. | Why do I keep getting messages like root: not found after editing my crontab file? | ||||||||
This is normally caused by editing the system crontab
(
This is not the correct way to do things. The system crontab has a different format to the per-user crontabs which crontab(1) updates (the crontab(5) manual page explains the differences in more detail). If this is what you did, the extra crontab is simply a
copy of
Next time, when you edit
If you want something to be run once per day, week, or
month, it is probably better to add shell scripts
The actual reason for the error is that the system
crontab has an extra field, specifying which user to run the
command as. In the default system crontab provided with
FreeBSD, this is | |||||||||
10.4. | Why do I get the error, you are not in the correct
group to su root when I try to su to
| ||||||||
This is a security feature. In order to su to
To allow someone to su to | |||||||||
10.5. | I made a mistake in | ||||||||
When you get the prompt to enter the shell
pathname, simply press If you intend to use a full screen editor such
as vi(1) or emacs(1), you may also need to
run Once you have performed these steps, you can edit
| |||||||||
10.6. | Why am I having trouble 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. Some printers require a host-based driver to do any kind of printing. These so-called «WinPrinters» are not natively supported by FreeBSD. If your printer does not work in DOS or Windows NT(R) 4.0, it is probably a WinPrinter. Your only hope of getting one of these to work is to check if the print/pnm2ppa port supports it. | |||||||||
10.7. | How can I correct the keyboard mappings for my system? | ||||||||
Please see the Handbook section on using localization, specifically the section on console setup. | |||||||||
10.8. | Why do I get messages like: unknown: <PNP0303> can't assign resources on boot? | ||||||||
The following is an excerpt from a post to the freebsd-current mailing list.
| |||||||||
10.9. | Why can I not get user quotas to work properly? | ||||||||
| |||||||||
10.10. | Does FreeBSD support System V IPC primitives? | ||||||||
Yes, FreeBSD supports System V-style IPC, including shared memory, messages and semaphores, in the GENERIC kernel. In a custom kernel, enable this support by adding the following lines to your kernel config. options SYSVSHM # enable shared memory options SYSVSEM # enable for semaphores options SYSVMSG # enable for messaging Recompile and install your kernel. | |||||||||
10.11. | What other mail-server software can I use instead of Sendmail? | ||||||||
Sendmail is the default mail-server software for FreeBSD, but you can easily replace it with one of the other MTA (for instance, an MTA installed from the ports). There are various alternative MTAs in the ports tree already, with mail/exim, mail/postfix, mail/qmail, and mail/zmailer being some of the most popular choices. Diversity is nice, and the fact that you have many different mail-servers to chose from is considered a good thing; therefore try to avoid asking questions like «Is Sendmail better than Qmail?» in the mailing lists. If you do feel like asking, first check the mailing list archives. The advantages and disadvantages of each and every one of the available MTAs have already been discussed a few times. | |||||||||
10.12. | I have forgotten the | ||||||||
Do not panic! Restart the system, type
| |||||||||
10.13. | How do I keep Control+Alt+Delete from rebooting the system? | ||||||||
If you are using syscons (the default console driver) build and install a new kernel with the line: options SC_DISABLE_REBOOT in the configuration file. If you use the PCVT console driver, use the following kernel configuration line instead. This can also be done by setting the following sysctl which does not require a reboot or kernel recompile:
options PCVT_CTRL_ALT_DEL | |||||||||
10.14. | How do I reformat DOS text files to UNIX(R) ones? | ||||||||
Use this perl command:
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(1) command:
| |||||||||
10.15. | How do I kill processes by name? | ||||||||
Use killall(1). | |||||||||
10.16. | Why is su bugging me about not being in
| ||||||||
The error comes from the Kerberos distributed authentication system. The problem is not fatal but annoying. You can either run su with the -K option, or uninstall Kerberos as described in the next question. | |||||||||
10.17. | 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 will assume on /cdrom) and run
Alternately, you can remove all
| |||||||||
10.18. | What happened to
| ||||||||
FreeBSD 5.X and beyond use the devfs(8) device-on-demand
system. Device drivers automatically create new device
nodes as they are needed, obsoleting
If you are running FreeBSD 4.X or earlier and
| |||||||||
10.19. | How do I add pseudoterminals to the system? | ||||||||
If you have lots of telnet, ssh, X, or screen users, you will probably run out of pseudoterminals. Here is how to add more:
| |||||||||
10.20. | Why can I not create the snd0 device? | ||||||||
There is no To create these devices you should
Σημείωση:You can omit this step if you are running FreeBSD 5.0-RELEASE or newer with devfs(5) enabled. | |||||||||
10.21. | How do I re-read | ||||||||
Go into single user mode and then back to multi user mode. On the console do:
| |||||||||
10.22. | I tried to update my system to the latest -STABLE, but got -BETAx, -RC or -PRERELEASE! What is going on? | ||||||||
Short answer: it is just a name. RC stands for «Release Candidate». It signifies that a release is imminent. In FreeBSD, -PRERELEASE is typically synonymous with the code freeze before a release. (For some releases, the -BETA label was used in the same way as -PRERELEASE.) Long answer: FreeBSD derives its releases from one of two places. Major, dot-zero, releases, such as 4.0-RELEASE and 5.0-RELEASE, are branched from the head of the development stream, commonly referred to as -CURRENT. Minor releases, such as 4.1-RELEASE or 5.2-RELEASE, have been snapshots of the active -STABLE branch. Starting with 4.3-RELEASE, each release also now has its own branch which can be tracked by people requiring an extremely conservative rate of development (typically only security advisories). When a release is about to be made, the branch from which it will be derived from has to undergo a certain process. Part of this process is a code freeze. When a code freeze is initiated, the name of the branch is changed to reflect that it is about to become a release. For example, if the branch used to be called 4.5-STABLE, its name will be changed to 4.6-PRERELEASE to signify the code freeze and signify that extra pre-release testing should be happening. Bug fixes can still be committed to be part of the release. When the source code is in shape for the release the name will be changed to 4.6-RC to signify that a release is about to be made from it. Once in the RC stage, only the most critical bugs found can be fixed. Once the release (4.6-RELEASE in this example) and release branch have been made, the branch will be renamed to 4.6-STABLE. For more information on version numbers and the various CVS branches, refer to the Release Engineering article. | |||||||||
10.23. | I tried to install a new kernel, and the chflags failed. How do I get around this? | ||||||||
Short answer: You are probably at security level greater than 0. Reboot directly to single user mode to install the kernel. Long answer: FreeBSD disallows changing system flags at security levels greater than 0. You can check your security level with the command:
You cannot lower the security level; you have to boot to
single mode to install the kernel, or change the security
level in | |||||||||
10.24. | I cannot change the time on my system by more than one second! How do I get around this? | ||||||||
Short answer: You are probably at security level greater than 1. Reboot directly to single user mode to change the date. Long answer: FreeBSD disallows changing the time by more that one second at security levels greater than 1. You can check your security level with the command:
You cannot lower the security level; you have to boot
to single mode to change the date, or change the security
level in | |||||||||
10.25. | Why is | ||||||||
No, there is no memory leak, and it is not using 256 Mbytes
of memory. For convenience, rpc.statd(8) maps its status file (resident on
| |||||||||
10.26. | Why can I not unset the | ||||||||
You are running at an elevated (i.e., greater than 0) securelevel. Lower the securelevel and try again. For more information, see the FAQ entry on securelevel and the init(8) manual page. | |||||||||
10.27. | Why does SSH authentication through
| ||||||||
The reason why
| |||||||||
10.28. | What is | ||||||||
| |||||||||
10.29. | What do the various memory states displayed by
| ||||||||
Pages are most often written to disk (sort of a VM sync) when they are in the inactive state, but active pages can also be synced (but requires the availability of certain CPU features.) This depends upon the CPU tracking of the modified bit being available, and in certain situations there can be an advantage for a block of VM pages to be synced, whether they are active or inactive. In most common cases, it is best to think of the inactive queue to be a queue of relatively unused pages that might or might not be in the process of being written to disk. Cached pages are already synced, not mapped, but available for immediate process use with their old association or with a new association. Free pages are available at interrupt level, but cached or free pages can be used at process state for reuse. Cache pages are not adequately locked to be available at interrupt level. There are some other flags (e.g., busy flag or busy count) that might modify some of the rules that I described. | |||||||||
10.30. | How much free memory is available? | ||||||||
There are a couple of kinds of «free memory». One kind is the amount of memory immediately available without paging anything else out. That is approximately the size of cache queue + size of free queue (with a derating factor, depending upon system tuning.) Another kind of «free memory» is the total amount of VM space. That can be complex, but is dependent upon the amount of swap space and memory. Other kinds of «free memory» descriptions are also possible, but it is relatively useless to define these, but rather it is important to make sure that the paging rate is kept low, and to avoid running out of swap space. | |||||||||
10.31. | What is | ||||||||
Although it is not recommended to delete this directory, to
do so you will need to unset the |
Αυτό το κείμενο, και άλλα κείμενα, μπορεί να βρεθεί στο ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/
Για ερωτήσεις σχετικά με το FreeBSD, διαβάστε την
τεκμηρίωση πριν να επικοινωνήσετε με την
<questions@FreeBSD.org>.
Για ερωτήσεις σχετικά με αυτή την τεκμηρίωση, στείλτε e-mail στην
<doc@FreeBSD.org>.