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!
Frequently Asked Questions
How to disable Shutdown command in Ubuntu 12.10?
To disable the Shutdown command in Ubuntu 12.10, you can use the command: gsettings set com.canonical.indicator.session suppress-shutdown-menuitem true.
What is the command to disable Restart in Ubuntu 12.10?
To disable the Restart command in Ubuntu 12.10, use the command: gsettings set com.canonical.indicator.session suppress-restart-menuitem true.
How can I remove Logout command from Ubuntu session menu in 12.10?
To remove the Logout command from the Ubuntu session menu in 12.10, execute the command: gsettings set com.canonical.indicator.session suppress-logout-menuitem true.
What is the objective of removing Shutdown, Restart, and Logout commands in Ubuntu 12.10?
The objective of removing Shutdown, Restart, and Logout commands in Ubuntu 12.10 is to prevent users from shutting down or restarting the system, useful for public computers or when continuous operation is required.
How do I automatically log in as a guest in Ubuntu 12.10?
To automatically log in as a guest in Ubuntu 12.10, go to the user account settings and enable automatic login for the guest account.
What is the dconf Editor used for in Ubuntu?
The dconf Editor in Ubuntu is used to access and modify configuration settings, including the ability to suppress menu items like Shutdown, Restart, and Logout.
How to install dconf-tools in Ubuntu?
To install dconf-tools in Ubuntu, run the command: sudo apt-get install dconf-tools in the terminal.
How can I access the apps menu in dconf Editor?
In dconf Editor, navigate to apps -> indicator-session to access the settings related to suppressing menu items like Shutdown, Restart, and Logout.