时雨小径 May the Spirit be with you

Arch Linux Installation Notes

Create Installation Image

Get internet connection if you have wireless available.

wifi-menu

Partition:

Example for 128G SSD:

  • BIOS grub boot partition: 1-2MB with no filesystem(!important), EF02 type partition
  • "/" root partition about 20GB, ext4
  • "/boot" boot partition 100MB, ext2
  • "/var" 15G, etx4
  • "/home" rest of the disk, etx4
  • "/data" could be external disk as storage
gdisk /dev/sdx

Format partitions example

mkfs.ext4  /dev/sda2

Generate fstab

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

Install:

  • Mount /dev/sdx[/] onto /mnt
  • Mount /dev/sdx[/boot] onto /mnt/boot
  • Mount /dev/sdx[var] onto /mnt/var
  • Mount /dev/sdx[home] onto /mnt/home
  • Mount /dev/sdy[data] onto /mnt/data (Can mount externl disk as storage partition)

pacstrap -i /mnt base base-devel grub-bios iw wpa_supplicant dialog

Install grub from chroot

mount /dev/sdx[root] /mnt
mount -t proc none /mnt/proc
mount -o bind /dev /mnt/dev
mount -t sysfs sys /mnt/sys
chroot /mnt /bin/bash
grub-install --recheck --no-floppy /dev/sdx
grub-mkconfig -o /boot/grub/grub.cfg
sync & reboot

After Install, add user

useradd -m USERNAME
passwd USERNAME

Add user to sudoer

Edit /etc/sudoer, add line

USERNAME ALL=(ALL) ALL

Install GUI (http://www.tecmint.com/install-cinnamon-desktop-in-arch-linux/)

sudo pacman –S bash-completion
sudo pacman -S xorg-server xorg-xinit xorg-utils xorg-server-utils mesa
sudo pacman -S xorg-twm xterm xorg-xclock
sudo pacman -S xf86-input-synaptics
sudo pacman -S mesa-libgl

Install video driver

sudo pacman –Ss | grep xf86-video-[intel]
sudo pacman –Ss | grep [nvidia]

Start X-Server

sudo startx

Install Desktop Environment – Cinnamon

sudo pacman -S cinnamon nemo-fileroller
sudo pacman –S gdm
sudo systemctl enable gdm
sudo systemctl start gdm

Install Network Tools

sudo pacman –S net-tools
ifconfig

sudo pacman -S network-manager-applet
sudo systemctl stop dhcpcd@ens33.service
sudo systemctl disable dhcpcd@ens33.service
sudo systemctl stop dhcpcd.service
sudo systemctl disable dhcpcd.service

sudo systemctl start NetworkManager
sudo systemctl enable NetworkManager

Set Locale

https://wiki.archlinux.org/index.php/Locale#Setting_the_locale
To set the system locale use the localectl command, where en_US.UTF-8 is from the first column of an uncommented entry in /etc/locale.gen.

localectl set-locale LANG=en_US.UTF-8

Install Fonts

sudo pacman -S wqy-zenhei wqy-microhei

Install Basic Softwares

sudo pacman -S neovim       //editor
sudo pacman -S chromium     //browser
sudo pacman -S termite      //terminal
sudo pacman -S tilda        //quake style terminal
sudo pacman -S tmux         //terminal session manager
sudo pacman -S zsh          //bash
sudo pacman -S git          //source control
sudo pacman -S fcitx-rime   //chinese IME
sudo pacman -S yaourt       //Installation tool