Shylock Hg

My own blog powered by Hugo and Ivy.

Tips in installation of Archlinux



This is not a lesson for installation of Archlinux, but list of tips for problem what I meet in installation for Arch. There is lesson for Arch,if you want.

Wireless network

#look for wireless device
ip link
#active wireless device, wlan is your wireless device name, if get err maybe install firmware for device
ip link set wlan up
#scan the available wireless network
iw dev wlan scan
#The fellow is for wpa/wpa2 wireless network
#generate wpa/wpa2 wireless network configuration file
wpa_passphrase SSID PASSWORD > ./wpa_supplicant.conf #where SSID is wireless network name, PASSWORD is key for wireless network
#connect to wireless network
wpa_supplicant -B -i wlan -c ./wpa_supplicnat.conf
#Start dhcpcd
dhcpcd wlan

Simple partition

partition format
boot EFI
swap Linux Swap
Linux Filesystem

Then format&mount partitions:

mkfs.fat -F32 /dev/sda1
mkswap /dev/sda2
swapon /dev/sda2
mkfs.ext4 /dev/sda3
mount /dev/sda3 /mnt
mount /dev/sda1 /mnt/boot

tips:you can check file system in /etc/fstab