Closed10
WSLを gnomeで操作する
export DISPLAY=$(ipconfig.exe | grep -m 1 IPv4 | awk '{print $14}' | awk 'sub(/\r$/,"")'):0.0
sudo service dbus restart
sudo service x11-common restart
sudo apt install ubuntu-desktop-minimal
vi /etc/wsl.conf
[network]
generateResolvConf = false
resolvconfの中身
# This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf:
# [network]
# generateResolvConf = false
nameserver 172.21.128.1
XLaunchの設定
翌日再起動したら動作しない
$ ./gui.sh
cat: /etc/resolv.conf: No such file or directory
[sudo] password for aki:
* Setting up X socket directories... [ OK ]
* Starting system message bus dbus [ OK ]
(gnome-shell:96): mutter-WARNING **: 08:08:39.083: Failed to create backend: Unable to open display ':0.0'
このスクラップは2022/08/11にクローズされました