LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


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

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


Hi,
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.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

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

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

[tmp]
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
local)
Then i select "LPD/LPR Host or Printer" as the Device and i enter the Device URL lpd://192.168.0.1/hpdeskjet (192.168.0.1 is xp pc)
(When i tried Windows Server via Samba and for url smb://192.168.0.1/hpdeskjet or something like smb://usernameassword@192.168.0.1/hpdeskjet 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
steve1972
Member
 
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 (http://www.cups.org/) I found these two articles detailing how to do that:

Printing to Windows Server with Samba

http://www.cups.org/articles.php?L294+I0+TMine+P1+Q

Printing to Windows Server with LPD

http://www.cups.org/articles.php?L281+I10+TMine+P1+Q

Let me know how you do.
 
Old 11-02-2005, 06:50 PM   #3
vatman
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!!
 
  


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
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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