System Configuration with the Control Panel

NotePlease Note
 

Most of what can be done with the control panel applications can also be done using linuxconf. In addition, linuxconf supports both character-cell and graphical user interfaces. Please refer to the section called System Configuration with linuxconf for an introduction to linuxconf.

The control panel is a launching pad for a number of different system administration tools (see Figure 3-21). These tools make your life easier by letting you configure things without remembering configuration file formats and awkward command line options.

Figure 3-21. The Control Panel

To start the control-panel, start the X Window System as root with startx and type control-panel in an Xterm. You will need to be root to run the control-panel tools successfully. You can do this as well if you already have X running as a normal user. Just type su -c control-panel and then type the root password when prompted. If you plan to do other tasks as root, you could type su followed by the root password when prompted.

NotePlease Note
 

If you are not running X as root, you may need to give root access to your system's X server. To do this, enter the following command on a non-root terminal window:

xhost +localhost

After starting the control panel, simply clicking on an icon starts up a tool. Please note that you are not prevented from starting two instances of any tool, but doing so is a very bad idea because you may try to edit the same files in two places and end up overwriting your own changes.

NotePlease Note
 

If you do accidentally start a second copy of a tool, you should quit it immediately. Also, do not manually edit any files managed by the control-panel tools while the tools are running. Similarly, do not run any other programs (such as linuxconf) that may change those files while the tools are running.

Printer Configuration

Please note that the Official Red Hat Linux Getting Started Guide contains more up-to-date documentation on printtool, so be sure to check that document before using printtool.

The printer configuration tool (printtool) maintains the /etc/printcap file, print spool directories, and print filters. The filters allow you to print many different types of files, including:

In other words, simply printing a GIF or RPM file using the lpr command will result in the printer doing "the right thing."

Figure 3-22. Print Tool

In order to create a new print queue, choose Add. Then, select what type of printer is being added. There are four types of print queues which can be configured with printtool:

Figure 3-23. Selecting a Printer Type

After choosing the printer type, a dialog box requests further information about the print queue (see Figure 3-24). All types of print queues require the following information:

For local printers, the following information is also required:

Figure 3-24. Adding a Local Printer

Figure 3-25. Configuring a Print Filter

For remote printers, the dialog box contains additional fields; fill in the following information:

The remote machine must be configured to allow the local machine to print on the desired queue. Typically /etc/hosts.lpd controls this.

Figure 3-26. Adding a Remote Printer

Figure 3-27. Adding an NCP Printer

Figure 3-28. Adding an SMB Printer

For SMB and NCP printers, fill in the following information:

NotePlease Note
 

If you require a username and password for an SMB (LAN Manager) or NCP (NetWare) print queue, they are stored unencrypted in a local script. Thus, it is possible for another person to learn the username and password. It is therefore recommended that the username and password for use of the printer to be different than that for a user account on the local Red Hat Linux system, so that the only possible security compromise would be unauthorized use of the printer. If there are file shares from the SMB server, it is recommended that they also use a different password than the one for the print queue.

After you have added your print queue, you may need to restart the printer daemon (lpd). To do so, choose Restart lpd from the lpd menu.

You may print a test page for any print queue you have configured. Select the type of test page you would like to print from the Tests menu.

Figure 3-29. Printing a Test Page

Loading Kernel Modules

The Linux kernel has a modular design. At boot time, only a minimal resident kernel is loaded into memory. Thereafter, whenever a user requests a feature that is not present in the resident kernel, a kernel module is dynamically loaded into memory. After a specified period of inactivity, the module may be removed from memory. This design promotes leanness and efficiency.

The mechanism that supports dynamic loading of modules is a kernel thread called kmod. When the kernel requests a module, kmod wakes up and calls modprobe(8) to get it.

When you install Red Hat Linux, the hardware on your system is probed and you provide information about how the system will be typically used and which programs should be loaded. Based on this probing and the provided usage information, the installation program decides which features to compile into the resident kernel and which to put in loadable modules, and sets up the dynamic loading mechanism to work transparently. But this is a highly configurable procedure. If you build your own custom kernel, you can make all of these decisions for yourself.

If you add new hardware after installation requiring support provided in a kernel module, you need to set up the dynamic loading mechanism. You do this by editing the module configuration file, /etc/conf.modules.

For example, if at the time you installed Red Hat Linux your system included a model SMC EtherPower 10 PCI network adapter, the module configuration file will contain this line: alias eth0 tulip. If, after installation, you install a second identical network adapter to your system, add this line to /etc/conf.modules:alias eth1 tulip.

See Appendix A for an alphabetical list of kernel modules and the hardware the modules support.

Network Configuration

NotePlease Note
 

Documentation on network configuration using linuxconf can be found in the section called Getting Connected with Linuxconf (Network Configuration).

The network configuration tool (netcfg) shown in Figure 3-30 is designed to allow easy manipulation of parameters such as IP address, gateway address, and network address, as well as name servers and /etc/hosts.

Figure 3-30. Network Configuration Panel

Network devices can be added, removed, configured, activated, deactivated and aliased. Ethernet, arcnet, token ring, pocket (ATP), PPP, SLIP, PLIP and loopback devices are supported. PPP/SLIP/PLIP support works well on most hardware, but some hardware setups may exhibit unpredictable behavior. When using the Network Configuration Tool click Save to write your changes to disk, to quit without making any changes select Quit.

Managing Names

The Names panel of the Network Configuration tool serves two primary purposes: setting the hostname and domain of the computer, and determining which name server will be used to look up other hosts on the network. The Network tool is not capable of configuring a machine as a nameserver. To edit a field or add information to a field, simply click on the field with the left mouse button and type the new information.

Figure 3-31. Adding/Editing Hosts

Managing Hosts

In the Hosts management panel you have the ability to add, edit, or remove hosts from the /etc/hosts file. Adding or editing an entry involves identical actions. An edit dialog box will appear, simply type the new information and click Done when you are finished. See Figure 3-31 for an example.

Adding a Networking Interface

If you have added a networking interface to your machine since installing Red Hat Linux, or you didn't configure your Ethernet card at install time, you can configure it with a few clicks of a mouse.

NotePlease Note
 

You may need to configure kerneld to load a driver for the network interface you are adding (e.g., eth0); see the section called Loading Kernel Modules for more information.

Begin adding an interface by clicking on Interfaces in the main panel. This will bring up a window of configured devices with a row of available options, see Figure 3-32.

Figure 3-32. Configured Interfaces

To add a device, first click the Add button then select the type of interface you want to configure from the box that appears (See Figure 3-33).

Figure 3-33. Choose Interface Type

NotePlease Note
 

There is now a clone button available in netcfg. This button can be used to create a "clone" of an already-existing interface. By using clone interfaces, it is possible for a laptop to have one Ethernet interface defined for a work LAN, and a clone Ethernet device defined for a home LAN.

PPP Interface

Adding a PPP interface can be as simple as supplying the phone number, login name and password in the Create PPP Interface dialog shown in Figure 3-34. If you must use PAP authentication for your PPP connection, choose Use PAP authentication. In many cases some degree of customization will be needed to establish a PPP connection. Choosing the Customize button will allow you to make changes to the hardware, communication, and networking settings for the PPP interface.

Figure 3-34. Create PPP Interface

SLIP Interface

In order to configure a SLIP interface you must first supply a phone number, login name, and password. This will supply the initial parameters for the chat script needed to establish a SLIP connection. When you choose Done, a dialog titled Edit SLIP Interface appears that enables you to further customize the hardware, communication and networking parameters for your SLIP interface.

PLIP Interface

To add a PLIP interface to your system you only have to supply the IP address, the remote IP address, and the Netmask. You can also select if you want to activate the interface at boot time.

Ethernet, Arcnet, Token Ring and Pocket Adaptor Interfaces

If you are adding an ethernet, arcnet, token ring or pocket adapter to your computer you will need to supply the following information:

  • Device -- This is determined by netconfig based on the devices already configured.

  • IP Address -- Enter an IP address for your network device.

  • Netmask -- Enter the network mask for your network device.

    The network and broadcast addresses are calculated automatically based on the IP address and netmask you enter.

  • Activate interface at boot time:

    If you want the device to be configured automatically when your machine boots select this by clicking on the box.

  • Allow any user to (de)activate interface:

    Check this if you want any user to be able to activate or deactivate the interface.

  • Interface configuration protocol:

    If you have a BOOTP or DHCP server on your network and would like to use it to configure the interface, choose the appropriate option; otherwise, choose none.

After providing the configuration information for your new device, click Done. The device should appear in your Interfaces list as an inactive device. (The active column should have a label of no.) To activate the new device, first select it with a mouse click and then choose on the Activate button. If it does not come up properly, you may need to reconfigure it by choosing Edit.

Managing Routes

In the Routes management screen you have the ability to add, edit, or remove static networking routes. Adding or editing an entry involves identical actions, just like the Hosts panel. An edit dialog box will appear; simply type the new information and click Done when you are finished. See Figure 3-35 for an example.

Figure 3-35. Adding/Editing Routes

Time and Date

The "time machine" allows you to change the time and date by clicking on the appropriate part of the time and date display and clicking on the arrows to change the value.

The system clock is not changed until you click on the Set System Clock button.

Click on Reset Time to set the time machine time back to that of the system.

NotePlease Note
 

Changing the time can seriously confuse programs that depend on the normal progression of time, and could possibly cause problems. Try to quit as many applications and processes as possible before changing the time or date.