Jump to content
XPEnology Community

VS Code Remote Development


icaroscherma

Recommended Posts

I'm trying to use my NAS (DS918+) to work with VSCode's Remote Development (https://code.visualstudio.com/docs/remote/ssh-tutorial) but it seems that it doesn't have all the pre-requisites out-of-the-box (https://code.visualstudio.com/docs/remote/linux#_local-linux-prerequisites), right after I login on SSH it says that either `glibc` or `libstdc++` couldn't be found.

Has anybody been able to do it or at least know a way of installing these libraries?

 

It would be a perfect way of coding whenever I am.

I know that there's the web-version of VSCode that I could host on a container but I'm trying a more native app approach.

Link to comment
Share on other sites

  • 2 weeks later...

I was able to get it to work and it's been an amazing experience, you can even control Docker containers through there.

 

First you need to SSH (use PuTTy on windows) into your NAS, remember to enable it to your admin account under Control Panel -> Security.

Then go edit `/etc/ssh/sshd_config` with vi/vim (or install `nano` with SynoCommunity package).

Change `AllowTcpForwarding no` to `AllowTcpForwarding yes`.

Save and restart the SSH service from Control Panel.

 

Credits to:

Alex Kalopsia at https://www.reddit.com/r/synology/comments/gvejuq/ssh_connection_through_vscode/

 

There's a few more tweaks and plugins that you might want to do it as well, like setting up `login shell` instead of regular shell, so your bash profile (aliases, PS$ etc) is properly sourced. I will document a few things and post it here later. 😃

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...