| 1st_noiz ( @ 2009-01-08 12:54:00 |
http://test.gentoo-wiki.com/Talk:HOWTO_
Talk:HOWTO NetworkManager
From Gentoo Linux Wiki
Contents
|
[edit] NetworkmanagerDispatcher scripts
hi!
i advanced the script for dispachter.d:
#!/bin/bash
name=`basename $0`
if ! [ -e /etc/init.d/$name ]; then
exit 0
fi
/etc/init.d/$name status | grep -q "started"
if test "$2" == "up" -a "$?" != "0" ; then
rc-config start $name
else
rc-config stop $name
fi
is this acceptable to insert into the howto?
greets,
florian
[edit] WPA bug
There seems to be a bug with WPA connection, NetworkManager
doesn't connect to WEP wifi networks, some people from ubuntu suggest
to downgrade to 0.5 to be able to connect to WPA wifi networks.
--Magowiz 16:25, 6 August 2007 (UTC)
[edit] plugdev group membership
I consistently failed to get the automatic popup of a dialog when
trying to access an encrypted network (WPA in my case) --
knetworkmanager simply failed and reverted back to my fixed-line NIC.
The workaround was to right-click the tray icon and select "Connect to
Other Wireless Network..." , manually type in the SSID, encryption
type, passphrase, etc. Useless in other words.
The solution was to add my user to the plugdev group! After
doing this (and completely log out and back in again) everything worked
as advertised. Login dialog pops up when connecting to a protected
network for the first time, and knetworkmanager successfully stored the
information in kwallet for future passwordless connection. Lovely.
/Sam
[edit] Static IP setup
To get the current version of NetworkManager ( 0.6.x ) to support static IP Address. Do not delete the /etc/conf.d/net file.
Instead, setup the /etc/conf.d/net as per normal, some setting that might be helpful are :
(1) DNS :
e.g. dns_servers_eth0="192.168.1.3"
(2) Default gateway :
e.g routes_eth0=("default via 192.168.1.100")
When NetworkManager
starts up, it will pick up the setting from the /etc/conf.d/net file
and setup the network interface with the static IP and any other
setting such as DNS, default gateway.
[edit] Applet will not appear
Hi have some problems with my NM applet but no solution yet. It
seems to work, but I can't see it. If I put a LAN cable in i receive an
IP without any problems, but I can't connect to any WLAN Networks,
because I can't click ;-) anything...
I made the following changes:
Move /etc/dhcp/dhclient-script.sample to /sbin and chmod +x it. Add the following in /etc/dbus-1/system.d: NetworkManager.conf <policy user="YOUR USERNAME HERE"> <allow send_destination="org.freedesktop.NetworkManager"/> <allow send_interface="org.freedesktop.NetworkManager"/> </policy> nm-applet.conf <policy user="YOUR USERNAME HERE"> <allow own="org.freedesktop.NetworkManagerInfo"/> <allow send_destination="org.freedesktop.NetworkManagerInfo"/> <allow send_interface="org.freedesktop.NetworkManagerInfo"/> </policy>
But it still not appear. The funny thing is, if I'm root, it works, so there is a stupid permission problem!!!
Thanks for every help.
[edit] An older way to run NTP when Gentoo boots
A simple script that will start ntp-client.
nano /sbin/ntp-client-init-nm
while true
do
sleep 300
echo 'verifying a network connection'
if ifconfig | grep ath0 >/dev/null
then
echo 'connection found'
echo 'starting ntp-client'
/etc/init.d/ntp-client start
echo 'client started - exiting'
break
fi
echo '!!!!! no connection found - retry 5 minutes !!!!!'
sleep 300
done
chmod +x /sbin/ntp-client-init-nm
Add to local.start
nano /etc/conf.d/local.start
Indexes
- This page was last modified 22:18, 3 May 2008.
- This page has been accessed 1,780 times.
- Privacy policy
- About Gentoo Linux Wiki
- Disclaimers