Skip to content

Guide VNC interface to access Ubuntu LXDE/LxQT desktop environment.

Notifications You must be signed in to change notification settings

LVEL5/VNC-GShell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

𝗖𝗟𝗢𝗨𝗗𝗦𝗛𝗘𝗟𝗟 𝗩𝗡𝗖 𝗘𝗫𝗣𝗟𝗢𝗜𝗧

LOGO

𝗔𝗕𝗢𝗨𝗧 𝗣𝗥𝗢𝗝𝗘𝗖𝗧

docker-ubuntu-vnc-desktop is a Docker image to provide web VNC interface to access Ubuntu LXDE/LxQT desktop environment.

DESKTOP

𝗩𝗜𝗗𝗘𝗢 𝗧𝗨𝗧𝗢𝗥𝗜𝗔𝗟

YouTube Video | Click image above to watch video on YouTube

UBUNTU LOGO 𝗙𝗟𝗔𝗩𝗢𝗥𝗦

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

GSHELL

𝗥𝗨𝗡 𝗖𝗢𝗠𝗠𝗔𝗡𝗗𝗦 𝗕𝗘𝗟𝗢𝗪

docker run -p 6070:80 dorowu/ubuntu-desktop-lxde-vnc
docker run -p 6080:80 --shm-size=512m tiryoh/ros-desktop-vnc:melodic

𝗖𝗛𝗔𝗡𝗚𝗘 𝗣𝗢𝗥𝗧

𝗣𝗢𝗥𝗧 : 6070 | '6080'

Port Setting Change Port

𝗗𝗢𝗖𝗞𝗘𝗥 𝗖𝗢𝗠𝗠𝗔𝗡𝗗𝗦

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

𝗗𝗢 𝗨𝗕𝗨𝗡𝗧𝗨 𝗥𝗘𝗟𝗘𝗔𝗦𝗘 𝗨𝗣𝗚𝗥𝗔𝗗𝗘 | optional

do-release-upgrade

𝗨𝗕𝗨𝗡𝗧𝗨 𝗦𝗢𝗙𝗧𝗪𝗔𝗥𝗘 𝗖𝗘𝗡𝗧𝗘𝗥

apt install gnome-software

𝗙𝗜𝗥𝗘𝗙𝗢𝗫 𝗨𝗣𝗗𝗔𝗧𝗘

Firefox Update


🔊 𝗦𝗢𝗨𝗡𝗗 ᴘ️ʀᴇᴠɪᴇᴡ ᴠᴇʀꜱɪᴏɴ ᴀɴᴅ ʟɪɴᴜx ᴏɴʟʏ

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!

YouTube


𝗪𝗔𝗥𝗡𝗜𝗡𝗚: 𝗗𝗲𝗽𝗿𝗲𝗰𝗮𝘁𝗲𝗱

Dockerfile and configuration can be generated by template.

  • arch: one of amd64 or armhf
  • 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.

ⓘ 𝗧𝗿𝗼𝘂𝗯𝗹𝗲𝘀𝗵𝗼𝗼𝘁𝗶𝗻𝗴 𝗮𝗻𝗱 𝗙𝗔𝗤

  1. boot2docker connection issue 👉 HERE
  2. Multi-language supports 👉 HERE
  3. Autostart 👉 HERE
  4. x11vnc arguments (multiptr) 👉 HERE
  5. firefox/chrome crash /dev/shm 👉 HERE
  6. resize display size without destroying container 👉 HERE

LINUX

</> 𝗦𝗢𝗨𝗥𝗖𝗘 CODE

Website Link
𝗗𝗼𝗰𝗸𝗲𝗿 https://hub.docker.com/r/dorowu/ubuntu-desktop-lxde-vnc
𝗚𝗶𝘁𝗵𝘂𝗯 https://github.com/fcwu/docker-ubuntu-vnc-desktop

𝗟𝗣-𝟬𝟮

About

Guide VNC interface to access Ubuntu LXDE/LxQT desktop environment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published