Giter Club home page Giter Club logo

ubuntu-vm-basics's Introduction

Setup VM basics

Install git, ruby and chef inside a fresh and blank Ubuntu VM/Server.

sudo apt-get update && sudo apt-get install -y curl
curl -L https://raw.github.com/spider-network/ubuntu-vm-basics/master/fetch |bash
cd ~/ubuntu-vm-basics && ./installer

Step by step instruction: How to use it!

  • Git 1.8.0.2
  • Ruby 1.9.3-p362 (System)
  • Bundler 1.2.3
  • Chef 10.16.4
  • RVM 1.17.4
    • Ruby 1.9.3-p362 (Default)
    • Ruby 1.9.3-p327
    • Ruby 1.9.3-p194

How to use it!

Requirements VirtualBox and Ruby with RubyGems have installed on your system.

Install the vagrant gem

$> gem install vagrant
$> mkdir -p ~/vms/vagrant/boxes
$> cd ~/vms/vagrant/boxes && wget http://files.vagrantup.com/precise64.box
$> cd ~/vms/vagrant && vagrant box add ubuntu_precise64 boxes/precise64.box

Init new project

$> mkdir -p ~/vms/vagrant/vm-001
$> cd ~/vms/vagrant/vm-001
$> vagrant init ubuntu_precise64
$> vagrant up
$> vagrant ssh
vagrant@precise64:~$ sudo apt-get update && sudo apt-get install -y curl
vagrant@precise64:~$ curl -L https://raw.github.com/spider-network/ubuntu-vm-basics/master/fetch |bash
vagrant@precise64:~$ cd ~/ubuntu-vm-basics && ./installer

Now you can setup the vm/server with your own chef recipes.

Save VM status

$> mkdir .vagrantboxes
$> vagrant package --output .vagrantboxes/vm_package_001_name.box

Troubleshooting

The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` v-root /vagrant

See: http://vagrantup.com/v1/docs/troubleshooting.html

lsmod | grep vboxsf
sudo /etc/init.d/vboxadd setup

Teardown

$> vagrant suspend
$> vagrant halt
$> vagrant destroy

With vagrant up and vagrant ssh you have a brand fresh VM.

Vagrant doc links

Good Weblinks

ubuntu-vm-basics's People

Contributors

spider-network avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

morristech

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.