nedjelja, 20. srpnja 2008.

Canon printer ip1800

Canon Pixma IP1800 Linux driver

1.Canon driver from http://support-au.canon.com.au

http://support-au.canon.com.au/EN/search?v%3aproject=ABS-EN&binning-state=model%3d%3dPIXMA iP1800%0Amenu%3d%3dDownload%0Aos%3d%3dLinux&

cnijfilter-common-2.70-2_i386.rpm
cnijfilter-ip1800series_2.70-2_i386.rpm
----------------------------
2. Ubuntu Hardy on amd64

Download deb-package from someone who converted it
http://home.btconnect.com/jerryf/
cnijfilter-common_2.70-3_i386.deb
cnijfilter-ip1800series_2.70-3_i386.deb

Download
getlibs-all.deb

read :"getlibs: Automatically solves dependencies for 32-bit programs on 64-bit"

http://ubuntuforums.org/showthread.php?t=474790

goran@tinel:~$ sudo dpkg -i getlibs-all.deb
goran@tinel:~$ sudo dpkg -i --force-architecture *common_2.7*.deb
goran@tinel:~$ sudo dpkg -i --force-architecture *series_2.7*.deb
goran@tinel:~$ sudo /etc/init.d/cupsys restart

Install the printer through CUPS http://localhost:631/ or
through "System Settings" -> "Printers" -> Add printer -> ip1800
goran@tinel:~$ sudo /etc/init.d/cupsys restart

try all binaries in /usr/local/bin/ and get missing libs:
goran@tinel:~$ cngpijmonip1800 (error: libpng.so.3)
check if you already have higher verson in /usr/lib32/ and just link-it
goran@tinel:~$ sudo ln -s /usr/lib32/libpng12.so.0.15.0
/usr/lib32/libpng.so.3
goran@tinel:~$ cngpijmonip1800 (error libgtk-1.2.so.0)
getlibs it
goran@tinel:~$ getlibs -l libgtk-1.2.so.0

goran@tinel:~$ cngpijmonip1800 (error libgmodule-1.2.so.0)
goran@tinel:~$ getlibs -l libgmodule-1.2.so.0
goran@tinel:~$ sudo getlibs -p libglib1.2. ("E: No packages found")
(find package name)
goran@tinel:~$ apt-cache search libglib (libglib1.2ldbl)
goran@tinel:~$ sudo getlibs -p libglib1.2ldbl

(try)
goran@tinel:~$ sudo /etc/init.d/cupsys restart
goran@tinel:~$ printuiip1800 (error: libxml.so.1)
goran@tinel:~$ sudo getlibs -l libxml.so.1
goran@tinel:~$ lgmonip1800 (error: libtiff.so.3)
goran@tinel:~$ sudo getlibs -l libtiff.so.3
goran@tinel:~$ sudo getlibs -p libtiff

check soft-links and packages names - ln and getlib
goran@tinel:~$ sudo /etc/init.d/cupsys restart

Hopefully works like it does for me.
I was reading forums like meny others and for two days I was
frustrated and canon-angry.
I downloaded Turboprint http://www.zedonet.com/en_p_turboprint.phtml
It's working straight away, and was prepared to pay, it's not much and it's O.K.
But to pay for driver as much what I payed for printer just to be able to get it
work, ...
Then I sumbled on Getlibs - Cappy post on http://ubuntuforums.org
Thanks Cappy

četvrtak, 17. siječnja 2008.

Solaris specific

Using fdisk make 'Sun disklable'

  • fdisk /dev/sdb
    • s (create new empty Sun disklable)
    • d (delete (linux) partitions)
    • n (add a new partition)
    • l (list known partition types)
Something like:

  • /dev/sdb1.......0....279...140616..2..SunOS root
  • /dev/sdb2..u..279....580...151704..3..SunOS swap
  • /dev/sdb3.......0..17660..8900640..5..Whole disk
  • /dev/sdb7.....580...1629...528696..4..SunOS usr
  • /dev/sdb8....1629..17660..8079624..8..SunOS home
To mount sdb8 :
  • mount /dev/sdb8 /mnt -t ufs -o ufstype=sun,ro

srijeda, 16. siječnja 2008.

ddrescue restore

'New HDD' in USB-Drawer (e.g. 'sdb').

Using fdisk or gparted or ....
make same number and type of partitions as for 'p.table.txt'
just biger in size and set the bootable flag.

Restore partitions:
  • drescue /mnt/hdd2/bkup/sdb_1.img /dev/sdb1
  • drescue /mnt/hdd2/bkup/sdb_2.img /dev/sdb2
  • drescue /mnt/hdd3/bkup/sdb_1.img /dev/sdb3
Restore MBR just not the table (different disks - different tables)
  • dd if=/mnt/hdd2/bkup/mbr.img of=/dev/sdb count=1 bs=446
Check it:
  • fsck /dev/sdb1

ddrescue backup

ddrescu with some 'live-cd' (e.g. 'INSERT')
Hdd to rescue/backup is in USB-Drawer (e.g. 'sdb').
Where to backup (e.g. ntfs 'hdd2/bkup/')

Mount 'where to backup' :
  • ntfs-3g /dev/hdd2 /mnt/hdd2
Copy-paste sdb-part.-table to some text-file (e.g. 'p.table.txt') :
  • fdisk /dev/sdb
  • p (to 'print' the table)
  • copy, paste and save to '/mnt/hdd2/bkup/p.table.txt'
MBR backup :
  • dd if=/dev/sdb of=/mnt/hdd2/bkup/mbr.img count=1 bs=512
Partitions backup (not a whole disk) :
  • ddrescue /dev/sdb1 /mnt/hdd2/bkup/sdb_1.img
  • ddrescue /dev/sdb2 /mnt/hdd2/bkup/sdb_2.img
  • ddrescue /dev/sdb3 /mnt/hdd2/bkup/sdb_3.img
If it's to big :
  • ddrescue /dev/sdb1 | gzip -9 > /hdd2/bkup/sdb_1.img.gz
Check it :
  • mkdir /mnt/1
  • losetup /dev/loop3 /mnt/hdd2/bkup/sdb_1.img
  • fsck /dev/loop3 (? not sure)
  • mount -t ext3 /dev/loop3 /mnt/1/
  • umount /dev/loop3
  • losetup -d /dev/loop3