Thursday, January 24, 2019

Nextcloud on Raspi

Installing NextCloud on Raspi @ Home
- Followed that guide here:
https://strobelstefan.org/?p=5790


Ran into the problems:
- mariadb  was only available in Version 10.0 an not 10.1 because of Ubuntu Version 16.1
- mariadb setup was not available as of Version 10.0 --> used mysql command instead
- Error for Setup of letsencrypt-auto because of certbot-auto solved here: https://community.letsencrypt.org/t/certbot-auto-failed-to-complete-had-a-problem-while-installing-python-packages/83697/5
and another fix here:
https://community.letsencrypt.org/t/certbot-auto-broken-in-debian-based-systems/83754
Error was: valueerror too many values to unpack


Nothing helped for me till now.

Last but not least:
Apply the --no-download option to letsencrypt-auto lines around 1000 like in certbot-auto


Debugging:

Obtaining the Client Log File

To obtain the client log file:
  1. Open the Nextcloud Desktop Client.
  2. Press F12 on your keyboard.
The Log Output window opens.



Errors on raspbian with apache 2.4:
403 Forbidden.

Prior to that  I moved the wwwroot of apache.
For this the following lines have to be in /etc/apache2/apache2.conf:

<Directory /media/newroot/www/>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
</Directory>



Securing Nextcloud with iptables if bind-adress is more than localhost:
Allowing certain hosts:
iptables -A INPUT -p tcp -s X.X.X.X --dport 3306 -j

Denying all other hosts:
iptables -A INPUT -p tcp --dport 3306 -j DROP


Upgrading to latest certbot package:
https://webdock.io/en/docs/webdock-control-panel/ssl-certificate-guides/upgrading-lets-encrypt-certbot-latest-version-ubuntu

Sunday, December 30, 2018

Homematic Startup

Hallo zusammen,

nachdem ich nach erfolgreichen Umzug als kleinen Start in die Heimautomatisierungswelt mit dem Homematic IP Heizungsset warm geworden bin, komme ich endlich nach mehr als einem Jahr dazu das ganze auf etwas stabilere und autarke Beine zu stellen.

Ziel ist es ein Stück  von der reinen Cloud Lösung Homematic IP zu kommen, sowie die Standard Wireless und Wired Aktoren der Homematic anschließen zu können.

Erste Anwendungsfälle für mich werden sein:
- Lichtsteuerung
- Rolladensteuerung
- Garagentorsteuerung
- Heizungssteuerung

Hierzu folgendes Setup:
- Raspi Model B3
- RPI-RF-MOD von ELV nebst Gehäuse und Netzteil
- 32 GB mini SD Karte

Alle Details entnehmt Ihr bitte:
https://homematic-forum.de/forum/viewtopic.php?t=26917
Dieser Artikel ist die Grundlage für alle hier vorgestellte.


Dabei bin ich mit der ersten SD Karte auch noch hierüber gestolpert:
https://raspberrypi.stackexchange.com/questions/47910/raspberry-breaks-sd-card-31-mb-raw



  1. Die nächsten Projekte sind eine automatische Lichtsteuerung im Außenbereich nach Anleitung hier: https://pixelfriedhof.com/index.php/it-technik/hausautomatisierung/119-homematic-programm-zeitgesteuerte-beleuchtung-mit-manuellem-override
  2. Automatische Steuerung der Umwältspumpe der Heizung nach Zeitprofil, erweiterbar um Bewegungsmelder/externe Trigger
  3. Anwesenheitssteuerung: Ansätze sind Homematic und Openhab





Thursday, September 11, 2014

Embedding BASE-14 Fonts in PDF from Latex output

By looking into the fonts pane of the  properties of a PDF File with Adobe Acrobat Reader you see, whether all fonts are embedded or not.

Initially I followed this little Tutorial to set the options right:

http://www.hamilton.ie/gavinmc/docs/timesinpdfs.html

However, one configuration entry was still missing to get everything embedded in a Miktex Windows environment:
-dPDFSETTINGS=/prepress

Finally, I print to pdf with the following flags using GPL Ghostscript 9.14:

-dPDFSETTINGS=/prepress  -dCompatibilityLevel=1.3 -dHaveTrueTypes=true -dEmbedAllFonts=true -sPAPERSIZE=a4 -dSAFER -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile="%bm.pdf" -c save pop -f "%bm.ps"

(%bm.pdf are just wildards for document names of texnic center)

Thanks to Georg for sending me his options and giving me the important hint!

Wednesday, September 10, 2014

Myth about [T1]{fontenc}

http://tex.stackexchange.com/questions/664/why-should-i-use-usepackaget1fontenc

! LaTeX Error: Command \iint already defined. Problem between pxfonts and other package e.g. amsmath

Problem cause:
The included packages have the same commands defined instead of redefined.
The solution here was simply to load amsmath first and afterwards pxfonts:


\usepackage[intlimits]{amsmath}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{pxfonts}


However, this might generate the problem, that your entire document text changes.
In my case I just wanted to have fixed/monofont inside the lstlistings.
For that I got rid of the general usepackage and did the following in my lstlisting setup:

basicstyle=\fontfamily{pxtt}\selectfont

Monday, September 8, 2014

Monday, September 1, 2014

Cannot run batch file with double click (Windows 8) (*.bat)

All you have to do is open the registry and delete this key:

"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.BAT\UserChoice"

Done.

Taken from here

Friday, January 31, 2014

Powerpoint 2010 / Office 2010 crash in Windows (8.1) due to Optimus

Recently I discovered that some of my presentations crash on my new laptop running Windows 8.1 and Powerpoint 2010. The error was: "Powerpoint stopped working" or "Powerpoint funktioniert nicht mehr".
Excel and Word worked like a charm, and some older presentations did as well.
So first of all I suspected an error in the presentation file itself and tried it successfully on other machines running Windows 7 and the same office.
I tried some other tests with converting the files back to *.ppt scheme and removing animations and slides.
However, nothing worked.

In the end the problem was GPU related. By default, Office gets launched on the integrated Intel GPU. However, Powerpoint, or at least my highly sophisticated presentation, requires the "real deal" GPU.

I started Powerpoint using the NVIDIA GPU and the Presentation worked on this machine as well


Tuesday, November 19, 2013

Windows 8.1 First impressions and first problems with freezing touchpad on Dell Inspiron 17 7000

Unpacking my brand new Dell Inspiron 17 7000 I was keen on test-driving this new touchy, feely stuff for the first time.
Acutally I was prepared for the worst and went out really impressed!
I, for myself, am using this machine as it would be with Win7, just nicer.
Hit the Start (Keyboard) button like before and the instant search returns your applications, files and more stuff just like before. With the metro area you have now even more space to arrange the most-often-used applications and give them a little bit of grouping and prioritizing by having larger or smaller icons.

Still, I need some time to get a grasp on full-screen apps and how to switch between full and desktop mode.
Alltogether,  I cannot comprehend why everybody is having problems with this new kind of design and paradigm.

Now comes the bad news. Win 8 and Win 8.1 is still having a lot of pitfalls. I for myself had to disable hibernation or the new windows stand-by mode because my laptop kept freezing after the second or third resume. Furthermore, eventually after switching users or returning from stand-by, the mouse is unresponsive to left-click but everything else works just find.
For my type of laptop this can be solved by double-finger scrolling once, which rips the touchpad driver out of its misery and everything is back to normal again.

Wednesday, October 30, 2013

Managing private Data in the Cloud

We all Dropbox.
However with the latest NSA scandal, Dropbox is not a good place to store sensitive or privat or perhaps just any Data.
I stumbled across the alternative called WUALA some years ago which is encrypted on the client.

Just recently I got aware of a nice home mounted,  decentralized cloud like storage tool:
Torrent Sync