Created
August 13, 2020 03:49
-
-
Save rubenvarela/eed76ba92148d12a52bfb507b38f5f69 to your computer and use it in GitHub Desktop.
Ubuntu 20.04, rclone, VirtualBox guest additions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# update apt repository | |
sudo apt update | |
# upgrade packages | |
sudo apt upgrade | |
# install rclone | |
curl https://rclone.org/install.sh | sudo bash | |
# install htop, bmon, tmux, guest addition dependencies | |
sudo apt install htop bmon tmux build-essential dkms linux-headers-$(uname -r) | |
# install guest additions. Make sure it's already inserted. | |
# get temp directory | |
DIR=$(mktemp -d) | |
# mount disk to tmp directory | |
sudo mount /dev/cdrom $DIR | |
# go to tmp directory | |
cd $DIR | |
# run the guest additions installer | |
sudo sh ./VBoxLinuxAdditions.run --nox11 | |
# add user to vboxsf group | |
sudo usermod -a -G vboxsf $(whoami) | |
# create directory where remote will be mounted | |
mkdir crypt | |
sudo reboot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
TMUX=/usr/bin/tmux | |
$TMUX new-session -d -s rclone | |
$TMUX send-keys -t rclone "rclone mount [REMOTE]-Cache-Crypt:/ crypt/" Enter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
umount crypt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment