[LINUX] Personal Ubuntu & WSL2 setup summary

WSL2 setup

https://qiita.com/momomo_rimoto/items/51d533ae9529872696ce

If necessary for GUI

https://qiita.com/momomo_rimoto/items/2841f1f15d364c2377a1

Insert Chrome

https://qiita.com/develop/items/350f5487b4825d716d9d

sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> 
/etc/apt/sources.list.d/google-chrome.list'
sudo wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo apt update
sudo apt install google-chrome-stable

Localizing into Japanese

wsl (2) only. A means of symbolic linking. https://nakomii.hatenablog.com/entry/wsl_ubuntu

If you update

Common to Ubuntu

sudo apt update
sudo apt --only-upgrade install google-chrome-stable
sudo ln -s /mnt/c/Windows/Fonts /usr/share/fonts/windows
sudo fc-cache -fv

GSuite Google Drive Mount

https://qiita.com/cabbage_lettuce/items/c4544b3e5cd28caf04bc

sudo add-apt-repository ppa:alessandro-strada/ppa
sudo apt-get update
sudo apt-get install google-drive-ocamlfuse
-bash: add-apt-repository:Command not found

When

sudo apt install software-properties-common

Authentication. Have Chrome or Firefox installed so far

google-drive-ocamlfuse

mount

mkdir ~/google-drive
google-drive-ocamlfuse /home/ubuntu/google-drive

Unmount

fusermount -u /home/ubuntu/google-drive

Put python

https://qiita.com/ysdyt/items/5008e607343b940b3480

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

echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(pyenv init -)"' >> ~/.bashrc
source ~/.bashrc

(Because I'm in a situation where I should use Anaconda)

pyenv install anaconda3-hogehoge

Recommended Posts

Personal Ubuntu & WSL2 setup summary
Google Colaboratory setup summary
Pandas Personal Notes Summary
keyhac Personal settings summary
Python3 programming functions personal summary
ubuntu 20.04 + VirtalBox installation procedure summary
wsl Install PostgreSQL on Ubuntu 18.04
Install Docker on WSL Ubuntu 18.04
Ubuntu16.04 Java, JavaScript related developer setup
Jupyter Notebook Magic Command Personal Summary
Python package management tool personal summary