|
I recently bought a new Dell Inspiron 7437, one of the first things I do is to make pre-installed Windows 8 and Ubuntu 14.04 dual boot. My old laptop does not have Bluetooth, sounds strange but it is so. That's why I never noticed that Bluetooth is always open automatically each time you start Ubuntu.
From the energy and security purposes, this is not a good thing. And, I almost do not use Bluetooth, so why do I want a Bluetooth enabled by default? Although Ubuntu in just a click to turn off Bluetooth, but every time you log so repeatedly do it again is really a frustrating task. Simpler solution is Ubuntu boot time off Bluetooth.
In today's post, I will share with you how every time you start the Bluetooth is disabled by default.
Turned off by default in Ubuntu 14.04 Bluetooth:
Open a terminal and to install gksu (if you have not installed it) with the following command (Translation: If you already have gksu, you can use it; if not, do not want to install, then you use sudo as you can).
sudo apt-get install gksu
gksu is used when root privileges to run the program to enter a password program. Once you have installed gksu, use the following command:
gksudo gedit /etc/rc.local
It opens the rc.local file. Just before the exit 0 file by adding the following command:
rfkill block bluetooth
That's all step up. Restart your computer, you should be able to see Bluetooth has been disabled. Of course, you need to use it when you can open it from the indicator panel Bluetooth logo.
Little explanation:
This small part of what we do is just a brief explanation. You do not have to finish reading this section. You can jump directly to the comments section of your suggestions and thanks :)
rc.local file is used to record all kinds of shell commands during system startup when running. These commands are user-defined. In a new installation, rc.local file does not contain any commands. We do in here is to add a command rfkill block bluetooth. rfkill is used to query a variety of switches, buttons, and the underlying system interface status tools. We use this command in the rc.local at every boot soft-off (translation: its corresponding hard shutdown, it refers to the hardware switch to turn off) Bluetooth. I hope that these principles can explain it clearly. |
|
|
|