Publish Date: May 28, 2013 Last Update: Oct 20, 2016
Archlinux is by far the best Linux system I have ever used. It provides a comprehensive wiki, which answers 90% of the questions. The installation wiki should always be opened when performing new installation. This document simplifies the Arch Wiki and provides a procedure tailored for my own needs.
Arch Linux can be installed through USB stick. To prepare the installation media, one should:
$ lsblk # Check /dev/sdx is not mounted $ dd bs=4M if /path/to/archlinux.iso of=/dev/sdx && sync # Copy the image to USB
Since the installation process varies a lot, you can always refer to wiki for detailed information.
Post installation tweaks
- Change the root password.
- Add non-root user and
## useradd -m -g users -G wheel -s /bin/bash newuser ## passwd newuser ## pacman -S sudo ## visudo // Uncomment the two lines with wheel
- fstab auto-mount
lsblk -l # Look at available disk sudo blkid /dev/sda1 # Look at the UUID of the disk
Desktop & Appearance
The first step to have a desktop envoironment is to install the
it seems we need to install many
xorg-apps group packages manually.
Also check out this thread for additional information
## Install Xorg-server sudo pacman -S xorg xorg-apps ## Install trackpad support sudo pacman -S xf86-input-synaptics sudo pacman -S xf86-input-libinput ## Install video card lspci | grep VGA sudo pacman -S xf86-video-intel
Next step is to choose the appropriate desktop environments. Current I have two sets of set-ups
i3 is a dynamic tiling window manager. It takes little system resources
but is also highly configurable. Along with
i3, I utilize the following
tools as my workflow:
arandr: for different monitor support
.xinitrc: script to load all the
.Xresources: configurations for DPI and URxvt
config.fish: default fish configuration; startx automatically
feh: background image
URxvt: a very good terminal
thuanr: file manager
xfce4-power-manager: to help manage the power settings for laptop
I use the
/etc/fonts/local.conf to set the global settings for sans, sans
serif, and monospace fonts.
For GTK2/3 themes, I use
numix-gtk-theme. To easily switch between GTK
themes, I use
aurman as the
AUR helper tool. Some basic functions include
aurman -Ss foobar // Search in remote package repository aurman -Qs foobar // Search in local package repository aurman -Rsn foobar // Delete this package and orphan dependencies aurman -Rsc foobar // Delete package recursively aurman -Rdd foobar // Delete package only aurman -Sw foobar // Download without installing aurman -U foobar // Install local package aurman -Sc -Scc // Remove cache
Sometimes when you want to keep an off-line source of yaourt script, just
download the file needed, copy it to the
/tmp/yaourt-* folder, and modify
the script and replace the original source URL.
Setting Up the Sound System
In most cases, you will need
alsa to manage the backend of the sound system.
I also use
pulseaudio as the middle manager.
yaourt -S alsa-utils pulseaudio pulseaudio-alsa
Sometimes I also need to change the default order of sound card. We can achieve
this by creating a
.asoundrc file. I followed this article mostly.
Setting Up Bluetooth
Follow the office wiki and use
bluetoothctl to setup bluetooth devices which
connect at boot.
- ntfs-3g: this will solve the permission problem for USB drives
- file-roller: for openning compressed files
- ibus: chinese input
- dnsmasq: DNS cacher (follow wiki for configuration)
- ntp: sync time with internet server
- fish: shell tool; also download
- google-chrome: from AUR
- docker: container tool
- vlc: media player
- pandoc: file converter
- meld: for visualizing diff
- pip: manager python modules
- texlive: for pdf output
- dropbox: Dropbox syncs
- insync: Google drive syncs
- treesheets: Mindmaping and structuring tool