Why? ACLs permissions are fragile in my hands and this works a lot better, IMO. Despite caveats.
Install resilio sync and run it as its own user
sudo apt install bindfs
# TrueNAS Immich K3S container commands | |
# Use at your own risk! | |
# | |
# I assume that you're running these commands in your home directory (containing a folder called | |
# 'immich-backups'), you have sudo access, the immich app is using the default TrueNAS namespace | |
# (aka ix-immich). | |
# Tamas Nagy 2024 | |
# backs up the postgres database to the 'immich-backups' folder in your current directory | |
sudo k3s kubectl -n ix-immich exec -ti $(sudo k3s kubectl get pods -o=name --all-namespaces | cut -c 5- | grep immich-postgres) -- pg_dumpall --clean --if-exists --username=immich | gzip > immich-backups/immichdb-$(date +%y-%m-%d-%H-%M-%S).tar.gz |
su -s /bin/bash www-data -c "php occ files:scan --all" |
echo "Setup fresh PopOS install" | |
# check if root | |
if [[ $(id -u) -ne 0 ]] | |
then echo "Please run as root" | |
exit 1 | |
fi | |
# rename computer | |
echo "eureka" > '/etc/hostname' |
Why? ACLs permissions are fragile in my hands and this works a lot better, IMO. Despite caveats.
Install resilio sync and run it as its own user
sudo apt install bindfs
On Kubuntu 19.10, snap apps install here:
/var/lib/snapd/desktop/applications
To fix UI scaling, I just add the following flag to each of the .desktop
files for Electron apps in that folder
--force-device-scale-factor=1.2
""" | |
Copyright (c) 2019 Tamas Nagy | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
I hereby claim:
To claim this, I am signing this object: