2
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

個人的 Ubuntu & WSL2セットアップまとめ

Posted at

WSL2のセットアップ

GUI関係で必要なら

Chromeを入れる

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

日本語化

wsl(2)のみ。シンボリックリンクはるという手段。
https://nakomii.hatenablog.com/entry/wsl_ubuntu

アップデートするなら

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ドライブのマウント

sudo add-apt-repository ppa:alessandro-strada/ppa
sudo apt-get update
sudo apt-get install google-drive-ocamlfuse
-bash: add-apt-repository: コマンドが見つかりません

のときは

sudo apt install software-properties-common

認証。これまでにChromeかFirefoxなどをいれておく

google-drive-ocamlfuse

マウント

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

アンマウント

fusermount -u /home/ubuntu/google-drive

#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

(Anacondaを使うべき状況にいるので)

pyenv install anaconda3-hogehoge
2
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?