Add scripts for installing rclone

This commit is contained in:
Manuel Thalmann 2022-11-12 14:25:48 +01:00
parent 4899c12c3e
commit c5b16e4cf3
5 changed files with 22 additions and 3 deletions

5
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,5 @@
{
"files.associations": {
"*.service": "ini"
}
}

View file

@ -24,11 +24,11 @@ The steps described here allow the creation of a linux system on a Surface Book
## Enhancement
- Install `Gnome Extension Manager`
- Install Extensions `Clipboard Indicator`
- Install rclone
- Using [installer script](../scripts/PopOS/software/rclone/install.sh)
- Sync NextCloud
```bash
sudo -v ; curl https://rclone.org/install.sh | sudo bash
rclone config # add remote
cp ./services/rclone@.service ~/.config/systemd/user/
systemctl --user daemon-reload
systemctl --user enable rclone@nextcloud:Nextcloud
systemctl --user start rclone@nextcloud:Nextcloud

View file

@ -24,6 +24,7 @@ source "$softwareRoot/brave-nightly.sh"
source "$softwareRoot/codium.sh"
source "$softwareRoot/code.sh"
source "$softwareRoot/tea.sh"
source "$softwareRoot/rclone/install.sh"
# Install other flatpaks
flatpak install flathub com.bitwarden.desktop

View file

@ -0,0 +1,13 @@
#!/bin/bash
# Elevate script
if [ ! "$UID" -eq 0 ]
then
exec sudo bash "$0"
fi
package=$(mktemp)
wget https://github.com/rclone/rclone/releases/download/v1.60.0/rclone-v1.60.0-linux-amd64.deb -O $package
dpkg -i $package
rm -f $package
cp ./rclone@.service /etc/systemd/user

View file

@ -21,4 +21,4 @@ ExecStart= \
ExecStop=bash -c '/bin/fusermount -zu "%h/${EXPRESSION#*":"}"'
[Install]
WantedBy=default.target
WantedBy=default.target