Help - Need permanent disable for some features

Hi There,

Kindly please help.
I just install Ubuntu Mate on my Ideapad S310, but need some enhancement.
Please anyone help me to:

  1. disable bluetooth permanently.
  2. disable guest mode permanently
  3. lock network setting, so standard user can’t change the setting.

thanks in advance.

To disable bluetooth:

From a terminal, issue the following command:

sudo pluma /etc/init/bluetooth.override

when the blank document opens up, just type on one line:

manual

Then save the file.

Then log out and restart the computer and bluetooth should be disabled.

If you later want to get bluetooth back, open a terminal and issue the following command:

sudo rm /etc/init/bluetooth.override

Also, check in “/etc/xdg/autostart/” to see if anything about bluetooth is in there too. If it is, create a folder “/etc/xdg/autostart-disabled” and move the bluetooth-related .desktop file into that to disable it from autostarting.

3 Likes

RE option 3, the user should not have sudo privileges so they cannot change things.

RE option 2, edit/etc/lightdm/lightdm.conf and add, allow-guest=false to the file.

HTH

3 Likes

hi pavlos,

thank you for reply.

it seems I can’t find lightdm.conf
any other suggestion?

hi steve, already did. but bluetooth still there, and can be turn on manually.
what I want is disable and gone for forever.

thank you

What version of Ubuntu Mate are you using?

If your using Ubuntu Mate 17.04 or above open the terminal and issue the following command to disable Bluetooth. Followed by rebooting to take affect.

sudo systemctl disable bluetooth

To enable Bluetooth again

sudo systemctl enable bluetooth

This method does not disable Bluetooth on Ubuntu Mate 16.04.

This is how I disabled the guest session in Ubuntu Mate 16.04, not sure if it applies to the newer versions.

Open the terminal and run the following command:

gksu pluma /usr/share/lightdm/lightdm.conf.d/50-ubuntu-mate.conf

Type in your user password when prompted.

Add this line in the end of file and save it.

allow-guest=false

Reboot to take affect.

2 Likes

HI Steven,
thanks for quick response.

yes, I’m still using 16.04. and the method is successful.

thank you

This is how to turned off Bluetooth by default in Ubuntu-Mate 16.04.

Open the terminal and run the following command

gksu pluma /etc/default/tlp

Then find the following section

# Radio devices to disable on startup: bluetooth, wifi, wwan.
# Separate multiple devices with spaces.
#DEVICES_TO_DISABLE_ON_STARTUP="bluetooth wifi wwan"

Edit the last line as follows (including removing the leading #):

DEVICES_TO_DISABLE_ON_STARTUP="bluetooth"

Then save and close the file.

You also need to stop the Blueman Applet from loading at startup as it will turn on bluetooth when it loads. This can be done by unchecking it in Startup Applications Preferences. It can be started anytime after that by running the blueman-applet command.

Reboot for all this to take affect and you should be good to go. :slight_smile:

1 Like

Looks like I posted this before with a little more detail.

https://ubuntu-mate.community/t/turn-off-bluetooth-by-default/12979?u=steven