CentOS8 + Anaconda 4.9.2 + jupyterhub environment construction procedure

Thing you want to do

Prerequisites

Where to get the Anaconda installation shell

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.

image.png

Preparation

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

SELinux disabled

setenforce 0
vi /etc/selinux/config

Edit below
SELINUX=disabled

Port open

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

Anaconda installation

Download the shell.

su yamato
cd /home/yamato
wget https://repo.anaconda.com/archive/Anaconda3-2020.11-Linux-x86_64.sh

Hit the shell to start the installation.

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

jupyterhub installation

su yamato
conda install -c conda-forge jupyterhub

jupyterhub settings

cd /home/yamato/anaconda3/
jupyterhub --generate-config
vi jupyterhub_config.py

Edit the following.

Before editing

c.Spawner.default_url = ''

After editing

c.Spawner.default_url = '/lab'

start jupyterhub

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.

image.png

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.

image.png

installation of graphviz

Execute the following with root privileges.

 yum install graphviz

Various package preparation

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

CentOS8 + Anaconda 4.9.2 + jupyterhub environment construction procedure
CentOS8 + Anaconda + Django development environment construction procedure
Offline environment construction CentOS edition
[Unity] Android development environment construction procedure
Rails on Docker environment construction procedure
CentOS8.2 (x86_64) + ruby2.5 + Rails5.2 + MariaDB (10.3.17) environment construction
[Java] Environment construction
Java environment construction
[Spring] Environment construction
Docker environment construction
Environment construction procedure for using PowerMock with JUnit
JAVA + STS (Spring Tool Suite) environment construction procedure
Wordpress local environment construction & development procedure with Docker
Penronse environment construction [Windows]
[Environment construction] Eclipse installation
[Flutter] Ubuntu 20.04 environment construction
Rails Docker environment construction
Server construction procedure Ubuntu18.04 server
[Java] Environment construction procedure for developing struts 1.3 with Eclipse
Circle CI environment construction
java development environment construction
[Procedure 1 for beginners] Ruby on Rails: Construction of development environment
Rails6 development environment construction [Mac]
[Spring Boot] Environment construction (macOS)
Rails engineer environment construction ruby2.7.1
I tried node-jt400 (Environment construction)
MySQL 5.7 (Docker) environment construction memo
Introduction to Metabase ~ Environment Construction ~
Prepare Python3 environment with CentOS7
JavaFX environment construction in Java 13
Redmine (Docker) environment construction memo
[Docker] Rails 5.2 environment construction with docker
AtCoder Challenge Environment Construction (Java 8)
Offline environment construction Ruby edition
[Super easy] Ruby environment construction
[Rails / MySQL] Mac environment construction
[Docker] postgres, pgadmin4 environment construction
Laravel environment construction (Ubuntu 18.04 LTS)
React environment construction with Docker
"Rails 6 x MySQL 8" Docker environment construction procedure for sharing with teams