{"id":26214499,"url":"https://github.com/mirai-web3/install-code-server","last_synced_at":"2026-04-01T20:28:17.382Z","repository":{"id":277683740,"uuid":"933195873","full_name":"mirai-web3/install-code-server","owner":"mirai-web3","description":"This tutorial is tailored for code-server v4.96.4. If you need a different version, adjust the download link accordingly.","archived":false,"fork":false,"pushed_at":"2025-02-26T01:26:50.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-26T21:31:37.060Z","etag":null,"topics":["code-server","ubuntu","vscode"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mirai-web3.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-15T11:38:03.000Z","updated_at":"2025-02-26T01:26:53.000Z","dependencies_parsed_at":"2025-02-15T12:37:54.831Z","dependency_job_id":null,"html_url":"https://github.com/mirai-web3/install-code-server","commit_stats":null,"previous_names":["mirai-web3/install-code-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mirai-web3/install-code-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirai-web3%2Finstall-code-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirai-web3%2Finstall-code-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirai-web3%2Finstall-code-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirai-web3%2Finstall-code-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mirai-web3","download_url":"https://codeload.github.com/mirai-web3/install-code-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirai-web3%2Finstall-code-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31291630,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T13:12:26.723Z","status":"ssl_error","status_checked_at":"2026-04-01T13:12:25.102Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["code-server","ubuntu","vscode"],"created_at":"2025-03-12T10:17:21.342Z","updated_at":"2026-04-01T20:28:17.360Z","avatar_url":"https://github.com/mirai-web3.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"---\n\n## Tutorial for Installing **code-server v4.96.4** on Ubuntu 20.04 to 24.04\n\n---\n\n### **Prerequisites:**\n- Ubuntu Minimum 20.04\n- A **non-root** user with **sudo** privileges\n- A firewall configured to allow access on **port 8080** (or your chosen port)\n\n---\n\n## Step 1: Update Your System\nEnsure your system is up-to-date:\n```bash\nsudo apt update \u0026\u0026 sudo apt upgrade -y\n```\n\n---\n\n## Step 2: Install Dependencies\nInstall the required dependencies:\n```bash\nsudo apt install -y curl wget gnupg\n```\n\n---\n\n## Step 3: Download and Install `code-server v4.96.4`\n1. **Download the specific version (4.96.4)**:\n   - Visit the [code-server GitHub releases page](https://github.com/coder/code-server/releases) to find the download link for version 4.96.4.\n   - Alternatively, use the following command to download it directly:\n     ```bash\n     wget https://github.com/coder/code-server/releases/download/v4.96.4/code-server_4.96.4_amd64.deb\n     ```\n\n2. **Install the downloaded `.deb` package**:\n   ```bash\n   sudo dpkg -i code-server_4.96.4_amd64.deb\n   ```\n\n3. **Resolve any missing dependencies**:\n   If the installation reports missing dependencies, run:\n   ```bash\n   sudo apt --fix-broken install\n   ```\n\n---\n\n## Step 4: Start and Enable `code-server`\n1. **Start the `code-server` service**:\n   ```bash\n   sudo systemctl start code-server@$USER\n   ```\n\n2. **Enable `code-server` to start on boot**:\n   ```bash\n   sudo systemctl enable code-server@$USER\n   ```\n\n3. **Check the status** of the service:\n   ```bash\n   sudo systemctl status code-server@$USER\n   ```\n\n   You should see an output indicating that the service is running:\n   ```\n   Active: active (running) since Mon 2024-11-11 22:42:49 UTC; 1min 3s ago\n   ```\n\n---\n\n## Step 5: Configure `code-server` for HTTP (No SSL)\n1. **Edit the `code-server` configuration file**:\n   ```bash\n   nano ~/.config/code-server/config.yaml\n   ```\n\n2. **Modify the configuration** to disable SSL and bind to the desired address:\n   ```yaml\n   bind-addr: 0.0.0.0:8080  # Listen on all interfaces and port 8080\n   auth: password           # Enable password authentication\n   password: your-password  # Set your password here\n   cert: false              # Disable SSL\n   ```\n\n3. **Save the file** and exit the editor (`Ctrl + X`, then `Y` to confirm, and `Enter`).\n\n4. **Restart the `code-server` service**:\n   ```bash\n   sudo systemctl restart code-server@$USER\n   ```\n\n---\n\n## Step 6: Set Up Nginx (Optional Reverse Proxy)\nIf you want to use Nginx as a reverse proxy to forward requests from port 80 (HTTP) to port 8080, follow these steps:\n\n1. **Install Nginx**:\n   ```bash\n   sudo apt install nginx\n   ```\n\n2. **Create an Nginx configuration file**:\n   ```bash\n   sudo nano /etc/nginx/sites-available/code-server\n   ```\n\n3. **Add the following configuration**:\n   ```nginx\n   server {\n       listen 80;\n       server_name your-ip;  # Replace with your server's IP or domain\n\n       location / {\n           proxy_pass http://127.0.0.1:8080;  # Forward traffic to code-server\n           proxy_set_header Host $host;\n           proxy_set_header X-Real-IP $remote_addr;\n           proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n           proxy_set_header X-Forwarded-Proto $scheme;\n\n           # WebSocket support (important for code-server)\n           proxy_http_version 1.1;\n           proxy_set_header Upgrade $http_upgrade;\n           proxy_set_header Connection 'upgrade';\n       }\n   }\n   ```\n\n4. **Enable the site configuration**:\n   ```bash\n   sudo ln -s /etc/nginx/sites-available/code-server /etc/nginx/sites-enabled/\n   ```\n\n5. **Test the Nginx configuration**:\n   ```bash\n   sudo nginx -t\n   ```\n\n6. **Reload Nginx**:\n   ```bash\n   sudo systemctl reload nginx\n   ```\n\n---\n\n## Step 7: Open Firewall Ports\nAllow traffic on ports 80 (HTTP) and 8080 (code-server):\n\n1. **For UFW**:\n   ```bash\n   sudo ufw allow 80/tcp\n   sudo ufw allow 8080/tcp\n   sudo ufw enable\n   ```\n\n---\n\n## Step 8: Access `code-server`\n- **Direct Access**:\n  ```\n  http://your-ip:8080\n  ```\n- **Via Nginx** (if configured):\n  ```\n  http://your-ip\n  ```\n\nEnter the **password** you set in the `config.yaml` file to access the `code-server` interface.\n\n---\n\n### **Notes:**\n- **Security Warning**: Running `code-server` over HTTP is not secure. For production environments, always use HTTPS with a valid SSL certificate.\n- **Version-Specific**: This tutorial is tailored for **code-server v4.96.4**. If you need a different version, adjust the download link accordingly.\n- **Password Protection**: Ensure you set a strong password in the `config.yaml` file to prevent unauthorized access.\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirai-web3%2Finstall-code-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmirai-web3%2Finstall-code-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirai-web3%2Finstall-code-server/lists"}