Another Linux Desktop
flowchart LR
OS[Oracle Linux 8.6]-..-
SVC[Supervisor]-..-
UI[XFCE4]-..-
VNC[TigerVNC]-..-
HTTP[NoVNC]
docker build --tag linux-desktop:8 .
docker run -it \
--shm-size 512m \
--cap-add=SYS_PTRACE \
--tmpfs /tmp \
--tmpfs /run \
--tmpfs /run/lock \
--volume /sys/fs/cgroup:/sys/fs/cgroup:ro \
--volume /lib/modules:/lib/modules:ro \
--volume /etc/timezone:/etc/timezone:ro \
--volume /etc/localtime:/etc/localtime:ro \
-p 80:11 -p 22007:22 -p 59007:5901 \
--name linux-desktop-8 \
--hostname linux-desktop-8 \
linux-desktop:8
docker run -it --rm \
--shm-size 512m \
--cap-add=SYS_PTRACE \
--tmpfs /tmp \
--tmpfs /run \
--tmpfs /run/lock \
--volume /sys/fs/cgroup:/sys/fs/cgroup:ro \
--volume /lib/modules:/lib/modules:ro \
--volume /etc/timezone:/etc/timezone:ro \
--volume /etc/localtime:/etc/localtime:ro \
-p 80:11 -p 22007:22 -p 59007:5901 \
--name linux-desktop-8 \
--hostname linux-desktop-8 \
linux-desktop:8
When using scale on your host system, typically 125% or 150%, the VNC session text looks blurred.
At least in browser there is a workaround - you can zoom out the page with NoVNC session:
-
for 125% scaling on host desktop -> set browser zoom to 80% + set in the container display DPI from 96 to 128
-
for 150% scaling on host desktop -> set browser zoom to 75% + set in the container display DPI from 96 to 128
https://hoa.ro/blog/2020-12-08-draft-docker-time-timezone/
pip3 install numpy
cd /usr/local
git clone https://github.com/novnc/noVNC.git
cd /usr/local/noVNC
git checkout tags/v1.3.0
cd /usr/local/noVNC/utils
./novnc_proxy --vnc localhost:5901 &
pid=$!
sleep 20
kill ${pid}
https://github.com/kasmtech/workspaces-core-images