Mervis minibian jessie wifi support



  • I have tried all the following without any success :

    apt-get update
    apt-get install nano sudo
    apt-get install firmware-realtek
    apt-get install wpasupplicant

    Tried to proceed with usual wifi configuration, editing my /etc/network/interfaces but no luck at all.

    How can i add my wifi adapter to mervis minibian ?



  • I have tried all the following without any success :

    apt-get update
    apt-get install nano sudo
    apt-get install firmware-realtek
    apt-get install wpasupplicant

    Tried to proceed with usual wifi configuration, editing my /etc/network/interfaces but no luck at all.

    How can i add my wifi adapter to mervis minibian ?



  • The system is set to read only in order save the SD card as much as possible.

    Support for some wifi dongles is already built in, also the wpa supplicant - see /etc/wpa_supplicant.conf

    But before you can modify the file, you need make the sd card writable by:mount -o remount,rw /Then edit the conf file or install other things and make the fs readonly by:```
    mount -o remount,ro /



  • First i```
    mount -o remount,rw /

    Then i```
    apt-get install nano
    ```cause i like it.
    
    My /etc/network/interfaces looks like this :
    
    

    #! /bin/sh false
    auto lo
    iface lo inet loopback

    ifup/ifdown of eth0 is driven by netplug daemon.

    by checking ethernet carrier (net card must by plugged into switch/other$

    eth1 is prepared for Huawei 3g modem in cdc-ether mode

    wlan0 is prepared for Wifi (usb)card

    #############################################################
    #auto eth0 #not needed if allow-hotplug or netplug is acti$

    allow-hotplug eth1 wlan0 # autostart on plugging !!!! MUST BE ONLY ONCE $

    source /etc/network/if-eth0.conf

    iface eth0 inet6 auto

    iface eth1 inet dhcp

    iface wlan0 inet dhcp
    pre-up wpa_cli -i wlan0 terminate 2>/dev/null || true
    pre-up /sbin/wpa_supplicant -B -q -c/etc/wpa_supplicant.conf -iwlan0
    post-down wpa_cli -i wlan0 terminate 2>/dev/null || true
    #wireless configuration is in /etc/wpa_supplicant.conf

    allow-hotplug wlan0

    iface wlan0 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
    iface default inet dhcp

    
    Then i```
    chown root /etc/wpa_supplicant/wpa_supplicant.conf
    
     /usr/bin/wpa_passphrase myssid mypass > /etc/wpa_supplicant/wpa_supplicant.conf
    

    When iiwlist wlan0 scani found my wifi network then i```
    mount -o remount,ro /



  • Hello,

    then you also need to tell the system to connect to the network:

    wpa_supplicant -Dwext -iwlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
    

    You might also want to automatically reconnect to the network, this can be done using the provided script:

    • Go to /etc/ifplugd/action.d/ and rename the ifupdown file to ifupdown.original

    • Then do: cp /etc/wpa_supplicant/ifupdown.sh ./ifupdown