diff --git a/ubuntu/firefox-replace-snap.sh b/ubuntu/apps/firefox-replace-snap.sh similarity index 100% rename from ubuntu/firefox-replace-snap.sh rename to ubuntu/apps/firefox-replace-snap.sh diff --git a/ubuntu/ghostty.sh b/ubuntu/apps/ghostty.sh similarity index 100% rename from ubuntu/ghostty.sh rename to ubuntu/apps/ghostty.sh diff --git a/ubuntu/apps/resilio.sh b/ubuntu/apps/resilio.sh new file mode 100644 index 0000000..51c1014 --- /dev/null +++ b/ubuntu/apps/resilio.sh @@ -0,0 +1,27 @@ +cd ~/Downloads +rm resilio-sync_3.0.3.1065-1_amd64.deb +wget https://download-cdn.resilio.com/3.0.3.1065/debian/amd64/0/resilio-sync_3.0.3.1065-1_amd64.deb +sudo dpkg -i resilio-sync_3.0.3.1065-1_amd64.deb +sudo systemctl disable resilio-sync +sudo systemctl stop resilio-sync + +echo "[Unit] +Description=Resilio Sync service +Documentation=https://help.getsync.com/ +After=network.target network-online.target + +[Service] +Type=forking +Restart=on-failure +PIDFile=%h/.config/resilio-sync/sync.pid +ExecStart=/usr/bin/rslsync --config %h/.config/resilio-sync/config.json +ExecStartPre=/etc/resilio-sync/init_user_config.sh +ExecStartPost=/bin/sleep 1 + +[Install] +WantedBy=default.target" | sudo tee /usr/lib/systemd/user/resilio-sync.service >/dev/null + +systemctl --user enable resilio-sync +systemctl --user start resilio-sync + +#uninstall: sudo apt-get purge resilio-sync diff --git a/ubuntu/zed.sh b/ubuntu/apps/zed.sh similarity index 100% rename from ubuntu/zed.sh rename to ubuntu/apps/zed.sh