Arch Linux is one of the best Linux Distribution for one reason – the package manager (Pacman) and the Arch User Repository (AUR). Arch is also a good distribution if you have preferences what programs you need since you customize that by yourself. The problem for many using Arch is that the system is not intuitive to set up. There is no graphical tool – all work is done in a terminal. Of course there are installers, like Architect, and derivatives, like Manjaro.
But even though Arch Linux may not be intuitive to install it is actually not that hard of you read the Arch installation guide. There are furthermore several ways to install Arch. I have a simple way of setting up Arch Linux that you easily can do in 20-30 minutes. Why not try it in a virtual machine. Read on Arch internet site what everything do before setting it up on an actual hard drive.
$ ping -c 5 www.google.co.uk
$ cfdisk
$ mkswap /dev/sda2
$ swapon /dev/sda2
$ mkfs.ext4 /dev/sda1
$ mount /dev/sda1 /mnt/
$ mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.orig
$ rankmirrors -n 6 /etc/pacman.d/mirrorlist.orig >/etc/pacman.d/mirrorlist
$ pacman -Syy
$ pacstrap /mnt/ base base-devel
$ cp /etc/pacman.d/mirrorlist* /mnt/etc/pacman.d
$ genfstab -p /mnt/ >> /mnt/etc/fstab
$ arch-chroot /mnt/ /bin/bash
$ pacman -S grub
$ grub-install /dev/sda
If lacking EFI – otherwise don’t do this one (i.e. if the one above works skip this one)
# grub-install –target=i386-pc –recheck /dev/sda
$ grub-mkconfig -o /boot/grub/grub.cfg
$ echo ”archlinux-desktop” > /etc/hostname
$ ln -s /usr/share/zoneinfo/Europe/Stockholm /etc/localtime
$ nano /etc/locale.gen
uncomment:
en_GB.UTF-8 UTF-8
$ locale-gen
$ echo LANG=en_GB.UTF-8 > /etc/locale.conf
$ export LANG=en_GB.UTF-8
$ passwd
$ exit
$ umount -R /mnt/
$ reboot now
$ nano /etc/vconsole.conf
add KEYMAP=atari-se
$ ping -c 5 www.google.co.uk
… if not working
$ systemctl enable dhcpcd.service
$ systemctl start dhcpcd.service
$ nano /etc/pacman.conf
uncomment
# [multilib]
Include = /etc/pacman.d/mirrorlist
$ pacman -Sy
$ useradd -m -g users -G wheel,storage,power,sys,adm -s /bin/bash daniel
$ passwd daniel
$ pacman -Ss sudo
$ EDITOR=nano visudo
uncomment:
%wheel ALL=(ALL) ALL
$ pacman -S bash-completion
$ pacman -S xorg
$ pacman -S xorg-server xorg-server-utils
$ pacman -S xorg-xinit
Install a desktop
log in as user
create /.xinitrc or copy it from /etc/x11/xinit
in /.xinitrc add
exec startxfce4
make .xinitrc executable
$ chmod +x ~/.xinitrc
install a desktop manager (slim)
$ pacman -S slim slim-themes archlinux-themes-slim xdg-user-dirs
$ systemctl enable slim.service
$ nano /etc/slim.conf
search for ’current’
change theme from default to:
archlinux-soft-grey
# If not folders in home install xdg-user-dirs
$ sudo pacman -S xdg-user-dirs
Lämna ett svar