К основному контенту

Сообщения

Сообщения за Апрель, 2019

How install mmcli and fix dbus error

mmcli - a great simple utility for controlling usb modems, included in Modem manager.
The installation process is quite simple. First you need to install the package networkmanager.
--- Install processs

Then you need to add a daemon to autorun and run it.
# systemctl enable ModemManager # systemctl start ModemManager 
Now you can run mmcli utility.

List of detected modems:  mmcli -L
select you modem 
Usage of mmcli utility here (link to other topic)
In most cases, using most mmcli commands is impossible without sudo due to access restrictions for dbus and you will receive this error instead of executing the required command.
dargod@zeropi:~$ mmcli -e -m 34 error: couldn't enable the modem: 'GDBus.Error:org.freedesktop.ModemManager1.Error.Core.Unauthorized: PolicyKit authorization failed: not authorized for 'org.freedesktop.ModemManager1.Device.Control''



if you want to use mmcli without superuser rights, you need to create the following file (you will also need to c…