1st_noiz ([info]1st_noiz) wrote,
@ 2009-01-08 12:54:00
Previous Entry  Add to memories!  Tell a Friend  Next Entry
gentoo networkmanager
http://test.gentoo-wiki.com/Talk:HOWTO_NetworkManager




Это версия страницы http://test.gentoo-wiki.com/Talk:HOWTO_NetworkManager из кэша Google. Она представляет собой снимок страницы по состоянию на 25 сен 2008 17:18:49 GMT. Текущая страница за прошедшее время могла измениться. Подробнее


Эти поисковые термины были выделены: gentoo networkmanager howto  





































Talk:HOWTO NetworkManager



From Gentoo Linux Wiki



Jump to: navigation, search

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

















Powered by MediaWiki











Advertisement


(No comments)

Post a comment in response:

From:
Help
Identity URL: 
Username:
Password:
Don't have an account? Create one now.
Subject:
No HTML allowed in subject
   Help
Message:

 
Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…