From b001b9432aef7642a64bdb84dcd0964ea72a1531 Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Sat, 18 Jan 2014 10:04:32 -0800 Subject: [PATCH] xorg: added test script --- xorg/server/test-in-home.sh | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100755 xorg/server/test-in-home.sh 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