LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Connecting to a Samba shared printer (http://www.linuxquestions.org/questions/linux-general-1/connecting-to-a-samba-shared-printer-304268/)

Sm1ler 03-21-2005 08:15 AM

Connecting to a Samba shared printer
 
Hi All,

I am a bit of a noob but enjoy learning more and more about linux whenever I can. Thus at home I have 3 systems 1x XP box which I would like to phase out at some point, 1x small Samba server I built to share my data and run a simple HP printer 1x Fedora/Mandrake/ whatever I feel like running each week - linux box - which I use to learn on. Now the samba box works great and I have no problems sharing data and printers. The question I have is can I also connect to the printer on the samba server from my test linux box and if so how? When sharing data I normally use smbmount or for quick easy option I use LinNeighborhood and never have a problem but I can't see an option for connecting to a remote printer. Is this a option I am missing or is there a work-around? Any help would be much appreciated. Thanx Sm1ler

huibert.alblas 03-21-2005 11:23 AM

Is your "SambaServer" a small pc?
If this is the case, I would use CUPS as the printer server on you "SambaServer"
Cups suports accepting print jobs over the HTTP and IPP Protokols.

If you setup cups corectly there is no need to provide access to your printer with samba.

Windows XP and 2K can print to HTTP and IPP printers out of the box.

As Printer location on the box you want to print from you use

http://your.samba.box.ip.or.name:631/printers/$PRINTER_NAME

And thats it.

Sm1ler 03-21-2005 12:56 PM

Hi huibert and many thanks for your reply. The problem I am having is not with accessing printer on my samba server from Windows X but from my test linux clients. I have a single printer on my samba server and I want to connect and print to that device from my test linux box's. So really I am trying to print from a Linux workstation (could be mandrake fedora knoppix etc etc) to the printer on my Samba file server. How would I connect to a remote or networked printer from a linux client?

Many thanks
Sm1ler

huibert.alblas 03-21-2005 01:31 PM

If you use cups on the Linuxbox you want to print _from_
use the following URI in the cups_printer_configuration:

smb://samba_server_ip/$PRINTER_NAME

or:

smb://$USER:$PASSWD@samba_server_ip/$PRINTER_NAME

That should do the trick.


All times are GMT -5. The time now is 04:21 AM.