On 2025-12-24 at 09:37, The Wanderer wrote:

> On 2025-12-24 at 09:19, Richard Owlett wrote:
> 
>> I have an essentially default install of Debian 12.8 with MATE and
>> SeaMonkey.
>> 
>> How do I disable WiFi?
>> How do I disable Bluetooth?
> 
> There are probably more manual ways to go about doing it, but the place
> I'd start is with the 'rfkill' tool, available in the package by the
> same name.

Alternately, if you want to turn them off permanently (such that you'd
have to jump through hoops to turn them back on), you could look at
blacklisting the kernel modules involved.

For Bluetooth, the 'bluetooth' module will probably get the job done; at
a glance, it looks as if all the other modules that might be relevant
depend on that one.

For Wi-Fi, the 'rfkill' module might serve as a similar central place to
disable things. If not, or if you want to be more specific about it,
which module you'd need to blacklist would apparently depend on what
Wi-Fi hardware you have. In that case, I'd suggest looking at the output of

$ /sbin/lsmod | egrep 'wl|wifi'

and using that to identify the module being used to drive the hardware
in question.

Once you've identified the module(s) you want to prohibit, you'll need
to add it to a file (or add a file for it) under /etc/modprobe.d/ ; see
'man modprobe.d', and search for the keyword 'blacklist', for syntax.

If you don't want to reboot to see the effect, you'll need to also
remove the in-use module, via 'modprobe -r'.

-- 
   The Wanderer

The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man.         -- George Bernard Shaw

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to