Skip to content

Instantly share code, notes, and snippets.

@mloskot
Last active July 28, 2021 12:16
Show Gist options
  • Save mloskot/5995414 to your computer and use it in GitHub Desktop.
Save mloskot/5995414 to your computer and use it in GitHub Desktop.
My notes on Arch Linux installation

ArchLinux Setup Notes

https://wiki.archlinux.org/index.php/Official_Arch_Linux_Install_Guide

Hardware:

  • Thinkpad W700
  • Thinkpad T400
iw dev
ip link set wlp3s0 up
wifi-menu wlp3s0

loadkeys pl
setfont Lat2-Terminus16


sudo gdisk /dev/sda 
Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048        83888127   40.0 GiB    8300  sda1root
   2        83888128       100665343   8.0 GiB     8200  sda2swap
   3       100665344       312581774   101.0 GiB   8300  sda3data
   4              34            2047   1007.0 KiB  EF02  




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

pacstrap /mnt base base-devel
pacman-key --init && pacman-key --populate archlinux 

genfstab -U -p /mnt >> /mnt/etc/fstab

arch-chroot /mnt /bin/bash

vi /etc/locale.gen
locale-gen

echo LANG=en_US.UTF-8 > /etc/locale.conf
export LANG=en_US.UTF-8

vi /etc/vconsole.conf
KEYMAP=pl
FONT=Lat2-Terminus16

ln -s /usr/share/zoneinfo/Europe/London /etc/localtime
hwclock --systohc --utc

echo gaja > /etc/hostname

vi /etc/conf.d/netcfg
WIRED_INTERFACE="enp0s25"
WIRELESS_INTERFACE="wlp3s0"

pacman -S wireless_tools wpa_supplicant wpa_actiond dialog

vi /etc/pacman.conf - uncomment [multilib]
pacman -Sy

vi /etc/mkinitcpio.conf - add VGA driver to MODULES for early start
mkinitcpio -p linux

pacman -S grub-bios
grub-install --target=i386-pc --recheck /dev/sda
cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo
vi /etc/default/grub - remove quiet from GRUB_CMDLINE_LINUX_DEFAULT
grub-mkconfig -o /boot/grub/grub.cfg


# nouveau
pacman -S xorg-server xorg-xinit xorg-server-utils
pacman -S xf86-input-synaptics
pacman -S xf86-video-nouveau
pacman -S lib32-nouveau-dri

# nouveau -> nvidia 313.26

vi /etc/X11/xorg.conf.d/10-evdev.conf
Option "XkbLayout" "pl,pl"

Configuration

echo "TimeoutDHCP=20" >> /etc/netctl/wlp3s0-goya
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment