Skip to content

Instantly share code, notes, and snippets.

@wsuzume
Last active June 3, 2019 05:13
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 wsuzume/fe63b557de0ae41ed54c28efda115158 to your computer and use it in GitHub Desktop.
Save wsuzume/fe63b557de0ae41ed54c28efda115158 to your computer and use it in GitHub Desktop.
// necessary tools to use pyenv
sudo yum install gcc gcc-c++ make git openssl-devel bzip2-devel zlib-devel readline-devel sqlite-devel
// Install pyenv
sudo git clone https://github.com/yyuu/pyenv.git /usr/bin/.pyenv
cd /usr/bin/.pyenv
sudo mkdir shims
sudo mkdir versions
// Set path of pyenv
vi ~/.bashrc
; 下記を追記
export PYENV_ROOT="/usr/bin/.pyenv"
if [ -d "${PYENV_ROOT}" ]; then
export PATH=${PYENV_ROOT}/bin:$PATH
eval "$(pyenv init -)"
fi
; ここまで
// refresh
source ~/.bashrc
// Add extra channel
subscription-manager repos --enable=rhel-7-server-extras-rpms
// Install docker
yum install docker -y
sudo usermod -aG docker $USER
// Install nvidia-docker
sudo yum install nvidia-docker2
sudo pkill -SIGHUP dockerd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment