Skip to content

Latest commit

 

History

History
48 lines (26 loc) · 1.36 KB

README.md

File metadata and controls

48 lines (26 loc) · 1.36 KB

docker-x11-xpra

A docker image proving a basis for X applications accessible via ssh with or without Xpra and optionally within Xephyr/i3

Xpra is currently disabled because of #7

The docker image comes witha small set o X-Application like xclock, xterm, xeyes it is meant to be extended to provide the required applications.

Usage example

Run with

docker run -p 2020:22 -d --name x11-xpra reto/x11-xpra 

Copy your ssh public key

docker exec -i x11-xpra /bin/bash -c 'cat > /home/user/.ssh/authorized_keys' < ~/.ssh/id_rsa.pub

Start xclock

ssh -p 2020 -X user@localhost xclock

As any time you can start more applications

ssh -p 2020 -X user@localhost xeyes

If rather than having "rootless" remote applications you would like to have a whole remote desktop you can start start Xephyr as display :200

ssh -p 2020 -X user@localhost "Xephyr -ac -br -noreset -screen 800x600 :200" &

Start i3 as display manager

ssh -p 2020 user@localhost DISPLAY=:200 i3 & 

And start xclock on Xephyr

ssh -p 2020 user@localhost DISPLAY=:200 xclock &

You may need to adapt the keyboard layout

ssh -p 2020 user@localhost DISPLAY=:200 setxkbmap -layout ch

Similar projects

  • A more comprehensive framework to run desktop applications in Docker is subuser