https://www.anaconda.com/products/individual
From the shell path
https://repo.anaconda.com/archive/Anaconda3-2020.11-Linux-x86_64.sh
Copy and paste.
SSH to CentOS and execute the following with root privileges.
yum -y update
yum install -y wget
sysctl -w net.ipv6.conf.all.disable_ipv6=1
yum -y install vim-enhanced
setenforce 0
vi /etc/selinux/config
Edit below
SELINUX=disabled
firewall-cmd --add-port=80/tcp --zone=public --permanent
firewall-cmd --add-port=8000/tcp --zone=public --permanent
firewall-cmd --add-port=8081/tcp --zone=public --permanent
firewall-cmd --reload
su yamato
cd /home/yamato
wget https://repo.anaconda.com/archive/Anaconda3-2020.11-Linux-x86_64.sh
sh Anaconda3-2020.11-Linux-x86_64.sh
Follow the wizard and enter yes to proceed. Activate the path when you are done.
source .bashrc
su yamato
conda install -c conda-forge jupyterhub
cd /home/yamato/anaconda3/
jupyterhub --generate-config
vi jupyterhub_config.py
Before editing
c.Spawner.default_url = ''
After editing
c.Spawner.default_url = '/lab'
command
jupyterhub
Web server starts with.
http://192.168.1.11:8000
You can access the login screen of jupyterhub. The part of 192.168.1.11 is the IP address of the virtual server, so change it according to your environment.
The login username and password are the same as the CentOS user. For example, a CentOS account Username: yamato Password: 1234 Then you can log in to jupyterhub with yamato / 1234.
If you log in and the following screen is displayed, it is successful.
Execute the following with root privileges.
yum install graphviz
Install the packages that your implementation will need.
conda install anaconda
conda update --all
conda install pydotplus
conda install -c conda-forge opencv
Recommended Posts