No description
This repository has been archived on 2026-06-30. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • Go Template 76.5%
  • Python 23.5%
Find a file
2020-03-24 13:09:44 +00:00
static styling fix, mobile view, favicon 2019-01-14 18:34:52 +01:00
main.py code cleanup 2020-03-24 09:29:36 +00:00
main.tpl code cleanup 2020-03-24 09:29:36 +00:00
README.md readme: further fixes 2020-03-24 13:09:44 +00:00

arch.box

Setup

Prepare base image

pacman -S arch-install-scripts sudo
mkdir /etc/systemd/nspawn /var/lib/container/archlinux-base -p
pacstrap /var/lib/container/archlinux-base base ttyd
systemctl enable --now systemd-networkd systemd-resolved

Setup arch.box environement

useradd archbox
# FIXME: Suburl has some issues with 1.6.0 but works on git master
sed -i 's/ttyd login/ttyd -6 -b \/m bash/' /var/lib/container/archlinux-base/usr/lib/systemd/system/ttyd.service
# Fix root login: https://bugs.archlinux.org/task/45903
echo "pts/0\npts/1\npts/2\npts/3\npts/4\npts/5\npts/6\npts/7\npts/8\npts/9" >> /var/lib/container/archlinux-base/etc/securetty
arch-chroot /var/lib/container/archlinux-base systemctl enable systemd-networkd systemd-resolved ttyd

Run

sudo -u archbox python main.py

Maintainence

Update base image

arch-chroot /var/lib/container/archlinux-base pacman -Syu

Uninstall

rm -r /var/lib/container/archlinux-base
# FIXME: remove line from sudoers etc

Todo

-[ ] archbox ALL = NOPASSWD: /usr/bin/systemd-nspawn -[ ] project-insanity repository ttyd