Skip to content

Latest commit

 

History

History
70 lines (53 loc) · 2.02 KB

code.md

File metadata and controls

70 lines (53 loc) · 2.02 KB

Code - coding VM

Code - VM configuration

  • VM id: 159
  • HDD: 32GB
  • Sockets: 1
  • Cores: 30
  • RAM:
    • Min: 2048
    • Max: 16384
    • Ballooning Devices: enabled
  • Machine: i440fx
  • Network
    • LAN MAC address: 0E:04:4B:34:47:C4
    • Static ip assigned in pfSense: 192.168.0.113
    • Local domain record in piHole: code .local
  • Options:
    • Start at boot: enabled
    • Start/Shutdown order: order=9
    • QEMU Guest Agent: enabled, guest trim
  • OS: Ubuntu Server

Code - OS Configuration

The following subsections from Common section should be performed in this order:

Code - CodeServer installation and configuration

Preview what occurs during the install process using

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

To install CodeServer using the command below. The same command can be used to update to a newer version

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

To have systemd start code-server now and restart on boot:

sudo systemctl enable --now code-server@$USER

Edit configuration file with nano /home/sitram/.config/code-server/config.yaml and add the parameters below.

bind-addr: 0.0.0.0:8080
auth: none
cert: false

Restart code-server service.

sudo systemctl restart code-server@$USER

Code - Accessing CodeServer from outside local network