Questions tagged [networkmanager]
133 questions
14
votes
3 answers
Detect if current connection is metered with NetworkManager
How can I detect whether the current connection is marked as metered on a system with NetworkManager?
This is from a shell script, but I can easily call any C functions via Python.

phihag
- 278,196
- 72
- 453
- 469
7
votes
1 answer
Is it possible to use the nmcli in WSL and create a wifi hotspot?
I am trying to setup a wifihotpot on my laptop in ubuntu 18 running as a Windows Subsystem for Linux (WSL). (Terminal only)
Following basic tutorials I wanted to run the following command:
~$ nmcli device wifi hotspot con-name my-hotspot ssid…

Joost
- 71
- 1
- 5
7
votes
3 answers
nmcli in a docker container
i currently looking for running nmcli in a docker container
nmcli work great on my host but if i'm starting a privileged container nmcli does not work.
to start my container
sudo docker run --privileged --net host -it image_with_network-manager…

Maxime Krier
- 81
- 1
- 1
- 5
6
votes
0 answers
ContentResolver requestSync not triggering SyncAdapter onPerformSync when wifi not available but cellular data is on samsung device
The problem is as follows. I have a working SyncAdapter and ContentResolver setup. The problem that SyncAdapters onPerformSync is not triggered happens when I have wifi turned on but the wifi does not have an internet connection (it is connected to…

Tadej Vengust
- 1,351
- 4
- 18
- 35
6
votes
0 answers
Docker Linux Mint NetworkManager failed to find device with udev
Using:
Linux 4.13.0-26-generic #29~16.04.2-Ubuntu SMP Tue Jan 9 22:00:44 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
I've been noticing my system hesitating while working, and finally tracked it down to something wonky going on with Docker veth…

Mike Crowe
- 2,203
- 3
- 22
- 37
5
votes
2 answers
Ansible nmcli module - requirement issue
I am trying to use the Ansible nmcli module on a Debian 9 target.
I am getting the following error:
This module requires NetworkManager glib API
The Ansible documentation says that I need NetworkManager-glib.
On Centos and RHEL this package is…

Mr.King
- 133
- 3
- 13
4
votes
1 answer
USB Modem with modemmanager and networkmanager on embedded linux (yocto dunfell)
I am trying to get a USB Modem working on my embedded system which uses Linux from Yocto Dunfell with ModemManager and NetworkManager.
As you can see below, I am able to connect the modem on the network but I can't create the connection and bring up…

Spark15
- 41
- 4
4
votes
0 answers
OpenVPN "use this connection only for resources on its network" not allowing access to VPN hosted site (Ubuntu 20.04)
I am connected to a VPN using OpenVPN. Everything was working fine but the network administrator informed me I had unusually high traffic. I inspected my VPN settings and realised I had forgotten to check "Use this connection only for resources on…

Steven Gillies
- 471
- 7
- 18
4
votes
1 answer
proxy server configuration using NetworkManager nmcli
I need to set proxy server URL on my machine with NetworkManager commands only. I can't install other tools. The device runs MbedLinux (linux embedded distro).
Q: How do I configure the proxy server using NetworkManager nmcli commands?
I found these…

user3518295
- 180
- 3
- 14
4
votes
1 answer
How can i3 config execute sudo commands
To be able to connect to wifi, I use nm-applet. When i run nm-applet it puts an icon in the i3 bar where I can select the network to which I want to connect...
But there are no wifi networks... To solve this I use sudo systemctl restart…

Cristian Gira
- 113
- 2
- 8
3
votes
1 answer
Qt DBUS NetworkManager get Address from IP4Config interface
I have been using QtDBus and NetworkManager for a while but have run into a problem. I need to access the Wi-Fi devices IP address and the way to obtain it is to get the Wi-Fi device object, get its IP4Config property (a QDbusObjectPath object) and…

Michael Uman
- 31
- 2
3
votes
0 answers
Connman does not seem to start a DHCP server
I am creating a USB gadget with Yocto, which loads the gadget kernel modules and is recognized by my host as a network interface (usb0). On the gadget, I have connman installed and running. I am using the default configuration (no…

JonasVautherin
- 7,297
- 6
- 49
- 95
3
votes
0 answers
nameservers update differently with openconnect and openconnect-gnome in ubuntu 18.04
This seems to be a new issue with network-manager-openconect-gnome in Ubuntu 18.04+
I install sudo apt install network-manager-openconnect-gnome to get gnome integration with opeconnect and Cisco AnyConnect Compatible VPN (openconnect)
As an aside…

eotfofiw
- 101
- 2
3
votes
2 answers
Using Network Manager (nmcli) to configure DHCP, with a fallback static IP address in case DHCP fails
I am working with an embedded linux device, which we typically connect to by static IP address during development. However, on-site we have a requirement to connect using DHCP and so, I would like to setup a primary DHCP connection, with a fallback…

user5265160
- 409
- 1
- 8
- 19
3
votes
1 answer
How do I listen for a DBus signal in a GTK (python 3, Gio) app?
I'm trying to make my GTK app responsive to network connection state changes. My approach is what I said in the question: Listen on a (NetworkManager) DBus signal.
I have a python3 GTK app (a very minimal one, I should add), using python-gi.
As…

incase1
- 174
- 2
- 4