pifhem - Simple script to setup a fhem server on a Raspberry Pi

Begonnen von Avedo, 06 August 2015, 17:59:58

Vorheriges Thema - Nächstes Thema

Avedo

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

Wernieman

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 ......
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

Avedo

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.

Wernieman

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)
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

Avedo

Ahh, ok. So I will update the script. Mein Englisch ist auch nicht wirklich gut. ;-)

Avedo

#5
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

Sunny

FHEM 6.0 (RPi's 1b-4,CeleronM,Odroid C1+)
1-Wire (DS18B20,DS2406) |miniCUL|miniCUL868WLAN|HM|IT(-1500,LR-3500) |FB6591,FB7490,FB7580|DECT200|Powerline546E|520E|openwrt
Anfänger: Linux,FHEM+Perl

Avedo

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

Sunny

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
FHEM 6.0 (RPi's 1b-4,CeleronM,Odroid C1+)
1-Wire (DS18B20,DS2406) |miniCUL|miniCUL868WLAN|HM|IT(-1500,LR-3500) |FB6591,FB7490,FB7580|DECT200|Powerline546E|520E|openwrt
Anfänger: Linux,FHEM+Perl