Installing, this may take a few minutes...
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: kokaki
New password: (Raspberrypi5)
Retype new password: (Raspberrypi5)
passwd: password updated successfully
Installation successful!
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
Welcome to Ubuntu 24.04.1 LTS (GNU/Linux 5.15.133.1-microsoft-standard-WSL2 x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/pro
System information as of Thu Jan 2 09:58:39 JST 2025
System load: 0.2 Processes: 30
Usage of /: 0.1% of 1006.85GB Users logged in: 0
Memory usage: 5% IPv4 address for eth0: 172.24.70.19
Swap usage: 0%
This message is shown once a day. To disable it please create the
/home/kokaki/.hushlogin file.
■Update/Upgrade
Ubuntu 24.04.1 LTS \n \l
kokaki@skynew:~$ cat /etc/os-release
PRETTY_NAME="Ubuntu 24.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.1 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo
kokaki@skynew:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.1 LTS
Release: 24.04
Codename: noble
■その他ツールインストール
https://qiita.com/Tabito/items/14503998d6f3a46eb6f6
Microsoft-Windows-Subsystem-Linux (WSL)
VirtualMachinePlatform (仮想マシンプラットフォーム)
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
新機能と改善のために最新の PowerShell をインストールしてください!https://aka.ms/PSWindows
・WSL一覧
PS C:\Users\pc> wsl -l -v
NAME STATE VERSION
* Ubuntu-22.04 Stopped 2
ubuntu002 Stopped 2
ubuntu001 Stopped 2
Ubuntu-24.04 Running 2
Ubuntu Stopped 2
・WSLスナップショット作成(export)
PS C:\Users\pc> wsl --export Ubuntu-24.04 D:\DevWork\wsl_snapshot/ubuntu-24.04_20250103.tar
エクスポートが進行中です。これには数分かかる場合があります。
この操作を正しく終了しました。
・WSLスナップショット展開(import)
PS C:\Users\pc> wsl --import ubuntu101 D:\DevWork\wsl_vhdx/ubuntu101 D:\DevWork\wsl_snapshot/ubuntu-24.04_20250103.tar
・WSL起動
PS C:\Users\pc> wsl --distribution ubuntu101 --user kokaki
・WSL登録解除
PS C:\Users\pc> wsl --unregister ubuntu101
------------------------------------------------------------------------------------------------------------------
・コマンドプロンプト
Microsoft Windows [Version 10.0.19045.5247]
(c) Microsoft Corporation. All rights reserved.
・一覧表示
C:\Users\pc> wsl -l -v
NAME STATE VERSION
* Ubuntu-24.04 Stopped 2
・スナップショット作成(Ubuntu-24.04をubuntu-24.04_20241229.tarにスナップショット作成)
C:\Users\pc> wsl --export Ubuntu-24.04 C:\DevWork\wsl_snapshot/ubuntu-24.04_20241229.tar
エクスポートが進行中です。これには数分かかる場合があります。
この操作を正しく終了しました。
・スナップショットから環境を作成(ubuntu-24.04_20241229.tarをもとにubuntu001フォルダにubuntu001という名前で作成)
C:\Users\pc> wsl --import ubuntu001 D:\DevWork\wsl_vhdx/ubuntu001 D:\DevWork\wsl_snapshot/ubuntu-24.04_20241229.tar
インポート中です。この処理には数分かかることがあります。
この操作を正しく終了しました。
・wsl起動
C:\Users\pc> wsl --distribution ubuntu001 --user kokaki
・wsl登録解除
C:\Users\pc> wsl --unregister ubuntu001
2025 kokaki.jp, Office.