⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 0333-0336.html

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 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="0329-0332.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="0337-0338.html">Next</A>

</CENTER></P>



<A NAME="PAGENUM-333"><P>Page 333</P></A>





<P>

The modemtool command creates a symbolic link, called /dev/modem, that points

to a specified serial port you select.

</P>

<P>Run the modemtool command from the control-panel by clicking the Modem

Configuration <BR>





Figure 22.3.<BR>

The netcfg command is <br>

used to start, stop, <br>

add, delete, change,or <br>

otherwise configure a <br>

range of network <br>

devices and services.</P>

<P><a href="javascript:displayWindow('images/ch22fg03.jpg', 288, 216)"><img src="images/tn_ch22fg03.jpg"></a><BR>

</P>







<P>

button, or by entering the command name on a command line:

</P>



<!-- CODE SNIP //-->

<PRE>

# modemtool

</PRE>

<!-- END CODE SNIP //-->



<H4><A NAME="ch22_ 11">

Kernel Configuration with the kernelcfg Command

</A></H4>



<P>The kernelcfg command is a system administration tool and graphic interface to the

init, lsmod, insmod, and rmmod commands (see Figure 22.4). Use this command's window to

control running modules. Unlike the tksysv command, you won't find a help file, so <BR>

be careful before removing running modules unless you're sure that's exactly what you

want to do.

</P>



<P>Figure 22.4.<BR>

The kernelcfg command <br>

presents a window of <br>

currently loaded <br>

system modules.</P>

<P><a href="javascript:displayWindow('images/ch22fg04.jpg', 288, 216)"><img src="images/tn_ch22fg04.jpg"></a><BR>

</P>



<P>The kernelcfg command may be run from the control-panel by clicking the Kernel

Daemon Configuration Button, or by typing the following on the command line:

</P>



<!-- CODE SNIP //-->

<PRE>

# kernelcfg

</PRE>

<!-- END CODE SNIP //-->



<A NAME="PAGENUM-334"><P>Page 334</P></A>







<H4><A NAME="ch22_ 12">

Using the glint and rpm Commands

</A></H4>



<P>The glint command is a graphic representation of your system's software database, used

by the Red Hat Package Manager, or rpm command. The

glint command visibly demonstrates the benefits of using a combination of a graphic interface and a sophisticated

software management program for system administration. The

glint and rpm commands are just two <BR>

of the reasons why Red Hat Linux is the easiest Linux distribution to install, maintain,

and use.

</P>



<P>Run glint from the control-panel by pressing the Package Management button, or

by typing the following on the command line:

</P>



<!-- CODE SNIP //-->

<PRE>

# glint &amp;

</PRE>

<!-- END CODE SNIP //-->



<P>When glint starts, it uses the rpm command to parse the database of the software

installed on your system, found in the

/var/lib/rpm directory. This database is then graphically

displayed by different folders in an open window. You can see the software installed on your

system by navigating through the various folders. You can then query, uninstall (or delete),

verify, or see what other packages are available for installation.

</P>



<P>In order to use the glint command's buttons, first select a software package by clicking

the package's icon with your left mouse button. Then query or delete the package by

pressing the appropriate glint button. Deleting a package with

glint is the equivalent to using the rpm command with its -e option. For example,

</P>

<!-- CODE SNIP //-->

<PRE>

# rpm -e doom-1.8-9

</PRE>

<!-- END CODE SNIP //-->



<P>This rpm command deletes all software files associated with the Doom 1.8-9 package.

As you can see, using the glint command saves you a lot of typing, and using the

rpm command is a lot easier than searching your file system for all files related to the game Doom.

</P>





<A NAME="PAGENUM-335"><P>Page 335</P></A>







<P>Press the Available button in the glint window, and the

glint command searches for available software packages to install.

If any are found, the package names are compared against

your system's database of files, and a new window of folders or packages is displayed. Select

a package from the new window and then press the Install button, and glint attempts to

install the software (actually, the process is a bit more complicated than that, but simplicity

serves here). This is the equivalent to using the

rpm command with its -i, or install command-line option:

</P>

<!-- CODE SNIP //-->

<PRE>

# rpm -i asoftwarepackage.rpm

</PRE>

<!-- END CODE SNIP //-->



<P>This rpm command attempts to install the named software package. Again, you should

see that using glint is a lot easier.

</P>



<TABLE BGCOLOR=#FFFF99>

<TR><TD>TIME SAVER</TD></TR>

<TR><TD>

<BLOCKQUOTE>

The glint command normally looks in the

/mnt/cdrom/RedHat/RPMS directory for additional software packages to install. If you have an additional hard drive, or

a different directory of containing rpm files, use the

glint command's Configure button to specify the path to the files.

</BLOCKQUOTE>

</TD></TR>

</TABLE>





<P>Use the glint command to peruse the contents of your Linux software, and if necessary,

to delete unneeded packages to save hard drive space. You won't find any documentation

for glint, but you can read the rpm manual pages to find out more about the

rpm command and managing software packages.

</P>



<H4><A NAME="ch22_ 13">

Finding Help with the helptool Command

</A></H4>



<P>The helptool command is used to search your system for related documents containing

a phrase you enter into its search dialog box (see Figure 22.5). This command searches

user documents, GNU info files, and manual pages for corresponding readable documents.

</P>



Figure 22.5.<BR>

The helptool command <br>

searches your Linux <br>

system for helpful <br>

documents in response <br>

to an entered query.<BR>

<a href="javascript:displayWindow('images/ch22fg05.jpg', 288, 216)"><img src="images/tn_ch22fg05.jpg"></a><BR>





<P>When the helptool has finished, get help by double-clicking with your left mouse button

on the name of any listed documents. Double click a manual page filename, and a

terminal window appears, using the man command to display the file. Double-click an info

document

</P>







<A NAME="PAGENUM-336"><P>Page 336</P></A>





<P>

name, and a terminal window appears, then helptool displays the document using the

GNU info command.

</P>

<P>Unlike other tools discussed in this hour, any user running the X Window System can

use the helptool command.

</P>



<H3><A NAME="ch22_ 14">

Configuring Your System with the setup Command

</A></H3>



<P>This section shows you how to use the setup command to change or configure your

Linux system's keyboard, mouse, filesystem, kernel processes, sound, or time. This set of

system configuration tools may seem familiar because they use some of the windows or

dialog boxes from when you first installed Linux.

</P>



<P>The setup command may be started in an X11 terminal window, but you don't have to

run the X Window System to use setup or any of its tools.

</P>



<P>Starting the setup command, found under the

/usr/sbin directory, is easy&#151;simply type the following:

</P>

<!-- CODE SNIP //-->

<PRE>

# setup

</PRE>

<!-- END CODE SNIP //-->



<P>This command line runs the setup command, which then displays a scrolling list of

tools. Move through the list with your cursor keys, stop on a program, then press the Tab

key to go to the Run or Quit buttons. Run a command by pressing the F1 function key,

or tabbing to the Run button and pressing the Enter key. Quit the

setup command by tabbing to the Quit button and pressing the Enter key, or by pressing the F12 function key.

</P>



<P>Each setup command recognizes your keyboard's Tab key to navigate through menus.

You can quit each command with the F12 function key.

</P>



<H4><A NAME="ch22_ 15">

Maintaining Your Filesystem with the cabaret Command

</A></H4>



<P>The cabaret command is used to configure your filesystem, add new filesystems such as

CD-

</P>



<P><CENTER>

<a href="0329-0332.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="0337-0338.html">Next</A>

</CENTER></P>











</td>
</tr>
</table>

<!-- begin footer information -->









</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -