• Martin Thoma
  • Home
  • Categories
  • Tags
  • Archives
  • Support me

How to install Arch Linux 2013.10.01

Contents

  • Keyboard layout
  • Partitioning and mounting
  • Getting internet
  • Install base system
  • Install GNOME
  • MATE

I've watched the following video which explains pretty much everything there is to know:

You might also want to read the Arch Linux Installation Guide. The German guide is also very good.

I just like to add some notes. They are primarily for myself, so you really should read the installation guide or watch the video.

The Arch Linux installation setup is command line based.

Keyboard layout

You can switch to a German keyboard layout with this command:

loadkeys de

Partitioning and mounting

You need a bootable partition and a swap partition (that is at least as big as much RAM you have). Partitioning can be done with cfdisk (configure disk).

Check the result with

parted /dev/sda print
fdisk -l

Afterwards:

mkfs.ext4 /dev/sda1
mkfs.ext4 /dev/sda3
mkswap /dev/sda2
swapon /dev/sda2
mount /dev/sda1 /mnt
mkdir /mnt/home
mount /dev/sda3 /mnt/home/

Getting internet

I only have WLAN at the moment, which makes things more difficult:

wpa_passphrase "SSID" PASSWORD > /etc/wpa_supplicant/wpa_supplicant.conf
wpa_supplicant -i wlp4so -D wext -c /etc/wpa_supplicant/wpa_supplicant.conf -B
dhcpcd wlp4s0

wlp4s0 is the wlan interface (which is wlan0 most of the time). You get it with ip link.

I had a lot of fun at this point as you can see here.

Install base system

packstrap -i /mnt base base base-devel

After accepting all defaults (by pressing enter) and letting it download:

genfstab -U -p /mnt  :  sed 's/rw,realtime,data=ordered/defaults,realtime/' >> /mnt/etc/fstab
arch-chroot /mnt
nano /etc/locale.gen

Uncomment your language (from now on, your promt should be "sh-4.2#").

locale=gen
echo LANG=en_US.UTF-8 > /etc/locale.conf
export LANG=en_US.UTF-8
ln -s /usr/share/zoneinfo/Europe/Berlin /etc/localtime
hwclock --systohc --utc
systemctl enable dhcpcd.service

Now edit and uncomment multilib. Then:

mkinitcpio -p linux

Now set the password by entering passwd. Create your user:

useradd -m -g users -G wheel -s /bin/bash moose
passwd moose

Synchronise caches:

pacman -Syy

Install grub:

pacman -S grub-bios
pacman -S os-prober
grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
exit
restart

Give yourself sudo:

pacman -S sudo
nano /etc/sudoers

Add your user to the bottom section "User privilege specification"

Install GNOME

pacman -S gnome xorg
systemctl enable gdm.service

MATE

Add the following to your /etc/pacman.conf:

[mate]
SigLevel = Optional TrustAll
Server = http://repo.mate-desktop.org/archlinux/$arch

Run

# pacman -Syy
# pacman -S mate mate-extras

Lets see if I get an answer to some essential basic questions.


Published

Okt 7, 2013
by Martin Thoma

Category

Cyberculture

Tags

  • ArchLinux 1
  • Linux 17

Contact

  • Martin Thoma - A blog about Code, the Web and Cyberculture
  • E-mail subscription
  • RSS-Feed
  • Privacy/Datenschutzerklärung
  • Impressum
  • Powered by Pelican. Theme: Elegant by Talha Mansoor