LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-27-2003, 03:25 PM   #1
Mithrilhall
Member
 
Registered: Feb 2002
Location: Adamstown, Pitcairn Islands
Distribution: Neon
Posts: 291

Rep: Reputation: 30
Creating a shutdown & reboot button


Could someone explain how I could create these on my desktop in Mandrake? Do I do it with some shell or python scripting?

thanks
 
Old 06-28-2003, 01:53 PM   #2
cropcircle
Member
 
Registered: Jun 2003
Location: Netherlands
Distribution: Red Hat Linux 9, FreeBSD 4.8, Knoppix 3.2
Posts: 182

Rep: Reputation: 30
Plain old shellscript will be fine...

Create a shellscript which does something with the commands :

"sudo" and "shutdown"
 
Old 06-28-2003, 03:56 PM   #3
len
Member
 
Registered: Jun 2003
Distribution: slackware 14
Posts: 143

Rep: Reputation: 15
in gnome you can right click task bar, and add buttons.

what desktop are you using?
 
Old 06-30-2003, 09:02 AM   #4
Mithrilhall
Member
 
Registered: Feb 2002
Location: Adamstown, Pitcairn Islands
Distribution: Neon
Posts: 291

Original Poster
Rep: Reputation: 30
I'm using KDE.
 
Old 06-30-2003, 09:26 AM   #5
nakkaya
LQ Guru
 
Registered: Jan 2003
Location: Turkey&USA
Distribution: Emacs and linux is its device driver(Slackware,redhat)
Posts: 1,398

Rep: Reputation: 45
chmod 7755 shutdown

then put a shortcut to shutdown -h now but after that
EVERY USER WILL BE ABLE TO SHUT YOUR COMPUTER DOWN.
for restart just put a restart shortcut
 
Old 06-30-2003, 09:30 AM   #6
Mithrilhall
Member
 
Registered: Feb 2002
Location: Adamstown, Pitcairn Islands
Distribution: Neon
Posts: 291

Original Poster
Rep: Reputation: 30
Re:

What if I only want myself and root to be able to shutdown or reboot?


...and thanks for the help.
 
Old 06-30-2003, 04:48 PM   #7
nakkaya
LQ Guru
 
Registered: Jan 2003
Location: Turkey&USA
Distribution: Emacs and linux is its device driver(Slackware,redhat)
Posts: 1,398

Rep: Reputation: 45
then you need sudo never used it so man sudo
 
  


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
reboot into windows button / shortcut pistonbrew Linux - Software 1 04-26-2005 11:50 PM
Shutdown button Ezzy Linux - Newbie 6 04-26-2005 10:44 AM
Power Button for Shutdown gokul Linux - Hardware 4 01-24-2004 01:40 PM
Adding reboot & shutdown to gnome logoff ringwraith Slackware 7 12-13-2003 12:27 PM
Shutdown with power button hriosm Linux - Hardware 4 06-06-2003 03:43 PM

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

All times are GMT -5. The time now is 02:46 PM.

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