After some consideration, I decided to finally get rid of all the network cables from my house and buy a USB Wireless adapter for my desktop PC (which happens to be a dual-boot with W7 and Slackware-current x64 (Slackware 13.37 was released about two months ago).
I went to the store and bought an inexpensive TP-LINK TL-WN727N
USB Wireless adapter for this task.
I fired up the Windows OS and got it working pretty fast: plug in - update driver - search for the wireless network - enter key - connect. The basic stuff.
Next, it was Slackware's turn.
I plugged in the adapter aaaaaannndddd.... nothing happened
Next, it was lsusb
's turn. I got this:
Bus 001 Device 002: ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter
Ralink Technology. Well... after some Googling around I blacklisted the rt2800usb
modules (in /etc/modprobe.d/blacklist.conf) and installed the rt-2870-firmware
package (it was not installed). Then I rebooted my box, to make sure everything was fine. It was.
Now, the hard part (for me at least). Make the adapter link with my router.
Some Googling and some trial and error later I came up up with this solution:
- ifconfig wlan0 up
- iwconfig wlan0 ap 1C:BD:B9:XX:XX:XX
- iwconfig wlan0 key s:myrouterpassword
- dhcpcd wlan0
The above solution stands if I type them one by one.
I've attempted putting them into rc.local without success - dhcpcd fails to retrieve a valid IP address from the router.
I've attempted adding the relevant details to rc.inet1.conf - again a failure
I have not attempted to make a bash script and run it when needed.
How can/should I configure my system to link up with my router automatically?
(and no wicd please)
If I do a iwconfig wlan0
I get this:
wlan0 Ralink STA ESSID:"BlackCat" Nickname:"RT2870STA"
Mode:Managed Frequency=2.452 GHz Access Point: 1C:BD:B9:XX:XX:XX
Bit Rate=54 Mb/s
RTS thr:off Fragment thr:off
Link Quality=97/100 Signal level:-67 dBm Noise level:-83 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
I'm puzzled by this line:
Should not it be on
? Or at least something else than off? Considering that I have a working connection to my router (I'm using it to post this very message).