From fb8ede46b5c42b6506d3fc2c01935062b2b88e59 Mon Sep 17 00:00:00 2001 From: DanielF Date: Tue, 21 Apr 2026 22:23:02 +0200 Subject: [PATCH] vault backup: 2026-04-21 22:23:02 --- 01 - Wiki/ITSetup/Kasm.md | 47 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 01 - Wiki/ITSetup/Kasm.md diff --git a/01 - Wiki/ITSetup/Kasm.md b/01 - Wiki/ITSetup/Kasm.md new file mode 100644 index 0000000..518117c --- /dev/null +++ b/01 - Wiki/ITSetup/Kasm.md @@ -0,0 +1,47 @@ +## Running with sudo commands +https://kasm.com/docs/latest/how_to/running_as_root.html + +recommended: +``` json +{ + "first_launch":{ + "user":"root", + "cmd":"bash -c '/usr/bin/desktop_ready && apt-get update && apt-get install -y sudo && echo \"kasm-user ALL=(ALL) NOPASSWD: /usr/bin/apt-get, /bin/systemctl\" >> /etc/sudoers'" + } +} +``` + +all access: +``` json +{ + "first_launch":{ + "user":"root", + "cmd":"bash -c '/usr/bin/desktop_ready && apt-get update && apt-get install -y sudo && echo \"kasm-user ALL=(ALL) NOPASSWD: ALL\" >> /etc/sudoers'" + } +} +``` + +# setting up Storage +setup rclone +https://rclone.org/commands/rclone_obscure/ + +https://docs.kasm.com/docs/latest/guide/storage_providers/custom + +- **SMB/CIFS Example** + + - More info on the SMB parameters can be found in the [Rclone SMB documentation](https://rclone.org/smb/) + - The `smb-pass` option needs to be obscured value produced via the [Rclone Obscure](https://rclone.org/commands/rclone_obscure/) utility. Install the latest version of rclone on a separate system and utilize the `rlone obscure` utility to generate the obscured password to use in the configuration. + +| Name | `Custom Provider` | +| --------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| Storage Provider Type | `Custom` | +| Enabled | `checked` | +| Default Target | `/custom` | +| Volume Config (SMB Example) | ```
{ "driver": "rclone", "driver_opts": { "type": "smb", "path": "optional/share/path", "smb-host": "192.168.1.2", "smb-user": "username", "smb-pass": "--obscured-pass-with-rclone-obscure--", "smb-domain": "WORKGROUP", "uid": "1000", "gid": "1000", "allow_other": "true" }}
``` | +| Mount Config | {} | + +>[!Note] +Many of the storage provider examples include default storage driver options used by rclone. These have been observed to work well with Kasm in its default configuration, but may be adjusted by adminstrators as needed. Please note, the available options often vary based on provider plugin (e.g Gdrive vs OneDrive) +>The Rclone Docker Plugin is installed by default as part the standard Workspace install. +>ore information about rclone driver options may be found at [https://rclone.org/docker/](https://rclone.org/docker/) +