NFS on MAC OSX 10.11.6 El Capitan

slowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowslowetc…not!

use NFS Manager to mount your NFS shares. To get the correct options, login to your NFS via ssh and execute:

cat /etc/exports

should look somethin like

/home           *.galaxis.de(rw,no_subtree_check,insecure)
/usr/share      *.galaxis.de(ro,all_squash)
/nfs/Data *(rw,all_squash,sync,insecure,anonuid=65534,anongid=65534)

i also use nolocks and noatime.

Past: 5.6MB/s Now: 13.2MB/s

Advertisements

grant fhem root privileges on libreelec via ssh

on libreelec machine:

login via password is libreelec (or openelec)
ssh root@”hostname”
create ssh Directory:

mkdir .ssh

on fhem machine:

allow fhem user login via:

sudo nano /etc/passwd

change Path “/false” to “/bash” (exit nano via “ctrl+x” and confirm changes)

fhem:x:999:20::/opt/fhem:/bin/false
fhem:x:999:20::/opt/fhem:/bin/bash

generate password for user fhem via:

sudo passwd fhem

log in user fhem:

su fhem

generate ssh keys:

ssh-keygen -t rsa -b 4096

copy keys to libreelec:

ssh-copy-id -i /opt/fhem/.ssh/id_rsa.pub root@kodi

test connection (still logged in as fhem user):

ssh root@kodi && exit

exit fhem user session:

exit

disable fhem user login:

change Path “/bash” to “/false” (exit nano via “ctrl+x” and confirm changes)

fhem:x:999:20::/opt/fhem:/bin/bash
fhem:x:999:20::/opt/fhem:/bin/false

delete password for user fhem via:

sudo passwd -d fhem

SPf3EVO & HC05

I managed to get the HC05 Bluetooth Module (on a ZS-040 Adapterboard) working on my  Seriously Pro Racing F3 Evolution flight Controller.

i had to pull PIN34 on the HC05 to HIGH to get into “Full AT+Mode” change the UART Baudrate to 115200 via

at+uart=115200,0,0

Then connect

(HC05) RXD-T1 (SPf3 UART1)
(HC05) TXD-R1 (SPf3 UART1)
(HC05) VCC-5V (SPf3 5V RAIL)
(HC05) GND-GND (SPf3 GND RAIL)

finally go into Cleanflight, Port tab and activate MSP on Port1 with 115200

Full AT+COMMAND List for HC05

[Sources: http://blog.dronetrest.com & http://www.martyncurrey.com]

GMX freemail IMAP

S0 n1c3,
found out, that, if you have free GMX mail, you can use imap Protocol Server.
for Mac:
  • create new Mailbox, use a wrong password.
  • After failing the test, select on the next screen the imap protocol and change the imap server to “imap.gmx.net” and user your correct password.
  • voilà! now your email read status & deleted emails will be in sync if you set up the imap mailbox on every device.

KODI 16 longpress feature

Got it!

  • Apple A1156 Remote
  • removed eventlirc

OE7.0.0.0 Linux 4.4.2 Kodi 16.0 Feb 26 2016

autostart.sh

systemctl stop system-lircd.slice
 wait 100
 systemctl stop eventlircd.service
 /usr/sbin/lircd --uinput --driver=default --device=/dev/lirc0 --output=/run/lirc/lircd --pidfile=/run/lirc/lircd-lirc0.pid /storage/.config/lircd.conf

lircd.conf:

# this config file was automatically generated
 # using lirc-0.8.1(iguanaIR) on Fri Mar 30 19:20:40 2007
 #
 # contributed by Matthias Urlichs <matthias|urlichs.de>
 #
 # brand: Apple
 # model no. of remote control: A1156
 # devices being controlled by this remote: new (late 2006) MacBook
 #
 # This config files are for non-Apple receivers only.
 # Use the lircd.conf.macmini file when you are using the Apple receiver.
 #

begin remote
 name Apple_A1156
 bits 8
 flags SPACE_ENC
 eps 30
 aeps 100

header 9065 4484
 one 574 1668
 zero 574 547
 ptrail 567
 repeat 9031 2242
 pre_data_bits 16
 pre_data 0x77E1
 post_data_bits 8
 post_data 0xC5
 gap 37600
 toggle_bit 0
 ignore_mask 0x80ff

begin codes
 KEY_PLAYPAUSE 0x20 # Was: play
 KEY_UP 0xD0
 KEY_RIGHT 0xE0 # Was: ffwd
 KEY_LEFT 0x10
 KEY_DOWN 0xB0 # Was: minus
 KEY_MENU 0x40 # Was: menu
 end codes

end remote

.kodi/userdata/keymaps/keyboard.a1156.xml

kodi.log

KODI:~ # tail -f .kodi/temp/kodi.log | grep -i "lirc\|onkey"
 DEBUG: CButtonTranslator::Load - no userdata Lircmap.xml found, skipping
 DEBUG: OnKey: down (0xf081) pressed, action is Down
 DEBUG: OnKey: down (0xf081) pressed, action is Down
 DEBUG: OnKey: up (0xf080) pressed, action is Up
 DEBUG: OnKey: long-play_pause (0x100f0bd) pressed, action is Highlight
 DEBUG: OnKey: up (0xf080) pressed, action is Up
 DEBUG: OnKey: up (0xf080) pressed, action is Up
 DEBUG: OnKey: long-play_pause (0x100f0bd) pressed, action is Highlight

—————EDIT—————–

as of recent i tried using my instructable on a new LIBREELEC system but got doubled entries, so i had to remove the Lircmap.xml in my userdata directory.

KODI:~ # tail -f .kodi/temp/kodi.log | grep -i "lirc\|onkey"
 DEBUG: OnKey: down (0xf081) pressed, screen saver/dpms woken up
 DEBUG: LIRC: Update - NEW at 37660875:0000000077e1b0c5 00 KEY_DOWN Apple_A1156 (KEY_DOWN)
 DEBUG: OnKey: 167 (0xa7) pressed, action is ChapterOrBigStepBack
 DEBUG: OnKey: up (0xf080) pressed, action is VolumeUp
 DEBUG: LIRC: Update - NEW at 37661740:0000000077e1d0c5 00 KEY_UP Apple_A1156 (KEY_UP)
 DEBUG: OnKey: 166 (0xa6) pressed, action is ChapterOrBigStepForward
 DEBUG: OnKey: down (0xf081) pressed, action is VolumeDown
 DEBUG: LIRC: Update - NEW at 37663025:0000000077e1b0c5 00 KEY_DOWN Apple_A1156 (KEY_DOWN)
 DEBUG: OnKey: 167 (0xa7) pressed, action is ChapterOrBigStepBack
 DEBUG: OnKey: down (0xf081) pressed, action is VolumeDown

—————EDIT2017————-

when recording a new remote with irrecord, you have to delete the second coloum with Hex-Digit (likely 0x0 or 0x1)

[...]
      begin codes
          KEY_PAUSE                0x04000400000030 0x00000000000000
          KEY_1                    0x04000400000001 0x00000000000001
          KEY_2                    0x04000400000002 0x00000000000001
          KEY_3                    0x04000400000003 0x00000000000001
          KEY_4                    0x04000400000004 0x00000000000001
          KEY_5                    0x04000400000005 0x00000000000001
      end codes
[...]

[SOURCE]

Set your Monitor to Standby

Hi there,
wanted to have a Kodi Screensaver, that set’s your Monitor or Screen into Standby via Timer?
There you go:
-Download:
Github Dlinny

  • copy the zip to your Kodi Media Center (OpenElec, Raspbian or Xbian …)
  • Install the Script via Addon Manager
  • ssh into KODI
  • do:
    nano ~/.kodi/addons/script.screensaver.xbian-hdmi-off-master/defaulty.py
  • delete line 44 & change line 35 & 43
     --35:os.system('tvservice -o')
     ++35: os.system('vcgencmd display_power 0')
     --43:os.system('tvservice -p')
     ++43:os.system('vcgencmd display_power 1')
     --44:xbmc.executebuiltin(‘XBMC.RestartApp()’)
  • Activate Addon in Kodi

rpi Ambilight w. Arduino Uno & TM1829

IT IS ALIVE!!!

what:

Ambilight Clone with hyperion over Arduino Uno (Adalight) and TM1829 LED

to do:

  • Color Edit
  • color fix integrated in neobob.cpp line474:
    //(b == 0xFF) b = 0xFE;//

Install hyperion

wget -N https://raw.github.com/tvdzwan/hyperion/master/bin/install_hyperion.sh

Start hyperion:

sh /storage/hyperion/bin/hyperiond.sh /storage/.config/hyperion.config.json 0/dev/null 2>&1 &

hyperion debug:

sh /storage/hyperion/bin/hyperiond.sh /storage/.config/hyperion.config.json

get neobob library from GITHUB:

https://github.com/chriszero/neobob

rename:

Adafruit_NeoPixel.h to neobob.h
Adafruit_NeoPixel.cpp to neobob.cpp

Tools:

for Prefix Calc:
Boblight Config Maker 

for the rest:
Hyperion Config Tool

neohyp.ino (15x TM182 a 3RGB LEDs=45Channels)

//pastebin.com/embed_iframe/jU9Ux9g7

hyperion.config.json
//pastebin.com/K3abwGbX

Bildschirmfoto 2015-12-30 um 03.02.18

—— edit 2017 ——

after fiddelling around after nearly a year ago reveals my flaws:

for correct colormode, i had to change “NEO_GRB” in line 58 of neobob.ino to “NEO_RGB”

further in neobob.cpp deactivate line 495 with “// comments //” activate line 496