Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // To install
- # The version of the Microsoft Visual Studio Code Server
- version=$(curl -sL https://api.github.com/repos/coder/code-server/releases | grep -oP '[0-9]+\.[0-9]+\.[0-9]+' | head -n 1)
- wget https://github.com/coder/code-server/releases/download/v$version/code-server-$version-linux-amd64.tar.gz
- gunzip code-server-$version-linux-amd64.tar.gz
- tar xvf code-server-$version-linux-amd64.tar
- rm -r code-server-$version-linux-amd64.tar
- mv code-server-$version-linux-amd64 /usr/local/vscode
- # Now start the server! Arguments can be passed for advanced control of the server!
- ## Run this for all arguments:
- /usr/local/vscode/bin/code-server -h
- ## Use PASSWORD as env to set a password outside those in the config
- /usr/local/vscode/bin/code-server --bind-addr 0.0.0.0:8932 --locale de --user-data-dir /usr/local/vscode/user --extensions-dir /usr/local/vscode/exts &
- echo $! > /usr/local/vscode/pid
- # Now visit http://127.0.0.1:8932. Your password is in ~/.config/code-server/config.yaml
- // To uninstall
- kill $(cat /usr/local/vscode/pid)
- rm -r /usr/local/vscode
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement