Install HD

How to install ArchEX 64bit to hard drive
This can be done in three ways, the “normal” Arch Linux way, using Calamares Installer (ArchEX Installer) or using a script, which I call ArchEX Installer (OLD). When installing the “normal” way you can add programs which is not included in my Arch Linux Build (ArchEX). When using ArchEX Installer (the new one or the old one) you will get an exact copy of the ArchEX system on your hard drive. After that you can of course install all “extra” packages you want.

1) Using Calamares Installer (ArchEX new Installer)
Start Calamares from the LXQt menu >> System Tools >> ArchEX Installer. Go through every step. Watch a slideshow below showing all Calamares installation steps.

The Calamares Installer works almost perfect. You’ll have to install Grub (the boot loader) manually. See an example below when I have installed ArchEX in VirtualBox. Run the following commands after you have closed the Calamares Installer.
mkdir /mnt/sda1
mount /dev/sda1 /mnt/sda1
arch-chroot /mnt/sda1
grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
exit
Change the commands to suit your hard drive installation of ArchEX (if you need Grub).

2) Using ArchEX Installer (ArchEX old installer)
You must first run the command chmod 755 /usr/bin/archinstall, which I forgot to do. (Not in ArchEX Build 170327 though). Then start up LXTerminal and run the command /usr/bin/archinstall
Before you do that you should create a Linux root (install) partition of at least 10 GB and a SWAP partition of about 2 GB. For that you can use GParted, which is included in ArchEX. Please note that you have to go through all installation steps. See HERE how it looks when ArchEX Installer is running. As you can see there are 10 steps. All, but No. 10 work. You’ll have the opportunity to create normal users once you have installed ArchEX to hard drive. Be sure to change the root password. Otherwise the installation might fail. ArchEX Installer uses Grub2 as bootloader. Install it if you need it. If you already use Grub Legacy you can just add this (example) to /boot/grub/menu.lst (see below) when the installation of ArchEX is done. NOTE also that you can install ArchEX in any language – install step No. 6 (Locale).

################
title ArchEX 64bit (sda5)
root (hd0,4)
kernel /boot/vmlinuz-linux root=/dev/disk/by-uuid/d21fe1fc-a261-40d7-a1fc-c27017c269cb rw quiet resume=/dev/sda2
initrd /boot/initramfs-linux.img

################

If you already are using Grub2 as bootloader on you computer you can refrain from installing Grub2 again and just add this to your /boot/grub/grub.cfg and NOT run update-grub or to /etc/grub.d/40_custom and run update-grub.

################
menuentry ‘ArchEX 64bit (sda5)’ –class gnu-linux –class gnu –class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos5)’
search –no-floppy –fs-uuid –set=root d21fe1fc-a261-40d7-a1fc-c27017c269cb
linux   /boot/vmlinuz-linux root=UUID=d21fe1fc-a261-40d7-a1fc-c27017c269cb rw
initrd  /boot/initramfs-linux.img
}

################

To do when you start up ArchEX from hard drive for the first time
You will be logged in as root automatically (as when running ArchEX live).

1. To avoid further error messages from Wicd you must run the command wicd followed by systemctl enable wicd.service and reboot your computer. Note: Not in ArchEX Build 170327.
2. One of the cool things about Arch Linux is the Arch User Repository (AUR), where users can add their favourite packages to Arch. Read this instruction how to install Yaourt. When you have installed Yaourt you can install for example Spotify. Watch this screenshot when Spotify is running in ArchEX. Note:  In ArchEX Build 170327 Yaourt and Spotify are pre-installed.
3. To set the keyboard layout in X permanently you shall add the following two lines to ~/.xinitrc (example for Sweden):
setxkbmap se &
exec startlxde
4. Create a new ordinary user with the command useradd -m -G wheel,users,audio,storage -s /bin/bash MyNewUser
4b. Set a password for the new user with the command passwd MyNewUser
5. To be able to log in to LXQt as your created user you’ll have to enable LXDM. Do it with the command systemctl start lxdm
5b. To make LXDM start at boot run the command systemctl enable lxdm
6. Possibly go on and install the Cinnamon and/or KDE Plasma Desktops. Screenshot when Cinnamon is running in ArchEX
Screenshot when KDE is running in ArchEX
7. Or perhaps you prefer the Xfce4 Desktop Environment – screenshot – or Enlightenmentscreenshot.

3) Installing the normal Arch Linux way
Start up your computer with ArchEX Live DVD and read the official Arch Linux instructions – install.txt (included in /root in ArchEX) and the Installation Guide. See also my example below. I use /dev/sda5 as install (root) partition. Run the following commands etc:

mkfs.ext4 /dev/sda5
mount /dev/sda5 /mnt
pacstrap /mnt base base-devel
pacstrap /mnt nano leafpad lxqt xorg-server xorg xorg-apps xorg-xinit wicd wicd-gtk gparted xterm libreoffice firefox alsa-utils gimp gdk-pixbuf2 ntfs-3g ttf-dejavu libvdpau-va-gl mesa-vdpau

(Just examples. You can of course add other or more packages)
Copy the file xinitrc-lxqt to /mnt/root and change the name to .xinitrc
arch-chroot /mnt pacman -S grub-bios (if you need Grub2)
genfstab -p -U /mnt >> /mnt/etc/fstab
To use your SWAP partition change /mnt/etc/fstab to look like this
arch-chroot /mnt
nano /etc/hostname (choose the name you want)
ln -s /usr/share/zoninfo/Europe/Stockholm /etc/localtime
nano /etc/locale.conf (example: LANG=sv_SE.UTF-8)
nano /etc/vconsole.conf (example: KEYMAP=sv-latin1)
nano /etc/locale.gen (uncomment for example sv_SE.UTF-8)
locale-gen
mkinitcpio -p linux
passwd root

exit (leave chroot)
umount /mnt
Reboot your computer if you have arranged with Grub2, Grub Legacy or…

logo

Based on Arch Linux