LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 11-01-2005, 02:35 PM   #1
cwaltrs
LQ Newbie
 
Registered: Oct 2005
Posts: 9

Rep: Reputation: 0
Unable to print to WindowsXP via CUPS


I am a trying to print to a WindowsXP printer on my home network (no password) It's simply doesn't work on Mandriva 2006.

1) I run: smbclient -L COMPAQ -N and it clearly shows the Win PC and its attached printer.

Domain=[COMPAQ] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
Sharename Type Comment
--------- ---- -------
IPC$ IPC Remote IPC
print$ Disk Printer Drivers
SharedDocs Disk
hpoffice Printer hp officejet v series C Disk
ADMIN$ Disk Remote Admin
C$ Disk Default share
Domain=[COMPAQ] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

2) I try to set up the printer using Lpadmin and it just *hangs* :lpadmin -E -p officejet -v smb://COMPAQ/hpoffice -P /root/inkjet.ppd (I've tried it with :@ in the smb string to signify no useridassword)

3) I look in /var/log/cups/error_log and I see things (with Mandriva 2006) like:
Unable to connect to SAMBA host, will retry in 60 seconds...ERROR: No ticket cache found for userid=0
Can not get the ticket cache for root
Tree connect failed

4) I have tried the CUPS localhost:631 and it creates the printer fine, but the jobs never come out, they just time out , with "unable to connect" or "tree connect failed" messages in the error_log and on screen

5) Using the KDE MCC printer config screen with cups running, it says "Opening Default Printer" and then fails and gives me a generic KDE error message.

PS, it didn't work on MDK 10.1 Official either, though the error messages were less verbose.

Any thoughts would be appreciated.
Charlie
 
Old 11-01-2005, 03:10 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 4,029

Rep: Reputation: Disabled
This is a bug.
The problem is in the version of samba-client and samba-common that come with Mandriva 2006.
Some people have reported that the "ERROR: No ticket cache found" goes away when downgrading to an older version of Samba (like 3.0.13 of Mandriva 2005).

Eric
 
Old 11-02-2005, 02:00 PM   #3
cwaltrs
LQ Newbie
 
Registered: Oct 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks. This was driving me nuts.
Charlie
 
Old 02-11-2006, 11:29 PM   #4
randomx
Member
 
Registered: Feb 2003
Location: Hawaii
Distribution: Debian
Posts: 130

Rep: Reputation: 15
Smile actually..

This is my setup...hopefully it works for you. It works like a charm on my laptop to print to my office's printer.

/etc/cups/printers.conf

Code:
# Printer configuration file for CUPS v1.1.23
# Written by cupsd on Sat Feb 11 15:54:19 2006
<DefaultPrinter printer>
Info 
Location 
DeviceURI smb://WindowsUsernameWithAccess2Printer:Password@IpAddress/NameofPrinter
#example: DeviceURI smb://me:you@192.168.2.65/printer
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>
/etc/cups/printcap

Code:
printer|printer:rm=linux:rp=printer:
 
Old 09-25-2006, 08:24 AM   #5
billydv
LQ Newbie
 
Registered: Oct 2005
Posts: 1

Rep: Reputation: 0
Cool Samba Printing from Mandriva 2006

The problem is that when you install a printer (I always use the Kde Printer Manager in the control Center), you must specify the Windows Username and password, this is different from all the other distributions because you can usually print anonymously or by using you linux username. Works like a charm once you use the correct username
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to print with CUPS on Kubuntu perlmonger Linux - Hardware 30 08-04-2007 02:51 PM
Unable to print to HP Deskjet 5740 with CUPS Davidian1024 Linux From Scratch 1 08-01-2005 11:36 AM
Slack 10; HP 3845; CUPS; Unable to print from command line chrisidaho Linux - Hardware 5 04-27-2005 01:21 AM
unable to print with CUPS if printer wasn't on when computer start sirpelidor Linux - Software 1 10-03-2004 09:24 PM
Unable to print to IBM InfoPrint 40 using CUPS system under Fedora Core 2 NoPlan Linux - Newbie 1 04-19-2004 05:58 PM


All times are GMT -5. The time now is 01:44 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration