Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2008, 05:27 PM
Alex
 
Posts: n/a
Default Printing in Slackware 9, not working properly

Hi all,

I'm running Slackware 9, and I'm trying to get my HP Laserjet 5M
working either via network or parallel.

I generally run Fluxbox, but I went into KDE and ran the GUI Printer
config to setup the printer via network. All went through fine, but
no test page.

So... back in Fluxbox, I removed /etc/printcap and removed the CUPS
file for the printer (in /etc/cups/ppd). Now I ran apsfilter and went
through the setup process for Parallel (/dev/lp0). Test page printed
great, but I'm getting:

Printer 'lp_comproom@localhost' - cannot open connection - No such
file or directory
Make sure the remote host supports the LPD protocol

I was getting the same thing with CUPS when configured to work via
network. Printer does work, and in Red Hat 9 all was dandy... but now
that I'm in Slackware, won't go.

Here's /etc/printcap:

lp_comproom|lj5mono;r=600x600;q=medium;c=gray;p=le tter;m=auto:\
:lp=/dev/lp0:\
:if=/etc/apsfilter/basedir/bin/apsfilter:\
:sd=/var/spool/lpd/lp_comproom:\
:lf=/var/spool/lpd/lp_comproom/log:\
:af=/var/spool/lpd/lp_comproom/acct:\
:mx#0:\
:sh:

lsmod does have 'lp' running:
lp 6752 0 (autoclean)

And /proc/devices has '6 lp' listed.

After reading other folks posts, I verified that /usr/bin/lpr is
pointing to lpr-lprng instead of cups:
lrwxrwxrwx 1 root root 9 Nov 24 11:36 lpr ->
lpr-lprng*

So, what do I try next?
I tried lpc reread and everything.

Thanks for any advice...

Alex.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-17-2008, 05:27 PM
Matt Payton
 
Posts: n/a
Default Re: Printing in Slackware 9, not working properly

On Thu, 08 Jan 2004 13:32:07 -0800, Alex wrote:

> Hi all,
>
> I'm running Slackware 9, and I'm trying to get my HP Laserjet 5M
> working either via network or parallel.
>
> I generally run Fluxbox, but I went into KDE and ran the GUI Printer
> config to setup the printer via network. All went through fine, but
> no test page.


Don't trust gui's, when you don't have to :-)

>
> So... back in Fluxbox, I removed /etc/printcap and removed the CUPS
> file for the printer (in /etc/cups/ppd). Now I ran apsfilter and went
> through the setup process for Parallel (/dev/lp0). Test page printed
> great, but I'm getting:
>
> Printer 'lp_comproom@localhost' - cannot open connection - No such
> file or directory
> Make sure the remote host supports the LPD protocol
>
> I was getting the same thing with CUPS when configured to work via
> network. Printer does work, and in Red Hat 9 all was dandy... but now
> that I'm in Slackware, won't go.
>
> Here's /etc/printcap:
>
> lp_comproom|lj5mono;r=600x600;q=medium;c=gray;p=le tter;m=auto:\
> :lp=/dev/lp0:\
> :if=/etc/apsfilter/basedir/bin/apsfilter:\
> :sd=/var/spool/lpd/lp_comproom:\
> :lf=/var/spool/lpd/lp_comproom/log:\
> :af=/var/spool/lpd/lp_comproom/acct:\
> :mx#0:\
> :sh:


Nothing too unusual there....

>
> lsmod does have 'lp' running:
> lp 6752 0 (autoclean)
>
> And /proc/devices has '6 lp' listed.
>
> After reading other folks posts, I verified that /usr/bin/lpr is
> pointing to lpr-lprng instead of cups:
> lrwxrwxrwx 1 root root 9 Nov 24 11:36 lpr ->
> lpr-lprng*
>
> So, what do I try next?
> I tried lpc reread and everything.
>
> Thanks for any advice...
>


So jobs print, but then you get the error ?
What is the output from :
$ lpc status
and
$ lpstat


--
- Matt -

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-17-2008, 05:27 PM
Tim Heaney
 
Posts: n/a
Default Re: Printing in Slackware 9, not working properly

alex@totallynerd.com (Alex) writes:
>
> After reading other folks posts, I verified that /usr/bin/lpr is
> pointing to lpr-lprng instead of cups:
> lrwxrwxrwx 1 root root 9 Nov 24 11:36 lpr ->
> lpr-lprng*
>
> So, what do I try next?
> I tried lpc reread and everything.


But lpc is also a CUPS program, isn't it? In addition to switching all
the various /usr/bin/lp*'s from CUPS to LPRng, you also have to do
likewise for /usr/sbin/lpc. In general, you don't want to mix CUPS and
LPRng. If switching from one to the other, I think I would just
reinstall the whole package and let it clobber whatever it needs to.
You could use the init scripts to start and stop lpd. So I think
something like

$ /etc/rc.d/rc.cups stop
$ chmod -x /etc/rc.d/rc.cups
$ installpkg lprng-3.8.22-i486-1.tgz # or whatever version you like
$ chmod +x /etc/rc.d/rc.lprng
$ /etc/rc.d/rc.lprng start

should switch you pretty thoroughly from CUPS to LPRng.

I hope this helps,

Tim
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-17-2008, 05:27 PM
Thomas Ronayne
 
Posts: n/a
Default Re: Printing in Slackware 9, not working properly



Alex wrote:
>
> So, what do I try next?
> I tried lpc reread and everything.
>
> Thanks for any advice...
>
> Alex.


You may -- may -- need to remove both packages (CUPS and LPRng) then
reinstall whichever one you want.

However, try this first. Here are two scripts that will set things
appropriately for either LPRng or CUPS (pick one, execute it logged in
as root):

First, to set up CUPS:

#!/bin/ksh
cd /usr/bin
rm lp lp-lprng lpq lpr lprm lpstat
ln -s lpstat-cups lpstat
ln -s lprm-cups lprm
ln -s lpr-cups lpr
ln -s lpq-cups lpq
ln -s lp-cups lp

Second, to set up LPRng:

#!/bin/ksh
cd /usr/bin
rm lp lp-lprng lpq lpr lprm lpstat
ln -s lpstat-lprng lpstat
ln -s lprm-lprng lprm
ln -s lpr-lprng lpr
ln -s lpq-lprng lpq
ln -s lpr lp-lprng
ln -s lp-lprng lp

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-17-2008, 05:28 PM
beldar
 
Posts: n/a
Default Re: Printing in Slackware 9, not working properly

Matt Payton wrote:

> Don't trust gui's, when you don't have to :-)


oh bollocks, Mandrake's gui CUPS configuration for printers both local
and network during install is a flawless piece of work. It gives me
choice and control, which is what I expect of Slack actually.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-17-2008, 05:28 PM
Guy Macon
 
Posts: n/a
Default Re: Printing in Slackware 9, not working properly


beldar <beldar@meepzor.com> says...
>
>Matt Payton wrote:
>
>> Don't trust gui's, when you don't have to :-)

>
>oh bollocks, Mandrake's gui CUPS configuration for printers both local
>and network during install is a flawless piece of work. It gives me
>choice and control, which is what I expect of Slack actually.


Although there is a perception that GUI-based configuration programs
are inferior, they don't have to be. It's just that making a
GIU-based configuration program that doesn't suck is harder than
making a console-based configuration program that doesn't suck,
and making a console-based configuration program that doesn't
suck is harder than making a textfile-based configuration program
that doesn't suck. A good human interface designer (a skill set
that s very rare among good coders) can make an excellent configuration
program using any of the above techniques.



--
Guy Macon, Electronics Engineer & Project Manager for hire.
Remember Doc Brown from the _Back to the Future_ movies? Do you
have an "impossible" engineering project that only someone like
Doc Brown can solve? My resume is at http://www.guymacon.com/

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-17-2008, 05:28 PM
Matt Payton
 
Posts: n/a
Default Re: Printing in Slackware 9, not working properly

On Fri, 09 Jan 2004 02:26:48 +0000, beldar wrote:

> Matt Payton wrote:
>
>> Don't trust gui's, when you don't have to :-)

>
> oh bollocks, Mandrake's gui CUPS configuration for printers both local
> and network during install is a flawless piece of work. It gives me
> choice and control, which is what I expect of Slack actually.


Hmm...The OP is using Slack, not Mandrake. I was replying to the request
for help with LPRng, not CUPS. What exactly does your reply have to do
with any of that ? Do you have any advice for the OP, or do you offer any
other help ? What's that ??? Don't know where he should click ? Oh
well, guess it must be slack's fault, not the wiz-bang gui that did who
knows what to the config files.

I *never* said don't use a gui, or gui's can't get the job done. I simply
said, don't trust them, which in this case seems to be good advice...Even
though it was half joking, which should have been obvious.

Anyway, rather than start some useless flame war, I'll just gracefully
ignore you, rather than waste any more of my time, or of anyone else's
who's actually interested in helping someone.

--
- Matt -

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-17-2008, 05:28 PM
 
Posts: n/a
Default Re: Printing in Slackware 9, not working properly

In alt.os.linux.slackware Matt Payton <mattpayton@hotmail.com> wrote:

> Hmm...The OP is using Slack, not Mandrake. I was replying to the
> request for help with LPRng, not CUPS. What exactly does your
> reply have to do with any of that ? Do you have any advice for
> the OP, or do you offer any other help ? What's that ??? Don't
> know where he should click ? Oh well, guess it must be slack's
> fault, not the wiz-bang gui that did who knows what to the config
> files.


Actually the user knows what was done to the config files by the
gui. The config files were made to work.

> I *never* said don't use a gui, or gui's can't get the job done.
> I simply said, don't trust them, which in this case seems to be
> good advice...Even though it was half joking, which should have
> been obvious.


Half joking? The type of user interface does not in any way lead
one to any reasonable conclusions about the quality of algorithms
used in the program.

> Anyway, rather than start some useless flame war, I'll just
> gracefully ignore you, rather than waste any more of my time, or
> of anyone else's who's actually interested in helping someone.


While you would characterize your contribution to this thread as
the start of a "useless flamewar," more responsible and
knowledgeable users would characterize your contribution as
misinformation.

Please stop posting.

cordially, as always,

rm

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-17-2008, 05:28 PM
 @ . 
 
Posts: n/a
Default Re: Printing in Slackware 9, not working properly


Please be aware that alt.os.linux.slackware has a resident Troll ("rm")
who purposely posts incorrect technical advice in order to get a response.
Nobody in alt.os.linux.slackware is replying anymore, so now he is focusing
on threads that are crossposted - in this case crossposted to
alt.os.linux.slackware and comp.os.linux.setup. These trollish posts
are designed to hook the Linux expert by mixing in just enough
misinformation to where you "just have to correct it." The problem with
this is that doing so just results in a dozen more trollish posts with
even more information.

I advise correcting the misinformation, but posting the correction to
comp.os.linux.setup only. By not replying to alt.os.linux.slackware,
you deny the Troll the attention he feeds on.

___
/o o\
+-------oOO---(_)---OOo-------+
| Please don't feed the Troll |
+-----------------------------+
\ _ /
|||
ooO Ooo


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 01-17-2008, 05:30 PM
Ross Axe
 
Posts: n/a
Default Re: Printing in Slackware 9, not working properly

beldar wrote:
> Matt Payton wrote:
>
>> Don't trust gui's, when you don't have to :-)

>
>
> oh bollocks, Mandrake's gui CUPS configuration for printers both local
> and network during install is a flawless piece of work. It gives me
> choice and control, which is what I expect of Slack actually.


You say that, but I had a wierd one in Mdk 9.0 not so long since. It
would just crash every time, then I tried it as a different user (bear
in mind that it su's to root anyway) and it worked. After that, it
worked as the first user as well.

Ross

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 03:11 AM.


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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642