I upgraded to RH 6.1 after the last ALUG meeting (pretty impressed so far) and my lp ports have disappeared. I have twp parallel ports lp0 and lp1 RH's print tool fails to find them. Dos however has no problems with either lpt1 or lpt2. I have tried spp, epp and ecp ports in the BIOS to no avail. RH 6.0 had an option to set up your printer during the install routine which is no more in 6.1. This shouldn't be a problem for me because RH supply a nice graphical tool for the purpose (printtool) but as I said before printtool can't find my ports. Any ideas folks, is there something I should have done on install (yes I know I could/should have used the RH cd as a coaster and installed Debian but IMHO Debian's installer is not for the faint hearted).
Any help appreciated.
Changing the subject what impact do you think the DOJ judgement against MS will have on the Open Source community?
Cheers,
BJ
[ This email came to you via the Anglian Linux User Group list ] [ If you only wish to recieve event announcements, email the ] [ SUBJECTs of "unsubscribe alug" and "subscribe alug-announce" ] [ to listserver@stu.uea.ac.uk -- We do need your support, tho' ]
Any ideas folks, is there something I should have done on install
As you know, I'm not overly familiar with RedHat, but there are a few possibilties here from the off.
(1) Do the lp0 and lp1 device nodes actually exist?
(2) Do you have permission to write to the nodes? If you type 'echo test >/dev/lp0' and it comes back with 'Permission denied', then you need to check the permissions of the lp devices to give yourself write access - you may well find, if redhat is anything like debian that the nodes are all in groups, so you can just add yourself to the 'lp' group. If it comes back as 'Device does not exist', then one of the following is likely to be the cause...
(3) Do they have the correct major and minor node numbers? When you do 'ls -l /dev/lp*', you should get the following:
crw-rw---- 1 root lp 6, 0 Mar 3 1999 /dev/lp0 crw-rw---- 1 root lp 6, 1 Mar 3 1999 /dev/lp1 crw-rw---- 1 root lp 6, 2 Mar 3 1999 /dev/lp2
Your permissions and owner/group may be different, however the '6, #' should be the same, afaik.
(4) Has your kernel got parallel port support built in? You may well find that parallel support is compiled as a module, in which case you should be able to add it to whichever file controls boot time module loading (/etc/modules.conf?). Assuming that the version of RH you're running has a 2.2.x kernel, you need to make sure that both 'parallel port support', and 'pc style hardware' are enabled in the kernel setup.
HTH - if it doesn't - get back to me, and I'll have a think.
Paul
[ This email came to you via the Anglian Linux User Group list ] [ If you only wish to recieve event announcements, email the ] [ SUBJECTs of "unsubscribe alug" and "subscribe alug-announce" ] [ to listserver@stu.uea.ac.uk -- We do need your support, tho' ]
As you know, I'm not overly familiar with RedHat, but there are a few possibilties here from the off.
(1) Do the lp0 and lp1 device nodes actually exist?
Yes AFAIK they are present in /dev and they were there physically last time I looked! Someone could have been at my motherboard with a hacksaw but I'm pretty sure I'd have noticed. :-) As I said both ports work in Dos??
(2) Do you have permission to write to the nodes? If you type 'echo test >/dev/lp0' and it comes back with 'Permission denied', then you need to check the permissions of the lp devices to give yourself write access - you may well find, if redhat is anything like debian that the nodes are all in groups, so you can just add yourself to the 'lp' group. If it comes back as 'Device does not exist', then one of the following is likely to be the cause...
I get `No such device'
(3) Do they have the correct major and minor node numbers? When you do 'ls -l /dev/lp*', you should get the following:
crw-rw---- 1 root lp 6, 0 Mar 3 1999 /dev/lp0 crw-rw---- 1 root lp 6, 1 Mar 3 1999 /dev/lp1 crw-rw---- 1 root lp 6, 2 Mar 3 1999 /dev/lp2 Your permissions and owner/group may be different, however the '6, #' should be the same, afaik.
I get
[root@bj /root]# ls -l /dev/lp* crw-rw---- 1 root daemon 6, 0 May 5 1998 /dev/lp0 crw-rw---- 1 root daemon 6, 1 May 5 1998 /dev/lp1 crw-rw---- 1 root daemon 6, 2 May 5 1998 /dev/lp2
(4) Has your kernel got parallel port support built in? You may well find that parallel support is compiled as a module, in which case you should be able to add it to whichever file controls boot time module loading (/etc/modules.conf?). Assuming that the version of RH you're running has a 2.2.x kernel, you need to make sure that both 'parallel port support', and 'pc style hardware' are enabled in the kernel
setup.
How do I find out if parellel port support has been compiled as a module? Makefile somewhere? I think it is compiled as a module and I'm pretty sure that pc style hardware is compiled as a module because make xconfig shows it that way. I reckon I'll have to recompile my kernel. Why RH 6.1 doesn't do this by default I don't know. I seem to remember reading about some install patches being available, might be worth a look.
Cheers,
BJ
[ This email came to you via the Anglian Linux User Group list ] [ If you only wish to recieve event announcements, email the ] [ SUBJECTs of "unsubscribe alug" and "subscribe alug-announce" ] [ to listserver@stu.uea.ac.uk -- We do need your support, tho' ]
as root try insmod lp ;)...
John Woodard wrote:
As you know, I'm not overly familiar with RedHat, but there are a few possibilties here from the off.
(1) Do the lp0 and lp1 device nodes actually exist?
Yes AFAIK they are present in /dev and they were there physically last time I looked! Someone could have been at my motherboard with a hacksaw but I'm pretty sure I'd have noticed. :-) As I said both ports work in Dos??
(2) Do you have permission to write to the nodes? If you type 'echo test >/dev/lp0' and it comes back with 'Permission denied', then you need to check the permissions of the lp devices to give yourself write access - you may well find, if redhat is anything like debian that the nodes are all in groups, so you can just add yourself to the 'lp' group. If it comes back as 'Device does not exist', then one of the following is likely to be the cause...
I get `No such device'
(3) Do they have the correct major and minor node numbers? When you do 'ls -l /dev/lp*', you should get the following:
crw-rw---- 1 root lp 6, 0 Mar 3 1999 /dev/lp0 crw-rw---- 1 root lp 6, 1 Mar 3 1999 /dev/lp1 crw-rw---- 1 root lp 6, 2 Mar 3 1999 /dev/lp2 Your permissions and owner/group may be different, however the '6, #' should be the same, afaik.
I get
[root@bj /root]# ls -l /dev/lp* crw-rw---- 1 root daemon 6, 0 May 5 1998 /dev/lp0 crw-rw---- 1 root daemon 6, 1 May 5 1998 /dev/lp1 crw-rw---- 1 root daemon 6, 2 May 5 1998 /dev/lp2
(4) Has your kernel got parallel port support built in? You may well find that parallel support is compiled as a module, in which case you should be able to add it to whichever file controls boot time module loading (/etc/modules.conf?). Assuming that the version of RH you're running has a 2.2.x kernel, you need to make sure that both 'parallel port support', and 'pc style hardware' are enabled in the kernel
setup.
How do I find out if parellel port support has been compiled as a module? Makefile somewhere? I think it is compiled as a module and I'm pretty sure that pc style hardware is compiled as a module because make xconfig shows it that way. I reckon I'll have to recompile my kernel. Why RH 6.1 doesn't do this by default I don't know. I seem to remember reading about some install patches being available, might be worth a look.
Cheers,
BJ
[ This email came to you via the Anglian Linux User Group list ] [ If you only wish to recieve event announcements, email the ] [ SUBJECTs of "unsubscribe alug" and "subscribe alug-announce" ] [ to listserver@stu.uea.ac.uk -- We do need your support, tho' ]
Hi John,
How do I find out if parellel port support has been compiled as a module?
There should be a file called 'lp.o' in /lib/modules/<kernel-version>/misc. Try typing 'modprobe lp' as root, and with a bit of luck the kernel will load the module for you.
If there is an lp.o, and the kernel refuses to load it, the there must be some parameters you're not giving it, although my kernel seems to be loading the module of it's own accord when required. If the kernel will load it but it still won't print, then triple check that pc style hardware is enabled.
If there isn't an lp.o, then it's *definately* recompile time I'm afraid :-/
Anyway - sleep deprevation, HTH,
Paul
[ This email came to you via the Anglian Linux User Group list ] [ If you only wish to recieve event announcements, email the ] [ SUBJECTs of "unsubscribe alug" and "subscribe alug-announce" ] [ to listserver@stu.uea.ac.uk -- We do need your support, tho' ]
Paul Russell wrote:
There should be a file called 'lp.o' in
/lib/modules/<kernel-version>/misc.
Try typing 'modprobe lp' as root, and with a bit of luck the kernel will load the module for you.
There is a module lp.o, I tried insmod lp no luck.
If there is an lp.o, and the kernel refuses to load it, the there must be some parameters you're not giving it, although my kernel seems to be loading the module of it's own accord when required. If the kernel will load it but it still won't print, then triple check that pc style hardware is enabled.
Pc style hardware wasn't compiled in my kernel so I recompiled and added that and parallel port support still no luck. :-(
If there isn't an lp.o, then it's *definately* recompile time I'm afraid
:-/
Time for a downgrade to RH6.0 I think. Just had a bit of a problem with explore2fs (ex2 partition viewer for Windows), it thinks that I have partitions hda12 through to hda99??? I actually have hda2 as / and hda3 as swap. I think its done irreparable damage to my ext2 file system so a reload is on the cards. It seems that I'm reloading RH about twice a month at the moment which goes to prove that I can't stop fiddling about and breaking it. :-) I used to reload Windows 3.0 about twice a week so I must be getting better.
I'll see if I can get the ports working on RH6.0 first and then I'll have another go at 6.1 and report back.
Cheers for your help, BJ
[ This email came to you via the Anglian Linux User Group list ] [ If you only wish to recieve event announcements, email the ] [ SUBJECTs of "unsubscribe alug" and "subscribe alug-announce" ] [ to listserver@stu.uea.ac.uk -- We do need your support, tho' ]
Got lpr going today. Loaded RH6.0 and upgraded to 6.1. This worked seems there is a flaw in the RH6.1 install routine. I think my problem was the line 'alias parport_lowlevel parport_pc' being missing from /etc/conf.modules. Quite why it wouldn't work when parallel port support was compiled in the kernel I don't know.
As an aside I have now tamed lpr to print from StarOffice - Mr Gates monstrosity is getting closer to the bin. Now if only a version of Pingu's Interactive Adventure was available for Linux...
Cheers,
BJ
[ This email came to you via the Anglian Linux User Group list ] [ If you only wish to recieve event announcements, email the ] [ SUBJECTs of "unsubscribe alug" and "subscribe alug-announce" ] [ to listserver@stu.uea.ac.uk -- We do need your support, tho' ]
John Woodard wrote:
As an aside I have now tamed lpr to print from StarOffice - Mr Gates monstrosity is getting closer to the bin. Now if only a version of Pingu's Interactive Adventure was available for Linux...
one word, vmware!!.. just do it ;)..
P.S. glad to here you got your printer working ;)
Cheers,
BJ
[ This email came to you via the Anglian Linux User Group list ] [ If you only wish to recieve event announcements, email the ] [ SUBJECTs of "unsubscribe alug" and "subscribe alug-announce" ] [ to listserver@stu.uea.ac.uk -- We do need your support, tho' ]