Unix Technical Forum

Parallel port & CUPS - Newbie!

This is a discussion on Parallel port & CUPS - Newbie! within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hi, I've acquired an old Cyrix 233, and installed Slackware 10. I want to use this box as a ...


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, 02:49 PM
Rural Computer Centre
 
Posts: n/a
Default Parallel port & CUPS - Newbie!

Hi,

I've acquired an old Cyrix 233, and installed Slackware 10. I want to use
this box as a SAMBA, Print & SMTP server.

I have set up SAMBA and it is running great.
However, I am having trouble with CUPS. When I go to add a printer (using
lynx pointing at localhost:631) I am not presented with an option of
parallel port. It offers USB (there aren't even any USB ports on the
machine!), Ipp etc, but no Parallel connection.

I should mention that the parallel cable I am using is NOT bi-directional.
Could this be the issue? Or am I correct in thinking the computer has not
detected the parallel port? The parallel port IS enabled in BIOS. How do I
check to see if Slackware sees it?

Thanks in advance,
Robin


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 02:49 PM
Blumf
 
Posts: n/a
Default Re: Parallel port & CUPS - Newbie!

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Rural Computer Centre wrote:

> I have set up SAMBA and it is running great.
> However, I am having trouble with CUPS. When I go to add a printer (using
> lynx pointing at localhost:631) I am not presented with an option of
> parallel port. It offers USB (there aren't even any USB ports on the
> machine!), Ipp etc, but no Parallel connection.


Look in the /etc/rc.d/rc.modules file, you need to uncomment some lines.

Blumf

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBIhxfMid3IcxolsoRAsI0AJ9iPX68mlLRTfZAZv67VK SEsyB7PACeJsRm
zKN6zzyupjmDphcVovzhn/8=
=8pO+
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 02:49 PM
Rural Computer Centre
 
Posts: n/a
Default Re: Parallel port & CUPS - Newbie!

Well....I've done something right!

I ran the hotplug from the command line, then stopped CUPS & restarted.
Parallel Port appeared, and it new the Printer ID (HP Deskjet 1220C). But
it isn't actually printing, not even a test page.

And although my Windows 2000 box can see it, it says "the server on which
the printer is installed does not have the correct drivers installed......"
Should I get this message, or do I need to set up windows drivers on each
machine that will use it? Or is it a SAMBA config issue?

Robin

"Rural Computer Centre" <lancastersite@btconnectdot.com> wrote in message
news:cft614$koh$1@hercules.btinternet.com...
> Hi,
>
> I've acquired an old Cyrix 233, and installed Slackware 10. I want to use
> this box as a SAMBA, Print & SMTP server.
>
> I have set up SAMBA and it is running great.
> However, I am having trouble with CUPS. When I go to add a printer (using
> lynx pointing at localhost:631) I am not presented with an option of
> parallel port. It offers USB (there aren't even any USB ports on the
> machine!), Ipp etc, but no Parallel connection.
>
> I should mention that the parallel cable I am using is NOT bi-directional.
> Could this be the issue? Or am I correct in thinking the computer has not
> detected the parallel port? The parallel port IS enabled in BIOS. How do

I
> check to see if Slackware sees it?
>
> Thanks in advance,
> Robin
>
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 02:49 PM
MikeyD
 
Posts: n/a
Default Re: Parallel port & CUPS - Newbie!

Rural Computer Centre wrote:

> Well....I've done something right!
>
> I ran the hotplug from the command line, then stopped CUPS & restarted.
> Parallel Port appeared, and it new the Printer ID (HP Deskjet 1220C). But
> it isn't actually printing, not even a test page.


You've selected it and run through the whole setup thing? Make sure you
added all users to the allowed users list. Check permissions on the
devices.
>
> And although my Windows 2000 box can see it, it says "the server on which
> the printer is installed does not have the correct drivers
> installed......" Should I get this message, or do I need to set up windows
> drivers on each
> machine that will use it? Or is it a SAMBA config issue?
>

It's samba config. But you need your cups config sorted first. It might
simply be the cups problem.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-19-2008, 02:50 PM
Robert
 
Posts: n/a
Default Re: Parallel port & CUPS - Newbie!

Rural Computer Centre wrote:

> Well....I've done something right!
>
> I ran the hotplug from the command line, then stopped CUPS &
> restarted.
> Parallel Port appeared, and it new the Printer ID (HP Deskjet 1220C).
> But it isn't actually printing, not even a test page.
>
> And although my Windows 2000 box can see it, it says "the server on
> which the printer is installed does not have the correct drivers
> installed......" Should I get this message, or do I need to set up
> windows drivers on each
> machine that will use it? Or is it a SAMBA config issue?


Let's get it printing locally first, then I'll help you setup the shared
part.

Can you print local? If not look in /etc/rc.d/rc.modules and uncomment
the _3_sections_ concerning the parallel port. You may have done this
since the port is visable. Anyway, check this first and execute
rc.modules so these will take effect.

cupsd.conf
Cups is setup to only allow local printing. You need to allow externals
access. To allow access edit /etc/cups/cupsd.conf. At the bottom look
for;
<Location />
.... original stuff here
# add this
Allow From All
# or just your network systems
# Allow From 192.168.2.*
</Location

Then restart rc.cups

Samba:
load printers = yes
printcap name = /etc/printcap
printing = cups
[printers]
comment = printers
path = /var/spool/samba
browseable = yes
guest ok = yes
writable = yes
printable = yes
use client drivers = yes

Samba should reread and apply changes every 60 secs, or restart rc.samba

On your windows box, just select the generic DeskJet


Anyway, that's how I do it, if I type it right.

--
Robert - slackware

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-19-2008, 02:50 PM
Ayaz Ahmed Khan
 
Posts: n/a
Default Re: Parallel port & CUPS - Newbie!

"Rural Computer Centre" typed:

> I should mention that the parallel cable I am using is NOT bi-directional.


How can you tell that the cable isn't bi-directional?

--
Ayaz Ahmed Khan
root@t21:~# rm -rf /mnt/windows/*
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-19-2008, 02:51 PM
Rich Grise
 
Posts: n/a
Default Re: Parallel port & CUPS - Newbie!

Ayaz Ahmed Khan wrote:

> "Rural Computer Centre" typed:
>
>> I should mention that the parallel cable I am using is NOT
>> bi-directional.

>
> How can you tell that the cable isn't bi-directional?
>

How can a cable even BE non-bi-directional?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-19-2008, 02:51 PM
Rob
 
Posts: n/a
Default Re: Parallel port & CUPS - Newbie!

Rich Grise wrote:
> Ayaz Ahmed Khan wrote:
>
>
>>"Rural Computer Centre" typed:
>>
>>
>>>I should mention that the parallel cable I am using is NOT
>>>bi-directional.

>>
>>How can you tell that the cable isn't bi-directional?
>>

>
> How can a cable even BE non-bi-directional?
>

OK. I've not been in work since I last posted, but will have a look at
those suggestions in the morning.

Re the cable : when plugged into a Windoze 2000 Pro machine, it cannot
report on the ink levels as the "cables is not bi-directional". That is
what it says!

Cheers,
Rob
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-19-2008, 02:51 PM
Rich Grise
 
Posts: n/a
Default Re: Parallel port & CUPS - Newbie!

Rob wrote:

> Rich Grise wrote:
>> Ayaz Ahmed Khan wrote:
>>
>>
>>>"Rural Computer Centre" typed:
>>>
>>>
>>>>I should mention that the parallel cable I am using is NOT
>>>>bi-directional.
>>>
>>>How can you tell that the cable isn't bi-directional?
>>>

>>
>> How can a cable even BE non-bi-directional?
>>

> OK. I've not been in work since I last posted, but will have a look at
> those suggestions in the morning.
>
> Re the cable : when plugged into a Windoze 2000 Pro machine, it cannot
> report on the ink levels as the "cables is not bi-directional". That is
> what it says!
>


OK, it's just stupid software. What this means is that either the
cable has missing conductors for the status lines, or your lpt
port isn't set bidirectional in the BIOS.

Go to the BIOS setup screen when you boot, and somewhere under
advanced options is the parallel port configuration. Select EPP
(or maybe ECP), which should support bidirectional.

Good Luck!
Rich

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-19-2008, 02:52 PM
Rural Computer Centre
 
Posts: n/a
Default Re: Parallel port & CUPS - still no joy!

I tried all the suggestions made by Robert, and seemed to get a step closer.
I still could not print locally, but when I sent a print from a Windows box,
the printer fired up and spat out a blank sheet. Encouraging all the same!

However, when I rebooted, eth0 was down, and could not be fired up! I went
back to rc.modules and uncommented everything regarding parallel port, and
that brought the network back up, so I figured there must be a problem in
that section of rc.modules.

Have edited rc.modules again, but still no joy. Machine is firing up OK,
Cups reports the printer is idle, but even cups (via Lynx :631) will not do
anything when I send a test page. Next step....try to re-install the
printer on CUPS I guess.

Rob


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 10:43 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