yoga6inzai
2026/5/23
Windows 11
コントロールパネル - プログラム - Windowsの機能の有効化または無効化
Linux用Windowsサブシステム ✓
仮想マシンプラットフォーム ✓
OK
今すぐ再起動
Ubuntu 26.04 on WSL
インストール
$ wsl --install -d Ubuntu-26.04
起動されたら、
code:console
Provisioning the new WSL instance Ubuntu-26.04
This might take a while...
Create a default Unix user account: xxxxx
xxxxx の部分は、Ubuntuのユーザー名で、Widows ユーザー名と違う名前にもできる。すべて英小文字(空白なし)で設定可能
code:console
New passwd:
Ubuntu用パスワードを入力(ただし、なにも表示されないので注意)してエンターキー
code:console
Retype new passwd:
直前と同じパスワードを入力(これも、なにも表示されない)してエンターキー
code:console
passwd: password updated successfully
usermod: nochange
xxxxx@<マシン名>:/mnt/c/Users/xxxxx$ exit
GHCup
システム要件
$ sudo apt update; sudo apt upgrade -y; sudo apt autoremove -y
$ sudo apt install build-essential libffi-dev libgmp-dev libncurses-dev
インストール
$ curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
#windows11