Kategorien
Blog Software

Help protein folding for e.g. COVID-19 with your idle computers

There is a project simulating protein folding called folding at home.

Protein folding
DNA

Simulating the folding process of proteins requires a huge calculation power, that is normally offered only by super computers.Protein folding is used to fight deseases like HIV, Alzheimer, cancer and also the quite new COVID-19

The folding at home project is using the idle time of your personal computer making calculations for the possible foldings of a protein.

There are clients available for Windows und Linux. The installation is quite simple.

Unfortunately there are no packages available for Raspberry PIs as the computing power is too low.

This approach here uses the idle time of your (small) desktop or laptop computer at home and contributing to different projects while calculating so called „work units“. The client requests a work unit from a server and then makes the dedicated calculations in a maximum defined time, typically a few days. At the end the result of this work unit is sent back to the server.

You can „earn“ some points and also define a team, if you like.

I had some problem getting a work unit from the server on my Linux system. The following script helped as it pulls the server every 30 seconds for a new work unit. I found a quite good solution in the foldingathome forum.

#!/bin/bash
cd /var/lib/fahclient

while true
do
egrep -i "Download|No WUs available" log.txt|tail -1|egrep "No WUs available"
results=$?
#echo "$(date)    results = $results"
if [ $results = 0 ]
then
INDEX=$(egrep -i "Download|No WUs available" log.txt|tail -1|egrep "No WUs available"|cut -d F -f2 |cut -b 3)

echo "PAUSED *******  $(date) INDEX = $INDEX"
echo -e "pause $INDEX\nquit" | nc localhost 36330 &> /dev/null
sleep 10
echo -e "unpause $INDEX\nquit" | nc localhost 36330 &> /dev/null
fi
sleep 30
done

If you have multiple clients running you have to allow the access to each client for the remote access. How to do the configuration is explained here. For stopping and starting the server under Linux use these commands:

sudo /etc/init.d/FAHClient stop
sudo /etc/init.d/FAHClient start
Kategorien
Blog Software

Dynamic DNS service with fritzbox

If you are the owner of an avm router, you can setup a dynamic DNS service with the fritzbox.

Recently my current dyndns provider no-ip had an outage, and it took me around one hour to detect the root cause of the problem. The service guys of no-ip responded fast, I have to admit. But it took one complete day till the service was finally back.

So I was looking for another solution. And was successful with the service of avm.

I will explain the necessary steps setting up the service.

First you have to configure the MyFritz account by opening your fritzbox and going to „Internet/MyFritz! Konto“.

There you enter the credentials as requested and show in the screen shots:

MyFritz! account
MyFritz!-Konto
MyFritz! account details
MyFritz! Account with SSL Zertificate

You can also configure specific users only accessing the fritzbox from the internet and you can configure an SSL certificate using LetsEncrypt (recommended.

Then you configure the port forwarding from the MyFritz!Konto IP address to the device behind your fritzbox, in my case a raspberryPi3:

Port forwarding
Dynamic DNS service with fritzbox
Port forwarding for the MyFritz! Account

After that is all done, you are ready to set the domain forwarding at your domain provider. The interface may vary based on your domain provider management GUI.

Domain forwarding
Domain forwarding

Another advantage is also that you don’t have an outage of your site when your IP address is changed by the ISP, as the router immediately recognizes that and reconfigures the entries in the MyFritz!-Account data base.

Conclusion

The MyFritz! Account is a very good solution for a dynamic DNS service with a fritzbox.

[Update]

Recently I had some problems with the fritz service. Either there were outages for a few hours or I had to disconnect from the service and reconnect again. So I was going for a backup solution.

And I found a very good free service dyndns.de that is running now for some time without any problems.

This means I have setup now two Dynamic DNS services to connect to.

For switching between these two services I just have to change the CNAME entry in the DNS service of my hosting provider as shown above.

Kategorien
Blog Software

Multiroom sound and media solution

After some time of investigation and reseach, I think I have found and implemented a quite nice solution in my IT home network in respect to a multiroom sound and media solution.

Multiroom sound and media solution
A part of the media network components

I have compiled a few static pages on my home page explaining the details.

In total the complete environment including the web server consists now of three Raspberry Pi 3 B+ devices and one very cute Raspberry Pi Zero W device.

The software is based mainly on max2play.

Check out the details of my multiroom sound and media solution and let me know if I can help you with any setup or recommandation on your side.

Kategorien
Blog Software

Multiroom sound setup

It’s not so easy to compile a multiroom sound setup. Let’s go through a few options that are currently available.

Furthermore we will also discuss the use case of moving the setup to an outdoor environment, e. g. for a party.

Multiroom sound setup
Managing the sounds…

Bluetooth connection

If you wanna connect multiple speakers via Bluetooth, you have to be aware that the physical connection works mostly only to a distance of up to 10m.

Second, the devices you wanna control the Bluetooth loudspeakers very often allow only a point to point connection based on Bluetooth.

The Samsung galaxy S8 allows 2 Bluetooth connections at the same time, but this is not a big help for setting up multiple rooms.

WLAN or LAN connection

With WLAN you obviously have also some constraints in the reach, but this can be solved with wlan repeaters.

You can use either directly a (w)lan speaker or you attach a (w)lan to voice conversion device to every speaker.

The following options I have found so far for such a device :

All the solutions are not so cheap.

Software for controlling the multiroom setup

A multiroom sound setup depends first on the hardware. Independant software solutions without requiring specific hardware are not easy to find.

What looks quite promising are two free software solutions:

Speakers

Bluetooth speakers

There are plenty of bluetooth enabled speakers avalailable on the market. It depends more on the other use cases (outdoor, indoor, sound quality, fixed or movable) which speaker is the best solution for you.

WLAN speakers

Also there are plenty of speakers now available with built in WLAN capabilities.

Use cases

Outdoor use case

For going outdoor you should select speakers that can handle water, like e.g. the Sony SRS-XB31.

Also setting up a WLAN including a router and connecting the speakers is not so easy to handle.

In this case it maybe makes more sense to restrict oneself to a bluetooth party chain solution only. This is some offering by Sony.

Upgrading an existing environment

Some people, of course, have an already existing environment and want to upgrade or extend it.

A very good description how this can be done is given by Euronics.

Proprietary solutions

A very good overview for commercial and complete proprietary solutions is given by Conrad.

Currently selected solution

If you are fine with using the Mac or a windows machine as a server, Airfoil is a quite nice solution.
You can stream any application running on your server synchronously to plenty of devices, including multiple bluetooth devices.

I’m going for the max2play solution now.
Yes, it’s more costly as you have to have multiple Raspberry clients running. But you are more flexible as well.
And it makes more fun playing around with the Raspis 😉

Pros:

  • Use of Rpi output or USB soundcard or expensive DAC to connect to the speaker
  • Play different music in different rooms
  • Control it remotely, also via an app like squeezer
  • Don’t need a Windows or Mac as a server

Cons:

  • Cannot connect to multiple bluetooth devices with one RPi
Kategorien
News Software

KI auf dem Raspberry Pi

Google hat seine Software Tensorflow weiter entwickelt, so dass nun auch KI auf dem Raspberry Pi zur Verfügung steht.

KI auf dem Raspberry PI

https://t3n.de/news/tensorflow-machts-moeglich-ki-erhaelt-einzug-auf-dem-raspberry-pi-1100323/