Skip to content. Skip to navigation

ICTP Portal

Sections
You are here: Home linux mdv2008.0 networkmanager
Personal tools
Document Actions

networkmanager

How to enable WPA Enterprise support in Drakxtools and also enable NetworkManager gui application for WPA-EAP (enterprise) in Mandriva 2008.0


Here you will find a patch that permits the Mandriva tools drakroam and company to connect to a WPA Enterprise
enabled network.
Please download it from here drakxnet_wireless_wpa_enterprise.patch

it  will give better connection reliability than the using networkmanager.
The patch is only applicable as user root. Hopefully it will be eventually integrated into the Mandriva tools.

OLD INFORMATION for networkmanager.

Despite all the promises Mandriva 2008.0 shipped without wpa enterprise support in drak network utilities.

It also shipped with networkmanager and knetworkmanager but the default installations are slightly broken, so attempts to use it does not work, similar experience in 2007.1.

But it was surprising easy to fix it.



Step 1: create the file /etc/dhclient-exit-hooks with the following contents

#
# notify dhcdbd on success
#
if [ -n "${dhc_dbus}" -a $exit_status -eq 0 ]; then
        /usr/bin/dbus-send \
        --system \
        --dest=com.redhat.dhcp \
        --type=method_call \
        /com/redhat/dhcp/$interface \
        com.redhat.dhcp.set \
        'string:'"`env | /bin/egrep -v '^(PATH|SHLVL|_|PWD|dhc_dbus)\='`";
fi
#


Step 2: Download and compile the dhcdbd-2.8-30ictpmdv2008.0.src.rpm package from here.  It is the same version in Mandriva 2008.0 but compiled with the option RPM_OPT_FLAGS="-DDHCLIENT_EXTENDED_OPTION_ENVIRONMENT=0"


You will need to rebuild it as root using the command


rpm --rebuild dhcdbd-2.8-30ictpmdv2008.0.src.rpm

Install the compiled version by running the command:

rpm -Uvh /usr/src/rpm/RPMS/i586/dhcdbd-2.8-30ictpmdv2007.1.i586.rpm
or rpm -Uvh /usr/src/rpm/RPMS/x86_64/dhcdbd-2.8-30ictpmdv2007.1.x86_64.rpm for the x86_64 version.


Step 3:

Install the networkmanager packages and knetworkmanager packages using urpmi

urpmi networkmanager knetworkmanager


Note that you have to have the contrib media configured.  Also if it fails due to a missing libiw.so.28, you might wan to run the command

   ln -sf /lib/libiw.so.29 /lib/libiw.so.28

and then force the installation using the command urpmi --allow-force


Step 4:
       Save the following contents to /etc/X11/xinit.d/80networkmanager

#!/bin/sh
DESKTOP=$1
#If we do not have knetworkmanager for KDE then force nm-applet to run
[ ! -e "/usr/bin/knetworkmanager" ] && DESKTOP="NM-KDE"
case $DESKTOP in
   KDE) pgrep knetworkmanager > /dev/null 2>&1 || exec /usr/bin/knetworkmanager;;
   *) pgrep nm-applet > /dev/null 2>&1 || exec /usr/bin/nm-applet;;
esac

Make the file executable using the command chmod a+x /etc/X11/xinit.d/80networkmanager


Step 5:
       Enable the daemons
    chkconfig --level 345 NetworkManager on
   chkconfig --level  345 NetworkManagerDispatcher on
   chkconfig --level 345 dhcdbd  on

 You might want to optionally disable the Mandriva .net_applet  from starting up.

That's all, you can now reboot and enjoy using networkmanager from Mandriva.
The above was also tested and found to work on Mandriva 2007.1 with networkmanager-0.6.4-5mdv2007.1  and dhcp-client-3.0.5-7mdv2007.1

However, the drakxnet patch above is probably better and probably allows to connect  more reliably


      







Powered by Plone This site conforms to the following standards: