-
Install
htpc.service
to/etc/systemd/system/htpc.service
Note: I run the HTPC services as the user
htpc
so amend the service file appropriately if needed. -
Create
service.sh
in the same location as referenced by the systemd service and ensure it is executable.Note: This should also be where your
docker-compose.yml
file exists. -
Create
settings.env
in the same directory asservice.sh
. -
Modify
settings.env
so that the mount directory is referenced per your requirements.
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
#!/usr/bin/env bash | |
set -eu | |
OS="$(uname | tr '[:upper:]' '[:lower:]')" | |
ARCH="$(uname -m | sed -e 's/x86_64/amd64/' -e 's/\(arm\)\(64\)\?.*/\1\2/' -e 's/aarch64$/arm64/')" | |
KREW="krew-${OS}_${ARCH}" | |
TMP_DIR=$(mktemp -d) | |
pushd ${TMP_DIR} 1> /dev/null |
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
Section "InputClass" | |
Identifier "calibration" | |
MatchProduct "ADS7846 Touchscreen" | |
Option "Calibration" "170 3853 288 3796" | |
Option "SwapAxes" "1" | |
EndSection |
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
# some useful aliases | |
alias dir ls | |
alias less more | |
alias zless zmore | |
alias bzless bzmore | |
alias reconnect "close; cache flush; cd ." | |
alias edit "eval -f \"get $0 -o ~/.lftp/edit.tmp.$$ && shell \\\"cp -p ~/.lftp/edit.tmp.$$ ~/.lftp/edit.tmp.$$.orig && $EDITOR ~/.lftp/edit.tmp.$$ && | |
test ~/.lftp/edit.tmp.$$ -nt ~/.lftp/edit.tmp.$$.orig\\\" && put ~/.lftp/edit.tmp.$$ -o $0; shell rm -f ~/.lftp/edit.tmp.$$*\"" | |
## make prompt look better |