kasmtech / KasmVNC

Modern VNC Server and client, web based and secure

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use alpine install package?

tony1016 opened this issue · comments

Describe the bug
I use tar to extract item to /usr/ dir,and run xvncserver,it logs lots of dependency problem.I fix it one by one ,even sudo cp -r /usr/local/bin/KasmVNC /usr/share/perl5/vendor_perl/ and finally I got

syntax error at /usr/share/perl5/vendor_perl/KasmVNC/Utils.pm line 50, near ") {"
Execution of /usr/share/perl5/vendor_perl/KasmVNC/Utils.pm aborted due to compilation errors.
Compilation failed in require at /usr/local/bin/KasmVNC/Config.pm line 9.
BEGIN failed--compilation aborted at /usr/local/bin/KasmVNC/Config.pm line 9.
Compilation failed in require at /usr/share/perl5/core_perl/deprecate.pm line 8.
Compilation failed in require at /usr/share/perl5/core_perl/if.pm line 15.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/Switch.pm line 8.
Compilation failed in require at /usr/local/bin/vncserver line 36.
BEGIN failed--compilation aborted at /usr/local/bin/vncserver line 36.

System Description
Provide the output of

NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.18.3
PRETTY_NAME="Alpine Linux v3.18"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"

Linux RainYun-xleeYq5e 6.1.51-0-virt #1-Alpine SMP PREEMPT_DYNAMIC Mon, 04 Sep 2023 08:04:05 +0000 x86_64 Linux

KasmVNC Details
kasmvnc.alpine_318_x86_64.tgz

Installation Details

syntax error at /usr/share/perl5/vendor_perl/KasmVNC/Utils.pm line 50, near ") {"
Execution of /usr/share/perl5/vendor_perl/KasmVNC/Utils.pm aborted due to compilation errors.
Compilation failed in require at /usr/local/bin/KasmVNC/Config.pm line 9.
BEGIN failed--compilation aborted at /usr/local/bin/KasmVNC/Config.pm line 9.
Compilation failed in require at /usr/share/perl5/core_perl/deprecate.pm line 8.
Compilation failed in require at /usr/share/perl5/core_perl/if.pm line 15.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/Switch.pm line 8.
Compilation failed in require at /usr/local/bin/vncserver line 36.
BEGIN failed--compilation aborted at /usr/local/bin/vncserver line 36.
···

**Additional context**
Add any other context about the problem here.

OK,I made some progress.I set environment using export PERL5LIB=/usr/local/bin,and create certs,finally I got

2023-09-26 13:48:50,947 [DEBUG] websocket 7: using SSL socket
2023-09-26 13:48:50,947 [DEBUG] websocket 7: Read error during handshake: Invalid argument
2023-09-26 13:48:50,947 [DEBUG] websocket 7: No connection after handshake
2023-09-26 13:48:50,948 [DEBUG] websocket 7: handler exit

Apologies, our alpine support is not up to par. We added an Alpine option for KasmVNC largely to support Alpine based docker images.

See our alpine docker image to see how we implement.
https://github.com/kasmtech/workspaces-core-images/blob/develop/dockerfile-kasm-core-alpine

More specifically see the script that installs KasmVNC, there are two if blocks for alpine, the one at the end installs deps.
https://github.com/kasmtech/workspaces-core-images/blob/develop/src/ubuntu/install/kasm_vnc/install_kasm_vnc.sh

As for your current issue. Double check the dependencies based on the links provided. Given it runs, that seems unlikely, but you could have an incompatible version of a dependency.

I would try our alpine container directly and see if you can run and connect to it.

Here is the core Alpine image https://hub.docker.com/repository/docker/kasmweb/core-alpine-318/general
sudo docker run --rm -it --shm-size=512m -p 6901:6901 -e VNC_PW=password kasmweb/core-alpine-318:1.14.0

Then connect over https on port 6901, username kasm_user, password is password but you can change the pw in the command above.