- Table of Contents
- Copyright
- About the Lead Authors
- About the Contributing Authors
- Acknowledgments
- Tell Us What You Think!
- Introduction
- I. Red Hat Linux Installation and User Services
- Chapter 1. Introduction to Red Hat Linux
- Chapter 2. Installation of Your Red Hat System
- Chapter 3. LILO and Other Boot Managers
- Chapter 4. Configuring the X Window System, Version 11
- Chapter 5. Window Managers
- Chapter 6. Connecting to the Internet
- Chapter 7. IRC, ICQ, and Chat Clients
- Chapter 8. Using Multimedia and Graphics Clients
- II. Configuring Services
- Chapter 9. System Startup and Shutdown
- The Boot Process
- The Initialization Process and Startup Scripts
- linuxconf and Managing Your Services
- Shutting Down the Linux System
- When the System Crashes
- Summary
- Chapter 10. SMTP and Protocols
- Chapter 11. FTP
- Chapter 12. Apache Server
- Chapter 13. Internet News
- Chapter 14. Domain Name Service and Dynamic Host Configuration Protocol
- Chapter 15. NIS: Network Information Service
- Chapter 16. NFS: Network Filesystem
- Chapter 17. Samba
- III. System Administration and Management
- Chapter 18. Linux Filesystems, Disks, and Other Devices
- Chapter 19. Printing with Linux
- Chapter 20. TCP/IP Network Management
- Chapter 21. Linux System Administration
- Chapter 22. Backup and Restore
- Chapter 23. System Security
- IV. Red Hat Development and Productivity
- Chapter 24. Linux C/C++ Programming Tools
- Chapter 25. Shell Scripting
- Chapter 26. Automating Tasks
- Chapter 27. Configuring and Building Kernels
- Chapter 28. Emulators, Tools, and Window Clients
- V. Appendixes
- A. The Linux Documentation Project
- B. Top Linux Commands and Utilities
- C. The GNU General Public License
- D. Red Hat Linux RPM Package Listings
linuxconf and Managing Your Services
One of the great things about Red Hat Linux is the number of tools included in the distribution to help you manage your system. One important tool is Jacque Gelinas's linuxconf, which can be called from a command line in a terminal window while you're running X, from the command line of your console screen, or through your favorite Web browser. You should use linuxconf for a number of reasons:
- linuxconf provides a comprehensive graphic interface for administering your Red Hat system.
- You can save different system configurations, allowing you, for example, to set up your computer as a desktop machine or Internet server at different times with a single command line.
- linuxconf replaces and maintains a number of user, file, and network utilities (such as the old usercfg, fstool, and cabaret); the program is used as a configuration tool and service activation tool.
- linuxconf has the capability to use modules to add new features or capabilities.
- The program features built-in help for many services or actions.
- linuxconf allows system maintenance over a network, enabling more efficient management of in-house or remote computers and networks.
linuxconf is found under the /bin directory and weighs in at nearly 950,000 bytes. The program, written with more than 80,000 lines of C++ code, also comes with a support directory, /usr/lib/linuxconf, containing nearly 32MB of data, help files in several languages, and code modules.
After you log in as the root operator, start the linuxconf program from the command line with the following and press the Enter key:
# linuxconf &
When you first run linuxconf you'll see a dialog of help text. If you're running X, have installed the GNOME software libraries, and run linuxconf a second time, the program's main window will appear as shown in Figure 9.1. Note that you can also use linuxconf without running X.
When used without GNOME libraries or from the console, the program (which started life as a configuration tool for the XFree86 X11 distribution) responds to keyboard commands just like Red Hat's Linux installation tool. Navigate around the program's dialog box by pressing the Tab key and then use the Enter key when the cursor is on a desired button or item in a list.
Figure 9.1 The linuxconf client features a new generation of graphical Linux administration tools.
linuxconf can be used not only interactively, but also from the command line. The following related commands (and perhaps others by the time you read this) will be found in your filesystem after you install linuxconf (part of Red Hat Linux since version 5.1):
- dnsconf—A utility that can be used to configure a domain name server
- fixperm—A utility that checks system file permissions
-
fsconf—A utility that manipulates the filesystem table, /etc/fstab, as shown in Figure 9.2.
Figure 9.2 The fsconf command manipulates your system's filesystem table and can be used to configure various mounting options.
- mailconf—A utility that configures the sendmail daemon
-
netconf—A TCP/IP services configuration utility, as shown in Figure 9.3
Figure 9.3 The netconf command is a graphical network configuration tool.
- userconf—User and group configuration (to add or delete users and groups)
Each program is a symbolic link to linuxconf. For example, to delete the user cloobie from the command line, use linuxconf's symbolic link userconf:
# userconf --deluser cloobie
You can get help for each utility by using the --help command-line option, or if using X11, by clicking the Help button in the utility's main dialog box.
The linuxconf command will also help you properly start and stop services under Linux while the system is running. Although you can selectively "kill" processes with the following code, where pid is the number of the running process, this is a crude, ineffective, and potentially harmful way to stop processes and system services.
# kill -9 pid
However, based on the information you have learned so far about the init scripts, you can use the following approach to stop the httpd Web server (as an example):
# /etc/rc.d/init.d/httpd.init stop
Both of these are manual approaches, but the Red Hat folks have taken great pains to make system administration easier, so why not take advantage of menu convenience? When you use linuxconf, you can see at one glance which processes are going to be enabled or disabled.
If you manually configure your system's services by hand editing configuration files, be careful—making changes to default runlevels in /etc/inittab or indiscriminately using administration tools to change services or runlevels can put your system into an unusable state. If you run into trouble, reset your computer and enter runlevel 1.
Booting into single-user mode might allow you to fix any problems (a similar approach to another operating system's "safe mode"). When you boot into single-user mode, you go directly into a root operator command line, which is handy for enabling a quick fix or performing other system administration tasks.
You should also know that linuxconf is a work in progress; not every item in the program is documented or has an associated Help menu or complete help text. For some additional details about linuxconf, tips on using modules, or other errata, see linuxconf's home page at http://www.solucorp.qc.ca/linuxconf/.
You can also subscribe to the linuxconf mailing list, linuxconf@hub.xc.org, or read archives of discussions about linuxconf through this site.
Shutting Down the Linux System | Next Section

Account Sign In
View your cart