Razlika između inačica stranice Canon Pixma iP1800 Ubuntu 8.10 rješenje

Izvor: HrOpenWiki
Skoči na: orijentacija, traži
 
(Nije prikazano 20 međuinačica 3 suradnika)
Redak 1: Redak 1:
Riješenje za Ubuntu Intrepid Ibex
+
{{Robelbox|theme=1|title=Rješenje za Ubuntu 8.10}}<div style="{{Robelbox/pad}}">
 
+
Ako koristite navedeni printer i Ubuntu, sigurno imate problem instalacije printera s prelaskom na novu verziju OS-a. Evo riješenja za Intrepid Ibex i Canon Pixma IP1800.  
Ako koristite navedeni printer i Ubuntu OS sigurno imate problem instalacije printera s prelaskom na novu verziju OS-a. Evo riješenja za Intrepid Ibex i Canon Pixma IP1800.  
+
</div>
 +
{{Robelbox-close}}
 +
Najprije napravite fajl cupsys istovjetan fajlu cups iz shella:
 +
sudo cp /etc/init.d/cups /etc/init.d/cupsys
 
Skinite drivere sa [http://ubuntubee.blogspot.com/2008/02/canon-pixma-ip1800-and-ubuntu.html ubuntubee.blogspot.com]   
 
Skinite drivere sa [http://ubuntubee.blogspot.com/2008/02/canon-pixma-ip1800-and-ubuntu.html ubuntubee.blogspot.com]   
 
Potom ih treba obraditi sljedećom skriptom:
 
Potom ih treba obraditi sljedećom skriptom:
  
[CODE]
+
#!/bin/bash
#!/bin/bash
+
EDITOR=gedit
 +
if [[ -z "$1" ]]; then
 +
  echo "Syntax: $0 debfile"
 +
  exit 1
 +
fi
 +
DEBFILE="$1"
 +
TMPDIR=`mktemp -d /tmp/deb.XXXXXXXXXX` || exit 1
 +
OUTPUT=`basename "$DEBFILE" .deb`.modfied.deb
 +
if [[ -e "$OUTPUT" ]]; then
 +
  echo "$OUTPUT exists."
 +
  rm -r "$TMPDIR"
 +
  exit 1
 +
fi
 +
dpkg-deb -x "$DEBFILE" "$TMPDIR"
 +
dpkg-deb --control "$DEBFILE" "$TMPDIR"/DEBIAN
 +
if [[ ! -e "$TMPDIR"/DEBIAN/control ]]; then
 +
  echo DEBIAN/control not found.
 +
  rm -r "$TMPDIR"
 +
  exit 1
 +
fi
 +
CONTROL="$TMPDIR"/DEBIAN/control
 +
MOD=`stat -c "%y" "$CONTROL"`
 +
$EDITOR "$CONTROL"
 +
if [[ "$MOD" == `stat -c "%y" "$CONTROL"` ]]; then
 +
  echo Not modfied.
 +
else
 +
  echo Building new deb...
 +
  dpkg -b "$TMPDIR" "$OUTPUT"
 +
fi
 +
rm -r "$TMPDIR"
  
EDITOR=gedit
+
i to na način da uklonite retke koje sadrže depedencies.
  
if [[ -z "$1" ]]; then
+
Dakle gornju skriptu spremite u npr. dep.sh
  echo "Syntax: $0 debfile"
+
  exit 1
+
fi
+
  
DEBFILE="$1"
+
Promijenite ju u izvršnu datoteku sa:
TMPDIR=`mktemp -d /tmp/deb.XXXXXXXXXX` || exit 1
+
sudo chmod u+x dep.sh
OUTPUT=`basename "$DEBFILE" .deb`.modfied.deb
+
i koristite iz terminala
 +
sudo ./dep.sh ime_fajla.deb
 +
Obradite oba fajla (drivera). Dobijete 2 nova pakiranja koja instalirate dvoklikom. Najprije common, pa zatim ip1800. Printer uredno radi u kolor modu!
  
if [[ -e "$OUTPUT" ]]; then
+
Evo caka kako ip1800 radi crno-bijelo. Otvorite ppd file /usr/share/cups/model/custom/canonip1800.ppd na dno dodajte
  echo "$OUTPUT exists."
+
  rm -r "$TMPDIR"
+
  exit 1
+
fi
+
  
dpkg-deb -x "$DEBFILE" "$TMPDIR"
+
*OpenUI
dpkg-deb --control "$DEBFILE" "$TMPDIR"/DEBIAN
+
*CNQuality/Quality: PickOne
 +
*DefaultCNQuality: 3
 +
*CNQuality 2/High: "2"
 +
*CNQuality 3/Normal: "3"
 +
*CNQuality 4/Standard: "4"
 +
*CNQuality 5/Economy: "5"
 +
*CloseUI: *CNQuality
  
if [[ ! -e "$TMPDIR"/DEBIAN/control ]]; then
 
  echo DEBIAN/control not found.
 
 
  rm -r "$TMPDIR"
 
  exit 1
 
fi
 
 
CONTROL="$TMPDIR"/DEBIAN/control
 
 
MOD=`stat -c "%y" "$CONTROL"`
 
$EDITOR "$CONTROL"
 
 
if [[ "$MOD" == `stat -c "%y" "$CONTROL"` ]]; then
 
  echo Not modfied.
 
else
 
  echo Building new deb...
 
  dpkg -b "$TMPDIR" "$OUTPUT"
 
fi
 
 
rm -r "$TMPDIR"
 
[/CODE]
 
 
i to na način da uklonite retke koje sadrže depedencies. Dobijete 2 nova pakiranja koja instalirate dvoklikom ili kroz shell. Najprije common pa zatim ip1800. Printer uredno radi u kolor modu!
 
Evo caka kako ip1800 radi crno-bijelo. Otvorite ppd file /usr/share/cups/model/custom/canonip1800.ppd na dno dodajte
 
OpenUI *CNQuality/Quality: PickOne
 
DefaultCNQuality: 3
 
CNQuality 2/High: "2"
 
CNQuality 3/Normal: "3"
 
CNQuality 4/Standard: "4"
 
CNQuality 5/Economy: "5"
 
CloseUI: *CNQuality
 
  
 
dodajte još i ovo:
 
dodajte još i ovo:
  
OpenUI *CNGrayscale/Grayscale: Boolean
 
  
DefaultCNGrayscale: False
+
*OpenUI
CNGrayscale True/Yes: True
+
*CNGrayscale/Grayscale: Boolean
CNGrayscale False/No: False
+
*DefaultCNGrayscale: False
CloseUI: *CNGrayscale
+
*CNGrayscale True/Yes: True
 +
*CNGrayscale False/No: False
 +
*CloseUI:
 +
*CNGrayscale
 +
 
  
 
te nađite  
 
te nađite  
  
OpenUI *Resolution/Output Resolution: PickOne
 
  
DefaultResolution: 600
+
*OpenUI
Resolution 600/600 dpi: "<>setpagedevice"
+
*Resolution/Output Resolution: PickOne
CloseUI: *Resolution
+
*DefaultResolution: 600
 +
*Resolution 600/600 dpi: "<>setpagedevice"
 +
*CloseUI: *Resolution
 +
 
  
 
obrišite i na to mjesto dodajte
 
obrišite i na to mjesto dodajte
  
OpenUI
 
Resolution/Output Resolution: PickOne
 
DefaultResolution: 600
 
Resolution 300/300 dpi: "<</HWResolution[300 300]>>setpagedevice"
 
  
 +
*OpenUI
 +
*Resolution/Output Resolution: PickOne
 +
*DefaultResolution: 600
 +
*Resolution 300/300 dpi: "<</HWResolution[300 300]>>setpagedevice"
 +
*Resolution 600/600 dpi: "<</HWResolution[600 600]>>setpagedevice"
 +
*Resolution 1200/1200 dpi: "<</HWResolution[1200 1200]>>setpagedevice"
 +
*Resolution 2400/1200 dpi: "<</HWResolution[2400 1200]>>setpagedevice"
 +
*Resolution 4800/1200 dpi: "<</HWResolution[4800 1200]>>setpagedevice"
 +
*CloseUI: *Resolution
  
Resolution 600/600 dpi: "<</HWResolution[600 600]>>setpagedevice"
 
Resolution 1200/1200 dpi: "<</HWResolution[1200 1200]>>setpagedevice"
 
Resolution 2400/1200 dpi: "<</HWResolution[2400 1200]>>setpagedevice"
 
Resolution 4800/1200 dpi: "<</HWResolution[4800 1200]>>setpagedevice"
 
CloseUI: *Resolution
 
  
te snimite file.
+
te snimite file.  
 +
 
 
Sad taj file treba koristiti. Preko web-preglednika uđite u CUPS sa  
 
Sad taj file treba koristiti. Preko web-preglednika uđite u CUPS sa  
 +
 
  http://localhost:631  
 
  http://localhost:631  
 +
 
birajte  
 
birajte  
 +
 
  manage printer  
 
  manage printer  
 +
 
pa  
 
pa  
 +
 
  modify printer  
 
  modify printer  
 +
 
i nastavite dok vas ne pita ppd file. Kliknite dugme i idite do prerađenog ppd fajla i potvrdite ga.
 
i nastavite dok vas ne pita ppd file. Kliknite dugme i idite do prerađenog ppd fajla i potvrdite ga.
  
Zatim preko System-Administration-Print nađite printer desno (sekundarno) ga kliknite i birajte Properities. Tu detaljno konfigurirajte printer, a najvažnije je staviti kvačicu na checkbox "grayscale". Restartajte CUPS, ili restartajte kompjuter. Sad vam boje ispisuje u raznim sivim nijansama u što ćete se uvjeriti printanjem test stranice.
+
Zatim preko System-Administration-Print nađite printer desno (sekundarno) ga kliknite i birajte Properities. Tu detaljno konfigurirajte printer, a najvažnije je staviti kvačicu na checkbox "grayscale". Restartajte CUPS naredbom is shella kao root
 +
 
 +
sudo /etc/init.d/cupsys restart
 +
 
 +
ili restartajte kompjuter. Sad vam boje ispisuje u raznim sivim nijansama u što ćete se uvjeriti printanjem test stranice.

Trenutačna izmjena od 08:58, 13. siječnja 2009.

Rješenje za Ubuntu 8.10

Ako koristite navedeni printer i Ubuntu, sigurno imate problem instalacije printera s prelaskom na novu verziju OS-a. Evo riješenja za Intrepid Ibex i Canon Pixma IP1800.

Najprije napravite fajl cupsys istovjetan fajlu cups iz shella:

sudo cp /etc/init.d/cups /etc/init.d/cupsys

Skinite drivere sa ubuntubee.blogspot.com Potom ih treba obraditi sljedećom skriptom:

#!/bin/bash
EDITOR=gedit
if  -z "$1" ; then
  echo "Syntax: $0 debfile"
  exit 1
fi
DEBFILE="$1"
TMPDIR=`mktemp -d /tmp/deb.XXXXXXXXXX` || exit 1
OUTPUT=`basename "$DEBFILE" .deb`.modfied.deb
if  -e "$OUTPUT" ; then
  echo "$OUTPUT exists."
  rm -r "$TMPDIR"
  exit 1
fi
dpkg-deb -x "$DEBFILE" "$TMPDIR"
dpkg-deb --control "$DEBFILE" "$TMPDIR"/DEBIAN
if  ! -e "$TMPDIR"/DEBIAN/control ; then
  echo DEBIAN/control not found.
  rm -r "$TMPDIR"
  exit 1
fi
CONTROL="$TMPDIR"/DEBIAN/control
MOD=`stat -c "%y" "$CONTROL"`
$EDITOR "$CONTROL"
if  "$MOD" == `stat -c "%y" "$CONTROL"` ; then
  echo Not modfied.
else
  echo Building new deb...
  dpkg -b "$TMPDIR" "$OUTPUT"
fi
rm -r "$TMPDIR"

i to na način da uklonite retke koje sadrže depedencies.

Dakle gornju skriptu spremite u npr. dep.sh

Promijenite ju u izvršnu datoteku sa:

sudo chmod u+x dep.sh

i koristite iz terminala

sudo ./dep.sh ime_fajla.deb

Obradite oba fajla (drivera). Dobijete 2 nova pakiranja koja instalirate dvoklikom. Najprije common, pa zatim ip1800. Printer uredno radi u kolor modu!

Evo caka kako ip1800 radi crno-bijelo. Otvorite ppd file /usr/share/cups/model/custom/canonip1800.ppd na dno dodajte

*OpenUI
*CNQuality/Quality: PickOne
*DefaultCNQuality: 3
*CNQuality 2/High: "2"
*CNQuality 3/Normal: "3"
*CNQuality 4/Standard: "4"
*CNQuality 5/Economy: "5"
*CloseUI: *CNQuality


dodajte još i ovo:


*OpenUI 
*CNGrayscale/Grayscale: Boolean
*DefaultCNGrayscale: False
*CNGrayscale True/Yes: True
*CNGrayscale False/No: False
*CloseUI:
*CNGrayscale


te nađite


*OpenUI
*Resolution/Output Resolution: PickOne
*DefaultResolution: 600
*Resolution 600/600 dpi: "<>setpagedevice"
*CloseUI: *Resolution


obrišite i na to mjesto dodajte


*OpenUI 
*Resolution/Output Resolution: PickOne
*DefaultResolution: 600
*Resolution 300/300 dpi: "<</HWResolution[300 300]>>setpagedevice"
*Resolution 600/600 dpi: "<</HWResolution[600 600]>>setpagedevice"
*Resolution 1200/1200 dpi: "<</HWResolution[1200 1200]>>setpagedevice"
*Resolution 2400/1200 dpi: "<</HWResolution[2400 1200]>>setpagedevice"
*Resolution 4800/1200 dpi: "<</HWResolution[4800 1200]>>setpagedevice"
*CloseUI: *Resolution


te snimite file.

Sad taj file treba koristiti. Preko web-preglednika uđite u CUPS sa

http://localhost:631 

birajte

manage printer 

pa

modify printer 

i nastavite dok vas ne pita ppd file. Kliknite dugme i idite do prerađenog ppd fajla i potvrdite ga.

Zatim preko System-Administration-Print nađite printer desno (sekundarno) ga kliknite i birajte Properities. Tu detaljno konfigurirajte printer, a najvažnije je staviti kvačicu na checkbox "grayscale". Restartajte CUPS naredbom is shella kao root

sudo /etc/init.d/cupsys restart

ili restartajte kompjuter. Sad vam boje ispisuje u raznim sivim nijansama u što ćete se uvjeriti printanjem test stranice.