Skip to content

Commit c728686

Browse files
committed
docs: add wsl2.rst
1 parent f2a1bff commit c728686

4 files changed

Lines changed: 62 additions & 0 deletions

File tree

source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ Iris
1010
ckt/main
1111
ml/main
1212
robotics/main
13+
os/main
1314
ref

source/os/main.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
OS
2+
==================
3+
4+
.. toctree::
5+
:maxdepth: 2
6+
:caption: Contents:
7+
8+
win/main

source/os/win/main.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Windows
2+
==================
3+
4+
.. toctree::
5+
:maxdepth: 2
6+
:caption: Contents:
7+
8+
wsl2

source/os/win/wsl2.rst

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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+

0 commit comments

Comments
 (0)