Saturday, May 23, 2009

How to create a shutdown button on a Linux desktop.

A shutdown button can be created on a Linux desktop using a single lined script.

Open your favorite text editor

eg : vi shutdown or
: gedit shutdown

append the following lines

#!/bin/bash
poweroff


save and quit. Move the file location to your desktop

chmod 777 shutdown
chmod +x shutdown (made the file 'shutdown' executable)

Now double click on your 'My Computer" icon to open the file browser window.

goto Edit-->Preferences-->Behavior-->Run executable text files when they are clicked-->close

Now you can double click on the 'shutdown' file to shutdown the machine. You can rightclick on it to choose an appropriate icon for the button.

2 comments:

  1. ``Hes standing right next to me. A tall, auburn hairedlady goes in, a shorter, black haired one comes out.
    free lesbian sex galleries and stories
    filthy teen sex stories
    brotherinlaw fuck stories
    pregnant sex stories post
    adult sex picture stories
    ``Hes standing right next to me. A tall, auburn hairedlady goes in, a shorter, black haired one comes out.

    ReplyDelete
  2. Hurrah, that's what I was looking for, what a stuff! present here at this website, thanks admin of this website.
    Look at my web site :: diets that work

    ReplyDelete