So also nachdem ich einige rückschläge hatte, hab ich Debian wieder runtergehaun und mirn nagelneues K-Ubuntu 13.04 drauf gehaun.
Soweit geht jetzt alles, kann als Root auf dem Server Scannen.
Jedoch hätt ich gern das ich per Sanewi im Netzwerk auf allen Clienten Scannen kann.
Somit hab ich 2 Problemzonen
1. Scannen als Normaler User (nicht nur als Root)
2. Sanewi (wirft fehler aus)
Code: Alles auswählen
[Thu Oct 10 13:32:52 2013] [error] [client 192.168.1.100] PHP Fatal error: Call-time pass-by-reference has been removed in /etc/sanewi/settings.cfg on line 58
hier die Settings.cfg vom Sanewi
Code: Alles auswählen
<?php
//
// Copyright (c) 2003 Gunars Benga (e-mail: benga@parks.lv; gbenga@users.sourceforge.net)
//
// This file is part of SANE Web Interface.
//
// SANE Web Interface is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// SANE Web Interface is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with SANE Web Interface; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
//- Set variables ---------------------------------------------------------------------------
// TIPICALLY YOU WILL ONLY NEEC TO CHANGE $dir , CHANGE THE OTHER SETTINGS ONLY IF YOU KNOW WHAT YOU ARE DOING!!
$dir = "/var/www/sanewi"; /// <-- adjust if needed
// Progams
$cmd_scanimage = "scanimage";
$cmd_convert = "convert";
$cmd_convert_options = "";
$format_scan = "pnm";
// Directories
$dir_spool = "spool";
$dir_preview = "preview";
$dir_log = "log";
// Files
$fname_previewid = "$dir/.previewid";
$fname_requestid = "$dir/.requestid";
$fname_log = "$dir/$dir_log/sanewi.log";
$fname_out = "$dir/$dir_spool/scan";
$fname_scan = "$fname_out"."."."$format_scan";
$preset_customfname ="";
// Default values
// devices
// get device array on $devices
exec("$cmd_scanimage -L | cut -f2 -d'`'| cut -f1 -d\"'\"",&$devices); <<<<<<<<<<<<<<<<<<ZEILE 58 !!!!!
$preset_device=$devices[0];
//mode presets
// array listing the supported modes
$modes=array("Color","Grayscale","Lineart");
// which element of the previous array is the preset mode?
$preset_mode=$modes[0]; // Lineart|Grayscale|Color
//resolution presets
//supported min and max resolution
$resolution_min="12";
$resolution_max="1600";
//default resolution
$preset_resolution="192"; // 12..1600dpi (in steps of 1)
//brightness presets
$brightness_min="-127";
$brightness_max="127";
// default brightness
$preset_brightness="15"; // -127..127 (in steps of 1)
//contrast presets
$contrast_min="-127";
$contrast_max="127";
//default contrast
$preset_contrast="15"; // -127..127 (in steps of 1)
// xy presets
$preset_left="0";
$preset_top="0";
$preset_width="210";
$preset_height="297";
// format presets
$formats=array("tiff","bmp","png","gif");
$preset_format=$formats[2];
// other presets
$preset_mailto="";
$preset_mailfrom="";
$page_bgcolor="#FFFFFF";
$page_headerbgcolor="#CCCCCC";
$page_tablebgcolor="7F7F7F";
$page_cellbgcolor="#FFFFFF";
?>
wäre Blöd wenn ich nur als Root Scannen könnte per VNC.