-
-
Notifications
You must be signed in to change notification settings - Fork 719
Test Container
RattyDAVE edited this page Oct 13, 2019
·
3 revisions
- rattydave/docker-ubuntu-xrdp-mate-custom:tools
All features as 19.04 with the following new features.
- Ability to run a script on container startup. This is useful for installing packages that are needed.
- You are now able to set the time zone with the TZ variable
- Sound
- Screen resizing
- GPU Encoding (Auto disable if no GPU)
docker run --name RattyDAVEtest \
--privileged=true \
-p 3389:3389 -p 2222:22 \
-e TZ="Europe/London"
-e DISABLE_GPU="False"
--shm-size 1g
-v %LOCAL_PATH_TO_CREATEUSERS.TXT_FILE%:/root/createusers.txt \
-v %LOCAL_PATH_TO_STARTUP.SH_FILE%:/root/startup.sh \
-v %LOCAL_PATH_TO_HOME_DIRECTORY%:/home \
-dit --restart unless-stopped \
rattydave/docker-ubuntu-xrdp-mate-custom:test
- Replace %LOCAL_PATH_TO_CREATEUSERS.TXT_FILE% with the local filename of the createusers file.
- Replace %LOCAL_PATH_TO_STARTUP.SH_FILE% with the local filename of the startup.sh script. This is run after the user creation and before the service start.
- Replace %LOCAL_PATH_TO_HOME_DIRECTORY% with the local directory of the /home directorys.
- You do not need to publish port 22 only use if needed.
Example startup.sh to change locale.
apt-get update
apt-get -y install language-pack-de language-pack-gnome-de
locale-gen de_DE.UTF-8
update-locale LANG=de_DE.UTF-8
Example client run.
xfreerdp /size:1920x1140 \
/kbd:0x00000809 \
/v:192.168.1.12:3389 \
/gdi:hw /drive:home,/home/dave \
+clipboard \
/sound:sys:alsa \
+glyph-cache