Unix Technical Forum

Printer Initializing

This is a discussion on Printer Initializing within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hi I don't know if this is a windows question or a Linux question so please bear with me ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 08:31 AM
Morten Lundstrøm
 
Posts: n/a
Default Printer Initializing

Hi

I don't know if this is a windows question or a Linux question so please
bear with me if it's the wrong group :-)

I've used APS filter to setup my Deskjet 950 on my PC running slackware.
I've used Samba to share it on a windows network.
Problem is it takes at least 1 minute for the server to return 'all ok' to
the PC's running windows.
Windows print manager hangs at 'initializing' for about a minute and then
starts to print.
Is it possible to speed up the 'All ok' signal from Samba?
Second, if I use APSfilter is it then the settings from APSfilter or the
settings from the windows driver that is used?
I would like to be able to pass on the driver settings from windows :-)

Thanks
Morten

--
Replace .hej with .com in my e-mail prior to sending e-mail.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 08:31 AM
Paulo R. Dallan
 
Posts: n/a
Default Re: Printer Initializing

Morten Lundstrøm wrote:

> Hi
>
> I don't know if this is a windows question or a Linux question so please
> bear with me if it's the wrong group :-)
>
> I've used APS filter to setup my Deskjet 950 on my PC running slackware.
> I've used Samba to share it on a windows network.
> Problem is it takes at least 1 minute for the server to return 'all ok' to
> the PC's running windows.
> Windows print manager hangs at 'initializing' for about a minute and then
> starts to print.
> Is it possible to speed up the 'All ok' signal from Samba?
> Second, if I use APSfilter is it then the settings from APSfilter or the
> settings from the windows driver that is used?
> I would like to be able to pass on the driver settings from windows :-)
>
> Thanks
> Morten
>

Well, don't know about the linux part (lol - I'm still learning a lot about
Linux, especially printers configuration systems), but I used to have the
same problem when I had 2 Win98 connected through a direct cable (ethernet
connection), with resources (and, of course, the printer) shared. It might
be a Windows thing (it could be configuration, but as Linux /really/ runs a
network better, didn't bother. Soon changed all Linux and left Wintendo on
a dual boot in one of the machines ).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 08:32 AM
Matt Payton
 
Posts: n/a
Default Re: Printer Initializing

Morten Lundstrøm wrote:

[...]

> I've used APS filter to setup my Deskjet 950 on my PC running slackware.
> I've used Samba to share it on a windows network.
> Problem is it takes at least 1 minute for the server to return 'all ok' to
> the PC's running windows.
> Windows print manager hangs at 'initializing' for about a minute and then
> starts to print.
> Is it possible to speed up the 'All ok' signal from Samba?


Not really sure about this part, but maybe making the change I suggest
below will help...

> Second, if I use APSfilter is it then the settings from APSfilter or the
> settings from the windows driver that is used?


Both...Windows will format the job according to what driver you have
installed, then it will get to the queue on Linux, which will apply any
of it's formatting/filtering, etc. This *may* be the reason for the
slow response, since APSFilter has to format already formatted jobs...

> I would like to be able to pass on the driver settings from windows :-)


I'd suggest creating a second queue on Linux that does no
formatting...IE no APSFilter. then print only to that queue via Samba.
You can do this by removing the [Printers] section from smb.conf, and
adding a share just for your "raw" queue...Have the share name match the
queue name you set up in CUPs, LPRng, whatever lpd flavor you're using...
So, for example, I have a HP LaserJet 4l attached to a Samba server,
with 2 entries in my printcap. the "lp" queue is for printing directly
from *nix. I added an "lpwin" queue, which points to the same printer,
but does no filtering. then in my smb.conf I have :
[lpwin]
comment = HP Laser 4l
path = /var/spool/samba
guest ok = Yes
printable = Yes
browseable = Yes

Tweak settings as needed. Samba clients "see" only the lpwin share, and
can connect and print just fine, using only the Windows 4l drivers.

You can also try telling Windows the printer is a generic text device,
so it ( WIndows ) would hopefully do less formatting. Then continue to
print to the queue that's using APSFilter...but I've had limited success
with that approach...YMMV.


--
- Matt -
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 08:32 AM
Morten Lundstrøm
 
Posts: n/a
Default Re: Printer Initializing

<snip stuff I wrote>
> Well, don't know about the linux part (lol - I'm still learning a lot

about
> Linux, especially printers configuration systems), but I used to have the
> same problem when I had 2 Win98 connected through a direct cable (ethernet
> connection), with resources (and, of course, the printer) shared. It might
> be a Windows thing (it could be configuration, but as Linux /really/ runs

a
> network better, didn't bother. Soon changed all Linux and left Wintendo on
> a dual boot in one of the machines ).

Both PC's experiencing it are running win2k with SP4 :-)
Heh, maybe my mothers Win2k PC should have an accidental 'crash' and then I
should set her up on a linux desktop as all she use is mail and MSoffice,
perhaps that would make her stop nagging about the slow printer if it speed
things up. ;-)
However I'm afraid it'll cause some incompatibilities with the encryption
scheme used by her bank...
I am a bit of a gamer myself, so I'll stick with windows for a little
longer, however I have thought of setting up Linux on another partition to
make it my work-only system, that way when windows needs a reinstall(again)
I have the ability to do my homework without reinstalling everything.
I'll see when my HD returns from Hitachi (Yep I managed to get it replaced
under warranty even though it was a result of a bad PSU, flicking on and off
every second for an entire day is bad for harddrives.. Thunderstorms suck!)

/Morten


--
Replace .hej with .com in my e-mail prior to sending e-mail.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-19-2008, 08:32 AM
Morten Lundstrøm
 
Posts: n/a
Default Re: Printer Initializing

<snip>
> > Second, if I use APSfilter is it then the settings from APSfilter or the
> > settings from the windows driver that is used?

>
> Both...Windows will format the job according to what driver you have
> installed, then it will get to the queue on Linux, which will apply any
> of it's formatting/filtering, etc. This *may* be the reason for the
> slow response, since APSFilter has to format already formatted jobs...


You have a point, that might be what's doing it, afterall it's only a celly
400 with 128 megs of RAM.

> > I would like to be able to pass on the driver settings from windows :-)

>
> I'd suggest creating a second queue on Linux that does no
> formatting...IE no APSFilter. then print only to that queue via Samba.
> You can do this by removing the [Printers] section from smb.conf, and
> adding a share just for your "raw" queue...Have the share name match the
> queue name you set up in CUPs, LPRng, whatever lpd flavor you're using...
> So, for example, I have a HP LaserJet 4l attached to a Samba server,
> with 2 entries in my printcap. the "lp" queue is for printing directly
> from *nix. I added an "lpwin" queue, which points to the same printer,
> but does no filtering. then in my smb.conf I have :
> [lpwin]
> comment = HP Laser 4l
> path = /var/spool/samba
> guest ok = Yes
> printable = Yes
> browseable = Yes
>
> Tweak settings as needed. Samba clients "see" only the lpwin share, and
> can connect and print just fine, using only the Windows 4l drivers.
>


I see, I have to look into configuring CUPS as I've never done that before,
I was instructed to use apsfilter when I set up samba (Maybe because I'm a
clueless slackware newbie? ;-)) I found apsfilter very easy, but if CUPS is
just a matter of editing a few config files then it shouldn't be too much of
a hassle :-)

<snip>

/Morten

--
Replace .hej with .com in my e-mail prior to sending e-mail.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-19-2008, 08:32 AM
Matt Payton
 
Posts: n/a
Default Re: Printer Initializing

Morten Lundstrøm wrote:

[...]

>
> I see, I have to look into configuring CUPS as I've never done that before,
> I was instructed to use apsfilter when I set up samba (Maybe because I'm a
> clueless slackware newbie? ;-)) I found apsfilter very easy, but if CUPS is
> just a matter of editing a few config files then it shouldn't be too much of
> a hassle :-)


Which lpd server you use shouldn't really matter. APSFilter is just
that...A filter, which may be used by the lpd daemon to format jobs.
And it does that reasonably well, and includes a nice script front-end
to set up queues.

So, assuming you're not using CUPS, I'd guess you have LPRng
installed...And rather than messing with CUPS just yet, I'd recommend
trying to get it going with the existing setup...You can always switch
to CUPS later, should you decide to.
In that case, you can just add an entry to /etc/printcap something like...

lpwin:\
:sd=/var/spool/lpd/lpwin:\
:mx#0:\
:sh:\
:sf:\
:lp=/dev/lp0:

Then run checkpc -f which should create the spool directories for you,
with the correct permissions.
Note that the above assumes the printer is connected to lp0, and I'm
pretty sure sf is depricated in later versions of LPRng...I just haven't
gotten around to changing it. So again, tweak as needed. Then restart
Samba if needed, and point the Win clients at the new share.

My point really is, it should be simple to add a queue to your existing
setup, to test if *not* using a filter on the Linux side improves Samba
printing performance.

--
- Matt -
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-19-2008, 08:33 AM
Morten Lundstrøm
 
Posts: n/a
Default Re: Printer Initializing

<snip>
>
> Which lpd server you use shouldn't really matter. APSFilter is just
> that...A filter, which may be used by the lpd daemon to format jobs.
> And it does that reasonably well, and includes a nice script front-end
> to set up queues.
>
> So, assuming you're not using CUPS, I'd guess you have LPRng
> installed...And rather than messing with CUPS just yet, I'd recommend
> trying to get it going with the existing setup...You can always switch
> to CUPS later, should you decide to.
> In that case, you can just add an entry to /etc/printcap something like...


Thanks, I'll try your ideas when I have time in the weekend :-)

Once again thank you for your time
/Morten


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:20 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com