Skip to content

Instantly share code, notes, and snippets.

@lontivero
Created August 2, 2018 18:45
Show Gist options
  • Save lontivero/c522dec1ac49b0f29744de690b2753f7 to your computer and use it in GitHub Desktop.
Save lontivero/c522dec1ac49b0f29744de690b2753f7 to your computer and use it in GitHub Desktop.
Install VirtaulBox VM with Wasabi Wallet install
require 'fileutils'
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.network "forwarded_port", guest: 80, host: 8080
config.vm.provider "virtualbox" do |vb|
vb.memory = "4096"
vb.gui = true
end
config.vm.provision "shell", inline: <<-SHELL
apt-get update
# Install xfce and virtualbox additions
apt-get install -y xfce4 virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11
# Permit anyone to start the GUI
sed -i 's/allowed_users=.*$/allowed_users=anybody/' /etc/X11/Xwrapper.config
SHELL
# dotnet
if File.exist?("/etc/apt/trusted.gpg.d/microsoft.gpg")
config.vm.provision "shell", inline: <<-SHELL
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /etc/apt/trusted.gpg.d/microsoft.gpg
sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main" > /etc/apt/sources.list.d/dotnetdev.list'
apt-get update
apt-get install -y dotnet-sdk-2.1.3
SHELL
end
# clone & build Wasabi Wallet
if File.directory?(File.expand_path("~/WalletWasabi"))
config.vm.provision "shell", inline: <<-SHELL
# Tor
apt-get install -y tor
# Clone and build Wasabi Wallet
git clone https://github.com/zkSNACKs/WalletWasabi.git --recursive
cd WalletWasabi/WalletWasabi.Gui
dotnet build
SHELL
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment