From ArchWiki
Jump to: navigation, search

Start using aurutils

  • Initialise package database using these instructions:
  • Add repository to pacman.conf
  • Create ~/.makepkg.conf with PACKAGER variable
  • Install aurutils-with-signing from AUR
  • Add this to ~/.gnupg/gpg-agent.conf: default-cache-ttl 3600
  • Create PGP key: gpg --full-gen-key
  • Send PGP key to server: gpg --keyserver --send-keys key-id
  • Add new key to pacman keyring:
    • pacman-key -r key-id
    • pacman-key --lsign-key key-id
  • Start building packages with aurbuild below

Using aurbuild

Before you start using aurbuild, you actually want to run aurchain and then aurgrab:

mkdir /tmp/build && cd /tmp/build
aurchain pkg-to-install > queue
aurgrab queue

This will work out all of the AUR dependencies for a package in the AUR and save them to a text file. It will then download all of the git repositories for all of those packages into the current working directory.

Finally, run aurbuild like so:

aurbuild -d custom.db -r /home/packages -p /home/packages -s -t -c -a queue

Running arch-teamspeak docker container as systemd service

  • Use this docker image:
  • Use this service unit file: - place at /etc/systemd/system/arch-teamspeak.service
  • Use this nspawn settings file: - place at /etc/systemd/nspawn/arch-teamspeak.nspawn
  • systemctl enable
  • Make sure /var/lib/machines/arch-teamspeak exists
  • Get a login shell as root
  • docker export "$(docker create --name arch-teamspeak-test djmattyg007/arch-teamspeak:latest true)" | tar -x -C /var/lib/machines/arch-teamspeak - ref:
  • Create dedicated teamspeak user and group on host
  • Create folders for teamspeak data and logs
  • Test with following command: sudo systemd-nspawn --machine=arch-teamspeak --settings=override, should get you a shell inside the container
  • Boot the container: sudo systemd-nspawn --machine=arch-teamspeak --settings=override --boot, should get you runit output, init script output and then teamspeak output
  • Kill the container with this command: machinectl kill arch-teamspeak --kill-who=leader
  • Start service unit with systemctl: systemctl start arch-teamspeak.service
  • Test stopping
  • Test auto-restarting by killing the container with above machinectl command

Panning on laptop screens

  • Enable panning: xrandr --output LVDS1 --mode 1366x768 --panning 1920x1080
  • Disable panning xrandr --output LVDS1 --mode 1366x768 --fb 1366x768