Add script for cloud sync
This commit is contained in:
parent
0a8cc10ec9
commit
fcfbd05553
4 changed files with 20 additions and 6 deletions
|
@ -27,12 +27,7 @@ The steps described here allow the creation of a linux system on a Surface Book
|
|||
- Install rclone
|
||||
- Using [installer script](../scripts/PopOS/software/rclone/install.sh)
|
||||
- Sync NextCloud
|
||||
```bash
|
||||
rclone config # add remote
|
||||
systemctl --user daemon-reload
|
||||
systemctl --user enable rclone@nextcloud:Nextcloud
|
||||
systemctl --user start rclone@nextcloud:Nextcloud
|
||||
```
|
||||
- Using [script](../scripts/PopOS/cloud-sync/nextcloud.sh)
|
||||
- Install `oh-my-posh`
|
||||
```bash
|
||||
sudo wget https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/posh-linux-amd64 -O /usr/local/bin/oh-my-posh
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
dir="${BASH_SOURCE%/*}"
|
||||
popOSRoot="$dir/../scripts/PopOS"
|
||||
softwareRoot="$popOSRoot/software"
|
||||
cloudRoot="$popOSRoot/cloud-sync"
|
||||
|
||||
# Set Hostname
|
||||
sudo hostnamectl set-hostname ManuSurface
|
||||
|
@ -38,3 +39,6 @@ sudo apt install steam
|
|||
|
||||
# Install gnome extensions
|
||||
source "$softwareRoot/gnome-extensions.sh"
|
||||
|
||||
# Sync clouds
|
||||
source "$cloudRoot/nextcloud.sh"
|
||||
|
|
13
scripts/PopOS/cloud-sync/base.sh
Normal file
13
scripts/PopOS/cloud-sync/base.sh
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
provider=$1
|
||||
dirname=$2
|
||||
serviceName=rclone@$provider:$dirname
|
||||
|
||||
echo "Please create a remote named $1"
|
||||
rclone config
|
||||
|
||||
mkdir ~/$dirName
|
||||
|
||||
systemctl --user enable $serviceName
|
||||
systemctl --user daemon-reload
|
||||
systemctl --user start $serviceName
|
2
scripts/PopOS/cloud-sync/nextcloud.sh
Normal file
2
scripts/PopOS/cloud-sync/nextcloud.sh
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
source "${BASH_SOURCE%/*}/base.sh" nextcloud Nextcloud
|
Loading…
Reference in a new issue