Wlan / Wifi Beaglebone Black TP-Link TL-WN722N

After quite some struggeling getting this to work (including problem with internet over usb following this guide Sharing internet using Network-Over-USB in BeagleBone Black ), I got also a working solution for the Wifi.

I followed the guide at TP-Link TL-WN722N USB wireless adapter Beagle Bone Black with one minor typo (it is /etc/network/interfaces) and added three lines to my /etc/rc.local (as root, in front of exit 0 line).

connmanctl disable wifi
connmanctl enable wifi
ifup wlan0

The reason for this is because my adapter always started in master mode and not in managed mode.

Remark: This is most probably not the proper way of doing things, but it worked for me. Weiterlesen


Our new media center (after some blue smoke on the TV side and resulting that the TV doesn’t send any information over the HDMI i²c-bus) is a RaspberryPi 2 with a [pHAT DAC] running [OSMC].

It is a little bit different than the [guide] on the Pimonori side and also the ones from the [HifiBerry]site [2](same chip on HifiBerryDAC) itself didn’t work.

So here is what I did by using all aforementioned guides:
sudo nano /boot/config.txt

Uncomment the dtoverlay=lirc-rpi:gpio_out_pin=17,gpio_in_pin=18' and add dtoverlay=hifiberry-dac.

Uncomment and change dtparam=audio=on.

Download the correct device tree overlay to  /boot/overlays/ from [ osmc-forum ] (it seems the overlay is broken).
Then reboot with sudo reboot

Within Settings > System > Audio output > Audio output device select ALSA: Default (snd_rpi_dac Analog) and you should hear the acquainted clicking noise.

One remark: This is what I did to get working audio output, not sure if it is the most simple way, but hey it works.


Save all Temporary PDF-Files from Chromium

Sometimes a file – and in that case always an important one – is not reachable anymore with your browser (paywall, internet access, etc.) in this case it is always nice to know how to recover temporary files.

After some stack overflow / exchange searching and piping everything together here a simple solution to find the temp files from chromium:

cd Downloads
mkdir tmp
cd tmp
find ~/.cache/chromium -type f -exec file {} + | grep PDF | sed 's/ *:.*//' | xargs -I{} cp "{}" ~/Downloads/tmp
ls -a

This creates a folder tmp inside the download directory searches the cache of chromium, checks if it is a pdf [source], removes any unnecessary things from the grep output with sed [source] and finally copies everything in the created folder with cp [source].

Note: alle files have a file name without extension and are continuous numbered. Hence, the name has no relation to the content.