Skip to content

Instantly share code, notes, and snippets.

@Hermanoid
Created December 22, 2023 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hermanoid/aa2910fb1c2538199eeb0c0388971914 to your computer and use it in GitHub Desktop.
Save Hermanoid/aa2910fb1c2538199eeb0c0388971914 to your computer and use it in GitHub Desktop.
Bounce vscode to offline robot (Windows machine->Linux robot)
echo off
echo Install vscode (offline) on %1
echo Downloading Latest Vscode....
if not exist vscode-server-linux-x64.tar.gz curl -sSL "https://update.code.visualstudio.com/latest/server-linux-x64/stable" -o vscode-server-linux-x64.tar.gz
echo Please switch to robot network
pause
echo Copying server
scp vscode-server-linux-x64.tar.gz %1:vscode-server-linux-x64.tar.gz
echo Installing server
ssh %1 "mkdir -p ~/.vscode-server/bin/latest && tar zxf vscode-server-linux-x64.tar.gz -C ~/.vscode-server/bin/latest --strip 1 && touch ~/.vscode-server/bin/latest/0 && rm vscode-server-linux-x64.tar.gz"
echo Done!
@Hermanoid
Copy link
Author

Disclaimer, vscode doesn't seem to recognize that it has been installed. I'm missing an installation step, I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment