Keegan Turner
  • πŸ‘‹Hello World.
  • πŸ“šHow-To Guides
    • Integrating Git on your local host
    • βš–οΈLoad Balancing with HAProxy
    • πŸ‘¨β€πŸ’»Code Server - Self Hosted VSCode alternative
    • πŸ•ΈοΈWordPress + LAMP - Self Hosted CMS
    • ☁️Nextcloud - Self Hosted file sync & sharing solution
    • ⏳Grafana Cloud - Cloud Hosted Monitoring
    • βŒ›Prometheus + Grafana - Self Hosted monitoring stack solution
    • πŸ›³οΈPortainer + Docker - Self Hosted container management UI
    • 🐬MariaDB - Self Hosted database server
    • πŸ€–Let's Encrypt + Certbot - Secure your web services with SSL certificates
    • ◀️Nginx Proxy Manager - Self Hosted domain controller with LE SSL certificates
    • πŸ–₯️LXD - Linux OS containers
    • 🐧Linux basics: commands
    • 🐧Linux basics: file paths
    • 🐧Linux basics: SWAP file
  • 🚫Bytes of Caution
Powered by GitBook
On this page
  1. How-To Guides

Code Server - Self Hosted VSCode alternative

2024-04-19

PreviousLoad Balancing with HAProxyNextWordPress + LAMP - Self Hosted CMS

Last updated 10 months ago

Host your code editor on your server which can be accessed remotely from any device

Self-hosting your code editor is like having your playground for coding. You get to tweak and customize it however you want, making it the perfect fit for your coding style. Plus, it keeps your code and data safe and sound on your turf, away from prying eyes. By self-hosting, you can also speed up your workflow since you're not relying on distant servers. Best of all, it's your setup, so you're not tied down by subscriptions or someone else's rulesβ€”total coding freedom!

Step 1 - System Updates

SSH into your server or cloud instance and perform system updates

sudo apt update -y

Apply the available updates

sudo apt dist-upgrade -y

Step 2 - Download code-server

Download the installation package for your operating system from the

The following commands apply to Debian-based distributions:

sudo dpkg -i code-server-$VERSION-amd64.rpm
sudo systemctl enable --now code-server@$USER

Replace '$USER' with your server username Navigate to .config/code-server and change the bind address in the 'config.yaml' file to your server IP address. Ensure that port 8080 is allowed on your firewall. Access code-server on your-ip-address:8080 The password can be found in .config/code-server/config.yaml.

Configure your code editor to your desired look and feel. Enjoy coding your projects on your self-hosted code editor!

code-server Github repository
πŸ“š
πŸ‘¨β€πŸ’»
Page cover image