Please 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-26). These tools make your life
easier by letting you configure things without remembering configuration
file formats and awkward command line options.
Figure 3-26. 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.
Please 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.
Please 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.
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:
plain text (ASCII) files
PostScript files
TeX .dvi files
GIF, JPEG, TIFF, and other graphics formats
RPMs
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-27. 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:
Local print queues are for printers attached to a printer or
serial port on your Red Hat Linux system.
Remote print queues are attached to a different system which you
can access over a TCP/IP network.
SMB print queues are attached to a different system which uses
LAN-Manager-type (SMB) networking.
NCP print queues are attached to a different system which uses
Novell's NetWare network technology.
Figure 3-28. Selecting a Printer Type
After choosing the printer type, a dialog box requests further
information about the print queue (see Figure 3-29). All types of print
queues require the following information:
Queue Name: What the queue will be called. Multiple names can be
specifed with the | (pipe) character separating
entries.
Spool Directory: This is the directory on the local machine where
files are stored before printing occurs. Be careful to not have
more than one printer queue use a given spool directory.
File Limit: Maximum size print job accepted, in kilobytes (1 kb =
1024 bytes). A size of 0 indicates no limit should be imposed.
Input Filter: Filters convert printed files into a format the
printer can handle. Press Select to choose the
filter which best matches your printer (see Figure 3-30).
In addition to configuring print queues able to print graphical
and PostScript output, you can configure a
text-only printer, which will only print
plain ASCII text. Most printer drivers are also able to print
ASCII text without converting it to PostScript first; simply
choose Fast text printing when you configure
the filter.
Please Note: This only works for non-PostScript printers.
Suppress Headers: Check this if you don't want a header page
printed at the beginning of each print job.
For local printers, the following information
is also required:
Printer Device: Usually /dev/lp1; the name of
the port which the printer is attached to. Serial printers are
usually on
/dev/ttyS?
ports. Note that you will need to manually configure serial
parameters.
Figure 3-29. Adding a Local Printer
Figure 3-30. Configuring a Print Filter
For remote printers, the dialog box contains
additional fields; fill in the following information:
Remote Host: Hostname of the remote machine hosting the printer.
Remote Queue: Name of the queue to print to on the remote machine.
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-31. Adding a Remote Printer
Figure 3-32. Adding an NCP Printer
Figure 3-33. Adding an SMB Printer
For SMB and NCP printers, fill in the following information:
Hostname of Printer Server: Name of the machine to which the
printer you want to use is attached.
IP number of Server: The IP address of the machine to which the
printer you want to use is attached; this is optional and only
relevant for SMB printers.
Printer Name: Name of the printer on which you want to print.
User: Name of user you must login as to access the printer
(typically guest for Windows servers, or
nobody for samba servers).
Password: Password (if required) to use the printer (typically
blank). Someone should be able to tell you this if you do not
already know it.
Please 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.
Red Hat Linux includes kerneld, the Kernel Daemon, which
automatically loads some software and hardware support into memory as
it is needed, and unloads it when it is no longer being used.
The tool shown in Figure 3-35 manages the
configuration file for kerneld. While kerneld can load some things,
such as filesystems, without explicit configuration, it needs to be
told what hardware support to load when it is presented with a generic
hardware request.
Figure 3-35. Kernel Module Management
For instance, when the kernel wants to load support for ethernet,
kerneld needs to know which ethernet card you have, and if your
ethernet card requires special configuration, it needs to know about
that, too.
To change the options being given to a module when it is loaded,
click on the line to select it, then click the
Edit button. kernelcfg will bring up a window
which looks like Figure 3-36. The
options kernelcfg knows about (normally all available options) will
each have their own field. Normally, you will want to ignore the
Other arguments field. Some modules normally
take no arguments; just in case, they have an
Arguments field which allows you to enter
configuration information.
To change which module gets invoked to provide a generic service,
such as an ethernet card or SCSI host adapter module, you must
delete the old one and add a new one. To delete a module, select it
by clicking on it, then click on Remove. Then
click on Add to add the new module, as explained
in the following section.
To add a module of any type, click on the Add
button. You will be presented with a dialog box (Figure 3-37) asking you to choose a
module type. Ethernet is eth, Token Ring is
tr, SCSI controllers are
scsi_hostadapter, and so on. Click
Ok to continue to the next dialog box.
Figure 3-37. Adding a module
If there is more than one module which can be used for the module
type you have chosen, you will be presented with a dialog box (Figure 3-38) which asks which module
you want to use, and may also ask for specifics about the type of
module; for ethernet, for example, you need to choose from
eth0, eth1, etc. When you
are done, click Ok again to continue to specify
any module options in the next dialog box (Figure 3-38), which is the same as
the dialog for editing a module.
The changes that you make with the Kernel Daemon Configuration tool
will be made in the /etc/conf.modules file,
which kerneld reads whenever it is started. Once you have made
changes, you can restart kerneld by clicking on the Restart
kerneld button. This will not cause
any modules which are currently in use to be reloaded, it will only
notify kerneld to use the configuration when it loads more modules
in the future.
The network configuration tool (netcfg) shown in
Figure 3-39 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-39. 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.
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.
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-40
for an example.
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.
Please 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 Kernel Daemon Configuration 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-41.
Figure 3-41. 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-42).
Figure 3-42. Choose Interface Type
Please 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.
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-43. 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.
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.
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.
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.
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-44 for an example.
Please Note: Documentation on setting your system's time and date using
Linuxconf can be found in the section called Date and Time.
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.
Please 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.