Add scripts for installing rclone
This commit is contained in:
parent
2e4e23dfb9
commit
0a8cc10ec9
5 changed files with 22 additions and 3 deletions
5
.vscode/settings.json
vendored
Normal file
5
.vscode/settings.json
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"files.associations": {
|
||||
"*.service": "ini"
|
||||
}
|
||||
}
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
13
scripts/PopOS/software/rclone/install.sh
Normal file
13
scripts/PopOS/software/rclone/install.sh
Normal 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
|
|
@ -21,4 +21,4 @@ ExecStart= \
|
|||
ExecStop=bash -c '/bin/fusermount -zu "%h/${EXPRESSION#*":"}"'
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
WantedBy=default.target
|
Loading…
Reference in a new issue