LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   setting up network manager in fluxbox (https://www.linuxquestions.org/questions/slackware-14/setting-up-network-manager-in-fluxbox-882892/)

alkap 05-26-2011 02:15 PM

setting up network manager in fluxbox
 
I'm running Slackware 13.1 with fluxbox as my wm. I want to set up network-manager along with the pptp plugin. So far I've installed the NetworkManager and the network-manager-pptp plugin along with all the dependencies specified in the slackbuild packages which I downloaded from slackbuilds.org.

I could use some help configuring the network-manager so that I can launch it as a regular user rather than as root and I want it to come up in the fluxbox toolbar if possible.

Anyone's advice on how to do it would be much appreciated.

Alexander Kapshuk.

kgs 05-26-2011 03:25 PM

I don't know anything about network-manager, but I am sure someone who does will come along shortly.

Have you considered using wicd? It is a simple connection manager that is included in Slackware's /extra directory. I've used its graphical interface along with fluxbox in the past. It can run in the background with an icon in your taskbar. I would, personally, suggest it over network-manager as it is much easier to get running.

As far as running programs automatically when starting fluxbox, check in your $HOME/.fluxbox/startup config file. Look at the comments for directions. It's very simple, just add the commands to that file. Some programs will need an "&" symbol after them.

disturbed1 05-27-2011 02:47 AM

Give network-manager-applet a shot.
http://slackbuilds.org/repository/13...anager-applet/

Has some dependencies though (also SBo)
ORBit2
GConf
libtasn1
libgnome-keyring
gnome-keyring

alkap 05-28-2011 03:19 PM

Quote:

Originally Posted by disturbed1 (Post 4368353)
Give network-manager-applet a shot.
http://slackbuilds.org/repository/13...anager-applet/

Has some dependencies though (also SBo)
ORBit2
GConf
libtasn1
libgnome-keyring
gnome-keyring

Hi,
Thanks a lot for getting back to me. I have all but one of the dependent packages installed. perhaps I overlooked libgnome-keyring being a dependency when reading the README files for all the other dependencies.

I did add nm-applet & to my $HOME/.fluxbox/startup file. Here's what I get when I run nm-applet in my terminal:

Code:

bash-4.1$ nm-applet
** Message: applet now removed from the notification area

** (nm-applet:1888): WARNING **: get_all_cb: couldn't retrieve system settings properties: (2) The name org.freedesktop.NetworkManagerSystemSettings was not provided by any .service files.
** Message: applet now embedded in the notification area
** Message: applet now removed from the notification area

** (nm-applet:1888): WARNING **: fetch_connections_done: error fetching system connections: (2) The name org.freedesktop.NetworkManagerSystemSettings was not provided by any .service files.

How would I go about fixing that please?

alkap 05-28-2011 03:21 PM

Quote:

Originally Posted by kgs (Post 4367981)
I don't know anything about network-manager, but I am sure someone who does will come along shortly.

Have you considered using wicd? It is a simple connection manager that is included in Slackware's /extra directory. I've used its graphical interface along with fluxbox in the past. It can run in the background with an icon in your taskbar. I would, personally, suggest it over network-manager as it is much easier to get running.

As far as running programs automatically when starting fluxbox, check in your $HOME/.fluxbox/startup config file. Look at the comments for directions. It's very simple, just add the commands to that file. Some programs will need an "&" symbol after them.

thanks a lot for your reply.
i did look into using wicd, but it doesn't seem to support VPN at the moment, which is strongly desired.

piratesmack 05-28-2011 06:41 PM

Add the following to your /etc/rc.d/rc.local:
Code:

if [ -x /etc/rc.d/rc.networkmanager ]; then
  /etc/rc.d/rc.networkmanager start
fi

And put this in your ~/.fluxbox/startup BEFORE the "exec fluxbox" line:
Code:

if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
  eval `dbus-launch --sh-syntax --exit-with-session`
fi
nm-applet --sm-disable &


alkap 05-29-2011 07:16 AM

Quote:

Originally Posted by piratesmack (Post 4369733)
Add the following to your /etc/rc.d/rc.local:
Code:

if [ -x /etc/rc.d/rc.networkmanager ]; then
  /etc/rc.d/rc.networkmanager start
fi

And put this in your ~/.fluxbox/startup BEFORE the "exec fluxbox" line:
Code:

if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
  eval `dbus-launch --sh-syntax --exit-with-session`
  export DBUS_SESSION_BUS_ADDRESS
fi
nm-applet --sm-disable &


thanks a lot! that did the trick.
was i supposed to do anything to /etc/dbus-1/system.d/NetworkManager.conf and/or /etc/dbus-1/system.d/nm-applet.conf

Below is what I put into my /etc/dbus-1/system.d/NetworkManager.conf as it wasn't there in the first place, possibly because i added myself to the netdev group after installing the NetworkManager along with its dependent packages. I just copied it over from my /etc/dbus-1/system.d/NetworkManager.conf on Debian.

Code:

<policy group="netdev">
        <allow send_destination="org.freedesktop.NetworkManager"/>

        <allow send_destination="org.freedesktop.NetworkManager"
            send_interface="org.freedesktop.DBus.Introspectable"/>

        <allow send_destination="org.freedesktop.NetworkManager"
            send_interface="org.freedesktop.DBus.Properties"/>

        <allow send_destination="org.freedesktop.NetworkManager"
            send_interface="org.freedesktop.NetworkManager"/>

        <allow send_destination="org.freedesktop.NetworkManager"
            send_interface="org.freedesktop.NetworkManager.AccessPoint"/>

        <allow send_destination="org.freedesktop.NetworkManager"
            send_interface="org.freedesktop.NetworkManager.Connection.Active"/>

        <allow send_destination="org.freedesktop.NetworkManager"
            send_interface="org.freedesktop.NetworkManager.Device.Cdma"/>

        <allow send_destination="org.freedesktop.NetworkManager"
            send_interface="org.freedesktop.NetworkManager.Device.Wired"/>

        <allow send_destination="org.freedesktop.NetworkManager"
            send_interface="org.freedesktop.NetworkManager.Device.Gsm"/>

        <allow send_destination="org.freedesktop.NetworkManager"
            send_interface="org.freedesktop.NetworkManager.Device.Serial"/>

        <allow send_destination="org.freedesktop.NetworkManager"
            send_interface="org.freedesktop.NetworkManager.Device.Wireless"/>

        <allow send_destination="org.freedesktop.NetworkManager"
            send_interface="org.freedesktop.NetworkManager.Device"/>

        <allow send_destination="org.freedesktop.NetworkManager"
            send_interface="org.freedesktop.NetworkManager.DHCP4Config"/>

        <allow send_destination="org.freedesktop.NetworkManager"
            send_interface="org.freedesktop.NetworkManager.IP4Config"/>

        <allow send_destination="org.freedesktop.NetworkManager"
            send_interface="org.freedesktop.NetworkManager.VPN.Connection"/>

Please let me know if I was supposed to do that or not.

piratesmack 05-29-2011 01:40 PM

Quote:

Originally Posted by alkap (Post 4370070)
was i supposed to do anything to /etc/dbus-1/system.d/NetworkManager.conf and/or /etc/dbus-1/system.d/nm-applet.conf

I don't think so, at least I didn't have to.

alkap 05-29-2011 02:33 PM

Quote:

Originally Posted by piratesmack (Post 4370331)
I don't think so, at least I didn't have to.

understood. thanks.

another quick question if i may...
i want to set up pptp vpn. i've installed the network-manager-pptp plugin as well as the pptp package. after entering all the details into the vpn setup wizzard thing and clicking on the vpn connection i've set up i get a vpn failed message saying no user settings service available.
does that mean i haven't got something set up that has to be set up for vpn to work properly?

piratesmack 05-29-2011 02:51 PM

Sorry, I have no idea.
Hopefully someone else does.

alkap 05-29-2011 11:39 PM

Quote:

Originally Posted by piratesmack (Post 4370380)
Sorry, I have no idea.
Hopefully someone else does.

that's ok. thanks a lot for your help anyway!


All times are GMT -5. The time now is 08:34 AM.