How to disable Bluetooth by default in Ubuntu 14.04
I recently bought a new Dell Inspiron 7437 instance. One of the first tasks I did was to enable the pre-installed Windows 8 and Ubuntu 14.04 Dual Boot. My old laptop does not have bluetooth. It sounds strange, but this is the case. This is why I have never noticed that Bluetooth is always enabled automatically at every startup of Ubuntu.
Download, install, and configure Ubuntu 14.04
Ubuntu 14.04 system:
Ubuntu 14.04 text tutorial on hard drive installation in Windows 7
This is not a good thing for energy saving and security purposes. In addition, I almost don't use Bluetooth, so why should I enable Bluetooth by default? Even though you only need to click Bluetooth once in Ubuntu, It is a frustrating task to repeat it every time you log on. A simpler solution is to disable Bluetooth when Ubuntu is started.
In today's post, I will share with you how to disable Bluetooth by default at each startup.
Bluetooth is disabled by default in Ubuntu 14.04:
Open a terminal and run the following command to install gksu (if you have not installed it, you don't want to install it, so you can use sudo ).
- Sudo apt-get install gksu
Gksu is a program used to enter a password when running a program with the root permission. After you have installed gksu, run the following command:
- Gksudo gedit/etc/rc. local
It will open the rc. local file. You only need to add the following command before exit 0 in the file:
- Rfkill block bluetooth
In this way, your rc. local file looks like this:
This is all the steps. Restart your computer and you will be able to see that Bluetooth has been disabled. Of course, you can open it from the Bluetooth icon on the indicator panel when using it.
Note:
This is just a brief explanation of what we have done. You do not have to read this part. You can directly jump to the comments section to leave your suggestions and thanks :)
The rc. local file is used to record various shell commands that run at system startup. These commands are user-defined. In a new installation, the rc. local file does not contain any commands. Here we add the command rfkill block bluetooth. Rfkill is a tool used to query the status of various switches, buttons, and underlying system interfaces. We use this command in rc. local to enable the software-disabled feature at each startup. I hope this will give a clear explanation of the Principles.