From Ubuntu 20.04 introduction to environment construction

Introduction

I felt that the windows machine in the laboratory was heavy and inconvenient to use, so I think it's okay to switch to an Ubuntu machine. So I hope it will be helpful for those who want to do a clean install on an Ubuntu machine. ** This is my first post on Qiita, so please take a warm look. ** ** ** Please note that dual booters are not eligible !! **

Ubuntu installation

-Download the image file from Ubuntu Desktop 20.04 LTS When creating the installation media, use ** 8GB or more USB memory **.

--Insert the created media into the PC you want to modify and start the BIOS. Boot from the installation media from the BOOT menu.

--Ubuntu starts and sets up. The language is ** English **,

Those who need proxy settings (network settings)

--Select ** setting ** (gear) from the lower left tab.

--From Network on the left tab, select the IPv4 tab from the gear on the right end of Connected ... in the Intel Ethernet column, set the IPv4 Method to Manual, and write it in the address .DNS to be used.

--Return to the Network field, select Manual from the VPN NetWork Proxy gear, and enter the required proxy.

Download apt, Git, vim

Type ** Ctrl + Alt + T ** on your desktop to open a terminal.

Add Proxy settings to the apt.conf file

Operate in the terminal.

sudo vi /etc/apt/apt.conf

** If you don't know vi, check it out. ** **


[apt.conf] will open, so enter the following contents there.

apt.conf


Acquire::http::proxy "http://proxy server:port";
Acquire::https::proxy "https://proxy server:port";

After completing the entry, save with ": wq" and finish. When finished, execute the following.

sudo apt update sudo apt upgrade


install vim

Install vim to edit .bashrc. How to use vim here

vim_install


$ sudo apt install vim

Install Git

Execute the following command to use Git under the proxy environment.

Git_install


$ sudo apt install git

Execute git clone with the following command to earn pyenv and pyenv-virtualenv.

pyenv_github


$ git clone https://github.com/yyuu/pyenv.git ~/pyenv

pyenv-virtualenv_github


$ git clone https://github.com/yyuu/pyenv-virtualenv.git ~/pyenv/plugins/pyenv-virtualenv

pyenv installation

It is necessary to set the proxy environment in order to install pyenv. Add the following and save.

sh:./.bashrc


export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
if command -v pyenv 1>/dev/null 2>&1; then
  eval "$(pyenv init -)"
fi
eval "$(pyenv virtualenv-init -)"
export PATH=/usr/local/cuda-7.5/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-7.5/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
export CUDA_HOME=/usr/local/cuda
export http_proxy="http://<proxyserver>:<port>"
export https_proxy="https://<proxyserver>:<port>"
export HTTP_PROXY="http://<proxyserver>:<port>"
export HTTPS_PROXY="https://<proxyserver>:<port>"

Execute the following command because it needs to be reflected.

$ source ./.bashrc

When I try to run the pyenv installation, it doesn't work for some reason on this version of Ubuntu. Install the download tool aria2. Execute the following command.

$ sudo apt install aria2

Installation of pyenv, pyenv-virtualenv

$ pyenv install <version>
$ pyenv virtualenv <version> <env_name>

Supplement

How to input Japanese

Summary

There was a problem that the installation of pyenv did not go well, including the introduction of Ubuntu, and it took a long time. I would like to continue to skip the OS in the future.

Recommended Posts

From Ubuntu 20.04 introduction to environment construction
Python development environment construction 2020 [From Python installation to poetry introduction]
Introduction to docker Create ubuntu environment in ubuntu
From 0 to Django development environment construction to basic operation
From Python environment construction to virtual environment construction with anaconda
[Ubuntu 18.04] Tensorflow 2.0.0-GPU environment construction
Ubuntu14.04 + GPU + TensorFlow environment construction
Operate mongoDB from python in ubuntu environment ① Introduction of mongoDB
From Kafka to KSQL --Easy environment construction with docker
Procedure to exe python file from Ubunts environment construction
[Introduction to RasPi4] Environment construction; OpenCV / Tensorflow, Japanese input ♪
Modify Ubuntu tofu to Japanese environment
[Introduction] From installing kibana to starting
Ubuntu Desktop 20.04 development environment construction memo
Environment construction of "Tello_Video" on Ubuntu
OpenCV3 & Python3 environment construction on Ubuntu
Deep learning tutorial from environment construction
[Introduction to RasPi4] Environment construction; natural language processing system mecab, etc. .. .. ♪
Spigot (Paper) Introduction to how to make a plug-in for 2020 # 01 (Environment construction)
From PyCUDA environment construction to GPGPU programming on Mac (MacOS 10.12 Sierra)
[Google App Engine] Flow from development environment construction to application creation
[Ubuntu 18.04] Python environment construction with pyenv + pipenv
Creating an Ubuntu 18.04 + MAAS2.4 environment starting from 0
[Python] Road to snake charmer (1) Environment construction
Steps to install Python environment on Ubuntu
Environment construction procedure: Ubuntu + Apache2 + Python + Pyramid
[Windows 10] "Deep Learning from scratch" environment construction
Introduction to Scapy ① (From installation to execution of Scapy)
Introduction to MQTT (Introduction)
Django environment construction
Introduction to Scrapy (3)
Introduction to Supervisor
DeepIE3D environment construction
Emacs-based environment construction
Introduction to Tkinter 1: Introduction
Linux environment construction
Python environment construction
Environment construction (python)
Introduction to PyQt
Introduction to Scrapy (2)
Sum from 1 to 10
django environment construction
CodeIgniter environment construction
[Linux] Introduction to Linux
python environment construction
Introduction to Scrapy (4)
Introduction to discord.py (2)
Python environment construction
Golang environment construction
python environment construction
Introduction to discord.py
Word2vec environment construction
Call anaconda virtual environment from ubuntu terminal memorandum
Collecting information from Twitter with Python (Environment construction)
Introduction to Python Let's prepare the development environment
Introduction to OPTIMIZER ~ From Linear Regression to Adam to Eve
[Latest] How to build Java environment on Ubuntu
Python explosive environment construction starting from zero (Mac)
[0] TensorFlow-GPU environment construction built with Anaconda on Ubuntu
Introduction to Python "Re" 1 Building an execution environment
Python 3.x environment construction by Pyenv (CentOS, Ubuntu)