Installation using CD
From RockWiki
Contents |
Installation from a CD Set
Installation from CD or DVD sets is easy and straightforward. Typically the first disk of each set is bootable and presents to you a menu-based installation guide.
Booting
____ ___ ___ _ __ _
| _ \ / _ \ / __| |/ / | | _ _ __ _ _ _ _
| . _/| | | | | | '_/ | | |_| '_ \| | | | \/ |
| |\ \| |_| | |__| . \ | |__| | | | | `_' |> <
|_| \_\ ___/ \___|_|\_\ |____|_|_| |_|\___/|_/\_|
[============> http://www.rocklinux.org/ <============]
Help Screens:
-------------
<F1> <Ctrl-F><1> Installation overview
<F2> <Ctrl-F><2> Installing on systems with less than 64 MB RAM
<F10> <Ctrl-F><0> This help-text
Actions:
--------
<ENTER> Start installation system
ramdisk [options] <Enter> The same with interactive stage 1 (for experts)
linux [options] <Enter> Boot a plain linux kernel (for rescue purposes)
memtest86 <Enter> Boot the memtest86 mini-os
At boot-time you have two choices for installation. Either you just hit Enter to accept default values:
- load everything from CD
- 6 virtual consoles on vc/1 through vc/6
- console on vc/1
- automatically start stone with dialog interface
The second option is to use the ramdisk boot option. This is the same as just hitting enter but is not using the default values. This way, you can select from a multitude of options during boot.
First Stage
============================================
=== ROCK Linux 1st stage boot system ===
============================================
The ROCK Linux install / rescue system boots up in two stages. You
are now in the first of this two stages and if everything goes right
you will not spend much time here. Just load your SCSI and networking
drivers (if needed) and configure the installation source so the
2nd stage boot system can be loaded and you can start the installation.
0. Load 2nd stage system from local device
1. Load 2nd stage system from network
2. Configure network interfaces (IPv4 only)
3. Load kernel modules from this disk
4. Load kernel modules from another disk
5. Activate already formatted swap device
6. Execute a (kiss) shell if present (for experts!)
7. Validate a CD/DVD against its embedded checksum
What do you want to do [0-8] (default=0)?
The installation is booting in two stages. The first stage is running directly from the CD while the second stage is loaded into RAM. This way you can remove the CD after this step which is necessary for big systems that don't fit onto a single CD.
In the first stage you can configure your network, load kernel modules, activate swap space, execute a small shell, continue the installation process and check the md5sum of the CD.
Every ROCK CD has an embedded md5sum which can be used to check it against transmission errors and tampering.
Second Stage
******************************************************************
* Welcome to the ROCK Linux 2nd stage boot disk. *
******************************************************************
This is a small linux distribution, loaded into your computer's memory.
It has everything needed to install ROCK Linux, restore an old installation
or perform some administrative tasks.
Enter the names of all terminal devices (e.g. 'vc/1' or 'tts/0').
An empty text stands for vc/1 - vc/6: tts/0 vc/1
Connection speed in Baud (default: 9600):
Just type "stone" now if you want to make a normal installation of a ROCK
Linux build (or type "stone -text" if you prefer non-dialog based menus).
root@(none):/#
At this point you are in full control of the system. Running stone or stone -text will get your installation started.
Step by Step
If you want to view how an installation looks from A to Z you can download a script log and use replay(1) or scriptreplay.pl(1) (usually part of the util-linux package) to view it:
$ replay rock_install.time rock_install.script
Some notes about the script:
- The installation of linux26-header:dev failed.
This is because I installed from a quite dated CD-RW which has several scratches.
- The delay times are tweaked
I have tweaked some delay times (well, all > 10 seconds) because you surely don't want to wait a few minutes until the script continues :-)
- The installation uses stone -text
stone -dialog doesn't work over serial lines because fmt chokes on it. An installation using a normal keyboard and monitor is unaffected by this problem.
STONE Setup Tool
Partitioning Your Discs
-------STONE - Setup Tool ONE - ROCK Linux System Configuration--------- | Partitioning your discs | | | | This dialog allows you to modify your discs parition layout | | and to create filesystems and swap-space - as well as mouting / | | activating it. Everything you can do using this tool can also | | be done manually on the command line. | | -------------------------------------------------------------------- | | | 1 Edit partition table of ide/host0/bus0/target0/lun0 | | | | 2 part1 /media/C 2.007 GiB NTFS file system | | | | 3 part2 /media/altboot 2.007 GiB Ext3 file system | | | | 4 part3 currently not mounted 1 KiB DOS partition map | | | | 5 part5 /media/D 23.09 GiB FAT32 file system | | | | 6 part6 swap <no mount point> 384.3 MiB Linux swap | | | | 7 part7 / 23.46 GiB Ext3 file system | | | | 8 part8 /media/video 23.49 GiB Ext2 file system | | | | | | | | 9 Install the system ... | | | -------------------------------------------------------------------- | |----------------------------------------------------------------------| | < OK > < Back > | ------------------------------------------------------------------------
The above is an example of how a partition layout might look like. Mount point, size and file system are listed for each partition.
You have to mount exactly one partition (the root partition) at /, the root directory. Especially for systems with little RAM (less than 64 MB) it is recommended to set up a swap partition.
Be careful in what you do here. You could easily erase your hard disc by pressing the wrong buttons.
First you may need to edit the partition table(s) of your hard disc(s) to create or modify partitions.
Then create filesystems as required and mount at least the root partition.
For every partition you have the following choices:
-------STONE - Setup Tool ONE - ROCK Linux System Configuration--------- | ide/host0/bus0/target0/lun0/part1 | | -------------------------------------------------------------------- | | | 1 Create a filesystem on the partition | | | | 2 Mount an existing filesystem from the partition | | | | 3 Create a swap space on the partition | | | | 4 Activate an existing swap space on the partition | | | -------------------------------------------------------------------- | |----------------------------------------------------------------------| | < OK > < Back > | ------------------------------------------------------------------------
Create a filesystem or swap space on new partitions to make them usable. Note that when you create a filesystem or swap space, all data previously stored on the partition will be lost.
Filesystems and swap space you mount here will also be mounted whenever your new installation boots.
Package Management
-------STONE - Setup Tool ONE - ROCK Linux System Configuration--------- | Package Management | | | | Note: You can install, update and remove packages (as well | | as query package information) with the command-line tool | | "mine". This is just a simple frontend for the "mine" program. | | -------------------------------------------------------------------- | | | 1 Start gasgui Package Manager (recommended) | | | | 2 Start gastone Package manager (minimal) | | | | | | | | 3 Mount Options: | | | | 4 Source Device: /dev/cdroms/cdrom0 | | | | 5 Mountpoint: /mnt/cdrom | | | | 6 ROCK Config ID: TRUNK-x86-athlon-xp-32-bootdisk-expert | | | | | | | | 7 TRUNK-x86-athlon-xp-32-crystal-expert | | | -------------------------------------------------------------------- | |----------------------------------------------------------------------| | < OK > < Back > | ------------------------------------------------------------------------
Select the source device, mount point and options for your installation media, or go with the defaults.
- To use a directory as the source device, enter
Mount Options: --bindand the directory asSource Device:. - You can use NFS shares as installation media as well. First, switch to the second console with ALT-F2 and type
ifconfig lo 127.0.0.1 up && rc portmap start, then switch back to stone (with ALT-F1) and use your NFS share as the source device (e.g.Source Device: 192.168.0.1:/ROCK).
If the media set contains more than one distribution, you can select the one you would like to install by its ROCK Config ID.
GASGUI Package Manager
----------------- G.A.S. (GEM Autoinstall Shell) GUI ------------------- | Select and de-select packages. | | (+) closed directory (-) open directory | | [*] package installed [+] package marked for installation | | [ ] package not installed [-] package marked for removal | | [>] package marked for replacing currently installed version | | < > / <-> dependency (not installed / marked for removal) | | -------------------------------------------------------------------- | | | 1 (+) All Packages/ <dir> | | | | 2 (-) Base Packages/ <dir> | | | | 3 (-) boot/ <dir> | | | | 4 [*] grub-0.96-0 2.20 MB | | | | 5 [*] lilo-22.6.1-0 0.23 MB | | | | 6 (+) development/ <dir> | | | | 7 (+) kernel/ <dir> | | | | 8 (+) library/ <dir> | | | | 9 (+) setup/ <dir> | | | | 10 (+) system/ <dir> | | | | 11 (+) tool/ <dir> | | | | 12 (+) x11/ <dir> | | | | 13 (+) Additional Packages/ <dir> | | | | 14 (+) Development Packages/ <dir> | | | | | | | -------------------------------------------------------------------- | |----------------------------------------------------------------------| | <Select> <Extras> <Finish> < Help > | ------------------------------------------------------------------------
Use Select and Extras to choose the packages you want to install, update or remove, then press Finish.
The following extra functions are available for directories and packages:
-----------Directory Extra Functions--------------
| ---------------------------------------------- |
| | a Open entire directory tree | |
| | b Close entire directory tree | |
| | c Un-Install all packages in tree | |
| | d Reset all packages in tree | |
| | e Install all packages in tree | |
| | f Upgrade all packages in tree | |
| | g Re-Install all packages in tree | |
| | h Show current action-list | |
| | i Install unresolved dependencies | |
| | j List unresolved dependencies | |
| ---------------------------------------------- |
|------------------------------------------------|
| <Select> <Cancel> |
--------------------------------------------------
------------Package Extra Functions---------------
| ---------------------------------------------- |
| | a Show package information | |
| | b Show current action-list | |
| | c List unresolved dependencies | |
| ---------------------------------------------- |
|------------------------------------------------|
| <Select> <Cancel> |
--------------------------------------------------
After the installation
After the installation of the packages is done, you will be presented with the automatically created /etc/fstab file, asked for the keyboard layout and language of your installation, asked for the root password and finally be presented with the default STONE screen:
+---
| Main Menu - Select the Subsystem you want to configure
+---
1. Various general system configurations
2. Kernel Drivers and Hardware Configuration
3. Network Configuration
4. User and Group management
5. General Purpose Mouse (GPM) Daemon
6. SSH Daemon configuration
7. X11/X.Org (Graphical User Interface)
8. DeviceMapper configuration (encrypted filesystems)
9. GRUB Boot Loader Setup
10. PostgreSQL Database Setup
11. Runlevel Configuration (Services)
12. System Init Configuration
13. Package Management (Install, Update and Remove)
>
On this screen you can start with your First Steps.
