简体   繁体   English

无法在Ubuntu上启动Visual Studio代码

[英]Can't launch Visual Studio Code on Ubuntu

I'm running a VM in Azure with Ubuntu 14.04. 我正在使用Ubuntu 14.04在Azure中运行VM。 I've installed XFCE and use X2GO to remote desktop to the machine. 我已经安装了XFCE并将X2GO用于远程桌面到机器。

I've downloaded the VS Code and unzipped the files. 我已下载VS代码并解压缩文件。 When I run Code from a terminal I get the following error: 当我从终端运行代码时,我收到以下错误:

WouterDeKort@UbuntuDev:~/tools/web/visual-studio-code$ ./Code 
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
WouterDeKort@UbuntuDev:~/tools/web/visual-studio-code$ [ , [Error: channel closed] ]

Any idea what I'm doing wrong? 知道我做错了什么吗?

DISCLAIMER ;-) I'm a total Linux newby. 免责声明;-)我是Linux新手。 I've just installed Linux for the first time today and I have no idea what I'm doing ;-) 我今天第一次安装了Linux,我不知道我在做什么;-)

The work-a-round is in issue 3451 . 一轮工作是问题3451 After running this, I was able to launch it from Debian Jessie with LXDE over X2Go. 运行之后,我能够通过X2Go从Debian Jessie和LXDE启动它。

sudo sed -i 's/BIG-REQUESTS/_IG-REQUESTS/' /usr/lib/x86_64-linux-gnu/libxcb.so.1

I have the same problem using X2GO and LXDE. 我使用X2GO和LXDE也有同样的问题。 Works okay (but slowly) using MobaXterm so apparently this is a problem specific to X2GO. 使用MobaXterm可以正常(但很慢),所以显然这是X2GO特有的问题。

For anyone who still wonder what is the best choice if you want to start Visual Studio Code on a headless Ubuntu - the winning combination is: 对于那些仍然想知道什么是最好的选择,如果你想在无头Ubuntu上启动Visual Studio Code的人 - 获胜的组合是:

Ubuntu Server + xfce + nomachine remote desktop Ubuntu Server + xfce + nomachine远程桌面

VS Code starts immediately without any hacks, you can set your resolution however you like, and nomachine is blazingly fast. VS Code立刻开始没有任何黑客攻击,你可以设置自己喜欢的分辨率,并且nomachine速度非常快。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM