Skip to content

Instantly share code, notes, and snippets.

@SilentJungle399
Last active April 9, 2023 12:08
Show Gist options
  • Save SilentJungle399/e00dceaad960137f9721eb8b54ea2468 to your computer and use it in GitHub Desktop.
Save SilentJungle399/e00dceaad960137f9721eb8b54ea2468 to your computer and use it in GitHub Desktop.
Run an instance of Visual Studio Code on any cloud platform
if [[ ! -d code-server-3.9.3-linux-amd64 ]]
then
wget https://github.com/cdr/code-server/releases/download/v3.9.3/code-server-3.9.3-linux-amd64.tar.gz
tar xvzf code-server-3.9.3-linux-amd64.tar.gz
fi
cd code-server-3.9.3-linux-amd64/bin
# ./code-server --install-extension extension.id
./code-server --bind-addr 0.0.0.0:8080 --auth password
@CodedHuman
Copy link

Does not work as of 2022:

main.sh: line 3: wget: command not found

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
main.sh: line 7: cd: code-server-3.9.3-linux-amd64/bin: No such file or directory
main.sh: line 11: ./code-server: No such file or directory

@min-khant-saw
Copy link

Does not work as of 2022:

main.sh: line 3: wget: command not found

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
main.sh: line 7: cd: code-server-3.9.3-linux-amd64/bin: No such file or directory
main.sh: line 11: ./code-server: No such file or directory

Yeah Me too Bro :)

@munishkhatri720
Copy link

main.sh: line 3: wget: command not found

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
main.sh: line 7: cd: code-server-3.9.3-linux-amd64/bin: No such file or directory
main.sh: line 11: ./code-server: No such file or directory

to solve this error first go in repl shell and type wget to add wget in nix enviroment

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