Misc cleanup of commands run based on additional tests
This commit is contained in:
parent
6afc2779f2
commit
cd3c156f93
|
@ -5,7 +5,7 @@ The below commands will setup ```cockpit``` so you can manage your PiFrame from
|
||||||
``` sh
|
``` sh
|
||||||
|
|
||||||
# Remote management on http://ip:9090
|
# 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 --zone=public --permanent --add-port=9090/tcp
|
||||||
firewall-cmd --reload
|
firewall-cmd --reload
|
||||||
systemctl enable --now cockpit.socket
|
systemctl enable --now cockpit.socket
|
||||||
|
|
|
@ -20,6 +20,7 @@ systemctl disable ufw
|
||||||
firewall-cmd --zone=public --permanent --add-service=ssh
|
firewall-cmd --zone=public --permanent --add-service=ssh
|
||||||
firewall-cmd --reload
|
firewall-cmd --reload
|
||||||
systemctl enable --now NetworkManager
|
systemctl enable --now NetworkManager
|
||||||
|
systemctl restart NetworkManager
|
||||||
systemctl enable --now firewalld
|
systemctl enable --now firewalld
|
||||||
|
|
||||||
# Setup Ethernet
|
# Setup Ethernet
|
||||||
|
|
|
@ -32,7 +32,7 @@ ZONE=root
|
||||||
export RESTIC_REPOSITORY=/tank/backup/
|
export RESTIC_REPOSITORY=/tank/backup/
|
||||||
export RESTIC_PASSWORD=testing1234
|
export RESTIC_PASSWORD=testing1234
|
||||||
|
|
||||||
/usr/bin/restic backup -v -q \
|
/usr/local/bin/restic backup -v -q \
|
||||||
--tag $MACHINE --tag $ZONE \
|
--tag $MACHINE --tag $ZONE \
|
||||||
/ \
|
/ \
|
||||||
--exclude /run \
|
--exclude /run \
|
||||||
|
@ -47,7 +47,7 @@ export RESTIC_PASSWORD=testing1234
|
||||||
--exclude /mnt \
|
--exclude /mnt \
|
||||||
--exclude /root/.cache \
|
--exclude /root/.cache \
|
||||||
|
|
||||||
/usr/bin/restic forget -v \
|
/usr/local/bin/restic forget -v \
|
||||||
--tag $MACHINE --tag $ZONE \
|
--tag $MACHINE --tag $ZONE \
|
||||||
--keep-daily=7 \
|
--keep-daily=7 \
|
||||||
--keep-weekly=4 \
|
--keep-weekly=4 \
|
||||||
|
@ -55,7 +55,7 @@ export RESTIC_PASSWORD=testing1234
|
||||||
--keep-yearly 1
|
--keep-yearly 1
|
||||||
|
|
||||||
# This can take a very, very long time
|
# 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
|
EOF
|
||||||
chmod a+x /root/restic_backup.sh
|
chmod a+x /root/restic_backup.sh
|
||||||
crontab -e
|
crontab -e
|
||||||
|
|
|
@ -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
|
useradd -m -G video -s /usr/sbin/nologin fim
|
||||||
apt install acl
|
apt install acl
|
||||||
setfacl -m
|
setfacl -m "u:fim:rX" /tank/pictures
|
||||||
unbind "u:fim:rX" /tank/pictures
|
setfacl -dm "u:fim:rX" /tank/pictures
|
||||||
setfacl -dm
|
|
||||||
unbind "u:fim:rX" /tank/pictures
|
|
||||||
apt install fim imagemagick ttf-dejavu
|
apt install fim imagemagick ttf-dejavu
|
||||||
cat > /home/fim/.fimrc <<EOF
|
cat > /home/fim/.fimrc <<EOF
|
||||||
# Tweak left of status bar to show filename and taken date/time only
|
# 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
|
cat > /etc/incron.d/fim <<EOF
|
||||||
/tank/pictures IN_DELETE systemctl restart fim
|
/tank/pictures IN_DELETE systemctl restart fim
|
||||||
EOF
|
EOF
|
||||||
systemctl enable --now incrond
|
systemctl enable --now incron
|
||||||
systemctl restart incrond
|
systemctl restart incron
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
|
@ -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 -
|
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
|
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
|
touch /tank/pictures/.stfolder
|
||||||
chown fim: /tank/pictures/.stfolder
|
chown fim: /tank/pictures/.stfolder
|
||||||
systemctl enable --now syncthing@fim.service # use feh user so perms are right for pics
|
systemctl enable --now syncthing@fim.service # use feh user so perms are right for pics
|
||||||
|
|
Loading…
Reference in a new issue