set up voor sources.list
set up voor sources.list
Set up
[edit]
Downloading required tools
First thing's first, you need the Universe repository enabled. If you haven't done this yet, see here:
https://wiki.ubuntu.com/MOTU/Packages?action=show&redirect=UniversePackages Also, make sure that the src universe repository is enabled too. The failsafe method of checking is opening the /etc/apt/sources.list by typing:
file.pngCode:
sudo gedit /etc/apt/sources.list
Mine looks like this:
file.png File:/etc/apt/sources.list
deb
http://archive.ubuntu.com/ubuntu/ dapper main restricted universe multiverse deb-src
http://archive.ubuntu.com/ubuntu/ dapper main restricted universe multiverse
If I recall correctly, the default file is more ornate, but this gets the job done. Specifically what you're looking for is a line somewhere with "deb
http://archive.ubuntu.com/ubuntu/ dapper" and the word "universe" after it on the same line and a line "deb-src
http://archive.ubuntu.com/ubuntu/ dapper" with the word "universe" after it on the same line. Also, of course, these lines must be uncommented too (no # at the beginning).
This HOWTO also assumes that you've created a "wpa" directory in your home directory, i.e. that you type in at a console:
file.pngCode:
mkdir ~/wpa
Let's get some nice compiling tools and headers if we don't already have them. Open up a console and type:
file.pngCode:
sudo apt-get install build-essential gcc-3.4 linux-headers-$(uname -r) cvs subversion automake1.9
While we are at it, it's also a good idea to install the linux-headers meta-package that is appropriate for our platform so that we will always have the correct linux-headers installed even when kernel updates are released. In a console, type:
file.pngCode:
uname -r
It should output something like:
file.pngCode:
2.6.15-14-686
The part at the end, the "686" (or whatever it says) is your platform. So in Synaptic or another another tool, look for the linux-headers meta-package that is best suited for your platform. In my case, this was "linux-headers-686". Notice how this package does not have any specific version number in the name, because it always "depends" on the latest linux-headers version available.
[edit]
Updating the ieee80211 subsystem
First we have to update the ieee80211 subsystem before the latest IPW drivers will compile or work.
Download the archive ieee80211-1.1.12.tgz to your ~/wpa directory:
Start a console and enter:
file.pngCode:
cd ~/wpa tar -zxvf ieee80211-1.1.12.tgz cd ieee80211-1.1.12 sudo sh remove-old sudo rm -rf /lib/modules/$(uname -r)/kernel/net/ieee80211 sudo rm -rf /usr/src/linux-headers-$(uname -r)/include/net/ieee80211* sudo rm -rf /usr/src/linux-headers-$(uname -r)/include/config/ieee80211* make sudo make install
(The rm commands remove the old headers and modules that would otherwise prevent ieee80211 from compiling or working.)
Hopefully that went well. Now we can update to the latest drivers.
If you have an IPW2100, IPW2200 or IPW2915 chipset, keep scrolling down until you see the section for that.
[edit]
IPW2100 chipset
Download the archive ipw2100-1.2.1.tgz to your ~/wpa directory:
Start a console and enter:
file.pngCode:
cd ~/wpa tar -zxvf ipw2100-1.2.1.tgz cd ipw2100-1.2.1 sudo sh remove-old make sudo make install
Great, if there's no errors, you've got the newest drivers installed with the patch.
[edit]
IPW2200 or IPW2915 chipset
Download the archive ipw2200-1.1.1.tgz to your ~/wpa directory:
Start a console and enter:
file.pngCode:
cd ~/wpa tar -zxvf ipw2200-1.1.1.tgz cd ipw2200-1.1.1 sudo sh remove-old make sudo make install
Great, if there are no errors, you've got the newest drivers installed with the patch.
[edit]
A note for everyone
This is a good time to add that you'll need to reinstall the ieee80211 subsystem and the latest ipw drivers whenever you update kernels, even for kernel security updates through apt-get! If not, from my experience, your pre-configured WPA networks will continue to work with NetworkManager, but you won't be able to connect to new WPA networks. This is because NetworkManager doesn't seem to check your drivers for WPA support for preferred networks, only for new networks. It just so happens that the latest Dapper drivers already have the right WPA support, but they just don't advertise it, so your preferred networks will continue working fine, but you won't have a WPA option available when you try to connect to a new network until you reinstall ieee80211 and your IPW drivers. Keep this in mind the next time you see a reboot notification from a kernel update! (If there's a way to get around this, please reply!)
[edit]
Installing latest libnl from svn
In the console:
file.pngCode:
cd ~/wpa svn co
https://svn.suug.ch/repos/tgr/libnl cd libnl ./configure make sudo make install sudo mkdir -p /usr/local/lib/pkgconfig sudo cp libnl-1.pc /usr/local/lib/pkgconfig/
Helloyzc
[edit]
Installing latest NetworkManager from cvs
First thing's first. Uninstall the network-manager package using apt-get or Synaptic if it's currently installed.
Now let's download the latest NetworkManager from cvs:
file.pngCode:
sudo apt-get build-dep network-manager sudo apt-get install dhcdbd libnotify-dev cd ~/wpa cvs -d
server:anonymous@anoncvs.gnome.org:/cvs/gnome login cvs -d
server:anonymous@anoncvs.gnome.org:/cvs/gnome co NetworkManager cd NetworkManager gedit configure.in
By default, the compiler is set to treat warnings as errors. Unfortunately, there will be warnings, so we want to disable this setting. Press ctrl+f and search for Werror to find the line that looks like this:
file.png File:configure.in
CFLAGS="-Wall -Werror -std=gnu89 $CFLAGS"
...and remove "-Werror " such that it looks like this:
file.png File:configure.in
CFLAGS="-Wall -std=gnu89 $CFLAGS"
Save and close.
We have to edit another file:
file.pngCode:
gedit initscript/Debian/NetworkManager
And find where it (for some reason) says:
file.png File:initscript/Debian/NetworkManager
DAEMON=/usr/sbin/$NAME
And change it to read:
file.png File:initscript/Debian/NetworkManager
DAEMON=/usr/local/sbin/$NAME
Now we have to make just one more config change to get the applet to work properly:
file.pngCode:
gedit gnome/applet/nm-applet.conf
Add this in there (just below the <policy user="root">...</policy> block is a nice place):
file.png File:gnome/applet/nm-applet.conf
<policy user="YOURUSERNAME"> <allow own="org.freedesktop.NetworkManager"/> <allow send_destination="org.freedesktop.NetworkManager"/> <allow send_interface="org.freedesktop.NetworkManager"/> </policy>
(Be sure to replace YOURUSERNAME with your actual user name.) Save and close. Now do the exact same thing to this file:
file.pngCode:
gedit src/NetworkManager.conf
Save and close.
If you don't do the above, then you'll probably get dbus security errors when you try to run nm-applet.
Now let's (automake1.7 required)
file.pngCode:
./autogen.sh make sudo make install
Now we have to do some system-specific stuff that the CVS version doesn't install by default:
file.pngCode:
sudo cp src/NetworkManager.conf /etc/dbus-1/system.d/ sudo cp gnome/applet/nm-applet.conf /etc/dbus-1/system.d/ sudo cp initscript/Debian/NetworkManager /etc/init.d/ sudo update-rc.d -f NetworkManager remove sudo update-rc.d NetworkManager start 30 2 3 4 5 . stop 70 0 1 6 . gtk-update-icon-cache -f /usr/share/icons/hicolor/
Hopefully that went well. Now there's a few dozen different services and drivers we could restart to get this working without rebooting, but let's just reboot instead.
[edit]
Conclusion
When Ubuntu comes up, try running nm-applet from the console. You will have an icon in the notification area, and you should be able to use it to see and connect to WPA networks! If this is working properly, add it to the startup by going to the System menu on the gnome panel, Preferences, then Sessions. Go to the Startup Programs tab, and add nm-applet. Now the NetworkManager applet will start up automatically!
If it's not working properly and you want to further debug the problem, you can try this:
file.pngCode:
sudo killall NetworkManager sudo NetworkManager --no-daemon
sudo /etc/init.d/dbus restart ...also works to restart all of the related daemons.
... as this will give you command line output, for example, as to what's going on on the network side of things, since nm-applet will just return applet errors.
Phew! It's over now! Hopefully you're now enjoying your newfound WPA support and not reinstalling Ubuntu!
Retrieved from "http://doc.gwos.org/index.php/Network_Manager_with_WPA"
Categories: Dapper | Networking | Wireless
Views
* Article
* Discussion
* Edit
* History
Personal tools
* Create an account or log in
Navigation
* Main Page
* Community portal
* Current events
* Recent changes
* Random page
* Help
* Donations
Search
Toolbox
* What links here
* Related changes
* Special pages
* Printable version
MediaWiki
* This page was last modified 09:23, 9 January 2007.
* This page has been accessed 35,401 times.
* About Ubuntu Document Storage Facility
* Disclaimers