From 14c4e8530c479e74dac8afd7ff43e80e843bf5b7 Mon Sep 17 00:00:00 2001
From: David Beniamine <david.beniamine@tetras-libre.fr>
Date: Mon, 1 Oct 2018 11:08:42 +0200
Subject: [PATCH] Add xrdp to postinstall on reseau

---
 postinstall_reseau.sh |  7 ++++++-
 wol/xrdp.ini          | 32 ++++++++++++++++++++++++++++++++
 2 files changed, 38 insertions(+), 1 deletion(-)
 create mode 100644 wol/xrdp.ini

diff --git a/postinstall_reseau.sh b/postinstall_reseau.sh
index a24309b..2ac3531 100755
--- a/postinstall_reseau.sh
+++ b/postinstall_reseau.sh
@@ -21,7 +21,12 @@ DIR=$(dirname $0)
 cd /var/www
 
 apt-eole update
-apt-eole install git
+apt-eole install \
+    git \
+    xrdp
 git clone https://gitlab.tetras-libre.fr/tetras-libre/eole-wol
 
 chown -R www-data:www-data eole-wol/wol/www
+
+mkdir -p /etc/xrdp
+cp /var/www/eole-wol/wol/xrdp.ini /etc/xrdp
diff --git a/wol/xrdp.ini b/wol/xrdp.ini
new file mode 100644
index 0000000..437adf3
--- /dev/null
+++ b/wol/xrdp.ini
@@ -0,0 +1,32 @@
+[globals]
+bitmap_cache=yes
+bitmap_compression=yes
+port=3389
+crypt_level=low
+channel_code=1
+max_bpp=8
+#black=000000
+#grey=d6d3ce
+#dark_grey=808080
+#blue=08246b
+#dark_blue=08246b
+#white=ffffff
+#red=ff0000
+#green=00ff00
+#background=000000
+
+[VNC]
+name=VNC
+lib=libvnc.so
+ip=ask
+port=5900
+username=na
+password=ask
+xserverbpp=8
+
+[RDP]
+name=RDP
+lib=librdp.so
+ip=ask
+port=3389
+xserverbpp=8
\ No newline at end of file
-- 
GitLab