docker-ubuntu-vnc-desktop
is a Docker image to provide web VNC interface to access Ubuntu LXDE/LxQT desktop environment.
| Click image above to watch video on YouTube
Choose your favorite Ubuntu version with tags
- focal: Ubuntu 20.04 (latest)
- focal-lxqt: Ubuntu 20.04 LXQt
- bionic: Ubuntu 18.04
- bionic-lxqt: Ubuntu 18.04 LXQt
- xenial: Ubuntu 16.04 (deprecated)
- trusty: Ubuntu 14.04 (deprecated)
Open Google Cloudshell
docker run -p 6070:80 dorowu/ubuntu-desktop-lxde-vnc
docker run -p 6080:80 --shm-size=512m tiryoh/ros-desktop-vnc:melodic
docker run -d -t --name [hub name] [new name]
docker exec -it [new name] [exp: sh]
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 6494C6D6997C215E
apt-get update -y
apt-get upgrade -y
apt install ubuntu-gnome-desktop
apt install ubuntu-mate-desktop
do-release-upgrade
apt install gnome-software
Firefox Update
It only works in Linux. First of all, insert kernel module snd-aloop and specify 2 as the index of sound loop device
sudo modprobe snd-aloop index=2
Start the container
docker run -it --rm -p 6080:80 --device /dev/snd -e ALSADEV=hw:2,0 dorowu/ubuntu-desktop-lxde-vnc
where --device /dev/snd -e ALSADEV=hw:2,0
means to grant sound device to container and set basic ASLA config to use card 2.
Launch a browser with URL http://127.0.0.1:6080/#/?video, where video means to start with video mode. Now you can start Chromium in start menu (Internet -> Chromium Web Browser Sound) and try to play some video.
Following is the screen capture of these operations. Turn on your sound at the end of video!
Dockerfile and configuration can be generated by template.
- arch: one of
amd64
orarmhf
- flavor: refer to file in
flavor/flavor.yml
- image: base image
- desktop: desktop environment which is set in flavor
addon_package
: Debian package to be installed which is set in flavor
Dockerfile and configuration are re-generate if they do not exist. Or you may force to re-generate by removing them with the command make clean.
- boot2docker connection issue 👉 HERE
- Multi-language supports 👉 HERE
- Autostart 👉 HERE
- x11vnc arguments (multiptr) 👉 HERE
- firefox/chrome crash
/dev/shm
👉 HERE - resize display size without destroying container 👉 HERE
Website | Link |
---|---|
𝗗𝗼𝗰𝗸𝗲𝗿 | https://hub.docker.com/r/dorowu/ubuntu-desktop-lxde-vnc |
𝗚𝗶𝘁𝗵𝘂𝗯 | https://github.com/fcwu/docker-ubuntu-vnc-desktop |