LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices

Reply
 
Search this Thread
Old 01-18-2010, 06:48 PM   #1
stevefed5291
LQ Newbie
 
Registered: Jan 2010
Location: United States
Distribution: Debian, Linux Mint, Ubuntu Netbook Remix, Backtrack
Posts: 2

Rep: Reputation: 0
Trying to connect to home network in backtrack 4 final.


Hi guys, I'm new here so I apologies if this is in the wrong place and/or a generally stupid question. I've been using linux for about a year (Linux Mint 6-8, Ubuntu 8.10-9.10, Debian 5, et cetera.) but I've always used debian-based distros with gnome gui's that are relatively easy to find your way around in.

I've started fiddling around with the new backtrack 4 final and am hopelessly befuddled. I'm trying to connect to my home network with WPA security. I'm not trying to hack into it, or do any sort of penetration testing, I just want to connect to it so I can open a web browser and look up information on some of the more advanced tools.

My wireless card is listed when I input iwconfig, but I get some sort of error when I: "Iwconfig key sassword" after already "iwconfig essid NetworkName"

Sorry if this is post is a jumbled pile of convoluted thought, I've been going at this a few hours and can't seem to think straight. Could anybody give me a brief tutorial on how to connect to my home network?

Here's some more info:

Network controller: Atheros Communications Inc. AR928X Wireless Network Adapter (PCI-Express) (rev 01)

network is wireless b/g/n with WPA (tkip) security

Any help would be unfathomably appreciated, and a welcome stress-reliever. Sorry for the n00bishness of this post.
 
Old 01-18-2010, 07:34 PM   #2
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
You got this error because to connect to secured AP you have to give it a password

And in according to man page for "iwconfig" it should look like: "iwconfig essid NetworkName key sassword"
 
Old 01-20-2010, 01:16 PM   #3
stevefed5291
LQ Newbie
 
Registered: Jan 2010
Location: United States
Distribution: Debian, Linux Mint, Ubuntu Netbook Remix, Backtrack
Posts: 2

Original Poster
Rep: Reputation: 0
tried that, got an error msg. I don't know what it was at the moment as I don't have my backtrack disk on me but I'll update later with the exact error message.
 
Old 01-20-2010, 04:47 PM   #4
n000b
LQ Newbie
 
Registered: Jan 2010
Posts: 1

Rep: Reputation: 0
iwconfig (interface) mode managed key (pw) essid (essid) is for WEP encryption only.

I had some problems connecting to WPA too, but got it working last night.
Start by creating a file wpa_supplicant.conf and place it in your /etc/ folder.
Then enter in:

network={
essid="essid"
key_mgmt=WPA-PSK
proto=WPA
psk="preshared"
}

essid is the name of your AP and preshared is your preshared key.

Save the file then open konsole and type wpa_supplicant -i(your interface) -c/etc/wpa_supplicant.conf -Dwext

For example my interface is wlan0, so I would type
wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf -Dwext


Good luck

Last edited by n000b; 01-20-2010 at 04:51 PM.
 
1 members found this post helpful.
Old 01-20-2010, 05:20 PM   #5
nimnull22
Senior Member
 
Registered: Jul 2009
Distribution: OpenSuse 11.1, Fedora 14, Ubuntu 12.04/12.10, FreeBSD 9.0
Posts: 1,571

Rep: Reputation: 92
Thanks for correction.

But, in that case
ifconfig wlan0 192.168.20.20 up

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

then
iwconfig essid NetworkName

then
dhclient wlan0
 
Old 01-31-2010, 07:50 PM   #6
jafarm66
LQ Newbie
 
Registered: Jan 2010
Posts: 2

Rep: Reputation: 0
Backtrack 4 has networking off when 1st booted up. Once you login do the following:

1) test a wired connection on the laptop and if it fails to connect do the following:
sudo /etc/init.d/networking start

at that point you should be able to configure your wireless with iwconfig etc.
 
  


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
Connect to PC in home network by name Geert86 Linux - Networking 5 01-06-2010 01:50 PM
Why can't I connect to my home wireless network phil7784 Linux - Newbie 2 04-17-2009 02:43 PM
LXer: Install BackTrack 3 Final on your HDD LXer Syndicated Linux News 0 08-10-2008 05:30 AM
Vmware Workstation and Backtrack 2.0 final Installation Problem musik4u66 Linux - Newbie 2 11-11-2007 09:54 AM
connection dhcp failed in backtrack final tgh12 Linux - Networking 0 06-10-2007 03:52 PM


All times are GMT -5. The time now is 05:26 AM.

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