📄 0329-0332.html
字号:
<HTML>
<HEAD>
<TITLE>Developer.com - Online Reference Library - 0672311623:SAMS TEACH YOURSELF LINUX IN 24 HOURS:Red Hat Tools</TITLE>
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>
-->
<!-- ISBN=0672311623 //-->
<!-- TITLE=SAMS TEACH YOURSELF LINUX IN 24 HOURS //-->
<!-- AUTHOR=BILL BALL, STEPHEN SMOOGEN //-->
<!-- PUBLISHER=MACMILLAN //-->
<!-- IMPRINT=SAMS //-->
<!-- PUBLICATION DATE=1998 //-->
<!-- CHAPTER=22 //-->
<!-- PAGES=0329-0338 //-->
<!-- UNASSIGNED1 //-->
<!-- UNASSIGNED2 //-->
<P><CENTER>
<a href="../ch21/0326-0328.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="0333-0336.html">Next</A>
</CENTER></P>
<A NAME="PAGENUM-329"><P>Page 329</P></A>
<H3><A NAME="ch22_ 2">
Hour 22
</A></H3>
<H2>
<A NAME="ch22_ 3">
Red Hat Tools
</A>
</H2>
<P>In this hour you'll learn how to use Red Hat Software's graphic
system-administration utilities. These easy-to-use programs are an efficient and handy way to configure
and maintain your system. You'll quickly learn why many Linux users prefer the Red Hat
Linux distribution, and why several of the tools, such as the
rpm command, or the Red Hat Package Manager, have become standard tools in the Linux system administrator's toolbox.
</P>
<P>This collection of Red Hat tools proves that Linux system management is becoming
easier, and is catching up with the graphic system administration tools provided by
commercial UNIX operating systems. In fact, if you have experience with any other systems, you
may find the Red Hat tools easier to use.
</P>
<H3><A NAME="ch22_ 4">
Configuring Your System with the Control-Panel
</A></H3>
<P>This section discusses Otto Hammersmith's control-panel, through which you can
access eight system administrator tools. You must run the X Window System in order to use
the control-panel command, which you'll find under the
/usr/bin directory. You'll also need to be logged in as the root operator to use all but one of control-panel's tools.
</P>
<P>To start the control-panel command, which uses files under the
/usr/lib/rhs directory, type its name on the command line of an X11 terminal window.
</P>
<A NAME="PAGENUM-330"><P>Page 330</P></A>
<!-- CODE SNIP //-->
<PRE>
# control-panel &
</PRE>
<!-- END CODE SNIP //-->
<P>This command line starts the control-panel command. A vertical window with large
buttons appears. You can select different tools by moving your cursor over a button and
pressing the left mouse button. You also can change control-panel's window to display
horizontally through its File menu (see Figure 22.1).
</P>
<TABLE BGCOLOR=#FFFF99>
<TR><TD>TIME SAVER</TD></TR>
<TR><TD>
<BLOCKQUOTE>
The fstool utility is also part of the
control-panel command, but according to Red
Hat Software, you should instead use the cabaret command (discussed later in
this hour in the section "Maintaining Your Filesystem with the
cabaret Command"). The cabaret command also is available through the setup utility.
</BLOCKQUOTE>
</TD></TR>
</TABLE>
<BR>
<P>Figure 22.1.<BR>
The control-panel <BR>
command is used to<BR>
run and display Red <BR>
Hat system administration<BR>
tools you can use<BR>
as the root operators to<BR>
manage your system.</P>
<P><a href="javascript:displayWindow('images/ch22fg01.jpg', 288, 216)"><img src="images/tn_ch22fg01.jpg"></a><BR>
</P>
<P>Some of the control-panel tools have built-in help. For information about the
control-panel command, read its manual page.
</P>
<H4><A NAME="ch22_ 5">
Creating and Maintaining Users with the usercfg Command
</A></H4>
<P>As a system administrator, you may find yourself adding, deleting, or changing users
and user information. If you don't want to use the
adduser, passwd, chsh, chgrp, and chfn commands (discussed in Hour 20, "Basic System Administration"), you can use the
usercfg command (see Figure 22.2). This graphic tool presents a dialog box that enables you to
implement the following tasks:
</P>
<A NAME="PAGENUM-331"><P>Page 331</P></A>
<UL>
<LI> Edit user and group identification information
<LI> Change users' login shells
<LI> Change users' passwords
<LI> Edit users' finger information
<LI> Add or delete system users
</UL>
<P>Run this command by clicking the usercfg button in the control-panel window, or
by starting a terminal window and typing the following:
</P>
<!-- CODE SNIP //-->
<PRE>
# usercfg
</PRE>
<!-- END CODE SNIP //-->
<P>Figure 22.2.<BR>
The usercfg command is<BR>
a graphic interface to<BR>
several command-line<BR>
system administration<BR>
commands.</P>
<P><a href="javascript:displayWindow('images/ch22fg02.jpg', 288, 216)"><img src="images/tn_ch22fg02.jpg"></a><BR>
</P>
<H4><A NAME="ch22_ 6">
Managing System Services with the tksysv Command
</A></H4>
<P>The tksysv command, by Donnie Barnes, is a run-level editor for Linux. While you
don't need to know all of the technical details about run-levels (you can find a description in
the /etc/inittab file), you should know that this tool changes which system services are started
or stopped when you log in at the console, run the X Window System, or reboot your
system into the single-user mode for system maintenance.
</P>
<P>The tksysv command presents a dialog box with a list of services on the left and five
columns on the right, with each column representing a run level.
</P>
<P>
<CENTER>
<TABLE BGCOLOR="#FFFF99">
<TR><TD><B>
CAUTION
</B></TD></TR>
<TR><TD>
<BLOCKQUOTE>
You should definitely read the tksysv command's built-in help, accessed
through the command's Help menu. Make sure you know what you're doing,
because stopping services can have a drastic effect by potentially disabling
PPP connections, printing, or other system features you normally need.
</BLOCKQUOTE></TD></TR>
</TABLE></CENTER>
</P>
<A NAME="PAGENUM-332"><P>Page 332</P></A>
<P>Start tksysv by clicking on the Runlevel Editor button in the control-panel window, or
by starting a terminal window and typing the following:
</P>
<!-- CODE SNIP //-->
<PRE>
# tksysv
</PRE>
<!-- END CODE SNIP //-->
<H4><A NAME="ch22_ 7">
Setting the System Time with the timetool Command
</A></H4>
<P>The timetool command is used to set or reset your system's date and time. You also can
set your system to use a 24-hour clock. When you use timetool, you'll see a dialog box
that enables you to set the date and time. When you select a portion of the date or time,
the portion is highlighted in red (if you're using a color monitor, of course). Change the
value by clicking the up or down arrow in the dialog box. This tool can be especially handy
if you live in an area using daylight savings time!
</P>
<P>To use the timetool command, select the Date and Time button from the control-panel,
or start the command from a terminal window by typing the following:
</P>
<!-- CODE SNIP //-->
<PRE>
# timetool
</PRE>
<!-- END CODE SNIP //-->
<H4><A NAME="ch22_ 8">
Creating Printers with the printtool Command
</A></H4>
<P>Details about using the printtool command, used to install and set up your system's
printer(s), are in Hour 15, "Preparing Documents."
</P>
<H4><A NAME="ch22_ 9">
Configuring your Network Services with the netcfg Command
</A></H4>
<P>The netcfg command is a convenient way for system administrators to easily
configure networking services and devices (see Figure 22.3). It's not necessary to go into the
details of network configuration, or to discuss using this command in great depth, but you
should know that this command installs networking services, such as Point-to-Point Protocol
or Serial Line Interface Protocol connections. This is a handy tool you can use to set
the hostname of your computer, add domain nameserver addresses for connecting to
your Internet service provider, configure your system's loopback network device (necessary
if you want to run the Common Desktop Environment, discussed in Hour 8,
"Exploring Other X11 Window Managers"), or add other network services for your users.
</P>
<P>Start the netcfg command through the control-panel, or by typing its name on the
command line:
</P>
<!-- CODE SNIP //-->
<PRE>
# netcfg &
</PRE>
<!-- END CODE SNIP //-->
<H4><A NAME="ch22_ 10">
Creating a Symbolic Modem Link with the modemtool Command<BR>
</A></H4>
<P><CENTER>
<a href="../ch21/0326-0328.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="0333-0336.html">Next</A>
</CENTER></P>
</td>
</tr>
</table>
<!-- begin footer information -->
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -