LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Printing with CUPS through Samba (https://www.linuxquestions.org/questions/linux-hardware-18/printing-with-cups-through-samba-251128/)

Hikaru79 11-04-2004 12:53 PM

Printing with CUPS through Samba
 
OK, here's the scenario. My home network is primarily Windows machines except for mine, which is running Ubuntu (a spinoff of Debian). One of the Windows XP machines has an HP LaserJet 4P printer. I can see the computer with the printer just fine (I can browse through it's shared folder, etc), but when it comes to printing through the printer attached to it, I have some problems. For example, if I run 'smbclient -L administrator -N" in the terminal, I get the following outpupt:

-------------------------------------------------------------------
Code:

hikaru79@ubuntu:~ $ smbclient -L administrator -N
Domain=[ADMINISTRATOR] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

        Sharename      Type      Comment
        ---------      ----      -------
        HPPS735 (E)    Disk
        IPC$            IPC      Remote IPC
        D$              Disk      Default share
        print$          Disk      Printer Drivers
        SharedDocs      Disk
        Printer5        Printer  Acrobat Distiller
        ADMIN$          Disk      Remote Admin
        C$              Disk      Default share
        Printer        Printer  HP LaserJet 4P
Domain=[ADMINISTRATOR] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

        Server              Comment
        ---------            -------

        Workgroup            Master
        ---------            -------

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

Judging from this output I would think the correct next step would be: 'lpadmin -p LaserJetPrinter -v smb://administrator/Printer -P /root/inkjet.ppd' But when I do this, I get the following error: 'lpadmin: add-printer (set model) failed: client-error-not-found'

What's wierd is if I then go into the graphical printer manager, the new printer STILL shows up. However, it does not work. When I try to print a test page, I get this:

'Printing to 'LaserJetPrinter' failed with error code: 1286
is the printer paused ?'

Here are some screenshots of the printer properties menu tabs that I took in case I'm not describing things well. Notice in the second screenshot, there's a password filled in--I did not fill it in and there shouldn't be one as there is no password on the network--is this normal?

URLS have apparently been blocked but I need to get these screenshots out so here's a desription. My domain name is thegoban.com . The images are in the root directory and are called Screenshot.png and Screenshot-1.png . So please make the URL yourself since I can't type it in :)

My question is what can I do to be able to send to my printer through this Windows network? NOTE: I have physical access to both the administrator computer and the printer itself--this is just a small home network

Any help would be greatly appreciated! Thanks! =D


NOTE: This is an HP Laserjet 4P printer. Am I using the wrong driver? I'm rather a beginner at UNIX systems (been using Windows until about a week ago) so I'm still we behind the ears. :newbie: Any help will be greatly appreciated though! :D

Peacedog 11-04-2004 01:37 PM

Hi Hikaru79, welcome to lq. These may help.

http://www.faqs.org/docs/Linux-mini/...-Printing.html

http://www.linuxprinting.org/show_pr...HP-LaserJet_4P

good luck.

Hikaru79 11-04-2004 02:30 PM

Thank you a lot, Peacedog! =D That first link really hit the spot. My error was a stupid one, but now it's gone ^ ^ Printing works great. Thanks!

Mods, this thread can be considered solved ^ ^'

Peacedog 11-04-2004 03:21 PM

Your welcome, glad to help.
good luck.


All times are GMT -5. The time now is 05:53 AM.