Toggle WLAN Hotspot Gnome Taskbar
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: ?
command-line 18.04 gnome network-manager wireless-access-point
add a comment |
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: ?
command-line 18.04 gnome network-manager wireless-access-point
add a comment |
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: ?
command-line 18.04 gnome network-manager wireless-access-point
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: ?
command-line 18.04 gnome network-manager wireless-access-point
command-line 18.04 gnome network-manager wireless-access-point
edited 9 hours ago
mature
2,0871728
2,0871728
asked 9 hours ago
schiggnschiggn
1
1
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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 commandnmcli 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
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.
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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 commandnmcli 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
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.
add a comment |
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 commandnmcli 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
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.
add a comment |
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 commandnmcli 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
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.
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 commandnmcli 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
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.
answered 5 hours ago
PRATAPPRATAP
2,8182728
2,8182728
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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