LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 08-15-2008, 08:44 AM   #1
Jonathanius
LQ Newbie
 
Registered: Aug 2008
Location: San Diego, CA
Distribution: Linux Mint
Posts: 15

Rep: Reputation: 0
Question Trouble installing Gentoo through WPA network.


This was originally posted on Linux Forums under Gentoo Installation using minimal CD through WPA network it sat there for 2 weeks but my problem persists.

Quote:
A Linux newbie's attempt to install Gentoo on and outdated machine (don't try this at home):
Is it even possible to install the Gentoo 2008.0 with the minimal CD through a WPA(-PSK) connection? The Gentoo Handbook(x86) doesn't even mention WPA until the fourth section of Chapter 4(Wireless Networking), still, I can't imagine that Gentoo doesn't have the capabilities to connect to WPA until installed fully installed. Anyway I'm trying to install Gentoo on an old Toshiba Satellite laptop with:
Processor:Celeron 430.4 MHZ
RAM: 64mb
HDD: approx 6GB
Chipset: Intel 1440BX
It meets minimum requirements for the Minimal CD install but not for the LiveCD (with it nice new point-and-click GUI installer). I'm trying to connect to the net via the Linksys WUSB54G v4 network adapter (through a USB 1.0 port). Gentoo recognizes it immediately as wlan0, and after I run net-setup it will display(using iwconfig) the correct ESSID and access point, but, both "Link Quality" and "Signal Level" appear at zero and a ping returns "unknown host". Also the "Encryption key" displays 6 sequences of characters(a combination of letters and numbers) each 4 characters in length separated by dashes(-). Apparently it thinks the passphrase I enter is a WEP key even asking: "Are you entering you WEP key in HEX or ASCII?"
But if I try to configure my network manually as described in the Gentoo Handbook under "Using ifconfig And route" it returns: "bash: ${192.168.1.1} bad substitution" (192.168.1.1 is the default IP address for Linksys routers) On a side note: I have tested the Wireless Adapter with a different computer under WinXP and it worked fine.
Anyway I know that the standard tool for WPA networking in Linux is wpa_supplicant with happens to be on the minimal CD but won't anything except repeat itself again, unless you try to configure it with: -c/etc/wpa_supplicant.conf in which case it returns "failed to reed or parse configuration '/etc/wpa_supplicant.conf' so I'm kinda at a loss there, though that looks like my best bet. I tryed something called wpa_passphrase which has you input the ssid and passphrase and then displays:
ssid="[myfakenetworkname]"
#psk="[myfakepassword]"
psk= (a really really long string of letters and numbers)
Anyway after doing that, iwconfig shows the Encryption key in the same format as previously described but with 19 groups of characters instead of only 6 so apparently I'm making some progress but not more than that. Both Link Quality and Signal level still display 0 and a ping still returns "unknown host". The last the I've tried is wpa_cli but after displaying the version number (v0.5.7) and copyright and license info it says: "Could not connect to wpa_supplicant - re-trying" after which is displayed a blinking text input underscore thingy and it just sits there until I have to force the computer off. So is it possible to connect to a WPA network via minimal CD and if so how? Help would be much appreciated as this is my second Linux install (I put Debian on the same box about a week ago)
-Cheers,
Jonathanius
 
Old 08-15-2008, 01:15 PM   #2
Pearlseattle
Member
 
Registered: Aug 2007
Location: Switzerland
Distribution: Gentoo
Posts: 716

Rep: Reputation: 81
Well, I can tell you how I set up my WPA-connection, if this helps.

After loading the module of the network card I use the following script to connect to the access point:
Code:
wpa_supplicant -Bw -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf #Add "-d" at the end  to show debug informations
sleep 4

ifconfig wlan0 10.0.0.18 netmask 255.0.0.0
sleep 2
route add default gw 10.0.0.2
And the wpa_supplicant.conf looks like this:
Code:
ctrl_interface=/var/run/wpa_supplicant

# Ensure that only root can read the WPA configuration
ctrl_interface_group=0

# Let wpa_supplicant take care of scanning and AP selection
ap_scan=1

# Same as previous, but request SSID-specific scanning (for APs that reject broadcast SSID)
network={
  ssid="thessidofyouraccesspoint"
  scan_ssid=1
  psk="Your nice passphrase"
  priority=2
}
This is the only WPA-configuration that works with a passphrase for me.
 
Old 08-19-2008, 11:35 AM   #3
Jonathanius
LQ Newbie
 
Registered: Aug 2008
Location: San Diego, CA
Distribution: Linux Mint
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks Pearlseattle for taking the time to reply, I tried what you told me, but unfortunately its still not working, I don't know if I'm even putting in the right thing, here is exactly what I input:
wpa_supplicant -Bw -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
sleep 4
ifconfig wlan0 10.0.0.18 netmask 255.0.0.0
sleep 2
route add default gw 10.0.0.2
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1
network={
ssid="thessidofyouraccesspoint"
scan_ssid=1
psk="Your nice passphrase"
priority=2
}
After I input all of this the computer returns:
bash: syntax error near unexpected token '}'
In the third line I have tryed substituting my DNS for 1.0.0.8 and also my netmask for 255.0.0.0 but all this to no avail, pings always return:
ping: unknown host www.gentoo.org (or whatever other URL I tried to ping)
Also when I input:
iwconfig wlan0
it says the essid is "ARTSTUP1" which is not the name of our network, in fact I have absolutely no idea where it came from.
it also says that the Encryption key is off
So, am I doing the right thing? If so, do you have any other suggestions, if not, what should I change?
Thanks again for your help!
-Jonathanius
 
Old 08-20-2008, 11:53 AM   #4
Pearlseattle
Member
 
Registered: Aug 2007
Location: Switzerland
Distribution: Gentoo
Posts: 716

Rep: Reputation: 81
Hi
To me it looks like you're writing the whole stuff on the command line, or?
But what I mentioned is split into two parts: the first one is what you type on the command line, the second one is the configuration you set up in your "wpa_supplicant.conf"-file.
Am I wrong?
 
Old 08-20-2008, 04:48 PM   #5
Jonathanius
LQ Newbie
 
Registered: Aug 2008
Location: San Diego, CA
Distribution: Linux Mint
Posts: 15

Original Poster
Rep: Reputation: 0
Yes that is correct I have been typing it all into the command line. How would I get to where I can configure the wpa_supplicant.conf file? Could you please show me exactly what to type? I am completely new to this. Thanks.
-Jonthanius
 
  


Reply

Tags
gentoo, wpapsk, wpasupplicant, wusb54g


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
usb network adapter with ndiswrapper can't connect to wpa with wpa-supplicant AceofSpades19 Linux - Wireless Networking 8 03-30-2008 06:13 PM
Trouble setting up WPA-PSK in Ubuntu crash75uk Linux - Wireless Networking 1 04-04-2005 04:34 PM
Trouble Installing Linux across the network using NFS krishvij Linux - Networking 5 02-23-2005 01:14 AM
after installing gentoo network and grub don;t work yeyal Linux - Hardware 1 02-09-2005 05:37 PM
Trouble installing Gentoo robpo Linux - Distributions 2 01-19-2005 08:34 AM


All times are GMT -5. The time now is 02:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration