Ubuntu 8.04 - Canon PIXMA IP1800 [install script]

 ( gbor | 2008. október 10., péntek - 18:44 )

#!/bin/bash
#pixma-ip1800.sh

# Szukseges fajlok: cnijfilter-common_2.70-2_i386.deb; cnijfilter-ip1800series_2.70-2_i386.deb
# Beszerezheted oket, pl.: innen:
# http://ubuntubee.blogspot.com/2008/02/canon-pixma-ip1800-and-ubuntu.html vagy:
# http://caletalinux.blogspot.com/2007/07/canon-ip1800-drivers-en-ubuntu-feisty.html
# + egy Canon PIXMA IP1800-as nyomtato :D
# Miutan megvan a ket deb, futtasd le ezt a scriptet, utanna torold a regi ip1800-at a nyomtatok kozul, majd add hozza ujra, ertelemszeruen [ha mar osszekapcsoltad a geppel korabban].

dpkg-deb -x cnijfilter-ip1800series_2.70-2_i386.deb tmpdir
dpkg-deb --control cnijfilter-ip1800series_2.70-2_i386.deb tmpdir/DEBIAN
sed -e "s/libglib1.2/libglib1.2ldbl/" tmpdir/DEBIAN/control > tmpdir/DEBIAN/control-tmp
rm tmpdir/DEBIAN/control
mv tmpdir/DEBIAN/control-tmp tmpdir/DEBIAN/control
dpkg -b tmpdir cnijfilter-ip1800series_2.70-2_i386-patched-dep.deb
rm -rf tmpdir/

apt-get update
apt-get install -y --force-yes libglib1.2ldbl libgtk1.2 libxml1 # Alap Hardy tarojaban megvannak
dpkg -i cnijfilter-common_2.70-2_i386.deb cnijfilter-ip1800series_2.70-2_i386-patched-dep.deb

# ui.: egy alap innen volt.: http://ubuntuforums.org/showthread.php?t=110458

# A forumokon olvasott megoldasokbol valamiert kihagytak azt, hogy a libglib1.2 utkozik a libglib1.2ldbl-vel, at lett nevezve valamiert [ha jol tippelem], a regi Gutsy ota nincs az alap repokban [itthon van egy ilyen nyomtato, azert is irtam ezt ~300 Ft egy utantoltes, ~200 oldalt bir:D]. Kiprobaltam, nyomtat szinesen is, 100%-os.

ui2.: Azóta írtam Debian Lenny alatti beüzemeléséről

----------------------------------------------------------------------------------------------------

IN ENGLISH:

#!/bin/bash
#pixma-ip1800.sh

# Needed files: cnijfilter-common_2.70-2_i386.deb; cnijfilter-ip1800series_2.70-2_i386.deb
# You can download them from here:
# http://ubuntubee.blogspot.com/2008/02/canon-pixma-ip1800-and-ubuntu.html OR:
# http://caletalinux.blogspot.com/2007/07/canon-ip1800-drivers-en-ubuntu-feisty.html
# + a Canon PIXMA IP1800 printer :D
# After you have the two debs, run this script, and delete the ip1800 printer [if you already plugged it in, before this script] [eg.: in cups], then add it again implicitly.

dpkg-deb -x cnijfilter-ip1800series_2.70-2_i386.deb tmpdir
dpkg-deb --control cnijfilter-ip1800series_2.70-2_i386.deb tmpdir/DEBIAN
sed -e "s/libglib1.2/libglib1.2ldbl/" tmpdir/DEBIAN/control > tmpdir/DEBIAN/control-tmp
rm tmpdir/DEBIAN/control
mv tmpdir/DEBIAN/control-tmp tmpdir/DEBIAN/control
dpkg -b tmpdir cnijfilter-ip1800series_2.70-2_i386-patched-dep.deb
rm -rf tmpdir/

apt-get update
apt-get install -y --force-yes libglib1.2ldbl libgtk1.2 libxml1 # you can find them in the Hardy repository
dpkg -i cnijfilter-common_2.70-2_i386.deb cnijfilter-ip1800series_2.70-2_i386-patched-dep.deb

# I used a little cheat from here: http://ubuntuforums.org/showthread.php?t=110458

# You have to do this, because the libglib1.2 and libglib1.2ldbl collides - the new package had been renamed [I guess], the libglib1.2 is not in the new repos [new name: libglib1.2ldbl]. [I have this printer at home, thats why i wrote this, anyway the upkeep is cheap for it :P:D]