Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 02 Sep 2015, 19:47
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Samba printing on networked Windows machine?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
Rhino


Joined: 04 May 2005
Posts: 262
Location: Cincinnati, OH, USA

PostPosted: Sun 11 Dec 2005, 13:21    Post subject:  Samba printing on networked Windows machine?  

Has anyone had any luck printing on a networked Windows machine?

I want to be able to print from Puppy using the Printer on my networked Windows machine. I have configured LinNeighborhood to mount the Windows machine and the Linux compatible printer shows up just fine. I used the printer wizard to configure the printer and tried a couple of the connection settings without so much as a peep from the printer...so they are not talking. Is this even possible using Samba, or must I have the printer attached locally?

Thanks!
Back to top
View user's profile Send private message Yahoo Messenger 
noip

Joined: 06 Oct 2005
Posts: 93
Location: Sydney

PostPosted: Sun 11 Dec 2005, 14:38    Post subject:  

Rhino,

I had a brief look at that a couple of months ago - I got as far as sending a file to the printer using the command line smbclient - which printed. From what I worked out before my lack of knowledge overcame me at the time, there is a script called smbprint (or something like that) which comes with the standard Samba suite that is used for printing.

Perhaps getting that script / program might be a way forward?

(all the above from memory - excuse any lapses)

GS

ftgs
Back to top
View user's profile Send private message 
Auda

Joined: 08 May 2005
Posts: 131
Location: New Zealand ( Christchurchish )

PostPosted: Sun 19 Feb 2006, 06:07    Post subject:  

I havent tried this with a windows printer but it does work connected to a linux fire wall ( Freesco ) running samba.
Copy this next bit and save as samba-1.0 in /.etc/pdq/interfaces run the printer setup wizard and select samba in xpdq.

Code:
interface samba {

   help = "Use this interface if your printer is connected
           to a Samba server"

   required_args "WHICH_PRINTER"

   argument {
      var = "WHICH_PRINTER"
      desc = "Which printer ?"
      help = "What your printer is called and the name of the computer its attacted to  enter them as //computername/printername"
   } 

 send_exec { smbclient -N "$WHICH_PRINTER"  -c "print -" <$INPUT }

   }



This is basicly a copy of /.etc/pdq/interfaces/appletalk-1.0 withe the main command changed to use smbclient rather than pap. I'm no script writer this is working for me with 2 different printers so I'm happy.
appletalk-1.0 has a couple of lines at the end
Code:
   #status_exec {}
   #cancel_exec {}


which I figure could send a command to your printer to test its status or cancel the print job I havent looked at them yet, if you know what to do feel free.
sbmclient -L //computersname in rxvt will list what printers are available.
Thanks noip for seeing if smbclient worked
Auda
Back to top
View user's profile Send private message 
etienne

Joined: 08 Apr 2006
Posts: 3

PostPosted: Sun 09 Apr 2006, 02:17    Post subject: printing to Windows shared printer with Samba  

Wow i got printing to work by using this.

One tricky part is reading the instructions carefully when using the printer wizard. When it says " ...and from the "Printer/Add Printer" menu you must select printer ijs-pcl-601..." (your specific name will be different" you must make sure you do select this, and follow the rest of what it says on that screen.
One confusing thing is that your printer name doesn't show up in applications when printing. In my system it shows up as "postrscript" or "generic/Postscript" but it does actually use the printer.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0637s ][ Queries: 11 (0.0125s) ][ GZIP on ]