diff --git a/README.md b/README.md index ae0a090..afbb365 100644 --- a/README.md +++ b/README.md @@ -15,35 +15,43 @@ deal with this is to install the [VB Guest plugin](https://github.com/dotless-de Credit where credit is due, the entire idea for this project came from [this article](http://www.pvcloudsystems.com/2012/10/vagrant-modify-existing-box/). -vagrant up -vagrant ssh +```sh +vagrant up +vagrant ssh +``` Now you're free to modify the base box to match your needs. We recommend that you replace /etc/apt/sources.list by one of the [methods listed here](http://askubuntu.com/questions/319433/making-mirror-mirrors-ubuntu-com-highly-available) When you're done modifying the sources.list, it's a good idea to go ahead and update the packages. -sudo apt-get update -sudo apt-get upgrade -exit +```sh +sudo apt-get update +sudo apt-get upgrade +exit +``` If you'd like to pre-install any packages for your base image, now is the time to do so. When you're done, exit the vagrant ssh session, and run -vboxmanage list runningvms +```sh +vboxmanage list runningvms +``` -And look for the name that Virtual Box has given this machine, it will likely be something like this: - -vagrantbox-ubuntu_dspace_1387309768 +And look for the name that Virtual Box has given this machine, it will likely be something like this: vagrantbox-ubuntu_dspace_1387309768 Now run -vagrant package --base vagrantbox-ubuntu_dspace_1387309768 --output precise64.box +```sh +vagrant package --base vagrantbox-ubuntu_dspace_1387309768 --output precise64.box +``` Wait for that to complete, when you have a new precise64.box all packaged up, run this: -vagrant box add precise64 precise64.box +```sh +vagrant box add precise64 precise64.box +``` And now, you will have your own personally-tweaked base box to use with Vagrant-DSpace, or for any Vagrant-based project that refers to a base box named "precise64". @@ -53,7 +61,9 @@ And now, you will have your own personally-tweaked base box to use with Vagrant-

Optional, but highly recommended

[VB Guest plugin](https://github.com/dotless-de/vagrant-vbguest) - vagrant plugin install vagrant-vbguest +```sh +vagrant plugin install vagrant-vbguest +```

License

This work is licensed under the [DSpace BSD 3-Clause License](http://www.dspace.org/license/), which is just a standard [BSD 3-Clause License](http://opensource.org/licenses/BSD-3-Clause).