mirror of
https://github.com/sogis/vagrant-ubuntu-16.04-qgis-2.18.git
synced 2026-08-26 00:44:18 +00:00
Read-only mirror of https://github.com/sogis/vagrant-ubuntu-16.04-qgis-2.18 — Kanton Solothurn. Issues & pull requests at the source.
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .gitignore | ||
| LICENSE | ||
| README.md | ||
| Vagrantfile | ||
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).