Skip to content

Instantly share code, notes, and snippets.

@MiniXC
Created July 20, 2015 10:51
Show Gist options
  • Save MiniXC/a691e8b602bc1ac3fa8a to your computer and use it in GitHub Desktop.
Save MiniXC/a691e8b602bc1ac3fa8a to your computer and use it in GitHub Desktop.
vagrant-stdin-fixes
# fixes "default: stdin: is not a tty" error message
# source: http://foo-o-rama.com/vagrant--stdin-is-not-a-tty--fix.html
s.inline = "sudo sed -i '/tty/!s/mesg n/tty -s \\&\\& mesg n/' /root/.profile"
# fixes "dpkg-reconfigure: unable to re-open stdin: No file or directory" error message
# source: http://serverfault.com/a/500778
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
locale-gen en_US.UTF-8
dpkg-reconfigure locales
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment