icaroscherma Posted December 8, 2020 #1 Posted December 8, 2020 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. Quote
icaroscherma Posted December 17, 2020 Author #2 Posted December 17, 2020 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. 😃 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.