We have a Mini-NDN pre-installed in a vagrant box. The box can be found here. For suggested Mini-NDN resource allocation, Here's an example Vagrantfile
:
# -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configure("2") do |config| config.vm.box = "sdulal/mini-ndn" config.vm.provider "virtualbox" do |vb| vb.memory = "4096" vb.cpus = "4" vb.name = "mini-ndn-box" end end
vagrant
and VirtualBox containing Mini-NDNDownload and install VirtualBox and Vagrant
To create and start fresh virtual machine:
# -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configure("2") do |config| config.vm.box = "bento/ubuntu-20.04" config.disksize.size = '40GB' config.vm.provider "virtualbox" do |vb| vb.memory = 4096 vb.cpus = 4 vb.name = "mini-ndn-box" end end
$ vagrant up
vagrant
.To install Mini-NDN, use the following commands:
git clone https://github.com/named-data/mini-ndn.git cd mini-ndn ./install.sh --source
To test mini-ndn:
mini-ndn
directory, entersudo python examples/mnndn.py
exit
to close the CLI.(Additional optional "not really needed" steps)
cd 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
Vagrantfile
.vb_name
is the name of the vm defined in Vagrantfile
, and box_name
any name for the output .box
filevagrant package --base vb_name --output box_name.box