Last active
January 14, 2023 01:10
-
-
Save c-bata/11416527 to your computer and use it in GitHub Desktop.
Ubuntuのセットアップを出来るだけ自動化するシェルスクリプト
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
#!/bin/bash | |
#==================================================================== | |
# aptのアップデート | |
#==================================================================== | |
yes | sudo apt-get update | |
yes | sudo apt-get upgrade | |
#==================================================================== | |
# 『デスクトップ』『音楽』などの日本語フォルダー名を英語表記にする | |
#==================================================================== | |
env LANGUAGE=C LC_MESSAGES=C xdg-user-dirs-gtk-update | |
#==================================================================== | |
# デスクトップがフリーズした場合に備えて「Ctrl+Alt+Backspace」で強制終了を有効化 | |
#==================================================================== | |
#sudo dpkg-reconfigure keyboard-configuration | |
#==================================================================== | |
# 文字化け対策 | |
#==================================================================== | |
gsettings set org.gnome.gedit.preferences.encodings auto-detected "['UTF-8','CURRENT','SHIFT_JIS','EUC-JP','ISO-2022-JP','UTF-16']" | |
gsettings set org.gnome.gedit.preferences.encodings shown-in-menu "['UTF-8','SHIFT_JIS','EUC-JP','ISO-2022-JP','UTF-16']" | |
#==================================================================== | |
# プラグインの追加 | |
#==================================================================== | |
sudo apt-get install gedit-plugins | |
#==================================================================== | |
# Ubuntu Web Apps(Gmail/Amazon/Twitter/Facebook)削除 | |
#==================================================================== | |
yes | sudo apt-get remove unity-webapps-common xul-ext-unity xul-ext-websites-integration | |
#==================================================================== | |
# updatedbの無効化(locateコマンド使わないなら絶対しておくべき) | |
#==================================================================== | |
sudo chmod 644 /etc/cron.daily/mlocate | |
#もとに戻すならsudo chmod 755 /etc/cron.daily/mlocate | |
#==================================================================== | |
# ソフトウェアインストール | |
#==================================================================== | |
# 便利ツール | |
yes | sudo apt-get install tree curl | |
#yes | sudo apt-get install git | |
yes | sudo apt-get install vim vim-gnome | |
yes | sudo apt-get install imagemagick pdftk | |
yes | sudo apt-get install flashplugin-installer | |
# heroku-toolbelt | |
wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh | |
#==================================================================== | |
# Python開発環境構築 | |
#==================================================================== | |
yes | sudo apt-get install python-pip python2.7 python2.7-dev python3 | |
yes | sudo pip install virtualenv | |
yes | sudo pip install virtualenvwrapper | |
## Virtualenvwrapper | |
#if [ -f /usr/local/bin/virtualenvwrapper.sh ]; then | |
# export WORKON_HOME=$HOME/.virtualenvs | |
# source /usr/local/bin/virtualenvwrapper.sh | |
#fi | |
#==================================================================== | |
# pipで入れれる便利ツール | |
#==================================================================== | |
# trash-cli : http://tukaikta.blog135.fc2.com/blog-entry-214.html | |
yes | sudo pip install trash-cli | |
#==================================================================== | |
# その他 | |
#==================================================================== | |
echo 'その他にインストールするもの' | |
#echo 'Pycharm' | |
echo 'dropbox' | |
echo 'virtualbox,vagrant : http://qiita.com/seizans/items/ef220c98fde6dbfbee32' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment