Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-30-2005, 09:42 AM   #1
LQ Newbie
Registered: Oct 2005
Distribution: slackware
Posts: 2

Rep: Reputation: 0
Strange...can't share usb printer connected to xp pc

I use a slackware Laptop connected to a pc with xp. I JUST want to print to the usb printer connected to the xp pc...

Samba works perfectly, i can share files and stuff but no printing..

The strange thing is that for once i succeded printing with cups from the slackware laptop but after restart ...nop

These are my steps (This is what it worked for just once..!!):

On WIN pc:

1) I go to "Start" --> "Settings" --> "Control Panel" --> "Add/Remove Programs" --> "Add/Remove Windows Components".
I click "Other Network File and Print Services", then click "Details"
and i select the "Print Services for UNIX" check box, then click "OK"

2) I open Network Connections
Right-click on the appropriate network interface and i select Properties.
I click on the "Advanced" tab and the "Settings" button to open the firewall settings.
On the firewall settings, i click on the "Exceptions" tab, then the "Add Port" button.
I name the service: LPD, and i enter port number 515.

3) I share the printer (name of shared printer: hpdeskjet) and i disable Norton Internet Security just for sure..

On SLACK pc:

4) First i configure samba (smb.conf).
This is what i get after running testparm:

:/# testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[printers]"
Processing section "[tmp]"
Loaded services file OK.
Press enter to see a dump of your service definitions

# Global parameters
workgroup = MYGROUP
server string = Samba Server
log file = /var/log/samba.%m
max log size = 50
dns proxy = No

comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No

path = /tmp/samba
read only = No
guest ok = Yes

5) I open cups and i add my hp deskjet 5150 printer (printer works fine when
Then i select "LPD/LPR Host or Printer" as the Device and i enter the Device URL lpd:// ( is xp pc)
(When i tried Windows Server via Samba and for url smb:// or something like smb://usernameassword@ it didn't work at all..)

With LPD as Device and with the lpd url i was able just for once to print a test page and other stuff...until i restarted..

So what's wrong??

Do i have to modprobe anything or run any extra command?

Network with cross cable is fine. I can ping both sides. I can share files in /tmp/samba but i cannot print from the slackware box....

Any ideas???

Thanks in advance.
Old 11-01-2005, 09:31 AM   #2
Registered: Jan 2005
Posts: 62

Rep: Reputation: 15
Samba or LPD

CUPS can print to Windows servers in one of two ways:

1) Samba
2) LPD

From the CUPS website ( I found these two articles detailing how to do that:

Printing to Windows Server with Samba

Printing to Windows Server with LPD

Let me know how you do.
Old 11-02-2005, 06:50 PM   #3
LQ Newbie
Registered: Oct 2005
Distribution: slackware
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for the answer steve!
The article with the LPD really helped!

I just had to enable the "TCP/IP Printing Server" at the services in the xp pc and the printer started printing!! (The option with the "Print Services for UNIX" that i mentioned before is also necessary but the one with the lpd port 515 is finally useless)

Thanks again!!


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 files on two connected linux pcs shaikhmansoor Linux - General 2 06-18-2005 03:44 PM
How can I share a USB printer connected to my Win XP computer through a Netgear RP614 PadreFabuloso Linux - Networking 12 06-15-2005 12:15 AM
Using a printer connected to win xp kponenation Slackware 4 03-01-2005 08:51 PM
Share USB printer via router pk_fox Linux - Networking 3 11-10-2004 08:49 AM
Help with a strange FTP error after being connected lostboy Linux - Networking 1 09-18-2003 09:41 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:55 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration