File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 ckt/main
1111 ml/main
1212 robotics/main
13+ os/main
1314 ref
Original file line number Diff line number Diff line change 1+ OS
2+ ==================
3+
4+ .. toctree ::
5+ :maxdepth: 2
6+ :caption: Contents:
7+
8+ win/main
Original file line number Diff line number Diff line change 1+ Windows
2+ ==================
3+
4+ .. toctree ::
5+ :maxdepth: 2
6+ :caption: Contents:
7+
8+ wsl2
Original file line number Diff line number Diff line change 1+ WSL2
2+ =====
3+
4+ Windows Subsystem for Linux (WSL) は Windows の機能であり,別の仮想マシンやデュアル ブートを必要とせずに,Windows マシンで Linux 環境を実行することができる.ここでは,Ubuntu22.04を使用する例を示す.
5+
6+ .. code-block :: powershell
7+
8+ wsl -- install
9+ wsl -- install Ubuntu- 22.04
10+
11+ なお,オンラインストアからダウンロードできる利用可能な Linux ディストリビューションのリストは,次のコマンドで確認できる.
12+
13+ .. code-block :: powershell
14+
15+ wsl -- list -- online
16+
17+ インストール済みの Linux ディストリビューションのリストは,次のコマンドで確認できる.
18+
19+ .. code-block :: powershell
20+
21+ wsl -- list -- verbose
22+
23+ Docker Desktopをインストールしている場合は,
24+
25+ .. code-block :: powershell
26+
27+ wsl - l - v
28+ NAME STATE VERSION
29+ * Ubuntu- 24.04 Running 2
30+ docker- desktop Running 2
31+
32+ のように,Docker DesktopもWSL2上で動作していることが確認できる.ここで, :code: `-l `, :code: `-v ` はそれぞれ, :code: `--list `, :code: `--verbose ` のショートオプションである.
33+
34+ Windows 上での Linux GUI アプリケーション (X11 および Wayland) の実行がサポートされたため,例えば,ROS2のGUIアプリケーションである :code: `rqt ` や :code: `rviz ` も WSL2 上で動作するようになった.ここでは,xeyes を動作させる例を示す.
35+
36+ .. code-block :: bash
37+
38+ sudo apt update
39+ sudo apt install x11-apps -y
40+ xeyes
41+
42+ 詳しくは,Microsoft の公式ドキュメントを参照されたい.
43+
44+ * https://learn.microsoft.com/ja-jp/windows/wsl/
45+
You can’t perform that action at this time.
0 commit comments