To reduce the risk of being watched and listened by an evil-minded attacker
Disable your Webcam
1. Use at once-command.
sudo sh -c "echo 'blacklist uvcvideo' >> /etc/modprobe.d/blacklist.conf"
Disable your Microphone
1. Run the command to list your driver names.
cat /proc/asound/modules
2. Replace with your driver name as shown below.
sudo sh -c "echo 'blacklist Your_driver' >> /etc/modprobe.d/blacklist.conf"
Restart your computer to see the results.
To get them back
1. Run the command as shown below.
sudo gedit /etc/modprobe.d/blacklist.conf
2. Remove the last lines added in the document you've just opened.
Enjoy it !