4.0 KiB
4.0 KiB
Running with sudo commands
https://kasm.com/docs/latest/how_to/running_as_root.html
recommended:
{
"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:
{
"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
- The
smb-passoption needs to be obscured value produced via the Rclone Obscure utility. Install the latest version of rclone on a separate system and utilize therlone obscureutility 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) | <br>{ "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" }}<br> |
| 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/