macey wrote:Yes, I am aware of that, I don't want to do that, I prefer to use the command line. You learn more that way. I think i'll wait for the first person to reply to come back.
Thanks anyway.
Thanks. I'm glad you said that - that you really do want to learn stuff, not just "git'er done".
It's amazing how much, even on a board dedicated to an educational product (the Pi), there still seems to be a preponderance of that all-too-common-on-support-boards "git'er done" mentality.
But, just to be clear, if the goal
is just to "git'er done", then, yes, talking your wife through using the GUI is probably the fastest way to get her surfing.
Anyway, here's how I do it (on a per-boot basis - i.e., in /etc/rc.local):
1) killall -v wpa_supplicant dhclient || :
2) ifconfig wlan0 up
3) wpa_supplicant -B -i wlan0 -c wpa_supplicant.conf
4) dhclient wlan0
where "wpa_supplicant.conf" is like:
network={
ssid="yourWifiNetwork"
psk="yourPassword"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
auth_alg=OPEN
}
Now, that's the easy part. The hard part is that if you do this, you will get messed up by the "built-in" networking. Because behind the scenes, the great and powerful Oz is running these same programs, trying to do everything for you. It's like having both an automatic and a standard transmission on the same car. Chaos ensues.
So, you need to turn off the built-in stuff, and that's not made easy for you. But again, it is a learning experience. I can't remember right now how I did it - it was something like "services networking disable" or something like that.
And then I found that once you've done that (and rebooted), you don't have the "lo" (loopback) device, since that is enabled by the "built-in" networking. So, I added:
ifconfig lo 127.0.0.1
to the end of /etc/rc.local.
P.S. Curiously, the loopback device is not really needed much anymore - except for one thing. X needs it for TCP/IP listening (which nobody really uses much anymore either). So, for the most part, you won't miss it. As it happens, I had been running for quite some time without it, until I was trying to get X to work with TCP/IP and kept banging my head against the wall wondering why it wasn't working - until I figured out that I didn't have the loopback device.
And some folks need to stop being fanboys and see the forest behind the trees.
(One of the best lines I've seen on this board lately)