私はX410 を持っているが、Macを忘れたので、Windowsでhelmチャートのコードを書く必要があったので、WSLを使うことにした。絶対的にVSCode が欲しいのでそのセットアップメモ
X のインストール
これだけでよいみたい
sudo apt install x11-apps
xeyes などで動作確認する
ディスプレイの設定
X410 を起動したのちに、ディスプレイ設定。面倒なので、.bashrc
にぶちこむ
echo "export DISPLAY=127.0.0.1:0.0" >> ~/.bashrc
Firefox
sudo apt install firefox
インストールは出来たがバスのエラーに遭遇。
$ firefox
(firefox:3787): LIBDBUSMENU-GLIB-WARNING **: 12:55:13.xxx: Unable to get session bus: Failed to execute child process “dbus-launch” (No such file or directory)
で解決。
$ dbus-uuidgen
あとはオフィシャルの手順に従う
VSCode
debパッケージをダウンロードしたら次の通り
$ sudo apt install ./code_1.33.0-1554390824_amd64.deb
$ curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
$ sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/
$ sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
$ sudo apt-get install apt-transport-https
$ sudo apt-get update
$ sudo apt-get install code
$ code .
TODO
firefox works. However, error still remains. having trouble with restoring the state.
$ firefox
Exiting due to channel error.
###!!! [Parent][MessageChannel] Error: (msgtype=0x350046,name=PContent::Msg_LoadProcessScript) Channel error: cannot send/recv
###!!! [Parent][MessageChannel] Error: (msgtype=0x35002E,name=PContent::Msg_UpdateSharedData) Channel error: cannot send/recv
[Parent 6674, Main Thread] WARNING: FileDescriptorSet destroyed with unconsumed descriptors: file /build/firefox-QFhmDU/firefox-66.0.2+build1/ipc/chromium/src/chrome/common/file_descriptor_set_posix.cc, line 23
###!!! [Parent][MessageChannel] Error: (msgtype=0x350020,name=PContent::Msg_PreferenceUpdate) Channel error: cannot send/recv
###!!! [Parent][MessageChannel] Error: (msgtype=0x350020,name=PContent::Msg_PreferenceUpdate) Channel error: cannot send/recv
###!!! [Parent][MessageChannel] Error: (msgtype=0x35002E,name=PContent::Msg_UpdateSharedData) Channel error: cannot send/recv