Sound Cards or Chipsets

Creative Labs Sound Blaster 16 16 ASP 16 PnP, Sound Blaster snd-sb16 Creative Labs Sound Blaster 32 AWE 32 AWE PnP, snd-sbawe Creative Labs Sound Blaster PCI64 PCI128 snd-ens1370 Creative Labs Sound Blaster 16 PCI PCI64 snd-ens1371 (newer model) PCI128 (newer model) PCI128 (CT5880), Sound Blaster Ensoniq AudioPCI Creative Labs Sound Blaster PCI 512, SoundBlaster snd-emu10k1 Live Live Platinum Live Value, Sound Blaster Audigy Platinum Digital Entertainment Gamer ES, Sound Blaster Audigy2 ZS...

Configuring the Resolver

You do not need a name server running on your system to use the DNS clients dig and host. You can use them to query one of your domain's name servers. Typically, your ISP provides you with this information. You have to list the IP addresses of these name servers in the etc resolv.conf file the resolver library reads this file to determine how to resolve host names. The format of this file is domain your-domain.com search your-domain.com nameserver A.B.C.D nameserver X.Y.Z.W where A.B.C.D and...

Configuring the Kernel

The first phase in rebuilding a kernel is configuring it. To configure the kernel, log in as root. Then change the kernel source directory by using the cd command as follows To configure the kernel, you have to indicate which features and device drivers you want to include in your Linux system. In essence, you build a copy of Linux with the mix-and-match features you want. Linux provides several ways for you to configure the kernel Type make menuconfig to enter the kernel-configuration...

Configuring XOrg X11 Using systemconfigdisplay

Fedora Core includes a GUI utility called system-config-display, written in the Python programming language, that enables you to configure X. The system-config-display utility provides a convenient way to configure X through a GUI that itself uses X. To run it, type system-config-display at a shell prompt or, if you are already on the GNOME desktop, select Desktop O System Settings O Display from GNOME's top panel. The utility probes the monitor and video card. Then it starts X (if X is not...

Preparing Documentation with Doc Book

The tradition of preparing formatted documentation using markup languages lives on. For example, the documentation for many open source software packages come in DocBook format. The remainder of this chapter briefly introduces you to DocBook and points you to sources where you can learn more about preparing documentation in DocBook. DocBook is a vocabulary a set of tags, kind of like HTML tags for writing structured documents such as books and articles (anything that has chapters, sections,...

Figure 267 The View Cal Application Displaying a Monthly Calendar

Here is how you can interact with the ViewCal application's user interface Clicking on the drop-down menu (implemented using a Choice component) displays a list of months from which you can select a specific month. That month's calendar is then displayed. You can type in a year (such as 2006) in the text field next to the drop-down menu for selecting a month. After you press Enter, ViewCal updates the monthly calendar to reflect the change in year. Clicking the Prev and Next buttons changes the...

Formatting a DOS Floppy

Suppose that you run Linux on your home PC and MS-DOS is no longer on your system, but you need to copy some files onto an MS-DOS floppy disk and take the disk to your office. If you already have a formatted MS-DOS floppy, you can simply mount that floppy and copy the file to the floppy by using the Linux cp command. But what if you don't have a formatted DOS floppy The mtools package again comes to the rescue. The mtools package provides the mformat utility, which can format a floppy disk for...

Learning the mtools Commands

The mtools package is a collection of utilities. So far, I have been using mdir the mtools counterpart of the DIR command in DOS. The other mtools commands are fairly easy to use. insider If you know the MS-DOS commands, using the mtools commands is very easy. Type insight the DOS command in lowercase letters, and remember to add m in front of each command. Because the Linux commands and filenames are case sensitive, you must use all lowercase letters as you type mtools commands. Table 12-3...

Ethernet Autoprobing

At boot time, a kernel with Ethernet support or an Ethernet driver module (being loaded by modprobe) attempts to probe and detect the Ethernet card. The probing involves reading from and writing to specific I O port addresses. Although you specify a single I O port address for a device, most devices use a block of I O addresses for their operation. The I O address you specify is the base address the rest of the I O addresses are consecutive I O ports, starting at the base address. Depending on...

Commands and Options for SELinux

Many common Linux commands include options for viewing SELinux access control information. For example, to provide the fine-grained access control, SELinux requires that each file include a security context think of it as the security attributes of the file or directory. Adding contexts to the files is referred to as labeling the file system. The file system should already be labeled when you install Fedora Linux and enable SELinux. You can easily check the context of a file, a user, or a...

Understanding the Linux File System

Like any other operating system, Linux organizes information in files and directories. The files, in turn, are contained in directories. A directory can contain other directories, giving rise to a hierarchical structure. This hierarchical organization of files is called the file system. The Linux file system provides a unified model of all storage in the system. The file system has a single root directory, indicated by a forward slash ( ). Then there is a hierarchy of files and directories....

Improved Device Handling

Linux 2.6 has a number of new features for handling devices especially hot plug devices such as the ones that connect to USB and Firewire interfaces common in today's PCs. First, the kernel uses a new virtual file system called sysfs that is meant to hold information about the devices on the system. The sysfs file system mounts on sys and it presents a hierarchical view of all the devices organized by device type, bus, and so on. Through sysfs, the 2.6 kernel makes available to other...

Dynamically Loading a Shared Library

ELF makes it simple to load a shared library in your program and to use the functions within the shared library. The header file < dlfcn.h> declares the functions for loading and using a shared library. Four functions are declared in the file dlfcn.h for dynamic loading void *dlopen(const char *filename, int flag) Loads the shared library specified by filename and returns a handle for the library. The flag can be RTD_LAZY (resolve undefined symbols as the library's code is executed) or...

Configuring Apache for Server Side Includes

Server-side include (SSI) refers to a feature of the Apache Web server whereby it can include a file or the value of an environment variable in an HTML document. The feature is like the include files in many programming languages such as C and C++. Just as a preprocessor processes the include files in a programming language, the Web browser reads the HTML file and parses the server-side includes before returning the document to the Web browser. Server-side includes provide a convenient way to...

Table 2012 Some Kernel Parameters in the procsys Directory

Fs.file-max Maximum number of file handles the Linux kernel can allocate. fs.file-nr Three values representing the number of allocated file handles, the number of used file handles, and the maximum number of file handles. kernel.acct Three values specifying high, low, and frequency that control the logging of process accounting information. When free space on the file system goes below the low (percent), accounting is suspended it resumes when free space goes above high (percent), and frequency...

Learning the KDE Display Manager

If you install only the KDE desktop or define the DISPLAYMANAGER variable in the etc sysconfig desktop file as KDE, the kdm program starts the X server for the local display and displays the graphical login window through which you log in to the system. Figure 9-3 shows the graphical login screen that you see when you run the kdm display manager. (To change to the KDE display manager, just add the line DISPLAY-MANAGER KDE to the etc sysconfig desktop file.) Figure 9-3 Graphical Login Screen...

Exporting a File System with NFS

Start with the server system that exports makes available to the client systems the contents of a directory. On the server, you must run the NFS service and also designate one or more file systems that are to be exported. To export a file system, you have to add an appropriate entry to the etc exports file. For example, suppose that you want to export the home directory and you want to enable the host named LNBP75 to mount this file system for read and write operations. You can do this by...

Running the xinetd Superserver

The client server model requires that the server be up and running before a client makes a request for service. A simplistic idea would be to run all the servers and have them listen to their respective ports all the time. However, this idea is not practical because each server process would use up system resources in the form of memory and processor time. Besides, you don't really need all the services up and ready at all times. A smart solution to this problem is to run a single server,...

Scheduling Recurring Jobs

Although at is good for running commands at a specific time, it's not useful for running a program automatically at repeated intervals. You have to use crontab to schedule such recurring jobs, also called cron jobs because they are processed by the cron daemon (crond). You need to do this, for example, if you want to back up your files to tape at midnight every day. Two files control who can schedule cron jobs using crontab etc cron.allow contains the names of the users who may submit jobs...

Serial Line Internet Protocol

SLIP originated as a simple protocol for framing an IP packet an Internet Protocol packet that consists of an IP header (which includes the source and destination IP addresses), followed by data (the data sent from source to destination). In RFC 1055, A Nonstandard for Transmission of IP Datagrams over Serial Lines SLIP, (June 1988), J. L. Romkey describes SLIP. As the title of RFC 1055 suggests, SLIP is not an official Internet standard it's a de facto standard. SLIP defines two special...

Looking up Online Documentation

You should familiarize yourself with an important source of information in Linux. Every so often, you see instructions that ask you to enter a Linux command. Once you've been working with Linux for a while, it's entirely possible that you'll remember a command's name but forget the exact syntax of what you're supposed to type. For such situations, the Linux online manual pages can come to your rescue. insider To try out the commands described in this section, you have to open a terminal...

Using IO Redirection

Linux commands designed to work together have a common feature they always read from the standard input (usually, the keyboard) and write to the standard output (usually, the screen). Error messages are sent to the standard error (usually, the screen). These three devices often are referred to as stdout, stdin, and stderr. If you want a command to read from a file, you can redirect the standard input to come from that file. Similarly, to save the output of a command in a file, redirect the...

Understanding Pluggable Authentication Modules

A Pluggable Authentication Module (PAM) performs the actual MD5 encryption, described in the Learning the Role of Shadow Passwords section. PAM provides a flexible method for authenticating users on Linux systems. Through settings in configuration files, you can change the authentication method on the fly, without having to actually modify programs, such as login and passwd, which verify a user's identity. Linux uses PAM extensively, and the configuration files are in the etc pam.d directory of...

Configuring Samba

To set up the Windows file-sharing and print-sharing services, you have to provide a configuration file named etc samba smb.conf. The configuration file is a text file that looks like a Microsoft Windows 3.1 INI file. You can prepare the file in any text editor on your Linux system. Like the old Windows INI files, the etc samba smb.conf file consists of sections, with a list of parameters in each section. Each section of the smb.conf file begins with the name of the section in brackets. The...

Using Flow Control Statements

So far, you have seen Perl statements intended to execute in a serial fashion, one after another. Perl also includes statements that enable you to control the flow of execution of the statements. You already have seen the if statement and a while loop. Perl includes a complete set of flow-control statements just like those in C, but with a few extra features. In Perl, all conditional statements take the following form Perl code to execute if conditional is true Notice that you must enclose...

Selecting a Backup Strategy and Media

Your Linux system's hard disk contains everything needed to keep the system running, as well as other files, such as documents and databases you need to keep your business running. You need to back up these files so that you can recover quickly and bring the system back to normal in case the hard disk crashes. Typically, you have to follow a strict regimen of regular backups because you can never tell when the hard disk might fail or the file system might get corrupted. To implement such a...

Downloading and Installing Java 2 SDK

To develop Java applications, you can use Sun's Java 2 Software Development Kit. You can download the latest version of this kit by following the links at the following website Sun has two Java development products Java 2 Standard Edition (J2SE) and Java 2 Enterprise Edition (J2EE). The J2SE Software Development Kit (SDK) also known as Java 2 SDK includes the Java compiler, APIs, and other tools you need to develop Java applications and applets. J2EE is meant for developing Java applications...

Running gdb

The most common way to debug a program is to run gdb by using the following command In the preceding code, progname is the name of the program's executable file. After it runs, gdb displays the following message and prompts you for a command GNU gdb Red Hat Linux (6.3.0.0-1.12rh) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and or distribute copies of it under certain conditions. Type show copying...

Writing man Pages with groff

Before the days of graphical interfaces, typesetting with the computer meant preparing a text file containing embedded typesetting commands and then processing that marked-up text file with a computer program that generated commands for the output device a printer or some other typesetter. As you know, such markup languages still exist. A prime example is HyperText Markup Language (HTML), which you use to prepare World Wide Web pages. In the late 1970s and early 1980s, I prepared all my...

Drawing Figures with xfig

The xfig program is an interactive drawing program that runs under X and can generate encapsulated PostScript files suitable for inclusion in documents. To use xfig, you need to install three RPM files first transfig and xpdf RPMs and then the xfig RPM. To install xfig, log in as root and follow these steps 1. Mount the DVD-ROM. Insert the DVD-ROM and wait for it to be mounted (or type mount media cdrom to mount the DVD-ROM). Then, type the following command to install the transfig program cd...

Configuring Servers to Start Automatically at Boot Time

Although you can start, stop, and restart servers manually by using the scripts in the etc rc.d init.d directory, you have to set up symbolic links in the scripts for an appropriate run level. For example, to start the DNS server named in run level 5, you need an S script in the run level 5 directory ( etc rc.d rc5.d). Furthermore, that S script should be a symbolic link to the etc rc.d init.d named file. You set up such symbolic links to configure servers to start automatically at boot time....

Raster Scan Display

All video cards operate on the same principle They store an image in video memory (also called video RAM or VRAM for short) and generate the appropriate signals to display the image on the monitor's screen. The monitor is the physical device that contains the display screen where the graphic and text output appears. The display screen is typically a phosphor-coated glass tube on which an electron beam traces the output image. On laptop computers, the display screen is a liquid crystal display...

Newsgroups

To keep up with Linux developments, you need access to the Internet, especially to the newsgroups. You can find discussions on specific Linux-related topics in the newsgroups listed in Table G-1. Table G-1 Linux Newsgroups on the Internet Information about Linux system administration. Important announcements about Linux. (This is a moderated newsgroup, which means you must mail an article to the moderator, who then posts it to the newsgroup.) Questions and answers about Linux. (All the Linux...

Understanding the etcvsftpdvsftpdconf File

To learn what you can have in the etc vsftpd vsftpd.conf file and how these lines affect the vsftpd server's operation, start by looking at the etc vsftpd vsftpd.conf file that's installed by default. The comments in this file tell you what each option does. By default, vsftpd allows almost nothing. Through the options in etc vsftpd vsftpd.conf you can loosen the restrictions so that users can use FTP. It's up to you to decide how loose the settings should be. Note that most of the options are...

Working with Post Script in Ghostscript

Ghostscript is a utility for previewing and printing PostScript documents. Ghostscript enables you to print PostScript documents on many non-PostScript devices. At its heart, Ghostscript is a nearly complete implementation of the PostScript language. Ghostscript includes the interpreter that processes PostScript input and generates output on an output device. A Ghostscript device can be a printer (or display screen), as well as an image-file format, such as BMP or PCX. Ghostscript is...

Using Open Secure Shell for Remote Logins

Linux comes with the Open Secure Shell (OpenSSH) software, a suite of programs that provides a secure replacement for the Berkeley r commands rlogin (remote login), rsh (remote shell), and rcp (remote copy). OpenSSH uses public-key cryptography to authenticate users and to encrypt the communication between two hosts, so users can securely log in from remote systems and copy files securely. In this section, I briefly describe how to use the OpenSSH software in Linux. To learn more about OpenSSH...

Linux Desktop

Let's face it typing cryptic UNIX commands on a terminal is boring. Those of us who know the commands by heart may not realize it, but the installed base of UNIX is not going to increase significantly if we don't make the system easy to use. This is where the X Window System, or X, comes to the rescue. X provides a standard mechanism for displaying device-independent, bitmapped graphics. In other words, an X application can display its graphic output on many different machines that use...

C

CA (certificate authority), 194, 447 cable modem termination system (CMTS), 387 Internet connection comparisons, 381 cable networking, 15 cable problems, SCSI, 953 Ethernet cards, 969 AT modem cable, 983 null modem cables, 984 caching caching name server configuration, DNS, 525-528 cal command, 909-910 calculators calendar display, Swing class, 880, 886-887 card information structure (CIS), 1001 CardBus specification, PC cards, 1001 Carrier Sense Multiple Access Collision Detection (CSMA CD),...

Understanding Environment Variables

The shell and other Linux commands need information to work properly. If you type a command that isn't one of that shell's built-in commands, the shell has to locate an executable file (whose name matches the command you type). The shell needs to know which directories to search for those files. Similarly, a text editor, such as vi, needs to know the type of terminal (even if the terminal happens to be a terminal window in GNOME or KDE). One way to provide this kind of information to a program...

Using Variables in Perl

You don't have to declare Perl variables before using them, as you do in C. You can recognize a variable in a Perl script easily, because each variable name begins with a special character an at symbol ( ), a dollar sign ( ), or a percent sign ( ). These special characters denote the variable's type. The three variable types in Perl are as follows Scalar variables represent the basic data types integer, floating-point number, and string. A dollar sign ( ) precedes a scalar variable. Following...

Swing Programming Tips

When you use AWT components to create a user interface, you place AWT components such as buttons, labels, and check boxes inside various AWT containers such as frames and panels. Typically, you end up with a hierarchical containment structure, grouping several components in a panel and then placing several panels inside another panel. You do not have to worry much about how the components paint themselves, because the AWT components are heavyweight components that rely on the underlying...

Accessing Windows Resources with smbclient

You can use the smbclient program to access shared directories and printers on Windows systems on the LAN and to ensure that your Linux Samba server is working. One quick way to check is to use the smbclient -L command to view the list of services on the Linux Samba server itself. This is what I get when I run smbclient on my Linux Samba sever Password (I press Enter) Anonymous login successful Domain LNB SOFTWARE OS Unix Server Samba 3.0.11-6 Anonymous login successful Domain LNB SOFTWARE OS...

Displaying Widgets

Tk does not display a widget, until you use a command to position the widget in the main window. To display the widgets, you have to use a geometry manager a Tk procedure that arranges one or more child widgets in a parent widget. Tk provides two geometry-management commands for organizing and displaying widgets The place command enables you to position a widget at a fixed location in the window of a designated master widget (which does not necessarily have to be a parent widget). The master...

CDROM Troubleshooting

The initial Linux kernel comes with driver modules for all supported CD DVD drives therefore, you should not have any problem as long as Linux supports your CD DVD. Remember that the CD DVD drive's interface is what counts, not the brand name. For example, any CD DVD drive with the IDE interface works under Linux because Linux supports the IDE interface. If Linux does not seem to recognize the CD-ROM drive after you reboot the system, try the following steps to fix the problem 1. If Linux has...

Troubleshooting Sound Cards

If, after you configure the sound driver, the sound card does not produce sound when you play a sound file or an audio CD, try the following steps to diagnose and fix the problem 1. Check to see whether or not the sound driver has been loaded. One way to 1. Check to see whether or not the sound driver has been loaded. One way to check is to look at the output of the lsmod command. The following The listing should show some modules whose names begin with snd. If you don't see the sound drivers,...

Understanding Digital Signatures

The purpose of digital or electronic signatures is the same as pen-and-ink signatures, but how you sign digitally is completely different. Unlike pen-and-ink signatures, your digital signature depends on the message you are signing. The first step is to apply a mathematical function on the message and reduce it to a fixed-size message digest (also called hash). No matter how big your message is, the message digest is always around 128 or 160 bits, depending on the hashing function. The next...

Setting Up a PPP Server

The preceding sections describe how your Linux PC can establish a PPP link with another system that offers PPP service. After a PPP link is set up, both ends of the PPP link behave as peers. Before a PPP link is established, you can think of the end that initiates the dial-up connection as the client because that system asks for the connection. The other end provides the PPP connection when needed, so it's the PPP server. If you want to enable other people to connect to your Linux PC by using...

Learning the Basics of sed Commands

All sed commands have the following general form The parts shown in square brackets are optional. The command is an editing command (similar to those for the ed editor) that specifies the action sed takes on a line. The address specifies the lines to which the commands apply. The exclamation mark ( ) applies the command to all lines that do not match the address. The arguments are needed by some editing commands, such as the w or r command, that read a file for which you have to provide the...

Manually Starting and Stopping Servers

The Linux initscripts reside in the etc rc.d init.d directory. You can manually invoke scripts in this directory to start, stop, or restart specific processes usually servers. For example, to stop the Apache Web server (the program's name is httpd), type the following command The etc init.d file is defined as a symbolic link to etc rc.d init.d. Therefore, you can also execute the previous command as follows If httpd is already running and you want to restart it, all you have to do is change the...

Connecting to a Remote Network Using PPP

To set up a PPP networking connection between two systems, you must have PPP software running at both ends. Typically, your ISP provides you with an account already set up, so that the PPP software runs automatically upon login. In that case, simply start the PPP software on your system after you log in to the remote system. In some cases, the ISP might use another authentication protocol PAP or CHAP. Those require some additional configuration on your Linux system. The pppd program takes care...

Caution Do not confuse an IP subnet which is a logical division of a network with Ethernet segments which refer to

Essentially, when you define a subnet mask, you add more bits to the default network mask for that address class. If you have a class B network, for example, the default network mask would be 255.255.0.0. Then, if you decide to divide your network into 128 subnetworks, each of which has 512 hosts, you would designate 7 bits from the host address space as the subnet address. Thus, the subnet mask becomes 255.255.254.0. There are so few class A and B network addresses that they are becoming...

Understanding IP Addresses

When you have many computers on a network, you need a way to identify each one uniquely. In TCP IP networking, the address of a computer is known as the IP address. Because TCP IP deals with internetworking, the address is based on the concepts of a network address and a host address. You might think of the idea of a network address and a host address as having to provide two addresses to identify a computer uniquely Network address Indicates the network on which the computer is located Host...

Accessing a Digital Camera

Most digital cameras can connect to the Universal Serial Bus (USB) port. If you have such a camera, you can access its storage media (compact flash card, for example) as a USB mass storage device, provided your camera supports USB Mass Storage. To access the images on your USB digital camera, use the following steps 1. Read the camera manual and use the menu options of the camera to set the USB mode to Mass Storage. If the camera doesn't support USB Mass Storage, you cannot use this procedure...

POSIX Compliance

Linux is designed to comply with IEEE Std 1003.1 1996 Edition (POSIX). This standard defines the functions that applications written in the C programming language use to access the services of the operating system for tasks ranging from opening a file to allocating memory. On March 8, 1996, the Computer Systems Laboratory of the National Institute of Standards and Technology (NIST), a U.S. government agency, confirmed that Linux version 1.2.13, as packaged by Open Linux Ltd., conforms to the...

Printing the CUPS

On a multitasking and multiuser system such as Linux, a better way to print is to spool the data and schedule the printing send the output to a file, and have a separate process send the output to the printer. That way, you can continue with your work while the printing takes place in the background. In addition, if your system has more than one user, everyone can print on the same printer, without worrying about whether or not the printer is available the background printing process can take...

Saying Hello World in Tk

Tk is a major-enough extension to Tcl to warrant its own shell, called wish (the windowing shell). The wish shell interprets all built-in Tcl commands, as well as the Tk commands. You must start X before you can run wish after all, wish enables you to use X to create graphical interfaces. The wish program should be in the usr bin directory, which should be in your PATH environment variable by default. To start wish, all you have to do is type the following at the shell prompt in a terminal...

Using the forward File

Users can redirect their own mail by placing a .forward file in their home directory. The .forward file is a plaintext file with a comma-separated list of mail addresses. Any mail sent to the user is then forwarded to these addresses. If the .forward file contains a single address, all email for that user is redirected to that single email address. For example, suppose that the following .forward file is placed in the home directory of a user named All email addressed to emily is automatically...

Nessus

The Nessus Security Scanner is a modular security auditing tool that uses plugins written in Nessus scripting language to test for a wide variety of network vulnerabilities. Nessus uses a client server software architecture with a server called nessusd and a client called Before you try to install Nessus, you must install the sharutils RPM. That package includes the uudecode utility that the Nessaus installation script needs. For some reason, the sharutils package is no longer installed with...

Configuring the Sound Card

Linux needs a driver to control the sound card. The Linux kernel should automatically load the correct sound driver after you install Linux from the companion DVD-ROM. The sound drivers are provided as loadable modules that you can also manually load or unload. You will find the sound drivers organized into several directories in the lib modules 2.6.* kernel sound directory. For example, the pci directory has driver modules for PCI sound cards. If you look at the names of the module files, you...

Viewing Process Information

Every time the shell acts on a command that you type, it starts a process. The shell itself is a process so are any scripts or programs that the shell executes. Examples of such programs are the Metacity window manager and Nautilus graphical shell in GNOME. You can use the ps command to see a list of processes. When you type ps ax, for example, Bash shows you the current set of processes. Following is a typical report displayed when you enter the ps ax command in a terminal window. (I also...

Fedora

S Language Session Reboot > 2 Shutdown Figure 9-1 Graphical Login Screen Managed by gdm. When gdm runs, it reads various configuration parameters from the configuration file etc X11 gdm gdm.conf, which has a structure similar to a Windows INI file. For example, here is a typical gdm.conf file, shown without the comment lines that begin with a hash mark ( ) Xnest usr X11R6 bin Xnest -audit 0 -name Xnest BackgroundColor 20305a ShowGnomeFailsafeSession false HostImageDir usr share hosts Hosts...

Configuring CHAP and PAP Authentication

The pppd on your system has to authenticate itself to the ISP's PPP server before the PPP connection is up and running. Authentication requires proving that you have a valid account with the ISP and essentially involves providing a user name and a secret (password). PPP specifies two ways of exchanging the authentication information between the two ends of the connection CHAP Challenge Handshake Authentication Protocol (CHAP) requires the remote end to send a randomly generated challenge string...

Starting and Testing the Caching Name Server

Now that you have studied the configuration files for the caching name server, you can start the name server and see it in operation. To start the name server, log in as root and type the following command at the shell prompt service named start This starts named the name server daemon. To ensure that the server starts every time you reboot the system, log in as root and type the following command The named server writes diagnostic log messages in the var log messages file. After you start...

Understanding the Domain Name System

You can access any host computer in a TCP IP network with an IP address. Remembering the IP addresses of even a few hosts of interest, however, is tedious. This fact was recognized from the beginning of TCP IP, and the association between a host name and IP address was created. The concept is similar to that of a phone book, in which you can look up a telephone number by searching for a person's name. In the early days of the Internet, the association between names and IP addresses was...

Examining Shared Libraries That a Program Uses

Use the ldd utility to determine which shared libraries an executable program needs. The following is what ldd reports for a typical C program that uses the ELF binary format linux-gate.so.1 gt 0x0021a000 libc.so.6 gt lib libc.so.6 0x008bf000 lib ld-linux.so.2 0x008a2000 For a more complex program, such as gimp ELF version , ldd shows more shared libraries libgimpwidgets-2.0.so.0 gt usr lib libgimpwidgets-2.0.so.0 0x06eae000 libgimpcolor-2.0.so.0 gt usr lib libgimpcolor-2.0.so.0 0x0085e000...

Computing a Mode Line

Although you can live with the VESA standard video modes defined in the X server, you may sometimes have to add a ModeLine manually to get a video mode to work for a specific video card monitor combination. You specify a ModeLine on a single line with the following syntax ModeLine name CLK HRES HSS HSE HTOT VRES VSS VSE VTOT flags You must fill in all arguments, except the last argument, which is an optional keyword that indicates the type of the mode. The flags field, for example, can be...

Learning the sendmail Configuration File

You don't need to understand everything in the sendmail configuration file, etc mail sendmail.cf, but you should know how that file is created. That way, you can make minor changes if necessary and regenerate the etc mail sendmail.cf file. To be able to regenerate the sendmail.cf file, you have to install the sendmail-cf package. To check whether the sendmail-cf package is installed, type rpm -q sendmail-cf. If the command does not print the name of the sendmail-cf package, you have to install...

Configuring the xinetd Server to Disable Services

In addition to the stand-alone servers such as a Web server httpd , mail server sendmail , and domain name server named , you have to configure another server separately. That other server, xinetd the Internet superserver , starts a host of other Internet services, such as TELNET, POP3, and so on whenever a client makes a request over the network. The xinetd server includes some security features that you can use to disable the services that it can start on demand. The xinetd server reads a...

Figure 46 Accessing the CUPS Web Interface at Port 631

You can perform a variety of administration tasks through the links and the buttons on the CUPS Web interface. If you click the Do Administration Tasks link, CUPS displays a new Web page from which you can manage printer classes explained later in this section , jobs, and printers. To add a printer through the CUPS Web interface, follow these steps 1. Start the CUPS Web interface by pointing the Web browser at http localhost 631 . The Web interface appears, as shown in Figure 4-6. 2. Click the...

Understanding the Mail Delivery Mechanism

On an Internet host, the sendmail mail-transport agent delivers mail using the Simple Mail Transfer Protocol SMTP . SMTP is documented in RFC 821, Simple Mail Transfer Protocol, by Jonathan Postel, 1982. SMTP-based mail-transport agents listen to the TCP port 25 and use a small set of text commands to interact with other mail-transport agents. In fact, the commands are simple enough that you can use them directly to send a mail message. The following example shows how I use SMTP commands to...

Playing Audio CDs

You need a special application to play audio CDs in the CD DVD drive. Both GNOME and KDE come with CD Players. Before using any CD Player program, make sure you unmount any CD currently in the drive use the umount dev cdrom command , remove the CD, and place an audio CD in the drive. To play the audio CD, you must also have a sound card and the appropriate sound drivers installed, as described in earlier sections of this chapter. If you are using the GNOME desktop, you can play audio CDs by...

Modem Commands AT Commands

The now-famous AT command set first appeared in the 300-baud Hayes Smartmodem, a name coined and trademarked by Hayes Microcomputer Products, Inc. The Smartmodem worked in two distinct modes Command mode Characters sent from the PC DTE are interpreted as commands for the modem. Online mode After receiving a dial command and establishing a connection, the modem sends all received data out on the phone lines. The Hayes Smartmodem commands start with the characters AT for attention . The initial...

Getting Star Office

StarOffice is another commercial office applications suite it was created by StarDivision of Hamburg, Germany, and purchased by Sun Microsystems in 1999. StarOffice is a cross-platform solution it runs on Linux, Windows 95 98 Me NT 2000 XP, Sun Solaris SPARC, and Sun Solaris x86. Also, StarOffice is available in several languages English, French, German, Spanish, Italian, and Swedish. StarOffice is a full-featured office productivity suite. Here's what StarOffice 7 Office Suite includes...

Exploring Security Testing Tools

There are many automated tools available to perform security testing. Some tools are meant for finding the open ports on every system in a range of IP addresses. Others are meant to find the vulnerabilities associated with the open ports. Yet other tools can capture or sniff and help you analyze them so you can glean useful information about what's going on in your network. You can browse a list of top 50 security tools based on an informal poll of nmap users at www.insecure.org tools.html....

SCSI Disk Controllers and Linux

SCSI pronounced scuzzy is an increasingly popular interface for connecting up to seven different devices on the SCSI bus. Each device, and the SCSI controller, has a unique SCSI identifier ID in the range 0 through 7. The controller usually is set to SCSI ID 7 the other devices use numbers between 0 and 6 that means you can connect up to seven devices to a SCSI controller . Typically, a SCSI hard disk is set to SCSI ID 0. Table B-1 lists the SCSI controllers that the version of Linux kernel on...

The Video Card

X.Org X11 already provides an X server that loads an appropriate video driver designed to work with a particular video chipset the integrated circuit chips that generate the signals needed to control the monitor . To select the correct video driver, you have to indicate the video chipset your video card uses. Even within a family of video cards based on a specific chipset, many configurable parameters may vary from one card to another. Therefore, you also must specify the vendor name and the...

Setting Up Linux for Dialin

You can set up the same modem for dial-in use as well as dial-out use only one operation is allowed at any one time, of course . Setting up a modem for dial-in use involves setting up a program that monitors the serial port for any incoming calls this program provides the login prompt. You can use the mgetty program for this purpose. Chapter 13 describes how to set up Linux as a dial-in PPP server. That description also tells you how to set up the mgetty program for dial-in. You can learn more...

Plotting Data with Gnuplot

Drawing Gnuplot

Gnuplot is an interactive plotting utility. You need to run Gnuplot under the X Window System because it uses an X window as the output device. Gnuplot is a command-line-driven program it prompts you and accepts your input commands. In response to those commands, Gnuplot displays various types of plots. The output appears in an X window. To install Gnuplot, log in as root, mount the DVD-ROM, and type the following commands in a terminal window change media cdrom to media cdrecorder if you are...

Creating a Shared Library

With ELF, creating a shared library for your own application is simple enough. Suppose you want to implement an object in the form of a shared library. A set of functions in the shared library represents the object's interfaces. To use the object, load its shared library, and invoke its interface functions you learn how to do this in the following section . Here is the C source code for this simple object, implemented as a shared library you might also call it a dynamically linked library save...

Understanding the CUPS Configuration Files

You can learn a lot about the CUPS configuration files by examining the entries in various configuration files that the printer configuration tool creates when you set up a new print queue. The CUPS configuration files are in the etc cups directory. Consider the example of adding a new print queue named Office-ES640 for an Epson Stylus Color 640 printer that is connected to the parallel port of the PC. Here are the files that contain information about this print queue and the printer model etc...

Getting Applixware Office

Applixware Office is another office application suite for all Linux distributions, including Fedora Core Linux. In April 2000, Applix, Inc., formed a separate group VistaSource, Inc. that focuses on Linux applications. Like other office suites, Applixware Office includes Words for word processing , Spreadsheets for spreadsheets , and Graphics and Presents for presentation graphics . In addition, it also has Mail an email interface and Data an interactive relational database browsing tool ....

Creating Initial RCS Files

The first step in managing source-file revisions by using RCS is to enable RCS to archive the current revision of your files. Follow these steps to put the source file under the control of RCS 1. In the directory where you keep your application's source files, create a subdirectory named RCS by typing mkdir RCS. If the RCS subdirectory exists, RCS archives file revisions in this directory. 2. In each file you plan to place under revision control, add a comment by adding the following RCS...

Specifying Print Options

You can use the -o option with the lp and lpr commands to specify print job options such as paper size, whether to print in landscape orientation, and whether to print a banner page at the start and the end of a print job. For example, suppose that you want to print a file on A4-size paper instead of U.S. letter-size paper that happens to be the default. You can specify this in the print command, as follows That part -o media A4 specifies the value of the standard option named media that can...

Supported Ethernet Cards

To set up an Ethernet LAN, you need an Ethernet card for each PC. Linux supports a wide variety of Ethernet cards for the PC. Table D-1 lists the supported Ethernet cards and their Linux drivers. The table includes wireless Ethernet cards as well as PCMCIA Ethernet cards. The driver name is useful when you load the Ethernet driver module log in as root and type modprobe drivername to load a driver module . Table D-1 Ethernet Cards and Their Linux Drivers 3Com 3C359 Tokenlink Velocity XL PCI...

Using Supported PC Cards

In the PCMCIA Card Services documentation directory, you'll find a file named SUPPORTED. CARDS. You can change to that directory by typing cd usr share doc pcmcia . That file lists some of the PCMCIA Cards that are known to work with at least one system. The same list is available online at .CARDS. You can also read about the various types of supported cards at www.pcmcia .org faq.htm devices. The list of supported cards has become too numerous to include here. Some of the common categories of...

Viewing Post Script or PDF Files with KGhostview

Kghostview

KGhostview is a KDE application that's essentially a graphical front end to the Ghostscript interpreter. KGhostview is ideal for viewing and printing PostScript and PDF documents. For a long document, you can view and print selected pages. You can also view the document at various levels of magnification by zooming in or out. To run KGhostview, select Applications O Graphics O KGhostview from the GNOME or KDE desktop or type kghostview in a terminal window . This causes the KGhostview Secret...