Not so long ago, on Habré, I published
an article about the new distribution of Exherbo . Today we will talk on the installation of this OS.
First of all, we will need a working linux system, either a LiveCD, anyone can come up - from Gentoo LiveCD to Ubuntu, in my case this is Gentoo LiveCD.
First of all, you need to set up a network and partition the hard disk, on different linux distributors this is done differently, for Gentoo LiveCD you can read the articles in their own handbook:
Configuring your NetworkPreparing the Disks')
The second step is to download the stage corresponding to the computer architecture, at the moment there are versions for x86 and amd64:
Exherbo x86Exherbo amd64(note - you may need
LZMA Utils for unpacking, there is no such thing on the Gentoo LiveCD, I had to install it)
The third step. Create a directory to mount the future filesystem root:
mkdir / exherboMount the created hard disk partitions:
mount / dev / sda3 / exherbomount / dev / sda1 / exherbo / bootUnpack the downloaded stage:
unlzma exherbo - * - current.tar.lzma
tar xvpf exherbo - * - current.tar -C / exherboPrepare the environment for chroot:
cp /etc/resolv.conf / exherbo / etc /
mount -t proc none / exherbo / proc
mount -o bind / dev / exherbo / devImplement chroot:
chroot / exherbo / bin / bashEdit / etc / paludis / bashrc for your own needs, setting the desired -march / -mtune, optimization flags and MAKEOPTS:
vim / etc / paludis / bashrcWe update the paludis base to the current state:
paludis -sInstalling paludis through yourself (this replaces the stage version with the version from git exherbo, may take a lot of time due to git tests, you can add the following line to /etc/paludis/options.conf -
dev-scm / git build_options : -recommended_tests , however, it is worth remembering that Exherbo is still at the development stage, that is, you yourself are responsible for the correctness of building packages):
paludis -i paludisThe only available kernel in “pure” paludis is vanilla (official with kernel.org), install it:
paludis -i vanilla-sourcesMake symlink for / usr / src / linux:
ln -sf /usr/src/linux-2.6.* / usr / src / linuxPerform standard kernel build steps:
make menuconfig
make && make modules_install
cp arch / x86 / boot / bzImage / boot / linux-2.6 (the directory will be different for the x86_64 architecture)Configure the time zone:
cp / usr / share / zoneinfo / Europe / Moscow / etc / localtimeSet the computer name:
vim /etc/conf.d/hostnameConfiguring the network, based on comments from /etc/conf.d/net.example:
vim /etc/conf.d/netSet the root password:
passwdBy analogy with gentoo, we install some necessary system utilities:
paludis -i syslog-ng
paludis -i vixie-cron
paludis -i dhcpcdConfigure the grub:
vim /boot/grub/grub.confThe grub.conf file should look like this:
# Which listing to boot as default. 0 is the first, 1 the second etc.
default 0
# How many seconds to wait before the default listing is booted.
timeout 30
# Nice, fat splash-image to spice things up :)
# Comment out if you don't have a graphics card installed
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title Exherbo Linux 2.6.27.4
# Partition where the kernel image (or operating system) is located
root (hd0,0)
kernel /boot/linux-2.6.27.4 root=/dev/sda5
title Exherbo Linux 2.6.27.4 (rescue)
# Partition where the kernel image (or operating system) is located
root (hd0,0)
kernel /boot/linux-2.6.27.4 root=/dev/sda5 init=/bin/bb
Install grub:
grep -v rootfs / proc / mounts> / etc / mtab
grub-install --no-floppy / dev / sdaCtrl + D
Unmount the file systems:
umount / exherbo / proc / exherbo / dev / exherbo / boot / exherboReboot:
rebootAfter a reboot, it is strongly recommended to rebuild the stage again:
paludis -i --dl-reinstall always everything
paludis -i worldIn general, that's all, we get a ready-to-work system at the output, the installation as a whole is similar to the installation of Gentoo, and in case of problems with it, it is possible to use the Gentoo Handbook.
Have a nice acquaintance with Exherbo!