LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 05-01-2007, 03:29 PM   #1
turbocueca
LQ Newbie
 
Registered: Jan 2007
Distribution: Gutsy Gibbon
Posts: 7

Rep: Reputation: 0
Sharing CUPS Printer with SAMBA to Windows machine


Hello! I've been trying lately to share my printer (HP Deskjet 815C) to a Windows XP machine on the network. I'm using the printer in Slackware 11.0 via CUPS, and I have a file sharing network enabled with SAMBA, working perfectly. I just wanted to share my printer but after many research and attempts I could only make the printer appear on windows xp network places but without any use.

The main problem consists in the following: I'm able to add the printer in windows machine, but I can't print anything and when I open the printer properties, it says on the title bar "Access denied, unable to connect".

If someone could help me, please, I will be very grateful.

Last edited by turbocueca; 05-02-2007 at 09:35 AM.
 
Old 05-01-2007, 04:50 PM   #2
Unmindfulawe
Member
 
Registered: Aug 2005
Location: WI
Distribution: openSUSE 11.1/ TinyMe
Posts: 51

Rep: Reputation: 16
I had the same problem in openSUSE 10.2. I cannot remember where I found the solution for this problem so I cannot give credit to where I found the source but here's how I solved that problem.
Edit the /etc/samba/smb.conf file with your fav text editor. Navigate to the section labeled "[printers]". Add or modify the following two entries under that section so that it looks exactly as shown below.

browseable = Yes
use client driver = Yes

restart your smb server and your CUPS server. As the root user I use the following command.

/etc/init.d/smb restart
/etc/init.d/cups restart

Those command may be different in your distro. If that solution does not work also try the following.

Modify your /etc/samba/smb.conf file and navigate to the section named [global]. Modify the file to reflect the below option.

cups options = raw

again restart your smb server and your CUPS server.

I hope that helps. Have fun.
 
Old 05-02-2007, 09:39 AM   #3
turbocueca
LQ Newbie
 
Registered: Jan 2007
Distribution: Gutsy Gibbon
Posts: 7

Original Poster
Rep: Reputation: 0
Well, this simple line: browseable = Yes , solved the "Access Denied" problem. However now I try to print from windows, or try a testing page, but no response comes from my printer. I check CUPS web interface and no jobs are active. I guess Samba isn't sending the request to CUPS. What should I look for to solve this?
 
Old 05-02-2007, 09:45 AM   #4
turbocueca
LQ Newbie
 
Registered: Jan 2007
Distribution: Gutsy Gibbon
Posts: 7

Original Poster
Rep: Reputation: 0
By the way

By the way, here is my current smb.conf:

Code:
[global]
(...)
load printers = yes
printing = cups
printcap name = cups
cups options = raw
Code:
[printers]
comment = All Printers
path= /var/spool/samba
browseable = yes
public = yes
guest ok = yes
writeable = no
printable = yes
create mode = 0700
use client driver = yes
 
Old 05-02-2007, 11:00 AM   #5
Unmindfulawe
Member
 
Registered: Aug 2005
Location: WI
Distribution: openSUSE 11.1/ TinyMe
Posts: 51

Rep: Reputation: 16
Ok, my suggestion to you, if you have not done so already, is to setup a static ip configuration within your network as I have found this to be the most reliable way of setting up a network containing a network printer. For instance the machine I am working on right now has a static ip of 192.168.1.3 my windows 2000 box is set up with a static ip of 192.168.1.128, and finally my print server is set up with a static ip of 192.168.1.4. So, on my print server box I modified the /etc/samba/smb.conf file under the section [global], as shown in the following, to allow both ip addresses 192.168.1.3, 192.168.1.128. Heres the option for that.

"hosts allow = 192.168.1.3, 192.168.1.128"

I then restarted my smb server and CUPS server and that allowed the remote machines to print to the print server. Let me know how that goes.
 
Old 05-02-2007, 04:16 PM   #6
turbocueca
LQ Newbie
 
Registered: Jan 2007
Distribution: Gutsy Gibbon
Posts: 7

Original Poster
Rep: Reputation: 0
Same thing

It is the same as don't having "hosts allow", I was already able to access the network from my windows machine, see the printer, connect to the preinter successfully, it just doesn't print what I request to and jobs aren't added either.
 
Old 05-02-2007, 04:19 PM   #7
Unmindfulawe
Member
 
Registered: Aug 2005
Location: WI
Distribution: openSUSE 11.1/ TinyMe
Posts: 51

Rep: Reputation: 16
Did you try changing the driver for the printer in Windows XP? For instance I have an officejet T45 and in windows 2000 I had to change the driver to officejet R45.

Last edited by Unmindfulawe; 05-02-2007 at 04:22 PM.
 
Old 05-05-2007, 05:02 AM   #8
turbocueca
LQ Newbie
 
Registered: Jan 2007
Distribution: Gutsy Gibbon
Posts: 7

Original Poster
Rep: Reputation: 0
Sorry for answering too late, my life is a bit busy. Well, today I just tried printing again and it did it! I don't know why, maybe one of the computers needed to be restarted, I only know that now it works. Thank you very much for your help, I'll never forget the browseable=yes.
 
Old 05-05-2007, 10:41 AM   #9
Unmindfulawe
Member
 
Registered: Aug 2005
Location: WI
Distribution: openSUSE 11.1/ TinyMe
Posts: 51

Rep: Reputation: 16
I'm glad that it worked out for you. You're welcome.
 
  


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
Trouble Sharing Local Printer using Samba and CUPS for Windows systems Electro Linux - Networking 3 01-17-2007 09:54 PM
sharing CUPS printer with SAMBA shellcode Linux - General 14 07-30-2005 09:15 AM
Samba printer sharing and CUPS subaruwrx Linux - Networking 5 08-27-2004 11:37 AM
CUPS windows printer sharing - Connection Refused dafatdude Linux - Networking 1 06-06-2004 04:44 PM
Sharing a printer on a windows machine Mattouf Linux - Networking 6 06-22-2002 10:33 PM


All times are GMT -5. The time now is 05:03 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