News | About | Get Frugalware | Packages | Documentation | Discussion Forums | Bug Tracker | Wiki | Community | Development

Gnetconfig

From FrugalWiki

Jump to: navigation, search


Contents

Gnetconfig

Gnetconfig.png

Gnetconfig is a front-end of Netconfig. You can configure connexion profiles and switch from a profile to another (example from cable to wireless).


Gnetconfig-capture.png


Installation

  • Of gnetconfig :
Root terminal 48px.png
# pacman-g2 -S gnetconfig


  • Of XFCE plugin :
Root terminal 48px.png
# pacman-g2 -S xfce4-gnetconfig-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 Note: You must have the wpa_supplicant package !

Check “Use WPA encryption”

And enter the passphrase :

Gnetconfig-capture2.png

Don't forget to add, in options, the interface's activation and deactivation commands :

Gnetconfig-capture3.png


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 :


Root terminal 48px.png
# mkdir /etc/wpa_supplicant && nano /etc/wpa_supplicant/wpa_conf1.conf


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
Personal tools
Namespaces
Variants
Actions