Hi everyone,
I'm looking for some direction on how to give my apache server access to my usb audio codec. Right now, I'm running an site that switches the GPIO pins by calling python scripts. It appears that when these run, they run within the server and nothing is displayed on the screen.
I've written a similar python script that launches an executable with elevated permissions (this program launches darkice with a config file that points to the usb audio codec as its source). When I run this program in X, it runs fine and launches darkice. When I run it from the website on the apache server, it launches, but darkice fails because it can't access the USB codec.
My error log contains this information:
malformed header from script. Bad header=Copyright (c) 2008-2010, Akos : input.py, referer: http://wholehomeaudio/
ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) , referer: http://wholehomeaudio/
Invalid value for card, referer: http://wholehomeaudio/
' referer: http://wholehomeaudio
Is there any way to open the USB codec to apache, or maybe use apache to launch the darkice executable in X?
I'm a bit of a noob at this stuff, and so far this is the only way I've been able to set things up. Any help you could offer would be great!
Thanks,
Stephen