Skip to content

Commit 8fb3cee

Browse files
committed
use kasm blurb for readme
1 parent 8b395d5 commit 8fb3cee

File tree

2 files changed

+64
-56
lines changed

2 files changed

+64
-56
lines changed

README.md

Lines changed: 58 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,15 @@ The application can be accessed at:
6464
* http://yourhost:3000/
6565
* https://yourhost:3001/
6666

67+
**Modern GUI desktop apps have issues with the latest Docker and syscall compatibility, you can use Docker with the `--security-opt seccomp=unconfined` setting to allow these syscalls on hosts with older Kernels or libseccomp**
68+
69+
### Security
70+
71+
>[!WARNING]
72+
>Do not put this on the Internet if you do not know what you are doing.
73+
74+
By default this container has no authentication and the optional environment variables `CUSTOM_USER` and `PASSWORD` to enable basic http auth via the embedded NGINX server should only be used to locally secure the container from unwanted access on a local network. If exposing this to the Internet we recommend putting it behind a reverse proxy, such as [SWAG](https://github.com/linuxserver/docker-swag), and ensuring a secure authentication solution is in place. From the web interface a terminal can be launched and it is configured for passwordless sudo, so anyone with access to it can install and run whatever they want along with probing your local network.
75+
6776
### Options in all KasmVNC based GUI containers
6877

6978
This container is based on [Docker Baseimage KasmVNC](https://github.com/linuxserver/docker-baseimage-kasmvnc) which means there are additional environment variables and run configurations to enable or disable specific functionality.
@@ -81,8 +90,9 @@ This container is based on [Docker Baseimage KasmVNC](https://github.com/linuxse
8190
| FM_HOME | This is the home directory (landing) for the file manager, default "/config". |
8291
| START_DOCKER | If set to false a container with privilege will not automatically start the DinD Docker setup. |
8392
| DRINODE | If mounting in /dev/dri for [DRI3 GPU Acceleration](https://www.kasmweb.com/kasmvnc/docs/master/gpu_acceleration.html) allows you to specify the device to use IE `/dev/dri/renderD128` |
93+
| DISABLE_IPV6 | If set to true or any value this will disable IPv6 |
8494
| LC_ALL | Set the Language for the container to run as IE `fr_FR.UTF-8` `ar_AE.UTF-8` |
85-
| NO_DECOR | If set the application will run without window borders for use as a PWA. |
95+
| NO_DECOR | If set the application will run without window borders in openbox for use as a PWA. |
8696
| NO_FULL | Do not autmatically fullscreen applications when using openbox. |
8797

8898
#### Optional run configurations
@@ -91,26 +101,65 @@ This container is based on [Docker Baseimage KasmVNC](https://github.com/linuxse
91101
| :----: | --- |
92102
| `--privileged` | Will start a Docker in Docker (DinD) setup inside the container to use docker in an isolated environment. For increased performance mount the Docker directory inside the container to the host IE `-v /home/user/docker-data:/var/lib/docker`. |
93103
| `-v /var/run/docker.sock:/var/run/docker.sock` | Mount in the host level Docker socket to either interact with it via CLI or use Docker enabled applications. |
94-
| `--device /dev/dri:/dev/dri` | Mount a GPU into the container, this can be used in conjunction with the `DRINODE` environment variable to leverage a host video card for GPU accelerated appplications. Only **Open Source** drivers are supported IE (Intel,AMDGPU,Radeon,ATI,Nouveau) |
104+
| `--device /dev/dri:/dev/dri` | Mount a GPU into the container, this can be used in conjunction with the `DRINODE` environment variable to leverage a host video card for GPU accelerated applications. Only **Open Source** drivers are supported IE (Intel,AMDGPU,Radeon,ATI,Nouveau) |
95105

96106
### Language Support - Internationalization
97107

98-
The environment variable `LC_ALL` can be used to start this image in a different language than English simply pass for example to launch the Desktop session in French `LC_ALL=fr_FR.UTF-8`. Some languages like Chinese, Japanese, or Korean will be missing fonts needed to render properly known as cjk fonts, but others may exist and not be installed. We only ensure fonts for Latin characters are present. Fonts can be installed with a mod on startup.
108+
The environment variable `LC_ALL` can be used to start this container in a different language than English simply pass for example to launch the Desktop session in French `LC_ALL=fr_FR.UTF-8`. Some languages like Chinese, Japanese, or Korean will be missing fonts needed to render properly known as cjk fonts, but others may exist and not be installed inside the container depending on what underlying distribution you are running. We only ensure fonts for Latin characters are present. Fonts can be installed with a mod on startup.
99109

100-
To install cjk fonts on startup as an example pass the environment variables:
110+
To install cjk fonts on startup as an example pass the environment variables (Alpine base):
101111

102112
```
103-
-e DOCKER_MODS=linuxserver/mods:universal-package-install
104-
-e INSTALL_PACKAGES=font-noto-cjk
105-
-e LC_ALL=zh_CN.UTF-8
113+
-e DOCKER_MODS=linuxserver/mods:universal-package-install
114+
-e INSTALL_PACKAGES=font-noto-cjk-e LC_ALL=zh_CN.UTF-8
106115
```
107116

108117
The web interface has the option for "IME Input Mode" in Settings which will allow non english characters to be used from a non en_US keyboard on the client. Once enabled it will perform the same as a local Linux installation set to your locale.
109118

119+
### DRI3 GPU Acceleration
120+
121+
For accelerated apps or games, render devices can be mounted into the container and leveraged by applications using:
122+
123+
`--device /dev/dri:/dev/dri`
124+
125+
This feature only supports **Open Source** GPU drivers:
126+
127+
| Driver | Description |
128+
| :----: | --- |
129+
| Intel | i965 and i915 drivers for Intel iGPU chipsets |
130+
| AMD | AMDGPU, Radeon, and ATI drivers for AMD dedicated or APU chipsets |
131+
| NVIDIA | nouveau2 drivers only, closed source NVIDIA drivers lack DRI3 support |
132+
133+
The `DRINODE` environment variable can be used to point to a specific GPU.
134+
Up to date information can be found [here](https://www.kasmweb.com/kasmvnc/docs/master/gpu_acceleration.html)
135+
136+
### Application management
137+
138+
#### PRoot Apps
139+
140+
If you run system native installations of software IE `sudo apt-get install filezilla` and then upgrade or destroy/re-create the container that software will be removed and the container will be at a clean state. For some users that will be acceptable and they can update their system packages as well using system native commands like `apt-get upgrade`. If you want Docker to handle upgrading the container and retain your applications and settings we have created [proot-apps](https://github.com/linuxserver/proot-apps) which allow portable applications to be installed to persistent storage in the user's `$HOME` directory and they will work in a confined Docker environment out of the box. These applications and their settings will persist upgrades of the base container and can be mounted into different flavors of KasmVNC based containers on the fly. This can be achieved from the command line with:
141+
142+
```
143+
proot-apps install filezilla
144+
```
145+
146+
PRoot Apps is included in all KasmVNC based containers, a list of linuxserver.io supported applications is located [HERE](https://github.com/linuxserver/proot-apps?tab=readme-ov-file#supported-apps).
147+
148+
#### Native Apps
149+
150+
It is possible to install extra packages during container start using [universal-package-install](https://github.com/linuxserver/docker-mods/tree/universal-package-install). It might increase starting time significantly. PRoot is preferred.
151+
152+
```yaml
153+
environment:
154+
- DOCKER_MODS=linuxserver/mods:universal-package-install
155+
- INSTALL_PACKAGES=libfuse2|git|gdb
156+
```
157+
110158
### Lossless mode
111159
112160
This container is capable of delivering a true lossless image at a high framerate to your web browser by changing the Stream Quality preset to "Lossless", more information [here](https://www.kasmweb.com/docs/latest/how_to/lossless.html#technical-background). In order to use this mode from a non localhost endpoint the HTTPS port on 3001 needs to be used. If using a reverse proxy to port 3000 specific headers will need to be set as outlined [here](https://github.com/linuxserver/docker-baseimage-kasmvnc#lossless).
113161
162+
114163
## Usage
115164
116165
To help you get started creating a container from this image you can either use docker-compose or the docker cli.
@@ -319,10 +368,10 @@ docker build \
319368
-t lscr.io/linuxserver/sqlitebrowser:latest .
320369
```
321370

322-
The ARM variants can be built on x86_64 hardware using `multiarch/qemu-user-static`
371+
The ARM variants can be built on x86_64 hardware and vice versa using `lscr.io/linuxserver/qemu-static`
323372

324373
```bash
325-
docker run --rm --privileged multiarch/qemu-user-static:register --reset
374+
docker run --rm --privileged lscr.io/linuxserver/qemu-static --reset
326375
```
327376

328377
Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64`.

readme-vars.yml

Lines changed: 6 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ opt_security_opt_param: true
3333
opt_security_opt_param_vars:
3434
- { run_var: "seccomp=unconfined", compose_var: "seccomp:unconfined", desc: "For Docker Engine only, many modern gui apps need this to function on older hosts as syscalls are unknown to Docker." }
3535

36+
# Kasm blurb settings
37+
kasm_blurb: true
38+
external_http_port: "3000"
39+
external_https_port: "3001"
40+
noto_fonts: "font-noto-cjk"
41+
3642
# application setup block
3743
app_setup_block_enabled: true
3844
app_setup_block: |
@@ -41,53 +47,6 @@ app_setup_block: |
4147
* http://yourhost:3000/
4248
* https://yourhost:3001/
4349
44-
### Options in all KasmVNC based GUI containers
45-
46-
This container is based on [Docker Baseimage KasmVNC](https://github.com/linuxserver/docker-baseimage-kasmvnc) which means there are additional environment variables and run configurations to enable or disable specific functionality.
47-
48-
#### Optional environment variables
49-
50-
| Variable | Description |
51-
| :----: | --- |
52-
| CUSTOM_PORT | Internal port the container listens on for http if it needs to be swapped from the default 3000. |
53-
| CUSTOM_HTTPS_PORT | Internal port the container listens on for https if it needs to be swapped from the default 3001. |
54-
| CUSTOM_USER | HTTP Basic auth username, abc is default. |
55-
| PASSWORD | HTTP Basic auth password, abc is default. If unset there will be no auth |
56-
| SUBFOLDER | Subfolder for the application if running a subfolder reverse proxy, need both slashes IE `/subfolder/` |
57-
| TITLE | The page title displayed on the web browser, default "KasmVNC Client". |
58-
| FM_HOME | This is the home directory (landing) for the file manager, default "/config". |
59-
| START_DOCKER | If set to false a container with privilege will not automatically start the DinD Docker setup. |
60-
| DRINODE | If mounting in /dev/dri for [DRI3 GPU Acceleration](https://www.kasmweb.com/kasmvnc/docs/master/gpu_acceleration.html) allows you to specify the device to use IE `/dev/dri/renderD128` |
61-
| LC_ALL | Set the Language for the container to run as IE `fr_FR.UTF-8` `ar_AE.UTF-8` |
62-
| NO_DECOR | If set the application will run without window borders for use as a PWA. |
63-
| NO_FULL | Do not autmatically fullscreen applications when using openbox. |
64-
65-
#### Optional run configurations
66-
67-
| Variable | Description |
68-
| :----: | --- |
69-
| `--privileged` | Will start a Docker in Docker (DinD) setup inside the container to use docker in an isolated environment. For increased performance mount the Docker directory inside the container to the host IE `-v /home/user/docker-data:/var/lib/docker`. |
70-
| `-v /var/run/docker.sock:/var/run/docker.sock` | Mount in the host level Docker socket to either interact with it via CLI or use Docker enabled applications. |
71-
| `--device /dev/dri:/dev/dri` | Mount a GPU into the container, this can be used in conjunction with the `DRINODE` environment variable to leverage a host video card for GPU accelerated appplications. Only **Open Source** drivers are supported IE (Intel,AMDGPU,Radeon,ATI,Nouveau) |
72-
73-
### Language Support - Internationalization
74-
75-
The environment variable `LC_ALL` can be used to start this image in a different language than English simply pass for example to launch the Desktop session in French `LC_ALL=fr_FR.UTF-8`. Some languages like Chinese, Japanese, or Korean will be missing fonts needed to render properly known as cjk fonts, but others may exist and not be installed. We only ensure fonts for Latin characters are present. Fonts can be installed with a mod on startup.
76-
77-
To install cjk fonts on startup as an example pass the environment variables:
78-
79-
```
80-
-e DOCKER_MODS=linuxserver/mods:universal-package-install
81-
-e INSTALL_PACKAGES=font-noto-cjk
82-
-e LC_ALL=zh_CN.UTF-8
83-
```
84-
85-
The web interface has the option for "IME Input Mode" in Settings which will allow non english characters to be used from a non en_US keyboard on the client. Once enabled it will perform the same as a local Linux installation set to your locale.
86-
87-
### Lossless mode
88-
89-
This container is capable of delivering a true lossless image at a high framerate to your web browser by changing the Stream Quality preset to "Lossless", more information [here](https://www.kasmweb.com/docs/latest/how_to/lossless.html#technical-background). In order to use this mode from a non localhost endpoint the HTTPS port on 3001 needs to be used. If using a reverse proxy to port 3000 specific headers will need to be set as outlined [here](https://github.com/linuxserver/docker-baseimage-kasmvnc#lossless).
90-
9150
# changelog
9251
changelogs:
9352
- { date: "23.05.24:", desc: "Rebase to Alpine 3.20." }

0 commit comments

Comments
 (0)