Initial configuration

System startup options

by ross at 18:12:52 on March 20, 2014

/etc/rc.conf:

# System options
export PATH=/root/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
rcshutdown_timeout="180"
keymap=us.iso.kbd

# Network setup
hostname="coffin.lan"
ifconfig_re0="DHCP"
ifconfig_re1="inet 192.168.10.1/24"
#defaultrouter="10.0.39.1"
gateway_enable="YES"
icmp_bmcastecho="NO"
icmp_drop_redirect="YES"
icmp_log_redirect="NO"

# dhclient setup
synchronous_dhclient="YES"
defaultroute_delay="60"
defaultroute_carrier_delay="10"

# Wait for network
netwait_enable="YES"
netwait_ip="8.8.8.8"
netwait_if="re0"

# ZFS
zfs_enable="YES"

# UFS
fsck_y_enable="YES"
background_fsck="NO"
quota_enable="YES"

# mdmfs on /tmp
tmpmfs="YES"
tmpsize="512M"

# devfs rules
devfs_system_ruleset="system"

# Disable networking in syslogd
syslogd_flags="-ss"

# Enable Secure Shell
sshd_enable="YES"

# Enable NFS Server and Client
nfs_server_enable="YES"
rpcbind_enable="YES"
rpc_lockd_enable="YES"
rpc_statd_enable="YES"
nfs_client_enable="YES"

See rc.conf(5) and /etc/defaults/rc.conf.

 

Comments