Skip to content

Instantly share code, notes, and snippets.

@computer-catt
Last active October 5, 2025 00:44
Show Gist options
  • Select an option

  • Save computer-catt/1682e2608093bbafb8206c4afc972a49 to your computer and use it in GitHub Desktop.

Select an option

Save computer-catt/1682e2608093bbafb8206c4afc972a49 to your computer and use it in GitHub Desktop.
Install templeos on fresh alpine Linux
#!/bin/sh
apk update
apk upgrade
apk add nano qemu-system-x86_64 qemu-ui-gtk curl openbox xterm xorg-server xf86-input-libinput xinit mesa-dri-gallium mesa-va-gallium
cat >/etc/motd << EOL
Welcome to CatOS!!!!!!!!
There's only 1 rule.
1. Cats are cool.
EOL
echo 'exec openbox-session' >> ~/.xinitrc
setup-devd udev
curl -L https://templeos.org/Downloads/TempleOS.ISO -o /root/TempleOS.iso
mkdir ~/.config
mkdir ~/.config/openbox
echo 'qemu-system-x86_64 -cdrom /root/TempleOS.iso -m 2048 -boot d -full-screen -smp cores=$(nproc)' >> ~/.config/openbox/autostart
cat >/usr/sbin/autologin << EOL
#!/bin/sh
exec login -f root
EOL
chmod +x /usr/sbin/autologin
sed -i 's@tty1::respawn:/sbin/getty@tty1::respawn:/sbin/getty -n -l /usr/sbin/autologin@g' /etc/inittab
cat >/root/.profile << 'EOL'
if [[ -z "$DESKTOP" ]] && [[ "$(tty)" = "/dev/tty1" ]]; then
startx
fi
EOL
chmod +x /root/.profile
echo 'installation done rebooting in 5 seconds'
reboot
@computer-catt
Copy link
Author

computer-catt commented Oct 5, 2025

prerequisites

fresh install of alpine
run as root
community repos enabled,

easy command:
wget -qO- https://gist.githubusercontent.com/computer-catt/1682e2608093bbafb8206c4afc972a49/raw/f3f734d6b8c4bb6efc4626c0f404d9ed04605596/TOS.sh | ash

under normal circumstances it should boot to templeos in under 30 seconds

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