5 Using Red Hat Commercial Linux

Contents of this section

5.1 Why does RHCL `adduser` put each user in his/her own group?

It's called the user group scheme, and it's described in the manual. What it basically does is allow you to use groups to allow multiple people to use a common set of files and edit them, transparently. It goes like this:

At this point, by making the default umask 002 and giving everyone a private default group, you can easily set up groups which users can take advantage of without doing any magic. Just create the group, add the users, and do the above chown and chmod on the group's directories.

5.2 Why doesn't the xmh shipped with Red Hat work properly?

We only ship xmh because it is part of the standard X11 distribution. It requires the mh mail package, which we do not ship. We haven't seen much need for it so far, so we haven't spent the time on it. If you have a need for it and would like to see it in future Red Hat releases, please let us know. I won't guarantee anything, but if enough people request it...

5.3 How do I get color ls to work?

Some of you may be accustomed to other distributions and the fact that color ls is installed by default. RHCL does not do that, but it is possible. The best way to find info on it is to do:

man color-ls

man dircolors In short, you can probably put something like ``. `dircolors` '' in your .bash_profile file. You may also need alias ls="color-ls --color=yes" in there.

5.4 I rebuilt my kernel, but I got vmlinux instead of vmlinuz. Why?

You need to do make zImage or make zlilo instead of just make. make zlilo is the best choice for most beginners as it will not only build the kernel, but also install it as the default for you if the make goes well. make zImage will build a compressed kernel and place it in /usr/src/linux/arch/i386/boot. You must copy it to your root dir and run lilo yourself to use this one.

If you used make, you got a file called vmlinux. This is an uncompressed kernel image, and will NOT work! LILO will only boot a compressed kernel.

5.5 How do I make my own packages (RPMs)?

Simple. Read the RPM-HOWTO, available in the docs directory on any official RedHat Mirror.

5.6 Why are all those directories in /usr/local/src?

Those directories are simply a template to use to organize your source code. It happens to be the same as the template we use in /usr/src. If you plan to keep your source in /usr/src as well, you can simply delete /usr/local/src. Red Hat does not use it for anything, it is only meant as a convenience for the user.

5.7 I compiled a program, but I can't run it. What gives?

Lets say you do the following as root:

gcc -o hello hello.c
hello
You'll get "hello: command not found"

Why?

By default, `.' is not in your path. You must run:

./hello
(dot, slash, h, e, l, l, o with no spaces)

This is for security reasons...`.' should be in normal user's path, but not in root's path.

5.8 Why does iBCS break when I recompile my kernel?

You need to say 'y' to the line that asks:

CONFIG_MODVERSIONS [n]
If you didn't do that, you'll need to rebuild your kernel and enable it.

5.9 Why does Netscape display a ton of errors when I start it?

When you untar the distribution of Netscape, you will get an nls directory. Depending on where you untar the distribution, you will need to set some environment variables. You should add lines similar to the following to your .bash_profile file:

export XKEYSYMDB=${XKEYSYMDB-/home/foobar/lib/X11/XKeysymDB}
export XNLSPATH=${XNLSPATH-/home/foobar/lib/X11/nls}
Change the above paths accordingly to reflect the actual location where you installed everything.

5.10 Why are include files missing when I try and compile?

You most likely didn't install the kernel sources. Find the sources for the kernel on your system and install them. Then go to /etc and make sure that linux-source is a symlink to /usr/src/kernel/linux-your.version.here. If not, make the symlink (something like ln -sf /usr/src/kernel/linux-1.2.13 /etc/linux-source).

Then you need to cd /usr/src/linux and do: make config make and then you can hit control-C after a few seconds (it makes some symlinks that you might need right at the beginning).

5.11 Why doesn't printing work?

It seems that the standards on what addresses to use for printer ports are a little fuzzy. Different manufacturers are using different addresses. To compound the problem, DOS probes for them in a certain order and assigns the first one it finds to LPT1. This leads people to believe that their printer port under linux must be /dev/lp0. It may not be. You may only have one parallel port and it could be LPT1 under DOS and be /dev/lp0, /dev/lp1, or /dev/lp2 under linux. To find out which it is, turn your printer on and connect it to your parallel port. Then do cat /etc/printcap > /dev/lpX where 'X' is 0, 1, and 2 until you get some output. When you do get output, you have found your printer device under linux.

Now you just need to run the print-tool from the control-panel. To get it, do a 'startx' as root and double-click on the print-tool icon in the control-panel. Use the device you found to setup your printer with the print-tool.

5.12 Where is Openwin?

There is currently no Openwindows package for RedHat 2.0. There are people who have asked for it, but we just haven't gotten to it yet. We should have a package sometime, so be patient.

5.13 Where is package XYZ?

Before asking where some particular piece of software is (like diff for example), please see any official RedHat mirror and look in redhat-2.0/RedHat/rpm-contents.gz. This file has a query of all available RPMs and their contents. grep through it for what you want and it will probably lead you to an RPM that you don't have installed. Use glint or rpm -i to install the proper RPM off your CD-ROM.

Next Chapter, Previous Chapter

Table of contents of this chapter, General table of contents

Top of the document, Beginning of this Chapter