Skip to content

Instantly share code, notes, and snippets.

@mshr-h
Last active March 31, 2017 08:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mshr-h/9a4113d6533f7e2e6a83c27c036f7248 to your computer and use it in GitHub Desktop.
Save mshr-h/9a4113d6533f7e2e6a83c27c036f7248 to your computer and use it in GitHub Desktop.
Ubuntu setup script
# 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
@mshr-h
Copy link
Author

mshr-h commented Nov 5, 2016

@mshr-h
Copy link
Author

mshr-h commented Nov 13, 2016

chsh -s `which zsh`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment