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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-27-2003, 03:25 PM
|
#1
|
Member
Registered: Feb 2002
Location: Adamstown, Pitcairn Islands
Distribution: Neon
Posts: 291
Rep:
|
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
|
|
|
06-28-2003, 01:53 PM
|
#2
|
Member
Registered: Jun 2003
Location: Netherlands
Distribution: Red Hat Linux 9, FreeBSD 4.8, Knoppix 3.2
Posts: 182
Rep:
|
Plain old shellscript will be fine...
Create a shellscript which does something with the commands :
"sudo" and "shutdown"
|
|
|
06-28-2003, 03:56 PM
|
#3
|
Member
Registered: Jun 2003
Distribution: slackware 14
Posts: 143
Rep:
|
in gnome you can right click task bar, and add buttons.
what desktop are you using?
|
|
|
06-30-2003, 09:02 AM
|
#4
|
Member
Registered: Feb 2002
Location: Adamstown, Pitcairn Islands
Distribution: Neon
Posts: 291
Original Poster
Rep:
|
I'm using KDE.
|
|
|
06-30-2003, 09:26 AM
|
#5
|
LQ Guru
Registered: Jan 2003
Location: Turkey&USA
Distribution: Emacs and linux is its device driver(Slackware,redhat)
Posts: 1,398
Rep:
|
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
|
|
|
06-30-2003, 09:30 AM
|
#6
|
Member
Registered: Feb 2002
Location: Adamstown, Pitcairn Islands
Distribution: Neon
Posts: 291
Original Poster
Rep:
|
Re:
What if I only want myself and root to be able to shutdown or reboot?
...and thanks for the help.
|
|
|
06-30-2003, 04:48 PM
|
#7
|
LQ Guru
Registered: Jan 2003
Location: Turkey&USA
Distribution: Emacs and linux is its device driver(Slackware,redhat)
Posts: 1,398
Rep:
|
then you need sudo never used it so man sudo
|
|
|
All times are GMT -5. The time now is 02:46 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|