19 March 2019

LCDd und lcdproc auf Lanner Hardware einrichten

:Pic1

Debian

lcdproc Installation

sudo apt-get install lcdproc

Setup

LCDd Setup (Server)

/etc/LCDd.conf

[server]
Bind=192.168.8.247
Port=13666
DriverPath=/usr/lib/x86_64-linux-gnu/lcdproc/
Driver=sdeclcd
InitialBacklight=on
Backlight=on
WaitTime=60
ServerScreen=no
ReportToSyslog=yes

#keys
ToggleRotateKey=Enter
PrevScreenKey=Left
NextScreenKey=Right

[menu]
MenuKey=Escape    # ESC switches to server menu
EnterKey=Enter
UpKey=Up
DownKey=Down
LeftKey=Left
RightKey=Right

lcdproc Setup (Client)

/etc/lcdproc.conf

# LCDproc client configuration file

## general options ##
[lcdproc]
# address of the LCDd server to connect to
Server=192.168.8.247

# Port of the server to connect to
Port=13666

# set reporting level
ReportLevel=2

# report to to syslog ?
ReportToSyslog=false

# run in foreground [default: false; legal: true, false]
#Foreground=true

# PidFile location when running as daemon [default: /var/run/lcdproc.pid]
#PidFile=/var/run/lcdproc.pid

# slow down initial announcement of modes (in 1/100s)
#delay=2

# display name for the main menu [default: LCDproc HOST]
#DisplayName=lcdproc
DisplayName=r3

## screen specific configuration options ##

[CPU]
# Show screen
Active=True
OnTime=1
OffTime=2
ShowInvisible=false

[Iface]
# Show screen
Active=false

# Show stats for Interface0
Interface0=eth0
# Interface alias name to display [default: <interface name>]
Alias0=LAN

# Show stats for Interface1
#Interface1=eth1
#Alias1=WAN

# Show stats for Interface2
#Interface2=eth2
#Alias2=MGMT

# for more than 3 interfaces change MAX_INTERFACES in iface.h and rebuild

# Units to display [default: byte; legal: byte, bit, packet]
unit=byte

# add screen with transferred traffic
transfer=false

[Memory]
# Show screen
Active=false

[Load]
# Show screen
Active=True
# Min Load Avg at which the backlight will be turned off [default: 0.05]
LowLoad=0.05
# Max Load Avg at which the backlight will start blinking [default: 1.3]
HighLoad=1.3

[TimeDate]
# Show screen
Active=false
# time format [default: %H:%M:%S; legal: see strftime(3)]
TimeFormat="%H:%M:%S"
# date format [default: %x; legal: see strftime(3)]
DateFormat="%x"

[About]
# Show screen
Active=false

[SMP-CPU]
# Show screen
Active=true

[OldTime]
# Show screen
Active=false
# time format [default: %H:%M:%S; legal: see strftime(3)]
TimeFormat="%H:%M:%S"
# date format [default: %x; legal: see strftime(3)]
DateFormat="%x"
# Display the title bar in two-line mode. Note that with four lines or more
# the title is always shown. [default: true; legal: true, false]
#ShowTitle=false

[BigClock]
# Show screen
Active=false

[Uptime]
# Show screen
Active=false

[Battery]
# Show screen
Active=false

[CPUGraph]
# Show screen
Active=false

[ProcSize]
# Show screen
Active=false

[Disk]
# Show screen
Active=false

[MiniClock]
# Show screen
Active=false
# time format [default: %H:%M; legal: see strftime(3)]
TimeFormat="%H:%M"

# EOF

Systemd files

/lib/systemd/system/LCDd.service

[Unit]
Description=LCD display daemon
Documentation=man:LCDd(8) http://www.lcdproc.org/
After=network-online.target
Wants=network-online.target

[Service]
User=root
ExecStart=/usr/sbin/LCDd -s 1 -f -c /etc/LCDd.conf

[Install]
WantedBy=multi-user.target

/lib/systemd/system/lcdproc.service

[Unit]
Description=LCD display client
Documentation=man:LCDd(8) http://www.lcdproc.org/
After=LCDd.target
Wants=LCDd.target

[Service]
User=root
#ExecStart=/usr/bin/lcdproc
ExecStart=/usr/bin/lcdproc -f -c /etc/lcdproc.conf
Restart = always
RestartSec = 10

[Install]
WantedBy=multi-user.target

Pfsense

:Pic1