# 初回rootでログイン ssh root@... yum update -y adduser yto passwd yto # 新規ユーザで入り直し ssh yto@... # rootでのSSHアクセス禁止設定 su - cd /etc/ssh cp sshd_config sshd_config.old # sshd_config を編集し "PermitRootLogin no" にする systemctl restart sshd.service
sudo yum install gcc zlib-devel bzip2 bzip2-devel readline readline-devel sqlite sqlite-devel openssl openssl-devel git libffi-devel git clone https://github.com/pyenv/pyenv.git ~/.pyenv echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> ~/.bash_profile echo 'eval "$(pyenv init -)"' >> ~/.bash_profile source ~/.bash_profile pyenv install --list | grep anaconda pyenv install anaconda3-2019.10 conda create -n ana3 conda init bash conda activate ana3 conda deactivate
jupyter notebook --generate-config jupyter notebook password
c.NotebookApp.ip = '0.0.0.0' c.NotebookApp.open_browser = False c.NotebookApp.port = 8888 c.NotebookApp.certfile = '/home/yto/.jupyter/cert.pem' c.NotebookApp.keyfile = '/home/yto/.jupyter/privkey.pem'
nohup jupyter notebook >> jupyter.log 2>&1 &
sudo yum -y install ipa-gothic-fonts ipa-mincho-fonts ipa-pgothic-fonts ipa-pmincho-fonts emacs ~/.pyenv/versions/anaconda3-2019.10/lib/python3.7/site-packages/matplotlib/mpl-data/matplotlibrc > font.family : IPAGothic > font.sans-serif : IPAGothic, DejaVu Sans, Bitstream Vera Sans, Computer Modern Sans Serif, Lucida Grande, ...