I use some software under a VMWare VM that needs to access the parallel port. If the lp
kernel module is loaded, VMWare's Player can't access the port. I need to unload the module every time I want to use it under my virtual machine, and since I never use it under Ubuntu itself, it'd be nice if it was just not loaded by default.
I've tried adding blacklist lp
to /etc/modprobe.d/blacklist.conf
and running sudo update-initramfs -k all -u
, but lsmod
shows that it's still loaded after I boot. How can I keep the module from being loaded? I'm using Ubuntu 11.10 with the 3.0.0-x kernels from the kernel team PPA.
Best Answer
Building a custom kernel is not necessary
This is my procedure (legacy app, virtualized in vmware player, needing access to parallel port dongle)
in order for the parallel port dongle to work, the Ubuntu user needs to be a member of the
lp
group. As root (orsudo
):Next, you need to prevent the kernel module
lp
from loadingEdit
/etc/modules
to ensurelp
is not loaded at boot:Blacklist
lp
module (Ubuntu 10 and later) to allow the player to have access to it.Create a file: /etc/modprob.d/blacklist-vmware.conf
Execute the following to update boot image:
Edit
/etc/default/cups
to look like this:Reboot and test!
(should be a null response)