Sign inSign up

sheid1309/code-server-jx

By sheid1309

Updated about 2 months ago

Code Server đã custom dùng để phát triển, dev game Võ Lâm Truyền Kỳ

Image
Developer tools
0

141

sheid1309/code-server-jx repository overview

Cách sử dụng

1. Chạy command sau trên VPS Linux

docker run -d \
  --name code-server \
  --restart unless-stopped \
  --device /dev/fuse \
  --cap-add SYS_ADMIN \
  -p 127.0.0.1:8080:8080 \
  -v "/root/.local:/root/.local" \
  -v "/root/.config:/root/.config" \
  -v "/home/jxser:/mnt/jxser-raw:rw" \
  -u "0:0" \
  -e "DOCKER_USER=root" \
  -e "JX_LEGACY_SOURCE=/mnt/jxser-raw" \
  -e "JX_LEGACY_MOUNTPOINT=/home/coder/project/jxser" \
  jx-code-server:4.129.0

2. Bật SSH tunnel

Chạy lệnh sau trong powershell

ssh -N -L 18080:127.0.0.1:8080 root@<ip_vps_linux>

3. Lấy mật khẩu đăng nhập

Chạy lệnh sau trong VPS Linux

grep -E '^(auth|password):' /root/.config/code-server/config.yaml

4. Truy cập vscode web UI

Truy cập VSCode Web tại http://127.0.0.1:18080. Sau đó nhập mật khẩu ở Bước 3 và sử dụng thôi

Tag summary

Content type

Image

Digest

sha256:43f2671e0

Size

401.4 MB

Last updated

about 2 months ago

docker pull sheid1309/code-server-jx:4.129.1