Toggle WLAN Hotspot Gnome Taskbar












0















I have a mobile broadband connection that I am often sharing via hotspot on Ubuntu 18.04.2 LTS and Gnome 3.28.2. I can perfectly do this (as described for example here) via GUI. But I would like to realize that with a CLI command (for a toggle switch. How can I determine the command behind this GUI button: WLAN Hotspot ?










share|improve this question





























    0















    I have a mobile broadband connection that I am often sharing via hotspot on Ubuntu 18.04.2 LTS and Gnome 3.28.2. I can perfectly do this (as described for example here) via GUI. But I would like to realize that with a CLI command (for a toggle switch. How can I determine the command behind this GUI button: WLAN Hotspot ?










    share|improve this question



























      0












      0








      0








      I have a mobile broadband connection that I am often sharing via hotspot on Ubuntu 18.04.2 LTS and Gnome 3.28.2. I can perfectly do this (as described for example here) via GUI. But I would like to realize that with a CLI command (for a toggle switch. How can I determine the command behind this GUI button: WLAN Hotspot ?










      share|improve this question
















      I have a mobile broadband connection that I am often sharing via hotspot on Ubuntu 18.04.2 LTS and Gnome 3.28.2. I can perfectly do this (as described for example here) via GUI. But I would like to realize that with a CLI command (for a toggle switch. How can I determine the command behind this GUI button: WLAN Hotspot ?







      command-line 18.04 gnome network-manager wireless-access-point






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 9 hours ago









      mature

      2,0871728




      2,0871728










      asked 9 hours ago









      schiggnschiggn

      1




      1






















          1 Answer
          1






          active

          oldest

          votes


















          0














          I am confused with the example you have provided in the question.. it uses Unity..
          but 18.04 Defaults to GNOME



          I assume you are using GNOME and not Unity..



          Once you have created the hotspot in any way and once it is active..



          run the below command
          nmcli device show



          and note down the value for GENERAL.CONNECTION:

          in my case it is Hotspot-21



          Example:



          pratap@i3-6550U:~$ nmcli device show
          GENERAL.DEVICE: wlp2s0
          GENERAL.TYPE: wifi
          GENERAL.HWADDR: E0:94:67:64:C5:8F
          GENERAL.MTU: 1500
          GENERAL.STATE: 100 (connected)
          GENERAL.CONNECTION: Hotspot-21


          now use the commands below to toggle on and off (#Replace Hotspot-21 with your value)



          nmcli connection up Hotspot-21
          nmcli connection down Hotspot-21


          enter image description here



          Source: http://manpages.ubuntu.com/manpages/bionic/man1/nmcli.1.html



                 wifi hotspot [ifname ifname] [con-name name] [ssid SSID] [band {a | bg}] [channel channel]
          [password password]
          Create a Wi-Fi hotspot. The command creates a hotspot connection profile according to
          Wi-Fi device capabilities and activates it on the device. The hotspot is secured with
          WPA if device/driver supports that, otherwise WEP is used. Use connection down or
          device disconnect to stop the hotspot.





          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/3.0/"u003ecc by-sa 3.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%2f1120158%2ftoggle-wlan-hotspot-gnome-taskbar%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            I am confused with the example you have provided in the question.. it uses Unity..
            but 18.04 Defaults to GNOME



            I assume you are using GNOME and not Unity..



            Once you have created the hotspot in any way and once it is active..



            run the below command
            nmcli device show



            and note down the value for GENERAL.CONNECTION:

            in my case it is Hotspot-21



            Example:



            pratap@i3-6550U:~$ nmcli device show
            GENERAL.DEVICE: wlp2s0
            GENERAL.TYPE: wifi
            GENERAL.HWADDR: E0:94:67:64:C5:8F
            GENERAL.MTU: 1500
            GENERAL.STATE: 100 (connected)
            GENERAL.CONNECTION: Hotspot-21


            now use the commands below to toggle on and off (#Replace Hotspot-21 with your value)



            nmcli connection up Hotspot-21
            nmcli connection down Hotspot-21


            enter image description here



            Source: http://manpages.ubuntu.com/manpages/bionic/man1/nmcli.1.html



                   wifi hotspot [ifname ifname] [con-name name] [ssid SSID] [band {a | bg}] [channel channel]
            [password password]
            Create a Wi-Fi hotspot. The command creates a hotspot connection profile according to
            Wi-Fi device capabilities and activates it on the device. The hotspot is secured with
            WPA if device/driver supports that, otherwise WEP is used. Use connection down or
            device disconnect to stop the hotspot.





            share|improve this answer




























              0














              I am confused with the example you have provided in the question.. it uses Unity..
              but 18.04 Defaults to GNOME



              I assume you are using GNOME and not Unity..



              Once you have created the hotspot in any way and once it is active..



              run the below command
              nmcli device show



              and note down the value for GENERAL.CONNECTION:

              in my case it is Hotspot-21



              Example:



              pratap@i3-6550U:~$ nmcli device show
              GENERAL.DEVICE: wlp2s0
              GENERAL.TYPE: wifi
              GENERAL.HWADDR: E0:94:67:64:C5:8F
              GENERAL.MTU: 1500
              GENERAL.STATE: 100 (connected)
              GENERAL.CONNECTION: Hotspot-21


              now use the commands below to toggle on and off (#Replace Hotspot-21 with your value)



              nmcli connection up Hotspot-21
              nmcli connection down Hotspot-21


              enter image description here



              Source: http://manpages.ubuntu.com/manpages/bionic/man1/nmcli.1.html



                     wifi hotspot [ifname ifname] [con-name name] [ssid SSID] [band {a | bg}] [channel channel]
              [password password]
              Create a Wi-Fi hotspot. The command creates a hotspot connection profile according to
              Wi-Fi device capabilities and activates it on the device. The hotspot is secured with
              WPA if device/driver supports that, otherwise WEP is used. Use connection down or
              device disconnect to stop the hotspot.





              share|improve this answer


























                0












                0








                0







                I am confused with the example you have provided in the question.. it uses Unity..
                but 18.04 Defaults to GNOME



                I assume you are using GNOME and not Unity..



                Once you have created the hotspot in any way and once it is active..



                run the below command
                nmcli device show



                and note down the value for GENERAL.CONNECTION:

                in my case it is Hotspot-21



                Example:



                pratap@i3-6550U:~$ nmcli device show
                GENERAL.DEVICE: wlp2s0
                GENERAL.TYPE: wifi
                GENERAL.HWADDR: E0:94:67:64:C5:8F
                GENERAL.MTU: 1500
                GENERAL.STATE: 100 (connected)
                GENERAL.CONNECTION: Hotspot-21


                now use the commands below to toggle on and off (#Replace Hotspot-21 with your value)



                nmcli connection up Hotspot-21
                nmcli connection down Hotspot-21


                enter image description here



                Source: http://manpages.ubuntu.com/manpages/bionic/man1/nmcli.1.html



                       wifi hotspot [ifname ifname] [con-name name] [ssid SSID] [band {a | bg}] [channel channel]
                [password password]
                Create a Wi-Fi hotspot. The command creates a hotspot connection profile according to
                Wi-Fi device capabilities and activates it on the device. The hotspot is secured with
                WPA if device/driver supports that, otherwise WEP is used. Use connection down or
                device disconnect to stop the hotspot.





                share|improve this answer













                I am confused with the example you have provided in the question.. it uses Unity..
                but 18.04 Defaults to GNOME



                I assume you are using GNOME and not Unity..



                Once you have created the hotspot in any way and once it is active..



                run the below command
                nmcli device show



                and note down the value for GENERAL.CONNECTION:

                in my case it is Hotspot-21



                Example:



                pratap@i3-6550U:~$ nmcli device show
                GENERAL.DEVICE: wlp2s0
                GENERAL.TYPE: wifi
                GENERAL.HWADDR: E0:94:67:64:C5:8F
                GENERAL.MTU: 1500
                GENERAL.STATE: 100 (connected)
                GENERAL.CONNECTION: Hotspot-21


                now use the commands below to toggle on and off (#Replace Hotspot-21 with your value)



                nmcli connection up Hotspot-21
                nmcli connection down Hotspot-21


                enter image description here



                Source: http://manpages.ubuntu.com/manpages/bionic/man1/nmcli.1.html



                       wifi hotspot [ifname ifname] [con-name name] [ssid SSID] [band {a | bg}] [channel channel]
                [password password]
                Create a Wi-Fi hotspot. The command creates a hotspot connection profile according to
                Wi-Fi device capabilities and activates it on the device. The hotspot is secured with
                WPA if device/driver supports that, otherwise WEP is used. Use connection down or
                device disconnect to stop the hotspot.






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 5 hours ago









                PRATAPPRATAP

                2,8182728




                2,8182728






























                    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%2f1120158%2ftoggle-wlan-hotspot-gnome-taskbar%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

                    How did Captain America manage to do this?

                    迪纳利

                    南乌拉尔铁路局