Vagrant with Ubuntu (outdated)
Credits
Original from: edwint88
Go give him a star!
Prerequisites
- Obtain & Install Vagrant from the Official Source
- Obtain & Install VirtualBox from the Official Source
- Reboot
Installation
- Navigate to a directory of your choice and do
- Navigate to inner-folder called vagrant.
- In the Vagrantfile directory run & wait for provisioning to finish:
- When it finished provisioning, open TWO terminal windows and run in each:
- In Terminal Window 1:
- In Terminal Window 2:
- Go in your browser at https://192.168.5.21:8009 (if you changed the VM IP go to that IP)
- How to SSH-Remote: https://medium.com/@lopezgand/connect-visual-studio-code-with-vagrant-in-your-local-machine-24903fb4a9de
Update and recompile Plutus-playground for a running VM
Go to cd /home/vagrant/plutus/git/plutus => run git pull => run update /bin/bash ../updatePlutus.sh
Tips & Tricks
- If you need ghc or cabal you can enter a folder with
default.nixand runnix-shellover there and then change to your directory where you need to run cabal. E.g.cd /home/vagrant/plutus/git/plutus=>nix-shell=>cd ../plutus-pioneer-program/code/week1=>cabal build - If you want to use auto-complete function, then enter
nix-shellas above and then runvim. (This doesn't work withvscode). You could open a Terminal window invscodeand runvimfrom there.
Credits
Original from: edwint88
Go give him a star!