Want to keep your Ubuntu computer on always without someone turning it off? Well, this quick tip will show you how to remove the Shutdown, Restart and Logout command from Ubuntu session menu or menu list.
This will come in handy if everyone is using the same computer (public computer) and don’t want it shutdown or restarted. You can setup your computer to automatically login as guest and turn off these commands from the menu so no one will be able to shut it off.
Objectives:
- Remove Shutdown, Restart, Logout commands in Ubuntu
- Enjoy!
To get started, press Ctrl – Alt – T on your keyboard to open the terminal. When it opens run the commands below.
Disable Shutdown Command
gsettings set com.canonical.indicator.session suppress-shutdown-menuitem true
Disable Restart Command
gsettings set com.canonical.indicator.session suppress-restart-menuitem true
Disable Logout Command
gsettings set com.canonical.indicator.session suppress-logout-menuitem true
Or your can install this dconf Editor and use it to accomplish the same goal. Open it and go to apps –> indicator-session
To install it, run the commands below
sudo apt-get install dconf-tools
Enjoy!