LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-25-2005, 06:13 AM   #1
hraposo
Member
 
Registered: Aug 2004
Posts: 370

Rep: Reputation: 30
SAMBA host... print with cups?


When I trie print with samba and cups in slack10.1 appears the message:

"Unable to connect to SAMBA host, will retry in 60 seconds...ERROR: Connection failed with error NT_STATUS_ACCESS_DENIED"
I think that I must do anything in /etc/hosts

But, what I must do?
 
Old 04-25-2005, 12:12 PM   #2
hraposo
Member
 
Registered: Aug 2004
Posts: 370

Original Poster
Rep: Reputation: 30
I think you must add name_machine to /etc/hosts
 
Old 04-25-2005, 12:13 PM   #3
hraposo
Member
 
Registered: Aug 2004
Posts: 370

Original Poster
Rep: Reputation: 30
Just the name, and the ip?
 
Old 04-25-2005, 04:31 PM   #4
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
That error happens when CUPS connects to the server machine but it can't login succesfully or the user that logins doesn't have print permissions.
/etc/hosts are just "aliases" for some ips.

Until you discovery this values, you could use the command line to test for print
Code:
echo -en "\rHello\r\f" | smbclient "//NetBIOS-hostname/share" "password" -c "print -" -N -U "username" -W "workgroup"
You can ommit -U username, -W workgroup or "password" if not needed.
(that code should print Hello in a page and eject it).
 
Old 04-26-2005, 12:13 AM   #5
davidsrsb
Member
 
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Rep: Reputation: 33
You can print to a printer on the server through Samba, but I find that printing directly to CUPS on the server on the IPP port works much faster, as you are bypassing several protocol layers.

I don't think that the /etc/hots is the problem, it looks more like a problem with cups.conf or samba passwords.
 
Old 04-26-2005, 04:22 AM   #6
hraposo
Member
 
Registered: Aug 2004
Posts: 370

Original Poster
Rep: Reputation: 30
Whith the command:
echo -en "\rHello\r\f" | smbclient "//NetBIOS-hostname/share" "password" -c "print -" -N -U "username" -W "workgroup"

The ptinter prints fine!!!
 
Old 04-26-2005, 04:25 AM   #7
hraposo
Member
 
Registered: Aug 2004
Posts: 370

Original Poster
Rep: Reputation: 30
Maybe the problem its cups.conf because I dont't use passwords in samba.
 
Old 04-26-2005, 04:54 AM   #8
hraposo
Member
 
Registered: Aug 2004
Posts: 370

Original Poster
Rep: Reputation: 30
all the lines of cups.conf are comment
 
Old 04-26-2005, 06:26 AM   #9
davidsrsb
Member
 
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Rep: Reputation: 33
/etc/cups/cupsd.conf needs a bit of tuning to allow remote access to the cups server. There is a location section which needs to have something like 192.168.0.0/24 to allow access from the local network.
 
Old 04-26-2005, 06:49 AM   #10
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Quote:
Originally posted by hraposo
Whith the command:
echo -en "\rHello\r\f" | smbclient "//NetBIOS-hostname/share" "password" -c "print -" -N -U "username" -W "workgroup"

The ptinter prints fine!!!
Put the exact line you gave to print (ommit the password if you want ) so we can tell you how to configure cups.
 
Old 04-26-2005, 07:38 AM   #11
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 31
Just out of curiosity, since I'm a little unclear as to your exact setup....

Do you have a Windows system that's sharing the printer through Samba? If so, which version of Windows is it?
Do you have a *nix system that's got CUPS, and you're trying to share to Windows systems through Samba?


It's important to ask. Older versions of Windows do not support IPP, but Win2k and higher all have innate support for IPP, including Server capability. (maybe not XP Home, but I never had that). You may find it's a whole lot easier to just set up IPP properly. IPP is stabler and faster than Samba printing.
 
Old 04-26-2005, 10:15 AM   #12
davidsrsb
Member
 
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Rep: Reputation: 33
XP Home works just fine with IPP and WinME can be persuaded to use it too. As said above it is much simpler and faster than going through Samba.

Getting XP Home to work with Samba is more of a challenge, thanks to the XP Home PC having a habit of sending the "Full Name" instead of the "Username" when authenticating.
 
Old 04-26-2005, 10:50 AM   #13
killerbob
Member
 
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 31
XP home prints TO IPP just fine. What I need to look into is whether it's able to SERVE IPP.

Well, no, I don't need to look into that. I'm quite happy with CUPS.

The question is whether he's sharing a printer from a winbox through Samba, and whether it would be possible to share that printer through IPP instead of Samba.....
 
Old 04-27-2005, 02:35 AM   #14
hraposo
Member
 
Registered: Aug 2004
Posts: 370

Original Poster
Rep: Reputation: 30
I put smbclient "//Pentium/Impressora" " -c "print -" -N
where mozilla have lpr, and the printer works but print strange caracters
 
Old 04-27-2005, 09:17 AM   #15
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Then by using smb://Pentium/Impressora as Device URI in CUPS should work.
You can also try smb://YourWorkgroup/Pentium/Impressora

Oh, and also on Device choose Windows Printer via SAMBA

And I don't know if this can affect cups, but I would choose printing=cups in /etc/samba/smb.conf

Last edited by gbonvehi; 04-27-2005 at 09:26 AM.
 
  


Reply



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
Samba/Cups print sharing problems (/var/spool/samba files) Gates1026 Linux - General 9 06-23-2013 01:33 AM
Cant print using samba and cups to a windows printer araldit Linux - Networking 5 11-27-2007 09:21 PM
using samba, cups to print to XP on home LAN rfw62 Linux - Software 1 05-06-2005 05:04 PM
Printing through Samba and Cups. Can't connect to host. Baix Linux - Newbie 1 09-03-2004 04:43 PM
Can't print from win2k to Fedora w/Samba + CUPS WarrenWright Linux - Newbie 6 02-02-2004 09:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:26 PM.

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