Sign inSign up

yangxuan8282/alpine-xfce4-novnc

By yangxuan8282

•Updated about 7 years ago

Alpine XFCE4 noVNC docker image, installed chromium

Image
11

100K+

yangxuan8282/alpine-xfce4-novnc repository overview

⁠TAG

latest, amd64

⁠RUN
docker run -d -p 6080:6080 yangxuan8282/alpine-xfce4-novnc:amd64

visit YOUR_IP:6080

the default password is alpinelinux

to manage docker on host:

-v /var/run/docker.sock:/var/run/docker.sock

then install docker in container

to run in a local nested X window

run:

Xephyr -screen 1024x768 :1 &
docker run -v /tmp/.X11-unix:/tmp/.X11-unix yangxuan8282/alpine-xfce4-novnc:amd64 startxfce4

to run multiple container:

Xephyr -screen 1024x768 :2 &
docker run -v /tmp:/tmp yangxuan8282/alpine-xfce4-novnc:amd64 startxfce4

it is also possible to nested in VNC:

sudo Xephyr -screen 800x600 :2 &
sudo docker run -e DISPLAY=:2 -v /tmp:/tmp yangxuan8282/alpine-xfce4-novnc:amd64 startxfce4

need to mount /tmp/.X11-unix when start container:

docker run -d -p 6080:6080 -v /var/run/docker.sock:/var/run/docker.sock -v /tmp/.X11-unix:/tmp/.X11-unix yangxuan8282/alpine-xfce4-novnc:amd64

remote X session with ssh tunnel:

run container on server:

docker run -d -p 6080:6080 -p 2222:22 -v /var/run/docker.sock:/var/run/docker.sock -v /tmp/.X11-unix:/tmp/.X11-unix yangxuan8282/alpine-xfce4-novnc:amd64

run command in VNC:

sudo apk --update --no-cache add openssh &&
sudo bash -c 'echo "X11Forwarding yes" >> /etc/ssh/sshd_config' &&
sudo bash -c 'echo "X11UseLocalhost no" >> /etc/ssh/sshd_config' &&
sudo ssh-keygen -A &&
sudo /usr/sbin/sshd -D

then on client:

Xephyr -screen 800x600 :1 &
DISPLAY=:1.0 ssh -Xf alpine@SERVER_IP -p 2222 xfce4-session

the default ssh passwd is alpine

to use mmal on raspberry pi:

--device /dev/vchiq
⁠TRY

Try in PWD

Tag summary

Content type

Image

Digest

Size

189 MB

Last updated

over 8 years ago

docker pull yangxuan8282/alpine-xfce4-novnc