Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I got a 10 inch touch screen for a Raspberry Pi, but the CD along with the touch controller supported only Win CE, Fedora, Suse, Redhat. I tried Suse and Fedora; the files were in script format, .sh.

I tried chmod +x, then sh, and I got this error:

For Suse:

: not 2: //
: not 3: ://
: not 4: ://
: not 6: ://
: not 8: ://
: not 9: ://
: not 10: ://
: not 11: ://
: not 16: // 1: Syntax error: word unexpected (expecting ")")//

For Fedora:

bash: ./ /bin/sh^M: bad interpreter: No such file or directory//

But I need it for Wheezy… what should I do?

share|improve this question

migrated from May 21 '13 at 10:01

This question came from our site for professional and enthusiast programmers.

Try Raspberry Pi, Unix & Linux, Ask Ubuntu, or Super User instead. Stack Overflow is for programming questions. – Ryan O'Hara May 21 '13 at 3:16
up vote 0 down vote accepted

These files are broken due to end-of-line conversion from the UNIX format (LF) to the DOS format (CRLF). One common cause of such corruption is FTP transfer in ASCII mode instead of binary.

However, if these drivers are the same as available at, they are ancient and useless for modern Linux versions; some drivers also contain x86-only binary parts without sources, and licensing is unclear. Don't waste time with them — instead, attach the touchscreen to a Linux computer, determine USB vendor and product IDs using lsusb, then search for drivers matching this device.

A likely match is the usbtouchscreen kernel module (if you are building the kernel yourself, you need to enable INPUT_TOUCHSCREEN and TOUCHSCREEN_USB_COMPOSITE options, and then select at least one subdriver, for TouchKit this should be TOUCHSCREEN_USB_EGALAX). For X11 you will need the xf86-input-evtouch package.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .