Installing Hadron (with rootfs tarball)
From HadronWiki
In this article, we'll talk about installing Hadron via rootfs tarball.
Contents |
Get it
First, download it from Get Hadron page.
Install it
We assume you're installing from another partition which is a GNU/Linux. These instructions is OK if you're installing from a live media of course. We suggest the SysRescueCD
Preparing install location
Ok, let's format the partition you want to install Hadron if needed:
mkfs.ext4 /dev/sdaX
O course X is the number of your partition. (We have a feeling that we shouldn't tell these little things, so we'll skip some of them)
Hadron has a libre kernel and supports XFS, JFS, ReiserFS etc. You can select what you want.
Let's mount the disk to a directory, "/mnt/hadron":
mkdir /mnt/hadron && mount /dev/sdaX /mnt/hadron
Extracting the tarball
Time to crack harddisk. Go into hadron directory and untar Hadron:
cd /mnt/hadron tar xvf /point/this/to/hadron/tarball/hadron-*.tar.bz2
Grab a beer from the fridge. Probably it won't take too much to finish but the beer is the most important point.
Edit some files
We need to edit some system files, like /mnt/hadron/etc/fstab. Edit the file and point your root directory correctly.
We also need to configure /mnt/hadron/etc/rc.conf, as in ArchLinux. You probably will understand what is it about when you look that file. Here is what you should do:
- Set your LOCALE , KEYMAP, TIMEZONE
- Set the modules you want to load at boot. Like ethernet drivers. Add them to MODULES array. Example: MODULES=(module1 module2)
- You can also set your HOSTNAME. But if you do, don't forget to add it to /mnt/hadron/etc/hosts.
- If you want to set a static IP or DHCP, set it. But you can always use dhcpcd in tarball.
Editing lpms related files
Check the files in /mnt/hadron/etc/lpms/build.conf file. You can check this page to understand what is what in here. This is probably the most important part of your installation. So don't hurry.
Install bootloader
You should install a bootloader or edit your pre-installed one if you have. We really like GRUB legacy and you know the drill. If you don't know how to do it, check it from ArchWiki. Also SysRescueCD have a great How-to for installing grub. The default configuration file is /mnt/hadron/boot/grub/menu.lst check it for kernel location and name.
Dive into it
After the bootloader actions, you can boot into your fresh hadron, which is probably not enough to do something. So make sure you've updated your repo and system:
lpms -Su lpms -Ua
Then you can install whatever you want. Like xfce4:
lpms -a xfce4
We'll tell how to install big things like desktop environments in another wiki page. Check Main Page regularly.

