I have installed vscode on a remote server(which means I have to use ssh) running on Centos 7. The version of vscode is 1.54.3
.
When I run code
, the line get executed but the vscode does not start. When I try /usr/share/code/code
I get an error
:FATAL:setuid_sandbox_host.cc(158)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I’m aborting now. You need to make sure that /usr/share/code/chrome-sandbox is owned by root and has mode 4755.
I have tried solving it using
cd /usr/share/code/
sudo chown root:root chrome-sandbox
sudo chmod 4755 chrome-sandbox
and
/usr/share/code/code --no-sandbox
But it does not work.
Where could I be doing wrong?
2
Answers
What worked for me
sudo yum update code
cd /usr/share/code
sudo chown root:root chrome-sandbox
sudo chmod 4755 chrome-sandbox
code .
The latest version that is supported in CENTOS 7 is 1.53. You can download it from the developer’s website: https://code.visualstudio.com/updates/v1_53