LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-25-2005, 05:30 PM   #1
mrurmil
Member
 
Registered: Jan 2005
Distribution: Fedora Core 3
Posts: 56

Rep: Reputation: 15
Shutdown in KDE?


Is there a way to shutdown the computer while in the KDE GUI? I know you can do this in Gnome. I hate having to logout from KDE first and then shutdown from the login screen.
 
Old 01-25-2005, 05:35 PM   #2
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
Right click - Logout, and select Shutdown Computer (rather than End Session). Or, open up the Control center -> System Administration -> Shutdown tab, and edit as appropriate. You should also be able to set the default action in Control center -> KDE Components -> Session manager.

Cheers,

mj
 
Old 01-25-2005, 06:01 PM   #3
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
You could write a script like this. Call it shutdownnow.
Code:
#!/bin/sh
sudo /sbin/shutdown -h now
Paste the script to the desktop and change icon if wish.

There are several ways to let users use shutdown command.
* One is let anyone use the shutdown command by changing permissions if not wanting to go through this process.
* Add access to /etc/sudoers file.
* One way is to add shutdown to your /etc/sudeors file. I will give an example that requires no paasword to issue the command. If you never edit the sudeors file it requires you to use visudo to edit it. It requires root access to do. Also it uses vi as the default editor. Nice but very confusing to the beginner. I perfer using nedit for it.

To change to nedit issue command export VISUAL="nedit"
To edit visudoers file issue command visudo
Example of /etc/sudoers file.
Code:
# sudoers file.
#
username	ALL=NOPASSWD: /etc/shutdown
Brian1
" Google the Linux way @ http://www.google.com/linux "
 
Old 01-25-2005, 06:24 PM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
If you are using KDM as your display manager you can logout of your session, restart your pc or shut it down, by clicking the Kmenu button and then clicking logout, a bunch of options will appear and you can select the action you want to do. If you are using any other display manager, you may not have access to that menu.

Last edited by reddazz; 01-25-2005 at 06:26 PM.
 
Old 01-25-2005, 10:44 PM   #5
mrurmil
Member
 
Registered: Jan 2005
Distribution: Fedora Core 3
Posts: 56

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by mjrich
Right click - Logout, and select Shutdown Computer (rather than End Session). Or, open up the Control center -> System Administration -> Shutdown tab, and edit as appropriate. You should also be able to set the default action in Control center -> KDE Components -> Session manager.

Cheers,

mj

When I go to logout the only option I have is to logout of my session. I don't get any options like Shutdown Or Reboot, like you normally get Gnome.
 
Old 01-26-2005, 12:16 AM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
In my post I mentioned that if you are not using KDM, you will not get those options to restart or shutdown your PC. I guess you are using GDM and hence the shutdown and restart options will only be available in GNOME.

Last edited by reddazz; 01-26-2005 at 05:26 AM.
 
  


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
Shutdown not available with KDE larienz Slackware 5 04-07-2005 07:48 AM
shutdown from desktop using KDE??? KevinAlaska Linux - Newbie 10 11-15-2004 06:13 AM
A way to shutdown from KDE? akilhoffer Linux - Newbie 6 09-02-2004 12:34 AM
KDE Windows won't shutdown thundersnows Slackware 7 10-31-2003 12:33 AM
shutdown pc in kde? dARkHunTEr Slackware 3 07-21-2003 02:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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