- You will need a partition for your Arch Linux installation and, preferably, a swap partition. It is very easy to do before installation, but if you are already loaded into Arch ISO, or doing installation on a new hardware, you can follow these instructions.
lsblk
. Determine what devices do you have./dev/sda
is usually the first SATA drive/dev/nvme0n1
is usually the first NVMe memory drive (those are SSDs on a motherboard).parted device
wheredevice
is a desired devic to have your installation on.- Run only if you have an empty (unpartitioned) drive:
mklabel msdos
, wheremsdos
is a MBR partition type. mkpart primary ext4 0% 100%
quit
lsblk
to check what is there.
- Make sure you know what your to-be-linux and swap partitions are.
- We will name them /dev/sdaX — linux partion and /dev/sdaY — swap partition.
- Load arch-linux from your flash drive. Whether it is USB stick or CD-R image.
- Upon loading of the live image execute next commands.
wifi-menu
if you are wifi user- Choose your network. OK.
- OK.
- Enter your password for the network. OK.
- Wait a little till 'root@archlinuxiso' caption appears.
- Don't continue if you cannot connect to a network.
mkswap /dev/sdaY
swapon /dev/sdaY
mkfs.ext4 /dev/sdaX
- Make sure you are formatting the right partition! There is NO turning back from this point!. If yes — enter 'y' when promted.
mount /dev/sdaX /mnt
pacstrap /mnt base base-devel
- Go take a cup of tea. It takes time.
genfstab -p /mnt >> /mnt/etc/fstab
arch-chroot /mnt
- If promted with sh-4.3 — you are on the right way.
pacman -S grub os-prober
for MBR loader and add more:dialog wpa_supplicant
-- for wifi accesswget
-- we will need this to get yaourtreflector
-- this only updates mirror list, pretty optionalfish
-- this a cool and nice looking shell alternative to bash. I recommend it, but it's not POSIX!reflector --latest 50 --number 10 --sort rate --save /etc/pacman.d/mirrorlist --verbose
if you installed reflectoruseradd -m -G wheel -s /usr/bin/fish IMYA
oruseradd -m -G wheel IMYA
if you haven't installed fishpasswd
- Enter password for root.
passwd IMYA
- Enter password for your user.
nano /etc/sudoers
- Search for:
## Uncomment to allow members of group wheel to execute any command
# %wheel ALL=(ALL) ALL
- Uncomment
%wheel ALL=(ALL) ALL
- Save. (Ctrl-X, y, enter)
nano /etc/locale.gen
- Uncomment next line (for Russian):
ru_RU.UTF-8 UTF-8
- Uncomment next line (for English):
en_US.UTF-8 UTF-8
- Save. (Ctrl-X, y, enter)
- You can just use
sed
instead of course:sed -i 's/#\(en_US\.UTF-8\)/\1/' /etc/locale.gen
echo LANG=en_US.UTF-8 > /etc/locale.conf
locale-gen
ln -sf /usr/share/zoneinfo/Europe/Moscow /etc/localtime
, instead ofEurope/Moscow
use your own timezone!grub-install --target=i386-pc --recheck --debug /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
echo compname > /etc/hostname
if you need to change your host name for some reasonexit
reboot
- Take your flash drive out!
- Login under your user.
You now have a clean Arch installation. Next steps are for X setup with DE.
- Internet:
sudo wifi-menu
for Wi-Fisudo systemctl enable --now [email protected]
for Ethernetsudo pacman -S xorg-server xorg-server-utils xorg-apps sddm chromium
- For NVIDIA users: When asked to choose between nvidia drivers. Choose
nvidia-libgl
. Runsudo pacman -S nvidia
. - For Intel GPU users: run
sudo pacman -S xf86-video-intel mesa-libgl libva
- For Mixed users: run
sudo pacman -S bumblebee
- Install DE.
- Plasma:
sudo pacman -S plasma yakuake dolphin gtk-theme-orion
- XFCE:
sudo pacman -S xfce4
sudo systemctl enable sddm.service
sudo systemctl enable NetworkManager
only if you connect through Wi-Fisudo pacman -S NetworkManager
if it is not installed yet.sudo reboot
- Login under your user. Use networks applet on DE panel to configure network (if you installed NetworkManager).
mkdir aurs-tmp
cd aurs-tmp
- Install package-query from arch AURs:
wget https://aur.archlinux.org/cgit/aur.git/snapshot/package-query.tar.gz
tar -xvzf package-query.tar.gz
cd package-query
makepkg -si
cd ..
- install yaourt packages:
wget https://aur.archlinux.org/cgit/aur.git/snapshot/yaourt.tar.gz
tar -xvzf yaourt.tar.gz
cd yaourt
makepkg -si
cd ..
cd ..
rm -rf aurs-temp
You now have a clean Arch installation with Plasma 5 with pre-installed Dolphin (file manager), yakuake (drop-down terminal, press F12 in Plasma) and Chromium (web browser).
It is easier to perform next steps using DE, web browser (i.e. Chromium) and terminal with copy-paste feature supported (i.e. yakuake or konsole).
- Run yakuake or press F12.
- Run following to change your shortcut to change languages (if you need one):
sudo nano /etc/X11/xorg.conf.d/20-keyboard-layout.conf
- Add following lines. Switching will be on Caps lock. To switch on Ctrl-Shift, for example, use
Option "XkbOptions" "grp:ctrl_shift_toggle"
:
Section "InputClass"
Identifier "keyboard-layout"
MatchIsKeyboard "on"
Option "XkbLayout" "us,ru"
Option "XkbOptions" "grp:caps_toggle"
EndSection
sudo pacman -S ttf-bitstream-vera ttf-inconsolata ttf-ubuntu-font-family ttf-dejavu ttf-freefont ttf-linux-libertine ttf-liberation
- For Microsoft fonts:
yaourt -S ttf-ms-fonts ttf-vista-fonts ttf-monaco ttf-qurancomplex-fonts --noconfirm
sudo ln -s /etc/fonts/conf.avail/70-no-bitmaps.conf /etc/fonts/conf.d
sudo reboot
- Login under your user.