Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 91 lines (70 sloc) 2.49 KB
#!/bin/bash
set -eux
# software install
sudo add-apt-repository -y ppa:aacebedo/fasd
sudo apt-get -y update
INSTALL_SOFTS=(vim git steam openjdk-8-jdk icedtea-netx nkf zsh docker docker-compose fasd direnv ubuntu-tweak-tool)
for soft in ${INSTALL_SOFTS[@]}
do
sudo apt-get -y install ${soft}
done
# docker
sudo usermod -aG docker `whoami`
# google japanese input
sudo apt-get -y install $(check-language-support)
# install chrome
sudo apt-get -y install libxss1 libappindicator1 libindicator7
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome*.deb
# install CLion
wget https://download.jetbrains.com/cpp/CLion-2016.2.tar.gz
tar zxvf CLion*.tar.gz
mkdir -p ~/ide/clion
mv clion-*/* ~/ide/clion/
rm -r clion-*
# install dropbox
sudo apt-get -y install python-gtk2
wget https://www.dropbox.com/download?dl=packages/ubuntu/dropbox_2015.10.28_amd64.deb -O dropbox.deb
sudo dpkg -i dropbox.deb
sudo apt-get -f -y install
sudo dpkg -i dropbox.deb
rm dropbox.deb
# settings
dconf reset /org/gnome/settings-daemon/plugins/keyboard/active
dconf write /org/gnome/desktop/input-sources/xkb-options "['ctrl:nocaps']"
# for steam
echo "LD_PRELOAD='/usr/$LIB/libstdc++.so.6 /usr/$LIB/libgcc_s.so.1 /usr/$LIB/libxcb.so.1 /usr/$LIB/libgpg-error.so' steam" > run_steam.sh
chmod 755 run_steam.sh
# folder name
LANG=C xdg-user-dirs-gtk-update
# thunderbird profile
mkdir -p ~/.thunderbird
cp -r ./backup_thunderbird/* ~/.thunderbird/
# mozc
# Henkan/Muhenkan
# hybernate menu
cat << EOT | sudo tee -a /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
[Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes
[Re-enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit
ResultActive=yes
EOT
# zsh
git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
zsh -c 'setopt EXTENDED_GLOB &&
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
done'
chsh -s /bin/zsh
cp zpreztorc ~/.zpreztorc
echo 'EDITOR=vim' >> ~/.zshrc
echo 'eval "$(direnv hook zsh)"' >> ~/.zshrc
cp vimrc ~/.vimrc
# key repeat
xset r rate 200 20
# cleanup
sudo apt-get -y autoremove