LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 03-21-2005, 08:15 AM   #1
Sm1ler
Member
 
Registered: Apr 2004
Location: UK
Distribution: Fedora Core (all), Knoppix, RHEL, Centos, Debian
Posts: 100

Rep: Reputation: 16
Question 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
 
Old 03-21-2005, 11:23 AM   #2
huibert.alblas
Member
 
Registered: Jan 2004
Location: Duesseldorf /Germany
Distribution: Gentoo amd64 / Debian
Posts: 226

Rep: Reputation: 30
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.
 
Old 03-21-2005, 12:56 PM   #3
Sm1ler
Member
 
Registered: Apr 2004
Location: UK
Distribution: Fedora Core (all), Knoppix, RHEL, Centos, Debian
Posts: 100

Original Poster
Rep: Reputation: 16
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
 
Old 03-21-2005, 01:31 PM   #4
huibert.alblas
Member
 
Registered: Jan 2004
Location: Duesseldorf /Germany
Distribution: Gentoo amd64 / Debian
Posts: 226

Rep: Reputation: 30
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.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing to a windows shared printer using Samba Maskkkk Slackware - Installation 4 09-02-2009 11:39 AM
Connecting to a windows shared printer rbm Linux - Networking 22 12-30-2005 10:30 AM
Help printer from a samba shared printer from linux (using cups) epod69 Linux - Networking 3 12-04-2005 10:44 PM
Windows printing to samba shared printer?l rohang Linux - Networking 4 09-01-2004 11:20 PM
connecting to a windows shared printer in slackware 9.1 rogue_jedi Linux - Hardware 2 03-16-2004 10:07 AM


All times are GMT -5. The time now is 11:02 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration