How To Disable (Blacklist) Your Laptop Webcam & Microphone in Linux

Since Linux isn’t spyware and do not contain any backdoor like other popular operating system, that’s another reason we all love to use this operating system. It is bit difficult for surveillance people to install an application on your Linux without special permissions or spyware doesn’t work obviously on Linux like does on other OS’s but if you install something from untrusted source or you physically give access to somebody to your system then there might be chances that you can be victim of surveillance and the whole scenario could be nightmare for you. There are couple of things you can do to prevent it like do OS re-install or blacklist ports and non-removable devices like webcam and microphone, by the way you should physically cover your laptop and phone camera with sticker. So without further we go, lets start doing it.

How to Blacklist/disable Webcam?

To Disable/blacklist your laptop webcam in any Linux distribution/Ubuntu/Linux Mint open Terminal and copy the following commands in the Terminal:

Terminal Commands:
sudo sh -c “echo ‘blacklist uvcvideo’ >> /etc/modprobe.d/blacklist.conf”

To Enable/white-list your laptop webcam in any Linux distribution/Ubuntu/Linux Mint open Terminal and copy the following commands in the Terminal:

Terminal Commands:
sudo sed -i ‘/blacklist uvcvideo/d’ /etc/modprobe.d/blacklist.conf

How to Blacklist/disable Mic/Microphone?

To disbale your mic, you have to go alone with following steps since it’s not possible to write for each driver.

You can disable your microphone as well but you need to know which drivers your sound card is using, run the following command to find out:

Terminal Commands:
less /proc/asound/modules

Now recognize your sound card and loaded module and replace it in the following command (just like I did in the previous screenshot:
Disable/blacklist your microphone using this command:

Terminal Commands:
sudo sh -c “echo ‘blacklist YOUR_AUDIO_DEVICE‘ >> /etc/modprobe.d/blacklist.conf”

To enable/whitelist your microphone run this command (make sure you replace your device in the command):

Terminal Commands:
sudo sed -i ‘/blacklist YOUR_AUDIO_DEVICE/d’ /etc/modprobe.d/blacklist.conf

Did you found it useful?

Visit on site http://www.noobslab.com




Full Story (EN):More …

Prevod :Prevod teksta

Source:Noobs Lab