The WSL2 of Windows 11 is equipped with WSLG and the Linux GUI app works.The fusion with Windows has been advanced since the preview version introduced earlier, and the text with WordPad format on the Win32 side could be pasted into the Linux GUI app (LibreOffice. The left window).
Windows 11 WSL (Windows Subsystem for Linux) offers WSLG to operate the Linux GUI application.This was previewed in Windows 10 on Windows Insider Program Dev Channel.I have already handled it several times in this series, but this time I will look at the implementation status on Windows 11 again.
● The GUI app compatible with WSL2 started in the preview version. ● Moved the GUI application in WSL2. indicate
The WSL distribution is C locale immediately after installation (C).UTF-8) or the United States-English (en_us.UTF-8).Since the character code is UTF-8, you can handle Japanese, but set a Japanese location before installing the GUI application.It is not necessarily necessary, but it is assumed that the application is switching the language by looking at the locale.In the current WSL, the time zone is automatically used, so it is not necessary to set it (from Build 14352).
The first is how to check the locale.The current location can be displayed with the "Locale" command.It also displays a list of locale that can be set with "Locale -a"."WSL.The WSL distribution displayed in "EXE -L -online" was not selected or selected from the beginning.For this reason, the locale information containing Japanese locale is introduced and switched.
However, since the package management command is each for each distribution, the case of the apt command common to Ubuntu, Debian, etc. is explained here.First, execute the following command.
sudo apt UpdateSudo apt -Y Install Language-Pack-JASUDO Update-Locale Lang = JA_JP.UTF8
After that, stop the running WSL distribution and restart.At that time, be careful if the same distribution is running on another console.To terminate the running distribution, use the console
WSL.EXE --Terminate $ WSL_DISTRO_NAME
(Specify the distribution name without using environment variables from outside the WSL).Unfortunately, you can't start, so close the console and start the same distribution again.When it starts, the locale is "ja_jp" with the LOCALE command mentioned above.Use UTF-8 "" UTF-8 ".
By the way, it is convenient to put Japanese manpage.
sudo apt Install manpage-ja manpage-ja-dev
Next is the font installation.First, check the available font, which is done with the "FC-List" command.In Linux, or Wayland and X Window System, fonts are handled in a mechanism called fontconfig."FC-List" is the command.After checking the font before installation, you can handle Windows fonts with fontconfig.To do that, "Local" to/etc/fonts.Create a text file called Conf.If you use VI
sudo vi /etc /local.Conffc -CACHE -FV
Open as, and save the settings (XML) in the following list.The second line is a command that reflects the settings.Unfortunately, the text editor on the Win32 side, such as a notepad, cannot be used because of the SUDO command.
After installation, the settings are completed if the "FC-LIST" command is displayed with "/mnt/C/Windows/fonts/".
I will look at the operation with the Linux GUI application.LibreOffice can be introduced with an apt command, but if you want to ensure the latest version, download and introduce the DEB package or RPM package according to the WSL distribution running from the LibreOffice site.Before the font setting, the Japanese font is not displayed, but after the installation, the Japanese font entered the list.
Windows 11 WSL2 has a simple setting, and Windows fonts can be used.The screen is LibreOffice Writer before introducing Windows fonts.There were few fonts and there were few fonts that could be used in Japanese
After introducing Windows fonts, Windows fonts will also be displayed on LibreOffice Writer, the Linux GUI application.
In the preview version, the Linux GUI app did not support high resolution, but Windows 11 is compatible and is not affected by the Windows display ratio.
I set the Windows display ratio at 125 % to 100 %, but the size of the Linux GUI application remains the same.Note that the settings and word pad window size has changed
In addition, the clipboard between the Win32 application and the Linux GUI application is also supported by the conversion of rich text format.However, the conversion is only from Win32 to the WSL side, and the pasting from the LibreOffice Writer (word processor) on the WSL side seems to be a text -based text -based.It seems that the response on the Windows side has progressed considerably compared to the preview version.
Win32側からWSL側に書式付きのテキスト(游明朝、MSゴシック)を貼り付けることができたが、WSL側の書式付きテキスト(WSL->Win32、メイリオ)は、テキストのみの貼り付けになった
I tried using it for a while, but it is convenient for web browsers and PDF viewers directly on the WSL.In the past, it was necessary to download it with a browser on the Win32 side, copy it to the WSL side, or open the PDF file on the Win32 side.The Linux GUI application has a folder with the same name as the WSL distribution name in the "All apps" in the start menu, and enters it.
In the "All apps" in the start menu, the folder of the WSL distribution name (Ubuntu-18).04) is made, and the Linux GUI application icon is registered.
For this reason, even if multiple WSL distributions are inserted, the GUI application will not be mixed in the start menu.That said, if you launch the same app, you can't easily distinguish which distribution.
In Windows 11, the default console application can be switched to Windows Terminal, so the WSL distribution can be started directly from the start menu.
With Windows 11 WSL, it is now possible to use graphics with the emulator QEMU.This is introduced in the following article during the preview version of Windows 10.
● Use the latest build of Windows 10 and use the virtual machine environment with WSL2
In Windows 11, the GUI compatible with WSLG enabled graphics display from QEMU, for example, the DOS game app can be operated within the WSL.WSL2 can be called "most Linux".
When the WSL2 Nested VM was evaluated in the preview version, the WSLG was not incorporated.However, the enabled WSLG enabled emulation that handles graphics with QEMU.
What is ASCII Club?
Display format: PC ⁄ Smartphone