SSD/Linux - etc
Japanese | EnglishTable of Contents
Introduction
The directory, /etc, of SSD/Linux mimics NetBSD-1.4 but is different from that of the other Linux distributions.
One sees from the file, /etc/inittab, that /etc/rc.sysinit is executed when the system boots and then /etc/rc is done.
/etc/rc.sysinit and /etc/rc read /etc/rc.subr and /etc/rc.conf.
Functions are defined in the file, /etc/rc.subr.
The file, /etc/rc.conf, reads /etc/defaults/rc.conf.
The default values of the system are substituted to variables in it and write values which you want to change of the variables in /etc/rc.conf.
The system configuration is done with reference these values of the functions and the variables from /etc/rc.
This document explains files and ones relate with that among files which must be edited to run the system.
Please read SSD/Linux User's Guide, too.
There is duplication partly but there is the description written only here.
Network
/etc/netstart is executed at first in /etc/rc.
It is the network configuration.
If
do_contrib_rc=YES
is in /etc/rc.conf, the file, /etc/netstart, reads the file, /usr/contrib/etc/netstart.local, if it exists.
Since this file is needed to use the WEB set up tool for OpenBlockS series, it is described bellow.
The host name is defined in /etc/rc.conf as follows,
hostname="foo.example.com"
or in /etc/myname,
foo.example.com
For the interface, eth0, in /etc/rc.conf as follows,
ifconfig_eth0="inet 192.168.253.254 netmask 255.255.255.0 broadcast 192.168.253.255"
or in /etc/ifconfig.eth0,
inet 192.168.253.254 netmask 255.255.255.0 broadcast 192.168.253.255
It is similar for the interface, eth1, and so on.
The names of interfaces are displayed by
$ /sbin/ifconfig -l
The default route is defined in /etc/rc.conf as follows,
defaultroute="192.168.253.1"
or in /etc/mygate,
192.168.253.1
To be DHCP client with the interface, eth1, the following definitions are in /etc/rc.conf,
dhclient=YES dhclient_flags="eth1"
Super user
One sees from the configurations for SU_WHEEL_ONLY in the file, /etc/login.defs, and for su in the file,
/etc/pam.conf, as follows.
To become super user with su(1) command the user must belong to the group, wheel.
Please add the user to wheel group in /etc/group.
OpenBlockS series
To configure with the WEB set up tool the other files are referenced.
Please define in /etc/rc.conf as follows,
do_contrib_rc=YES
/etc/netstart reads /usr/contrib/etc/netstart.local.
/usr/contrib/etc/openblocks.conf is read in the latter and then network configuration is done with the information.
The contents of the file, /usr/contrib/etc/openblocks.conf, are overwritten with the configuration by the WEB set up tool. Thus you cannot use the WEB set up tool after you edit it manually.