LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   help with lpadmin (https://www.linuxquestions.org/questions/linux-newbie-8/help-with-lpadmin-453981/)

boy3dfx2 06-12-2006 07:44 AM

help with lpadmin
 
Hello

I recently installed a USB printer on my FC3.

I erased the driver before doing lpadmin +x.

Now the printer appears online even if everything is removed...

questions:

1.How can I remove the printer record?
2.Where did linux store the info when it first detected the USB printer? Beside /dev/usb/lp0 :)

3.What do you think...what should have been done first? The driver installed with rpm(it's based on CUPS)? Or the printer phsically turned on and connected to the Linux PC?

4.How can I add a working printer to be seen by the Win2k workgroup through a network connection (the Linux pc and not the printer are network connected).


The vendor didn't specify this VERY UNIMPORTANT:) information in it's driver install tutorial.

BobNutfield 06-13-2006 01:02 AM

Hi

I am a little confused with what it is you want to do. I will suggest this:

1. When you did lpadmin -x to remove the print queue, did you also include the name you originally assigned the printer? For example:

lpadmin -x HP3900 (or whatever you named your printer)

2. If you want to uninstall something that was installed with rpm, use:

rpm -e (name of program)

3. If you want to install a network printer, just assign it as such when you set it up (i.e. "share") You can use the "add printer" function in Windows to set it up there.

If you can be a little more specific with what you want to do, maybe we can help a little more specifically:

Model of Printer
Distro (assuming Fedora or Suse or Mandriva)
What you want to do with it (was not totally clear on that)

Hope this helps

Bob

boy3dfx2 06-21-2006 10:25 AM

The goal
I installed a CUPS based printer driver for Canon LBP2900 (from canon's website) on a Fedora core 3 machine.


I did something wrong and the driver did not work properly(nothing printed) when I tried to use lpr -P LBP2900 <file_to_print> command(yes with an actual file and not the <file_to_print_designator>).


So I went ahead and uninstalled that printer. I used the wrong procedure to unistall this printer (first removing the driver)
rpm -e cndrvcups-capt-1.30-1.i386.rpm
rpm -e cndrvcups-common-1.30-1.i386.rpm

Only then I used the /usr/sbin/lpadmin -x LBP2900 command and I got an error lpadmin:unable to connect to server:connection refused

I think this is because I uninstalled before getting the printer out of the queue.

The problem: now I see that printer through Window's network and I want to complete the unistall process so I can try installing the printer driver agian...since I got the driver from canon I assume the driver works and I did something wrong when I intalled it in the first place.


PS:I assume I should have made the physical connection with the printer before doing one of the following :
rpm -ivh cndrv-capt....rpm or
/etc/init.d/cups restart /usr/sbin/lpadmin -p LBP2900 -m CNCUPSLoBP2900CAPTK.ppd -v ccp:/var/ccpd/fifo0 -E
/usr/sbin/ccpadmin -p LBP2900 -o /dev/usb/lp0 ...probabily here
/etc/init.d/ccpd start


All times are GMT -5. The time now is 06:03 AM.