Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
This is a particularly newbie question, and I'm dead certain I've missed something obvious, but I need to ask.
I'm running Gentoo 1.4, and have built parallel port support into the kernel as a module. After rebooting, a dmesg gives no sign of anything to do with the parallel port being detected, or the printer (HP Laserjet 4 Plus) being detected.
First, use lsmod(8) to see if the module is loaded or not for sure (though it sure sounds like it isn't). Then check /etc/modules.conf to see if parport_pc is listed in there so that it will get loaded automatically. Next run depmod to be sure your module dependencies are up to date. All the above is just to be sure things are set up right: report any problems to this thread.
Now check if that module is really on your system. This should find it:
find /lib/modules/`uname -r` -name parport_pc.o
If there's no output, the module's not there, and you need to run "make modules_install" (or something like that) from your kernel's build directory. If it is there, try installing it with "insmod -v parport_pc" and see if that gives any enlightening output.
Given that modprobe says it can't find it, I suspect that it's really not there and you need to install the modules. Check the Gentoo installation doc again; you may have missed that step which is part of building your new kernel.
Thanks for the advice MacKtheHacK, but I decided I'd make things simpler on myself and used some spare time to compile a new kernel with parallel port support (oh, what a rhyme) built in directly, rather than as a module..
So now the new kernel's in place, but still no sign of it recognising the printer according to dmesg. lp0 doesn't even exist under /dev, which would be why my "cat /etc/hosts > /dev/lp0" didn't work.
Should the printer be automatically recognised on startup, or are there any additional steps I need to take before I can send data to /dev/lp0?
so I think that the printer port is getting loaded. When I type:
insmod -v parport_pc
I get the following output:
Symbol version prefix ''
/lib/modules/2.4.20-8/kernel/drivers/parport/parport_pc.o: init_module: Device or resource busy
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
You may find more information in syslog or the output from dmesg
Then I type dmesg | grep lp, and I get:
lp: driver loaded but no devices found
Any thoughts about any of this? should I just recompile my
kernel with printer support in there? will that solve this problem?