Help installing WiFi adapter on Raspbian?

Discussion in 'Other Operating Systems' started by MonoJoker, Apr 10, 2019.

  1. MonoJoker

    MonoJoker Member

    Joined:
    Jul 11, 2001
    Messages:
    2,618
    Location:
    An hour west of Brisvegas
    Hi All,

    Having no luck installing a driver for a DLINK DWA131 on a Raspberry Pi. I have googled and find different instructions on how to do it at every site. Is there a simple way to do this or is it going to be too hard for a casual user? I didn't think I'd need to learn Linux inside out to perform such a simple operation but it certainly seems that way from the differing instructions I am finding online.

    All I want to do is setup Pihole but I do not have an wired port available for the Pi on my network.

    The last method I tried was to get the ARM compatible driver for my adapter from Git. It lists 2 methods to install but both require me to have an internet connection. https://github.com/lord2y/rtl8192eu-arm-linux-driver

    If I know the location of the drivers (they're local on the Pi) then can't I just use insmod? Again I can't find the .ko file which I seem to need according to instructions I found on Google.
     
  2. flu!d

    flu!d Ubuntu Mate 16.04 LTS

    Joined:
    Jun 27, 2001
    Messages:
    13,057
    Realtek chipset. Honestly, you'd be far better off buying an adapter that's actually compatible with Linux. How can your RPi have no Ethernet connection?
     
  3. gdjacobs

    gdjacobs Member

    Joined:
    Apr 3, 2007
    Messages:
    1,211
    Location:
    MB, Canada
    Stick to Atheros or Ralink. I'm not sure how Mediatek is behaving, although it seems the MT76 driver supports most of the interesting wireless modes you might need. They took over Ralink, so I hope they're playing nice -- I just don't have enough data yet.

    Use the following lists to check any major brand adapters you may be interested in.
    https://wikidevi.com/wiki/WikiDevi:Network/Hardware_Specific/TP-LINK/Wireless_Adapter
    https://wikidevi.com/wiki/WikiDevi:Network/Hardware_Specific/Netgear/Wireless_Adapter
    https://wikidevi.com/wiki/WikiDevi:Network/Hardware_Specific/Buffalo/Wireless_Adapter
    https://wikidevi.com/wiki/WikiDevi:Network/Hardware_Specific/D-Link/Wireless_Adapter
     
  4. GumbyNoTalent

    GumbyNoTalent Member

    Joined:
    Jan 8, 2003
    Messages:
    7,006
    Location:
    Briz Vegas
  5. Statitica

    Statitica Member

    Joined:
    Dec 29, 2009
    Messages:
    3,184
    Location:
    Lae, Morobe, PNG
    No wired port available on the network coul mean that his hub/switch/router is full and he can't afford to unplug one of the existing devices...

    MonoJoker that is the way it is; if you need to step outside the box, you'll learn some stuff. But just to echo GumbyNoTalent's question, is there a reason you can't use the onboard wifi, at least for the initial driver installation?
     
  6. OP
    OP
    MonoJoker

    MonoJoker Member

    Joined:
    Jul 11, 2001
    Messages:
    2,618
    Location:
    An hour west of Brisvegas
    Its a Raspberry Pi 2 Model B from memory so no onboard wifi that I know of?

    The pi is in an area of the house where no Ethernet port exists to connect to the network.

    It sounds like I’m pushing the proverbial uphill, I didn’t realise so few adapters or chipsets were compatible with Linux. It’s not worth purchasing another wifi dongle just for this experiment.

    Thanks for the feedback all.
     
  7. Statitica

    Statitica Member

    Joined:
    Dec 29, 2009
    Messages:
    3,184
    Location:
    Lae, Morobe, PNG
    Ok, there is a way to do it, but it's definitely not the easiest route. To get setup, it will be easiest to have the RPi connected to the internet, as this will take care of any dependencies you might be missing, or any updates which are required.

    According to the method on the GitHub page you linked, you need to
    Code:
    apt-get install git raspberrypi-kernel-headers build-essential dkms
    what you're going to have to do is get each .deb file (compatible with ARM), and any missing dependencies.
    It is possible that the existing pi-hole image contains some of the information that you need (a repository data list), so try opening up a terminal and running
    Code:
     apt-cache depends git raspberrypi-kernel-headers build-essential dkms
    Unnecessary step, but possibly useful if you want a list of files to use on another PC, or if you are handy at writing scripts: If that gives you any output, run it again, but save the output to a file
    Code:
    apt-cache depends git raspberrypi-kernel-headers build-essential dkms > dependencies.txt 
    Then, grab all of the files you need from http://archive.raspbian.org/raspbian/pool/main/
    put them on a thumb drive, mount the thumb drive on your RPi, navigate to it in a terminal, and type
    Code:
    dpkg -i *.deb
    , and let it do it's thing.

    If that is successful, you should be able to continue the process as described on the GitHub page at step 2.

    Disclaimer: I make no guarantee this will work, or be easy. You may find yourself pulling your hair out at the endless missing dependencies, and this may even break the image to the point where reflashing it is the easiest fix. However, without an internet connection, this is about the only way to go.
     
    MonoJoker likes this.

Share This Page