Read-only mirror of https://github.com/sogis/vagrant-ubuntu-16.04-qgis-2.18 — Kanton Solothurn. Issues & pull requests at the source.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
edigonzales 7f339053e3 readme
2021-10-07 16:32:53 +02:00
.gitignore initial commit 2020-07-24 09:26:30 +02:00
LICENSE Initial commit 2020-07-24 07:46:32 +02:00
README.md readme 2021-10-07 16:32:53 +02:00
Vagrantfile add docker and sdk man 2021-03-08 18:11:22 +01:00

vagrant-ubuntu-16.04-qgis

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-2.18/versions/new

Do not forget to release the new version.

Use Box

Create Vagrantfile:

vagrant init sogis/ubuntu-qgis-2.18

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).