LinuxQuestions.org
Visit Jeremy's Blog.
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 07-17-2005, 01:44 AM   #1
mixepix
LQ Newbie
 
Registered: Jul 2005
Posts: 1

Rep: Reputation: 0
Sharing printers in Samba


I've tried to share a printer on a samba server with an samba client. I can't get it to work though. I've tried the following. I have one script called printsmb
----------------------------
#!/bin/sh
/usr/bin/a2ps -o - | /usr/bin/smbclient //linux/printer -I 192.168.0.107 -U username%password -c ”print -”
------------------------------------

And then I put this in printcap

---------------------------------------------
smbprinter: \
:sh:mx#0:of=/usr/local/lib/printsmb:\
:lp=/dev/null:sd=/var/spool/smbprinter:lf=/var/log/lpd-errs:
-----------------------------------------------------------------------

If I try to print by typing "lpr -Psmbprinter filename" nothing happens. I can use the code in printsmb and print files from shell if I replace ”print -” with ”print filename”.

Any tips?
 
  


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 Printers and Drivers with Samba JonathonReinhart Linux - Networking 1 11-27-2005 03:37 AM
fax and printers sharing [ITA]freeware Linux - Software 2 04-24-2005 09:05 PM
cups sharing printers error quarry_06 Linux - Networking 0 10-26-2004 09:32 AM
Sharing Folders and Printers with Passwords hyperriven Linux - Networking 7 10-03-2004 05:57 PM
fedora not sharing printers / files through samba properly? wh1t3d3m0n Fedora 1 09-02-2004 04:00 PM

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

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