LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 01-06-2013, 08:15 AM   #1
CollieJim
Member
 
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 582

Rep: Reputation: 28
Power down on logout


I have installed Ubuntu with the Mate desktop, decided that I don't really like Mate, and now use KDE.

Is there a way for it to be configured to power down without confirmation when I logout? It's a nuisance currently, with 5 mouse clicks to get the job done.

The K button's Leave only offers Sleep in the System section.

Thanks
Jim
 
Old 01-07-2013, 07:49 PM   #2
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 921

Rep: Reputation: 46
You should have some shutdown settings/options in systemsettings in your menu.

If it is not there you may need to install it.

Last edited by rbees; 01-07-2013 at 07:50 PM.
 
Old 01-07-2013, 09:00 PM   #3
CollieJim
Member
 
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 582

Original Poster
Rep: Reputation: 28
The options are
Code:
General
  Confirm logout
  Offer shutdown options
Default Leave Option
  End current session
* Turn off computer
  Restart computer
On login
  Restore previous session
  Restore manually saved session
* Start with an empty session
Applications to be excluded from sessions
  <empty>
Since "Offer shutdown options" is not ticked, the "Default leave options" section is greyed.
I ticked "Offer shutdown options", selected "Turn off computer", and then unticked "Offer shutdown options."
"Turn off computer" remained selected, but it's being ignored.
 
Old 01-07-2013, 09:39 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
Try this if you can't find a GUI way to do it.

Open a terminal and issue the command

Code:
sudo shutdown now -h
 
Old 01-08-2013, 04:57 AM   #5
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 921

Rep: Reputation: 46
or
Code:
sudo init 0 (shutdown)
changing the zero to a six will reboot
 
Old 01-08-2013, 05:05 AM   #6
Voided
LQ Newbie
 
Registered: Jan 2013
Location: Terra
Posts: 9

Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
Try this if you can't find a GUI way to do it.

Open a terminal and issue the command

Code:
sudo shutdown now -h
make this into a launcher button and you are done

But seriously, there must be a way to install an official button/option to shutdown.
 
Old 01-08-2013, 06:01 AM   #7
CollieJim
Member
 
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 582

Original Poster
Rep: Reputation: 28
Thanks.
I've taken it one step further with
Code:
sudo chmod u+s /sbin/shutdown
so I don't have to enter a password.
 
Old 01-08-2013, 06:54 AM   #8
Voided
LQ Newbie
 
Registered: Jan 2013
Location: Terra
Posts: 9

Rep: Reputation: Disabled
very unsafe, but if it is what you want...
 
Old 01-09-2013, 06:46 AM   #9
CollieJim
Member
 
Registered: Mar 2005
Distribution: Gentoo, Kubuntu
Posts: 582

Original Poster
Rep: Reputation: 28
Other than an unauthorised shutdown or reboot, what risk is there?
 
1 members found this post helpful.
Old 01-09-2013, 08:30 PM   #10
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
I tend to agree with CollieJim.

If it's a home computer, there's little or no risk. Many distros (like Mint or SalixOS, two that I know of) allow user to shutdown or reboot from the menu.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid exclude Coovachilli logout url http://logout tatanna Linux - Networking 0 07-18-2012 02:48 AM
[SOLVED] user 'Logout' not working - must power off to recover... Robert.Thompson Slackware 8 07-07-2011 09:18 AM
power company idiots cut power while system was on, now hangs at boot with # prompt shroomy_bee Linux - Newbie 10 07-04-2008 12:12 AM
On gnome / x logout run "logout" ?? once here Linux - Software 1 01-09-2004 02:53 PM
Problems with power after logout pareshsa100 Linux - Hardware 1 11-19-2002 03:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 04:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration