Gnetconfig
From FrugalWiki
Dansk – Deutsch – English – Español – Français – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Polski – Português – Română – Slovenský – Suomi – Svenska – Türkçe – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어
Contents |
Gnetconfig
Gnetconfig is a front-end of Netconfig. You can configure connexion profiles and switch from a profile to another (example from cable to wireless).
Installation
- Of gnetconfig :
- Of XFCE plugin :
Use
Configuring Ethernet network (cable wire)
No so different as netconfig, select your ethernet interface and choose DHCP or static IP.
Configuring Wi-Fi network (wireless)
Launch gnetconfig, and select your wireless interface and configure it :
- DHCP OR static IP
For static IP , you have to indicate host IP, the sub-network mask (in main cases 255.255.255.0) and the IP of the gateway.
- Indicate the ESSID name of the wireless network
Crypting
- For the WEP crypting
Enter the WEP key, in the case 'key', which looks like XX-XXXX-XX.
- For the WPA crypting
Note: You must have the wpa_supplicant package !
Check “Use WPA encryption”
And enter the passphrase :
Don't forget to add, in options, the interface's activation and deactivation commands :
Profiles
If you want create more than one profile using wireless connection with WPA, you won't be able to use Gnetconfig. You must have to create as many files for wpa_supplicant as profiles.
Let's create a directory to store these files :
Fill you configuration file wpa_conf1.conf like this :
network={ ssid="ESSID_OF_NETWORK1" proto=WPA key_mgmt=WPA-PSK psk="PASSPHRASE_OF_NETWORK1" }
Next, create a file called wpa_conf2.conf and type this :
network={ ssid="ESSID_OF_NETWORK2" proto=WPA key_mgmt=WPA-PSK psk="PASSPHRASE_OF_NETWORK2" }
Now, we have to configure Gnetconfig to launch wpa_supplicant in daemon mode, with the file corresponding to the profile you want. Create a new profil, configure it like it was WEP, without typing any ESSID or key. With "configure", click on tab "options" and add the following commands :
Before startup :
wpa_supplicant -Bw -Dwext -iwlan0 -c/etc/wpa_supplicant/wpa_conf1.conf
And after shutdown :
killall -q wpa_supplicant
Do the same for the other profile.
At the end, your configuration files Gnetconfig (/etc/sysconfig/network/conf1) should look like this :
[options] desc = Configuration 1 [wlan0] mode = auto options = dhcp dhcp_opts = -t 10 dhcpclient = dhcpcd pre_up = wpa_supplicant -Bw -Dwext -iwlan0 -c/etc/wpa_supplicant/wpa_conf1.conf post_down = killall -q wpa_supplicant