LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 04-18-2004, 11:04 PM   #1
jqcaducifer
Member
 
Registered: Jul 2003
Distribution: Fedora 3
Posts: 133

Rep: Reputation: 15
Samba 3 Printer Server w/ WinXP


I decided to hook up my HP Officejet Pro 1150C to my linux machine instead of my Win XP, and I was hoping to be able to print to the printer from Win XP still

I installed the HP Officejet driver (hpoj) and printing from linux works fine.

Now I installed Samba 3.0.2a, and my smb.conf file displays

Code:
[global]
        workgroup = LINUXGROUP
        server string = Samba Server
        obey pam restrictions = Yes
        pam password change = Yes
        passwd program = /usr/bin/passwd %u
        passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
        unix password sync = Yes
        log file = /var/log/samba/%m.log
        max log size = 0
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        dns proxy = No
        disable spoolss = Yes
        printing = cups

[homes]
        comment = Home Directories
        valid users = %S
        read only = No
        create mask = 0664
        directory mask = 0775
        browseable = No

[printers]
        comment = All Printers
        path = /var/spool/samba
        guest ok = Yes
        printable = Yes
        browseable = No

[Printer]
        comment = Home Printer
        path = /var/spool/samba
        read only = No
        guest ok = Yes
        printable = Yes
        browseable = Yes
I used SWAT and edited it a little from the config files i've seen around the net. When I go onto my windows machine, I can successfully add this printer, and windows says that the printer is "Ready", but if I try to print something, nothing happens. There is no error message or anything else.

Previously windows displayed the message "Access denied", but following some websites, I added "disable spoolss = yes" and now it says "Ready", but without any furthur functionality.

The reason for not working I'm thinking is because of some bad config in Samba, but could it also be due to misconfig in CUPS? And how should I go about trying to debug this problem; I tried tcpdump on the linux machine to see if there was any communication between windows and linux when I go to print, and saw a little talking between the machines, but I couldn't interpret it. Any help would be greatly appreciated.
 
Old 04-18-2004, 11:34 PM   #2
RHELL
Member
 
Registered: Feb 2004
Location: Outermost mingetty
Distribution: RHEL3,RH4U4,Sol9, Sol10
Posts: 321

Rep: Reputation: 31
Could it be a print queue name problem from the Win side?
 
Old 04-19-2004, 07:19 AM   #3
level
Member
 
Registered: Jan 2004
Posts: 82

Rep: Reputation: 15
Check this thread:

http://www.linuxquestions.org/questi...amba+questions

Particularly the last post about using client driver.
 
Old 04-19-2004, 01:04 PM   #4
jqcaducifer
Member
 
Registered: Jul 2003
Distribution: Fedora 3
Posts: 133

Original Poster
Rep: Reputation: 15
Thanks, but apparently "disable spoolss" and "use client driver" says the same thing in Samba, and neither can get my printer to print from windows

How would I determine whether or not the problem is on the windows side? And is there a way to figure out if the problem is due to CUPS or SMB? Do I have to do anything special in my cupsd.conf file?
 
Old 04-19-2004, 01:32 PM   #5
jqcaducifer
Member
 
Registered: Jul 2003
Distribution: Fedora 3
Posts: 133

Original Poster
Rep: Reputation: 15
I figured it out finally:
I needed to modify settings in CUPS mime types and stuff, following the directions at

http://www.tldp.org/HOWTO/Debian-and...h_windows.html

Just in case anyone else has the same problem as me.
 
  


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
Unable to print to Samba printer from WinXP TSloth Linux - Networking 3 02-06-2005 05:13 PM
Printing to WinXP printer from linux using samba darin3200 Linux - Networking 13 08-08-2004 09:48 PM
Can't log on to samba server from winXP Stevetgn Linux - Networking 10 06-21-2004 06:37 PM
Samba printer share causes runtime errors in WinXP fearofcarpet Linux - Software 0 12-16-2003 06:57 PM
SAMBA printing to winXP Printer Parksy Linux - Networking 3 06-12-2003 11:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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