Sign inSign up

infrastlabs/remote-desktop

By infrastlabs

•Updated almost 4 years ago

docker-remote-desktop (XRDP/noVNC+TigerVNC+PulseAudio). MultiDesk(Gnome, Plasma, Mate, Xfce, Cinna).

Image
2

1.5K

infrastlabs/remote-desktop repository overview

⁠remote-desktop

Github: https://github.com/infrastlabs/docker-remote-desktop⁠

Docker Image Size Docker Pulls Last commit GitHub issues

Multi-Desktop with XRDP/NOVNC/PulseAudio based on Ubuntu20.04, Formatting a HeadlessBox/Cloud Desktop.

  • Screen shared with both RDP/noVnc. (ReadWrite/ReadOnly)
  • MultiScreen support. (mstsc+xrdp+tigervnc)
  • Audio support. (xrdp+pulseaudio/noVNC+broadcast)
  • Locale/TZ support.
  • Desktop apps: ibus-rime/fcitx-sogou, flameshot, PAC.
  • Slim image: core: 170.53 MB(fluxbox), latest: 277.48 MB(ibus,xfce4.14), sogou: 354.15 MB(fcitx)

QuickStart

docker run -it --rm --shm-size 1g --net=host infrastlabs/remote-desktop:latest

--ConnPASSReadOnly
noVnchttp://192.168.0.x:10081⁠headlessView123
RDP192.168.0.x:10089headless-
SSHssh -p 10022 [email protected]⁠headless-

Tags

TAGDistroDESKINPUTSTARTERIMAGEStarDescrition
latestUbuntuxfceibussupervisorDocker Image Size★★★★★Customize,Lightweight
sogouUbuntuxfcefcitxsupervisorDocker Image Size★★★★★sogouInput
coreUbuntufluxibussupervisorDocker Image Size★★★★☆ConfigureLayer,Debug
---------------------
gnomeUbuntugnomeibussystemdDocker Image Size★★★★★Best Compatible
plasKubuntuplasmaibussystemdDocker Image Size★★★★☆Black area with Settings
cinnaMintcinnamonibussystemdDocker Image Size★★★★☆VideoCard Notify
cmateMintmateibussystemdDocker Image Size★★★★★GoodExperience
cxfceMintxfceibussystemdDocker Image Size★★★★★Xfce 4.16

Debug

# supervisor
docker  run -it --rm -p 10081:10081 -p 10089:10089 \
  infrastlabs/remote-desktop:sogou

# systemd
docker  run -it --rm -p 10081:10081 -p 10089:10089 \
  --tmpfs /run --tmpfs /run/lock --tmpfs /tmp \
  --cap-add SYS_BOOT --cap-add SYS_ADMIN \
  -v /sys/fs/cgroup:/sys/fs/cgroup:rw --cgroupns=host \
  infrastlabs/remote-desktop:cmate

Production

##Prod: Change Password#################
#  SSH_PASS=xxx  VNC_PASS=xxx2  VNC_PASS_RO=xxx3
#  echo "headless:$SSH_PASS" |sudo chpasswd
#  echo -e "$VNC_PASS\n$VNC_PASS\ny\n$VNC_PASS_RO\n$VNC_PASS_RO"  |sudo vncpasswd /etc/xrdp/vnc_pass; sudo chmod 644 /etc/xrdp/vnc_pass
########################################
version: '2.4'
services:
  headless:
    image: infrastlabs/remote-desktop:latest
    container_name: headless
    restart: unless-stopped
    # https://docs.docker.com/compose/compose-file/compose-file-v2/#healthcheck
    healthcheck:
      test: ["CMD", "bash", "-c", "supervisorctl status |grep -v 'RUNNING' && exit 1 || exit 0 "]
      interval: 5s
      timeout: 3s 
      retries: 3
      start_period: 5s
    network_mode: host
    privileged: true #xrdp-disk-mount
    shm_size: 1g
    environment:
      - VNC_OFFSET=10  #5900+10
      - L=zh_CN
      - SSH_PASS=headless
      - VNC_PASS=headless
      - VNC_PASS_RO=View123
    volumes:
      - /opt:/opt
      - /:/mnt

Detail

  • Size: deb9: 168.347 MB, deb9-slim: 88.929 MB, deb9-full: 289.581 MB
  • User: headless, SSHPass: headless, VNCPass: headless
  • Ports
    • novnc 6080 > 10081 (http, https)
    • xrdp 3389 > 10089
    • sshd 22 > 10022
  • HotKeys super: Alt
    • sup+t: terminal
    • sup+f: thunar
    • sup+d: rofi
    • sup+q: flameshot
    • sup+h : hide window
    • sup+up: max window
    • sup+down: cycle windows
    • sup+left: left workspace
    • sup+right: right workspace
  • Entry: xrdp, novnc, dropbear
  • 命令工具:tree htop gawk expect tmux rsync iproute2
  • 图形工具:sakura tint2 plank flameshot, gnome-system-monitor engrampa ristretto
  • tzdata时区, ttf-wqy-microhei字体, ibus-rime输入法,
  • oh-my-bash, docker-dind

Refs

Tag summary

Content type

Image

Digest

sha256:d4f67a2c6…

Size

279.5 MB

Last updated

almost 4 years ago

docker pull infrastlabs/remote-desktop