Blacklisting Kernel modules

So first we open up our terminal. On most Linux systems you hit up this keyboard combination Ctrl + Alt + t, sometimes it's also your Windows key(i.e. Super key) + t, or you can hit this key combination Alt-F2 and then type the terminal name for example “gnome-terminal” or the equivalent in your system

sudo editorOfYourChoice /etc/modprobe.d/blacklist.conf for example

sudo nano /etc/modprobe.d/blacklist.conf 
sudo vim /etc/modprobe.d/blacklist.conf 

Or you can even use graphical ones

sudo gedit /etc/modprobe.d/blacklist.conf for example
sudo mouspepad -H /etc/modprobe.d/blacklist.conf for example

Then you go at the Bottom of the file add these lines

install module_name /bin/true fo example

install bluetooth /bin/true #disables bluetooth and its subprocesses
install btusb /bin/true
install uvcvideo /bin/true  #disables your camera module and its subprocesses


blacklist iwlwifi          #disables WiFi
blacklist firewire-core #disables firewire
blacklist thunderbolt  # disables thunderbolt

Finally type these comands

sudo update-initramfs -c -k all
sudo shutdown -r now

To undo these steps you can just delete the entry or uncoment them and reboot your system

You can uncoment stuff like this, example

#blacklist iwlwifi
#install bluetooth /bin/true

Don't forget to save your new entries!

sudo update-initramfs -c -k all
sudo shutdown -r now

And then reboot

sudo reboot

source: https://wiki.archlinux.org/index.php/Kernel_module#Blacklisting

Why it can be a smart idea to disable thunderbolt:

https://thunderspy.io/