(k)ubuntu: howto prevent lp module from loading at boot?

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Wed Jan 10 22:03:11 UTC 2007


On Wed, Jan 10, 2007 at 12:39:06PM -0500, Herb Richter wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> 
> I need to prevent the lp module from automatically loading at boot up on
> a kubuntu *1 workstation (so that a vmware *2 guest os can access "lpt1")
> 
> I've tried editing the /etc/modules (I assume that the new modules.conf
> or conf.modules) and/or /etc/modprobe.d/blacklist
> 
> dmesg shows a lot of lines like:
> [ 3742.434891] parport0: no more devices allowed
> [ 3742.435316] ppdev0: failed to register device!
> [ 3742.666942] parport0: no more devices allowed
> [ 3742.666947] ppdev0: failed to register device!
> [ 3742.666980] ppdev0: claim the port first
> [ 3805.511264] parport0: no more devices allowed
> 
> I suspect that some other module or daemon such as cupsys or "HP Linux
> Imaging and Printing" hplip is (re)loading lp.
> 
> To manually "rmmod lp" works but this is not an option for the
> particular user.
> 
> Should I be looking at adding this to one of the init scripts (if so
> which one? )  ...I would rather not be adding a "sudo" to a user vmware
> launcher like /usr/bin/vmware.

Something like:

-----
/etc/modprobe.d/disablelp:
alias lp off
-----

That might do it.

--
Len Sorensen
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list