LoginSignup
1
0

More than 3 years have passed since last update.

ArchWSLにてKDEを使う

Last updated at Posted at 2019-12-01

ArchWSLにてXを使えない問題がやっと解決しました。
他のディストリはわからぬです。


前提条件

  • ArchWSLインスト済み
  • WSLバージョン2

インストール

shell
pacman -Syyuu plasma xorg kde-applications xorg-xinit xorg-apps fcron git cargo

pacman -Rdd avahi fluidsynth pipewire

git clone --depth=1 https://aur.archlinux.org/paru-git.git && sed -i -e /exit\ \$E_ROOT/d /bin/makepkg && cd paru-git && makepkg && pacman -U paru-git-*.pkg.tar.*
paru -Syyuu dbus-x11 systemd-genie

このあとの作業はRootのみではできない

Vcxsrv

Vcxsrvをインストール

これはXサーバーをWindows上で走らせるアプリです。

Configの例

<?xml version="1.0" encoding="UTF-8"?>
<XLaunch WindowMode="Fullscreen" ClientMode="NoClient" LocalClient="False" Display="3" LocalProgram="xcalc" RemoteProgram="xterm" RemotePassword="" PrivateKey="" RemoteHost="" RemoteUser="" XDMCPHost="" XDMCPBroadcast="False" XDMCPIndirect="False" Clipboard="True" ClipboardPrimary="True" ExtraParams="-ac" Wgl="True" DisableAC="False" XDMCPTerminate="False"/>

起動

startplasma-x11plasma_session と打ち込んで黒い画面にデスクトップが生成されたら成功です。

トラブルシューティング

  • タスクバーがない

rm ~/.config/plasma-org.kde.plasma.desktop-appletsrc
image.png

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0