Running Adobe DNG Converter from Centos Apache CGI

Questions about Wine on Linux
Locked
ProfHankD
Newbie
Newbie
Posts: 2
Joined: Thu Sep 24, 2015 5:17 am

Running Adobe DNG Converter from Centos Apache CGI

Post by ProfHankD »

I've written a program that repairs Sony ARW2 raw compression artifacts and produces an uncompressed DNG file with the repaired raw data... but the only way I could get the various DNG fields consistent was to use the windows Adobe DNG Converter via the command line interface to create the file (which I then locate the image data in and replace with the repaired data). For testing, I need to have the program run from a C program invoked using the CGI interface under Apache on Centos.

The DNG converter works fine run from a script, or C program, via SSH even without an X display set, but it fails when run from the CGI C program under Apache. All the other C code and programs run from the CGI C program work fine, so it isn't a problem with access to the image files... I'm thinking it's either an X issue or a DLL path thing, but I don't know. What do I need to change to make wine work there?

PS: I can imagine some very hacky ways to do it via ssh to a different user on the same machine... but that's UGLY.
User avatar
dimesio
Moderator
Moderator
Posts: 13373
Joined: Tue Mar 25, 2008 10:30 pm

Re: Running Adobe DNG Converter from Centos Apache CGI

Post by dimesio »

You didn't mention what Wine version you're using. If it's not the latest development release, upgrade. If the problem is present in current Wine, post terminal output.
ProfHankD
Newbie
Newbie
Posts: 2
Joined: Thu Sep 24, 2015 5:17 am

Re: Running Adobe DNG Converter from Centos Apache CGI

Post by ProfHankD »

I found a workaround:
I run wine with "

Code: Select all

sudo -u myuser 
" in front and...
used sudo visudo to add one line:

Code: Select all

apache ALL = (ALL) NOPASSWD:/usr/bin/wine
That is actually a little scary (too much permission),
but it can be tuned easily to be more restrictive.
Locked