.infineon/_-Review/code-server.md

2.5 KiB

assigned, created, progress, tags, type, updated
assigned created progress tags type updated
2024-01-06T01:25:36.079Z 0
note 2024-07-26T22:56:25.892Z

Code Server

Studio Code Server

Home Assistant Community Add-on: Visual Studio Code

sudo -i
apt remove code-server
curl -fsSL https://code-server.dev/install.sh | sh
su vscode
nano ~/.config/code-server/config.yaml
bind-addr: 127.0.0.1:8007
auth: password
password: Darren
cert: false
exit
echo>/etc/systemd/system/code-server.service & nano /etc/systemd/system/code-server.service
[Unit]
Description=code-server
After=nginx.service

[Service]
Type=simple
User=vscode
ExecStart=/usr/bin/code-server
Restart=always

[Install]
WantedBy=multi-user.target
service code-server start
service code-server status
systemctl enable code-server
exit
exit



npm i -D code-server --unsafe-perm
cd "L:/Git/code-server/node_modules/.bin"
bash code-server



services:
  code-server:
    container_name: code-server
    environment:
      - DEFAULT_WORKSPACE=/config/workspace #optional
      - HASHED_PASSWORD= #optional
      - PASSWORD=${PASSWORD} #optional
      - PGID=1000
      - PROXY_DOMAIN=${PROXY_DOMAIN} #optional
      - PUID=1000
      - SUDO_PASSWORD_HASH= #optional
      - SUDO_PASSWORD=${SUDO_PASSWORD} #optional
      - TZ=${TZ}
    image: lscr.io/linuxserver/code-server:latest
    ports:
      - 8443:8443
    restart: unless-stopped
    volumes:
      - code-config:/config
networks: {}
volumes:
  code-config:
    driver: local
PASSWORD=IWd6JtGv#qf0e9jcCYDg
PROXY_DOMAIN=code-server.ddns.net
SUDO_PASSWORD=IWd6JtGv#qf0e9jcCYDg







TZ=US/Phoenix
docker logs -f code-server
docker exec -it code-server /bin/bash
docker inspect -f '{{ index .Config.Labels "build_version" }}' code-server
docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/code-server:latest



services:
  msedge:
    image: lscr.io/linuxserver/msedge:latest
    container_name: msedge
    security_opt:
      - seccomp:unconfined #optional
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
      - EDGE_CLI=https://www.linuxserver.io/ #optional
    volumes:
      - msedge-config:/config
    ports:
      - 5006:3000
      # - 3001:3001
    shm_size: "1gb"
    restart: unless-stopped
networks: {}
volumes:
  msedge-config:
    driver: local