[SOLVED] Network Manager Applet

One of the things I got used to from Ubuntu is the network manager applet, which allows managing connections with ease. As instructed in the Wiki, I tried installing it with the following commands:
pacman -S networkmanager
pacman -S network-manager-applet
And then launched it by typing
nm-applet
But this comes up in the terminal:
(nm-applet:1518): Gdk-CRITICAL **: gdk_visual_get_red_pixel_details: assertion `GDK_IS_VISUAL (visual)' failed
(nm-applet:1518): Gdk-CRITICAL **: gdk_visual_get_green_pixel_details: assertion `GDK_IS_VISUAL (visual)' failed
(nm-applet:1518): Gdk-CRITICAL **: gdk_visual_get_blue_pixel_details: assertion `GDK_IS_VISUAL (visual)' failed
** Message: applet now removed from the notification area
(nm-applet:1518): libnotify-WARNING **: Failed to connect to proxy
** (nm-applet:1518): WARNING **: get_all_cb: couldn't retrieve system settings properties: (25) Launch helper exited with unknown return code 1.
** (nm-applet:1518): WARNING **: fetch_connections_done: error fetching connections: (25) Launch helper exited with unknown return code 1.
** (nm-applet:1518): WARNING **: Failed to register as an agent: (25) Launch helper exited with unknown return code 1
** Message: applet now embedded in the notification area
** Message: applet now removed from the notification area
In the notification area the icon looked like it was going to show up, but it's removed immediately.
I'm not even sure if I can connect to a wireless connection without this, can I? I wouldn't mind using a different method for connecting to my wireless connection, just as long as it works and it automatically connects when I login. So if anyone has got a better idea, please share it with me. In the mean time, what would I need to do to fix this and have the network manager applet working?
Last edited by faviouz (2011-09-15 15:52:50)

faviouz wrote:
Thanks for the quick reply dodo3773!
It worked excellently! I also added networkmanager to the daemons array and it loads on boot now, which is great.
No problem. Glad to help. As karol said the wiki has many tips and tricks for almost anything that you need to get your system up and running. Make sure to read through the rest of the networkmanager one in regards to  gnome-keyring, groups, etc.. Take care and welcome to Arch Linux Forums.

Similar Messages

  • [SOLVED] network-manager-applet not found

    Hi, I'm quite noob here, and I'm trying to install network-manager-applet with no luck;
    So far I've done
    # pacman -S network-manager-applet
    and I got
    resolving dependencies...
    looking for inter-conflicts...
    Targets (1): network-manager-applet-0.8-1
    Total Download Size: 1.01 MB
    Total Installed Size: 4.35 MB
    Proceed with installation? [Y/n] y
    :: Retrieving packages from extra...
    error: failed retrieving file 'network-manager-applet-0.8-1-x86_64.pkg.tar.gz' from mi.mirror.garr.it : Not Found
    error: failed retrieving file 'network-manager-applet-0.8-1-x86_64.pkg.tar.gz' from ftp.nluug.nl : Not Found
    error: failed retrieving file 'network-manager-applet-0.8-1-x86_64.pkg.tar.gz' from ftp.hosteurope.de : Not Found
    error: failed retrieving file 'network-manager-applet-0.8-1-x86_64.pkg.tar.gz' from ftp-stud.hs-esslingen.de : Not Found
    error: failed retrieving file 'network-manager-applet-0.8-1-x86_64.pkg.tar.gz' from archlinux.puzzle.ch : Not Found
    error: failed retrieving file 'network-manager-applet-0.8-1-x86_64.pkg.tar.gz' from ftp.surfnet.nl : Not Found
    warning: failed to retrieve some files from extra
    error: failed to commit transaction (Not Found)
    Errors occurred, no packages were upgraded.
    so I tried to download the package itself and install it with
    pacman -U network-manager-applet-0.8-2-x86_64.pkg.tar.xz
    and the answer was
    loading package data...
    checking dependencies...
    error: failed to prepare transaction (could not satisfy dependencies)
    :: network-manager-applet: requires mobile-broadband-provider-info
    what to do?
    i cannot find in the repos the package mobile-broadband-provider-info
    thank you in advance
    Last edited by lsk (2010-03-10 10:15:21)

    Update your system - "pacman -Syu".  The clue is that the file you manually downloaded is different to the one pacman is trying to get.

  • [SOLVED]Network Manager Applet and nmcli failing after GCC upgrade

    Hi All,
    So I went to update my system today and there were only like 8 or 9 updates. Like many other people I had an issue with gcc and pacman. To fix this I ran
    pacman -S gcc
    Then I ran:
    pacman -Su
    which updated pacman itself. On reboot though I noticed network manager applet was unable to find any of my network devices despite the fact that network manager was running and I had an IP address. I killed nm-applet and re-ran it and it spewed errors about not being able to connect to network manager. I tried running nmcli and it did the same thing. However, when I run nmcli as root it works. Looking at the arch wiki they suggest you be a part of the wheel and network group which I made sure I was. Everything was working up until I ran those two updates though. Anyone else have this happen or have any idea what is wrong?
    Thanks,
    Hemmar
    EDIT: Never mind - a patch was released for consolekit which fixes the problem.
    Last edited by hemmar (2012-04-13 00:36:49)

    Hi guz46
    I have already tried removing the ! and the same thing happened ... but I realised today that I was being automatically connected to "Auto eth0" despite there being no cable present. When automatic connection was disabled on "Auto eth0" my 3G connection (ppp0) connected fine.
    Could you clarify that the preferred set-up in the /etc/rc.conf for the interfaces is without the !. The Wiki for networkmanager says to disable them, but then states that some may need to be reenabled with no explanation. The purpose of this confuses me!
    Thanks for you help anyways,
    Scott
    EDIT:
    I appear to have fixed my problem with the auto connection on the various interfaces by updating my /etc/rc.conf file to:
    #Static IP example
    #eth0="dhcp"
    ppp0="dhcp"
    wlan0="dhcp"
    eth0="dhcp"
    INTERFACES=(ppp0 wlan0 eth0)
    Thus ensuring that I can connect in order of preference.
    Last edited by ScottArch (2009-11-03 18:48:47)

  • [SOLVED] Network Manager confusion on reading WiKi

    I have installed KDE DE...I am unable to start the network through NM...
    On going thru Arch Wiki , https://wiki.archlinux.org/index.php/NetworkManager
    I understand that there are 2 NMs available..One is for GNOME but works in all DE (backend), Other is "Knetworkmanager" which is for KDE.(backend)...
    The frontend GUI is Gnome- applet and KDEplasme-applet
    It is stated under KDE 3.5 , that Knetworkmanager is not supported but available in AUR...
    My doubt is as follows
    1. What should I install for KDE backend? --- Gnome Networkmanager or Knetworkmanager (Is the version for 4.4 & above supported?, wiki is silent on this)?
    2. For Frontend should I install the Plasma widget or the GNOME applet?
    3. If backend is GNOME network manager will it work with KDE plasma widget (front end) ?
    4. In /etc/rc.conf , in "DAEMONS = " should I give "knetworkmanager" or "networkmanager" If I install the KDE version?
    I had installed WIcd to test my settings...It was working initially after typing
    modprobe b43 <for bcm chipset>
    /etc/rc.d/network start
    /etc/rc.d/dbus restart
    /etc/rc.d/wicd start
    ifconfig wlan0 up
    dhcpcd wlan0
    wicd-curses
    Then I typed the network pwd and booted my interface.
    i wanted to go in for network manager as it would save me the typing time..(Currently I installed pacman -S networkmanager (GNOME version) and KDE plasma "the one with the icon similar to "m")But on selecting the interface it goes thru Activating Interface and then says "Network Connection failed"
    Now I am also not able to get wicd up
    Any pointers?
    EDIT ---The title says Graphical Front end managers, So I guess there is only one backend....In that case , why is my Network not working??All the wireless are detected ,so there is no problem with firmware....I have also enabled dhcpc (automatic)...So it shld fetch an IP address....dunno what the problem is..
    Last edited by vikrang (2011-04-29 10:11:02)

    vikrang wrote:1. What should I install for KDE backend? --- Gnome Networkmanager or Knetworkmanager (Is the version for 4.4 & above supported?, wiki is silent on this)?
    2. For Frontend should I install the Plasma widget or the GNOME applet?
    3. If backend is GNOME network manager will it work with KDE plasma widget (front end) ?
    4. In /etc/rc.conf , in "DAEMONS = " should I give "knetworkmanager" or "networkmanager" If I install the KDE version?
    1. there is just one, networkmanager. network-manager-applet and kdeplasma-applets-networkmanagement are just front-ends to networkmanager.
    2. https://wiki.archlinux.org/index.php/Ne … nager#KDE4 , but https://wiki.archlinux.org/index.php/Ne … ager#GNOME will work too. I use network-manager-applet on KDE 'cause the KDE front-end can't set a system connection.
    3. I won't even bother to answer to this.
    4. networkmanager!!!
    vikrang wrote:I have also enabled dhcpc (automatic)...So it shld fetch an IP address....dunno what the problem is..
    if you are using networkmanager you must the networkmanager daemon, not network. replace network with networkmanager in rc.conf in DAEMONS array.
    Last edited by JokerBoy (2011-04-27 08:59:42)

  • [SOLVED] Network Manager: Connecting...

    Hello Arch Community!
    After three months wihout any Arch System I have switched from Ubuntu back to Arch.
    It seems that everything is working without any issues.
    One of my little problem is the program NetworkManager. Under GNOME 3.8, MATE and all other desktop environment using it, it only shows "Connecting". It seems to be connected because I can access the internet over my WPA2 encrypted wireless network. I have activated it with systemctl enable NetworkManager.service and installed the applet with pacman -S network-manager-applet. Under Ubuntu it worked without any problems but under my three Arch systems (Raspberry Pi, Sony Vaio VPCF13E4E and Acer Aspire One 725) it only shows connecting. If I run an Arch based distro from a live USB it works there too so there could be something wrong configured. If I start the network manager applet via the terminal it shows no errors.
    If you need more information please ask for it (it would be nice if you could tell me the Terminal command because I have forgotten many terminal commands while using Ubuntu ).
    Thanks in advance!
    To98
    EDIT: I have switched to Debian unstable (and stable on my Netbook) because next week school starts and I have no time to fix all my problems with Arch (I have no clue why I have those problems, because Arch worked always "out of the box" on my devices...).
    Thanks for the great time with Arch and the great Arch community. I think Debian is also a good choice and with backports I can have the newest software on Debian stable.
    Last edited by To98 (2013-09-07 16:38:53)

    Hello Arch Community!
    After three months wihout any Arch System I have switched from Ubuntu back to Arch.
    It seems that everything is working without any issues.
    One of my little problem is the program NetworkManager. Under GNOME 3.8, MATE and all other desktop environment using it, it only shows "Connecting". It seems to be connected because I can access the internet over my WPA2 encrypted wireless network. I have activated it with systemctl enable NetworkManager.service and installed the applet with pacman -S network-manager-applet. Under Ubuntu it worked without any problems but under my three Arch systems (Raspberry Pi, Sony Vaio VPCF13E4E and Acer Aspire One 725) it only shows connecting. If I run an Arch based distro from a live USB it works there too so there could be something wrong configured. If I start the network manager applet via the terminal it shows no errors.
    If you need more information please ask for it (it would be nice if you could tell me the Terminal command because I have forgotten many terminal commands while using Ubuntu ).
    Thanks in advance!
    To98
    EDIT: I have switched to Debian unstable (and stable on my Netbook) because next week school starts and I have no time to fix all my problems with Arch (I have no clue why I have those problems, because Arch worked always "out of the box" on my devices...).
    Thanks for the great time with Arch and the great Arch community. I think Debian is also a good choice and with backports I can have the newest software on Debian stable.
    Last edited by To98 (2013-09-07 16:38:53)

  • Network Manager applet won't show up on my desktop

    I use wifi-menu to connect to wifi, even if I'd like to use NetworkManager since I used it in debian. Anyways, I have NetworkManager installed, and xfce tells me it's in the systray except it's not. This is a pretty huge problem for me, especially because my wifi drivers tend to disconnect and wifi-menu doesn't help that much when I have an internet that doesn't work. In Debian, if my drivers disconnected all I'd have to do is reconnect from NetworkManager and they'd magically work again.

    waddicto wrote:However, I have a different problem now, I have two network applets in my systray.
    The network-manager-applet package installs the startup file: /etc/xdg/autostart/nm-applet.desktop
    Are you starting up another nm-applet somewhere else?

  • Network Manager Applet Cannot Edit Options/Connections As Normal User

    Today I installed Network Manager, and Network Manager Applet in XFCE as a normal user. I followed the instructions on the Arch Network Manager Wiki to the best of my knowlage. The NM-Applet connects to my ethernet, and everything is fine. Untill that is, when I right click the NM Applet.
    Once right clicked as a normal user, 'Enable Networking', and 'Enable Wireless' are greyed out and unselectable. Also, when I right click the applet and select 'Edit Connections' 90% of the clickable options are greyed out, including the options to 'Edit' or 'Delete' connections. The only clickable option not greyed out is 'Add' button.
    Clicking Add brings up the 'Add New Connection Window', but again everything is greyed out. 'Available To All Users' is checked, but is greyed out also. But, starting XFCE as root, allows me to use the NM Applet with no restrictions, AKA none of the greyed out options. Everything works fine.This is my second day using Arch, so I am not sure where to go now.
    It also may be of help ito say I haven't gotten a display manager, such as lightdm or gdm.
    My guess is that root is listed under a group the 'jesse' isn't. Or maybe it has something to do with PolicyKit. I'm not sure. If someone could give me a set of clear instructions on how to fix this annoyance, it would be greatly appreciated. Thank You.
    My Current Normal User Groups wrote: disk lp wheel uucp games network video audio optical storage scanner power users
    My /etc/hosts file wrote:
    # /etc/hosts: static lookup table for host names
    #<ip-address>   <hostname.domain.org>           <hostname>
    127.0.0.1              localhost.localdomain localhost jesse
    ::1                         localhost.localdomain localhost jesse
    # End of file
    My /etc/rc.conf wrote:
    # /etc/rc.conf - configuration file for initscripts
    # Most of rc.conf has been replaced by various other configuration
    # files. See archlinux(7) for details.
    # For more details on rc.conf see rc.conf(5).
    DAEMONS=(alsa dbus syslog-ng crond ifplugd networkmanager bluetooth avahi-daemon acahi-dnsconfd avahi-dnsconfd fa$
    # Storage
    # USEDMRAID="no"
    # USELVM="no"
    # Network
    # interface=eth0
    # address=
    # netmask=
    # gateway=
    My /etc/polkit-1/localauthority/50-local.d/org.freedesktop.NetworkManager.pkla wrote:Identity=unix-group:network
    Action=org.freedesktop.NetworkManager.*
    ResultAny=yes
    ResultInactive=no
    ResultActive=yes
    Last edited by TriforceLZG (2012-09-02 13:43:23)

    I found the solution, I had to install a Display Manager. Now everything is fine.

  • [xfce4] network-manager-applet not asking for Wifi password

    I am running XFCE with  the gnome network-manager-applet and kwallet as password storage and I do not want to use the gnome keyring because it is making many problems with my current setup.
    There are multiple ways to store passwords in NetworkManager. To save them plain in the config files is not an option for me. So I can put them in a password store or hack them in every time I want to connect.
    While the gnome network-manager-applet does not work with kwallet I accepted to do all the hackery every time.
    Problem: I even can not hack in the passwords.
    If I try to connect the connection is disconnected immediately. The logs say, that "The name org.freedesktop.secrets was not provided by any .service files".
    Long story short:
    - NetworkManager needs the dbus service "org.freedesktop.secrets" to read passwords (via password store or via prompt)
    - kwallet does not announce "org.freedesktop.secrets" - this is done by the nm-plasma applet (which I can not run without hacking XFCE)
    - gnome-keyring announces itself as a secret agent but does not work with my setup
    Do I need to write my own secret agent which only shows a password prompt and parses the input to NM or is there any option/tool/patch/hack/miracle that I have missed to use kwallet with gnome network-manager-applet or to get a password prompt without installing gnome-keyring?
    Thanks in advance
    Last edited by frederik (2015-04-14 15:30:24)

    add this to your start-up: gnome-keyring-daemon --components=gpg
    Edit: and install gnome-keyring ofc
    Last edited by MakeTheGOD (2015-04-28 05:24:33)

  • Weird Network-manager-applet icon

    I have installed network-manager-applet 0.9.8.8-1 and a weird icon is displayed: a question mark
    What does it mean?

    toni wrote:
    Inxsible wrote:its not connected to any network ?
    I am connected correctly and I have Internet connection without problems but I do not know why is it showing a question mark...
    Ok, but you didn't mention that in your first post and sadly, I cannot read minds.
    In any case, its a bug as has been posted above.

  • Network-manager-applet/hal upgrade.

    Is anybody else having issues after the latest upgrade from gnome-network-manager to network-manager-applet?
    After the upgrade + reboot, the networkmanager icon doesn't appear at start up, and the hal upgrade appears to have done something as well as my Windows partition no longer is mounted, my external drive isn't recognized, and Shutdown and Reboot do not appear on the Shutdown... menu
    Running x86_64

    proxima_centauri wrote:I already tryed downgrading both hal and back to gnome-network-manger.
    I still have no networkmanger icon at start up, but internet still is functional.
    My NTFS partition now shows after going back to old hal, but my external drive still isn't recognized, can't manually mount because there is no /dev/sdb showing up.
    the network icon problem: have you installed network-manager-applet?
    the hal problem: try modify /etc/PolicyKit/PolicyKit.conf as root
    add the following between <config version="0.1"> and </config>
    <match user="$USER">
    <match action="org.freedesktop.hal.storage.*">
    <return result="yes"/>
    </match>
    <match action="hal-storage-mount-fixed-extra-options">
    <return result="yes" />
    </match>
    <match action="hal-storage-mount-removable-extra-options">
    <return result="yes" />
    </match>
    </match>
    where $USER is your username. restart hal.
    and then modify /usr/share/hal/fdi/policy/10osvendor/20-storage-methods.fdi as root
    find the following and modify it. the two lines with <merge key> is what added.
    <!-- allow these mount options for ntfs -->
    <match key="volume.fstype" string="ntfs">
    <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" string="Linux">
    <merge key="volume.fstype" type="string">ntfs-3g</merge>
    <merge key="volume.policy.mount_filesystem" type="string">ntfs-3g</merge>
    <append key="volume.mount.valid_options" type="strlist">uid=</append>
    <append key="volume.mount.valid_options" type="strlist">gid=</append>
    <append key="volume.mount.valid_options" type="strlist">umask=</append>
    <append key="volume.mount.valid_options" type="strlist">dmask=</append>
    <append key="volume.mount.valid_options" type="strlist">fmask=</append>
    <append key="volume.mount.valid_options" type="strlist">locale=</append>
    <append key="volume.mount.valid_options" type="strlist">utf8</append>
    </match>
    the original post is at http://www.linuxsir.org/bbs/thread344125.html. it's in chinese.
    hope this works.

  • Network-manager-applet cannot run!!!!!!!!!!

    Installed networkmanager and network-manager-applet, but I found it could not startup at boot time.....
    When I run nm-applet in terminal as normal user, it print:
    [yin@q ~]$ nm-applet
    ** (nm-applet:2168): WARNING **: <WARN> request_name(): Could not acquire the NetworkManagerUserSettings service.
    Error: (9) Connection ":1.39" is not allowed to own the service "org.freedesktop.NetworkManagerUserSettings" due to security policies in the configuration file
    When I run "sudo nm-applet", noting was wrong ,and the icon appeared in the panel right top.
    Another question:
    What's the difference between daemons in rc.conf and startup applications in gnome ?
    I add "networknamager"  in daemons line in rc.conf ,but I found there is a network manager entry in startup applications in gnome with the command : nm-applet --sm-disable.  Does they conflict ??
    Last edited by iamybj (2010-03-27 12:52:56)

    iamybj wrote:
    ngoonee wrote:You did not search the forums. Please do so before asking a question.
    I think if the question was resolved, it should be updated to the wiki....
    I find the wiki updating is very slow right now.
    You misunderstand how this community works.
    Users update the wiki, voluntarily. If you find a solution and feel its a common enough problem to post on the wiki, please do so.
    Also, if you can't even bother to do a forum search or google search before asking questions, this may not be the right distro for you. Please read http://wiki.archlinux.org/index.php/FAQ … se_Arch.3F, especially the 'do-it-yourself' part.

  • [SOLVED] Network Manager / nm-applet problems on fresh installation

    I have just carried out a fresh re-installation of Arch on my old netbook, following a self-inflicted crash!
    Previously, networking worked perfectly, but since the new installation, nm-applet is behaving strangely.
    All connections (wired and wireless) seem to work OK, but when connected wirelessly, the nm-applet constantly shows the "searching" icon, and hovering over it, the message "Requesting a Wi-Fi network address for '<wlan name>'" is displayed. The Network Connections screen says that the Wi-Fi connections has never been used, despite the fact that it works!
    I have tried re-configuring the connections, disabling IPV6 (this stops everything working) and completely uninstalling/re-installing Network Manager and nm-applet, but all without success.
    I would be very grateful fo any ideas of how to tackle this problem
    Many thanks in advance.
    Last edited by myrlin (2014-08-20 19:42:44)

    I have fixed the wpa_supplicant problem (changed the .conf file), but the problem still persists. I have even carried out a full re-installation in case I did something stupid.
    Nnmtui shows "connecting" permanently, and nm-applet shows  "Requesting a Wi-Fi network address for '<wlan name>'" with the cycling connecting icon.
    Despite this, the wireless connection seems to work!
    Can anyone suggest what else to try?

  • [SOLVED] Network manager only works as root

    Hello everyone,
    I am brand new to arch and have been quite impressed over the past few days over all it has to offer.  Everything has been running quite smoothly and I am now in the process of setting up wireless.  I installed network manager and was able to connect to a wireless network as root.  For my regular user, however, I am running into some issues.  First one was that the nm-applet could not be opened in fluxbox.  I received the following error:
    ** (nm-applet:1576): WARNING **: <WARN> request_name(): Could not acquire the NetworkManagerUserSettings service.
    Error: (9) Connection ":1.27" is not allowed to own the service "org.freedesktop.NetworkManagerUserSettings" due to security policies in the configuration file
    I "fixed" this by adding the following to /etc/dbus-1/system.d/nm-applet.conf.  Original credit goes to the user in this thread (I only slightly modified his code): https://bbs.archlinux.org/viewtopic.php?id=63576
    <!-- hack -->
    <policy user="myusername">
    <allow own="org.freedesktop.NetworkManagerUserSettings"/>
    <allow send_destination="org.freedesktop.NetworkManagerUserSettings"/>
    <allow send_interface="org.freedesktop.NetworkManagerUserSettings"/>
    <deny send_interface="org.freedesktop.NetworkManagerSetting.Secrets"/>
    </policy>
    <!-- end of hack -->
    Now the applet shows up for my regular user, the problem being that it doesn't connect to the wireless networks (only wired).  Whenever I try to connect to wireless, nothing happens (the symbol doesn't change in any way, i.e. the green spheres should start circling); I am still able to succesfully connect to wireless using root.  Does anyone know what the source of this issue may be?  Thank you very much in advance.
    Last edited by Ipozya (2011-01-20 04:49:55)

    Solved: Had to install consolekit and add "ck-launch-session" to my .xinitrc file when starting fluxbox.
    Edit: Please note that this also allowed me to remove the previous change to nm-applet.conf (no longer necessary)!
    Last edited by Ipozya (2011-01-20 04:54:20)

  • [SOLVED]Network Manager dispatcher unexpected unmounting davfs folders

    I have used Network Manager dispatcher to configure automatic mount of cloud storage using  webdav. i have used davfs2 to perform mounting and wrote a script for NM dispatcher.
    If i run /etc/NetworkManager/dispatcher.d/10-YandexDisk.sh manualy all works perfect.
    If this script will be executed by NM-dispatcher all will fine(YandexDisk mounts successfully, sycronization - successfully), but after ~10 seconds mount.davfs gets signal 15.
    sudo systemctl status NetworkManager-dispatcher
    NetworkManager-dispatcher.service - Network Manager Script Dispatcher Service
    Loaded: loaded (/usr/lib/systemd/system/NetworkManager-dispatcher.service; enabled)
    Active: inactive (dead) since Wed 2013-07-31 23:12:55 EEST; 11s ago
    Process: 12132 ExecStart=/usr/lib/networkmanager/nm-dispatcher.action (code=exited, status=0/SUCCESS)
    Jul 31 23:12:44 DellLaptop nm-dispatcher.action[12132]: --- yandex.ru ping statistics ---
    Jul 31 23:12:44 DellLaptop nm-dispatcher.action[12132]: 2 packets transmitted, 2 received, 0% packet loss, time 1000ms
    Jul 31 23:12:44 DellLaptop nm-dispatcher.action[12132]: rtt min/avg/max/mdev = 36.570/37.776/38.983/1.222 ms
    Jul 31 23:12:44 DellLaptop mount.davfs[12138]: davfs2 1.4.7
    Jul 31 23:12:44 DellLaptop mount.davfs[12138]: mount.davfs -o auto,nodev,dir_mode=755,exec,file_mode=755,gid=users,_netdev,rw,uid=lexa https://webdav.yandex.ru/ /home/lexa/.../YandexDisk
    Jul 31 23:12:44 DellLaptop nm-dispatcher.action[12132]: >mounted https://webdav.yandex.ru/ to /home/lexa/Data/YandexDisk
    Jul 31 23:12:44 DellLaptop nm-dispatcher.action[12132]: >exiting!!
    Jul 31 23:12:55 DellLaptop mount.davfs[12140]: pid 12140, got signal 15
    Jul 31 23:12:55 DellLaptop mount.davfs[12140]: unmounting /home/lexa/Data/YandexDisk
    Jul 31 23:12:55 DellLaptop mount.davfs[12140]: unmounting failed
    Why does this happen? Who send this signal ?
    /etc/NetworkManager/dispatcher.d/10-YandexDisk.sh
    #!/bin/bash
    #this script will mount WebDav folder
    # by pirat9600q
    #given arguments are
    #$1 is interface name
    #$2 is state "up" or "down"
    eth="enp7s0" #ethernet interface
    wlan="wlp8s0" #wireless interface
    ignore_connections="Pirat9600q" #WiFi SSIDs that must be ignored
    mount_dir="/home/lexa/Data/YandexDisk" #mount point directory
    remote_server="https://webdav.yandex.ru/" #server address
    #local acces options
    local_user="lexa" #files owner user
    local_group="users" #files owner group
    echo "<<<started with '$1' and '$2' arguments>>>"
    echo "> our mount dir is '$mount_dir'"
    echo "> and remote server is '$remote_server'"
    case "$2" in
    up)
    #first of all we need to check internet connection
    if (ping -c 2 -q yandex.ru); then
    #we are online
    if [ "$1" = "$wlan" ]; then
    #Does this network is ignored ?
    SSID=$(iwgetid -r)
    for x in $ignore_connections; do
    if [ "$x" = "$SSID" ]; then
    echo "> WiFi SSID '$SSID' is in ignore list, exiting"
    exit
    fi
    done
    fi
    if [ ! -d "$mount_dir" ]; then
    fusermount -u "$mount_dir"
    fi
    if(mount.davfs -o auto,nodev,dir_mode=755,exec,file_mode=755,gid=$local_group,_netdev,rw,uid=$local_user "$remote_server" "$mount_dir"); then
    echo ">mounted $remote_server to $mount_dir"
    echo ">invoking syncronization script"
    /home/lexa/.scripts/SyncYandexDisk.sh
    else
    echo ">error mounting $remote_server to $mount_dir !!!"
    fi
    else
    echo ">network down";
    exit
    fi;;
    down)
    echo ">unmounting '$mount_dir'"
    fusermount -u "$mount_dir"
    echo ">removing $mount_dir"
    rmdir $mount_dir
    echo ">finished";;
    esac
    echo ">exiting!!"
    exit
    /home/lexa/.scripts/SyncYandexDisk.sh
    #!/bin/bash
    #this script will synchronize local storage
    #with mounted Yandex Disk folder
    # by pirat9600q
    source_dir="/home/lexa/Data/YandexDisk/" #mount point directory
    dest_dir="/home/lexa/Data/ARC/CloudSync/" #local storage location
    echo "<<<started with:"
    echo " source folder '$source_dir'"
    echo " and destination folder '$dest_dir'"
    if [ ! -L ${source_dir}Foto ]; then #if not link
    echo ">invoking syncronization from '$source_dir' to '$dest_dir'"
    echo ">syncronizing 'Foto' folder"
    if !(rsync --quiet --recursive --update --executability --owner --group --delete-before ${source_dir}Foto/ ${dest_dir}Foto/); then
    echo ">>error"
    else
    echo ">>success"
    fi
    echo ">syncronizing 'Documents' folder"
    if !(rsync --quiet --recursive --update --executability --owner --group --delete-before ${source_dir}Documents/ ${dest_dir}Documents/); then
    echo ">>error"
    else
    echo ">>success"
    fi
    else
    echo ">syncronization will not be made, because source is fake"
    fi
    echo ">exiting"
    exit 0
    P.S. sorry for my English
    Last edited by pirat9600q (2013-08-02 08:14:44)

    I solved the problem. Here is a little explanation.
    After NetworkManager establishes network connection, NetworkManager-dispatcher service is started( for ~10 seconds). This service execute /usr/lib/networkmanager/nm-dispatcher.action, which execute scripts in /etc/NetworkManager/dispatcher.d. After exiting nm-dispatcher.action mount.davfs process appears in NetworkManager-dispatcher`s CGroup. By default all processes in CGroup must be killed when service stops. To change this behavior I have added KillMode=process to [Service] section of NetworkManager-dispatcher.service file.
    sudo nano /usr/lib/systemd/system/NetworkManager-dispatcher.service
    Here is it`s code now.
    [Unit]
    Description=Network Manager Script Dispatcher Service
    [Service]
    Type=dbus
    BusName=org.freedesktop.nm_dispatcher
    ExecStart=/usr/lib/networkmanager/nm-dispatcher.action
    KillMode=process
    [Install]
    WantedBy=multi-user.target
    Alias=dbus-org.freedesktop.nm-dispatcher.service

  • [solved] Network manager error

    I installed network manager as the wiki says, added myself to the network group and added the policy kit file. When I did this process on my main box, it worked perfectly, but on my laptop running largely the same things (except 32 bit not 64) I'm getting a little authentication box whenever my network interface comes up, asking for root's password. I put it in, and it instantly says it disconnected. If I run nm-applet from a terminal, I get this error after typing in root's password:
    Gkr-Message: secret service operation failed: The name org.freedesktop.secrets was not provided by any .service files
    I'm using xfce if that makes any difference. Anyone got anything I can try?
    Oh and the only reason I'm using NM is because I'm sick of wicd deciding HERP DERP IMA DISCONNECT RIGHT NOW and then not connecting again afterwards. Though since NM isn't working I have to use wpa_supplicant and dhcpcd directly myself.
    EDIT: Ooops, this is the wrong section Could a mod please move it to Networking?
    Last edited by biltong (2011-09-12 12:58:28)

    Now I find gnome-keyring is not installed. That should be made a dependancy for network manager. I also (thanks to that thread) double checked I had the file the wiki said I needed to create, and it turns out I made a typo with my extension. It had .plka instead of .pkla XD Mah bad! So now I just need to get wpa_supplicant to connect one more time and I should be good to go

Maybe you are looking for