Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bellflower2015/6abeafbcb4a384d312628ea79e2076fb to your computer and use it in GitHub Desktop.
Save bellflower2015/6abeafbcb4a384d312628ea79e2076fb to your computer and use it in GitHub Desktop.
vagrant-provision-bionic-mingw64.bash
#!/bin/bash
#
# config.vm.provision "shell", :path => "vagrant-provision-bionic-mingw64.bash", :privileged => false
#
export DEBIAN_FRONTEND=noninteractive
SUDO='sudo -E'
$SUDO apt-mark hold linux-image-generic linux-headers-generic
$SUDO sed \
-i.bk \
-e 's%http://archive.ubuntu.com/ubuntu%http://ftp.jaist.ac.jp/pub/Linux/ubuntu%g' \
/etc/apt/sources.list
[ ! -e /etc/apt/sources.list.orig ] && $SUDO cp /etc/apt/sources.list.{bk,orig}
$SUDO add-apt-repository -y ppa:jonathonf/vim
$SUDO apt-get -y update
$SUDO apt-get -y install \
build-essential libtool automake pkg-config \
language-pack-{en,ja} mingw-w64 tig jq
$SUDO apt-get -y upgrade
$SUDO update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 LANGUAGE=
$SUDO timedatectl set-timezone Asia/Tokyo
$SUDO update-alternatives --set editor \
$(update-alternatives --list editor | grep 'vim.basic')
$SUDO update-alternatives --set i686-w64-mingw32-gcc \
$(update-alternatives --list i686-w64-mingw32-gcc | grep -- -posix)
$SUDO update-alternatives --set i686-w64-mingw32-g++ \
$(update-alternatives --list i686-w64-mingw32-g++ | grep -- -posix)
$SUDO update-alternatives --set x86_64-w64-mingw32-gcc \
$(update-alternatives --list x86_64-w64-mingw32-gcc | grep -- -posix)
$SUDO update-alternatives --set x86_64-w64-mingw32-g++ \
$(update-alternatives --list x86_64-w64-mingw32-g++ | grep -- -posix)
bash -c "$(curl -fsSL http://git.io/bf-dotfiles)" > /dev/null 2>&1
echo "Please restart. type 'vagrant reload'."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment