How to quickly create a machine learning environment using Jupyter Notebook with UbuntuServer 16.04 LTS

Introduction

I've put together another article with easier steps for pyenv + Anaconda. If you are comfortable using pyenv, please refer to the following URL.

http://qiita.com/mix_dvd/items/29dfb8d47a596b4df36d

Also, I have summarized other methods, so please refer to the link below as well.

Procedure to quickly create a machine learning environment on Ubuntu 16.04

Ubuntu Server installation

Download the iso file from the following URL and install it because it does not matter whether it is a real machine or a virtual environment.

http://www.ubuntu.com/download/server

For the detailed procedure, please refer to the site that explained the details.

http://webkaru.net/linux/ubuntu-14-04-lts-install/

Login as initial user

Log in as the initial user created during installation.

Become a privileged user (root)

You can become root by executing the following command and entering the password of the initial user.

$ sudo su

Hit the command earnestly!

It is a set of commands to install what you need and to deal with some errors.

# apt install -y build-essential
# apt install -y python3-dev
# apt install -y python3-setuptools
# easy_install3 pip
# pip install numpy
# pip install scipy
# apt install libfreetype6-dev
# ln -s /usr/include/freetype2/ft2build.h /usr/include/
# pip install matplotlib
# pip install seaborn
# pip install scikit-learn
# pip install jupyter

This completes the installation of the required software. This is the end of the work as root, so the following command will return you to the initial user.

# exit

Confirmation of IP address

Since Jupyter Notebook is accessed with a web browser, check the IP address of Ubuntu. By the way, you can check it with the following command.

$ ifconfig

Jupyter Notebook Preferences

Jupyter Notebook cannot be accessed from the outside if it is left with the default settings, so you need to create a configuration file and modify it.

$ cd
$ jupyter notebook --generate-config
$ vi ~/.jupyter/jupyter_notebook_config.py

Most of the initialization files are commented out, so find what you need and modify it.

Settings to allow access from the outside

c.NotebookApp.ip = '*'

Settings to prevent the local browser from starting automatically

c.NotebookApp.open_browser = False

Setting to change the port number so that it does not conflict with the existing web server

c.NotebookApp.port = 8888

Launch Jupyter Notebook

Execute the following command in the home directory of the initial user.

$ jupyter notebook

If it seems to work, start a web browser on another machine and access the following URL.

http://xxx.xxx.xxx.xxx:8888

Please replace "xxx.xxx.xxx.xxx" with the IP address.

When the Jupyter Notebook page is displayed, OK!

Recommended Posts

How to quickly create a machine learning environment using Jupyter Notebook with UbuntuServer 16.04 LTS
How to quickly create a machine learning environment using Jupyter Notebook on macOS Sierra with anaconda
How to create a serverless machine learning API with AWS Lambda
Create a machine learning environment from scratch with Winsows 10
How to quickly create a morphological analysis environment using Elasticsearch on macOS Sierra
How to set up a Google Colab environment with Coursera's advanced machine learning courses
Machine learning with Jupyter Notebook in OCI Always Free environment (2019/12/17)
I want to use a virtual environment with jupyter notebook!
Steps to quickly create a deep learning environment on Mac with TensorFlow and OpenCV
How to build Anaconda virtual environment used in Azure Machine Learning and link with Jupyter
How to batch start a python program created with Jupyter notebook
I wanted to create a smart presentation with Jupyter Notebook + nbpresent
How to use jupyter notebook without polluting your environment with Docker
How to build a Python environment using Virtualenv on Ubuntu 18.04 LTS
Create an arbitrary machine learning environment with GCP + Docker + Jupyter Lab
How to use jupyter notebook with ABCI
How to debug with Jupyter or iPython Notebook
How to create a Python virtual environment (venv)
Try using conda virtual environment with Jupyter Notebook
[Note] How to create a Ruby development environment
How to create a multi-platform app with kivy
Try using Jupyter Notebook of Azure Machine Learning
[Note] How to create a Mac development environment
Build a Python machine learning environment with a container
Install and set Jupyter Notebook to create a study note creation environment [Mac]
[Python] How to create a local web server environment with SimpleHTTPServer and CGIHTTPServer
How to create a face image data set used in machine learning (1: Acquire candidate images using WebAPI service)
Easy Machine Learning with AutoAI (Part 4) Jupyter Notebook Edition
How to set up a Python environment using pyenv
How to create a submenu with the [Blender] plugin
Build a machine learning application development environment with Python
[Python] How to create a 2D histogram with Matplotlib
Memo for building a machine learning environment using Python
I tried to create a reinforcement learning environment for Othello with Open AI gym
Until you create a machine learning environment with Python on Windows 7 and run it
Using Graphviz with Jupyter Notebook
Build a machine learning environment
How to use Jupyter Notebook
How to import NoteBook as a module in Jupyter (IPython)
Build a machine learning scikit-learn environment with VirtualBox and Ubuntu
I want to start a jupyter environment with one command
How to build a python2.7 series development environment with Vagrant
Create a python machine learning model relearning mechanism with mlflow
The usual way to add a Kernel with Jupyter Notebook
How to import NoteBook as a module in Jupyter (IPython)
How to interactively draw a machine learning pipeline with scikit-learn and save it in HTML
I wrote a script to create a Twitter Bot development environment quickly with AWS Lambda + Python 2.7
How about Anaconda for building a machine learning environment in Python?
Make a sound with Jupyter notebook
Building a Windows 7 environment for getting started with machine learning with Python
How to touch Jupyter Notebook without polluting the environment other than Pythonista, or how to touch Ruby with Jupyter Notebook without polluting the environment other than Rubyist
How to create a Conda package
Create a virtual environment with Python!
Try to create a python environment with Visual Studio Code & WSL
How to create a virtual bridge
How to create a heatmap with an arbitrary domain in Python
Build a comfortable psychological experiment / analysis environment with PsychoPy + Jupyter Notebook
How to create a Dockerfile (basic)
How to create a CSV dummy file containing Japanese using Faker
I want to create a machine learning service without programming! WebAPI
How to write a docstring to create a named tuple document with sphinx