LoginSignup
5
1

More than 5 years have passed since last update.

VSCode を WSL (Ubuntu 18.04) で動かすメモ

Posted at

私は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

dbus-launch
dbus-uuidgen

あとはオフィシャルの手順に従う

VSCode

Visual Studio Code on Linux

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 .

linux.PNG

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
5
1
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
5
1