LoginSignup
2

More than 5 years have passed since last update.

Ubuntu おすすめセットアップスクリプト(2017/8/10)

Last updated at Posted at 2017-08-02

概要

Ubuntu環境触ることが増えてきたので、お好みアプリのセットアップスクリプトの自分用備忘録。

想定環境

  • Windows10, Ubuntu16.04 LTS のデュアルブート
  • GPU : GTX1070
favoriteApps.ubuntu.sh
# Ubuntu  初期セットアップ用シェルスクリプト

#初期化--------------------------------------------
yes | sudo apt-get update

#ブートローダ(grub)にwindowsが表示されるようにする
yes | sudo os-prober
yes | sudo grub-mkconfig -o /boot/grub/grub.cfg

#git
yes | sudo apt-get install git




#環境依存 -----------------------------------------------------------
# GTX1070 ドライバ 参考:http://qiita.com/hidenorly/items/a3eb3a0375e6703d163b
# CUDAインストールは手作業必要(GPGPUなど)
yes | sudo add-apt-repository ppa:graphics-drivers/ppa
yes | sudo apt-get update
yes | sudo apt-get install nvidia-367
yes | sudo apt-get install mesa-common-dev
yes | sudo apt-get install freeglut3-dev

#------------- Python3 環境 -------------------------------------------
# Ubuntu16のデフォルトはPython2, Python3を入れるにはpyenv+anaconda がよい
#参考:http://qiita.com/y__sama/items/5b62d31cb7e6ed50f02c#linux%E3%81%AE%E5%A0%B4%E5%90%88
#pyenv
yes | git clone https://github.com/yyuu/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(pyenv init -)"' >> ~/.bashrc
source ~/.bashrc

yes | pyenv install -l | grep ana  # 最新版を確認
yes | pyenv install anaconda3-2.5.0
yes | pyenv rehash
# anacondaをメインのpythonに設定。
yes | pyenv global anaconda3-2.5.0
# activateがpyenvとanacondaでバッティングするので、pathに明示しておく。
echo 'export PATH="$PYENV_ROOT/versions/anaconda3-2.5.0/bin/:$PATH"' >> ~/.bashrc
source ~/.bashrc 
yes | conda update conda #念のためconda自体をアップデートしておく。


# 共通 ---------------------------------------------------------------

# google-drive-ocamlfuse : Google Driveをマウントできる。ローカルにデータは残らない
# 参考:http://asuhen.net/2015/04/11/linux%E3%81%A7google%E3%83%89%E3%83%A9%E3%82%A4%E3%83%96%E3%82%92%E4%BD%BF%E3%81%88%E3%82%8B%E3%82%88%E3%81%86%E3%81%AB%E3%81%97%E3%81%A6%E3%81%BF%E3%81%9F%E3%81%AE%E3%81%A7%E3%83%A1%E3%83%A2%E6%AE%8B/
yes | sudo add-apt-repository ppa:alessandro-strada/ppa
yes | sudo apt-get update
yes | sudo apt-get install google-drive-ocamlfuse
mkdir ~/googledrive
google-drive-ocamlfuse  #Outh認証
google-drive-ocamlfuse ~/googledrive  #マウント

#chrome
yes | sudo wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
yes | sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
yes | sudo apt-get install google-chrome-stable

#Clip Grab  フリーダウンロード
yes | sudo apt-add-repository ppa:clipgrab-team/ppa
yes | sudo apt-get update
yes | sudo apt-get install clipgrab

#Gimp
yes | sudo apt-add-repository ppa:otto-kesselgulasch/gimp
yes | sudo apt-get update
yes | sudo apt-get dist-upgrade

#VLC media player
yes | sudo apt-get install vlc

#dropbox
yes | sudo apt-key adv --keyserver pgp.mit.edu --recv-keys 5044912E
yes | sudo add-apt-repository "deb http://linux.dropbox.com/ubuntu trusty main"
yes | sudo apt-get update
yes | sudo apt-get update && sudo apt-get install dropbox

#open-jdk 8  複数バージョン共存はupdate-alternatives が必要
#sudo apt-get install openjdk-6-jdk
#sudo apt-get install openjdk-7-jdk
yes | sudo apt-get install openjdk-8-jdk

#eclipse 3.8  最新版はaptではインストールできないぽい
yes | sudo apt-get install eclipse 


# 手作業------------------------------------------------------------------------------
#google-drive-ocamlfuse の自動起動
gnome-session-properties
# 名前     google-drive-ocamlfuse
# コマンド   google-drive-ocamlfuse /home/ユーザ名/GoogleDrive
# 参考:https://sites.google.com/site/tetsuroweb/home/software/ubuntu/applications/internet/google-drive-ocamlfuse#TOC--3

#CUDAのインストール





Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2