diff --git a/Vagrantfile b/Vagrantfile index b8c467b..43b7a13 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -1,17 +1,22 @@ Vagrant.configure("2") do |config| - config.vm.box = "precise64" - config.vm.box_url = "http://files.vagrantup.com/precise64.box" + config.vm.box = "ubuntu/precise64" config.vm.network :private_network, ip: "10.10.10.10" config.ssh.forward_agent = true + # http://foo-o-rama.com/vagrant--stdin-is-not-a-tty--fix.html + config.vm.provision "fix-no-tty", type: "shell" do |s| + s.privileged = false + s.inline = "sudo sed -i '/tty/!s/mesg n/tty -s \\&\\& mesg n/' /root/.profile" + end + config.vm.provider :virtualbox do |vb| vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] - vb.customize ["modifyvm", :id, "--memory", 512] + vb.customize ["modifyvm", :id, "--memory", 1024] vb.customize ["modifyvm", :id, "--cpus", 2] end config.vm.provision :shell, :path => "server_config/server_install.sh" -end \ No newline at end of file +end diff --git a/server_config/server_install.sh b/server_config/server_install.sh index 18fd4ed..410e633 100644 --- a/server_config/server_install.sh +++ b/server_config/server_install.sh @@ -2,13 +2,12 @@ # APT-GET sudo apt-get update -sudo apt-get install lsb-release libfontconfig1 libfreetype6 libjpeg-dev -y --force-yes -sudo apt-get install curl git python-software-properties build-essential make g++ -y --force-yes +sudo apt-get install lsb-release libfontconfig1 libfreetype6 libjpeg-dev -y --force-yes > /dev/null 2>&1 +sudo apt-get install curl git python-software-properties build-essential make g++ -y --force-yes > /dev/null 2>&1 # Installation of NodeJS -sudo add-apt-repository -y ppa:chris-lea/node.js -sudo apt-get update -sudo apt-get install -y nodejs +curl -sL https://deb.nodesource.com/setup_0.12 | sudo -E bash - +sudo apt-get install -y nodejs > /dev/null 2>&1 source ~/.profile # Installation of some packages globally