Skip to content

Instantly share code, notes, and snippets.

@rubenvarela
Created August 13, 2020 03:49
Show Gist options
  • Save rubenvarela/eed76ba92148d12a52bfb507b38f5f69 to your computer and use it in GitHub Desktop.
Save rubenvarela/eed76ba92148d12a52bfb507b38f5f69 to your computer and use it in GitHub Desktop.
Ubuntu 20.04, rclone, VirtualBox guest additions
# 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
#!/bin/bash
TMUX=/usr/bin/tmux
$TMUX new-session -d -s rclone
$TMUX send-keys -t rclone "rclone mount [REMOTE]-Cache-Crypt:/ crypt/" Enter
#!/bin/bash
umount crypt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment