Last active
January 4, 2019 00:27
-
-
Save jperl/4f2e33e8b6f0b9a81329edaa60374ce0 to your computer and use it in GitHub Desktop.
ubuntu ml environment notes
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
# cuda | |
export PATH=/usr/local/cuda-9.2/bin${PATH:+:${PATH}} | |
export LD_LIBRARY_PATH=/usr/local/cuda-9.2/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} | |
export LD_LIBRARY_PATH=/usr/local/cuda/extras/CUPTI/lib64:$LD_LIBRARY_PATH | |
# python | |
alias env='source ./env/bin/activate' | |
# pyenv | |
export PATH="/home/jon/.pyenv/bin:$PATH" | |
eval "$(pyenv init -)" | |
eval "$(pyenv virtualenv-init -)" | |
# nvm | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | |
# mujoco | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/jon/.mujoco/mjpro150/bin | |
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libGLEW.so |
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
# cuda, cudnn: https://yangcha.github.io/CUDA90/ | |
sudo apt-get install cuda-toolkit-x-x | |
sudo apt-get install libcudnn7-dev | |
sudo apt-get install libnccl-dev | |
# pyenv: https://github.com/pyenv/pyenv/wiki | |
sudo apt-get install git-all | |
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev | |
curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash |
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
{ | |
"editor.detectIndentation": false, | |
"editor.fontSize": 14, | |
"editor.formatOnSave": true, | |
"editor.tabSize": 2, | |
"editor.insertSpaces": true, | |
"editor.renderWhitespace": "boundary", | |
"extensions.ignoreRecommendations": false, | |
"files.autoSave": "afterDelay", | |
"files.exclude": { | |
"**/__pycache__": true, | |
"**/*.pyc": true, | |
"**/.idea": true, | |
"**/.DS_Store": true, | |
"**/.git": true, | |
"**/sublime-*": true, | |
"**/tmp": true | |
}, | |
"files.trimTrailingWhitespace": true, | |
"files.insertFinalNewline": true, | |
// Controls VSCode's Javascript validation. If set to false both syntax and sematic validation is disabled | |
"javascript.validate.enable": false, | |
// python | |
"python.pythonPath": "${workspaceFolder}/env/bin/python", | |
"python.formatting.provider": "yapf", | |
"python.formatting.yapfArgs": [ | |
"--style", | |
"{ based_on_style: pep8, column_limit: 100, indent_dictionary_value: true, indent_width: 2 }" | |
], | |
"python.linting.enabled": true, | |
"python.linting.lintOnSave": true, | |
"python.linting.pylintEnabled": true, | |
"search.exclude": { | |
"**/bower_components": true, | |
"**/build*": true, | |
"**/jspm_packages": true, | |
"**/node_modules": true, | |
"**/lib*": true, | |
"**/env": true | |
}, | |
"files.watcherExclude": { | |
"**/env": true | |
}, | |
"window.zoomLevel": 0, | |
"explorer.confirmDelete": false, | |
"python.jediEnabled": false, | |
"editor.wordWrap": "on", | |
"javascript.updateImportsOnFileMove.enabled": "never", | |
"workbench.colorTheme": "Visual Studio Light", | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment