domenica 13 marzo 2016

TL-WN725N WiFi adapter driver auto update scripts for Raspberry Pi2

(Edit)
If you are looking for an auto-update or auto-install program (and not only the libraries) click here.

Introduction


Differently from Raspberry Pi3, the Raspberry Pi2 has not a WiFi module, and so it is necessary to buy a usb WiFi adapter.

If you don't want to buy the official Raspberry Pi WiFi dongle, you can find many cheaper ones, like the Tp-Link TL-WN725N.

In this case you will need to install a specific driver, and you will need to update the driver each time you update your operating system.


How to update the driver manually


If you are looking for a guide about how to manually install the driver you can find it here, and you can find a complete list of the drivers here.


Auto update


Updating the driver manually each time you update your Raspberry Pi2 can be really annoying, in particular if you don't want to connect it with a LAN cable each time you have to update the OS.

Fortunately I made a few simple scripts which should do the trick.

You can download the ".tar" archive here.
Or you can download by command:
wget https://www.dropbox.com/s/hbnq9u3peto6v1j/update_drivers_for_TL-WN725N_wifi_dongle.tar


Instructions


First download and unpack the package by typing the following:
wget https://www.dropbox.com/s/hbnq9u3peto6v1j/update_drivers_for_TL-WN725N_wifi_dongle.tar
tar -xvf update_drivers_for_TL-WN725N_wifi_dongle.tar

You can now rename the unpacked "update_drivers_for_TL-WN725N_wifi_dongle" directory or move it wherever you want.
After that you have to move into the directory and change a parameter in the "settings.config" file.
nano settings.config
And change the parameter
root_directory=/home/pi/scripts/update_drivers_for_TL-WN725N_wifi_dongle
to
root_directory=path_of_the_directory

Now you can run the scripts contained in the directory by typing
sudo batch name_of_the_script.sh

There are two main scripts.

The first is "download.sh" which downloads the drivers on the device, which should be run after an update and before rebooting.

The second is "install.sh" which installs the alredy downloaded driver corresponding to the current operating system version.

Read the "README.txt" file or the description of the scripts for more details.

Keep me updated about issues you may find and leave a feedback! Check out this page for future updates!

Nessun commento:

Posta un commento