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 !! **
-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 **,
--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.
Type ** Ctrl + Alt + T ** on your desktop to open a terminal.
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 to edit .bashrc. How to use vim here
vim_install
$ sudo apt install vim
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
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>
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