FHEM Forum

FHEM - Hardware => Server - Linux => Thema gestartet von: Avedo am 06 August 2015, 17:59:58

Titel: pifhem - Simple script to setup a fhem server on a Raspberry Pi
Beitrag von: Avedo am 06 August 2015, 17:59:58
Hello,

Just wrote a small script, that simplifies the installation process of fhem on the raspberry pi under a debian based system. Enjoy!

https://github.com/bornageek/pifhem

Regards Andreas
Titel: Antw:pifhem - Simple script to setup a fhem server on a Raspberry Pi
Beitrag von: Wernieman am 07 August 2015, 09:39:25
A Little Question:
You build the init.-script, but start at the End the init-Script with the User fhem?
su - $FHEM_USER_NAME -c "/etc/init.d/fhem start"

When "Old-System" use the init-Scripts, then they start with user root ......
Titel: Antw:pifhem - Simple script to setup a fhem server on a Raspberry Pi
Beitrag von: Avedo am 07 August 2015, 10:00:58
I prefer running custom services as a dedicated user, however it's correct that most Linux users would run the server as root. I believe that running it as a non root user is safer, but I have to admit, that I don't know if it is actually safer.
Titel: Antw:pifhem - Simple script to setup a fhem server on a Raspberry Pi
Beitrag von: Wernieman am 07 August 2015, 10:04:44
I run fhem at "no root" User too. And so, the init-script must start fhem as User fhem and it is not important, that you make a sudo to fhem bevor yo start fhem with the init-script.

Do you understand?

sorry, my english is not "perfekt" ;o)
Titel: Antw:pifhem - Simple script to setup a fhem server on a Raspberry Pi
Beitrag von: Avedo am 07 August 2015, 11:15:07
Ahh, ok. So I will update the script. Mein Englisch ist auch nicht wirklich gut. ;-)
Titel: Antw:pifhem - Simple script to setup a fhem server on a Raspberry Pi
Beitrag von: Avedo am 28 August 2015, 16:03:44
Hello!

I have fixed some bugs and added some new features to the script, which is now accessible at: https://github.com/bornageek/pifhem

Best regards
Andreas
Titel: Antw:pifhem - Simple script to setup a fhem server on a Raspberry Pi
Beitrag von: Sunny am 25 Oktober 2015, 22:40:06
Moin Andreas,

Zitat von: Avedo am 28 August 2015, 16:03:44
https://guthub.com/bornageek/pifhem

Stimmt Dein Link ?
Oder ist und guthub gerade "Down"  ;)

Viele Grüße
Sunny
Titel: Antw:pifhem - Simple script to setup a fhem server on a Raspberry Pi
Beitrag von: Avedo am 25 Oktober 2015, 22:47:36
Hallo Sunny,

da habe ich mich wohl vertippt. Muss natürlich github heißen. Habs auch schon verbessert. Danke für den Hinweis.

LG Andi
Titel: Antw:pifhem - Simple script to setup a fhem server on a Raspberry Pi
Beitrag von: Sunny am 26 Oktober 2015, 18:50:04
Moin Andi,

hatte gerade versucht, Dein Skript für einen "alten Cerleron M" Laptop mit Deb Wheezy 7.9 i386 zu "missbrauchen".
Erst brauchte er noch "git", dann "make" und "gcc" hatte ich Ihn spendiert.
Leider hat es dann noch nicht geklappt. ( mittels Deines Skript den Lapi zum FHEM Auto Start zu überreden.)
Werde es dann jetzt händisch machen müssen.

Vielen Dank für Deine Arbeit.
Auf einem RPi werde ich es testen, wenn der Lapi läuft und ich wieder Zeit habe.
Lapi muss bis morgen Abend zuverlässig laufen... ;)

VLG wünscht
Sunny