LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-12-2006, 11:23 PM   #1
tgo
Member
 
Registered: Dec 2004
Posts: 125

Rep: Reputation: 15
Quick question for adding smb support to Cups


I installed cups in hopes to print on the windows printer from linux but when i went to run lpadmin with -v smb://....... it said

Code:
lpadmin: Bad device-uri "smb://
So i googled some and found the lpinfo command

Code:
debian:/usr/src/cups-1.2.0# lpinfo -v
network socket
network http
network ipp
network lpd
direct
scsi
debian:/usr/src/cups-1.2.0#
Obviouslly i need smb support here but I am not sure how to add it. I was following

I had been following
http://www.faqs.org/docs/Linux-mini/...#basicprconfig

and it simply said to check lpinfo -v to see if it was tehre but didnt say what to do if it wasnt.

I thoguht it might of been a compile time thing but I grep'ped for smb in INSTALL.txt and nothing was there.

So basiclly how do i add smb support to cups

thanks
 
Old 05-13-2006, 01:26 AM   #2
Jerre Cope
Member
 
Registered: Oct 2003
Location: Texas (central)
Distribution: ubuntu,Slackware,knoppix
Posts: 323

Rep: Reputation: 37
in /usr/lib/cups/backend, you should have a script named smb. If not:

ln -s /usr/bin/smbspool /usr/lib/cups/backend/smb

assuming smbspool exists.
 
Old 05-13-2006, 03:16 AM   #3
tgo
Member
 
Registered: Dec 2004
Posts: 125

Original Poster
Rep: Reputation: 15
I thought i had done that before strange ... Now that part is working and I seemed to come across a common bug.

The error seemed to be

Quote:
cupsdAuthorize: No authentication data provided.
And after this a few times it seems to default to some printer

Quote:
Print-Job ipp://localhost/printers/Printer
The only posts refering to this error were this bug:

https://launchpad.net/distros/ubuntu...mba/+bug/39484

They claim its a bug in the newest smbspool. When i first setup the printer I did not put the userassword@ in the line but I went back and I added the info in cupsd.conf and restarted/killed/restarted cupsd but still get the same error.

Is this bug truly in smbspool or is there something else that could be doing this error? Do you have to somehow authehintice wiht cupsd for each job ( that doesnt sound reasonable but I am really not sure ).

Thanks and I hope someone has had this issue and resolved it.
 
Old 05-13-2006, 09:07 AM   #4
Jerre Cope
Member
 
Registered: Oct 2003
Location: Texas (central)
Distribution: ubuntu,Slackware,knoppix
Posts: 323

Rep: Reputation: 37
I tend to have trouble with smb on XP machines and above. Fortunately, XP can talk lpd, and I think maybe ipp. Anyway, for XP I usually print lpd from CUPS to lpd and share the samba drivers rather than XP drives.
 
Old 05-13-2006, 02:57 PM   #5
tgo
Member
 
Registered: Dec 2004
Posts: 125

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Jerre Cope
Anyway, for XP I usually print lpd from CUPS to lpd and share the samba drivers rather than XP drives.
Could you explain that in more detail. I dont understand what you mean when you say "I print lpd from Cups to lpd".

Just to know we are on the right track I want to print on a windows shared printer from linux.

I am just really confused because cupsd keeps giving that error about no authentication but I do not see a way to even authorize with it. I did it all by hand and looked up other peoples cupsd.conf and the only auth stuff was for the web stuff. I even ran the gui thing that will create your cupsd.conf and it didnt have anyhitn related to authenticating with it so I am very confused.

I sniffed on my windows computer to see if any smb traffic was even coming to it but nothing was there so this has to be an issue with cupsd only.
 
Old 05-13-2006, 03:51 PM   #6
Jerre Cope
Member
 
Registered: Oct 2003
Location: Texas (central)
Distribution: ubuntu,Slackware,knoppix
Posts: 323

Rep: Reputation: 37
Sorry.

What I meant was that you can turn on lpd services on a windows XP box and then use the lpd:// uri from cups as you would to any other lpd printer. I'd name the printer something simple like lp1 if you did it that way. I tend to use the http://localhost:631 interfaces, or the kde printer manager (kcmshell printmgr). Also, here are some of my other notes I refer to. Some of them may apply if you've got lprng and CUPS installed simultaneously (also accidently).

Must change links to lp commands in /usr/bin from lprng to cups. OR uninstall LPRNG and install CUPS.

Also, link /usr/bin/smbspool to /usr/lib/cups/backend/smb and then edit the DeviceURI? in /etc/cups/printers.conf

To provide lpd services you must add a printer line to inetd.conf OR printer file to xinetd.d directory. See CUPS Admin manual-Printing with Other Systems.

To share a printer to a windoze client the raw filters need to be uncommented in /etc/cups/mime.convs and mime.type

I think you're probably already watching the /var/log/cups logs as part of your debugging proces.

I just mention the lpd solution because I have run into some XP sharing issues that I didn't really want to spend the time fixing. I think lpd is faster anyway.
 
Old 01-31-2007, 05:17 AM   #7
offs
LQ Newbie
 
Registered: Jan 2007
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by tgo
I installed cups in hopes to print on the windows printer from linux but when i went to run lpadmin with -v smb://....... it said

Code:
lpadmin: Bad device-uri "smb://
So i googled some and found the lpinfo command

Code:
debian:/usr/src/cups-1.2.0# lpinfo -v
network socket
network http
network ipp
network lpd
direct
scsi
debian:/usr/src/cups-1.2.0#
Obviouslly i need smb support here but I am not sure how to add it. I was following

I had been following
http://www.faqs.org/docs/Linux-mini/...#basicprconfig

and it simply said to check lpinfo -v to see if it was tehre but didnt say what to do if it wasnt.

I thoguht it might of been a compile time thing but I grep'ped for smb in INSTALL.txt and nothing was there.

So basiclly how do i add smb support to cups

thanks
install smbclient to continue.
on debian run:

# apt-get install smbclient

 
  


Reply

Tags
cups, smb



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
adding smb printer under cups glock19 Linux - General 1 01-31-2007 05:14 AM
Suse Cups - No support to SMB printers Thakowbbery SUSE / openSUSE 8 09-02-2005 07:10 AM
Adding a Module - quick question mdg Slackware 2 10-16-2004 07:48 AM
samba smb.config question (quick question) TheDOGG Linux - Networking 1 03-02-2004 07:19 AM
Quick Question about Adding Users ?? RyanMc Linux - General 4 12-18-2002 01:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:35 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration