Daniel Ngu

Arch Setup

Create New User

Create New User
1
2
3
$ useradd -m -G wheel -s /bin/bash daniel
$ passwd daniel
$ usermod -a -G audio,network,power,scanner,storage,systemd-journal,video daniel

The above creates a new user with home directory, change password and add user to additional groups.

Sudo

Install Sudo
1
$ pacman -S sudo

Run visudo, edit it to restrict sudo to specific group or user.

Gnome

Install Gnome
1
$ sudo pacman -S gnome

For Nvidia GPU, choose nvidia-libgl when prompted. After that install the nvidia package as well.

Install Nvidia and Enable GDM
1
2
$ sudo pacman -S nvidia
$ sudo systemctl enable gdm

Updated:

Since Gnome 3.14 update, I’ve replaced Nvidia proprietary driver with Nouveau open source driver for NVIDIA graphic cards instead due to compatibility issues.

Boot up Arch ISO then chroot to carry out the following:

Remove
1
2
3
$ pacman -Rdds nvidia nvidia-utils nvidia-libgl libvdpau libcl
$ rm /etc/X11/xorg.conf
$ pacman -Rdds xf86-input-evdev
Reinstall
1
$ pacman -S xorg-server mesa
Install
1
2
$ pacman -S xf86-video-nouveau
$ pacman -S mesa-libgl

Touchpad

Install Touchpad
1
$ sudo pacman -S xf86-input-synaptics

Launch dconf editor, edit org.gnome.settings-daemon.peripherals.touchpad:
Set scroll-method to edge-scrolling.

Wireless Network

Setup Wireless Network
1
2
3
4
$ sudo pacman -S wireless_tools
$ sudo pacman -S networkmanager
$ sudo pacman -S network-manager-applet
$ sudo systemctl enable NetworkManager.service        # Enable Network Manager

Disable dhcpcd since Network Manager will be handling the dhcpcd instead.

Disable dhcpcd
1
2
$ sudo systemctl disable dhcpcd.service
$ sudo systemctl disable dhcpcd@.service
Enable wpa_supplicant
1
$ sudo systemctl enable wpa_supplicant.service

AUR and Yaourt

These are required to install AUR and Yaourt packages.

AUR Prerequisite
1
$ sudo pacman -S --needed base-devel

To install AUR packages, extract tarball, run makepkg -s followed by pacman -U against the generated .pkg.tar.xz package to install it.

Yaourt Prerequisite:
package-query from AUR.

Install Yaourt:
yaourt from AUR.

Fonts

Add this for better font rendering.

~/.config/fontconfig/fonts.conf
1
2
3
4
5
<match target="font">
  <edit mode="assign" name="autohint"><bool>true</bool></edit>
  <edit mode="assign" name="hinting"><bool>true</bool></edit>
  <edit mode="assign" name="hintstyle"><const>hintslight</const></edit>
</match>
Install Additional Fonts
1
2
3
4
$ sudo pacman -S gsfonts
$ yaourt -S ttf-dejavu ttf-droid ttf-bitstream-vera ttf-cheapskate \
> ttf-freefont ttf-inconsolata ttf-indic-otf ttf-junicode ttf-liberation \
> ttf-linux-libertine

From AUR:
ttf-ms-fonts

Audio

To Unmute
1
2
$ sudo pacman -S alsa-utils
$ amixer sset Master unmute        # ALSA comes muted by default.

Multimedia

Useful Multimedia Related Install
1
2
3
4
5
$ sudo pacman -S gst-libav gst-plugins-ugly
$ sudo pacman -Sy --needed totem \
> gstreamer0.10-{{bad,good,ugly,base}{,-plugins},ffmpeg}
$ sudo pacman -S x264
$ sudo pacman -S ffmpeg

Additional Install

Additional Install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$ sudo pacman -S brasero
$ sudo pacman -S chromium
$ sudo pacman -S file-roller
$ sudo pacman -S gedit
$ sudo pacman -S gimp
$ sudo pacman -S git
$ sudo pacman -S gnome-tweak-tool
$ sudo pacman -S gparted
$ sudo pacman -S gvfs-mtp
$ sudo pacman -S gvfs-smb
$ sudo pacman -S irssi
$ sudo pacman -S handbrake
$ sudo pacman -S libreoffice
$ sudo pacman -S mutt
$ sudo pacman -S msmtp
$ sudo pacman -S net-tools
$ sudo pacman -S networkmanager-openconnect openconnect        # VPN
$ sudo pacman -S offlineimap
$ sudo pacman -S openssh
$ sudo pacman -S pulseaudio-alsa
$ sudo pacman -S seahorse
$ sudo pacman -S rhythmbox
$ sudo pacman -S vim
$ sudo pacman -S vlc
$ sudo pacman -S xorg-xrandr                                   # Optional
$ sudo pacman -S xorg-server-utils                             # Optional

From AUR:
chromium-pepper-flash
chromium-libpdf
etherwake
realvnc-viewer

Enable SSH Daemon
1
$ sudo systemctl enable sshd.service