From 925e63d67fb00d7a7a14c5ca7dd66db5ab7908e1 Mon Sep 17 00:00:00 2001 From: Carlos Aldana Date: Mon, 21 Apr 2025 11:33:38 -0700 Subject: [PATCH] makes individual app scripts --- ubuntu/{ => apps}/firefox-replace-snap.sh | 0 ubuntu/{ => apps}/ghostty.sh | 0 ubuntu/apps/resilio.sh | 27 +++++++++++++++++++++++ ubuntu/{ => apps}/zed.sh | 0 4 files changed, 27 insertions(+) rename ubuntu/{ => apps}/firefox-replace-snap.sh (100%) rename ubuntu/{ => apps}/ghostty.sh (100%) create mode 100644 ubuntu/apps/resilio.sh rename ubuntu/{ => apps}/zed.sh (100%) 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