Newer
Older
invertedlogic / Environment / vscode / InstallCodeServer.sh
#!/bin/bash


curl -fsSL https://code-server.dev/install.sh | sh


#
# Make it so we can access it without a password
#
# Replaces "auth: password" with "auth: none" in the code-server config.
#  sed -i.bak 's/auth: password/auth: none/' ~/.config/code-server/config.yaml
#  systemctl --user restart code-server


#
# This is so that with the docker extension installed
# you can manage docker from with in vscode. This requires
# logging off and on again to take effect.
#
sudo usermod -aG docker jryland


#
# Setup forwarding local port to a named service on the local network
#
sudo apt-get install nginx
sudo cp vscode.conf /etc/nginx/sites-available/
sudo ln -s /etc/nginx/sites-available/vscode.conf /etc/nginx/sites-enabled/
sudo nginx -t
sudo systemctl restart nginx


# Named conf should have an alias for this already
#  echo -e "\n127.0.0.1       vscode.localdomain\n" | sudo tee -a /etc/hosts