home | codereading | contact | github | math | misc | notes | patches | tech | README

Slackware configuration

Set up hostname and domainname

The full hostname (with domain name), separated by period (.), is specified in the /etc/HOSTNAME file. The domainname can be set to /etc/defaultdomain.

Adding default route

Linux route command syntax differs a bit from BSD. To add a default route, type the command:

route add default gw $gateway_host

Network configuration

Network configuration in Slackware is made by the netconfig program. But you can also edit manually the configuration files: There are two scripts: /etc/rc.d/rc.inet1 and /etc/rc.d/rc.inet2. /etc/rc.d/rc.inet1.conf is the file that should be edit to configure the network (rc.inet1 and rc.inet2 read this file to make the configuration).

Both static and DHCP configuration should be put there. This scripts, if not installed by default, are in the slackware/n/network-scripts*.tgz file in the first Slackware CD.

The rc.inet2 script starts the sshd daemon if it is installed.

To set an alias, just put another section like in in this google groups message and in this rc.inet1.conf example (don't forget to insert the IFNAME variable, which is not there by default):

# Config information for eth0:0:

To restart Slackware network, just type (as in this linuxforums thread):

# cd /etc/rc.d/
# ./rc.inet1 restart

Other reference here.

Configuring NIS client

Add the server in /etc/yp.conf:


Then start the portmap daemon:

chmod 755 /etc/rc.d/rc.rpc
/etc/rc.d/rc.rpc start

Open /etc/nsswitch.conf and change the lines you need.

Then open the script /etc/rc.d/rc.yp and uncomment the relevant parts. Also set the execution bit to 1, if it is not set yet. Then restart the yp services:

/etc/rc.d/rc.yp restart

Reference about NIS in Linux here.