Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO: Networkmanager and Knetworkmanager
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
keba
Guru
Guru


Joined: 02 Jun 2006
Posts: 328
Location: Switzerland

PostPosted: Fri Oct 27, 2006 3:30 pm    Post subject: HOWTO: Networkmanager and Knetworkmanager Reply with quote

I have tried to get this apps for days and now it works! Have fun.
This will meaybe help you:
http://gentopia.gentooexperimental.org/wiki/NetworkManager

You'll need ACCEPT_KEYWORDS="~x86" in /etc/make.conf or add ~x86 to the packages needed in /etc/portage/package.keywords.

1) Get overlay management apps
Code:

emerge layman


2) Add Overlays:
Code:

cd /usr/local/portage
# This adds the sabayon overlay#
svn checkout http://svn.sabayonlinux.org/overlay sabayon
# This adds the gentopia overlay#
layman -a gentopia


3) configure make.conf
Code:

echo "PORTDIR_OVERLAY=\"/usr/local/portage\"" >> /etc/make.conf
echo "PORTDIR_OVERLAY=\"${PORTDIR_OVERLAY} /usr/local/portage/sabayon\"" >> /etc/make.conf
echo "PORTDIR_OVERLAY=\"${PORTDIR_OVERLAY} /usr/portage/local/layman/gentopia\"" >> /etc/make.conf


4) install networkmanager
Code:

#first unmask >=dev-libs/libnl-1.0_pre6
echo ">=dev-libs/libnl-1.0_pre6" >> /etc/portage/package.unmask
#now install it:
emerge networkmanager


5) install knetworkmanager (optional)
WARNING: Do NOT emerge knetworkmanager without networkmanager installed! The dependencies don't work, it would only install the knetworkmanager locales...
Code:

emerge knetworkmanager


6) Add it to default runlevel
Code:

rc-update add NetworkManager default
rc-update del net.eth0


7) PAM
Code:

mkdir /var/run/NetworkManager
mkdir /var/run/wpa_supplicant
mkdir /var/lib/dhclient
USE="pam_console" emerge pam
echo "session  optional       pam_console.so" >> /etc/pam.d/login

If you are using gdm or xdm, adapt this line:
Code:

echo "session  optional       pam_console.so" >> /etc/pam.d/kdm

The following 2 lines are for udev users. If you aren't using udev, please refer to /usr/portage/sys-libs/pam/files/README.pam_console.gz
Note: pam_console_apply is in /usr/sbin not in /sbin like the documentation states
Code:

echo "#!/bin/bash" >> /etc/dev.d/default/pam_console.dev
echo "exec /usr/sbin/pam_console_apply" >> /etc/dev.d/default/pam_console.dev
chmod + x >> /etc/dev.d/default/pam_console.dev

Add these lines to you /etc/conf.d/net:
Code:

# Prefer wpa_supplicant over wireless-tools
modules=( "wpa_supplicant" )
# It's important that we tell wpa_supplicant which driver we should
# be using as it's not very good at guessing yet
# use the correct card and driver!!!
wpa_supplicant_ath0="-Dmadwifi"

Now reboot or /etc/init.d/NetworkManager start
If you /etc/init.d/NetworkManager start, don't forget to /etc/init.d/dbus restart first.
_________________
Prayer can change the world!


Last edited by keba on Sat Oct 28, 2006 9:42 am; edited 9 times in total
Back to top
View user's profile Send private message
maudib
n00b
n00b


Joined: 03 Nov 2005
Posts: 50

PostPosted: Fri Oct 27, 2006 3:37 pm    Post subject: Reply with quote

Code:

- dev-libs/libnl-1.0_pre6 (masked by: package.mask)


It's package masked..you need to add it to /etc/portage/package.unmask
Back to top
View user's profile Send private message
keba
Guru
Guru


Joined: 02 Jun 2006
Posts: 328
Location: Switzerland

PostPosted: Fri Oct 27, 2006 3:48 pm    Post subject: Reply with quote

Thanks :) , got it, I'm just testing it... I'm quite new to gentoo.
_________________
Prayer can change the world!
Back to top
View user's profile Send private message
keba
Guru
Guru


Joined: 02 Jun 2006
Posts: 328
Location: Switzerland

PostPosted: Fri Oct 27, 2006 10:56 pm    Post subject: Reply with quote

OK, I've been trying for a while. I always get "No network device found" in Knetworkmanager.
I know networkmanager is started on boot, I have a wired eth0 and a wireless ath0 with all drivers and stuff needed loaded at boot.

Does someone know how to fix this? THX
_________________
Prayer can change the world!
Back to top
View user's profile Send private message
keba
Guru
Guru


Joined: 02 Jun 2006
Posts: 328
Location: Switzerland

PostPosted: Sat Oct 28, 2006 9:21 am    Post subject: Reply with quote

OK, I got Knetworkmanager to detect my card and even to see my wifi network which is WEP-secured, it can't connect to it...
using iwconfig and dhcpcd I can connect to it without problems... Do you know what to do?
_________________
Prayer can change the world!
Back to top
View user's profile Send private message
keba
Guru
Guru


Joined: 02 Jun 2006
Posts: 328
Location: Switzerland

PostPosted: Sat Oct 28, 2006 9:40 am    Post subject: Reply with quote

WORKS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

:D

Just didn't select the right WEP key.

Have fun using it.
_________________
Prayer can change the world!
Back to top
View user's profile Send private message
z35
n00b
n00b


Joined: 06 Jun 2003
Posts: 70
Location: USA -- NY

PostPosted: Fri Jan 26, 2007 4:04 pm    Post subject: Reply with quote

I found this because when I emerged the gentoo version, I recieved an error, which happens to be the same error I receive when I use this version, and hoped that this would solve it. I do not have -gnome and it still requires me to build the mammoth panelapplet.

Code:
checking for PANEL_APPLET... configure: error: Package requirements (libpanelapplet-2.0) were not met:

No package 'libpanelapplet-2.0' found


Code:
emerge networkmanager -Duvt
>>> --tree implies --pretend... adding --pretend to options.

These are the packages that would be merged, in reverse order:

Calculating dependencies... done!
[ebuild  N    ] net-misc/networkmanager-0.6.4-r1  USE="crypt -debug -doc -gnome" 0 kB [3]

Total size of downloads: 0 kB
Portage overlays:
 [1] /usr/portage/local/layman/xeffects
 [2] /usr/portage/local/layman/sabayon
 [3] /usr/portage/local/layman/gentopia


I was just wondering how to avoid this, if possible of course.

also: which knetworkmanager do I use?

Code:
# emerge knetworkmanager -Duvt
>>> --tree implies --pretend... adding --pretend to options.

These are the packages that would be merged, in reverse order:

Calculating dependencies

!!! The short ebuild name "knetworkmanager" is ambiguous.  Please specify
!!! one of the following fully-qualified ebuild names instead:

    kde-misc/knetworkmanager
    net-misc/knetworkmanager

# find local -maxdepth 4 | grep knetworkmanager
local/layman/sabayon/net-misc/knetworkmanager
local/layman/gentopia/kde-misc/knetworkmanager

_________________
This is life?


Last edited by z35 on Fri Jan 26, 2007 4:16 pm; edited 1 time in total
Back to top
View user's profile Send private message
Jesterhead
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jul 2006
Posts: 75

PostPosted: Fri Jan 26, 2007 4:11 pm    Post subject: Reply with quote

you could try that one from the Sabayon overlay...
Back to top
View user's profile Send private message
z35
n00b
n00b


Joined: 06 Jun 2003
Posts: 70
Location: USA -- NY

PostPosted: Fri Jan 26, 2007 4:24 pm    Post subject: Reply with quote

excellent, seems to be better. I just deleted the gentopia overlay considering they contain similar ones, and that one gets past that part :)

now I get
Code:

nm-dhcp-manager.c: In function 'state_to_string':
nm-dhcp-manager.c:620: error: 'req' undeclared (first use in this function)
nm-dhcp-manager.c:620: error: (Each undeclared identifier is reported only once
nm-dhcp-manager.c:620: error: for each function it appears in.)
nm-dhcp-manager.c:622: error: 'manager' undeclared (first use in this function)
nm-dhcp-manager.c:636: warning: control reaches end of non-void function
make[3]: *** [libdhcp_manager_la-nm-dhcp-manager.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/networkmanager-0.6.4_pre20070122-r2/work/NetworkManager/src/dhcp-manager'

_________________
This is life?
Back to top
View user's profile Send private message
z35
n00b
n00b


Joined: 06 Jun 2003
Posts: 70
Location: USA -- NY

PostPosted: Fri Jan 26, 2007 4:46 pm    Post subject: Reply with quote

I dropped down the -r1 version, and it built successfully
_________________
This is life?
Back to top
View user's profile Send private message
Quillz
n00b
n00b


Joined: 25 Jan 2007
Posts: 12
Location: Los Angeles, CA

PostPosted: Tue Jan 30, 2007 8:27 pm    Post subject: Reply with quote

Since I use dhcpcd and not dhclient, should I change
Code:
mkdir /var/lib/dhclient
to
Code:
mkdir /var/lib/dhcpcd
?
Back to top
View user's profile Send private message
Cyrack
n00b
n00b


Joined: 15 Jun 2003
Posts: 39
Location: Denmark (Herning)

PostPosted: Tue Feb 06, 2007 9:11 pm    Post subject: Reply with quote

z35 wrote:
I dropped down the -r1 version, and it built successfully


Same here, -r2 did the same on me.
Btw. Gentopias ebuild is fubar (atleast on my machine).
_________________
If anyone here's in marketing or advertising... Kill yourself.
- Bill Hicks
Back to top
View user's profile Send private message
antares2001
Guru
Guru


Joined: 02 Mar 2004
Posts: 339
Location: Germany

PostPosted: Thu Feb 15, 2007 1:30 pm    Post subject: Reply with quote

keba wrote:
OK, I got Knetworkmanager to detect my card and even to see my wifi network which is WEP-secured, it can't connect to it...
using iwconfig and dhcpcd I can connect to it without problems... Do you know what to do?


How did you get detect your card? I have an ipw2200 card and it is not detected by knetworkmanager.
_________________
* Toshiba SM30X Notebook, Pentium-M 725 CPU, ATI Radeon 9700, 512MB RAM, 80GB
* Pentium D 820 2,8 GHz (EM64T), Geforce6, 200GB + 40GB ATA, 250GB SATA2, WinFastTV 2000XP, 1,5GB RAM
Gentoo Linux 2006.1
Back to top
View user's profile Send private message
vinboy
n00b
n00b


Joined: 18 Jun 2006
Posts: 69

PostPosted: Sat Mar 03, 2007 2:11 am    Post subject: Reply with quote

great thanks
Back to top
View user's profile Send private message
Ingmarv
Retired Dev
Retired Dev


Joined: 27 Feb 2007
Posts: 188
Location: Belgium

PostPosted: Sat Mar 17, 2007 10:25 pm    Post subject: Reply with quote

Some days ago knetworkmanager was added to the xeffects overlay, I'd recommend that over the sabayon overlay, but that's a matter of personal preference.

You'll find a howto here: http://forums.gentoo-xeffects.org/viewtopic.php?f=17&t=405&p=1428

I'm now using it with my ipw3945-card, works like a charm so far. One thing that took me some time to find out, is that you have to compile any CONFIG_IEEE80211 stuff directly in your kernel, ie not as modules.
Back to top
View user's profile Send private message
wisbas
n00b
n00b


Joined: 23 Mar 2007
Posts: 1

PostPosted: Fri Mar 23, 2007 4:45 pm    Post subject: Reply with quote

@antares2001: maybe you should use the wext-driver in your wpa_supplicant.conf
Back to top
View user's profile Send private message
roderick
l33t
l33t


Joined: 11 Jul 2005
Posts: 908
Location: St. John's, NL CANADA

PostPosted: Sat Mar 24, 2007 2:38 am    Post subject: Reply with quote

Yeah. In the xeffectrs overlay I have fixed and updated the ebuilds to work correctly with hal/dbus vs. pam at_console.

Feel free to try it out. I will be actively maintaining it there.
_________________
If God were a pickle, I'd still say "no pickle on my burger".
http://roderick-greening.blogspot.com/
Back to top
View user's profile Send private message
Wicked Wesley
n00b
n00b


Joined: 20 May 2004
Posts: 70
Location: Here

PostPosted: Wed Mar 28, 2007 12:11 am    Post subject: Reply with quote

Why doesn't kwallet remembers my password? I searched everywhere, can't find the answer. I have kwalletmanager running. I use KNetworkManager 0.1 from x-effects overlay. I can connect successfully to my access point, but I have to retype my SSID and encryption options everytime :(

I'm not denying access to KNetworkManager in kwalletmanager.

Anyone know how I can solve this?

Thanks for your time!
_________________
The Jester!
Linux user 357122!
Back to top
View user's profile Send private message
roderick
l33t
l33t


Joined: 11 Jul 2005
Posts: 908
Location: St. John's, NL CANADA

PostPosted: Wed Mar 28, 2007 1:06 pm    Post subject: Reply with quote

Wicked Wesley wrote:
Why doesn't kwallet remembers my password? I searched everywhere, can't find the answer. I have kwalletmanager running. I use KNetworkManager 0.1 from x-effects overlay. I can connect successfully to my access point, but I have to retype my SSID and encryption options everytime :(

I'm not denying access to KNetworkManager in kwalletmanager.

Anyone know how I can solve this?

Thanks for your time!


Is this the version you are using:

kde-misc/knetworkmanager [1]
Available versions: (**)9999

Cause, I have it working with kwallet.

Did you follow my how to on the xeffects site? Link was posted above...

If you are not using this version, then emerge this one. It contains the fix for kwallet.

If you are using this one, then can you:

Code:

grep plugdev /etc/dbus-1/system.d/knetworkmanager.conf
grep at_console /etc/dbus-1/system.d/knetworkmanager.conf


And tell me what it returns. If it returns something for at_console, then you need to emerge my build (mine changes this from at_console to plugdev). If it returns plugdev, do you have a group plugdev and are you a member of it? If not, it won't work either.
_________________
If God were a pickle, I'd still say "no pickle on my burger".
http://roderick-greening.blogspot.com/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum