System Administration

This chapter describes basic information about how to perform common system administration tasks on your OpenLinux system. Although the information should be helpful for new Linux users, it is not intended to provide a comprehensive guide to the topics covered. In addition, you will find a table listing technical guides on the Caldera Systems Web site and the Linux online resources.

The Initialization Process

Understanding how the OpenLinux operating system starts up can be a great help in problem-solving, preparing for strong security, and simply understanding how things work on your system.

OpenLinux is based on a UNIX System V initialization system, so this process may be familiar to you if you have worked with other SysV UNIX systems.

After the Linux kernel is started by the LILO boot manager or Master Boot Program located in the Master Boot Record, the following steps occur, under the control of the Linux kernel:

The kernel initializes its own internal systems.
  1. The init program is started.
  2. The init program reads the /etc/inittab file and prepares for the run level defined in that file.
  3. The /etc/rc.d/rc.modules script is executed by init. This loads all auto-loaded kernel modules.
  4. The /etc/rc.d/rc.boot script is executed by init. This processes other system information.
  5. Depending on the mode of operation (run level) indicated by the inittab file, one of the run level directories is examined and all of the services listed in that directory are started or stopped. Services that start with an S are started. Services that start with a K are stopped (killed).

For example, if run level 3 is specified, the services in directory /etc/rc.d/rc3.d are processed.

  1. The getty program (terminal startup manager) is started on each of the virtual consoles defined by the inittab file.

Among the programs generally started by the run level scripts is the initd super-server, which watches for traffic on the network ports defined by /etc/services and starts server programs when a request is received, according to the server specified in /etc/inetd.conf .

The virtual consoles defined by /etc/inittab are accessed on Alt+F1 through Alt+F6. These consoles each provide a character-based login, as if you were working from a dumb terminal. You can log in from these consoles using any valid user account, then switch between the consoles using the Alt+Fx key combinations.

If you are in the graphical system, you can switch to the other virtual consoles by pressing Ctrl+Alt+F x (F x is one of the keyboard function keys from F1 to F6, inclusive). Once you are in the character-mode consoles, use Alt+F x , . To switch back to the graphical system, press Alt+F7.

Managing Users and Groups

As mentioned previously, OpenLinux is a multi-user operating system. This means that multiple users can simultaneously access and use OpenLinux. This section explains how to set up and manage multiple user accounts.

To create a new user account on your system, use any of these methods:

In each case, follow the on-screen prompts to enter information about the user account you're creating.

The utilities passwd and usermod can be used to manage user accounts after they are created. You can alter passwords, expiration dates of passwords, default shells, and more. See the manual pages of each command for more information.

When you create a new user account, the information from the /etc/skel directory is copied into the new users home directory. This information includes basic startup scripts and configuration information.

Using TCP Wrappers

As a security measure, most network services are managed by a protective program called a TCP wrapper. The protected services are those listed in the /etc/inetd.conf file which use the /usr/sbin/tcpd program. These services include, for example, FTP and Telnet access.

A sample line from the /etc/inetd.conf file is shown here:

ftp stream tcp nowait root /usr/sbin/tcpd in.ftpd -l -a

This line shows that the ftp service is maintained by the inetd program. Whenever a request for FTP service arrives on the port named for FTP in the /etc/services file, the tcpd program is started, with in.ftpd, the FTP server program, as a parameter.

By encapsulating (wrapping) network services using tcpd, you can control access to the service by configuring and maintaining the hosts.allow and hosts.deny files in the /etc directory.

These rules can include security based on

A sample /etc/hosts.allow file, when edited to allow access to services, might look like this:

ALL: mycompany.com .mycompany.com

in.talkd: ALL

in.ntalkd: ALL

in.fingerd: ALL

in.ftpd: ALL

This configuration allows all connections from mycompany.com and *.mycompany.com machines. It also allows the services talk, finger, and ftp to accept requests from all machines.

The tcpd program allows much more sophisticated access control, using a combination of the files /etc/hosts.allow and /etc/hosts.deny. Read the tcpd(8) and hosts_access(5) man pages for complete details.

KDE File Locations

KDE is installed with OpenLinux by default and is available to all users on the system.

The main KDE files are placed in the /opt/kde directory. The most important section of this directory is the share subdirectory. Its subdirectories include:

In addition to the system-wide KDE directories, each user's home directory contains two KDE-related directories which are created the first time that user starts KDE. These are:

This directory contains KDE Link files for all icons that appear on the user's Desktop

This hidden directory contains configuration information specific to the user and the applications that the user has launched.

All of the per-user information is contained in the ~/.kde/share subdirectory. The contents of this subdirectory mirror the contents of the /opt/kde/share subdirectory, except that in this case they are specific to a single user. The specific subdirectories include:

A single hidden file is also present in each user's home directory during and after each KDE session. This file, .kderc, contains information about the user's language preference, the status of open windows at the end of the last KDE session, and so forth.

Setting Up a Web Server

The Apache Web server is automatically installed and configured when you install OpenLinux. This Web server is used for processing online help requests and online documentation within OpenLinux. You can easily use it as a Web server for other clients to browse documents from your system.

To check the status of the Web server, use the ps aux command and look for lines containing the httpd process. The httpd program is the Apache Web server.

Several files and subdirectories are used by the Web server:

NOTE: Two other configuration files, srm.conf and access.conf, are also included in the /etc/httpd/apache/conf directory. With the latest version of Apache, the configuration settings included in these files can all be placed in the httpd.conf file.

Setting Up an FTP Server

An FTP server is configured and running after a standard OpenLinux installation. You can use anonymous FTP to exchange files with your OpenLinux system via any FTP client, including a Web browser. To try this, enter this URL from any client that can access your Linux system over a network:

ftp://linux_system_name/

When you use this command, you are accessing the directory /home/ftp on your OpenLinux system. Any files that you place in the directory /home/ftp/pub are accessible by default to anonymous users who log in to your system using FTP.

You can also use FTP to access regular user accounts. Use a URL like this one:

ftp://username@linux_system_name/

You are prompted for a password before you see the files on the Linux system.

Several files located in the /etc directory define the configuration of the FTP server running on OpenLinux. Although the default configuration is fairly secure, you should review the configuration files carefully before using FTP openly on an Internet-connected OpenLinux server.

The following files are relevant to your FTP server:

Creating a Mail Server

OpenLinux includes the sendmail Mail Transfer Agent (MTA). This program makes your OpenLinux system a complete mail server.

You can check that the sendmail package is installed using this command:

rpm -q sendmail

Unfortunately, configuring sendmail can be challenging for any but the most rudimentary mail servers. The myriad capabilities and the obtuse configuration style of this program mean that you'll need to do some serious study if you want to have it perform securely and to the limits of its capabilities. Two execellent references are provided at the end of this section.

Two initial configuration files that you can refer to are the /etc/sendmail.cw file and the /etc/sendmail.cf file. Man pages for these files can give you some initial guidance.

One common sendmail configuration is to have a single machine act as a mail gateway for all the machines on your network.

For example, suppose that the main Internet gateway at your company, corp.com, handles all mail accounts. We can add the hostnames of other machines in the organization to the /etc/sendmail.cw file, in order to have mail sent to those machines captured by the main mail server corp.com. For example, we might add the following lines to sendmail.cw :

# sendmail.cw - include all aliases for your machine.

diamond.corp.com

emerald.corp.com

quartz.corp.com

Then on the other machines (diamond, emerald and quartz), we would edit the /etc/sendmail.cf file to "masquerade" as corp.com when sending mail, and to forward any local mail processing to company.com. To do this, find the DH and DM lines in /etc/sendmail.cf and edit them:

# who gets all local email traffic ($R has precedence for unqualified names)

DHcorp.com

# who I masquerade as (null for no masquerading)

DMcorp.com

With this type of configuration, all mail sent will appear as if it were sent from corp.com and any mail sent to diamond.corp.com or the other hosts, will be delivered to corp.com.

See also this standard reference book on sendmail:

Introducing NetWare Tools

OpenLinux includes support for a NetWare client, which you can obtain from Caldera Systems. This section describes some of the features of that client. You can download additional NetWare-related software from the Caldera Systems Web site.

NOTE: A NetWare NDS server is also available for Linux. See the Caldera Systems Web site for details.

To view NetWare resources on your network, change to the /NetWare directory of your OpenLinux system. From here, you can go to the NDS/ or the Bindery/ directory. Within the Bindery/ directory are subdirectories named for the Bindery servers on your network. Each server's subdirectory includes file-like objects that refer to volumes or objects on that Bindery servers. For example, users, groups, and printers.

Within the /NetWare/NDS directory are subdirectories named for the NDS Directory trees visible on your network. The name of each NDS Directory tree is synonymous with the [Root] object in that Directory tree. When you change to one of these directories, you see the top-level objects in that NDS Directory tree. You can continue to traverse deeper into the directory structure through layers of NDS container objects. Whenever a leaf object appears in the Directory tree (like a User object, or a Group object), the object appears as a file with the object's name.

Though these Bindery and NDS objects appear as subdirectories or files, they are managed like objects when you use the Desktop or command line utilities to view or manage your NetWare resources.

You can use the cd command in a terminal emulator, or a Directory window on the Desktop to locate any NetWare volume. The files on the NetWare volume can be used like any other files on your system. Any object can be examined by using the cat command to see its object type. For example, if a directory included an object named nwelch , the following command would print a summary of that object, including the fact that it is a User object:

cat nwelch

A sample output might be:

Type = NDS Leaf Node

User

Before you can use NetWare resources, you must log in to the NetWare tree or server you want to access using the nwlogin command and a valid NetWare username and password.

The following two tables describe the commands and graphical utilities that are available for accessing and managing the NetWare server or NDS tree once you have successfully logged in.

Command Line Utilities for NDS Administration

Utility

Description

Options

nwdsaddtrust

Add a trustee to a file or directory on an NDS volume.

--object DSPATH

--path PATH

--rights RIGHTS_MASK

nwdsattrs

List the attributes of an NDS object.

--object DSPATH

nwdscreate attr_name attr_value

Create a new NDS object.

--parent DSPATH

--object OBJECT_NAME

--type OBJECT_TYPE

--Homedir HOME_PATH

nwdsmodify

Modify an attribute value on an NDS object.

--object DSPATH

--attribute ATTR_NAME

--syntax SYNTAX

--value VALUE

--change OPERATION

nwdsrm

Remove an NDS object.

--object DSPATH

nwdssetspace

Set a disk space quota for a directory on a NetWare NDS server.

--directory DSPATH

--blocks NUM4KBLOCKS

nwdsshowspace

Show the disk space quota for a directory on a NetWare NDS server.

--directory DSPATH

nwdsshowtrust

Show the rights that a user has to a file or directory.

--object DSPATH

--server DSPATH

--path PATH

nwdsvalues

List the values of an attribute for an NDS object.

--object DSPATH

--attribute ATTR_NAME

 

Graphical NetWare Client Utilities

Utility Name

Purpose

xnwprint

Print to a NetWare print queue.

xnwdsadmin

Administer the properties of an NDS object.

xnwdscreate

Create a new NDS object.

xnwdsrights

Grant an NDS object rights to a directory or file on a NetWare volume.

xnwdstrustees

Manage the NDS trustees of a NetWare directory or file.

xnwboadmin

Administer the properties of a NetWare Bindery object.

xnwbocreate

Create a new Bindery object.

xnwborights

Grant a Bindery object rights to a directory or file on a NetWare volume.

xnwbotrustees

Manage the trustees of a directory or file on a NetWare Bindery server.

Creating a Terminal Server

OpenLinux can be used as a powerful terminal server, allowing use by dumb terminals or modem connections. Dumb terminals are used when you have a character-based application that many users are accessing; modems provide access to your OpenLinux server via voice telephone lines. Setting up a terminal server for a least one modem line is usually the preliminary step to configuring a PPP server for dial-in access to your system.

Because Linux is not restricted in the number of users that it can support (except by your hardware capacity), you can connect as many terminal or modem devices to your OpenLinux system as you feel the speed of the system can support.

To configure a terminal server, you must

Defining the devices to use is simple if you are using the standard serial ports on your PC. If you need to add additional ports (such as a 256 port serial card), see the documentation included with your additional hardware for instructions and software to help you create the devices you need within Linux. A device name for each port should be available in the /dev directory.

To define a terminal device for the getty program, add a line to the /etc/gettytab file that defines the device characteristics. For many devices, you can simply duplicate an existing line with a new name.

For example, the VC entry (used for all Virtual Consoles) looks like this:

VC|linux::sp#19200:tc=de

You can duplicate this line with a new name, such as MYTERM, and speed, 38400:

MYTERM::sp#38400:tc=de

NOTE: To learn the meaning of each field in the gettytab entries, see the termcap man page. Both gettytab and termcap use the same format.

Finally, you must define how to initialize these terminal devices by adding them to the /etc/inittab file. By assigning each terminal a number, you can keep track of how each one is assigned in /etc/inittab.

The default getty section of /etc/inittab looks like this:

# Run gettys in standard runlevels

1:12345:respawn:/sbin/getty tty1 VC linux

2:2345:respawn:/sbin/getty tty2 VC linux

3:2345:respawn:/sbin/getty tty3 VC linux

4:2345:respawn:/sbin/getty tty4 VC linux

5:2345:respawn:/sbin/getty tty5 VC linux

6:2345:respawn:/sbin/getty tty6 VC linux

If you had a modem connected to serial port 1 (/dev/ttyS0), you would add a line like this to the end of the list:

7:2345:respawn:/sbin/getty ttyS0 MYTERM linux

Notice the following things about this new entry:

Once you have edited the necessary files, re-initialize the system to use the parameters you have entered using this command:

$ init q

You are ready to test the devices to see that they respond with a login prompt.

NOTE: If you want users to immediately begin using a certain program after logging in, add that program name to their startup information in the /etc/passwd file. For example, instead of /bin/bash, change the default shell to /bin/bash -c salesprogram:

dtaylor:x:500:500:Danielle Taylor:/home/dtaylor:/bin/bash -c sales

Additional capabilities and security can be provided by using other getty-like programs.

Re-Compiling the Linux Kernel

Because OpenLinux includes full source code for the operating system kernel, you can recompile the kernel if the need arises. Reasons to do this include:

Re-compiling the kernel isn't as difficult as it sounds. Depending on your system's speed, re-compiling may take less than 10 minutes or several hours. (A Pentium 200 MHz with 32 MB of RAM takes about 10 minutes for re-compiling.)

You must have the kernel source code packages and supporting development tools installed on your OpenLinux system before using this procedure.

To re-compile the Linux kernel:

Log in as root
  1. Make a backup copy of the current kernel using a command like this one:

cp /vmlinuz /vmlinuz.backup

CAUTION: Don't name the backup kernel vmlinuz.old; that name is already used internally by the kernel.

  1. If you don't have a diskette to boot from in case of problems, add a section to your /etc/lilo.conf file so that you can boot from the vmlinuz.backup kernel that you created in the last step. (If you don't have a bootable diskette, you can create one using the dd command.)
  2. Run the /sbin/lilo program to update the lilo boot loader if you have changed /etc/lilo.conf.
  3. Change to the /usr/src/linux directory.

cd /usr/src/linux

  1. Depending on which tool you want to use to reconfigure the kernel, enter one of these commands:
  2. make config to start a command-line interface that queries you (Yes/No) for each kernel option. This is best for those who are already familiar with the kernel compilation process.
  3. make menuconfig to start a character-mode menu-driven interface where you can select which options you want to include in the kernel.
  4. make xconfig to start a graphical interface to select kernel options.
  5. Select the options that you want to include by following the on-screen directions (See The Character-Based Kernel Configuration Tool shows a dialog box displayed as part of the make menuconfig option).

 

The Character-Based Kernel Configuration Tool
  1. Save the kernel configuration as you exit the configuration tool.
  2. Start the kernel recompilation by entering the following commands on a single line:

make dep ; make clean ; make zlilo ; make modules ; make modules_install

NOTE: You can also enter these commands individually; entering them on a single line completes the compilation process without any additional input from you.

  1. When you reboot, the new kernel is used.

 

Setting Up a Samba Server

Samba is a Linux software package that provides support for the SMB protocol used by Windows 95/98, Windows NT, and numerous other systems. Samba allows Windows clients to access the file and print capabilities of the Linux system in a manner similar to how those clients would access a Windows NT server.

By using the Samba package included with OpenLinux, you can easily make a replacement for a Windows NT file and print server, allowing Windows clients on your network to access the OpenLinux server as if it were a Windows NT server.

NOTE: The Samba client software on OpenLinux can also be used to access files and printers on Windows 95/98 and Windows NT systems.

To configure Samba:

Install the samba and smbfs rpms.

This installs the SMB protocol and adds the /etc/samba.d directory to your system. (If you already have a /etc/samba.d directory, the packages are likely already installed, and you can skip this step.)

  1. Change to the /etc/samba.d directory.
  2. Copy the smb.conf.sample file to the smb.conf file:

cp smb.conf.sample smb.conf

  1. Edit the workgroup name near the top of the /etc/samba.d/smb.conf file so that it corresponds to the workgroup name of the Windows PCs that need to access the OpenLinux system.
  2. Create a Samba password file using this command (the mksmbpasswd command is part of the samba software package):

cat /etc/passwd | mksmbpasswd > /etc/samba.d/smbpasswd

This creates a Samba password file with all of the usernames on your Linux system.

  1. Reset the samba password for one of the Linux users who needs to connect to OpenLinux by running this command and entering a new password when prompted:

smbpasswd username

  1. Add users to the list of those who can access the OpenLinux system using Samba with this command:

smbadduser Linux-username:Samba-username

NOTE: The two usernames will be the same if you have copied your Linux passwd file to the smbpasswd file as described above.

By default, the following services are set up:

  • Global printing services
  • Users have read-write access to the Public directory in their own home directories.
  • Shared directory for all users (if you create the /home/public directory).

For additional details on setting up Samba, see the smb.conf manual pages.

To start Samba, enter this command (while logged in as root)

/etc/rc.d/init.d/samba start

To access the OpenLinux system from a Windows PC:

Verify on the Windows PC that Windows Networking and TCP/IP are installed and running.
  1. Log in to the Windows PC using the same username that was granted access using a Samba username above.
  2. Open the Network Neighborhood on the Windows Desktop. The Linux system should appear in the list.
  3. Double-click on the Linux system.
  4. Enter your Linux user password when prompted.
  5. Browse within the Linux filesystem as needed.
  6. To map a drive to a particular Linux directory, right click on that item and choose from the pop-up menu.

NOTE: If you're mapping from a Windows 95/98 system, your Windows username must be the same as the username on the OpenLinux machine whose files you're trying to view.

To access a Windows PC from OpenLinux:

Check which resources are available for sharing by entering this command at an OpenLinux command line:

$ smbclient //windowshost/resourcename

For example:

$ smbclient //sundance/C_drive

  1. Enter the Windows password for this service when prompted.

The smb: \> prompt appears. The smb:\> prompt is an FTP-like interface. You can use commands such as put and get to exchange files with the Windows PC. Use the Help command to see a list of valid commands.

For additional information on setting up Samba for printing, visit the Caldera Systems Web site.

Two valuable resources for creating Samba-based servers are these volumes:

  • Samba : Integrating Unix and Windows; by John D. Blair; 312 pages; August 1998; Specialized Systems Consultants, Inc.; ISBN: 1578310067
  • Using Samba; by Peter Kelly, Perry Donham, David Collier-Brown; 300 pages; January 1999; O'Reilly & Associates; ISBN: 1565924495

Setting up NFS Services

The Network File System enables you to store information on hard disks attached to your OpenLinux system and make these file systems available to other computers that have NFS client software. NFS client software is standard with OpenLinux (simply use the mount -t nfs command) and most other UNIX systems. NFS clients are also available for Windows computers.

NFS is useful for providing automated backups of multiple systems on a LAN, or for network-based installation of software packages. Because of loose security and low speed, however, using NFS over the Internet or within insecure environments isn't recommended.

If you used the standard OpenLinux installation, NFS services were automatically set up. To customize NFS, review the information that follows.

To specify who can mount each file system (or path within a file system) from their NFS client, follow these steps:

Open the /etc/exports file in a text editor.

Add lines that define the path, hostnames, and access level for each file system or path that you want to make accessible to NFS clients on your network.

For example, this line

/mnt/cdrom * (ro)

will allow anyone (originating from any hostname) to have read-only access to the /mnt/cdrom directory.

This line

/opt/wordperfect *.company.com (rw)

Allows any users coming from a hostname within the .company.com domain to access the /opt/wordperfect directory, with read-write access (dangerous, but perhaps necessary to run the application).

The clients can then mount the NFS resource on your OpenLinux system with a command like this one (or equivalent commands or graphical interfaces on their systems):

$ mount -t nfs linuxhostname:/opt/wordperfect/ /applications/wordperfect

NOTE: If you have enabled NFS as a start-up daemon, you can use the following procedure to start NFS immediately (without rebooting).

To re-start NFS services (so that configuration changes take effect), enter these two commands at a command prompt (while logged in as root):

# /etc/ rc.d/init.d/nfs stop

# /etc/ rc.d/init.d/nfs start

The new configuration is loaded and NFS is running.

CAUTION: NFS mounting involves several security options; the username provided by the client and the access level granted in the /etc/exports file are only two considerations when setting up an NFS server intended for use by numerous clients. See the man pages references below for details on the /etc/exports settings.

All the required NFS daemons are started at boot time by default. The portmapper which controls access to NFS services, however, utilizes the /etc/hosts.allow and /etc/hosts.deny files for access control. To enable other machines to mount a directory from your system via NFS, you must add a line to /etc/hosts.allow for each machine or domain which you wish to allow to connect to the portmapper.

In order to avoid deadlocks, the portmap program does not attempt to look up the remote host name or user name, nor will it try to match NIS netgroups. Thus only network number patterns (IP addresses) will work for portmap access control. For example, to allow all hosts in the madison.com domain (whose network address is 192.168.100.0), you would add the following line to /etc/hosts.allow:

portmap: 192.168.100.0/255.255.255.0

See the hosts_access(5) and rpc.portmap(8) man pages for complete access control details.

To export a filesystem via NFS, so that other systems can mount it, include the directory where the filesystem is mounted on your system in the /etc/exports file. For example, to allow hosts matching *.xmission.com to mount /mnt/source_cd and /mnt/cdrom as read-only filesystems, first add these lines to the /etc/exports file:

/mnt/source_cd *.xmission.com(ro)

/mnt/cdrom *.xmission.com(ro)

Then kill and restart the rpc.nfsd and rpc.mountd daemons so that they will load the new configuration. See the exports(5), rpc.nfsd(8) and rpc.mountd(8) man pages for complete details.

For additional details on NFS services, see the manual pages for exports , nfsd , hosts_access (5), mountd and rpc.portmap , as well as the NFS titles listed in the bibliography.

Running DOS Programs in OpenLinux

OpenLinux includes a DOS emulator and a copy of the DR-DOS operating system. This capability is installed and available by default if you used the standard OpenLinux installation.

To use DOS within OpenLinux, enter this command in character mode or in a graphical terminal emulator window:

$ dos

A DOS session begins, as shown in See DOS sessions can be started from any graphical or character-based command line.. The C:> drive is mapped to the hard disk image of DOS stored within the Linux file system. Change to drive L: to access the root of the Linux filesystem (/).

 

DOS sessions can be started from any graphical or character-based command line.

You can directly run most DOS programs, including graphical DOS games.

Multiple DOS sessions can be started; each is run as a separate Linux process. These can be used to display DOS programs on dumb terminals connected to the Linux system, or for many other uses.

Filenames within the Linux file system are altered to fit a standard 8.3 DOS filename format, which can make it difficult to locate some files, but all DOS file operations are mapped to the Linux filesystem (provided the permissions of the user who started the DOS session are not overstepped).

To exit a DOS session, execute this command at the DOS prompt:

L:>\ exitemu

The two files /etc/dosemu.users and /etc/dosemu.conf provide the configuration information for the DOS sessions, and can be changed as needed. The file /etc/dosemu.conf.sample is also provided as a sample, with extensive notes describing how the DOS emulator and DOS itself are configured for use under Linux.

Special OpenLinux Installation Procedures

If you are responsible for installing OpenLinux on multiple computers, there are several methods you can use to install more efficiently than from a standard CD-ROM install. Here are some examples:

Installing from an Install Server

Using an Install Server, any computer on your LAN can install OpenLinux over the network. This procedure is supported for both binary and source installations of OpenLinux. Because of potential copyright restrictions, this feature is not supported for commercial software installations.

Here are the steps to set up a Lizard install from an NFS Install server (this server should have the nfsd daemon running):

NOTE: Make sure you have enough disk space to hold the entire contents of the CD-ROMs from which you will install. The OpenLinux Install CD-ROM alone consumes 650 MB of hard disk space. If you install the source CD-ROM as well, which you may not want to do, that also uses about 650 MB.

As root user, create cd1 and cd2 directories to contain the contents of the OpenLinux CD-ROMs. For example:

mkdir /install/cd1 /install/cd2

  1. Install the contents of OpenLinux Install CD-ROM and OpenLinux Source CD-ROM in /install/cd1 and /install/cd2, respectively.

You may only need /install/cd1 if you don't want the source code installed. You can either mount the CD-ROM on that mount point, or copy the contents, as described below: Here is an example of how to copy the contents:

Insert the OpenLinux Install CD-ROM into the CD-ROM drive.
  1. To mount the CD-ROM, type:
mount /mnt/cdrom
  1. To copy the entire directory structure from the CD-ROM to the /install/cd1 directory, type:
cp -r -v /mnt/cdrom/* /install/cd1
  1. When the copy is complete, repeat this procedure for the OpenLinux Source CD-ROM and the /install/cd2 directory.
  2. To make the install directory available via NFS, you need to add an entry to the /etc/exports file. For example, to make the directory available to everyone in the handsonhistory.com domain, you would add the following:

/install *.handsonhistory.com (ro,no_root_squash)

  1. Restart your nfsd daemon so the exported directory is picked up.
  2. On the Install server, you need to configure a DHCP server.

When you set up the DHCP server, there must be an entry for every client to which you want to install. In that entry, you need to identify the client, the install server, and the location of the installation source directory. Here is an example of an entry you would add to the /etc/dhcpd.conf file on the DHCP server:

host maple {
hardware ethernet 00:01:E3:FB:34:35;
fixed-address 192.168.1.3;
option host-name maple.handsonhistory.com;
next-server 192.168.1.1;
filename "/install/cd1";
}

The client is identified as the host named maple. The next three lines identify maple's Ethernet address, IP address, and host name of the client. The next-server option indicates the address of the install server (192.168.1.1). The filename option indicates the location of the installation CD-ROM contents (/install/cd1).

Configuration of the install server is done. The next time you restart your dhcpd daemon, the configuration file is read and the install server will be available.

  1. On the install client, start the installation from an install floppy diskette (described in Chapter Two).

The client should detect the install server and the source using DHCP. The installation should continue as described in Chapter Three.

Using the Lizard Unattended Install

While an Install server makes it convenient to access the packages needed to install OpenLinux, a Lizard Unattended Install can add the convenience of presetting configuration options so that installation doesn't require you to sit there and answer questions. It does this by allowing you to set up rules files that are used during installation.

Lizard Unattended Install from a Server

You can use the Lizard Unattended Install from an Install server (described just before this section). Once an Install server is configured, follow this procedure:

From the Install server, create a lizard directory that is parallel to your CD-ROM source directories you created.

For example, if you added source to /install/cd1, you need to create a directory called /install/lizard.

  1. Create a directory structure under the lizard directory that contains at least the following:

lizard/rules

lizard/profile

lizard/etc/XF86Config

lizard/etc/pkgs.sel

lizard/bin/finish.sh

lizard/bin/start.sh

lizard/bin/instpkg

  1. Create a rules file. Here is an example of a rules file entry that defines the default used for network 192.168.19:

network 192.168.19 start.sh profile XF86Config pkgs.sel finish.sh

In this example, the network entry sets up the default rules used to install on any client in the 192.168.19 network. Other entries identify the preinstall script, the install profile, the X configuration, package selection, and postinstall scripts, in that order. Those files are looked for in the lizard directory.

You can override or supplement the default by using the keyword "hostname" to specify a client that you want to handle differently. You could then create files in the lizard/etc directory that append the IP address to the file name. For example:

  • hostname 192.168.19.10 start.sh.192.168.19.10 profile.192.168.19.10
  • Create a profile.

You can create a profile by installing OpenLinux on a system, then running the following command on that system:

mklizard

The result of this command is the file /tmp/lizard.tgz. The file contains the following files in tar/gzip format:

etc/profile.IPaddr

/etc/pkgs.sel.IPaddr

/etc/XF86Config.IPaddr

You can untar/unzip this file and use the contents to create profiles for different computers on your network. You want to make sure that the X configuration matches and that the profile and packages are set to create the system that you want.

  1. On the client, when you start your computer and see a boot prompt, type the following:

install lizard=path

where path is replaced by auto, or by the NFS path to the lizard directory. For example, you could type any of the following:

install lizard=auto

install lizard=192.168.19.10:/install/lizard

NOTE: You can control the unattended install remotely from your X display. From the X display, type xhost +. From the install client, insert the boot floppy and type install display=IPADDR:0.0 at the boot prompt (replacing IPADDR with the IP address where the X display is running). Lizard will appear on the X display, where it can remotely control the installation on the install client.

Lizard Unattended Install from a Floppy

To perform a Lizard Unattended Install from a floppy, do the following:

Insert a 3.5-inch floppy diskette into your disk drive.
  1. Format the floppy for an ext2fs file system as follows:
  2. From the main menu, select System|KFloppy.
  3. From the KDE Floppy Formatter window, select ext2fs file system, Full Format, and the correct drive letter and format (e.g. A: 3.5).
  4. Click on Format.
  5. Create the Lizard Unattended Install floppy by executing the mklizard command:
  6. mklizard --floppy
  7. On the client, when you start your computer and see a boot prompt, type the following:
  8. install lizard=floppy
  9. The installation continues without user intervention

 

Bibliography for System Administrators

While we hope the information in this chapter provides system administrators with guidance for many of the topics that they will need to know about, it only scratches the surface of the capabilities of OpenLinux and the configuration information needed to fully utilize those capabilities.

What follows is a list of books intended as further reading for system administrator. Some titles provide general Linux information at a more technical level than this guide does; others are focused on specific tasks such as setting up email or Web servers.

CAUTION: This information is intended to be an aid to OpenLinux system administrators--we hope you will find it useful as you learn more about Linux and its related applications. Nevertheless, Caldera Systems, Inc. neither warrants nor guarantees any of these titles nor the information they contain.