LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 12-15-2007, 08:15 AM   #1
newfish
LQ Newbie
 
Registered: Jan 2004
Location: Oklahoma
Distribution: SuSe 10.0,Fedora 7 x86_64
Posts: 29

Rep: Reputation: 15
sharing linux printer with windoz


Hello all,
After days of searching threads and not finding anything I need advice on what I might be overlooking. I tried unsuccessfully to connect to my Linux box and install a DeskJet 970 on a Vista machine. I can see the shared folders on Linux through windows, access them, use them, but when connecting to the printer it says make sure you've typed the name correctly and that the printer is connected to a network. I've used webmin, SWAT and tried to edit the smb.conf manually. Here's what I'm working with now. Any help is much appreciated.

# Samba config file created using SWAT
# from 0.0.0.0 (0.0.0.0)
# Date: 2007/12/15 06:11:43

[global]
workgroup = MSHOME
server string = My Lil Linux Box
smb passwd file = /etc/samba/smbpasswd
log file = /var/log/samba/%m.log
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = cups





[Downloads]
comment = Download
path = /home/Michael/Download
read only = No
guest ok = Yes

[homes]
comment = My Home Directory
read only = No
guest ok = Yes

[printers]
comment = All Printers
path = /var/spool/cups/tmp
guest ok = Yes
printable = Yes
browseable = No
If there is something I've missed I'll gladly repost
Much regards,
 
Old 12-15-2007, 10:33 AM   #2
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,197

Rep: Reputation: 528Reputation: 528Reputation: 528Reputation: 528Reputation: 528Reputation: 528
After I read your post, it is not clear to me if the printer is attached to the linux box or to the windoze box. I'm assuing by what you posted, it is attached to the linux box.

You did not state if the printer works on linux. That is a pre-req to getting newtwork printing going.

After looking at your samba server file, I think you need a line telling linux how to handle a print file from a client with a print driver. It may look like this.

Quote:
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
This goes in the Printers section.

I would also suggest this link as a very good spot to find any other issues with printing.

http://www.oreilly.com/catalog/samba2/book/ch10.html

When I install a linux printer on windoze, I do not bother to try and download the driver from linux to windoze. I would expect windoze would have a driver for that printer, if not it would come with the printer CD. So install the driver if you need to on windoze, and when you add the printer on windoze, use the driver on windoze.

M$ doesn't like to make it clear there is no need to download the driver from the server, you can install it locally.

Hope this helps.
 
Old 12-15-2007, 11:13 AM   #3
newfish
LQ Newbie
 
Registered: Jan 2004
Location: Oklahoma
Distribution: SuSe 10.0,Fedora 7 x86_64
Posts: 29

Original Poster
Rep: Reputation: 15
Hi Cliff
I've been up most of the night trying to figure this out. Locally the printer works fine. I finally got it to connect to the printer, but theres no print output from the windoz machine to the linux. I going to check the other resource you sent me.

# Samba config file created using SWAT
# from 0.0.0.0 (0.0.0.0)
# Date: 2007/12/15 08:53:11

[global]
workgroup = MSHOME
server string = My Lil Linux Box
smb passwd file = /etc/samba/smbpasswd
log file = /var/log/samba/%m.log
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = cups
printing = cups
print command =
lpq command = %p
lprm command =

[Downloads]
comment = Download
path = /home/Michael/Download
read only = No
guest ok = Yes

[homes]
comment = My Home Directory
read only = No
guest ok = Yes

[printers]
printer = DESKJET_970C
browseable = no
printable = yes
print command = lpr-cups -P %p -o raw %s -r
# using client side printer drivers
writable = yes
path = /var/spool/samba
guest ok = Yes
use client driver = yes
comment = All Printers
 
Old 12-15-2007, 01:57 PM   #4
newfish
LQ Newbie
 
Registered: Jan 2004
Location: Oklahoma
Distribution: SuSe 10.0,Fedora 7 x86_64
Posts: 29

Original Poster
Rep: Reputation: 15
Thanks Cliff for all your help. your advice along with alot or searching and the problem was uncovered. I looked for/etc/cups/mime.convs and then uncommented this;
application/octet-stream application/vnd.cups-raw 0 - uses the octet -stream to send info to print from the windoz client

Also uncomment the following line from this file..../etc/cups/mime.types: if its not already.
application/octet-stream
restarted cups with the command: service cups restart and bingo.
Thanks again,
NewFish
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sharing Printer in Linux juboba Linux - Networking 2 06-15-2007 01:08 AM
Sharing Linux printer with Mac Chinook Linux - Networking 4 01-26-2006 01:55 AM
Printer sharing problems with Linux and PC thefisherman Linux - Networking 2 09-21-2004 02:07 AM
sharing Windows printer with linux 1kyle Linux - Networking 2 02-19-2004 03:05 PM
Sharing Linux printer via Netatalk paranoia1980 Linux - Networking 3 08-05-2003 01:42 PM

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

All times are GMT -5. The time now is 01:08 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration