Passer au contenu principal

LCD-sdeclcd pour Sophos SG 230 sur OPNsense

Dans OPNsense on installe le paquet os-lcdproc-sdeclcd dans Système -> Firmware -> Greffons. 

On ce connecte ensuite en SSH sur notre OPNsense et on ce rend dans le fichier /usr/local/etc/LCDd-sdeclcd.conf et on supprime tout ce qui ce trouve a l’intérieur et on y rentre ceci : 

[server]
DriverPath=/usr/local/lib/lcdproc/
Driver=hd44780
Bind=127.0.0.1
Port=13666
ReportToSyslog=yes
User=nobody
Foreground=no
Hello="  Welcome to"
Hello="   OPNsense!"
GoodBye="Thanks for using"
GoodBye="   OPNsense!"
WaitTime=5
TitleSpeed=5
ServerScreen=on
Backlight=open
ToggleRotateKey=Enter
PrevScreenKey=Up
NextScreenKey=Down

[menu]
MenuKey=Escape
EnterKey=Enter
UpKey=Up

[hd44780]
ConnectionType=ezio
Device=/dev/cuau1
Keypad=yes
Size=16x2
KeyMatrix_4_1=Enter
KeyMatrix_4_2=Up
KeyMatrix_4_3=Down
KeyMatrix_4_4=Escape

puis on configure ce que nous voulons afficher sur notre écran dans le fichier /usr/local/etc/lcdproc.conf :

# LCDproc client configuration file
[lcdproc]
Server=localhost
Port=13666
ReportLevel=2
ReportToSyslog=false
delay=6
[CPU]
Active=True
OnTime=1
OffTime=2
ShowInvisible=false
[Iface]
Active=True
Interface0=pppoe0
Alias0=WAN
unit=byte
transfer=true
[Memory]
Active=True
[Load]
Active=false
LowLoad=0.05
HighLoad=1.3
[TimeDate]
Active=true
TimeFormat="%H:%M:%S"
DateFormat="%Y-%m-%d"
[About]
Active=false
[SMP-CPU]
Active=false
[OldTime]
Active=false
TimeFormat="%H:%M:%S"
DateFormat="%x"
ShowTitle=false
[BigClock]                     
Active=True
[Uptime]
Active=True
[Battery]
Active=false
[CPUGraph]
Active=true
[ProcSize]
Active=false
[Disk]
Active=false
[MiniClock]
Active=false
TimeFormat="%H:%M"

Maintenant on peux redémarrer notre OPNsense et notre écran affiche maintenant nos informations.