My Raspberry Pi

It is now 10 months ago since I got my Raspberry Pi 2 Model B and I am still fascinated by the power of that small device. I only made minor changes to the configuration since I got it.

First, I am using a new case for the Raspberry Pi as with the old one I was unable to use the GPIO pins. And I reconfigured the Raspberry to use an 64 GB USB stick as storage device instead of the SD card. The SD card is now only used for booting the device. I did that for security reasons as SD cards suddenly seem to die after heavy usage.

And I upgraded the Debian version from “Wheezy” to “Jessie” which was also quite easy. As part of that I also uninstalled unnecessary packages from the Raspberry. Especially all packages related to XWindows as I am using the device only via the command line and no graphical .

Here is a list of things my Raspberry is currently doing:

  • Providing VPN access to my internal network from outside via OpenVPN. I already described what you need to do to automatically connect via VPN if a ressource from the home network is accessed on iOS devices in that article.
  • Monitoring all my network devices and services via Icinga (a Nagios fork). Currently it is monitoring 20 hosts and 58 services in my network. Besides monitoring and sending mails if something is wrong, it is able to send me SMS messages if sending mails is no longer working. I am using an Huawei UMTS stick (similar to that one) for that. A description how to set up SMS can be found here. If Icinga recognizes that the Internet connections is down and it seems to be a problem with my Unitymedia Fritzbox 6490, it is able to automatically  switch off the box and switch it on again. If it is not an issue with Unitymedia itself, the Internet connection normally will be available again after the Fritzbox has been restartet. I am using a Wemo Switch for that. Here is a description how to control a Wemo device from the Raspberry Pi.
  • The Raspberry also serves a list of my eBooks which are stored on my Netgear NAS device. I am using BicBucStriim and calibre2opds as software for that.
  • I also configured the Apache HTTP server on my Raspberry as a HTTP reverse proxy. So I am able to provide several HTTP services in my network to the Internet
  • The Raspberry Pi is working as a TOR relay node. A guide how to set that up can be found here.
  • Last but not least: Since a few weeks I have installed the house automation software FHEM on the Raspberry Pi. Although I already have played a lot with FHEM in the meantime, it is still more playing than serious work. Maybe I will write down a bit more about that in a seperate article sometime later.

You still do not see that this small device has something to. Most of the time it is quite idle …

Unitymedia: Instabile Verbindung mit Fritzbox 6490 gelöst

Es ist zwar schon eine ganze Weile her, aber ich will niemanden die Lösung meiner Internet-Probleme mit Unitymedia vorenthalten:

Nach dem Austausch meiner alten Unitymedia-Fritzbox 6360 durch  eine neue 6490 hatte ich das Problem, dass mehrmals am Tag einfach die Box neu startete und die Internetverbindung neu aufgebaut wurde. Mal lief es ein paar Tage stabil, dann gab es wieder mehrere Neustarts an einem Tag. Ein Grund dafür war einfach nicht ersichtlich.

An einem Abend konnte ich allerdings das Verhalten reproduzieren: Sobald ich mein Amazon FireTV in Betrieb nahm um einen Film zu schauen, startete die Box innerhalb von 30 Sekunden neu. Und das jedes Mal. Das Problem lag daran, dass mein Amazon FireTV mit dem 5 GHz-WLAN meines WLAN-Routers (ich nutze nicht das WLAN der Fritzbox) verbunden war.  Sobald über dieses WLAN-Segment Traffic erzeugt wurde, kam es zu dem beschriebenen Verhalten.

Nachdem ich das FireTV auf das 2,4 GHz-WLAN umkonfiguriert hatte, konnte ich wieder probemlos Filme schauen. Allerdings blieben die sporadischen Neustarts der Fritzbox immer noch bestehen.

Das Problem löste sich erst dann, als ich das 5 GHz-WLAN auf meinem Router komplett deaktivierte. Seit dieser Zeit hatte ich keine Neustarts der Fritzbox mehr und das hält jetzt schon ein paar Monate an.

Vermutlich gab es irgendwelche Einstrahlstörungen in die Fritzbox, die zu den Neustarts geführt haben. Sollte ja eigentlich nicht passieren, da die 6490 von Haus aus auch im 5 GHz-Band senden kann.

Vielleicht hilft dieser Hinweis ja jemanden, der ähnliche Probleme hat. Einen Austausch der 6490 durch Unitymedia habe ich übrigens nicht beauftragt, da keiner weiss, welche Probleme die nächste Box dann hat. Es läuft ja jetzt alles zufriedenstellend 😉

RDP: Problem to connect to Windows 2008 Server

I had problems to connect with RDP (Windows Remote Desktop) from a Windows 7 client to a Windows 2008 Server. Although I used the correct user and password and this user had the rights to connect via RDP, I always got the error that my credentials are invalid.

The server had been configured to show a logon warning message before displaying the logon screen. In this case you need to add the following parameter to your RDP file on the client for your RDP session:

 

After that you should be able to login to the server without problems.

IBM Connections 5.0: Problems with Cognos reports

Issues:

Empty page in Community metrics reports

[codesyntax lang=”text”]

[/codesyntax]

[codesyntax lang=”text”]

[/codesyntax]

[codesyntax lang=”text”]

[/codesyntax]

CM-REQ-4342 An error occurred with the client.

CM-REQ-4335 An error occurred while updating the object

CM-REQ-4341 You do not have adequate permissions to make this request

QE-DEF-0288 Unable to find the data source ‘METRICS_CUBE_DS’ in the content store.

 

Solution:

  1. Verified the password for the JC2 alias “cognosAdmin”
  2. In the Cognos Admin Console added “Anonymous” and “Everyone” to the “IBMConnectionsMetricsAdmin” role.
  3. Re-run “cognos-configure-update.sh”
  4. Changed “IBMConnectionsMetricsAdmin” role back so that only the Cognos admin is included in that role.
  5. Restarted the Cognos cluster
  6. Re-run a “build.all”
  7. —> Everything works again

Elektronischer Bilderrahmen

Nachdem meine Mutter sich immer wieder beschwert hat, dass mein Vater sie nicht informiert, wenn wir Bilder per Mail geschickt oder über Facebook gepostet haben (sie selber hat mit Technik nix am Hut und  nimmt keinen PC, Tablet etc. in die Hand :-)), haben wir ihr einen vor einiger Zeit einen elektronischen Bilderrahmen geschenkt.

Die Hauptanforderungen:

  • Man darf nichts “bedienen” müssen. Er muss irgendwo aufgestellt werden und dann einfach funktionieren.
  • Egal was passiert, er muss sich möglichst wieder selbständig “reparieren” (wenn doch jemand mal damit rumgespielt hat :-))
  • Mehrere Personen müssen über das Internet neue Bilder auf den Bilderrahmen senden können bzw. diese auch wieder löschen.

Früher gab es ja mal solche Bilderrahmen z.B. von Kodak. Mittlerweile scheint es keine fertigen Lösungen mehr zu geben. Aber wozu gibt es denn mittlerweile relative günstige Tablets?

Umgesetzt haben wir das Ganze mit einem Lenovo A7-50 17,8 cm (7 Zoll IPS) Tablet (der Preis ist leider mittlerweile von 89 auf 99 EUR gestiegen …)  sowie ein paar zusätzlichen Android-Apps:

Digitaler Fotorahmen Premium
https://play.google.com/store/apps/details?id=be.wyseur.photo.buy&hl=de

Das ist das Hauptprogramm, welches Bilder, die in einer Ordnerstruktur auf dem internen Speicher vorhanden sind, als Diashow darstellt.

DropSync
https://play.google.com/store/apps/details?id=com.ttxapps.dropsync&hl=de

Hiermit werden die Fotos regelmäßig vom Dropbox-Account auf den lokalen Speicher synchronisiert. Für alle Personen, die Bilder hochladen dürfen (z.B. wir, meine Schwester, meine Neffen …), habe ich einen eigenen Ordner auf Dropbox freigegeben, den die Person verwalten kann (Bilder hinzufügen und wieder löschen)

Llama
https://play.google.com/store/apps/details?id=com.kebab.Llama&hl=de

Von diesem Programm wird nur ein Bruchteil der Funktionalität genutzt. Aber damit konnte ich sicherstellen, dass der Bilderrahmen und DropboxSync automatisch gestartet werden sobald das Tablet neu bootet oder das Stromkabel angeschlossen wird.

Ultimate Rotation Control
https://play.google.com/store/apps/details?id=nl.fameit.rotate&hl=de

Dieses kleine Tool habe ich nachträglich noch mit eingebaut, um sicherzustellen, dass der Bilderrahmen immer im Querformat angezeigt wird, auch wenn man ihn in die Hand nimmt und versehentlich kippt.

Skype
https://play.google.com/store/apps/details?id=com.skype.raider
Skype haben wir zusätzlich noch mit installiert, damit wir mit ihr auch von unterwegs Videotelefonate führen können.

Das Tablet wird morgens automatisch hochgefahren und dabei die Bilderrahmen-App und DropSync automatisch gestartet. Die Bilderrahmen-App ist so konfiguriert, dass sie sofort damit beginnt, die Bilder anzuzeigen. Zu einer bestimmten Zeit, fährt das Tablet automatisch wieder komplett herunter. Im Hintergrund werden die Bilder aus der Dropbox regelmäßig lokal synchronisiert.

Sobald jemand versehentlich die App beendet oder in den Hintergrund stellt, reicht es aus, den Stromstecker kurz zu ziehen und wieder einzustecken. Dadurch wird der Bilderrahmen wieder gestartet bzw. in den Vordergrund geholt. Wenn jemand noch mehr kaputt machen sollte, sollte spätestens am nächsten Tag (nach dem Neustart des Tablet) wieder alles ok sein.

Ansonsten habe ich alles Icons außer dem Bilderrahmen vom Startscreen des Tablet verbannt, so dass man nicht versehentlich irgendwo anders draufklickt, wenn man mal mit dem Teil herumspielt.

Mittlerweile haben wir zusätzlich noch Skype aktiviert, damit wir sie auch von unterwegs aus mit Video anrufen können. Wenn ein Anruf kommt, kommt Skype automatisch in den Vordergrund und sie muss nur den Ruf annehmen. Wenn wir wieder auflegen, kommt automatisch wieder der Bilderrahmen in den Vordergrund.

Ich hatte zuerst ein wenig bedenken, ob meine Mutter nicht von vorneherein den Bilderrahmen ablehnt, weil halt doch “technisches Spielzeug”. Aber ich wurde positiv überrascht. Sie freut sich immer, wenn wir von unterwegs neue Bilder von uns schicken. Und lässt niemanden ran, damit auch nix kaputt geht :-))

Bislang funktioniert auch alles einwandfrei, es gab noch keinen Erste Hilfe-Einsatz weil die Bilder nicht mehr dargestellt wurden. Und in der Zwischenzeit haben wir sogar noch ein zweites Exemplar bei Sabines Eltern im Einsatz …

Cognos (IBM Connections ): security.authz.AccessException

When accessing the Metrics application first time after login, an com.ibm.websphere.wim.security.authz.AccessException is thrown for each user in SystemOut.log of the Cognos server. The exception is thrown when accessing “Global Metrics” (using an authorized user) as well as “Community Metrics” (using any community owner). The functionality of Metrics application seems to be not affected negatively.

Exception trace looks like:

This exception is raised if a user, who has no administrator rights in Websphere, is accessing Cognos metrics.

The following steps had solved the problem here:

On Deployment Manager:

[codesyntax lang=”bash”]

[/codesyntax]

On WSADMIN prompt:

[codesyntax lang=”python”]

[/codesyntax]

Full Sync of all nodes

Stop and restart Cognos Server

For testing:

Login to eteaming as a normal user (not part of the Metrics Admin Group)

Open Metrics link in a Community

Check SystemOut.log of Cognos server and verify that the error message no longer appears.

Google kicked me out of the index …

Since the beginning of October Google seems to have kicked me out of their index. At least most pages, including the startpage, are no longer listed. To be honest I have no glue what has happened. I do not see any issues in the Google Webmaster Tools Dashboard. It seems that they are crawling my pages correctly but do not index most of them.

I have now removed some of my WordPress plugins which might have had an influence but I am still unsure if I found the root cause.

So if you are relying on Google to find new content on my pages, I recommend to directly call my page from time to time to make sure that you do not miss anything.

In the meantime I can only wait and hope that Google will add my pages again after some weeks.

Update 28.10.2015:

Just realized that SSLv3 was active again in my SSL configuration. No idea when that happened. So maybe that was why Google banned my site (which is HTTPS only) from the index. Corrected that now, and I get an A+ grade again from SSLLabs 🙂

IBM Connections Cognos: build-all.bat failed after migrating from Connections 4.5 CR5 to 5.0 CR2

Customer upgraded Connections from 4.5 CR5 to 5.0 CR2 and also introduced Cognos with the new environment. After migrating the data I tried to run the “build-all.bat” script to recreate all cube data. However that script failed without any meaningful error message.

I then ran the “config-installation-verify.bat” script and I got a failed message for the Transformer component. This time I got the following error in the transformer verify log:

[codesyntax lang=”text”]

[/codesyntax]

This seemed to be a problem which was already introduced after upgrading 4.5 CR4 to CR5 but was not visible because the customer did not have installed Cognos in the old 4.5 environment.

To solve the issue we run a “cognos-configure-update.bat” (make sure the “cognos-setup.properties” contains the correct uernames and passwords for the database uses).  After that the “build-all.bat” script  was running sccessfully.