Many Linux distributions provide GUI interfaces that permit configuration of basic networking features, common servers, and often other aspects of system operation. These tools vary substantially from one distribution to another, although they do share certain commonalities. They can usually be launched from a menu option in the distribution's default K Desktop Environment (KDE) or GNU Network Object Model Environment (GNOME) desktops, or they can be launched by typing their names in xterms. (You may need to be root to launch these tools, particularly in the latter way.) These tools include Linuxconf (used by Red Hat and many of its derivatives, including Mandrake), YaST and YaST2 (used by SuSE), and ksysv (a GUI variant on ntsysv , discussed earlier).
|
There are also Web-based administration tools, such as Webmin and SWAT. Indeed, Linuxconf can be used remotely via a Web-based interface, as well as locally. Chapter 16 , Maintaining a System from a Distance , describes such tools. Although intended primarily for remote administration, they can also be used locally by pointing a Web browser at its local system's Web-based administrative tool. |
The Linuxconf utility is a modular configuration tool; it consists of a framework that accepts configuration modules to handle specific servers and other configuration tasks. You can run Linuxconf in text mode (in which it uses text-based menus), in GUI mode (in which it runs in a separate window), or via a Web-based interface (accessed via a Web browser, as discussed in Chapter 16 ). The GUI interface requires not just the main linuxconf package, but a separate package typically called gnome-linuxconf or linuxconf-gui . If Linuxconf can use its GUI tools, it does so automatically; otherwise it falls back on its text-based mode. This section emphasizes the local GUI access methods, but the same options are available in text-mode or Web-based access; only the details of the user interface are different. The details of the GUI interface differ somewhat from one distribution to another. In particular, Red Hat uses a single window and displays all the configuration modules in that window, whereas Mandrake uses separate windows for each configuration module.
|
The official Linuxconf Web site is http://www.solucorp.qc.ca/linuxconf/ . Although it ships with both Red Hat 7.2 and Mandrake 8.1, it is officially deprecated on both, and so may eventually disappear from these distributions. It's unclear in early 2002 if Linuxconf will be replaced in these distributions by another unified tool or by a series of server-specific tools. Although it's most strongly associated with Red Hat and Mandrake, versions of Linuxconf tailored to other distributions are available from the main Linuxconf Web site. |
When first launched, Linuxconf presents an
expandable list of configuration areas, broken down into three tabs: Config,
Control, and Status. Each area has subareas, until you reach specific
configuration modules. (In Mandrake's implementation, you click on one area to
obtain a separate window showing the options within that area, and so on until
you reach the configuration module you want.) Figure 4.2 shows
Red Hat's implementation of this model, with the Control
Start Linuxconf and locate the
Control
Locate the server you want to control in the list on the right. For instance, to control sendmail, you'd locate the sendmail item and click it. The result is a new tab on the right of the Linuxconf window showing the current status of the server.
3.
Click the Run Levels tab. The display should now resemble Figure 4.3 . You can enable or disable the server for any of the specified runlevels by clicking the checkboxes next to each runlevel number.
Click Accept in the Service tab, then click Dismiss in the Service Control tab.
5.
Select File
At this point, your system should be reconfigured to launch the servers in the runlevels you've selected. You can verify this with chkconfig or by examining the filenames in the SysV script link directory.
In addition to enabling or disabling servers, Linuxconf includes the ability to configure some servers. As Red Hat and Mandrake have been moving away from the use of Linuxconf, they have omitted more of these configuration modules with each new version of their distributions. You can locate many of them on the Linuxconf Web site, although they don't always work correctly. The problem is that server configuration file locations, and even the contents of the files, vary from one distribution to another or from one version of a server to another. This makes creating a truly universal configuration module impossible for many servers.
SuSE's Yet Another Setup Tool (YaST) and YaST2 are text-based and GUI configuration tools, respectively. Although they feature different user interfaces, the two tools provide very similar options. This section emphasizes the use of YaST2, but you shouldn't have trouble using YaST if you choose to do so. (For simplicity's sake, I use the word YaST to refer to both tools unless the distinction is important.) You can launch the text-mode YaST by typing yast , or YaST2 by typing yast2 . The main YaST2 window resembles the one shown in Figure 4.4 . You select broad areas of configuration from the list on the left, and specific configuration tools from the options on the right.
Other YaST tools, particularly in the Network area, can be used to configure specific servers. For instance, the Network area hosts both an NFS tool and a Sendmail Configuration tool, which are used to configure NFS and sendmail, respectively. (These topics are covered in Chapters 8 and 19 , although these chapters don't focus on YaST configuration.)
Earlier in this chapter, I described the chkconfig and ntsysv tools for managing SysV startup scripts (and sometimes servers launched through a super server). These tools are useful, but if you're a fan of fully GUI administrative tools, they may not be quite enough to suit your tastes. There are some fully GUI alternatives, though, such as ksysv and tksysv . The former is part of the KDE project, but can be used in other environments if you prefer. The latter is not associated with any particular GUI suite. Both are most likely to work smoothly with Red Hat or its derivative distributions. Figure 4.6 shows ksysv in operation.
On the whole, GUI startup script utilities like ksysv and tksysv are less flexible than tools like Linuxconf or YaST. This is by design; the SysV script tools are intended to do just one job, not the many jobs performed by more general-purpose configuration tools. The SysV script tools can help you tweak your SysV startup scripts, but they aren't a substitute for knowing how the system works. You must understand runlevels and the startup sequence for your scripts, or at least the basic principles of SysV startup script sequencing.