• No results found

S.u.S.E

In document Linux (Page 126-129)

2.7

S.u.S.E.

This section on S.u.S.E. Linux was written by Larry Ayers.

The SuSE distribution began a few years ago as an adaptation of Slackware. Patrick Volkerding of Slackware helped the SuSE developers at first, but before too long, the dis- tribution began to assume an identity of its own. Several new features intended to aid the first-time user increase the probability an installation won’t need to be immediately redone. Given the cross-pollination endemic in the free software world, I wouldn’t be surprised to learn some of these features have shown up in newer Slackware releases.

2.7.1

Beginning the installation.

When booting your machine from the single installation disk, you are really booting a miniature Linux system designed for this purpose. A colored screen appears, ready to ask a series of questions which with any luck will guide you through the process. YAST (Yet Another Set-up Tool) shows its Slackware ancestry inasmuch as it uses thedialog

program. This tool enables shell scripts to present dialog boxes, radio buttons, and check lists which allow a user to make choices and direct the course of an installation.

While no distribution can guarantee a painless installation, the developers at S.u.S.E. GmbH have managed to anticipate several problems that new Linux users are liable to have. One of the more frustrating problems is finding that your CD-ROM drive isn’t recognized. Copying the packages needed to get started to a hard drive and installing them from there is a solution, but it’s awkward and time-consuming. Rather than provide a selection of several disk images, one of which probably has the CD-ROM drive support you need, the single S.u.S.E. boot disk contains a small, basic kernel with all drivers available–if needed– in the form of modules. The kernel daemon is a background process which ensures the relevant module will be loaded if a modular function is needed. This helps to eliminate one stumbling block. Another common trap is underestimating the disk space which you need. This forces the installation to abort itself due to lack of room. When this happens, the crucial final steps (like LILO installation) haven’t yet been reached, and starting over is usually necessary. Script-based installations are necessarily sequential in nature; you may know that skipping one step won’t hurt anything, but it’s hard to anticipate every eventuality in a shell script, and if things go awry the script usually aborts.

During the S.u.S.E. installation, a running tally of partition space remaining is displayed on the YAST screen; while selecting packages, you can try various combinations while keeping in mind how much free disk space you would prefer to remain free. Partitioning and formatting disks, as well as creation and activation of a swap partition, are processes

110 Obtaining and Installing Linux

that aren’t much different than in other distributions. They all use the same underlying tools; the procedure has become more or less standardized.

Dependencies. The use of dependencies, which consist of information included in a software package concerning what other packages are necessary for it to run, has spread rapidly among Linux distributions. Unfortunately no universal format for dependencies has arisen. Each distribution uses a different format. Redhat’s RPM format, used in several distributions, is powerful and effective, but it has a few drawbacks. It works best on an all-RPM system, as the dependency checking done by the RPM program only knows about RPM packages. S.u.S.E. 5.1 uses srpm-format. The dependencies are only checked if a package is installed from within the YAST program, allowing the option (for a skilled user) of unarchiving a package in another location, then checking out the files and configuration before final installation. Dependencies are most useful during the initial setup and while becoming familiar with a new installation. Once you’ve used the system for a while, you’ll have an idea of what libraries and programs are available. Most software packages for Linux also contain information as to what needs to be present on a system in order for the package to function. It is wise to read through the entirerc.configfile before running

SuSEconfigand committing any changes you may have made. Some of the default actions the script will take you may prefer to handle yourself, but they are easily disabled by editing the file.

Users familiar with the Slackware layout of initialization files will need to make some adjustments; the files usually found in/etc/rc.dare instead in/sbin/init.d.

2.7.2

S.u.S.E Post-installation.

YAST is also intended to be used after installation for routine system maintenance. The multiplicity of resource files necessary for Linux to boot and run can be bewildering to beginners. YAST offers a menu-driven interface to these files, including thesendmail

configuration file, thecron(scheduling) files, initialization scripts, and various network- ing files. The changes made within the YAST session are written to a single file in the

/etcdirectory,rc.config, which can also be edited directly. These changes are then written to the various “real” configuration files by a script calledSuSEconfig. This script is automatically run by YAST at the end of a YAST session; if/etc/rc.config

is edited directly,SuSEconfigmust be started manually. This sounds like a complicated procedure, but it’s much easier than tracking down the individual files, learning the correct syntax needed to edit them, and making them do what you want.

S.u.S.E. Linux 111

After you have S.u.S.E. Linux up and running, it’s a good idea to install the kernel source (available on the CD-ROM, it’s an optional package which can be installed during initial set-up). S.u.S.E. installs a generic kernel, and you probably need only a few of of the accompanying modules. This is an excellent opportunity to familiarize yourself with the mechanics of source code compilation, and you’ll end up with a smaller customized kernel with only the capabilities you need. The gcccompiler and accompanying tools must be installed in order to compile a kernel; these tools are a near-necessity on a Linux system even if you’re not a programmer. The YAST dependency checking will help insure that all of the required compilation tools are installed.

Kernel compilation can seem daunting to a beginner, but it is a fairly intuitive process. Three interfaces are available for the initial configuration step. The first (and oldest) is a console-mode script invoked via the commandmake config. This script asks a series of questions and uses the results to write a file which guides the compiler in its work. You need to know some basic facts about your hardware such as what type of hard disk and CD-ROM drive you have. If you want sound support you’ll need to know the IRQ your card uses, as well as a few other parameters that can be gathered from the card’s manual or the output of the MS-DOSmsdutility.

The other two interfaces aremenuconfigandxconfig. The first uses a modified version of thedialogprogram mentioned above, which runs on a virtual console or a

xtermand resembles the YAST setup tool.xconfigis a Tk-based version, designed to run in a X window. All three accomplish the same task. The latter two let you make choices without typing much. The kernel sources are well-documented. TheREADMEfile in the top-level directory contains enough information to nearly guarantee a successful build.

2.7.3

Getting X up and running.

Successfully configuring the X Window System (specifically XFree86, which is in- cluded with S.u.S.E. and most other distributions) can be a stumbling block. There is such a multiplicity of monitors and video cards that each installation of X must be individually configured. The difficulty has been eased somewhat with the release of XFree86 3.2, which is included with the most recent S.u.S.E. release. Adialogbased configuration tool can now be used in place of the previousxf86config. Both are based on shell scripts similar to the one that is used to configure the Linux kernel. Nonetheless, you will still need to know your monitor’s horizontal and vertical refresh rates as well as the chip set installed on your video card. It helps to initially set your sites low, i.e., get X functioning at a low resolution first before attempting to make full use of your video card’s capabilities.

112 Obtaining and Installing Linux

The S.u.S.E. developers have taken some pains in configuring the various window man- agers, for example, fvwm95. The first time you start X, many of the applications you elected for installation will be available from the mouse activated root window menu. An- other entry on the menu allows you to change the window background.

Many well-designed icons are supplied with the S.u.S.E. distribution. This gives new users something of a reprieve. After getting Linux and X running finally, there is enough to do just learning the system without feeling compelled to customize the environment, in order to make it tolerable to view!

2.7.4

Later upgrades.

The minute you finish installing even the most up-to-date distribution, it begins to in- crementally become outdated. This is a slow process, but eventually you will feel the need to upgrade some part of the system. with S.u.S.E. 5.1, YaST can now update via ftp.

In document Linux (Page 126-129)