LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-18-2004, 08:11 PM   #1
fclifton
Member
 
Registered: Oct 2003
Posts: 40

Rep: Reputation: 15
Slow printing Win XP to Linux


I have a RH9 box set up as a print server for 5 Win XP SP2 machines. There are 3 printers attached: a Brother HL-1250 laser printer on the parallel port, an HP Photosmart 7150 on a USB port and an HP d125xi on another parallel port. I have Samba setup to use cups, and each printer is installed using a raw driver.

When I print a Windows printer test page to the laser printer it takes about 2 sec to start printing. But when I print to either of the HP printers it takes over 3 min to start printing. It doesn't seem like it should take so long. Do I have a problem, or what?

Here is my samba config file:

[global]

workgroup = home

server string = samba server

printing = cups
printcap name = /etc/printcap.win
load printers = yes

log file = /var/log/samba/log.%m
max log size = 50

socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
large readwrite = yes

guest ok = yes
browseable = yes
security = SHARE
dns proxy = no

;[homes]
; comment = Home Directories
; browseable = no
; writeable = yes

;[Profiles]
; path = /home/profiles
; browseable = no
; guest ok = yes

[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = yes
; public = yes
writable = no
printable = yes
; create mode = 0777
; print command = /usr/bin/lpr -r =P %p -o raw %s -r
; lpq command = /usr/bin/lpstat -o %p
; lprm command = /usr/bin/cancel %p-%j
use client driver = yes

[Frank]
comment = Franks files
path = /SharedDocs/Franks/
valid users = frank
guest ok = yes
browseable = yes
writeable = yes

[All Users]
comment = All users files
path = /SharedDocs/All Users/
guest ok = yes
browseable = yes
writeable = yes
create mask = 0765
 
Old 11-18-2004, 02:16 AM   #2
Simon Edwards
LQ Newbie
 
Registered: Nov 2004
Posts: 3

Rep: Reputation: 0
Slow printing Win XP to Linux

I have found that the setting "use client driver = yes" seems to be the cause of the slow printing problem. When I comment this out and restart samba print jobs just fly through from the XP machines. Turn it back on and the connection time goes up to about 30 seconds before spooling the print job. The downside of not using "use client driver = yes" is that you get the message "Printer xyz on server Access denied, unable to connect" on the XP client printer window. Turns out that the print job still goes through quite happly however.

It would be good if someone had a solution that enabled fast printing and removing of the message "Printer xyz on server Access denied, unable to connect" from the XP client.

From a Windows 98 client, this message does not appear, and the effect of enabling "use client driver = yes" or disabling this, is that it prints much slowere when enabled.
 
Old 01-29-2005, 07:40 AM   #3
mechos
LQ Newbie
 
Registered: Jan 2005
Posts: 7

Rep: Reputation: 0
Lightbulb I hope one of these works for you

Here's a fix I haven't tried which should allow you to continue using SAMBA
- to do with junk registry entries - under hkey/current_user.. (explains why some users on same pc could print quickly while others couln't)
see http://www.edoceo.com/liber/gentoo-samba-cups.php


Here are a couple of easy solutions that bypass SAMBA:-

My fix was to switch on the CUPS-LPD service - or other LPD service that exposes your printer queue.
Add 'local printer' -> 'add new port' Standard TCP/IP -> add ip/address of printer server -> enter name of lpd printer queue -> select LPD, select 'Byte Counting'


Finally - a solution that definitely needs cups set up. I must try this.
Get your printers configured. Then go to the XP machines and uninstall all printers.
Then reinstall the printers by selecting the "A network printer" radio button and the "Connect to a printer on the internet" radio button. You then enter a URL to print directly to the CUPS printer. The format needs to be "http://<your_server>:631/printers/<printer_name>"
 
Old 01-29-2005, 09:07 AM   #4
mechos
LQ Newbie
 
Registered: Jan 2005
Posts: 7

Rep: Reputation: 0
Smile

OK - tried them all.
The registry fix didn't work - So I'm leaving Samba printing behind me.

The other two work fine. The internet printer http://<server>:631/printers/<queue> solution took a tweak to cups before it worked.
Used cupsdonf.
Make sure cups is listening on a server ip/address other than or as well as localhost:631 .
(network settings tab)
 
  


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
Mozilla slow in Linux but fast in Win. XP. Why? Ukee Linux - Networking 3 09-17-2004 03:53 PM
printing from win 98 client to samba printer on red hat linux with cups shashi_lq Linux - Networking 0 12-10-2003 02:04 AM
Always problems printing to Linux from Win and Linux cezarn Linux - General 0 10-08-2003 07:39 PM
Linux Printing Slow speed woes plockery Linux - General 4 09-23-2003 06:11 AM
Slow Linux Network Printing/But Windows is Okay! esael Linux - Networking 0 11-21-2002 03:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration