How to toggle HOTSPOT using Terminal in Ubuntu 18.04

Asked by Aayush

What are the terminal commands to toggle Hotspot In Ubuntu 18.04

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was reopened

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Do you mean Ubuntu 18.04 or 18.10 ? There is no "Ubuntu 18"

What is the output of:

lsb_release -a; uname -a

Thanks

Revision history for this message
Aayush (aayush.ag21) said :
#3

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic

Linux Sharingan 4.15.0-29-generic #31-Ubuntu SMP Tue Jul 17 15:39:52 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

Are you wanting to make a WiFi hot spot for other systems to connect to? Is this the goal here please?

Revision history for this message
Aayush (aayush.ag21) said :
#5

Yes,using Terminal although

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#6
Revision history for this message
Aayush (aayush.ag21) said :
#7

Thanks actionparsnip, that solved my question.

Revision history for this message
Aayush (aayush.ag21) said :
#8

but anyway does anyone know what those commands mean?

Revision history for this message
Manfred Hampl (m-hampl) said :
#9

see the man pages for nmcli
http://manpages.ubuntu.com/manpages/bionic/en/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.

           Parameters of the hotspot can be influenced by the optional parameters:

           ifname
               what Wi-Fi device is used.

           con-name
               name of the created hotspot connection profile.

           ssid
               SSID of the hotspot.

           band
               Wi-Fi band to use.

           channel
               Wi-Fi channel to use.

           password
               password to use for the created hotspot. If not provided, nmcli will generate a
               password. The password is either WPA pre-shared key or WEP key.

               Note that --show-secrets global option can be used to print the hotspot password.
               It is useful especially when the password was generated.
...

Revision history for this message
Celina cruz (celina27) said :
#10

Can you help with this problem?

Provide an answer of your own, or ask Aayush for more information if necessary.

To post a message you must log in.