Page 1 of 3 123 LastLast
Results 1 to 10 of 25

Thread: shut down with one click in 13.04?

  1. #1
    Join Date
    Oct 2008
    Location
    Dexter, Oregon USA
    Beans
    524

    shut down with one click in 13.04?

    I am wondering if I can make a desktop icon with a command that will shut down 13.04 with one click and not need to use the three click method that is needed now.

    Thanks in advance. Bob.

  2. #2
    Join Date
    Aug 2011
    Location
    52° N 6° E
    Beans
    2,419
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: shut down with one click in 13.04?

    In Xubuntu there is a one-click way using a big red button in the corner of the screen. Best not to put it in the same corner as the "close window" button.

  3. #3
    Join Date
    Oct 2008
    Location
    Dexter, Oregon USA
    Beans
    524

    Re: shut down with one click in 13.04?

    Thanks but I am usiing ubuntu 13.04. And if it wasn't clear as to what I was asking I would like to shut the whole computer down with just one click.

    Thanks, Bob.

  4. #4
    Join Date
    Apr 2013
    Beans
    15

    Re: shut down with one click in 13.04?

    Well, since you have the "poweroff" command to shutdown the computer, you can create a launcher icon on desktop and specify this command line. Not sure if gonna work, though.

  5. #5
    Join Date
    Feb 2006
    Location
    Kentucky
    Beans
    554
    Distro
    Ubuntu

    Re: shut down with one click in 13.04?

    You could just make a script that executed:

    Code:
    sudo shutdown -h now
    You'll still get prompted for your password since it has to launch with sudo. You could get around this, although it isn't advised, by editing sudoers so you don't have to provide your password when using sudo.
    "Civilization is the limitless multiplication of unnecessary necessities."
    -- Mark Twain

  6. #6
    Join Date
    Feb 2010
    Location
    WI USA
    Beans
    10,090
    Distro
    Ubuntu Development Release

    Re: shut down with one click in 13.04?

    Any of many the commands used to create a desktop launcher for shutdown are going to require a password, so existing option is faster. http://www.cyberciti.biz/faq/shutdow...inux-computer/
    Infinite diversity in infinite combination.

    Ubuntu Documentation Search: Popular Pages
    Ubuntu: Security Basics
    Ubuntu: Manual

  7. #7
    Join Date
    Apr 2012
    Beans
    74
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: shut down with one click in 13.04?

    Just for a thought.I am running 12.04.2 LTS with GNOME Shell 3.4.2.1.There is Alternative Status Menu extensionhttps://extensions.gnome.org/extensi...e-status-menu/Having installed this extension I have Power Off... option to shut the system down.

  8. #8
    Join Date
    Oct 2008
    Location
    Dexter, Oregon USA
    Beans
    524

    Re: shut down with one click in 13.04?

    I put this command in a jumper and I get the message that there was an error in launching the application.

    $ sudo shutdown -h now

  9. #9
    Join Date
    Jan 2013
    Beans
    186

    Re: shut down with one click in 13.04?

    why not 'sudo shutdown 0' ? Don't include the '$' in your command.

  10. #10
    Join Date
    May 2010
    Location
    Tewkesbury uk
    Beans
    7,797
    Distro
    Ubuntu Development Release

    Re: shut down with one click in 13.04?

    Hi

    Use dbus instead.

    Code:
    dbus-send --system --print-reply --dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop
    Pop it in a script.

    As it uses policy/console kit, you should not need to enter a password or mess with your sudoers file.

    Kind regards
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •