Page 1 of 1

Mervis minibian jessie wifi support

Posted: Mon Apr 11, 2016 8:33 am
by BlackSoll
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 ?

Re: Mervis minibian jessie wifi support

Posted: Mon Apr 11, 2016 2:47 pm
by tomas_hora
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:

Code: Select all

mount -o remount,rw /

Then edit the conf file or install other things and make the fs readonly by:

Code: Select all

mount -o remount,ro /

Re: Mervis minibian jessie wifi support

Posted: Tue Apr 12, 2016 12:13 pm
by BlackSoll
First i

Code: Select all

mount -o remount,rw /


Then i

Code: Select all

apt-get install nano
cause i like it.

My /etc/network/interfaces looks like this :

Code: Select all

#! /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

Code: Select all

chown root /etc/wpa_supplicant/wpa_supplicant.conf

 /usr/bin/wpa_passphrase myssid mypass > /etc/wpa_supplicant/wpa_supplicant.conf


When i

Code: Select all

iwlist wlan0 scan
i found my wifi network then i

Code: Select all

mount -o remount,ro /
and reboot and again no connection.

Re: Mervis minibian jessie wifi support

Posted: Wed Apr 20, 2016 12:26 pm
by tomas_hora
Hello,

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

Code: Select all

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:

  1. Go to /etc/ifplugd/action.d/ and rename the ifupdown file to ifupdown.original
  2. Then do: cp /etc/wpa_supplicant/ifupdown.sh ./ifupdown