In host, create new FF profile (`about:profiles`) for that purpose, and configure it to use squid proxy running inside of container.
In host, create new FF profile (`about:profiles`) for that purpose, and configure it to use squid proxy running inside of container.
#### VS Code Remote (does not work)
Connects to host successfully, but does not let to do anything (not even to open a folder):
produces "Connection error: Client refused: version mismatch" error,
presumably due to code-oss being used on VS client (system host) and vscodium being used on host (LXC container).
(Only code-oss is present in alpine packages, and only vscodium has remote-host binaries).
Steps to get to that stage (one of the sources: https://github.com/microsoft/vscode-remote-release/issues/6347),
assuming that you already have keyring and key-based SSH auth (with non-RSA key) configured:
In container:
```
doas apk add gcompat libstdc++ curl bash git procps
```
and enable `AllowTcpForwarding` and `PermitTunnel` in `/etc/ssh/sshd_config`.
In host:
`doas apk add code-oss`
Edit `/usr/lib/code-oss/resources/app/package.json`: at the root level, add `"release": "22245",`
(replace 22245 with an actual value for your version from https://github.com/VSCodium/vscodium/releases).
Edit `/usr/lib/code-oss/resources/app/package.json`: at the root level, add `"commit": "COMMIT_ID", "quality": "stable",`
(replace COMMIT_ID with an actual commit id from the same source).
Replace "serverApplicationName" with "codium-server", and "serverDataFolderName" with ".vscodium-server".
Run `code-oss`, add "Open Remote - SSH" extension by jeanp413, exit.
Add `"enable-proposed-api": ["jeanp413.open-remote-ssh"]` at the root level of `~/.vscode-oss/argv.json`.
Run `code-oss` again, you'll get remote button under the marketplace button.
Go there, add your host, right-click it, connect.
Connection should be successful, and you should see "connected to remote" on Code OSS main screen.
But "Open file" / "Open folder" will still list local directory structure, and in debug output for "Window" there will be an error message about "version mismatch".