LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-16-2009, 01:38 PM   #16
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721

So I should save this in a file

Code:
#!/bin/bash
#
#11-16-09 12:30 gws
#setup the rt2860 ar0 device
#
/sbin/ifconfig ar0 192.168.1.18
/sbin/route add default gw 192.168.1.1
/sbin/iwconfig ar0 essid "Your_Wireless"
/sbin/iwconfig ar0 key Your_key
/sbin/iwconfig ar0 ap xx:xx:xx:xx:xx:xx
Set permission to execute it, and run as root, right?
 
Old 11-16-2009, 02:14 PM   #17
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,892
Blog Entries: 27

Rep: Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182
Hi,

Yes, just save to a file then do a 'chmod +x your.filename'.

If this gets you a working wireless then you can make the changes to the '/etc/rc.d/rc.inet1.conf' file.

What happened when you entered the commands in the first code block?
 
Old 11-16-2009, 02:26 PM   #18
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
Quote:
Originally Posted by onebuck View Post
What happened when you entered the commands in the first code block?
I didn't. Am I supposed to before I try the script?
 
Old 11-16-2009, 02:31 PM   #19
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,892
Blog Entries: 27

Rep: Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182
Hi,

That's what I would do. I stated as such in that same post.

Just run the code segment as root from the cli. You will need to configure the IP for the device then route. You will use the 'iwlist ar0 scan' to get the 'essid' & 'ap' information to include in the final part. You will need to supply the encryption key if needed.

You can follow the link I referenced and do the same thing.
 
Old 11-16-2009, 02:34 PM   #20
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
I see that it says ar0 instead of ra0, is that correct?

Also I see that in your block of commands, you have <<< and then a few words, I am not supposed to type those in, right?
 
Old 11-16-2009, 02:42 PM   #21
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,892
Blog Entries: 27

Rep: Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182
Hi,

Quote:
Originally Posted by MTK358 View Post
I see that it says ar0 instead of ra0, is that correct?

Also I see that in your block of commands, you have <<< and then a few words, I am not supposed to type those in, right?
My bad! I did a cut & paste of a typo. Corrected in the post. The correct device is 'ra0'.

No, those are just pointers to the necessary information that you will have to provide.
 
Old 11-16-2009, 02:44 PM   #22
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
Quote:
Originally Posted by onebuck View Post
My bad! I did a cut & paste of a typo. Corrected in the post. The correct device is 'ra0'.
Good that I noticed!

Quote:
Originally Posted by onebuck View Post
No, those are just pointers to the necessary information that you will have to provide.
Then I am not sure what those mean.
 
Old 11-16-2009, 02:49 PM   #23
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,892
Blog Entries: 27

Rep: Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182
Hi,

You are making things complicated for your self <<<< pointer. The statement before the signs (<<<<) is what counts. Remove the <<<< from the code, not needed other than to emphasize at the time of reading.
 
Old 11-16-2009, 02:52 PM   #24
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
I still don't get it, after removing the <<< and everything after it, should I change anything?
 
Old 11-16-2009, 03:57 PM   #25
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,892
Blog Entries: 27

Rep: Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182
Hi,

Quote:
Originally Posted by MTK358 View Post
I still don't get it, after removing the <<< and everything after it, should I change anything?
As root you can use the below to configure a static IP for your LAN;

Code:
~#ifconfig ra0 192.168.1.18    #<<< available IP
~#route add default gw 192.168.1.1
~#iwlist ra0 scan #<< use information to fill in for essid & ap
~#iwconfig ra0 essid "Your Wireless"
~#iwconfig ra0 key your_key_here
~#iwconfig ra0 ap xx:xx:xx:xx:xx:xx #<<Your _ap_from iwlist
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Line1 you will need to supply the IP address for the LAN (192.168.1.18 is an example)
Line2 setting up the kernel route table for the ra0 device (192.168.1.1 example gateway)
Line3 this will provide information for accessible wireless
Line4 setup ra0 for your wireless access point
Line5 provide your key if encryption is used
Line6 configure the ap address for ra0

Please notice the '#' before the <, this will just be a comment and not performed as command but displayed.You will still need to supply information for the lines unique to your LAN.

You should 'man command' for all the above to gain understanding. For example 'man ifconfig' would provide you information to understand that command along with options.

Now As root you can use the below to configure a static IP;

Code:
~#ifconfig ra0 192.168.1.18 
~#route add default gw 192.168.1.1
~#iwlist ra0 scan
Then from;

Code:
~# iwlist wlan0 scan
wlan0     Scan completed :
          Cell 01 - Address: 00:0F:99:d1:00:07
                    ESSID:"linksys"           
                    Mode:Master               
                    Channel:6                 
                    Frequency:2.437 GHz (Channel 6)
                    Quality=90/100  Signal level:-44 dBm  Noise level=-70 dBm
                    Encryption key:on                                        
                    IE: Unknown: 

<snip my security>           
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s     
                              24 Mb/s; 36 Mb/s; 54 Mb/s; 6 Mb/s; 9 Mb/s      
                              12 Mb/s; 48 Mb/s                               
                    Extra:tsf=<snip>                               
                    Extra: Last beacon: 7ms ago
Extract information from the above output of 'iwlist wlan0 scan' I show ' ESSID:"linksys" ' & 'Address: 00:0F:99:d1:00:07'. I use that information as an example in the following be sure change all for your LAN;

Code:
~#iwconfig ra0 essid "linksys"
~#iwconfig ra0 key your_key_here
~#iwconfig ra0 ap 00:0F:99:d1:00:07
It is not that difficult and I hope you see how the information is obtained to supply to the commands that I illustrated. Just remember there is information that only YOU can provide; IP, gateway, essid, Your_key, ap address.

You should read some of the reference links that were provided in earlier posts. It will help you to understand and aid you in providing information to anyone else that may aid you in the future.

 
Old 11-16-2009, 04:19 PM   #26
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
Quote:
Originally Posted by onebuck
Line1 you will need to supply the IP address for the LAN (192.168.1.18 is an example)
Line2 setting up the kernel route table for the ra0 device (192.168.1.1 example gateway)
Line3 this will provide information for accessible wireless
Line4 setup ra0 for your wireless access point
Line5 provide your key if encryption is used
Line6 configure the ap address for ra0
The problem is that I have no idea what these are or how to find them.
 
Old 11-16-2009, 07:55 PM   #27
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,892
Blog Entries: 27

Rep: Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182Reputation: 2182
Hi,

Those lines are the ones in the code segment just above the line segments, I used the multiple ^ to point. ComOn Man! You cannot be that dense. If you can't read the commands nor follow instructions then I'm lost to communicate what you need to do.
 
  


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
Ralink RT2860 device doesn't work leifmusik Linux - Wireless Networking 12 12-28-2009 05:21 PM
RT2860 WiFi installation. MTK358 Linux - Networking 15 10-15-2009 01:36 PM
hdmi and RaLink RT2860 problems kristhor Linux - Hardware 3 10-03-2009 08:49 PM
RaLink RT2860 under Debian Etch sgoen1986 Linux - Hardware 2 11-28-2008 11:08 PM
Ralink RT2860 cccc Debian 3 10-28-2008 07:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:02 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration