Arch Linux Installation

Installing the Operating System

  1. Download the ISO
  2. Create a bootable usb drive with the iso
    • if you are in ubuntu you can double click on the iso to bring up that prompt
    • if you are in windows you can use rufus
  3. Boot into the usb drive on the computer/server you are going to install it on
  4. type ‘arch-anywhere’ at the prompt and press enter
  5. choose your language
  6. yes
  7. choose your country code
  8. the system will update
  9. enter desired keymap (if you don’t know, use default keymap)
  10. enter desired locale
  11. enter your time zone
  12. auto partition drive
  13. highlight your disk and press ok
  14. ext4
  15. yes to swap space
  16. should be equal to your ram size i.e. 4gb ram equals 4g swap
  17. no to gpt partitioning
  18. write changes
  19. Arch-Linux-LTS-Base
  20. ready to install? exit to menu
  21. install base system
  22. bash
  23. grub
  24. install network utility – press enter
  25. add multilib reposto pacman.conf yes
  26. enable dhcp at boot yes
  27. install wireless utilities (yes if you have a wireless card)
  28. pppoe dsl (no unless your internet is dsl)
  29. install os-prober, don’t if you just have one operating system (just the one you are installing now)
  30. yes install desktop environment
  31. enter host name
  32. enter root password
  33. create user
  34. enter user password
  35. give user root privilege
  36. install desktop environment of your choice (check google for what looks like you would prefer) – requires spacebar to check the box
    • recommended – gnome
      • if you choose gnome, say yes to any options it asks you if you want
  37. autodetect graphics
  38. don’t install xf86-input-synaptics if you don’t have a touch laptop
  39. install current desktop
  40. choose common software to install
    • press enter on category
    • spacebar on what you want
    • add
  41. Success

Installing Packages

Installing packages via command line

  • sudo pacman -S (whatever program)

Installing packages that can’t be found via pacman -S

  1. Check the official wiki for any changes if the below instructions do not work
  2. This must be done once on the installation to ensure the tools for making a package are installed, if you aren’t sure if it’s been done before, feel free to run it again
    • pacman -S –needed base-devel (you can install everything it gives you an option for)
  3. login to the root directory of the arch installation, if you are logged in but are not in the root directory, running the cp command will take you there.
  4. mkdir AUR
  5. sudo chmod 777 AUR
  6. cd AUR
  7. lookup the package snapshot on arch linux package repository via your web browser (in this example we use tcptraceroute)
    • snapshot link is typically in the top right of the archlinux package page (right click and copy the url)
  8. go back to terminal you are using to connect to arch and copy the snapshot url of the package and use wget to download it into the AUR folder
  9. wget
  10. tar -xvf tcptraceroute.tar.gz
  11. cd into the directory that gets created
    • cd tcptraceroute is probably what it will be called
  12. makepkg -sri
    • The -s/–syncdeps switch will automatically resolve and install any dependencies with pacman before building,
    • -r/–rmdeps removes the build-time dependencies after build, as they are no longer needed
    • -i/–install will install the package itself.
  13. You can then remove the directories and files within the AUR folder (leave the AUR folder itself for future installations) that you created unless you would prefer to keep them for later (so if you uninstall the package you can simply run ‘makepkg -sri’ from within the appropriate AUR folder to reinstall it again).


General Info and Help


Full System Update

  • If you’d like (and feel comfortable with doing so), you can remove all packages from the cache (which will include those packages you have downloaded that are being flagged as corrupt) with the following:
    • pacman -Scc
  • and then you can force your repos to update to make sure you’re getting the newest packages, like so:
    • pacman -Syyu