This file contains 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
# References | |
# https://dev.to/klo2k/run-docker-in-wsl2-in-5-minutes-via-systemd-without-docker-desktop-28gi | |
# https://docs.docker.com/engine/install/ubuntu/ | |
# Enable and start systemd | |
wsl.exe --update --web-download | |
wsl.exe -u root /bin/bash -c 'echo -e "[boot]\nsystemd=true" | tee /etc/wsl.conf' | |
wsl.exe --shutdown | |
wsl.exe /bin/bash -c 'systemctl --no-pager status user.slice &>> /dev/null && echo "OK: Systemd is running" || echo "FAIL: Systemd not running"' |
This file contains 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
#!/bin/bash | |
# This script is to facilitate installing/upgrading | |
# `plexmediaserver` on the ODROID-XU4 platform. | |
# Pass the Synology/ARMV7 package as the first argument | |
# | |
# Credit to youtuber femtronic.com for most of this. | |
# https://www.youtube.com/watch?v=hcCRfbzlhUo | |
# failure function | |
function failure() { |
This file contains 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
#!/bin/bash | |
# Backup system with mondoarchive | |
backupLocation='' | |
nbrOfBackups=8 | |
ignore='/home|/media|/mnt|/dev|/var/lib/transmission-daemon' | |
backupPrefix="Backup." | |
function is_integer() { | |
echo "$1" | grep -qE '^[0-9]+$' |
This file contains 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
#!/bin/bash | |
# Backups using rsync | |
function is_integer() { | |
echo "$1" | grep -qE '^[0-9]+$' | |
return "$?" | |
} | |
function is_valid_host { | |
getent hosts "$1" >/dev/null |