2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Windows11(WSL2)+Debian12+GUIデスクトップ(xfce4)+日本語化

Last updated at Posted at 2024-03-20

Windows11のWSL2 with Debian12の設定。

更新するサイトを日本の方にする
sudo nano /etc/apt/sources.list
deb http://ftp.jp.debian.org/debian/ bookworm main contrib non-free non-free-firmware

更新
sudo apt --allow-releaseinfo-change update && sudo apt list --upgradable && sudo apt-get update && sudo apt upgrade

GUIデスクトップ
sudo apt -y install xfce4 xfce4-goodies

日本語化
sudo dpkg-reconfigure locales

日本語になったか確認
echo $LANG

リモートデスクトップのインストールする
sudo apt -y install xrdp dbus-x11
sudo apt -y install task-japanese-desktop ibus-kkc

設定のコピー
sudo cp -p /etc/xrdp/xrdp.ini /etc/xrdp/xrdp.ini.ORG

xrdpのポートを3390に変更
sudo sed -i 's/3389/3390/g' /etc/xrdp/xrdp.ini

解像度を変更
sudo sed -i 's/max_bpp=32/#max_bpp=32\nmax_bpp=128/g' /etc/xrdp/xrdp.ini
echo xfce4-session > ~/.xsession
sudo cp -p /etc/xrdp/startwm.sh /etc/xrdp/startwm.sh.ORG

sudo nano /etc/xrdp/startwm.sh
以下の最終2行をコメントアウト
test -x /etc/X11/Xsession && exec /etc/X11/Xsession
exec /bin/sh /etc/X11/Xsession

#test -x /etc/X11/Xsession && exec /etc/X11/Xsession
#exec /bin/sh /etc/X11/Xsession

#※以下2行を最終行として追加
#xfce4
startxfce4

wslを再起動
wsl --shutdown

xrdpの起動
sudo /etc/init.d/xrdp start

2
2
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
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?