11.
Run the
$quit
command to quit the
bluetoothctl
console.
Network Manager – Ubuntu Core 16
Network-Manager is a native Ubuntu Snappy Connection Manger, the application handles multiple network devices, provides
detection and configuration for system to automatically connect to network.
A command line utility
nmcli
is included with Network-Manager to support non-graphical user interface.
WWAN (nmcli example)
•
Configure the Mobile Broadband connection profile —
network-manager.nmcli con add type gsm ifname
ttyACM3 con-name
<connection name>
apn
<apn>
user
<user name>
password
<password>
•
Connect to the mobile network —
# network-manager.nmcli con up
<connection name>
WLAN (nmcli example)
•
Run the
$ network-manager.nmcli d
to show a list of network interfaces like
eth0
,
eth1
,
wlan0
,
mlan0
, and so on
•
Run the
$ network-manager.nmcli device wifi list
to list the available wireless Access Points.
•
Wireless connection with
nmcli
: Run the following commands and replace
$SSID
,
$PSK
, and
$WIFI_INTERFACE
of your
environment.
– Connect:
$ sudo network-manager.nmcli dev wifi connect $SSID password $PSK ifname
$WIFI_INTERFACE
– Disconnect:
$ sudo network-manager.nmcli dev disconnect $WIFI_INTERFACE
Software enabled Access Point (SoftAP)
This feature depends on the wireless module and it’s associated driver to act as a wireless access point.
1.
Login to Ubuntu Snappy, make sure the system is connected to internet.
2.
Run the
#sudo snap seach wifi-ap
command to find the application from the Ubuntu Snappy Store
3.
Run the
#sudo snap install wifi-ap
command to install the application.
4.
After snap is installed, run the
$ sudo wifi-ap.config set wifi.interface mlan0
to set the network interface
being used to operate the access point on.
5.
Enable the access point and restart the service:
$ sudo /snap/bin/wifi-ap.config set disabled 0
$ sudo systemctl start snap.wifi-ap.backend
WiFi-AP default SSID
Ubuntu
should now visible to clients.
Bluetooth
To connect to a Bluetooth device like a Bluetooth keyboard:
1.
Run the
#bluetoothctl -a
command to start
bluetoothctl
console.
The bluetoothctl console is opened.
2.
Run the
$power on
command to power on the Bluetooth device.
3.
Register the agent for keyboard:
$agent KeyboardOnly
$default-agent
4.
Run the
$pairable on
command to put the Bluetooth controller in pair-able mode.
5.
Run the
$scan on
command to scan nearby Bluetooth device.
6.
Run the
$scan off
command to stop scanning after Bluetooth keyboard is found.
7.
Run the
$pair
<MAC address of bluetooth keyboard>
command to pair the Bluetooth keyboard.
8.
Enter PIN Code on Bluetooth keyboard if needed.
9.
Run the
$trust
<MAC address of bluetooth keyboard>
command to turst the Bluetooth keyboard.
38