?
Solved

WPA Supplicant

Posted on 2006-06-09
5
Medium Priority
?
522 Views
Last Modified: 2006-11-18
Hi i have madriva 2006 installed

I am getting wireless to work on and off

i can get it to work if i run

wpa_supplicant -Dwext -ieth2 -c/etc/wpa_supplicant.conf -dd

and leave the terminal window open!

if i close it the connection dies, why is this

is there any way to get this to work all the time?

Thanks
0
Comment
Question by:bryanchellen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 

Author Comment

by:bryanchellen
ID: 16873916
it runs for ages and ages!

How should i run WPA supplicant properly?

0
 
LVL 20

Expert Comment

by:nedvis
ID: 16875359
"if i close it the connection dies, why is this?"
You're starting your wireless connection via command typed in terminal windows ( console) so once you close initial terminal windows you're killing all processes kalled by root process.

Do this instead :
Click on Mandrivas Start button and try an option "Run Program". Type :
wpa_supplicant -Dwext -ieth2 -c/etc/wpa_supplicant.conf -dd
and press Enter or click OK button.

Other than that you might wish to do is make a simbolic link to the script :
wpa_supplicant -Dwext -ieth2 -c/etc/wpa_supplicant.conf -dd

nedvis

0
 

Author Comment

by:bryanchellen
ID: 16880147
hi thanks how do i make a symbolic link please im new to linux
0
 
LVL 20

Expert Comment

by:nedvis
ID: 16881088
OK this would be a procedure for creating desktop icon ( launcher) with the pointer to an executable file ( shell script) for your Wi-Fi connection.
Open your text editor ( preferably pico, nano or emacs ) from terminal console window .
Copy  ( or  type if  you want )  what is between star-lines ( donot copy star-lines) and paste it
in your text editor :
***********************************************************************************

#!/bin/bash
clear
wpa_supplicant -Dwext -ieth2 -c/etc/wpa_supplicant.conf -dd

***********************************************************************************
Close editor by saving file as   wpa   (for instance) . Do not save file as TXT file!
You script is allmost ready. To make the script EXECUTABLE type in console :

chmod   755   wpa    

and press <enter> key.
 
Your script is ready now.

You can run the script either by typing :

./wpa

or by creating link and placing the link to your Desktop ( or include it in panel as an launcher/applet).
 Open your file manager and right click on wpa ssh script and select menu option "Make link"
(  Nautilus in Gnome, Konqueror in KDE  or in console window just type :    ln wpa   to create hard link ).
Drag and drop newly created link to you desktop.
Double-click on desktop icon wpa should execute your command.


good luck
nedvis







0
 
LVL 20

Accepted Solution

by:
nedvis earned 2000 total points
ID: 16881163
Sorry, I gave you instruction to create a hard-link instead of symbolic link  (  ln wpa )

To create symbolic link to your executable shell script  wpa type this :

ln -s  wpa  wireless

( this command will create symbolic link with the name "wireless"  that you can copy and paste or move enywhere within your file system including Desktop where it can reside as an desktop icon to which you can assign any of icons from icon libraries that came with Mandriva 2006. You can select an icon for wireless device from Devices icon set for example ).

nedvis  
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

718 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question