Read-only mirror of https://github.com/sogis/vagrant-ubuntu-18.04-qgis-3.16 — Kanton Solothurn. Issues & pull requests at the source.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2021-10-07 10:46:53 +02:00
.gitignore initial commit 2021-10-07 10:46:53 +02:00
LICENSE Initial commit 2021-10-07 09:39:29 +02:00
README.md initial commit 2021-10-07 10:46:53 +02:00
Vagrantfile initial commit 2021-10-07 10:46:53 +02:00

vagrant-ubuntu-18.04-qgis-3.16

Create Box

Create vagrant vm from Vagrantfile:

vagrant up

Make the Box as small as possible:

vagrant ssh
sudo apt-get clean
sudo dd if=/dev/zero of=/EMPTY bs=1M
sudo rm -f /EMPTY
cat /dev/null > ~/.bash_history && history -c && exit

Repackage the VM into a New Vagrant Box:

vagrant package --output mynew.box

Upload box / create new version etc. in browser: https://app.vagrantup.com/boxes/new / https://app.vagrantup.com/sogis/boxes/ubuntu-qgis-3.16/versions/new

Use Box

Create Vagrantfile:

vagrant init sogis/ubuntu-qgis-3.16

Adjust Vagrantfile:

config.vm.network "forwarded_port", guest: 22, host: 2020, id: 'ssh'
config.ssh.forward_agent = true
config.ssh.forward_x11 = true

Start / create vm:

vagrant up

Login with vagrant ssh, run qgis. Mac users will need XQuartz. Feel free to use x2go (which is installed in the vm).