Skip to content

Instantly share code, notes, and snippets.

@narusemotoki
Last active December 23, 2015 12:19
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 narusemotoki/6634865 to your computer and use it in GitHub Desktop.
Save narusemotoki/6634865 to your computer and use it in GitHub Desktop.
#!/bin/bash
cd ~
echo "apt-getを使用するためにパスワードを入力"
sudo apt-get update
sudo apt-get install -y zsh
echo "シェルをzshに変更するためにパスワードを入力"
chsh -s /bin/zsh
read -p "デスクトップとして使用しますか? [yn]" answer
if [[ $answer = y ]] ; then
sudo apt-get install -y chromium-browser indicator-multiload guake fonts-vlgothic ibus-mozc unity-tweak-tool compizconfig-settings-manager indicator-cpufreq
# ウィンドウ操作
sudo apt-get install -y wmctrl xwit
sudo sh -c 'echo "export LIBOVERLAY_SCROLLBAR=0" > /etc/X11/Xsession.d/80overlayscrollbars'
indicator-multiload &
indicator-cpufreq &
fi
sudo apt-get install -y emacs24 emacs-mozc git byobu python-pip pyflakes bpython sqlite3 curl openssh-server
# pythonzでPythonをインストールしたときにSQlite3、SSLを使用できるようにするため
sudo apt-get install -y libsqlite3-dev libssl-dev
# Emacsで使ったり、全体で使ったり、プロジェクトに依存しないPythonパッケージ
sudo pip install virtualenv virtualenvwrapper epc jedi
# Pythonz
curl -kL https://raw.github.com/saghul/pythonz/master/pythonz-install | bash
# SSH
ssh-keygen -t rsa
echo "----------"
cat .ssh/id_rsa.pub
echo "----------"
# git cloneできるようにする
echo "GitHubに貼付け"
read INPUT
git clone git@github.com:narusemotoki/.emacs.d.git
git clone git@github.com:narusemotoki/dotfiles.git
bash dotfiles/setup.sh
sudo apt-get dist-upgrade -y
# キーバインドをEmacsにする
gsettings set org.gnome.desktop.interface gtk-key-theme Emacs
echo "再起動します"
read INPUT
sudo reboot
# guakeの自動起動
# bash -c 'sleep 5s; guake'
# CapsLkをCtrlにする
# /etc/default/keyboard to: XKBOPTIONS="ctrl:nocaps"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment