LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 10-25-2009, 07:11 AM   #1
coss_cat
Member
 
Registered: Jul 2007
Location: Bucharest, Romania
Distribution: Ubuntu
Posts: 35

Rep: Reputation: 0
Problem with WEP hex password


Hello to all of you,

I have a problem that until now I wasn't able to solve by my self. I use an Intel 3945ABG wireless card with my Ubuntu 9.04 OS. The network agent works fine, I can introduce an ASCII password without problem for whatever wireless AP in range, but my AP is set up by the administrator to accept only hex ones (WEP encryption). Until now I tried to introduce (without succeeding) keywords in this format xx:xx:xx... or simply xxxxxx... directly into graphical manager but no result (it's a 26 character hex password).
Even when using terminal the result is the same. What I did is this

sudo iwconfig wlan0 essid APNAME key xxxxxx...(hex key)
or
sudo iwconfig wlan0 key xxxxxx...(hex key) without specifying the APNAME

After this tried
sudo ifconfig down
and again
sudo ifconfig up

... but also without result.
I think I miss something here, so please provide some help if you confronted with the same problem.

Thank you guys in advance for anything,
 
Old 10-25-2009, 07:41 AM   #2
coss_cat
Member
 
Registered: Jul 2007
Location: Bucharest, Romania
Distribution: Ubuntu
Posts: 35

Original Poster
Rep: Reputation: 0
Solve it

Dear friends,

I managed to solve the problem in this post. What you have to do is this:
go to your rc.local file and edit it in su mode (sudo gedit /etc/rc/rc.local or sudo gedit /etc/rc.local depends of your distro). You must add before exit0 line these lines

iwconfig wlan0 key open xxxxxx...(your hex password)
iwconfig wlan0 essid APNAME
ifconfig wlan0 up
dhcpcd wlan0

... save the file and close it. In the above lines, wlan0 is the name of my wireless card (so pls change it with yours instead, APNAME is the name of the AP you want to connect to -mine is named homesweethome-).
restart your PC ...and eventually that's it. If your Gnome asks you for keyring or similar please search the forum regarding this matter.

Have a nice day,
 
Old 10-25-2009, 11:30 AM   #3
coss_cat
Member
 
Registered: Jul 2007
Location: Bucharest, Romania
Distribution: Ubuntu
Posts: 35

Original Poster
Rep: Reputation: 0
Second part

Excuse me because I forgot this,

After the computer is restarted and suppose that you solved the keyring problem (this is not valid for all Linux based OSs) the wireless will not be connected (at least this is what happened to me) to your desired AP, but instead you can now type the password directly into your Network Manager application window (I did copy paste of it from a file where I saved it, because for me is difficult to retain a 26 character hex number). This is it, now you can introduce directly the hex key into the graphical Network Management tool.

Wish you all luck,
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring wicd for WEP: Hex, Passphase or Shared/Restricted? cstrieder Linux - Software 2 07-20-2009 06:03 AM
[SOLVED] ASCII to HEX offline generator for WEP connection jelezarov Linux - Wireless Networking 4 05-14-2009 01:57 PM
saving WPA (or WEP) password in KNetworkManager newbiesforever Linux - Networking 1 04-03-2009 08:11 AM
Hex output of a hex/ascii input string mlewis Programming 35 04-10-2008 12:05 PM
WEP encryption password fatrandy13 Linux - Wireless Networking 14 09-15-2004 02:39 PM


All times are GMT -5. The time now is 07:52 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
Open Source Consulting | Domain Registration