The purpose of these images is to provide a full featured web native Linux desktop experience for any Linux application or desktop environment. These images replace our old base images at Rdesktop Web for greatly increased performance, fidelity, and feature set. They ship with passwordless sudo to allow easy package installation, testing, and customization. By default they have no logic to mount out anything but the users home directory, meaning on image updates anything outside of /config will be lost.
These images contain the following services:
KasmVNC - The core technology for interacting with a containerized desktop from a web browser.
Kclient - NodeJS Iframe wrapper for KasmVNC providing audio and file access.
NGINX - Used to serve the mix of KasmVNC and Kclient with the appropriate headers and provide basic auth.
Docker - Can be used for interacting with a mounted in Docker socket or if the container is run in privileged mode will start a DinD setup.
PulseAudio - Sound subsystem used to capture audio from the active desktop session and send it to the browser via the Kclient helper application.
Authentication for these containers is included as a convenience and to keep in sync with the previous xrdp containers they replace. We use bash to substitute in settings user/password and some strings might break that. In general this authentication mechanism should be used to keep the kids out not the internet
If you are looking for a robust secure application gateway please check out SWAG.
All application settings are passed via environment variables:
Variable
Description
CUSTOM_PORT
Internal port the container listens on for http if it needs to be swapped from the default 3000.
CUSTOM_HTTPS_PORT
Internal port the container listens on for https if it needs to be swapped from the default 3001.
CUSTOM_USER
HTTP Basic auth username, abc is default.
PASSWORD
HTTP Basic auth password, abc is default. If unset there will be no auth
SUBFOLDER
Subfolder for the application if running a subfolder reverse proxy, need both slashes IE /subfolder/
TITLE
The page title displayed on the web browser, default "KasmVNC Client".
FM_HOME
This is the home directory (landing) for the file manager, default "/config".
START_DOCKER
If set to false a container with privilege will not automatically start the DinD Docker setup.
DRINODE
If mounting in /dev/dri for DRI3 GPU Acceleration allows you to specify the device to use
DISABLE_IPV6
If set to true or any value this will disable IPv6
Included in these base images is a simple Openbox DE and the accompanying logic needed to launch a single application. Lets look at the bare minimum needed to create an application container starting with a Dockerfile:
FROM ghcr.io/linuxserver/baseimage-kasmvnc:alpine318
+ baseimage-kasmvnc - LinuxServer.io
The purpose of these images is to provide a full featured web native Linux desktop experience for any Linux application or desktop environment. These images replace our old base images at Rdesktop Web for greatly increased performance, fidelity, and feature set. They ship with passwordless sudo to allow easy package installation, testing, and customization. By default they have no logic to mount out anything but the users home directory, meaning on image updates anything outside of /config will be lost.
These images contain the following services:
KasmVNC - The core technology for interacting with a containerized desktop from a web browser.
Kclient - NodeJS Iframe wrapper for KasmVNC providing audio and file access.
NGINX - Used to serve the mix of KasmVNC and Kclient with the appropriate headers and provide basic auth.
Docker - Can be used for interacting with a mounted in Docker socket or if the container is run in privileged mode will start a DinD setup.
PulseAudio - Sound subsystem used to capture audio from the active desktop session and send it to the browser via the Kclient helper application.
Authentication for these containers is included as a convenience and to keep in sync with the previous xrdp containers they replace. We use bash to substitute in settings user/password and some strings might break that. In general this authentication mechanism should be used to keep the kids out not the internet
If you are looking for a robust secure application gateway please check out SWAG.
All application settings are passed via environment variables:
Variable
Description
CUSTOM_PORT
Internal port the container listens on for http if it needs to be swapped from the default 3000.
CUSTOM_HTTPS_PORT
Internal port the container listens on for https if it needs to be swapped from the default 3001.
CUSTOM_USER
HTTP Basic auth username, abc is default.
PASSWORD
HTTP Basic auth password, abc is default. If unset there will be no auth
SUBFOLDER
Subfolder for the application if running a subfolder reverse proxy, need both slashes IE /subfolder/
TITLE
The page title displayed on the web browser, default "KasmVNC Client".
FM_HOME
This is the home directory (landing) for the file manager, default "/config".
START_DOCKER
If set to false a container with privilege will not automatically start the DinD Docker setup.
DRINODE
If mounting in /dev/dri for DRI3 GPU Acceleration allows you to specify the device to use
DISABLE_IPV6
If set to true or any value this will disable IPv6
Included in these base images is a simple Openbox DE and the accompanying logic needed to launch a single application. Lets look at the bare minimum needed to create an application container starting with a Dockerfile:
FROM ghcr.io/linuxserver/baseimage-kasmvnc:alpine318
RUN apk add --no-cache firefox
COPY /root /
And we can define the application to start using:
mkdir -p root/defaults
@@ -28,4 +28,4 @@
If included in the build logic it will be launched in place of Openbox. Examples for this kind of configuration can be found in our Webtop repository
Included in these base images are binary blobs /kasmbins and a special init process /kasminit to maintain compatibility with Kasm Workspaces, If using this base image as reccomended with the startwm.sh or autostart entrypoints. They will be able to be used on that platform without issue.
These base images include an installation of Docker that can be used in two ways. The simple method is simply leveraging the Docker/Docker Compose cli bins to manage the host level Docker installation by mounting in -v /var/run/docker.sock:/var/run/docker.sock.
The base images can also run an isolated in container DinD setup simply by passing --privileged to the container when launching. If for any reason the application needs privilege but Docker is not wanted the -e START_DOCKER=false can be set at runtime or in the Dockerfile. In container Docker (DinD) will most likely use the fuse-overlayfs driver for storage which is not as fast as native overlay2. To increase perormance the /var/lib/docker/ directory in the container can be mounted out to a Linux host and will use overlay2. Keep in mind Docker runs as root and the contents of this directory will not respect the PUID/PGID environment variables available on all LinuxServer.io containers.
When using this image in tandem with a supported video card, compositing will function albeit with a performance hit when syncing the frames with pixmaps for the applications using it. This can greatly increase app compatibility if the application in question requires compositing, but requires a real GPU to be mounted into the container. By default we disable compositing at a DE level for performance reasons on our downstream images, but it can be enabled by the user and programs using compositing will still function even if the DE has it disabled in its settings. When building desktop images be sure you understand that with it enabled by default only users that have a compatible GPU mounted in will be able to use your image.
These images support all the native KasmVNC encoding methods including a true 24 bit RGB lossless mode using the Quite OK Image Format. This mode will use all the bandwidth you give it so just keep that in mind for remote sessions. This mode also might require special configuration depending on how you are accessing the container. Lossless will only work over http (default port 3000) on localhost, when accessing remotely or even over a local network you need to use https (default port 3001) to support SharedArrayBuffer. This is needed to leverage a fast memory pipeline in the browser during the threaded WebAssembly based decoding. This can be enabled in the sidebar under settings>stream quality>lossless.
If putting this container behind a proxy of some kind some headers will need to be set to again support SharedArrayBuffers here is a default NGINX configuration format:
The following line is only in this repo for loop testing: - { date: "01.01.50:", desc: "I am the release message for this internal repo." }
Last update: October 7, 2023 Created: March 9, 2019
\ No newline at end of file
diff --git a/sitemap.xml.gz b/sitemap.xml.gz
index ca7406692359161836b166ed79adc5c7b6d557b6..0f26e9b841959b32291035d5f46ffe395ddd22b8 100644
GIT binary patch
delta 15
WcmZ3;yO5VnzMF%iYRN{n*=ztK@&uCr
delta 15
WcmZ3;yO5VnzMF%isAD7BY&HNRHUw_~