📜 ⬆️ ⬇️

Install Exherbo

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 Network
Preparing 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 x86
Exherbo 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 / exherbo

Mount the created hard disk partitions:
mount / dev / sda3 / exherbo
mount / dev / sda1 / exherbo / boot

Unpack the downloaded stage:
unlzma exherbo - * - current.tar.lzma
tar xvpf exherbo - * - current.tar -C / exherbo

Prepare the environment for chroot:
cp /etc/resolv.conf / exherbo / etc /
mount -t proc none / exherbo / proc
mount -o bind / dev / exherbo / dev

Implement chroot:
chroot / exherbo / bin / bash

Edit / etc / paludis / bashrc for your own needs, setting the desired -march / -mtune, optimization flags and MAKEOPTS:
vim / etc / paludis / bashrc

We update the paludis base to the current state:
paludis -s

Installing 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 paludis

The only available kernel in “pure” paludis is vanilla (official with kernel.org), install it:
paludis -i vanilla-sources

Make symlink for / usr / src / linux:
ln -sf /usr/src/linux-2.6.* / usr / src / linux

Perform 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 / localtime

Set the computer name:
vim /etc/conf.d/hostname

Configuring the network, based on comments from /etc/conf.d/net.example:
vim /etc/conf.d/net

Set the root password:
passwd

By analogy with gentoo, we install some necessary system utilities:
paludis -i syslog-ng
paludis -i vixie-cron
paludis -i dhcpcd

Configure the grub:
vim /boot/grub/grub.conf

The 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 / sda

Ctrl + D

Unmount the file systems:
umount / exherbo / proc / exherbo / dev / exherbo / boot / exherbo

Reboot:
reboot

After a reboot, it is strongly recommended to rebuild the stage again:
paludis -i --dl-reinstall always everything
paludis -i world

In 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!

Source: https://habr.com/ru/post/44769/


All Articles