Misc cleanup of commands run based on additional tests

This commit is contained in:
KemoNine 2020-08-03 17:11:14 +00:00
parent 6afc2779f2
commit cd3c156f93
5 changed files with 10 additions and 11 deletions

View file

@ -5,7 +5,7 @@ The below commands will setup ```cockpit``` so you can manage your PiFrame from
``` sh
# Remote management on http://ip:9090
apt install cockpit
apt install cockpit exfat-utils udisks2-btrfs
firewall-cmd --zone=public --permanent --add-port=9090/tcp
firewall-cmd --reload
systemctl enable --now cockpit.socket

View file

@ -20,6 +20,7 @@ systemctl disable ufw
firewall-cmd --zone=public --permanent --add-service=ssh
firewall-cmd --reload
systemctl enable --now NetworkManager
systemctl restart NetworkManager
systemctl enable --now firewalld
# Setup Ethernet

View file

@ -32,7 +32,7 @@ ZONE=root
export RESTIC_REPOSITORY=/tank/backup/
export RESTIC_PASSWORD=testing1234
/usr/bin/restic backup -v -q \
/usr/local/bin/restic backup -v -q \
--tag $MACHINE --tag $ZONE \
/ \
--exclude /run \
@ -47,7 +47,7 @@ export RESTIC_PASSWORD=testing1234
--exclude /mnt \
--exclude /root/.cache \
/usr/bin/restic forget -v \
/usr/local/bin/restic forget -v \
--tag $MACHINE --tag $ZONE \
--keep-daily=7 \
--keep-weekly=4 \
@ -55,7 +55,7 @@ export RESTIC_PASSWORD=testing1234
--keep-yearly 1
# This can take a very, very long time
/usr/bin/restic prune && /usr/bin/restic check
/usr/local/bin/restic prune && /usr/local/bin/restic check
EOF
chmod a+x /root/restic_backup.sh
crontab -e

View file

@ -14,10 +14,8 @@ The below commands will setup ```fim``` as a slideshow on your display.
useradd -m -G video -s /usr/sbin/nologin fim
apt install acl
setfacl -m
unbind "u:fim:rX" /tank/pictures
setfacl -dm
unbind "u:fim:rX" /tank/pictures
setfacl -m "u:fim:rX" /tank/pictures
setfacl -dm "u:fim:rX" /tank/pictures
apt install fim imagemagick ttf-dejavu
cat > /home/fim/.fimrc <<EOF
# Tweak left of status bar to show filename and taken date/time only
@ -214,7 +212,7 @@ apt install incron
cat > /etc/incron.d/fim <<EOF
/tank/pictures IN_DELETE systemctl restart fim
EOF
systemctl enable --now incrond
systemctl restart incrond
systemctl enable --now incron
systemctl restart incron
```

View file

@ -6,7 +6,7 @@ The below will setup ```syncthing``` and give some basics for setup. This is who
curl -s https://syncthing.net/release-key.txt | sudo apt-key add -
echo "deb https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list
apt update & apt install syncthing
apt update && apt install syncthing
touch /tank/pictures/.stfolder
chown fim: /tank/pictures/.stfolder
systemctl enable --now syncthing@fim.service # use feh user so perms are right for pics