NotebookForums.com › Forums › General Notebook Discussions › Linux & Other OS's › Going wireless on linux... with WPA and Static IP? Is it possible?
New Posts  All Forums:Forum Nav:

Going wireless on linux... with WPA and Static IP? Is it possible? - Page 3

post #41 of 56
Yea I can't help much past getting the hardware up and making certain networking is working correctly, so for WPA troubleshooting someone here can jump on board. But if you can connect without any encryption fine, then at least your network setup is good.

Seablade
post #42 of 56
Quote:
Originally Posted by arsie View Post
LOL if that were the case, I may as well jump of a bridge instead of trying to conquer linux Anyways, I had some success (even with the static IP. See below) I do have MAC address filtering set up. And I'm 100% sure the MAC address for this wireless card is on the list. But just so I could be 100% sure it wasn't interfering in any way I had disabled MAC filtering ever since my first post in this thread. --- A small taste of SUCCESS! I reinstalled ubuntu from scratch and this time I followed this guide. After that, I installed WICD to make my life easier. Then I disabled encryption in my router, and set up WICD with all my settings. And this time... I was able to get online WIRELESS So then I enabled WPA, set up WICD to use WPA, but no luck... I get the same problem (an infinite loading page that never loads). Though WICD states that the connection is fine. I tried with WEP also. Same problem. btw, this is all with my Static IP and everything. When I connected wirelessly without encryption, it was also with my static IP set up. So I think we can eliminate that as a problem now. Why is it so hard to secure a wireless connection in linux? Sheeeesh... I'm open to more suggestions. In the meantime, I'm going to get back to my research and see what I can find.
It's not necesarily any harder than in windows (which has been a real bitch to me when it comes to wireless setup). but now that you can get online without encryption, you can go back my first post, and follow the instructions I gave you. disclaimer: you have to use ndiswrapper, which I didn't have to use, so you may need to make some changes. Edit: you could just look at those files and if any of this already set up for you by your use of WICD.
post #43 of 56
Thread Starter 
Well what can I tell you.... I tried... and tried... and then tried some more...

For the past three hours I've reinstalled ubuntu three times and each time I followed different guides/ideas and things that I found during my extensive searches as well as all of the things you guys have suggested.

Each time I get the same problem. It's like I'm connected but I'm not connected.

I've given up on the whole wireless idea. But have not yet given up on linux. Even though linux hasn't given me a warm welcome these past few days, I have strangely grown to like it and appreciate it. And I am going to stick the laptop on it's own desk with a wired connection and continue my exploration. I might even dual boot with windows XP just incase I need the wireless capability for anything.

Thanks a lot for all your help guys! I couldn't have gotten as far as I have without you. I really appreciate it!
post #44 of 56
Yea sorry about that. I believe the problem might stem from using ndiswrapper. As I mentioned earlier in the thread I seem to recall ndiswrapper not working well with WPA, it is kinda a last resort for wireless. Unfortunately also as I mentioned the broadcom driver is still very much under development and might still be considered alpha quality at best.

Seablade
post #45 of 56
as someone suggested earlier in the tread considering an alternate wireless card might be the best solution. you can get a prism2 pcmcia card these days for like $10, atheros for about $50, or replace the minipci card itself with an atheros chip for about $30. madwifi at this point is easily one of the best / most developed wireless drivers which has a lot of supported features.
post #46 of 56
Thread Starter 
Thanks for the info! I'll keep that in mind.

At this point in time, the wired connection will do just fine as I learn more about this OS. If I get serious about linux then I will definitely get a new wireless card (one that is supported of course). And if I really really really get serious then I just might install it on my main PC

I'll tell you one thing... after using ubuntu for an hour straight, I went back to my main PC to do some work and Windowx XP just looks so plain and boring now...
post #47 of 56
Heh just wait till you try e17

Seablade

Does not reccomend this right away.
post #48 of 56
Thread Starter 
IT WORKS!!!!!!!!!!!!!!!!!!!!!!!!

Last night I decided to give it one last attempt and I solved the puzzle!

What was the culprit?

This simple command:
Code:
wpa_passphrase yourssid yourpassphrase

When I entered the command just like that, I would get an error. So I fixed it by surrounding the ssid and passphrase with quotes:
Code:
wpa_passphrase "yourssid" "yourpassphrase"

This causes the command to go through successfully and gives you the output you are expecting. Only thing is, the output it gives you is the wrong information! So this whole time I've been using this false information that it provided me with!!

In order to get the correct info, you must use single-quotes:
Code:
wpa_passphrase 'yourssid' 'yourpassphrase'

And there you have it.

Now everything works, and I don't need WICD or any other GUI for that matter. All I did was edit some simple files like you guys instructed me to do and all is good

The only thing now is that every time I boot up the notebook, I have to enter the following command in order to get online:

Code:
sudo /etc/init.d/networking restart

I found instructions on how to fix this over here: http://ubuntuforums.org/showpost.php...02&postcount=2

I just want to ask you guys if it is OK for me to do that? And what does he mean by the S40 in the last command?
post #49 of 56
Congrats man. That is probably the best part of Linux. Just keep trying stuff and it will work.
post #50 of 56
If memory serves, and this is digging a bit as Gentoo doesn't quite act like this, most linux distros do their startup procedure by having a series of scripts called S**ScriptName

It then runs the script based on the numbers where I put the stars, where 01 would be first and 99 would be last. So if you already have a link to a script in that directory called S40SomeScriptName you would need ot use a different number. I would recommend you even consider possibly having it after you X startup script and see if that works(After giving it time to connect) that way you can still have your bootup process pretty quick.

Seablade
post #51 of 56
good way to make boot process quick is to background all daemons, especially the networking which might take a while to start up...so it might as well do that while you are fiddling w/ login info @ gdm since its built in wait time anyway...rather than having to wait for it, then login (while the computer is not doing much). also of course go to System > Administration > Services and disable everything you are not gonna use (like bluetooth, printer, even cron and syslog might be a good idea)
post #52 of 56
Quote:
Originally Posted by arsie View Post
IT WORKS!!!!!!!!!!!!!!!!!!!!!!!! Last night I decided to give it one last attempt and I solved the puzzle! What was the culprit? This simple command:
Code:
wpa_passphrase yourssid yourpassphrase
When I entered the command just like that, I would get an error. So I fixed it by surrounding the ssid and passphrase with quotes:
Code:
wpa_passphrase "yourssid" "yourpassphrase"
This causes the command to go through successfully and gives you the output you are expecting. Only thing is, the output it gives you is the wrong information! So this whole time I've been using this false information that it provided me with!! In order to get the correct info, you must use single-quotes:
Code:
wpa_passphrase 'yourssid' 'yourpassphrase'
And there you have it. Now everything works, and I don't need WICD or any other GUI for that matter. All I did was edit some simple files like you guys instructed me to do and all is good The only thing now is that every time I boot up the notebook, I have to enter the following command in order to get online:
Code:
sudo /etc/init.d/networking restart
I found instructions on how to fix this over here: http://ubuntuforums.org/showpost.php...02&postcount=2 I just want to ask you guys if it is OK for me to do that? And what does he mean by the S40 in the last command?
first off, congrats! feels good to get a troublesome problem solved, huh? now, I think it's interesting what finally fixed it for you, because I just double checked this on my system and I get the EXACT SAME OUTPUT with no quotes, single quotes OR double quotes..... it doesn't make a lick of difference. would you try it again? I suspect a typo may be the culprit. I don't want to sound like I'm scolding, so please dont take it that way, but when asking for help, it's good to point out things like the need for quotes that weren't mentioned. often little seemingly inconsequential things can make a big difference. Also, I get wireless upon boot with the instruction I posted, now I have a different wireless adapter so that COULD be the difference, but it might be worth looking back at all those little things in my first post in this thread, and make sure it all matches. once again, congrats on getting over your first hurdle on your road to linux mastery! I'm particularly gratified to see that you were willing to put in a good deal of effort on your own. Makes it much more likely you'll get help in the future than if you'd just kept coming back with: "that didn't work, what else can I try?" good show!
post #53 of 56
Quote:
I'm particularly gratified to see that you were willing to put in a good deal of effort on your own. Makes it much more likely you'll get help in the future than if you'd just kept coming back with: "that didn't work, what else can I try?" good show!
Agreed++ Seablade
post #54 of 56
Thread Starter 
Quote:
Originally Posted by seablade View Post
If memory serves, and this is digging a bit as Gentoo doesn't quite act like this, most linux distros do their startup procedure by having a series of scripts called S**ScriptName

It then runs the script based on the numbers where I put the stars, where 01 would be first and 99 would be last. So if you already have a link to a script in that directory called S40SomeScriptName you would need ot use a different number. I would recommend you even consider possibly having it after you X startup script and see if that works(After giving it time to connect) that way you can still have your bootup process pretty quick.

Seablade

Ahha! I'm going to have to look into this. I have an idea now of what needs to be done and I'm pretty certain it's going to work. Thanks again for your help

Quote:
Originally Posted by abf View Post
good way to make boot process quick is to background all daemons, especially the networking which might take a while to start up...so it might as well do that while you are fiddling w/ login info @ gdm since its built in wait time anyway...rather than having to wait for it, then login (while the computer is not doing much). also of course go to System > Administration > Services and disable everything you are not gonna use (like bluetooth, printer, even cron and syslog might be a good idea)

Thanks man! That's exactly the kind of things I like to do! Speeding up the boot process and having the least amount things running in the background to save resources is the best!

I love tweaking the Windows XP Services and things that load up for no reason. This is one thing that's definitely high up on my "to do" list when it comes to learning more about linux.

Quote:
Originally Posted by drlouis View Post
first off, congrats! feels good to get a troublesome problem solved, huh?
Definitely!

Although when I was trying to fix the problem and failed each time, I had sleepless nights because I couldn't stop thinking about getting it to work.

Then when I got it to work, I still had a sleepless night because I couldn't stop thinking about using linux the next day lol

Quote:
Originally Posted by drlouis View Post
now, I think it's interesting what finally fixed it for you, because I just double checked this on my system and I get the EXACT SAME OUTPUT with no quotes, single quotes OR double quotes..... it doesn't make a lick of difference. would you try it again? I suspect a typo may be the culprit.

I'm 110% sure the culprit was the quotes because I was able to reproduce it every time I tried. I'm pretty certain that the complexity of the password plays a huge role in this. If your password is simple then you can get away without any quotes at all. If your password is complex, then no quotes will give you an error. Double-quotes will let the command go through and you will get an output, although if your password is extremely complex, the double-quoted output would be incorrect. Single-quotes seem to always work no matter how complex the password is.

So the lesson to learn from all of this: Always use single quotes no matter what and you will be fine.

Quote:
Originally Posted by drlouis View Post
I don't want to sound like I'm scolding, so please dont take it that way, but when asking for help, it's good to point out things like the need for quotes that weren't mentioned. often little seemingly inconsequential things can make a big difference.
Yep I know what you mean. The best part about troubleshooting a problem is what we learn from it in the end. In this particular case, it's important to know exactly what caused it so that when the next guy comes along we'll be ready

Quote:
Originally Posted by drlouis View Post
I'm particularly gratified to see that you were willing to put in a good deal of effort on your own. Makes it much more likely you'll get help in the future than if you'd just kept coming back with: "that didn't work, what else can I try?" good show!
Thanks man, but I couldn't have done it without you guys
post #55 of 56
Quote:
Originally Posted by arsie View Post
I'm 110% sure the culprit was the quotes because I was able to reproduce it every time I tried. I'm pretty certain that the complexity of the password plays a huge role in this. If your password is simple then you can get away without any quotes at all. If your password is complex, then no quotes will give you an error. Double-quotes will let the command go through and you will get an output, although if your password is extremely complex, the double-quoted output would be incorrect. Single-quotes seem to always work no matter how complex the password is. So the lesson to learn from all of this: Always use single quotes no matter what and you will be fine. Yep I know what you mean. The best part about troubleshooting a problem is what we learn from it in the end. In this particular case, it's important to know exactly what caused it so that when the next guy comes along we'll be ready
Alright, this didn't sound right to me, so I did a little test, with fake info. I came up with a really complex ssid, and passphrase to test this out. the results were interesting.
Code:
louis@louis-laptop:~$ wpa_passphrase Ason35s5DFwz*58lswkSdiw aosW%2##0vsJBH49^FI5fg4dlGU7sd%
network={
        ssid="Ason35s5DFwz*58lswkSdiw"
        #psk="aosW%2##0vsJBH49^FI5fg4dlGU7sd%"
        psk=8c8898f1ec6db332b7bea005826a3918602da25b8461d11ebaf630133cc53627
}
louis@louis-laptop:~$ wpa_passphrase 'Ason35s5DFwz*58lswkSdiw' 'aosW%2##0vsJBH49^FI5fg4dlGU7sd%'
network={
        ssid="Ason35s5DFwz*58lswkSdiw"
        #psk="aosW%2##0vsJBH49^FI5fg4dlGU7sd%"
        psk=8c8898f1ec6db332b7bea005826a3918602da25b8461d11ebaf630133cc53627
}
louis@louis-laptop:~$ wpa_passphrase "Ason35s5DFwz*58lswkSdiw" "aosW%2##0vsJBH49^FI5fg4dlGU7sd%"
network={
        ssid="Ason35s5DFwz*58lswkSdiw"
        #psk="aosW%2##0vsJBH49^FI5fg4dlGU7sd%"
        psk=8c8898f1ec6db332b7bea005826a3918602da25b8461d11ebaf630133cc53627
}
note that all three are the same. Now, I tried this right before this (lost it all cuz ubuntu's froze up on me, and I had to power off), and had different results, I got no quotes = single quotes and double quotes was different. I find this very interesting, and if I'm bored later, I might try to find another combination that gives different results, and then change my router so I can test which way is correct. It's very odd that the results would be so inconsistent. If anyone has any idea why this would work this way I'd love to hear it, otherwise I might look into posting a bug report. Edit: ok, I decided I was bored so I went ahead, and tried some more combos til I got one that gave different results:
Code:
louis@louis-laptop:~$ wpa_passphrase a4Av894$Rfs83sf7^R aue2#Di8y987^Rfhoa3GSdiy87
network={
        ssid="a4Av894^R"
        #psk="aue2#Di8y987^Rfhoa3GSdiy87"
        psk=7aa85285758f50bed5da0e9d731875d8dcd1e677673cd9e016a80a74c18b7115
}
louis@louis-laptop:~$ wpa_passphrase 'a4Av894$Rfs83sf7^R' 'aue2#Di8y987^Rfhoa3GSdiy87'
network={
        ssid="a4Av894$Rfs83sf7^R"
        #psk="aue2#Di8y987^Rfhoa3GSdiy87"
        psk=06c16b12b2c30d970c1035a846900bc938701ecec80a81591f99de7bd9dd6ff2
}
louis@louis-laptop:~$ wpa_passphrase "a4Av894$Rfs83sf7^R" "aue2#Di8y987^Rfhoa3GSdiy87"
network={
        ssid="a4Av894^R"
        #psk="aue2#Di8y987^Rfhoa3GSdiy87"
        psk=7aa85285758f50bed5da0e9d731875d8dcd1e677673cd9e016a80a74c18b7115
}
note that no quotes=double quotes, and as arsie noted single quotes gives bad info. very curious. and good catch arsie. Edit2: actually, I'll bet the single quotes are seen as part of the ssid and passphrase, but the double quotes are most likely ignored, thus giving the same results as no quotes. .....er no. that wouldn't explain the first set that gave identical results for all 3 methods....
post #56 of 56
Thread Starter 
Quote:
Originally Posted by drlouis View Post
...and as arsie noted single quotes gives bad info.
hey drlouis, in all my tests single quotes gives good info (not bad) lol Your results are also strange. This definitely has to be a bug. But all I know is no matter what double-quotes and no-quotes tell you, you better listen to single-quotes because he is always right Even in your example above, single-quotes is the only one giving you the correct information. No-quotes and double-quotes are liars. Here is my latest test (with a simple SSID and a complex Pass):
Code:

Note: With no-quotes you just get an error.

arsie@ubuntu:~$ wpa_passphrase MYSSID "bAFWWxS$s}i>5&xx.]p42"
network={
        ssid="MYSSID"
        #psk="bAFWWxS}i>5&xx.]p42"
        psk=7051cba8702aa532b3ab20fb9b222c5773b5a65edcd7d530ca4d2c06fc88168e
}
arsie@ubuntu:~$ wpa_passphrase MYSSID 'bAFWWxS$s}i>5&xx.]p42'
network={
        ssid="MYSSID"
        #psk="bAFWWxS$s}i>5&xx.]p42"
        psk=54a4974eb0e892e86bbbc07e0bc3c98f3186e2e82ae6d9b140c4584c3c855942
}
In the above example, single-quotes is the correct one (as I find it always is). Edit: Judging only from the examples you and I posted, I would have to say that this wpa_passphrase command doesn't like the $ sign. Unless of course, you use single-quotes.
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux & Other OS's
NotebookForums.com › Forums › General Notebook Discussions › Linux & Other OS's › Going wireless on linux... with WPA and Static IP? Is it possible?