From ae9e520df18ac032998d993086c1b741222182c1 Mon Sep 17 00:00:00 2001 From: "cam.lafit" Date: Fri, 6 May 2016 10:14:42 +0200 Subject: [PATCH] Remove some stdin warning * Ubuntu by default prevent messages being written to root's console * Disallow this annoying error --- Vagrantfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Vagrantfile b/Vagrantfile index 7112488..43b7a13 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -5,6 +5,12 @@ Vagrant.configure("2") do |config| 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", 1024]