Created
February 14, 2017 23:31
-
-
Save hollisn/e2025a3a91cc96acdd5a6e20f3b1232d to your computer and use it in GitHub Desktop.
Linux Setup
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
sudo apt-get install htop | |
sudo apt-get install git | |
sudo apt-get install ntfs-3g | |
sudo apt-get install python-gpgme | |
sudo apt-get install vlc browser-plugin-vlc | |
# printer | |
sudo ln -s /etc/init.d/cupsys /etc/init.d/lpd | |
# sublime | |
ls /usr/share/applications/sublime_text.desktop | |
subl /usr/share/applications/defaults.list | |
# replace gedit with sublime | |
# http://askubuntu.com/questions/396938/how-do-i-make-sublime-text-3-the-default-text-editor | |
# disable snapping? | |
gconftool-2 --set /apps/compiz-1/plugins/grid/screen0/options/top_edge_action --type int 0 | |
# http://askubuntu.com/questions/72452/how-to-turn-off-compizs-drag-to-maximize-behaviour/72480#72480 | |
# media center | |
wget -q "http://dist.jriver.com/[email protected]" -O- | sudo apt-key add - | |
sudo wget http://dist.jriver.com/latest/mediacenter/mediacenter21jessie.list -O /etc/apt/sources.list.d/mediacenter21.list | |
sudo apt-get update | |
sudo apt-get install mediacenter21 | |
# 8QAW5-...ha, get your own key :) | |
#git | |
git config --global credential.helper cache | |
git config --global credential.helper 'cache --timeout=56000' | |
# mouse wheel | |
sudo apt-get install imwheel | |
gedit ~/.imwheelrc | |
''' CONFIG SETTINGS | |
".*" | |
None, Up, Button4, 7 | |
None, Down, Button5, 7 | |
None, Left, Alt_L|Left | |
None, Right, Alt_L|Right | |
''' | |
# temps | |
sudo apt-get install lm-sensors sensors-applet | |
# watch -n 1 -d sensors | |
sudo apt-get install psensor | |
sudo pip install gpustat | |
# watch --color -n1.0 gpustat | |
# whitepoint | |
sudo apt-get install redshift | |
gedit ~/.config/redshift.conf | |
''' CONFIG SETTINGS | |
; Global settings for redshift | |
[redshift] | |
temp-day=4800 | |
temp-night=3500 | |
transition=1 | |
;brightness-day=1.0 | |
;brightness-night=0.87 | |
gamma=0.84 | |
location-provider=geoclue2 | |
adjustment-method=randr | |
[manual] | |
lat=37.8 | |
lon=122.4 | |
[randr] | |
screen=0 | |
''' | |
### Tensorflow | |
# cuda | |
# download cuda 8.0 and cd to the dir | |
sudo dpkg -i cuda-repo-ubuntu1604_8.0.44-1_amd64.deb | |
sudo apt-get update | |
sudo apt-get install cuda | |
# cuda toolkit (optional?) | |
sudo apt install nvidia-cuda-toolkit | |
nvcc --version | |
# cudnn | |
# download cudnn 5.1 and cd to the dir (need to register) | |
sudo tar -xvf cudnn-8.0-linux-x64-v5.1.tgz -C /usr/local | |
# pip | |
sudo apt-get install python-pip python-dev | |
pip install --upgrade pip | |
''' OPTIONAL BAZEL | |
# bazel | |
sudo apt-get install software-properties-common swig | |
sudo add-apt-repository ppa:webupd8team/java | |
sudo apt-get update | |
sudo apt-get install oracle-java8-installer | |
echo "deb http://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list | |
curl https://storage.googleapis.com/bazel-apt/doc/apt-key.pub.gpg | sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get install bazel | |
# tensorflow | |
git clone https://github.com/tensorflow/tensorflow | |
cd tensorflow | |
git reset --hard 287db3a | |
./configure | |
### [Default is /home/snowball/anaconda2/bin/python]: [enter] | |
### Google Cloud Platform support? [y/N] n | |
### GPU support? [y/N] y | |
### gcc nvcc? [Default is /usr/bin/gcc]: [enter] | |
### cuda version? [Leave empty to use system default]: 8.0 | |
### cuda install path? [Default is /usr/local/cuda]: [enter] | |
### cudnn version? [Leave empty to use system default]: 5 | |
### cudnn install path? [Default is /usr/local/cuda]: [enter] | |
### comma sep cuda compute capabilities to build with? [Default is: "3.5,5.2"]: 6.1 | |
# get your number from https://developer.nvidia.com/cuda-gpus | |
# bazel setup | |
bazel build -c opt --config=cuda //tensorflow/tools/pip_package:build_pip_package | |
bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg | |
# bazel /crash | |
wget https://github.com/bazelbuild/bazel/archive/0.3.2.tar.gz | |
tar -xvzf 0.3.2.tar.gz | |
cd bazel-0.3.2/ | |
sudo ./compile.sh | |
sudo cp output/bazel /usr/local/bin | |
cd | |
''' | |
pip install tensorflow-gpu | |
# add paths | |
vim .bash_profile | |
''' CONFIG SETTINGS | |
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64" | |
export CUDA_HOME=/usr/local/cuda | |
''' | |
# openCV https://gist.github.com/filitchp/5645d5eebfefe374218fa2cbf89189aa |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment