Use libjpeg-turbo in KasmVNC

This commit is contained in:
Dmitry Maksyoma 2021-09-02 23:00:46 +12:00
parent a7da58b278
commit b1dc0c81d8
2 changed files with 14 additions and 2 deletions

View File

@ -45,7 +45,7 @@ ENV DISPLAY=:1 \
VNC_RESOLUTION=1280x1024 \
VNC_PW=vncpassword \
VNC_VIEW_ONLY_PW=vncviewonlypassword \
LD_LIBRARY_PATH=/usr/local/lib/ \
LD_LIBRARY_PATH=/opt/libjpeg-turbo/lib64/:/usr/local/lib/ \
OMP_WAIT_POLICY=PASSIVE \
SHELL=/bin/bash \
START_XFCE4=$START_XFCE4 \

View File

@ -1,6 +1,14 @@
#!/usr/bin/env bash
set -e
install_libjpeg_turbo() {
local libjpeg_deb=libjpeg-turbo.deb
wget 'https://kasmweb-build-artifacts.s3.amazonaws.com/kasmvnc/dbc376940f971d62451c219f3a354bf6639e7595/output/bionic/libjpeg-turbo_2.1.2_amd64.deb' -O "$libjpeg_deb"
apt-get install -y "./$libjpeg_deb"
rm "$libjpeg_deb"
}
echo "Install KasmVNC server"
cd /tmp
@ -10,7 +18,7 @@ then
elif [ "${DISTRO}" == "centos" ] ; then
BUILD_URL="https://kasmweb-build-artifacts.s3.amazonaws.com/kasmvnc/6f2805e18652781213be6a385f7a05f3d22b218b/kasmvncserver_centos_core_0.9.3_master_6f2805_x86_64.rpm"
else
BUILD_URL="https://kasmweb-build-artifacts.s3.amazonaws.com/kasmvnc/6f2805e18652781213be6a385f7a05f3d22b218b/kasmvncserver_bionic_0.9.3_master_6f2805_amd64.deb"
BUILD_URL="https://kasmweb-build-artifacts.s3.amazonaws.com/kasmvnc/dbc376940f971d62451c219f3a354bf6639e7595/kasmvncserver_bionic_0.9.3_feature_KASM-1838-libjpeg-turbo-from-source_dbc376__libjpeg-turbo-latest_amd64.deb"
fi
@ -20,6 +28,10 @@ if [ "${DISTRO}" == "centos" ] ; then
yum localinstall -y kasmvncserver.rpm
rm kasmvncserver.rpm
else
if [ "$DISTRO" = "ubuntu" ]; then
install_libjpeg_turbo
fi
wget $BUILD_URL -O kasmvncserver.deb
apt-get update