Last active
March 31, 2017 08:46
-
-
Save mshr-h/9a4113d6533f7e2e6a83c27c036f7248 to your computer and use it in GitHub Desktop.
Ubuntu setup script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# environmental parameters | |
BASEDIR=$HOME/local | |
PACKAGES="autoconf bison build-essential clang curl flex gettext git gperf libncurses5-dev lua5.3 python-setuptools ruby zsh" | |
LANG_PACKAGES="liblua5.1-dev libluajit-5.1-dev luajit python3-dev ruby-dev" | |
GUI_PACKAGES="bleachbit gnome-tweak-tool gtkwave ibus-mozc indicator-multiload libgtk2.0-dev qtcreator synaptic vlc xorg-dev" | |
GOPATH=$HOME/go | |
GOROOT=$HOME/local/src/go | |
PATH=$GOPATH/bin:$PATH | |
PATH=$GOROOT/bin:$PATH | |
# | |
# change apt-get source location to jaist | |
sudo sed -i.bak -e "s%http://us.archive.ubuntu.com/ubuntu/%http://ftp.jaist.ac.jp/pub/Linux/ubuntu/%g" /etc/apt/sources.list | |
# | |
# install some packages | |
sudo apt update | |
sudo apt install -y $PACKAGES | |
sudo apt install -y $LANG_PACKAGES | |
sudo apt install -y $GUI_PACKAGES | |
# | |
# install linuxbrew | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install)" | |
PATH="$HOME/.linuxbrew/bin:$PATH" | |
brew install go --HEAD | |
brew install icarus-verilog | |
brew install vim --with-lua --with-luajit --with-python3 --HEAD | |
# | |
# my dotfiles | |
git clone https://github.com/mshr-h/dotfiles $HOME/.dotfiles | |
bash $HOME/.dotfiles/init.sh | |
bash $HOME/.dotfiles/deploy.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
curl -fsSL https://gist.githubusercontent.com/mshr-h/9a4113d6533f7e2e6a83c27c036f7248/raw/init.sh | sh