LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 02-17-2009, 01:21 PM   #1
gmic
LQ Newbie
 
Registered: Dec 2008
Posts: 16

Rep: Reputation: 0
Possible to connect to WPA2 encrypted AP using Live CD?


Is it possible to connect with a wireless network card to a wpa2 encrypted access point using only what is supplied with the 6.3 Live CD?

My wlan card seems to be installed correctly and with ifconfig wlan0 up I can activate it. I also know how to tell it which essid to use. But how can I tell it to use WPA2 and the correct pre-shared key?
 
Old 02-17-2009, 02:03 PM   #2
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Now,I don't know what you mean by "6.3 Live CD" but you can easily enter encryption key with the command;
Code:
iwconfig wlan0 enc < key >
But that will maybe only work for WEP.
You can try;
Code:
iface wlan0 inet dhcp
   wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
and then
Code:
ifdown wlan0 && ifup wlan0
After bringing up the interface with wpa_supplicant, you can run wpa_cli and issue the command 'status' to see if and to which AP you are connected.

Last edited by alan_ri; 02-17-2009 at 02:20 PM.
 
Old 02-17-2009, 02:27 PM   #3
gmic
LQ Newbie
 
Registered: Dec 2008
Posts: 16

Original Poster
Rep: Reputation: 0
With '6.3 Live CD' I meant the LFS Live CD version 6.3.

Wpa_supplicant is part of that live cd?
 
Old 02-17-2009, 02:47 PM   #4
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Quote:
Originally Posted by gmic View Post

Wpa_supplicant is part of that live cd?
I never used LFS,so I wouldn't know and it was my bad;I wasn't thinking about where is this thread started.

Last edited by alan_ri; 02-17-2009 at 03:01 PM.
 
Old 02-24-2009, 11:40 PM   #5
Mystican
Member
 
Registered: May 2007
Location: San Diego, CA
Distribution: LFS, Xubuntu, others
Posts: 59

Rep: Reputation: 17
You may already have figured this one out by now, but just in case you haven't - and for the benefit of others with the same question - the following is how I usually do it. wpa_supplicant is indeed available on the LFS 6.3 LiveCD, so to connect to a WPA-enabled access point, just run these commands after you boot:

Code:
wpa_passphrase <ssid> <passphrase> > /etc/wpa_supplicant.conf

wpa_supplicant -B -Dwext -iwlan0 -c/etc/wpa_supplicant.conf

dhcpcd wlan0
And that's it. You can run
Code:
iwconfig wlan0
to make sure the ESSID field is set properly and to confirm that there's an Encryption key set (though you'll only be able to see the latter field when running as root, which of course is usually the case after you've first booted from the CD). Finally, to check that the connection is working properly, I'll usually do a quick ping of Google, for example, using
Code:
ping -c 3 google.com
 
  


Reply


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
Can't Connect to any Encrypted Wireless Networks markackerman8@gmail. Linux - Newbie 3 07-13-2008 12:52 PM
Wireless card fails to connect to encrypted networks rhathar Linux - Wireless Networking 4 02-29-2008 11:44 PM
7.10 can't connect to Apple airport WPA2 dbc001 Ubuntu 3 02-28-2008 04:21 PM
Accessing encrypted windows hard drive with live CD furry3331 Linux - General 2 06-29-2007 11:47 AM
Connect to a WPA-encrypted router in Slackware garnser Linux - Wireless Networking 0 08-22-2004 02:12 PM


All times are GMT -5. The time now is 11:15 PM.

Main Menu
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