I want to share some experience with which I achieved to get a high performance Openhab plattform leveraging Raspberry. You may are interested into this.
A challenge with Raspberry is the slow microSD. Therefore, i decided to circumvent the SD when ever possible. My solution:
- Buy an above average-speed microSD and use it only for booting the system.
- Have the rest of the system on a very fast above-average USB stick.
(There may is some potential to save some further money as I am not 100% sure if with my solution also a slow microSD can be used, hence, I wanted to go secure and compared to a Windows server I anyway save an awful lot of money & time that i rather invest in some further automation HW)
- Raspberry 3 Model B
- Corsair Flash Voyager GTX 2015 - 128GB
- Toshiba EXCERIA microSDHC 16GB, 95 MB/s, UHS Class 3
On my system I am using the absolute minimum required:
- OpenHAB 1.8.2 (http://www.openhab.org/getting-started/downloads.html)
- MySQL (sudo apt-get update && sudo apt-get upgrade ; sudo apt-get install mysql-server --fix-missing)
- SSH (already installed)
- Nettalk and avahi-daemon ** (sudo apt-get install netatalk ; sudo apt-get install avahi-daemon)
That’s it. The installation time is less then an hour, including some configuration. Afterwards you are ready to go.
** required to access with OpenHAB designer the files on your raspberry in a very comfortable manner.
Some security thoughts:
- If you go with Raspbian Jessie Lite, than you have already a minimum of SW which from a security perspective is great
- Re-configure your SSH leveraging certificates instead of passwords. This is more comfortable and more secure
- use a networkscanner and shutdown any not requried service. This has the nice side effect that you make more ressources to the software you really need available
- run from time to time sudo apt-get update ; sudo apt-get upgrade ; sudo apt-get clean (I have a cron job, letting the system doing this work for me)
- Having the system split on cheap HW you can add another USB stick and dump your active USB stick every night to the 2nd one. This allows you to restore your system within minutes if your usb stick faces an issue. Alternative, use a remote server. I use a NAS that has a unix based OS. Again, very simpel, leverage a cron job and you haven’t any time to invest for back up.
Thats it. Happy to ready some of your experience in how you tuned your Raspberry but also how you improved security.
NOTE, THIS IS MY EXPERIENCE AND THERE IS ABSOLUTELY NO GARANTEE THIS WORKING IN YOUR ENVIRONMENT TOO. IF YOU START TO BUY HARDWARE BECAUSE OF THIS POST, THAN YOU DO THIS ON YOUR ONWN RISK. I WILL PROVIDE NO SUPPORT. THE ABOVE IS EXPERIENCE EXCHANGE ONLY.