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

How install mmcli and fix dbus error

Картинки по запросу modem manager logommcli - 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 create intermediate directories in their absence)



Популярные сообщения из этого блога

How update Debian 7 (Wheezy) to 8/9 (Jessie/Stretch) in OpenVZ

OpenVZ allows you to create a virtual system (container) of a Linux system at the system level, with a common core.
Often, the most cheap VPS works on this technology.
Unfortunately, the OpenVZ project is developing poorly, new containers with fresh distributions do not come out.
However, you can simply update the system inside the container (in this case, Debian 7) to more relevant and fresh.
On some small VPS LES projects, I needed to use the current version of Debian, with i386 architectures, but only the Debian 7 wheezy assemblies were available, as the latest ones for this architecture.

No problem, update the system to a fresh release. The best solution would be to upgrade the system stepwise, upgrading the version by one after each update.
First, open the file /etc/apt/sources.list and change wheezy to jessie, so
deb http://ftp.debian.org/debian jessie main contrib Save, exit, and execute apt-get update
root@de:~# apt-get update Get:1 http://ftp.debian.org jessie Release.gpg [16…