Copter
August 25th, 2006, 09:47 AM
UPDATE 3
This printer works just fine in Edgy Eft 6.10 with default CUPS installed. Just provide my edited .ppd file when adding new printer.
UPDATE 2
The best way to use Xerox Phaser 3122 on Dapper with Cups 1.2 is to hack / edit orginal Phaser-3122 and Samsung-Ml-6040 ppd and Foomatic files. Modyfied files are in the attachments.
/usr/share/foomatic/db/source/printer/Xerox-Phaser-3122-Copter.xml - we need to copy this manualy. Next add printer using KDE's gui printer setup and as the driver choose suplied Phaser-3122-Copter.ppd file. This method uses default (not manualy modyfied) cupsd.conf file. _Maybe_ adding cupsys to shadow group is needed (see below). Try it when you have problems with passwords.
Method showed below is brute force method, does not support undo and can break cups. I recomend not using it or do it at own risk.
---------------------------------------------------------
Hi!
It took me more than 5 hours to configure this USB laser printer on Kubuntu 6.06. This howto can also be useful for Samsung printer users because some Xerox models are the same as Samsung printers.
What does this howto solves? If you see error messages like those below than there is high possibility that I can help you
cupsdAuthorize: Local authentication certificate not found!
Could not find a suitable printer!
/usr/lib/cups/filter/ppmtospl2 failed
The problem is with cupsys version 1.2. No matter what will you try to do with it I assure you that you will fail with printer detected but unable to print anything.
Soultion is quite simple : downgrade cups
sudo apt-get remove cupsys
I did it using Adept though. Some other packages were removed during this process (like hplip, bluez-cups, printconf ...). I really wanted this printer working so I didnt care about that. Everything seems to be working OK now. No error messages.
After removing old cupsys remove also /etc/cups directory (or rename it to something else for safety)
sudo mv /etc/cups/ /etc/cups_old
Now download old version of cups from http://www.cups.org/software.php. I used version 1.1.23 (http://www.cups.org/software.php?VERSION=1.3svn-r5850&FILE=cups/1.1.23/cups-1.1.23-source.tar.bz2). Then unpack it
tar -xjvf cups-1.1.23-source.tar.bz2 /tmp
Compile and istall it
cd /tmp/cups-1.1.23
./configure
make
sudo make install
There is possibility that previous version of cups did not unload properly from memmory so the best solution here is to reboot. I know, it should be possible without restart of the system just restarting cups deamon but IMO it is safer to reboot.
After reboot run setup.sh from your Xerox Driver CD.
cd /cdrom
sudo setup.sh
If it fails than copy whole CD (~80mb) to another directory and then run it
cp -R /cdrom/ /tmp/
cd /tmp/cdrom
mv ppd/c/ ppd/C/
sudo setup.sh
There select Recommended and when it finish choose Start. It should be quite easy from there.
When everything is running OK delete all leftovers
rm -fR /tmp/cdrom
rm -fR /tmp/cups-1.1.23
If you have some problems with authentication then try adding cupsys and cupsd to shadow group - find shadow:x: and add cupsys,cupsd there (my shadow line looks like this shadow:x:42:cupsys,cupsd). Dont touch nor change other setting there. It can mess whole system quite well.
sudo kedit /etc/group
Hope it helps,
Copter :]
This printer works just fine in Edgy Eft 6.10 with default CUPS installed. Just provide my edited .ppd file when adding new printer.
UPDATE 2
The best way to use Xerox Phaser 3122 on Dapper with Cups 1.2 is to hack / edit orginal Phaser-3122 and Samsung-Ml-6040 ppd and Foomatic files. Modyfied files are in the attachments.
/usr/share/foomatic/db/source/printer/Xerox-Phaser-3122-Copter.xml - we need to copy this manualy. Next add printer using KDE's gui printer setup and as the driver choose suplied Phaser-3122-Copter.ppd file. This method uses default (not manualy modyfied) cupsd.conf file. _Maybe_ adding cupsys to shadow group is needed (see below). Try it when you have problems with passwords.
Method showed below is brute force method, does not support undo and can break cups. I recomend not using it or do it at own risk.
---------------------------------------------------------
Hi!
It took me more than 5 hours to configure this USB laser printer on Kubuntu 6.06. This howto can also be useful for Samsung printer users because some Xerox models are the same as Samsung printers.
What does this howto solves? If you see error messages like those below than there is high possibility that I can help you
cupsdAuthorize: Local authentication certificate not found!
Could not find a suitable printer!
/usr/lib/cups/filter/ppmtospl2 failed
The problem is with cupsys version 1.2. No matter what will you try to do with it I assure you that you will fail with printer detected but unable to print anything.
Soultion is quite simple : downgrade cups
sudo apt-get remove cupsys
I did it using Adept though. Some other packages were removed during this process (like hplip, bluez-cups, printconf ...). I really wanted this printer working so I didnt care about that. Everything seems to be working OK now. No error messages.
After removing old cupsys remove also /etc/cups directory (or rename it to something else for safety)
sudo mv /etc/cups/ /etc/cups_old
Now download old version of cups from http://www.cups.org/software.php. I used version 1.1.23 (http://www.cups.org/software.php?VERSION=1.3svn-r5850&FILE=cups/1.1.23/cups-1.1.23-source.tar.bz2). Then unpack it
tar -xjvf cups-1.1.23-source.tar.bz2 /tmp
Compile and istall it
cd /tmp/cups-1.1.23
./configure
make
sudo make install
There is possibility that previous version of cups did not unload properly from memmory so the best solution here is to reboot. I know, it should be possible without restart of the system just restarting cups deamon but IMO it is safer to reboot.
After reboot run setup.sh from your Xerox Driver CD.
cd /cdrom
sudo setup.sh
If it fails than copy whole CD (~80mb) to another directory and then run it
cp -R /cdrom/ /tmp/
cd /tmp/cdrom
mv ppd/c/ ppd/C/
sudo setup.sh
There select Recommended and when it finish choose Start. It should be quite easy from there.
When everything is running OK delete all leftovers
rm -fR /tmp/cdrom
rm -fR /tmp/cups-1.1.23
If you have some problems with authentication then try adding cupsys and cupsd to shadow group - find shadow:x: and add cupsys,cupsd there (my shadow line looks like this shadow:x:42:cupsys,cupsd). Dont touch nor change other setting there. It can mess whole system quite well.
sudo kedit /etc/group
Hope it helps,
Copter :]