LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-04-2006, 09:28 PM   #1
Rory in Toronto
Member
 
Registered: Mar 2004
Posts: 136

Rep: Reputation: 15
How to shutdown Gnome??


Okay, this is what I'm trying to do:
I'd like to hit the the Logout button in Gnome, for it to pop-up "Reboot" or "Shutdown" and then for it to simply do it, like it does in KDE.

Instead, in Gnome, you hit logout and it takes you to the GDM screen, where you then choose to shutdown or sign-off. Way too many button clicks. Yes, some of you will suggest I just don't turn off my computer, but I pay my electricity bill, not my parents.

So, it was suggested to me that I set up a shortcut with the command:
sudo shutdown -h now

No dice. This works in terminal but not as a shortcut on the desktop. So, I tried:
gksudo shutdown -h now

No dice. The issue is the need to type in a password. So, I tried this as the shortcut command:
echo mypassword | sudo shutdown -h now

No dice. I could disable the need for a password to go root in Ubuntu, but that's overkill and I like the security. Just don't need it for logging out.

Can anyone suggest another way to do this so I can do a simple, one-click shutdown in Gnome that will power my computer off?

Thanks,
 
Old 04-04-2006, 10:03 PM   #2
killomatic
LQ Newbie
 
Registered: Apr 2006
Distribution: Gentoo
Posts: 5

Rep: Reputation: 0
I don't know gnome, but here's how you make the command not require a password, and it's how I got shutdown working in fluxbox.

type visudo and add:
username ALL= NOPASSWD: /sbin/shutdown
where username is the user you want to shut down the comp, then add a menu shortcut for sudo shutdown
 
Old 04-05-2006, 12:23 AM   #3
sailajabhandaru
Member
 
Registered: Apr 2005
Location: India
Distribution: fedora
Posts: 43

Rep: Reputation: 15
There is a application called kshutdown which appears
on the panel.
this is used to shutdown and many more options in it.......
click it
http://kshutdown.sourceforge.net/

Sailaja Bhandaru
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Help with shutdown on Gnome 2.6 misterpt SUSE / openSUSE 1 03-26-2005 04:04 AM
gnome won't logout or shutdown properly RRolleston Debian 0 12-23-2004 05:33 PM
gnome shutdown greg108 Debian 1 09-19-2004 04:34 PM
Shutdown w/ Gnome Ok But not w/ Default jsalvoeiro Red Hat 6 10-29-2003 12:37 PM
Stop users from doing shutdown in Gnome MikeyCarter Linux - Software 0 08-13-2003 10:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:05 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