Arch Linux

How to install ArchEX 64bit to hard drive

This can be done i two ways, the "normal" Arch Linux way or using a script, which I call ArchEX Installer. When installing the "normal" way you can add programs which is not included in my Arch Linux Build (ArchEX). When using ArchEX Installer 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.

Using ArchEX Installer
You must first run the command chmod 755 /usr/bin/archinstall, which I forgot to do. (Not in ArchEX Build 170318 though).
Then start ArchEX Installer from the menu >> System Tools >> ArchEX-Install. Before you do that you should create a Linux root (install) partition of at least 6 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 {
    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.

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.

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
5b. 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
7b. Or perhaps you prefer the Xfce4 Desktop Environment - screenshot - or Enlightenment - screenshot.

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)
mkinitcpio -p linux
passwd root

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