Fastest way to shutdown Ubuntu Mate 18.10shutdown in specific way, if no-one uses computerHow can I allow unprivileged users to shutdown from the panel? (no sudo)Weird lines are appearing on shut down12.10 shutdown not workingTimed Shutdown - shutdown after 30 minutesApt wants to remove ubuntu-mate-desktopHow to configure password requirement for shutdown from unityHow to add shutdown option to the Ubuntu lock screen?Ubuntu is not sending SIGTERM on shutdownWhy Ubuntu LTS 16.04 suddenly shutdown?

Does rpcpassword need to be non-obvious in bitcoind?

What is the maximum viable speed for a projectile within earth's atmosphere?

Other than good shoes and a stick, what are some ways to preserve your knees on long hikes?

Which version of the Pigeonhole principle is correct? One is far stronger than the other

Is there an in-universe reason Harry says this or is this simply a Rowling mistake?

Why does Canada require a minimum rate of climb for ultralights of 300 ft/min?

Delete empty subfolders, keep parent folder

Can a business put a specific cancel-by date into a contract?

My passport was stamped with an exit stamp while transiting to another Schengen country via Turkey. Was this a mistake?

Cemented carbide swords - worth it?

Why are two-stroke engines nearly unheard of in aviation?

Does Mage Hand give away the caster's position?

How could artificial intelligence harm us?

Minimum number of lines to draw 111 squares

Plot irregular circle in latex

Plausibility and performance of a composite longbow

What to do as a player when ranger animal companion dies

What can I actually do with a high credit score?

Which block cipher parameters should be kept secret?

What’s a “dissipated” garment supposed to be?

Can a Druid Wild Shaped as a horse use Horseshoes of Speed?

How do rulers get rich from war?

What are the end bytes of *.docx file format

Is this adjustment to the Lucky feat underpowered?



Fastest way to shutdown Ubuntu Mate 18.10


shutdown in specific way, if no-one uses computerHow can I allow unprivileged users to shutdown from the panel? (no sudo)Weird lines are appearing on shut down12.10 shutdown not workingTimed Shutdown - shutdown after 30 minutesApt wants to remove ubuntu-mate-desktopHow to configure password requirement for shutdown from unityHow to add shutdown option to the Ubuntu lock screen?Ubuntu is not sending SIGTERM on shutdownWhy Ubuntu LTS 16.04 suddenly shutdown?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








7















I'm looking for a "one click" way to shutdown Ubuntu Mate 18.10. I don't want to:



  1. Click the Gear / Settings / ??? whatever you call it

  2. Select Shutdown

  3. Click on Shutdown because that's REALLY what I want to do.

I'm pretty confident that when I want to shutdown my dang computer, I want to shut it down. I don't need to click 3 times. Just 1 click and get up and leave my desk.



Can someone tell me if there's a way to get a 1 click shutdown?










share|improve this question



















  • 1





    Is the power button an option or must it be done using the mouse?

    – Melebius
    Mar 28 at 12:58






  • 2





    absolute fastest would be SysRq+o, though safer would be SysRq+s, u, o

    – Aaron F
    Mar 28 at 15:29






  • 1





    Pulling the cord isn't an option right?

    – zero298
    Mar 28 at 22:18






  • 1





    Power button you have to hold down until the computer does a hard shutdown which I don't want to do either of those. I have no idea what SysRq+o even is and, um, pulling the cord on a laptop wouldn't give the desired results :)

    – Jeff
    Mar 29 at 23:20


















7















I'm looking for a "one click" way to shutdown Ubuntu Mate 18.10. I don't want to:



  1. Click the Gear / Settings / ??? whatever you call it

  2. Select Shutdown

  3. Click on Shutdown because that's REALLY what I want to do.

I'm pretty confident that when I want to shutdown my dang computer, I want to shut it down. I don't need to click 3 times. Just 1 click and get up and leave my desk.



Can someone tell me if there's a way to get a 1 click shutdown?










share|improve this question



















  • 1





    Is the power button an option or must it be done using the mouse?

    – Melebius
    Mar 28 at 12:58






  • 2





    absolute fastest would be SysRq+o, though safer would be SysRq+s, u, o

    – Aaron F
    Mar 28 at 15:29






  • 1





    Pulling the cord isn't an option right?

    – zero298
    Mar 28 at 22:18






  • 1





    Power button you have to hold down until the computer does a hard shutdown which I don't want to do either of those. I have no idea what SysRq+o even is and, um, pulling the cord on a laptop wouldn't give the desired results :)

    – Jeff
    Mar 29 at 23:20














7












7








7


1






I'm looking for a "one click" way to shutdown Ubuntu Mate 18.10. I don't want to:



  1. Click the Gear / Settings / ??? whatever you call it

  2. Select Shutdown

  3. Click on Shutdown because that's REALLY what I want to do.

I'm pretty confident that when I want to shutdown my dang computer, I want to shut it down. I don't need to click 3 times. Just 1 click and get up and leave my desk.



Can someone tell me if there's a way to get a 1 click shutdown?










share|improve this question














I'm looking for a "one click" way to shutdown Ubuntu Mate 18.10. I don't want to:



  1. Click the Gear / Settings / ??? whatever you call it

  2. Select Shutdown

  3. Click on Shutdown because that's REALLY what I want to do.

I'm pretty confident that when I want to shutdown my dang computer, I want to shut it down. I don't need to click 3 times. Just 1 click and get up and leave my desk.



Can someone tell me if there's a way to get a 1 click shutdown?







shutdown mate






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 28 at 12:50









JeffJeff

384 bronze badges




384 bronze badges










  • 1





    Is the power button an option or must it be done using the mouse?

    – Melebius
    Mar 28 at 12:58






  • 2





    absolute fastest would be SysRq+o, though safer would be SysRq+s, u, o

    – Aaron F
    Mar 28 at 15:29






  • 1





    Pulling the cord isn't an option right?

    – zero298
    Mar 28 at 22:18






  • 1





    Power button you have to hold down until the computer does a hard shutdown which I don't want to do either of those. I have no idea what SysRq+o even is and, um, pulling the cord on a laptop wouldn't give the desired results :)

    – Jeff
    Mar 29 at 23:20













  • 1





    Is the power button an option or must it be done using the mouse?

    – Melebius
    Mar 28 at 12:58






  • 2





    absolute fastest would be SysRq+o, though safer would be SysRq+s, u, o

    – Aaron F
    Mar 28 at 15:29






  • 1





    Pulling the cord isn't an option right?

    – zero298
    Mar 28 at 22:18






  • 1





    Power button you have to hold down until the computer does a hard shutdown which I don't want to do either of those. I have no idea what SysRq+o even is and, um, pulling the cord on a laptop wouldn't give the desired results :)

    – Jeff
    Mar 29 at 23:20








1




1





Is the power button an option or must it be done using the mouse?

– Melebius
Mar 28 at 12:58





Is the power button an option or must it be done using the mouse?

– Melebius
Mar 28 at 12:58




2




2





absolute fastest would be SysRq+o, though safer would be SysRq+s, u, o

– Aaron F
Mar 28 at 15:29





absolute fastest would be SysRq+o, though safer would be SysRq+s, u, o

– Aaron F
Mar 28 at 15:29




1




1





Pulling the cord isn't an option right?

– zero298
Mar 28 at 22:18





Pulling the cord isn't an option right?

– zero298
Mar 28 at 22:18




1




1





Power button you have to hold down until the computer does a hard shutdown which I don't want to do either of those. I have no idea what SysRq+o even is and, um, pulling the cord on a laptop wouldn't give the desired results :)

– Jeff
Mar 29 at 23:20






Power button you have to hold down until the computer does a hard shutdown which I don't want to do either of those. I have no idea what SysRq+o even is and, um, pulling the cord on a laptop wouldn't give the desired results :)

– Jeff
Mar 29 at 23:20











5 Answers
5






active

oldest

votes


















4
















How about a keyboard shortcut?



Go to your keyboard settings - for me, that's Settings ⇒ Devices ⇒ Keyboard(not sure what it is in Mate, but should be quite similar), scroll down to the bottom and click the + to add a new



Then, name it, the command you'll want is sudo poweroff (or sudo shutdown now does the same thing, really) - and set it to whatever keyboard shortcut you want.
I recommend super+h, since that's not taken by default, and since super+l is lock- but obviously, you can do whatever you want.... including maping it to an F-key of your choice.






share|improve this answer



























  • It was hard to pick a winner. Ultimately this is the closest / best alternative. The only thing is you can't include sudo. If you do, it doesn't work because when you use sudo it asks for a password. If you leave sudo out and assign a keyboard shortcut, it's a marvelous solution.

    – Jeff
    Mar 29 at 23:22











  • @Jeff You can use sudo if you add that command (poweroff or shutdown) to sudoers for that user. Then, it won't ask for a password.

    – Joe
    Apr 9 at 11:12


















9
















On Ubuntu, the command shutdown now allows you to shut down the system without being a root user. For a one-click solution in Mate, associate this command to a panel launcher.



Beware not to click this by accident, because it will heavily disrupt your work. But then, you asked a one-click solution.



For a two-click solution, Mate might still might offer a "traditional" shut down button you can add to the panel next to the 'Gear' icon. If not, then you still can create your own two-click shut-down launcher for mate-session-save --shutdown-dialog (gnome-session-quit --power-off for Gnome users).






share|improve this answer


































    3
















    This works for me on Ubuntu 18.04



    sudo poweroff


    another option is to shutdown



    shutdown –h 09:30


    Power off the system.



     --help Show this help
    --halt Halt the machine
    -p --poweroff Switch off the machine
    --reboot Reboot the machine
    -f --force Force immediate halt/power-off/reboot
    -w --wtmp-only Don't halt/power-off/reboot, just write wtmp record
    -d --no-wtmp Don't write wtmp record
    --no-wall Don't send wall message before halt/power-off/reboot





    share|improve this answer

























    • You probably want now rather than 09:30, most of the time.

      – OrangeDog
      Mar 28 at 23:01


















    1
















    Creating an One Click button



    This has been tested and worked on Ubuntu 18.04.2



    Install a necessary package in order to easily create a desktop application. We will use the terminal because we need to use a special parameter to avoid unnecessary packages from being installed.



    sudo apt update
    sudo apt install --no-install-recommends gnome-panel


    Call the app from the terminal, as follows



    gnome-desktop-item-edit ~/.local/share/applications --create-new



    In the opening window give a Name, Comment and an Icon of your choice.
    The important here is the Command.



    Copy-paste the following in the Command field:



    dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 "org.freedesktop.login1.Manager.PowerOff" boolean:true



    Example Picture



    enter image description here



    Click OK



    Add the application wherever you want on your Desktop. The time you click the button, it will shutdown the PC without further questions.



    Example Picture



    enter image description here






    share|improve this answer
































      0
















      If you don't care about shutting down "nicely," do this...
      Alt+F2 and then press and hold Ctrl + Alt + Del for a few seconds. Note that the computer will reboot, not just turn off, so you will have to push the power button on the boot splash after rebooting to shut it off. However, Ubuntu itself will be shut down as fast as possible by easy means because you don't have to type any commands (though a keyboard shortcut would work). If you just want to turn off the OS, you can use this.






      share|improve this answer



























        Your Answer








        StackExchange.ready(function()
        var channelOptions =
        tags: "".split(" "),
        id: "89"
        ;
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function()
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled)
        StackExchange.using("snippets", function()
        createEditor();
        );

        else
        createEditor();

        );

        function createEditor()
        StackExchange.prepareEditor(
        heartbeatType: 'answer',
        autoActivateHeartbeat: false,
        convertImagesToLinks: true,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: 10,
        bindNavPrevention: true,
        postfix: "",
        imageUploader:
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        ,
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        );



        );














        draft saved

        draft discarded
















        StackExchange.ready(
        function ()
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1129384%2ffastest-way-to-shutdown-ubuntu-mate-18-10%23new-answer', 'question_page');

        );

        Post as a guest















        Required, but never shown

























        5 Answers
        5






        active

        oldest

        votes








        5 Answers
        5






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        4
















        How about a keyboard shortcut?



        Go to your keyboard settings - for me, that's Settings ⇒ Devices ⇒ Keyboard(not sure what it is in Mate, but should be quite similar), scroll down to the bottom and click the + to add a new



        Then, name it, the command you'll want is sudo poweroff (or sudo shutdown now does the same thing, really) - and set it to whatever keyboard shortcut you want.
        I recommend super+h, since that's not taken by default, and since super+l is lock- but obviously, you can do whatever you want.... including maping it to an F-key of your choice.






        share|improve this answer



























        • It was hard to pick a winner. Ultimately this is the closest / best alternative. The only thing is you can't include sudo. If you do, it doesn't work because when you use sudo it asks for a password. If you leave sudo out and assign a keyboard shortcut, it's a marvelous solution.

          – Jeff
          Mar 29 at 23:22











        • @Jeff You can use sudo if you add that command (poweroff or shutdown) to sudoers for that user. Then, it won't ask for a password.

          – Joe
          Apr 9 at 11:12















        4
















        How about a keyboard shortcut?



        Go to your keyboard settings - for me, that's Settings ⇒ Devices ⇒ Keyboard(not sure what it is in Mate, but should be quite similar), scroll down to the bottom and click the + to add a new



        Then, name it, the command you'll want is sudo poweroff (or sudo shutdown now does the same thing, really) - and set it to whatever keyboard shortcut you want.
        I recommend super+h, since that's not taken by default, and since super+l is lock- but obviously, you can do whatever you want.... including maping it to an F-key of your choice.






        share|improve this answer



























        • It was hard to pick a winner. Ultimately this is the closest / best alternative. The only thing is you can't include sudo. If you do, it doesn't work because when you use sudo it asks for a password. If you leave sudo out and assign a keyboard shortcut, it's a marvelous solution.

          – Jeff
          Mar 29 at 23:22











        • @Jeff You can use sudo if you add that command (poweroff or shutdown) to sudoers for that user. Then, it won't ask for a password.

          – Joe
          Apr 9 at 11:12













        4














        4










        4









        How about a keyboard shortcut?



        Go to your keyboard settings - for me, that's Settings ⇒ Devices ⇒ Keyboard(not sure what it is in Mate, but should be quite similar), scroll down to the bottom and click the + to add a new



        Then, name it, the command you'll want is sudo poweroff (or sudo shutdown now does the same thing, really) - and set it to whatever keyboard shortcut you want.
        I recommend super+h, since that's not taken by default, and since super+l is lock- but obviously, you can do whatever you want.... including maping it to an F-key of your choice.






        share|improve this answer















        How about a keyboard shortcut?



        Go to your keyboard settings - for me, that's Settings ⇒ Devices ⇒ Keyboard(not sure what it is in Mate, but should be quite similar), scroll down to the bottom and click the + to add a new



        Then, name it, the command you'll want is sudo poweroff (or sudo shutdown now does the same thing, really) - and set it to whatever keyboard shortcut you want.
        I recommend super+h, since that's not taken by default, and since super+l is lock- but obviously, you can do whatever you want.... including maping it to an F-key of your choice.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Mar 28 at 14:43

























        answered Mar 28 at 13:29









        rm-vandarm-vanda

        2,5442 gold badges16 silver badges25 bronze badges




        2,5442 gold badges16 silver badges25 bronze badges















        • It was hard to pick a winner. Ultimately this is the closest / best alternative. The only thing is you can't include sudo. If you do, it doesn't work because when you use sudo it asks for a password. If you leave sudo out and assign a keyboard shortcut, it's a marvelous solution.

          – Jeff
          Mar 29 at 23:22











        • @Jeff You can use sudo if you add that command (poweroff or shutdown) to sudoers for that user. Then, it won't ask for a password.

          – Joe
          Apr 9 at 11:12

















        • It was hard to pick a winner. Ultimately this is the closest / best alternative. The only thing is you can't include sudo. If you do, it doesn't work because when you use sudo it asks for a password. If you leave sudo out and assign a keyboard shortcut, it's a marvelous solution.

          – Jeff
          Mar 29 at 23:22











        • @Jeff You can use sudo if you add that command (poweroff or shutdown) to sudoers for that user. Then, it won't ask for a password.

          – Joe
          Apr 9 at 11:12
















        It was hard to pick a winner. Ultimately this is the closest / best alternative. The only thing is you can't include sudo. If you do, it doesn't work because when you use sudo it asks for a password. If you leave sudo out and assign a keyboard shortcut, it's a marvelous solution.

        – Jeff
        Mar 29 at 23:22





        It was hard to pick a winner. Ultimately this is the closest / best alternative. The only thing is you can't include sudo. If you do, it doesn't work because when you use sudo it asks for a password. If you leave sudo out and assign a keyboard shortcut, it's a marvelous solution.

        – Jeff
        Mar 29 at 23:22













        @Jeff You can use sudo if you add that command (poweroff or shutdown) to sudoers for that user. Then, it won't ask for a password.

        – Joe
        Apr 9 at 11:12





        @Jeff You can use sudo if you add that command (poweroff or shutdown) to sudoers for that user. Then, it won't ask for a password.

        – Joe
        Apr 9 at 11:12













        9
















        On Ubuntu, the command shutdown now allows you to shut down the system without being a root user. For a one-click solution in Mate, associate this command to a panel launcher.



        Beware not to click this by accident, because it will heavily disrupt your work. But then, you asked a one-click solution.



        For a two-click solution, Mate might still might offer a "traditional" shut down button you can add to the panel next to the 'Gear' icon. If not, then you still can create your own two-click shut-down launcher for mate-session-save --shutdown-dialog (gnome-session-quit --power-off for Gnome users).






        share|improve this answer































          9
















          On Ubuntu, the command shutdown now allows you to shut down the system without being a root user. For a one-click solution in Mate, associate this command to a panel launcher.



          Beware not to click this by accident, because it will heavily disrupt your work. But then, you asked a one-click solution.



          For a two-click solution, Mate might still might offer a "traditional" shut down button you can add to the panel next to the 'Gear' icon. If not, then you still can create your own two-click shut-down launcher for mate-session-save --shutdown-dialog (gnome-session-quit --power-off for Gnome users).






          share|improve this answer





























            9














            9










            9









            On Ubuntu, the command shutdown now allows you to shut down the system without being a root user. For a one-click solution in Mate, associate this command to a panel launcher.



            Beware not to click this by accident, because it will heavily disrupt your work. But then, you asked a one-click solution.



            For a two-click solution, Mate might still might offer a "traditional" shut down button you can add to the panel next to the 'Gear' icon. If not, then you still can create your own two-click shut-down launcher for mate-session-save --shutdown-dialog (gnome-session-quit --power-off for Gnome users).






            share|improve this answer















            On Ubuntu, the command shutdown now allows you to shut down the system without being a root user. For a one-click solution in Mate, associate this command to a panel launcher.



            Beware not to click this by accident, because it will heavily disrupt your work. But then, you asked a one-click solution.



            For a two-click solution, Mate might still might offer a "traditional" shut down button you can add to the panel next to the 'Gear' icon. If not, then you still can create your own two-click shut-down launcher for mate-session-save --shutdown-dialog (gnome-session-quit --power-off for Gnome users).







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Mar 29 at 9:29

























            answered Mar 28 at 13:20









            vanadiumvanadium

            11.4k2 gold badges21 silver badges40 bronze badges




            11.4k2 gold badges21 silver badges40 bronze badges
























                3
















                This works for me on Ubuntu 18.04



                sudo poweroff


                another option is to shutdown



                shutdown –h 09:30


                Power off the system.



                 --help Show this help
                --halt Halt the machine
                -p --poweroff Switch off the machine
                --reboot Reboot the machine
                -f --force Force immediate halt/power-off/reboot
                -w --wtmp-only Don't halt/power-off/reboot, just write wtmp record
                -d --no-wtmp Don't write wtmp record
                --no-wall Don't send wall message before halt/power-off/reboot





                share|improve this answer

























                • You probably want now rather than 09:30, most of the time.

                  – OrangeDog
                  Mar 28 at 23:01















                3
















                This works for me on Ubuntu 18.04



                sudo poweroff


                another option is to shutdown



                shutdown –h 09:30


                Power off the system.



                 --help Show this help
                --halt Halt the machine
                -p --poweroff Switch off the machine
                --reboot Reboot the machine
                -f --force Force immediate halt/power-off/reboot
                -w --wtmp-only Don't halt/power-off/reboot, just write wtmp record
                -d --no-wtmp Don't write wtmp record
                --no-wall Don't send wall message before halt/power-off/reboot





                share|improve this answer

























                • You probably want now rather than 09:30, most of the time.

                  – OrangeDog
                  Mar 28 at 23:01













                3














                3










                3









                This works for me on Ubuntu 18.04



                sudo poweroff


                another option is to shutdown



                shutdown –h 09:30


                Power off the system.



                 --help Show this help
                --halt Halt the machine
                -p --poweroff Switch off the machine
                --reboot Reboot the machine
                -f --force Force immediate halt/power-off/reboot
                -w --wtmp-only Don't halt/power-off/reboot, just write wtmp record
                -d --no-wtmp Don't write wtmp record
                --no-wall Don't send wall message before halt/power-off/reboot





                share|improve this answer













                This works for me on Ubuntu 18.04



                sudo poweroff


                another option is to shutdown



                shutdown –h 09:30


                Power off the system.



                 --help Show this help
                --halt Halt the machine
                -p --poweroff Switch off the machine
                --reboot Reboot the machine
                -f --force Force immediate halt/power-off/reboot
                -w --wtmp-only Don't halt/power-off/reboot, just write wtmp record
                -d --no-wtmp Don't write wtmp record
                --no-wall Don't send wall message before halt/power-off/reboot






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 28 at 12:59









                FlorinFlorin

                1513 bronze badges




                1513 bronze badges















                • You probably want now rather than 09:30, most of the time.

                  – OrangeDog
                  Mar 28 at 23:01

















                • You probably want now rather than 09:30, most of the time.

                  – OrangeDog
                  Mar 28 at 23:01
















                You probably want now rather than 09:30, most of the time.

                – OrangeDog
                Mar 28 at 23:01





                You probably want now rather than 09:30, most of the time.

                – OrangeDog
                Mar 28 at 23:01











                1
















                Creating an One Click button



                This has been tested and worked on Ubuntu 18.04.2



                Install a necessary package in order to easily create a desktop application. We will use the terminal because we need to use a special parameter to avoid unnecessary packages from being installed.



                sudo apt update
                sudo apt install --no-install-recommends gnome-panel


                Call the app from the terminal, as follows



                gnome-desktop-item-edit ~/.local/share/applications --create-new



                In the opening window give a Name, Comment and an Icon of your choice.
                The important here is the Command.



                Copy-paste the following in the Command field:



                dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 "org.freedesktop.login1.Manager.PowerOff" boolean:true



                Example Picture



                enter image description here



                Click OK



                Add the application wherever you want on your Desktop. The time you click the button, it will shutdown the PC without further questions.



                Example Picture



                enter image description here






                share|improve this answer





























                  1
















                  Creating an One Click button



                  This has been tested and worked on Ubuntu 18.04.2



                  Install a necessary package in order to easily create a desktop application. We will use the terminal because we need to use a special parameter to avoid unnecessary packages from being installed.



                  sudo apt update
                  sudo apt install --no-install-recommends gnome-panel


                  Call the app from the terminal, as follows



                  gnome-desktop-item-edit ~/.local/share/applications --create-new



                  In the opening window give a Name, Comment and an Icon of your choice.
                  The important here is the Command.



                  Copy-paste the following in the Command field:



                  dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 "org.freedesktop.login1.Manager.PowerOff" boolean:true



                  Example Picture



                  enter image description here



                  Click OK



                  Add the application wherever you want on your Desktop. The time you click the button, it will shutdown the PC without further questions.



                  Example Picture



                  enter image description here






                  share|improve this answer



























                    1














                    1










                    1









                    Creating an One Click button



                    This has been tested and worked on Ubuntu 18.04.2



                    Install a necessary package in order to easily create a desktop application. We will use the terminal because we need to use a special parameter to avoid unnecessary packages from being installed.



                    sudo apt update
                    sudo apt install --no-install-recommends gnome-panel


                    Call the app from the terminal, as follows



                    gnome-desktop-item-edit ~/.local/share/applications --create-new



                    In the opening window give a Name, Comment and an Icon of your choice.
                    The important here is the Command.



                    Copy-paste the following in the Command field:



                    dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 "org.freedesktop.login1.Manager.PowerOff" boolean:true



                    Example Picture



                    enter image description here



                    Click OK



                    Add the application wherever you want on your Desktop. The time you click the button, it will shutdown the PC without further questions.



                    Example Picture



                    enter image description here






                    share|improve this answer













                    Creating an One Click button



                    This has been tested and worked on Ubuntu 18.04.2



                    Install a necessary package in order to easily create a desktop application. We will use the terminal because we need to use a special parameter to avoid unnecessary packages from being installed.



                    sudo apt update
                    sudo apt install --no-install-recommends gnome-panel


                    Call the app from the terminal, as follows



                    gnome-desktop-item-edit ~/.local/share/applications --create-new



                    In the opening window give a Name, Comment and an Icon of your choice.
                    The important here is the Command.



                    Copy-paste the following in the Command field:



                    dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 "org.freedesktop.login1.Manager.PowerOff" boolean:true



                    Example Picture



                    enter image description here



                    Click OK



                    Add the application wherever you want on your Desktop. The time you click the button, it will shutdown the PC without further questions.



                    Example Picture



                    enter image description here







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Apr 2 at 23:33









                    NickTuxNickTux

                    14.4k5 gold badges46 silver badges65 bronze badges




                    14.4k5 gold badges46 silver badges65 bronze badges
























                        0
















                        If you don't care about shutting down "nicely," do this...
                        Alt+F2 and then press and hold Ctrl + Alt + Del for a few seconds. Note that the computer will reboot, not just turn off, so you will have to push the power button on the boot splash after rebooting to shut it off. However, Ubuntu itself will be shut down as fast as possible by easy means because you don't have to type any commands (though a keyboard shortcut would work). If you just want to turn off the OS, you can use this.






                        share|improve this answer





























                          0
















                          If you don't care about shutting down "nicely," do this...
                          Alt+F2 and then press and hold Ctrl + Alt + Del for a few seconds. Note that the computer will reboot, not just turn off, so you will have to push the power button on the boot splash after rebooting to shut it off. However, Ubuntu itself will be shut down as fast as possible by easy means because you don't have to type any commands (though a keyboard shortcut would work). If you just want to turn off the OS, you can use this.






                          share|improve this answer



























                            0














                            0










                            0









                            If you don't care about shutting down "nicely," do this...
                            Alt+F2 and then press and hold Ctrl + Alt + Del for a few seconds. Note that the computer will reboot, not just turn off, so you will have to push the power button on the boot splash after rebooting to shut it off. However, Ubuntu itself will be shut down as fast as possible by easy means because you don't have to type any commands (though a keyboard shortcut would work). If you just want to turn off the OS, you can use this.






                            share|improve this answer













                            If you don't care about shutting down "nicely," do this...
                            Alt+F2 and then press and hold Ctrl + Alt + Del for a few seconds. Note that the computer will reboot, not just turn off, so you will have to push the power button on the boot splash after rebooting to shut it off. However, Ubuntu itself will be shut down as fast as possible by easy means because you don't have to type any commands (though a keyboard shortcut would work). If you just want to turn off the OS, you can use this.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Mar 30 at 0:52









                            Brenden McFarlingBrenden McFarling

                            7115 bronze badges




                            7115 bronze badges































                                draft saved

                                draft discarded















































                                Thanks for contributing an answer to Ask Ubuntu!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid


                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.

                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function ()
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1129384%2ffastest-way-to-shutdown-ubuntu-mate-18-10%23new-answer', 'question_page');

                                );

                                Post as a guest















                                Required, but never shown





















































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown

































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown







                                Popular posts from this blog

                                Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                                SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                                은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현