今日はなにの日。

気になったこと勉強になったことのメモ。

今日は、WSLにOracle Linux 8.5が追加されたみたいなので追加してみたの日。

目次

とある日

WSLのOS種類としてMicrosoft Storeに「Oracle Linux 8.5」が追加されたそうです。

「Oracle Linux 8.5」がWS[f:id:Updraft:20220221065804p:plain]Lの仲間入り ~「Microsoft Store」から入手可能【2月7日追記】 - 窓の杜

自分は、すでにWSL2にはUbuntu 20.04を使って構築していますが、Oracle Linux環境もほしいので構築してみます。

はじめに

WSL2の構築手順については本記事では説明しないのでご了承ください。

Oracle Linux 8.5構築

Microsoft Store インストール

Microsoft Store で「Oracle Linux」と検索すればすぐに出てきます。

f:id:Updraft:20220221065752p:plain

「入手」ボタンを押すだけで勝手にインストールされます。

(上記の画像だとインストール済みなので開くと表示されています)

ユーザ作成

インストール完了後、「開く」を押すと起動します。

起動すると下記のメッセージが表示されます。

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: 

Ubuntuをインストールしたときはなかった気がします。(忘れた)

迷いましたが、適当に「oracle」ユーザを作成しました。

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: oracle
Changing password for user oracle.
New password:
BAD PASSWORD: The password is shorter than 8 characters
Retype new password:
Sorry, passwords do not match.
New password:
BAD PASSWORD: The password fails the dictionary check - it is based on a dictionary word
Retype new password:
passwd: all authentication tokens updated successfully.
Installation successful!
[oracle@LAPTOP-LCHFC35R ~]$

パスワードポリシーがうるさいですが、強行すれば設定できるようです。

これで設定は終わりです。

あっさりと構築終了です。

Windows Terminalでも新しく追加したOracle Linuxが表示されて使用できます。

f:id:Updraft:20220221065804p:plain

Oracle Linux8.5用のOracle®Linux8リリースノート

Oracle® Linux 8 Release Notes for Oracle Linux 8.5 - Oracle® Linux 8 Release Notes for Oracle Linux 8.5

Oracle Linux 8 - ドキュメント

他にも、「Oracle Linux 7.9」も追加されているのでお好みで選択できます。

基本的にDockerで使っているので別のOSを構築する必要はあまりないですが、記念に構築してみました。