The Chakra Project

Get NET with NUT

From The Chakra Project - Wiki

Jump to: navigation, search

Contents

Overview

QNut is a simple gui to connect to networks. More about this program you can find here:

NUT - Network UTility

This page shows you how to set it up in KDEMod4.

Prepare for nut

Check for your network cards

Do a iwconfig to see what network cards you have:

     [phil@philstv-desktop nuts]$ iwconfig
     lo        no wireless extensions.
     
     wmaster0  no wireless extensions.
     
     wlan0     IEEE 802.11bg  ESSID:""
               Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated
               Tx-Power=10 dBm
               Retry min limit:7   RTS thr:off   Fragment thr:off
               Power Management:off
               Link Quality:0  Signal level:0  Noise level:0
               Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
               Tx excessive retries:0  Invalid misc:0   Missed beacon:0
     
     eth0      no wireless extensions.

Also a lspci or lsusb helps you to detect your network hardware. If not listed check this wiki page to setup your wireless cards.

Adding repo

First add testing repo to your pacman.conf. Do a sudo pacman -Syu to update your system.

Installing nut

Now you can install QNut with this command:

    sudo pacman -S kdemod-nut-git

Read these lines carefully:

    Nuts' config file is located at /etc/nuts/nuts.config.
    You have to create it first. Take a look at /etc/nuts/nuts.config.example.
    You might also use this simplified file you find at /etc/nuts/nuts.config,simple.example.
    And for wpa_supplicant.conf you can find it at /etc/wpa_supplicant.conf.nut.example.
    
    You have to be in the group network in order to use qnut
    
    If you want to use the wpa_supplicant backend as unprivileged user,
    you have to set control rights in your wpa_supplicant.conf accordingly:
    i.e. ctrl_interface_group=network
    
    nuts as well as qnut support event based script execution
    Have look at /etc/nuts/dispatch to see how to write your own (server) scripts and where to put them.
    For qnut, please have a look at the man page
    
    Add nuts to your deamons line in your /etc/rc.conf to start nut

Take a look at the example files so you can edit /etc/wpa_supplicant.conf and /etc/nuts/nuts.config. The example files should be fine for almost every pc.

If needed you might add nut to networks group

    sudo useradd -G network nut

To start nuts add nuts to your /etc/rc.conf-file.

Restart your pc and start QNut with qnut or from kicker.

Examples

/etc/nuts/nuts.config

   device "eth0";
   device "wlan0" {
       no-auto-start;
       wpa-supplicant config "/etc/wpa_supplicant.conf" driver "wext";
       environment "zeroconf" zeroconf;
       environment "fallback" dhcp fallback 10 zeroconf;
       };

/etc/wpa_supplicant.conf

   ctrl_interface=/var/run/wpa_supplicant                                       
   ctrl_interface_group=network                                                 
   eapol_version=2
   update_config=1

/etc/rc.conf

   # -----------------------------------------------------------------------
   # DAEMONS
   # -----------------------------------------------------------------------
   #
   # Daemons to start at boot-up (in this order)
   #   - prefix a daemon with a ! to disable it
   #   - prefix a daemon with a @ to start it up in the background
   #
   DAEMONS=(cpufreq syslog-ng hal !network nuts avahi-daemon avahi-dnsconfd alsa kdm)
Personal tools