ms@vscode-server

auth use github (not 100% self host)

code tunnel service --help

(Preview) Manages the tunnel when installed as a system service,

Usage: code-tunnel tunnel service [OPTIONS] <COMMAND>

Commands:
  install    Installs or re-installs the tunnel service on the machine
  uninstall  Uninstalls and stops the tunnel service
  log        Shows logs for the running service
  help       Print this message or the help of the given subcommand(s)

Options:
  -h, --help  Print help

GLOBAL OPTIONS:
      --cli-data-dir <CLI_DATA_DIR>  Directory where CLI metadata should be stored [env: VSCODE_CLI_DATA_DIR=]
      --verbose                      Print verbose output (implies --wait)
      --log <level>                  Log level to use [possible values: trace, debug, info, warn, error, critical, off]
$ ./code tunnel service install
*
* Visual Studio Code Server
*
* By using the software, you agree to
* the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and
* the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement).
*
info Successfully registered service...
info Successfully enabled unit files...
info Tunnel service successfully started
info Tip: run `sudo loginctl enable-linger $USER` to ensure the service stays running after you disconnect.
Service successfully installed! You can use `code tunnel service log` to monitor it, and `code tunnel service uninstall` to remove it.

stop

code tunnel service uninstall

普通にguiの左下、「リモートトンネルアクセス」からサービスと現在のセッションどちらも選択できる

same setting with local

sudo ln -s /home/$account/.vscode /home/$account/.vscode-server


Visual Studio Code Server Remote Tunnels microsoft/vscode-remote-release: Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code’s full feature set.

coder@codeserver(not work webview (extension))

GitHub - coder/code-server: VS Code in the browser

こっちは拡張機能が使えないサードパーティ製

install

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

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

allow local

code-serverの構築手順 - Qiita

  • for tailscale use
~/.config/code-server/config.yaml
- bind-addr: 127.0.0.1:8080
+ bind-addr: 0.0.0.0:8080

daemon or dry run


To have systemd start code-server now and restart on boot:
  sudo systemctl enable --now code-server@$USER
Or, if you don't want/need a background service you can run:
  code-server

sync setting

/home/$accout/.local/share/code-server/User/globalStorage/zokugun.sync-settings/settings.yml