Skip to content

Instantly share code, notes, and snippets.

@fxgurv
Last active June 10, 2024 10:31
Show Gist options
  • Save fxgurv/ac9436a81fd9d22645d4ec907e566850 to your computer and use it in GitHub Desktop.
Save fxgurv/ac9436a81fd9d22645d4ec907e566850 to your computer and use it in GitHub Desktop.
@fxgurv ➜ ~ $ sudo docker run --rm -it --shm-size=512m -p 6901:6901 -e VNC_PW=password kasmweb/desktop:1.14.0
Unable to find image 'kasmweb/desktop:1.14.0' locally
1.14.0: Pulling from kasmweb/desktop
4cf7515fa0db: Pull complete
4f4fb700ef54: Pull complete
e8b4f1e9a030: Pull complete
dcb0dc3232ab: Pull complete
fa5d4ae806d8: Pull complete
d7c2842a63aa: Pull complete
f1b64b6aa045: Pull complete
e6fee6c56d0b: Pull complete
dbdd6d9dfb3f: Pull complete
9e10664d52ed: Pull complete
0b6f3777fd25: Pull complete
bd5acc0d257a: Pull complete
02a62538edf4: Pull complete
24cd891beb69: Pull complete
4cce8bb38226: Pull complete
Digest: sha256:2e40ca71c5b71faf633f71df04ad61ba69a3b5ea83cf43085ec335d80fc1cd85
Status: Downloaded newer image for kasmweb/desktop:1.14.0
+ DEFAULT_PROFILE_HOME=/home/kasm-default-profile
+ PROFILE_SYNC_DIR=/kasm_profile_sync
+ '[' -f /home/kasm-user/.bashrc ']'
+ echo 'Profile Sync Directory Does Not Exist. No Sync will occur'
Profile Sync Directory Does Not Exist. No Sync will occur
+ copy_default_profile_to_home
+ echo 'Copying default profile to home directory'
Copying default profile to home directory
+ cp -rp /home/kasm-default-profile/. /home/kasm-user/
+ ls -la /home/kasm-user
total 36
drwxrwxrwx 1 kasm-user root 4096 Sep 14 2023 .
drwxr-xr-x 1 root root 4096 Sep 9 2023 ..
-rw-rw-rw- 1 kasm-user kasm-user 43 Sep 9 2023 .bashrc
drwxrwxrwx 3 kasm-user kasm-user 4096 Sep 14 2023 .cache
drwxrwxrwx 3 kasm-user kasm-user 4096 Sep 9 2023 .config
drwxrwxrwx 2 kasm-user kasm-user 4096 Sep 14 2023 Desktop
drwxrwxrwx 3 kasm-user kasm-user 4096 Sep 14 2023 .mozilla
drwxrwxrwx 3 kasm-user kasm-user 4096 Sep 9 2023 .pki
+ verify_profile_config
+ echo 'Verifying Uploads/Downloads Configurations'
Verifying Uploads/Downloads Configurations
+ mkdir -p /home/kasm-user/Uploads
+ '[' -d /home/kasm-user/Desktop/Uploads ']'
+ echo 'Creating Uploads Desktop Symlink'
Creating Uploads Desktop Symlink
+ ln -sf /home/kasm-user/Uploads /home/kasm-user/Desktop/Uploads
+ mkdir -p /home/kasm-user/Downloads
+ '[' -d /home/kasm-user/Desktop/Downloads ']'
+ echo 'Creating Download Desktop Symlink'
Creating Download Desktop Symlink
+ ln -sf /home/kasm-user/Downloads /home/kasm-user/Desktop/Downloads
+ '[' -d /usr/share/kasmvnc/Downloads/Downloads ']'
+ echo 'Creating Downloads RX Symlink'
Creating Downloads RX Symlink
+ ln -sf /home/kasm-user/Downloads /usr/share/kasmvnc/www/Downloads/Downloads
+ ls -la /home/kasm-user/Desktop
total 32
drwxrwxrwx 2 kasm-user kasm-user 4096 Jun 10 10:22 .
drwxrwxrwx 1 kasm-user root 4096 Jun 10 10:22 ..
lrwxrwxrwx 1 kasm-user kasm-user 25 Jun 10 10:22 Downloads -> /home/kasm-user/Downloads
-rwxrwxrwx 1 kasm-user kasm-user 9230 Sep 14 2023 firefox.desktop
-rwxrwxrwx 1 kasm-user kasm-user 8494 Sep 14 2023 google-chrome.desktop
lrwxrwxrwx 1 kasm-user kasm-user 23 Jun 10 10:22 Uploads -> /home/kasm-user/Uploads
+ rm -rf /home/kasm-user/.config/pulse
+ echo -e '\n\n------------------ EXECUTE COMMAND ------------------'
------------------ EXECUTE COMMAND ------------------
+ echo 'Executing command: '\''/dockerstartup/vnc_startup.sh' /dockerstartup/kasm_startup.sh '--wait'\'''
Executing command: '/dockerstartup/vnc_startup.sh /dockerstartup/kasm_startup.sh --wait'
+ exec /dockerstartup/vnc_startup.sh /dockerstartup/kasm_startup.sh --wait
Generating a RSA private key
..............................+++++
........................................+++++
writing new private key to '/home/kasm-user/.vnc/self.pem'
-----
Creating default config /home/kasm-user/.vnc/kasmvnc.yaml
xauth: file /home/kasm-user/.Xauthority does not exist
New '6c752f3c82c8:1 (kasm-user)' desktop is 6c752f3c82c8:1
Users configured:
kasm_user (can use keyboard and mouse, add/remove users)
kasm_viewer (can only view)
Log file is /home/kasm-user/.vnc/6c752f3c82c8:1.log
Starting applications specified in /home/kasm-user/.vnc/xstartup
Paste this url in your browser:
https://172.17.0.2:6901
Disabling X Screensaver Functionality
server does not have extension for -dpms option
Keyboard Control:
auto repeat: on key click percent: 0 LED mask: 00000000
XKB indicators:
00: Caps Lock: off 01: Num Lock: off 02: Scroll Lock: off
03: Compose: off 04: Kana: off 05: Sleep: off
06: Suspend: off 07: Mute: off 08: Misc: off
09: Mail: off 10: Charging: off 11: Shift Lock: off
12: Group 2: off 13: Mouse Keys: off
auto repeat delay: 660 repeat rate: 25
auto repeating keys: 00ffffffdffffbbf
fadfffefffedffff
9fffffffffffffff
fff7ffffffffffff
bell percent: 50 bell pitch: 400 bell duration: 100
Pointer Control:
acceleration: 2/1 threshold: 4
Screen Saver:
prefer blanking: yes allow exposures: yes
timeout: 0 cycle: 600
Colors:
default colormap: 0x20 BlackPixel: 0x0 WhitePixel: 0xffffff
Font Path:
/usr/share/fonts/X11//misc,/usr/share/fonts/X11//Type1,built-ins
DPMS (Energy Star):
Server does not have the DPMS Extension
------------------ Xfce4 window manager startup------------------
Starting XFCE
Starting audio websocket server
Starting audio server
Starting Pulse
/usr/bin/startxfce4: X server already running on display :1
Starting audio service
------------------ Started Audio Out ----------------------------
Kasm Audio Out PID: 106
Starting audio input server
Starting upload server
Starting gamepad server
Starting printer service
------------------ KasmVNC environment started ------------------
Kasm User () started container id 6c752f3c82c8 with local IP address 172.17.0.2
2024-06-10 10:22:22,291 [INFO] vncext: VNC extension running!
2024-06-10 10:22:22,291 [DEBUG] Config: set immutable AllowOverride
2024-06-10 10:22:22,291 [INFO] vncext: Listening to unix relay socket printer
2024-06-10 10:22:22,292 [INFO] vncext: Listening for websocket connections on 0.0.0.0 interface(s), port 6901
2024-06-10 10:22:22,292 [DEBUG] VNCServerST: creating single-threaded server 6c752f3c82c8:1 (kasm-user)
2024-06-10 10:22:22,292 [INFO] VNCServerST: CPU capability: SSE2 yes, AVX512f no
2024-06-10 10:22:22,292 [INFO] vncext: created VNC server for screen 0
2024-06-10 10:22:22,372 [DEBUG] WebUdp: UDP listening on port 6901
2024-06-10 10:22:24,300 [INFO] Input: Mouse horizonatl scroll factor: 50.000000
2024-06-10 10:22:24,300 [INFO] Input: Mouse vertical scroll factor: 50.000000
Listening for incomming MPEG-TS Stream on https://127.0.0.1:8081/<secret>
Awaiting WebSocket connections on wss://127.0.0.1:4901/
INFO:KasmPrintingService:Watching for PDF documents at /home/kasm-user/PDF
ERROR:KasmGamepadServer:Failed to connect input (/dev/input/event0) : [Errno 2] No such file or directory: '/dev/input/event0'
ERROR:KasmGamepadServer:Failed to connect input (/dev/input/event1) : [Errno 2] No such file or directory: '/dev/input/event1'
ERROR:KasmGamepadServer:Failed to connect input (/dev/input/event2) : [Errno 2] No such file or directory: '/dev/input/event2'
ERROR:KasmGamepadServer:Failed to connect input (/dev/input/event3) : [Errno 2] No such file or directory: '/dev/input/event3'
Failed to unload module: Module module-pipe-source not loaded
* Serving Flask app 'kasm_upload_server'
* Debug mode: off
2024-06-10 10:22:28,916 [DEBUG] Selection: Selection owner change for _DBUS_SESSION_BUS_SELECTION_kasm-user_7e240a53db8846ae9ea2c26b29133e7f
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on all addresses (0.0.0.0)
* Running on https://127.0.0.1:4902
* Running on https://172.17.0.2:4902
Press CTRL+C to quit
_IceTransmkdir: ERROR: euid != 0,directory /tmp/.ICE-unix will not be created.
gpg-agent[166]: WARNING: "--write-env-file" is an obsolete option - it has no effect
gpg-agent[166]: directory '/home/kasm-user/.gnupg' created
gpg-agent[166]: directory '/home/kasm-user/.gnupg/private-keys-v1.d' created
gpg-agent[167]: gpg-agent (GnuPG) 2.2.19 started
(xfce4-session:83): xfce4-session-WARNING **: 10:22:30.927: gpg-agent returned no PID in the variables
(xfce4-session:83): xfce4-session-WARNING **: 10:22:30.930: xfsm_manager_load_session: Something wrong with /home/kasm-user/.cache/sessions/xfce4-session-6c752f3c82c8:1, Does it exist? Permissions issue?
(xfsettingsd:172): libupower-glib-WARNING **: 10:22:31.670: Couldn't connect to proxy: Could not connect: No such file or directory
(xfsettingsd:172): libupower-glib-CRITICAL **: 10:22:31.670: up_client_get_lid_is_closed: assertion 'UP_IS_CLIENT (client)' failed
(xfsettingsd:172): GLib-GObject-WARNING **: 10:22:31.670: invalid (NULL) pointer instance
(xfsettingsd:172): GLib-GObject-CRITICAL **: 10:22:31.670: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
2024-06-10 10:22:31,376 [DEBUG] Selection: Selection owner change for WM_S0
2024-06-10 10:22:31,552 [DEBUG] Selection: Selection owner change for XFWM4_COMPOSITING_MANAGER
2024-06-10 10:22:31,667 [DEBUG] Selection: Selection owner change for _XSETTINGS_S0
2024-06-10 10:22:31,763 [DEBUG] Selection: Selection owner change for CLIPBOARD_MANAGER
2024-06-10 10:22:32,185 [DEBUG] Selection: Selection owner change for _NET_DESKTOP_LAYOUT_S0
(wrapper-2.0:193): Gtk-WARNING **: 10:22:32.325: gtk_widget_size_allocate(): attempt to allocate widget with width -1 and height 28
(wrapper-2.0:193): Gtk-WARNING **: 10:22:32.326: Negative content width -1 (allocation 1, extents 1x1) while allocating gadget (node border, owner GtkFrame)
** (xiccd:200): CRITICAL **: 10:22:32.429: Failed to connect to colord: Could not connect: No such file or directory
(nm-applet:197): nm-applet-WARNING **: 10:22:32.836: Error connecting to system D-Bus: Could not connect: No such file or directory
(nm-applet:197): nm-applet-WARNING **: 10:22:32.837: Could not connect: No such file or directory
(nm-applet:197): libnm-CRITICAL **: 10:22:32.839: ((libnm/nm-client.c:3905)): assertion '<dropped>' failed
(nm-applet:197): libnm-CRITICAL **: 10:22:32.840: ((libnm/nm-client.c:3859)): assertion '<dropped>' failed
(nm-applet:197): libnm-CRITICAL **: 10:22:32.840: ((libnm/nm-client.c:3937)): assertion '<dropped>' failed
(nm-applet:197): libnm-CRITICAL **: 10:22:32.841: ((libnm/nm-client.c:3986)): assertion '<dropped>' failed
(nm-applet:197): libnm-CRITICAL **: 10:22:32.841: ((libnm/nm-client.c:4026)): assertion '<dropped>' failed
(nm-applet:197): libnm-CRITICAL **: 10:22:32.841: ((libnm/nm-client.c:4042)): assertion '<dropped>' failed
(nm-applet:197): libnm-CRITICAL **: 10:22:32.841: ((libnm/nm-client.c:4080)): assertion '<dropped>' failed
(nm-applet:197): libnm-CRITICAL **: 10:22:32.841: ((libnm/nm-client.c:4598)): assertion '<dropped>' failed
(nm-applet:197): libnm-CRITICAL **: 10:22:32.841: ((libnm/nm-client.c:4598)): assertion '<dropped>' failed
Stream Connected: ::ffff:127.0.0.1:33796
2024-06-10 10:22:32,287 [DEBUG] Selection: Selection owner change for XFDESKTOP_SELECTION_0
2024-06-10 10:22:32,287 [DEBUG] Selection: Selection owner change for _NET_DESKTOP_MANAGER_S0
2024-06-10 10:22:32,314 [DEBUG] Selection: Selection owner change for _NET_SYSTEM_TRAY_S0
system-config-printer-applet: failed to connect to system D-Bus
(xfdesktop:190): GVFS-RemoteVolumeMonitor-WARNING **: 10:22:36.001: remote volume monitor with dbus name org.gtk.vfs.UDisks2VolumeMonitor is not supported
** (xfdesktop:190): WARNING **: 10:22:36.082: Failed to get system bus: Could not connect: No such file or directory
2024-06-10 10:23:02,414 [INFO] websocket 0: got client connection from 172.17.0.1
2024-06-10 10:23:02,418 [DEBUG] websocket 0: non-SSL connection disallowed
2024-06-10 10:23:02,418 [DEBUG] websocket 0: No connection after handshake
2024-06-10 10:23:02,418 [DEBUG] websocket 0: handler exit
2024-06-10 10:23:02,424 [INFO] websocket 1: got client connection from 172.17.0.1
2024-06-10 10:23:02,431 [DEBUG] websocket 1: non-SSL connection disallowed
2024-06-10 10:23:02,431 [DEBUG] websocket 1: No connection after handshake
2024-06-10 10:23:02,431 [DEBUG] websocket 1: handler exit
2024-06-10 10:23:02,437 [INFO] websocket 2: got client connection from 172.17.0.1
2024-06-10 10:23:02,441 [DEBUG] websocket 2: non-SSL connection disallowed
2024-06-10 10:23:02,441 [DEBUG] websocket 2: No connection after handshake
2024-06-10 10:23:02,441 [DEBUG] websocket 2: handler exit
2024-06-10 10:23:02,447 [INFO] websocket 3: got client connection from 172.17.0.1
2024-06-10 10:23:02,451 [DEBUG] websocket 3: non-SSL connection disallowed
2024-06-10 10:23:02,451 [DEBUG] websocket 3: No connection after handshake
2024-06-10 10:23:02,451 [DEBUG] websocket 3: handler exit
2024-06-10 10:23:13,761 [INFO] websocket 4: got client connection from 172.17.0.1
2024-06-10 10:23:13,767 [DEBUG] websocket 4: non-SSL connection disallowed
2024-06-10 10:23:13,767 [DEBUG] websocket 4: No connection after handshake
2024-06-10 10:23:13,767 [DEBUG] websocket 4: handler exit
2024-06-10 10:23:13,773 [INFO] websocket 5: got client connection from 172.17.0.1
2024-06-10 10:23:13,778 [DEBUG] websocket 5: non-SSL connection disallowed
2024-06-10 10:23:13,778 [DEBUG] websocket 5: No connection after handshake
2024-06-10 10:23:13,778 [DEBUG] websocket 5: handler exit
2024-06-10 10:23:13,784 [INFO] websocket 6: got client connection from 172.17.0.1
2024-06-10 10:23:13,789 [DEBUG] websocket 6: non-SSL connection disallowed
2024-06-10 10:23:13,789 [DEBUG] websocket 6: No connection after handshake
2024-06-10 10:23:13,789 [DEBUG] websocket 6: handler exit
2024-06-10 10:23:13,798 [INFO] websocket 7: got client connection from 172.17.0.1
2024-06-10 10:23:13,803 [DEBUG] websocket 7: non-SSL connection disallowed
2024-06-10 10:23:13,803 [DEBUG] websocket 7: No connection after handshake
2024-06-10 10:23:13,803 [DEBUG] websocket 7: handler exit
2024-06-10 10:23:15,739 [INFO] websocket 8: got client connection from 172.17.0.1
2024-06-10 10:23:15,743 [DEBUG] websocket 8: non-SSL connection disallowed
2024-06-10 10:23:15,743 [DEBUG] websocket 8: No connection after handshake
2024-06-10 10:23:15,743 [DEBUG] websocket 8: handler exit
2024-06-10 10:23:15,753 [INFO] websocket 9: got client connection from 172.17.0.1
2024-06-10 10:23:15,757 [DEBUG] websocket 9: non-SSL connection disallowed
2024-06-10 10:23:15,757 [DEBUG] websocket 9: No connection after handshake
2024-06-10 10:23:15,757 [DEBUG] websocket 9: handler exit
2024-06-10 10:23:15,763 [INFO] websocket 10: got client connection from 172.17.0.1
2024-06-10 10:23:15,767 [DEBUG] websocket 10: non-SSL connection disallowed
2024-06-10 10:23:15,767 [DEBUG] websocket 10: No connection after handshake
2024-06-10 10:23:15,767 [DEBUG] websocket 10: handler exit
2024-06-10 10:23:15,773 [INFO] websocket 11: got client connection from 172.17.0.1
2024-06-10 10:23:15,779 [DEBUG] websocket 11: non-SSL connection disallowed
2024-06-10 10:23:15,779 [DEBUG] websocket 11: No connection after handshake
2024-06-10 10:23:15,779 [DEBUG] websocket 11: handler exit
2024-06-10 10:23:16,637 [INFO] websocket 12: got client connection from 172.17.0.1
2024-06-10 10:23:16,641 [DEBUG] websocket 12: non-SSL connection disallowed
2024-06-10 10:23:16,641 [DEBUG] websocket 12: No connection after handshake
2024-06-10 10:23:16,641 [DEBUG] websocket 12: handler exit
2024-06-10 10:23:16,647 [INFO] websocket 13: got client connection from 172.17.0.1
2024-06-10 10:23:16,652 [DEBUG] websocket 13: non-SSL connection disallowed
2024-06-10 10:23:16,652 [DEBUG] websocket 13: No connection after handshake
2024-06-10 10:23:16,652 [DEBUG] websocket 13: handler exit
2024-06-10 10:23:16,658 [INFO] websocket 14: got client connection from 172.17.0.1
2024-06-10 10:23:16,662 [DEBUG] websocket 14: non-SSL connection disallowed
2024-06-10 10:23:16,662 [DEBUG] websocket 14: No connection after handshake
2024-06-10 10:23:16,662 [DEBUG] websocket 14: handler exit
2024-06-10 10:23:16,669 [INFO] websocket 15: got client connection from 172.17.0.1
2024-06-10 10:23:16,673 [DEBUG] websocket 15: non-SSL connection disallowed
2024-06-10 10:23:16,673 [DEBUG] websocket 15: No connection after handshake
2024-06-10 10:23:16,673 [DEBUG] websocket 15: handler exit
2024-06-10 10:25:54,353 [INFO] websocket 16: got client connection from 172.17.0.1
2024-06-10 10:25:54,358 [DEBUG] websocket 16: non-SSL connection disallowed
2024-06-10 10:25:54,358 [DEBUG] websocket 16: No connection after handshake
2024-06-10 10:25:54,359 [DEBUG] websocket 16: handler exit
2024-06-10 10:25:54,373 [INFO] websocket 17: got client connection from 172.17.0.1
2024-06-10 10:25:54,382 [DEBUG] websocket 17: non-SSL connection disallowed
2024-06-10 10:25:54,382 [DEBUG] websocket 17: No connection after handshake
2024-06-10 10:25:54,382 [DEBUG] websocket 17: handler exit
2024-06-10 10:25:54,389 [INFO] websocket 18: got client connection from 172.17.0.1
2024-06-10 10:25:54,394 [DEBUG] websocket 18: non-SSL connection disallowed
2024-06-10 10:25:54,394 [DEBUG] websocket 18: No connection after handshake
2024-06-10 10:25:54,394 [DEBUG] websocket 18: handler exit
2024-06-10 10:25:54,402 [INFO] websocket 19: got client connection from 172.17.0.1
2024-06-10 10:25:54,407 [DEBUG] websocket 19: non-SSL connection disallowed
2024-06-10 10:25:54,407 [DEBUG] websocket 19: No connection after handshake
2024-06-10 10:25:54,407 [DEBUG] websocket 19: handler exit
2024-06-10 10:30:45,922 [INFO] websocket 20: got client connection from 172.17.0.1
2024-06-10 10:30:45,927 [DEBUG] websocket 20: non-SSL connection disallowed
2024-06-10 10:30:45,927 [DEBUG] websocket 20: No connection after handshake
2024-06-10 10:30:45,927 [DEBUG] websocket 20: handler exit
2024-06-10 10:30:45,935 [INFO] websocket 21: got client connection from 172.17.0.1
2024-06-10 10:30:45,943 [DEBUG] websocket 21: non-SSL connection disallowed
2024-06-10 10:30:45,944 [DEBUG] websocket 21: No connection after handshake
2024-06-10 10:30:45,944 [DEBUG] websocket 21: handler exit
2024-06-10 10:30:45,954 [INFO] websocket 22: got client connection from 172.17.0.1
2024-06-10 10:30:45,962 [DEBUG] websocket 22: non-SSL connection disallowed
2024-06-10 10:30:45,962 [DEBUG] websocket 22: No connection after handshake
2024-06-10 10:30:45,962 [DEBUG] websocket 22: handler exit
2024-06-10 10:30:45,970 [INFO] websocket 23: got client connection from 172.17.0.1
2024-06-10 10:30:45,979 [DEBUG] websocket 23: non-SSL connection disallowed
2024-06-10 10:30:45,979 [DEBUG] websocket 23: No connection after handshake
2024-06-10 10:30:45,979 [DEBUG] websocket 23: handler exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment