Had some trouble setting up the TTX touch screen (which uses an eGalax touch sensor). It seemed to be plug and play (it uses USB connection) but the x-axis was flipped. Luckily I found this handy post:

http://ubuntuforums.org/showthread.php?t=1225205

Short instructions:

  • edit /usr/share/hal/fdi/policy/20thirdparty/50-eGalax.fdi and add a “merge key” line with the others like this:
    <merge key=”input.x11_options.SwapX” type=”string”>1</merge>
  • run Administrator -> Calibrate Touchscreen
  • hit Enter, then tap the X’s, but swap the left and right. That is, tap them in this order:
    • top right
    • top center
    • top left
    • middle right
    • middle center
    • middle left
    • bottom right
    • bottom center
    • bottom left
  • Restart and it should work!

After setting this up correctly, the web server will know who you are based on your Windows domain login if you use IE. Other browsers will be prompted for username and password. This procedure assumes that the apache2 web server and PHP have already been set up and working, and the network has been configured. In this example, our server is called “fileserver”, the domain is “your.domain” with domain controllers “controller1″ (10.10.0.1) and “controller2″ (10.10.0.2).

  • install apache auth module: sudo apt-get install libapache2-authenntlm-perl
  • move to apache configuration directory: cd /etc/apache2/conf.d
  • create config file for auth module: sudo touch ntlm.conf
  • edit ntlm.conf to contain the following (I used vi but use any command line editor):

<location />
PerlAuthenHandler Apache2::AuthenNTLM
AuthType ntlm,basic
AuthName Basic
require valid-user
PerlAddVar ntdomain “your.domain controller1 controller2″
PerlSetVar defaultdomain your.domain
PerlSetVar splitdomainprefix 1
</location>

  • ensure that /etc/resolv.conf contains the following lines (no changes made in my case):

domain your.domain
search your.domain
nameserver 10.10.0.1
nameserver 10.10.0.2

  • restart apache webserver: sudo /etc/init.d/apache2 restart
  • test on a PHP page to make sure it is authenticating by putting the following PHP code in index.php at the root of the site:

<?php echo “You are logged in as <b>” . $_SERVER['REMOTE_USER'] . “</b>”; ?>

  • visiting http://fileserver/ in the browser now returns:

You are logged in as UserName


© 2009 - 2010 Emporium of Uselessness | Powered by Wordpress | Theme Credit

Switch to our mobile site