It's in sys-apps/baselayout-1.11.0 - which is currently package.masked
If you wish to try it out, do the following
- Unmask it
Code: Select all
mkdir -P /etc/portage echo "=sys-apps/baselayout-1.11.0" >> /etc/portage/package.unmask - If you're running x86 instead of ~x86, set baselayout to the ~x86 package
Code: Select all
echo "=sys-apps/baselayout-1.11.0 ~x86" >> /etc/portage/package.keywords - emerge baselayout
Ensure that version 1.11.0 or newer is going to get installed and go for it!
Code: Select all
emerge sync emerge -av sys-apps/baselayout etc-update
Otherwise, find out why it's not (hint: step 1 or 2 is wrong)
Ensure that etc-update updates /etc/conf.d/net and /etc/conf.d/net.lo - please do this - Then symlink any net.* devices to net.lo instead of net.eth0
- Consult /etc/conf.d/net.example for details about how to configure networking
- If you have net-wireless/wireless-config installed, remove it
If you did not update /etc/conf.d/net in the steps above, you need to manually remove the patch to /etc/conf.d/net which loads wireless.sh and calls wireless_* in preup(), predown() and/or postdown() functions if they exist - it's now automatic
Code: Select all
emerge unmerge net-wireless/wireless-config rm /etc/init.d/wireless.sh - Consult /etc/conf.d/wireless.example for how to configure wireless
And you're done
FAQ
Q. I don't have net.wlan0, net.eth1, net.ath0 or similar in /etc/init.d!
A. Read up on Gentoo networking in their handbook
http://www.gentoo.org/doc/en/handbook/h ... #doc_chap2
A2. The docs will be wrong when baselayout hits stable - you need to symlink to net.lo instead of net.eth0
Q. I'm seeing Wireless extensions not found for $interface - but it's a wireless device!
A. You need to enable wireless-extensions in your kernel.
To do this, enable the following config options in /usr/src/linux/.config
Code: Select all
CONFIG_NET_RADIO=y
CONFIG_NET_WIRELESS=yIf your driver is external then re-compile and re-install that.
Finally, re-emerge wireless-tools against the new kernel and driver
Q. I get the following error or similar
Code: Select all
SIOCSIFADDR: No such deviceQ/ I get the following error or similar
Code: Select all
SIOCSIFFLAGS: No such file or directoryQ. I have an Prism based card and it appears to configure correctly but it's unreliable.
A. You may have old buggy firmware. Here's a possible fix (Thanks to hotplainrice)
Q.Are there any drivers that do not work with this?
A.The only one I know of is linux-wlan-ng. They have their own setup software which is vastly different from anyone elses. All other drivers use wireless-tools which is what my script uses. The developers of linux-wlan-ng are in the process of making their driver support wireless-tools - so eventually it should work. Bug them about this, not me.
Q. WTF am I doing wrong?
A. Please check that you have a working kernel module for your wireless card. There's a whole lotta hardware out there that I do not have, and probably will never have and I cannot help with driver/hardware issues. Please start a new thread in the forum if this is the case.
Q. OK, I got a working kernel module that's reported by iwconfig but it's still not working!
A. I need information. Specifically, the output of net.eth0 start and any uncommented lines in /etc/conf.d/wireless
Q. Will this work on the LiveCD?
A. No Gentoo LiveCD currently supports wireless - so no
However, you should be able to install Gentoo from a Knoppix CD and some of them support wireless.
Q. Is WPA supported?
A. Not at the moment, but I do have plans to support it
Q. I cannot get WEP working!
A. WEP is a fickle beast. Some drivers don't support both encryption methods, some cards/drivers won't talk to some Access Points. Remember that encryption method on the Access Point has to match the method on the client otherwise it will not work. Basically, if you can get WEP to work on the command line it will work with my script.
Q. The script claims to connect, but I cannot get a DHCP address or ping computers
A Are you using WEP? See above. Remember that this script just configures wireless for you and some settings allow you to "connect" even though they are blatently wrong. This is dependant on card, driver, AP, etc. If you've got this far, don't expect too much help from me as I'm a developer and not a network engineer.
OLD EBUILD INSTRUCTIONS
Ebuild for sys-apps/baselayout>=1.8.11 <1.11.0
net-wireless/wireless-config-0.6.2.ebuild
If you used my old net.eth0 script prior to using this ebuild, you do not need it anymore
If you've never put a custom ebuild into your local portage tree before, here's how
- edit /etc/make.conf and enable PORTDIR_OVERLAY (defaults to /usr/local/portage)
- ensure that the folder exists
Code: Select all
mkdir -p /usr/local/portage/net-wireless/wireless-config - add wireless-config to package.keywords if not running ~ARCH
(note - change ~x86 to match your ~arch)
Code: Select all
mkdir -p /etc/portage echo "net-wireless/wireless-config ~x86" >> /etc/portage/package.keywords
- put the ebuild in that folder
Code: Select all
cd /usr/local/portage/net-wireless/wireless-config wget http://rsm1.demon.co.uk/wireless-config-0.6.2.ebuild - fetch and digest the source
Code: Select all
ebuild wireless-config-0.6.2.ebuild digest - emerge it and follow the ebuilds instructions
Code: Select all
emerge net-wireless/wireless-config - Checkout /etc/conf.d/wireless.example for all settings and save them to /etc/conf.d/wireless
- enjoy wireless networking

Newcomers to this thread are advised to skip to the last few pages of this thread as it's very big and starts off with stuff that is no-longer used
MOD EDIT:
13.DEC.04: Since it is "outdated" I've moved it back to Networking & Security from Documentation, Tips & Tricks. --pjp
Moved from Networking & Security.
-- Deathwing00
NOTE: Currently cannot detect if /etc/conf.d/net has been patched when >=sys-apps/baselayout-1.10 is installed



