Configure Wifi Without Network Manager
From PardusWiki
Contents |
How to configure a Wifi without Network Manager
First step
- Make sure your drivers are properly installed and your network card is recognised
- Close Network-Manager (right clic in task bar => Quit)
- Open a terminal
- Login as a root (su)
username@pardus ~ $ su Password : xxxxxxxxxx pardus username #
- Set down all of your network interfaces :
pardus username # ifconfig eth0 down pardus username # ifconfig eth1 down
Finding informations you need
- use the iwlist command to find out the information you need about your network. You need only two : the ESSID and the channel
pardus username # iwlist scanning
lo Interface doesn't support scanning.
eth0 Interface doesn't support scanning.
eth1 Scan completed :
Cell 01 - Address: 00:11:92:EE:1E:50
ESSID:"OWL-VISITOR"
Protocol:IEEE 802.11bg
Mode:Master
Channel:1
Encryption key:off
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
11 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Quality=41/100 Signal level=-76 dBm
Extra: Last beacon: 244ms ago
Cell 02 - Address: 00:11:92:EE:1E:51
ESSID:"OWL-VPN"
Protocol:IEEE 802.11bg
Mode:Master
Channel:1
Encryption key:off
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
11 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Quality=35/100 Signal level=-79 dBm
Extra: Last beacon: 241ms ago
...
Cell 09 - Address: 00:1B:2A:F7:77:53
ESSID:"Physics_M"
Protocol:IEEE 802.11bg
Mode:Master
Channel:4
Encryption key:on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
11 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Quality=37/100 Signal level=-78 dBm
Extra: Last beacon: 185ms ago
- Find out the right network, and remember the lines essid and channel.
Setting up your wifi network
- use iwconfig this way : iwconfig eth1 essid "nameofthenetwork" mode Auto channel n°ofthechannel
For example, for the Physics_M network previously spotted :
pardus ouardane # iwconfig eth1 essid Physics_M mode Auto channel 4
- if your network is protected by a key, use iwconfig key. You have to know if your network is protected in an "open" way or a "restricted" way (meaning that some connection is possible or not without the key). If you don't know, just try the two. If your key is and HEX key (numbers and letters A,B,C,D,E or F) juste copy your key after, if it is not, it is an ASCII key, and you have to write s: before your key
For an open HEX key
pardus ouardane # iwconfig eth1 key open XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
For a restricted HEX key
pardus ouardane # iwconfig eth1 key restricted XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
For an open ASCII key
pardus ouardane # iwconfig eth1 key open s:XXXXXXXXXXXXXXXXXX
For an restricted ASCII key
pardus ouardane # iwconfig eth1 key restricted s:XXXXXXXXXXXXXXXXXX
Connect to internet !
- Set up your interface using ifconfig :
pardus username # ifconfig eth1 up
- Connect to internet :
pardus username # dhcpcd eth1 pardus username #
If the terminal wait for your instruction without returning an error, you are connected!