What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

How to permanently disable wifi and bluetooth on Ubuntu Server 24.04.1?

BosseSwede

Regular Contributor
Background:
I have built a new Ubuntu Server 24-04-1 LTS using an ASUS NUC 13 i7 PRO device as a replacement for my old server running on a Lenovo IdeaCentre minitowe PC, whiuch
I have moved a lot of data from the old to the new server and I have also added a MINT desktop to the server so I can use GParted on it to manage the disks.
When I used the MINT desktop via VNC (manually started using: vncserver :2) there was a pop-up dialog on VNC login saying "Authentication required. System policy prevents WiFi scans", which brought my attention to the fact that the NUC has both WiFi and Bluetooth, which the old server did not.

Additionally when I try to run TigerVNC as a service it fails and in the logs I find a lot of lines related to Bluetooth errors.
The VNC server can be started manually though, but I need it to be a service...

I do not want either WiFi nor Bluetooth to be running on this server, it should *only* use wired Ethernet.
Question:
How can I command Ubuntu to switch off both WiFi and BT radios in such a way that it will survive a reboot?
I have found various articles like this where they suggest these:
nmcli, rfkill, tlp, ip

Example:
This is what I get using rfkill:
Code:
$ rfkill list
0: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no
1: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
So both BT and WiFi seems to be active even though I do not need them.

I am unsure about what to do now since it looks like the suggestions I have found will not survive a reboot.

So I want to switch off both wifi and bluetooth in such a way that it will survive a reboot but still allow me to switch on if I need to.
What is the best way to do this?
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top