Latest revision |
Your text |
Line 1: |
Line 1: |
| {{welcome}} | | {{welcome}} |
| + | {{maintenance}} |
| {{Navbar OpenRC}} | | {{Navbar OpenRC}} |
| | | |
Line 10: |
Line 11: |
| ==Description== | | ==Description== |
| | | |
− | The file [https://www.freebsd.org/cgi/man.cgi?query=rc.conf&apropos=0&sektion=0&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html '''rc.conf(5)'''] contains descriptive information about the local host name, configuration details for any potential network interfaces and which services should be started up at system initial boot time. In new installations, the '''rc.conf''' file is generally initialized by the system installation utility. | + | The file rc.conf contains descriptive information about the local host name, configuration details for any potential network interfaces and which services should be started up at system initial boot time. In new installations, the '''rc.conf''' file is generally initialized by the system installation utility. |
| | | |
− | The purpose of [https://www.freebsd.org/cgi/man.cgi?query=rc.conf&apropos=0&sektion=0&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html '''rc.conf(5)'''] is not to run commands or perform system startup actions directly. Instead, it is included by the various generic startup scripts in '''[[/etc/]]''' which conditionalize their internal actions according to the settings found there. | + | The purpose of [https://www.freebsd.org/cgi/man.cgi?query=rc.conf&apropos=0&sektion=0&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html '''rc.conf(5)'''] is not to run commands or perform system startup actions directly. Instead, it is included by the various generic startup scripts in '''/etc''' which conditionalize their internal actions according to the settings found there. |
| | | |
− | The '''/etc/[[Rc.conf|rc.conf]]''' file is included from the file '''/etc/[[Defaults/rc.conf|defaults/rc.conf]],''' which specifies the default settings for all the available options. Options need only be specified in '''/etc/rc.conf''' when the system administrator wishes to override these defaults. The file '''/etc/rc.conf.local''' is used to override settings in '''/etc/rc.conf''' for historical reasons. | + | The '''/etc/rc.conf''' file is included from the file '''/etc/defaults/rc.conf,''' which specifies the default settings for all the available options. Options need only be specified in '''/etc/rc.conf''' when the system administrator wishes to override these defaults. The file '''/etc/rc.conf.local''' is used to override settings in '''/etc/rc.conf''' for historical reasons. |
| | | |
| The [https://www.freebsd.org/cgi/man.cgi?query=sysrc&sektion=8&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports sysrc(8)] command provides a scripting interface to modify system config files. | | The [https://www.freebsd.org/cgi/man.cgi?query=sysrc&sektion=8&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports sysrc(8)] command provides a scripting interface to modify system config files. |
− | The /usr/sbin/[https://www.freebsd.org/cgi/man.cgi?query=sysrc&apropos=0&sektion=0&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html sysrc] utility retrieves [[Rc.conf|rc.conf(5)]] variables from the collection of system rc files and allows processes with appropriate privilege to change values in a safe and effective manner.
| |
| | | |
− | | + | In addition to '''/etc/rc.conf.local''' you can also place smaller configuration files for each [https://www.freebsd.org/cgi/man.cgi?query=rc&sektion=8&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports rc(8)] script in the '''/etc/rc.conf.d''' directory. |
− | In addition to '''/etc/rc.conf.local''' you can also place smaller configuration files for each [https://www.freebsd.org/cgi/man.cgi?query=rc&sektion=8&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports rc(8)] script in the '''/etc/[[Rc.conf.d|rc.conf.d]]''' directory. | + | |
− | | + | |
− | The [https://www.freebsd.org/cgi/man.cgi?query=timed&apropos=0&sektion=0&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html timed] utility is a time server daemon which is normally invoked at boot time from the [[Rc.conf|rc.conf]](5) file. It synchronizes the host's time with the time of other machines, which are also running timed, in a local area network.
| + | |
| | | |
| ==Example== | | ==Example== |
Line 52: |
Line 49: |
| | | |
| |- | | |- |
− | |ifconfig_nfe0="DHCP"||[https://www.freebsd.org/cgi/man.cgi?query=ifconfig&sektion=8&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports ifconfig(8)], It is possible to bring up an interface with DHCP by adding "DHCP" to the ifconfig_<interface> variable. | + | |ifconfig_nfe0="DHCP"|| |
− | |-
| + | |
− | |keymap="de.kbd"||If set to "NO", no keymap is installed, otherwise the value is used to install the keymap file found in /usr/share/syscons/keymaps/<value>.kbd (if using [https://www.freebsd.org/cgi/man.cgi?query=syscons&apropos=0&sektion=0&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html syscons(4))] or /usr/share/vt/keymaps/<value>.kbd (if using [https://www.freebsd.org/cgi/man.cgi?query=vt&apropos=0&sektion=0&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html vt(4)]).
| + | |
| |- | | |- |
− | |hostname="yourname.ghostbsd-pc.home"||Your host name | + | |keymap="de.kbd"|| |
| |- | | |- |
− | |kldload_nvidia="nvidia-modeset nvidia"||kldload -- load a file into the kernel | + | |hostname="slughorn.ghostbsd-pc.home"|| |
| |- | | |- |
− | |kldload_nvidia="nvidia-modeset nvidia"||kldload -- load a file into the kernel | + | |kldload_nvidia="nvidia-modeset nvidia"|| |
| |- | | |- |
− | |autofs_enable="YES"||If set to "YES", start the [https://www.freebsd.org/cgi/man.cgi?query=automountd&sektion=8&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports automount(8)] utility and the [https://www.freebsd.org/cgi/man.cgi?query=automountd&sektion=8&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports automountd(8)] and [https://www.freebsd.org/cgi/man.cgi?query=autounmountd&sektion=8&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports autounmountd(8)] daemons at boot time. | + | |kldload_nvidia="nvidia-modeset nvidia"|| |
| |- | | |- |
− | |lpd_enable="NO"||If set to "YES", run the [https://www.freebsd.org/cgi/man.cgi?query=lpd&sektion=8&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports lpd(8)] daemon at system boot time. | + | |autofs_enable="YES"|| |
| |- | | |- |
− | |cupsd_enable="YES"||[https://www.freebsd.org/cgi/man.cgi?query=cups&apropos=0&sektion=0&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html cups] - a standards-based, open source printing system | + | |lpd_enable="NO"|| |
| |- | | |- |
− | |dsbmd_enable="NO"||DSBMD - a media mounting daemon/automounter for FreeBS, [https://www.freshports.org/sysutils/dsbmd DSBMD] is a media/filesystem type detecting daemon that allows clients to mount storage devices. | + | |cupsd_enable="YES"|| |
| |- | | |- |
− | |kldload_vbox="vboxdrv"||kldload -- load the ''vboxdrv'' kernel module into the kernel, to use VirtualBox | + | |dsbmd_enable="NO"|| |
| |- | | |- |
− | |vboxnet_enable="YES"||VirtualBox network adapter | + | |hald_enable="YES"|| |
| |- | | |- |
− | |vboxguest_enable="YES"||[https://www.freebsd.org/doc/handbook/virtualization-guest-virtualbox.html Guest on VirtualBox] | + | |kldload_vbox="vboxdrv"|| |
| |- | | |- |
− | |vboxservice_enable="YES"||[https://www.freebsd.org/doc/handbook/virtualization-guest-virtualbox.html Guest on VirtualBox] | + | |vboxnet_enable="YES"|| |
| |- | | |- |
− | |ifconfig_em0="DHCP"||[https://www.freebsd.org/cgi/man.cgi?query=ifconfig&sektion=8&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports ifconfig] -- configure network interface parameters | + | |vboxguest_enable="YES"|| |
| |- | | |- |
− | |webcamd_enable="YES"||# enable use of the webcam daemon software | + | |vboxservice_enable="YES"|| |
| |- | | |- |
− | |rc_debug="YES" | + | |ifconfig_em0="DHCP"|| |
− | rc_info="YES"
| + | |} |
− | || Add either or both entries to debug rc.conf startup when booting. Displays messages for you to see where boot fails. You can check output from dmesg or view file /var/log/messages | + | |
− | |-} | + | |
| | | |
| | | |