Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support VSCode Remote Server offline package. #1802

Open
Phelexand opened this issue Nov 7, 2019 · 18 comments
Open

Support VSCode Remote Server offline package. #1802

Phelexand opened this issue Nov 7, 2019 · 18 comments
Labels
feature-request Request for new features or functionality wsl Issue in vscode-remote WSL

Comments

@Phelexand
Copy link

Phelexand commented Nov 7, 2019

It's perfect when linking the Internet. It made me tied,When I have a environment for develop of apps on GNU/Linux, that is a sandbox offline with the Internet. My windows is offline as a sandbox also. I have to modify the extensions, and try to find the numbers of vscode remote server in the insider version. When I put the remote-server package to $HOME/.vscode-server, it runs uncompletely. RSA key is not effective on Remote.
For what I want, vscode-server (offline) is supported as VSCode. I can install them as a software suits,which has a client and server. Thank you for your pleasure.

@chrmarti
Copy link
Contributor

chrmarti commented Nov 8, 2019

Is this for SSH, Docker or WSL?

@chrmarti chrmarti added feature-request Request for new features or functionality info-needed Issue requires more information from poster labels Nov 8, 2019
@LaurentLesle
Copy link

Docker and SSH would be great.

@IgnusG
Copy link

IgnusG commented Nov 20, 2019

Just stumbled across this. Currently sitting in a coffee shop with horrible internet and cannot start VS Code with Remote WSL since it tries to download the server and fails after some time.

A fallback to an older "already downloaded" version or something similar would be a life saver.

@Phelexand
Copy link
Author

Is this for SSH, Docker or WSL?
SSH is what i met. Docker will meet it, when I was offline, even VS Remote SSH has download before.

@Phelexand
Copy link
Author

Just stumbled across this. Currently sitting in a coffee shop with horrible internet and cannot start VS Code with Remote WSL since it tries to download the server and fails after some time.

A fallback to an older "already downloaded" version or something similar would be a life saver.

Emm, it's same of #1242 but more. Not only offline client, but offlice server also. I'can make my machine linking all the time and more docker and virtual machines was created when offline.

@MAHDTech
Copy link

+1 for SSH & Docker support offline.

It would be great if there was the ability to transfer the required software from the connecting client to the remove host. Particularly useful for air gapped environments where the client could be pre-seeded with the dependencies before connection.

@Perseid
Copy link

Perseid commented Jan 5, 2020

I also have the use case of an air gapped network with no internet connection. I am connecting from one machine in the air gapped network to another via SSH.
I would propose the approach the C++ extension has taken of having additional releases with all the otherwise downloaded binaries bundled in a single vsix: https://github.com/microsoft/vscode-cpptools/releases

@avivdolev
Copy link

Hi,
I think this issue is similar to #1399 and #1242

Any chance to see this feature in near releases?

Thanks!

@Phelexand
Copy link
Author

Hi,
I think this issue is similar to #1399 and #1242

Any chance to see this feature in near releases?

Thanks!

no more, thanks.

@haherhohu
Copy link

+1 for SSH support offline.

I'm working in intranet-base environment.
Then, I can't download remote-server packages...

@chrmarti chrmarti added ssh Issue in vscode-remote SSH and removed info-needed Issue requires more information from poster labels Jun 25, 2020
@jheaff1
Copy link

jheaff1 commented Sep 14, 2020

+1 for fully offline Remote (SSH, Docker) support

@amazingmo
Copy link

+1 for me too, exactly the same thing, using remote SSH in an offline environment. + 6 for my colleagues who will complain at me about this but won't bother to write a short note asking for help.

@BassTester
Copy link

+1, no easy way to set this up in intranet setting

@tabarnakos
Copy link

+1 for support of remote shh + docker + offline vscode extension support. We want to use a server which is not connected to the internet to develop applications, because it has 80 cores and is connected to special hardware.

@BassTester
Copy link

BassTester commented Mar 29, 2022

Here's the workaround we've used to get this working without internet.

To download the server:
wget  https://update.code.visualstudio.com/commit:${​commit_id}​/server-linux-x64/stable

on remote host you want to connect to:
mkdir -p ~/.vscode-server/bin/${​commit_id}​
assuming that you upload vscode-server-linux-x64.tar.gz to /tmp dir
tar zxvf /tmp/vscode-server-linux-x64.tar.gz -C ~/.vscode-server/bin/${​commit_id}​ --strip 1
touch ~/.vscode-server/bin/${​commit_id}​/0
your directory should look like this:
user@server$ pwd
/home/user/.vscode-server/bin/${​commit_id}​
user@server$ ls
0        bin         node          out           product.json
LICENSE  extensions  node_modules  package.json  server.sh

The ‘0’ file is important – will mark that the server was “downloaded” and the client will use it instead of redownloading.

@roblourens
Copy link
Member

For SSH, connecting to an offline host should work, and for an offline client, there is this issue: #1242

@KholdStare
Copy link

It is quite ridiculous that even though I have connected to the same Docker container hundreds of times before and should presumably have a cached copy of the VSCode server locally, I cannot connect to it when offline. The fact that I need an internet connection for something that is entirely local is mind boggling.

If I am on the go, in an airplane, or in a cafe and don't want to use the public Wifi, tools should work without a constant internet connection.

Please please fix this, this is embarassing!

@SunXuan90
Copy link

Here's the workaround we've used to get this working without internet.

To download the server: wget  https://update.code.visualstudio.com/commit:${​commit_id}​/server-linux-x64/stable

on remote host you want to connect to: mkdir -p ~/.vscode-server/bin/${​commit_id}​assuming that you upload vscode-server-linux-x64.tar.gz to /tmp dir tar zxvf /tmp/vscode-server-linux-x64.tar.gz -C ~/.vscode-server/bin/${​commit_id}​ --strip 1 touch ~/.vscode-server/bin/${​commit_id}​/0 your directory should look like this: user@server$ pwd /home/user/.vscode-server/bin/${​commit_id}​user@server$ ls 0        bin         node          out           product.json LICENSE  extensions  node_modules  package.json  server.sh

The ‘0’ file is important – will mark that the server was “downloaded” and the client will use it instead of redownloading.

This doesn't work anymore with latest release. Here is another workaround but I didn't succeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality wsl Issue in vscode-remote WSL
Projects
None yet
Development

No branches or pull requests