Solved

WPA Supplicant

Posted on 2006-06-09
5
456 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
  • 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 500 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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now