All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker
. This will install the whole docker suite, left only Tini to be compiled manually.
- list all services:
systemctl list-unit-files
- list running services status:
systemctl list-units
- list failed services:
systemctl --failed
- list available services:
systemctl --all
- start a service:
systemctl start [SERVICE_NAME]
- stop a service:
systemctl stop [SERVICE_NAME]
This turned out to be easier than I thought it would, especially after struggling with Ubuntu.
Both procedures use a common debian.env file to hold environment variables applied in the script.
When installing Debian always be sure to select an apt mirror when prompted, if you don't you'll regret it.
In a file, debian.env:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
## TITLE: Install and setup basic Artix - ZFS - OpenRc - rEFInd | |
## TODO: Make proper install scripts from this gist | |
## EFI SETUP: https://wiki.archlinux.org/index.php/EFI_system_partition | |
## ARTIX: https://wiki.artixlinux.org/Main/InstallationOnZFS | |
## REFIND: https://www.rodsbooks.com/refind/installing.html#linux | |
## INSTALL: https://wiki.artixlinux.org/Main/Installation | |
## ARCHZFS: https://www.youtube.com/watch?v=kPNcRSSaYQo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install docker or podman package on your distro (podman doesn't need a daemon like dockerd to work). All args are exactly same, just replace ``podman`` with ``docker`` in command if you want to. | |
sudo pacman -S podman | |
# Run an archlinux container with dbus and wayland sockets. | |
sudo podman run \ | |
--volume "$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY":/tmp/wayland-0 \ | |
--device /dev/dri \ | |
--volume /run/user/1000/bus:/tmp/bus \ | |
--rm -it archlinux /bin/bash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
KEYMAPOPTS="us us" | |
HOSTNAMEOPTS="-n alpine" | |
INTERFACESOPTS="auto lo | |
iface lo inet loopback | |
auto eth0 | |
iface eth0 inet dhcp | |
hostname alpine | |
" | |
TIMEZONEOPTS="-z UTC" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Fully based on https://boxofcables.dev/accelerated-kvm-guests-on-wsl-2/ | |
if [ -z "$1" ] | |
then | |
echo "Must supply your Windows 10 username" | |
exit | |
fi | |
WIN_USERNAME=$1 | |
#package updates and installations |