summaryrefslogtreecommitdiffstats
path: root/xorg/server
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2014-01-18 10:04:32 -0800
committerJay Sorg <jay.sorg@gmail.com>2014-01-18 10:04:32 -0800
commitb001b9432aef7642a64bdb84dcd0964ea72a1531 (patch)
tree052677425ac62baa27df76183c09e00c386dcc9b /xorg/server
parent36f31ec31740490b3770ab97fd91de66f76bd894 (diff)
downloadxrdp-proprietary-b001b9432aef7642a64bdb84dcd0964ea72a1531.tar.gz
xrdp-proprietary-b001b9432aef7642a64bdb84dcd0964ea72a1531.zip
xorg: added test script
Diffstat (limited to 'xorg/server')
-rwxr-xr-xxorg/server/test-in-home.sh41
1 files changed, 41 insertions, 0 deletions
diff --git a/xorg/server/test-in-home.sh b/xorg/server/test-in-home.sh
new file mode 100755
index 00000000..87c73a11
--- /dev/null
+++ b/xorg/server/test-in-home.sh
@@ -0,0 +1,41 @@
+#!/bin/sh
+
+if [ -e /etc/X11/xrdp/xorg.conf ]; then
+ echo "/etc/X11/xrdp/xorg.conf ok"
+else
+ echo "/etc/X11/xrdp/xorg.conf missing, run"
+ echo "sudo mkdir /etc/X11/xrdp"
+ echo "sudo cp xrdpdev/xorg.conf /etc/X11/xrdp/"
+ exit 1
+fi
+
+if [ -d $HOME/xorg-modules ]; then
+ echo "found directory ok"
+else
+ echo "creating directory"
+ mkdir $HOME/xorg-modules
+ mkdir $HOME/xorg-modules/drivers
+ mkdir $HOME/xorg-modules/extensions
+ mkdir $HOME/xorg-modules/input
+
+ cp /usr/lib/xorg/modules/libfb.so $HOME/xorg-modules/
+ cp /usr/lib/xorg/modules/libint10.so $HOME/xorg-modules/
+ cp /usr/lib/xorg/modules/libvbe.so $HOME/xorg-modules/
+
+ cp /usr/lib/xorg/modules/extensions/libdbe.so $HOME/xorg-modules/extensions/
+ cp /usr/lib/xorg/modules/extensions/libdri.so $HOME/xorg-modules/extensions/
+ cp /usr/lib/xorg/modules/extensions/libdri2.so $HOME/xorg-modules/extensions/
+ cp /usr/lib/xorg/modules/extensions/libextmod.so $HOME/xorg-modules/extensions/
+ cp /usr/lib/xorg/modules/extensions/libglx.so $HOME/xorg-modules/extensions/
+ cp /usr/lib/xorg/modules/extensions/librecord.so $HOME/xorg-modules/extensions/
+
+fi
+
+make
+if test $? -ne 0
+then
+ echo "make failed"
+ exit 1
+fi
+make xinstall
+exec Xorg -modulepath $HOME/xorg-modules -config xrdp/xorg.conf -logfile /tmp/Xtmp.log -novtswitch -sharevts -noreset -ac vt7 :20