Rootlinux-1 4-Manual
Rootlinux-1 4-Manual
Rootlinux-1 4-Manual
4 (Pommes)
A powerful all-purpose operating system.
John Eriksson <kohn at kth.se>
1
Contents
1 Introduction 3
1.1 What is ROOT? . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2 License Information . . . . . . . . . . . . . . . . . . . . . . . . . 3
2 Installing ROOT 3
2.1 Supported Hardware . . . . . . . . . . . . . . . . . . . . . . . . 4
2.1.1 Supported CPU’s . . . . . . . . . . . . . . . . . . . . . . 4
2.1.2 Supported IDE controllers . . . . . . . . . . . . . . . . . 4
2.1.3 Supported SCSI controllers . . . . . . . . . . . . . . . . 4
2.1.4 Supported keyboards . . . . . . . . . . . . . . . . . . . . 4
2.2 Installation Guide . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.2.1 Get a ROOT GNU/Linux CD-ROM . . . . . . . . . . . . 4
2.2.2 Make Boot Floppy (If needed) . . . . . . . . . . . . . . . 5
2.2.3 Before Installing . . . . . . . . . . . . . . . . . . . . . . 5
2.2.4 Start the Installer . . . . . . . . . . . . . . . . . . . . . . 5
2.2.5 Keyboard Configuration . . . . . . . . . . . . . . . . . . 5
2.2.6 Partition Setup . . . . . . . . . . . . . . . . . . . . . . . 6
2.2.7 Activate Swap Partition . . . . . . . . . . . . . . . . . . . 6
2.2.8 Choose Target Partitions . . . . . . . . . . . . . . . . . . 6
2.2.9 Package Selection . . . . . . . . . . . . . . . . . . . . . 6
2.2.10 Package Installation . . . . . . . . . . . . . . . . . . . . 6
2.2.11 Network Configuration . . . . . . . . . . . . . . . . . . . 7
2.2.12 Root Password Configuration . . . . . . . . . . . . . . . 7
2.2.13 Boot Loader Configuration . . . . . . . . . . . . . . . . . 7
2.2.14 Time Configuration . . . . . . . . . . . . . . . . . . . . . 7
2.2.15 Timezone Configuration . . . . . . . . . . . . . . . . . . 7
2.2.16 Restart Computer . . . . . . . . . . . . . . . . . . . . . . 7
2
5 ROOT Tools 11
5.1 setwm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
5.2 sndtest . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
5.3 adduser . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
5.4 s[start,stop,restart] . . . . . . . . . . . . . . . . . . . . . . . . . . 12
5.5 gtk-update . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
5.6 dm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
1 Introduction
This is a short introduction to the ROOT GNU/Linux system.
2 Installing ROOT
This section describes how to install the ROOT system. Remember that there is
not any support available, so you’ll have to manage this on your own. There could
be help available on the Internet, however.
3
2.1 Supported Hardware
Here is a list of hardware supported by the ROOT GNU/Linux system. Most mod-
ern computers with Intel compatible CPU’s will work.
IDE systems will more likely work than SCSI systems. If you have SCSI de-
vices that must be supported during the installation, make sure your SCSI controller
is supported by a driver in the SCSI controllers list.
4
2.2.2 Make Boot Floppy (If needed)
If your computer does not support booting directly from the CDROM, you must
make a boot floppy to be able to start the installer. You need one non-damaged
floppy disk (1.44 or 2.88 MB).
In a Linux/UNIX system, mount your ROOT CD-ROM and change to the im-
age/ directory on the CD. Then, as a priviligied user, type:
install root=/dev/cdroms/cdrom1
Note that cdrom1 is the second CDROM drive – cdrom0 is the first. You can
also boot from your third CDROM drive by replacing the ’1’ with a ’2’ and so on.
When the kernel has booted, the installer will start. You will see the message
Initializing ROOT GNU/Linux installation... on your screen.
5
2.2.6 Partition Setup
Setup your partitions by choosing a program from the list. The supported programs
are currently cfdisk and fdisk. cfdisk is menu-based and easy to use. fdisk is
command-based, and harder to use – but much more powerful.
Start your selected program and create partitions if you need to. You must have
at least one partition of the type Linux. You should also have a small partition
(about 150 MB) of the type Linux Swap.
Don’t forget to write your new partition table to the disk using the write func-
tion in cfdisk or using the command w in fdisk.
6
2.2.11 Network Configuration
Select your hostname and domainname. If your computer is not on a domain, you
can choose whatever you like.
If you are connected to a local network or Internet, then select your connection
method from the list - either dynamic IP from a DHCP server or static IP (you
have to enter your IP address yourself). If you are using a dial-up connection or no
connection at all, choose loopback here.
If you didn’t select loopback, the installer will search for a supported NIC
(Network Interface Card) now.
7
3.1 Adding Users
As you know, you shouldn’t use the root account all the time. One of the first things
you should do is to add a user to the system. You can do this using the adduser
command. This will also install the default bash settings, and (if KDE is installed)
the KDE settings. To add a user, type:
# adduser <user>
After this you need to set a password for the user. Do this by using the standard
passwd command:
# passwd <user>
3.2 Configuring X
ROOT uses the X.org X Window System. The configuration programs for this
system are called xorgconfig, which is text-based, and xorgcfg, which is graphi-
cal. If you want to install your own X configuration file, it should be placed in
/etc/X11/xorg.conf.
$ setwm
This gives you a list of installed window managers. Choose one of them and
then type:
MODULES="sis900 emu10k1"
8
3.5 Starting Services
Services in ROOT are handled using the sstart and sstop commands. These com-
mands searches for a service file in /etc/rc.d/services. All official ROOT packages
includes such a file. The sstart commands calls the start function of the service file
and vice versa.
If you want a service to be started automatically on boot, you should add the
service’s name to /etc/rc.d/rc.conf. Seperate several services by a space. Example:
# pkgadd mozilla#1.2.1-1.pkg.tar.gz
If any file from the package is already installed on the system, the program will
abort with an error message, showing the names of the conflicting files. Example:
# pkgadd mozilla#1.2.1-1.pkg.tar.gz
usr/bin/mozilla
usr/lib/mozilla/libgtkmozembed.so
To force the installation (i.e. overwrite the conflicting files), use the option -f
(or –force). For example:
# pkgadd -f mozilla#1.2.1-1.pkg.tar.gz
9
The package system only allowes a file to be owned by exactly one package.
When forcing an installation the ownership of the conflicting files will be trans-
ferred to the package that is currently beeing installed. Directories can be owned
by more than one package.
Please note that this option should only be used if you really know what you
are doing. Two packages should never include the same files. If they do, it can be
a sign that one of them is broken and contains too many files.
The package manager uses only the package filename to identify the package
information such as name and version. If the package is named mozilla#1.2.1-
1.pkg.tar.gz then it will be interpreted as mozilla version 1.2.1-1. If pkgadd(8) can’t
interpret the filename, then it will abort installation and print an error message.
# pkgrm bash
Note that this will remove all files owned by the package, without asking any
questions. You don’t want to remove the wrong packages, so make sure you spell
the name right.
# pkgadd -u mozilla#1.2.1-1.pkg.tar.gz
This command will replace the previously installed mozilla package with the
new one. If mozilla was not installed before, you’ll get an error. Note that the
program doesn’t care about version numbers, so you can use the -u option to install
an older version of a package.
The configuration file /etc/pkgadd.conf contains information on what to do
when upgrading packages. The file contains rules, which is built out of three things:
event, pattern and action. The only event currently supported is UPGRADE, and
the action can be either YES or NO. More than one rule of the same event type is
allowed, in which case the first rule will have the lowest priority and the last rule
will have the highest priority. Example:
#
# /etc/pkgadd.conf: pkgadd(8) configuration
#
10
UPGRADE ^etc/.*$ NO
UPGRADE ^var/log/.*$ NO
UPGRADE ^etc/X11/.*$ YES
UPGRADE ^etc/X11/XF86Config$ NO
# End of file
This will cause pkgadd(8) to upgrade anything in the directories /etc or /var/log,
except files in /etc/X11, unless it is the file /etc/X11/XF86Config. The default rule
is to upgrade everything.
Note! A pattern should never contain an initial ’/’ since you are referring to the
files in the package, not the files on the disk.
If the program finds a file in the package that should not upgraded, it will be
installed under /var/lib/pkg/rejected/, so that the user can decide what to do with
them.
5 ROOT Tools
The ROOT system comes with several ROOT-specific tools used for different pur-
poses. This section describes their functions and usage. For more information
about each tool, see it’s corresponding manual page.
5.1 setwm
SetWM is a small utility to set the default window manager to start when X starts
(for example with ’startx’). Typing ’setwm’ without arguments will show a list of
available window managers (the files found in /etc/X11/xinit/xinitrc.*).
When creating window manager packages for ROOT, be sure to include such a
file with correct commands for starting the window manager.
5.2 sndtest
SndTest is a small utility to check if the sound card is properly configured. When
you have loaded your sound card’s modules, try running ’sndtest’ and you should
hear a sample sound (/usr/share/rl/system/rl.wav). This utility requires sox to be
installed.
11
5.3 adduser
Adduser is a script to make it simple to install a new user. The program does
just what it says, but it also installes the standard settings for the shell and so on.
Generally use this program to install new users - do not use ’useradd’.
5.4 s[start,stop,restart]
These utilities are used to start/stop/restart services (daemons) on your computer.
A service should have a service file included in /etc/rc.d/services to work. This file
is a script which handles two arguments: start and stop. The script contains the
lines needed to start or stop the service. The program srestart will first stop the
service, then start it again.
5.5 gtk-update
This is a simple script to update the GTK+ and pango configuration files. This may
be needed after an upgrade or if something messed up the configuration. If GTK+
apps doesn’t work, try running gtk-update once, as root.
5.6 dm
DM is short for decision maker. It outputs either Yes. or No. randomly. It should
be used when you can’t decide something yourself and need help ;-).
12