Skip to content

Instantly share code, notes, and snippets.

@PeterDing
Created May 25, 2014 14:40
Show Gist options
  • Save PeterDing/a468a40ded3bf6379404 to your computer and use it in GitHub Desktop.
Save PeterDing/a468a40ded3bf6379404 to your computer and use it in GitHub Desktop.
ArchLinux Installation

ArchLinux Installation

  1. cfdisk, mkfs.ext4, mount

  2. network

for wired:

    dhcpcd

for wireless:

    wifi-menu
  1. mirrorlist

     \# www.archlinux.org/mirrorlist/all
     nano /etc/pacman.d/mirrorlist
     pacman -syy
    
  2. install basic system

     pacstrap /mnt base base_devel vim
    
  3. make fstab

     genfstab -p -U /mnt >> /mnt/etc/fstab
     # -U --> UUID
     # -L --> Label
     # after installation, remove /lib/tmpfiles.d/uuidd.conf
    
  4. change root

     arch-chroot /mnt
    
  5. select a mirror

     vim /etc/pacman.d/mirrorlist
    
  6. locale

     vim /etc/locale.gen
     locale-gen
     echo LANG=en_US.UTF-8 > /etc/locale.conf
     echo Asia/Shanghai > /etc/timezone
     echo arch > /etc/hostname
     ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
     hwclock --systohc --utc
    
  7. Create an initial ramdisk environment

     mkinitcpio -p linux
    
  8. install and configure a bootloader

    pacman -S syslinux
    syslinux-install_update -iam
    vim /boot/syslinux/syslinux.cfg
    
  9. passwd, useradd, exit

    useradd -m peter
    
  10. unmount, reboot

  11. Configures and Softwares

paclist core

paclist extra

paclist community

  • sudo

      vim /etc/sudoers
      # peter ALL=(ALL) ALL
    
  • slim

      vim /etc/slim.conf
      # current_theme archlinux-simplyblack
    
  • xf86-input

      xf86-input-keyboard
    
      xf86-input-mouse
    
      xf86-input-synaptics  # for notebook touchpads
    
      xf86-input-vmmouse  # for vmware mouse
    
  • If systemd change network interfaces, reseting as following:

      ln -s /dev/null /etc/udev/rules.d/80-net-setup-link.rules
      or
      mv /usr/lib/udev/rules.d/80-net-name-slot.rules /usr/lib/udev/rules.d/80-net-name-slot.rules.bak
    
  • PDF for Chinese

      pacman -S poppler-data
    
  • install grub

      os-prober
      pacman -S grub-bios
      grub-install --recheck /dev/sda
      cp /usr/share/locale/en@quot/LC_MESSAGS/grub.mo /boot/grub/locale/en.mo
      grub-mkconfig -o /boot/grub/grub.cfg
    
  • qt-theme

      vim ~/.config/Trolltech.conf
    
      - [qt]
      - style=GTK+
    
  • clipboard in fcitx

Ctrl + ;

  • solve “GPGME ERROR: No Data”

      vim /etc/pacman.conf
    
      - SigLevel = Never
    
  • Network Time Protocol Daemon

      pacman -S ntp
      vim /etc/ntp.conf
    
      - server {0..3}.asia.pool.ntp.org
    
      hwclock -w
      systemctl enable ntpd
      reboot
    
      \# list configured peers
      ntpq -np
    
  • change NIC’s MAC address

      pacman -S macchanger
    
  • Acoustic spectrum analyser

http://spek.cc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment