LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 12-31-2004, 03:03 PM   #1
wycolorado
LQ Newbie
 
Registered: Aug 2003
Posts: 29

Rep: Reputation: 15
share printer through samba (Suse 9.2)


I just setup a home network like below:

A router serves as DHCP server for a couple of PCs and a Suse box.

I also setup samba server in linux to share directories with PC windows platform. There is no domain server in this system. Am I able to setup printer in linux and share it through samba so PC can print document through samba connection? How should I do it? Thanks a lot.

David
 
Old 12-31-2004, 11:52 PM   #2
jdblick
Member
 
Registered: Sep 2004
Distribution: SUSE 10.0 OSS
Posts: 261

Rep: Reputation: 30
Connect the printer to the suse box because the windows shares don't like it and don't tell. At least I couldn't get em to talk. Even at gunpoint. If you need help here I wouldn't be surprised. Took me forever to figure out I had to say black cartridge or else crap would print for 50 pages. Don't leave your test by itself for sure cause you will support the need to recycle by yourself.

Then, you need to open some ports on firewalls. tcp 138, 445, and 631 I believe. I heard somebody say it helps to have 136:138 (for some reason the people at SuSE believe that colon is better than a dash?). then, to access the printer on the win boxes all you gotta do is follow the network links. Good luck, sorry if I was a bit verbose, it's new year's eve and I ain't sober. Tell me if you got it please.

Happy New Year!
 
Old 01-01-2005, 10:50 PM   #3
wycolorado
LQ Newbie
 
Registered: Aug 2003
Posts: 29

Original Poster
Rep: Reputation: 15
Wink

thanks for your info. I will try it out and let you know. Happy New Year to you too.

David
 
Old 01-03-2005, 08:14 AM   #4
andrewdodsworth
Member
 
Registered: Oct 2003
Location: United Kingdom
Distribution: SuSE 10.0 - 11.4
Posts: 347

Rep: Reputation: 30
Printing can be quite an issue but you can print both ways from Windows to linux box running Samba and vice-versa. If you have the Samba stuff working so that Windows boxes can see and browse the Samba shares then you're half way there.

I have two linux servers, both running Samba with one as a PDC plus several Windows machines with various printers attached. Both linux machines run CUPS and I've added the remote Windows printers to the linux boxes. I've also managed to get the CUPS to CUPS browsing working so that when printing from linux I get the remote CUPS printers appearing in the drop down box as well. Therefore I can print from linux1 to the remote linux2 printer ... which just happens to be a remote Windows printer!

Adding a remote Windows printer is pretty straightforward using the CUPS Web interface (localhost:631). The Windows printer needs to be shared and I found that you need to put a Windows username and password in the smb:// connect string in CUPS. The format I used is smb://winuser:winpassword@winmachine/winprintershare.

If you have Samba server set up using CUPS as default then you should be able to use the Windows add printer stuff to add a printer attached to the linux box. I haven't bothered trying to set up the Windows drivers on the linux box so that any Windows machine can download them, so you need to have the Windows drivers available locally on the Windows machine for this to work.

There may be firewalling issues to overcome - but provided your Windows browsing of Samba is working then everything should be fine. Port 631 is used by CUPS but I think that that should only be an issue if you are using IPP or want other CUPS servers to talk to each other.

Good luck!
 
Old 01-03-2005, 02:34 PM   #5
jdblick
Member
 
Registered: Sep 2004
Distribution: SUSE 10.0 OSS
Posts: 261

Rep: Reputation: 30
Most win boxes have most printer drivers already there.
 
  


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
Share Printer With Samba... Help gabriellai Linux - Software 7 06-15-2005 02:44 PM
Samba won't share printer ni0wn Slackware 10 11-17-2004 03:00 PM
samba printer share chongluo Linux - Newbie 4 10-12-2004 09:52 AM
Samba Printer Share vwhk Linux - Software 3 05-23-2003 01:17 AM
samba / printer share question rioguia Linux - Software 1 11-22-2002 09:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

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