The pfSense Store

Author Topic: Firebox LCD Driver for LCDProc  (Read 94261 times)

0 Members and 1 Guest are viewing this topic.

Offline erisan500

  • Jr. Member
  • **
  • Posts: 29
  • Karma: +0/-0
    • View Profile
Re: Firebox LCD Driver for LCDProc
« Reply #120 on: April 18, 2011, 04:49:10 pm »
This is the contents of lcdd.conf:

Code: [Select]
[server]
Driver=pyramid
Bind=127.0.0.1
Port=13666
ReportLevel=3
ReportToSyslog=yes
WaitTime=5
User=nobody
ServerScreen=no
Foreground=no
DriverPath=/usr/local/lib/lcdproc/
GoodBye="Thanks for using"
GoodBye="    pfSense     "
ToggleRotateKey=Enter
PrevScreenKey=Left
NextScreenKey=Right
ScrollUpKey=Up
ScrollDownKey=Down
[menu]
MenuKey=Escape
EnterKey=Enter
UpKey=Up
DownKey=Down
[pyramid]
Device=/dev/cuaU0
Size=16x2


Don't see anything related to Backlight. Or am I using an older version?
« Last Edit: April 19, 2011, 01:04:45 am by erisan500 »

Offline stephenw10

  • Hero Member
  • *****
  • Posts: 8175
  • Karma: +8/-0
    • View Profile
Re: Firebox LCD Driver for LCDProc
« Reply #121 on: April 19, 2011, 07:34:55 am »
Hmmm, not sure what version you're using but it isn't using the firebox driver (sdeclcd).
The sdeclcd driver has parameters that appear in lcdd.conf:
Code: [Select]
[sdeclcd]
BackLight=yes
Backlight_Timer=60

How did you install it?

Steve

Edit: I see now that you're using the lcdd2 tarball which is very old now. See my post on the previous page with the lcdd4 attachment.
« Last Edit: April 19, 2011, 07:50:50 am by stephenw10 »

Offline hmeister

  • Jr. Member
  • **
  • Posts: 88
  • Karma: +0/-0
    • View Profile
    • Nettech
Re: Firebox LCD Driver for LCDProc
« Reply #122 on: April 24, 2011, 09:03:58 pm »
Here are the directions w/ files! This only has support for the FireBox LCD compiled. I have also noticed the interface stats does not work w/ freeBSD. I've got a full install on my pc and it still doesn't pickup the traffic. I have not dug too much into it.  At any rate here it is:

(Copy and paste from shell so you can see exactly how I set it up to install)

I should really wrap a cool GUI around this so it can all be configured from the web console. I do know PHP too, just need to find some time.

I'm using the EMBEDDED VERSION! the install script supports that only - if you are using a full install i'd try and comment out the 2 mount commands as you don't need to re-mount the file system as read-write then back to read-only.

Note: the /var/tmp filesystem resides in memory so you can 'play' here without wearing out your CF card.

This is from some PC to put the archive on the pfsense box.
Code: [Select]
MacWild:final jayson$ ls
lcdd.tar.gz
MacWild:final jayson$ gunzip lcdd.tar.gz
MacWild:final jayson$ scp lcdd.tar root@***.***.***.***:/var/tmp
Password:
lcdd.tar                                      100%  124KB 124.0KB/s   00:00   
MacWild:final jayson$

Now ssh into the box; make sure ya got it enabled first of course  ;)

Code: [Select]
pfsense:/#  cd /var/tmp
pfsense:/var/tmp#  ls -l
total 126
-rw-r--r--  1 root  wheel  126976 Mar  6 22:30 lcdd.tar
drwxr-xr-x  2 root  wheel     512 Mar  6 22:28 vi.recover
pfsense:/var/tmp#  tar -xvf lcdd.tar
x lcdd
x lcdd/drivers
x lcdd/lcdd
x lcdd/LCDd.conf
x lcdd/lcdd.sh
x lcdd/lcdproc
x lcdd/drivers/curses.so
x lcdd/drivers/sdeclcd.so
x install-embed.lcdd.sh
pfsense:/var/tmp#  chmod 700 install-embed.lcdd.sh
pfsense:/var/tmp#  ./install-embed.lcdd.sh
pfsense:/var/tmp#  mount
/dev/ufs/pfSense on / (ufs, local, read-only)
devfs on /dev (devfs, local)
/dev/md0 on /tmp (ufs, local)
/dev/md1 on /var (ufs, local)
/dev/ufs/pfSenseCfg on /cf (ufs, local, read-only)
devfs on /var/dhcpd/dev (devfs, local)
pfsense:/var/tmp#


Now you can reboot or just 'cd' over to the run-scripts directory and start it up so you can keep that stellar 'up-time' figure

Code: [Select]
pfsense:/var/tmp#  cd /usr/local/etc/rc.d
pfsense:/usr/local/etc/rc.d#  ls
lcdd.sh lighttpd
pfsense:/usr/local/etc/rc.d#  ls -la
total 5
drwxr-xr-x  2 root  wheel   512 Mar  6 22:31 .
drwxr-xr-x  4 root  wheel   512 Feb 24 17:37 ..
-r-xr-xr-x  1 root  wheel   174 Mar  6 22:31 lcdd.sh
-r-xr-xr-x  1 root  wheel  1184 Sep 11 13:00 lighttpd
pfsense:/usr/local/etc/rc.d#  ls
lcdd.sh lighttpd
pfsense:/usr/local/etc/rc.d#  ./lcdd.sh
pfsense:/usr/local/etc/rc.d# 

The driver currently does not have support for vertical filled histograms - its only a 2x20 LCD so I wrote the horizontal fill functions - I need to finish that but I really didn't need it so I pushed it to the back burner for now.

http://files.pfsense.org/misc/lcdd.tar.gz

(Can this file be put on one of the pfSense servers?) -- Thanks!  I've updated my url



MMmmm....

Still can't seem to get this syntax to work - it keeps saying my drive is mounted and I can't seem to write the commands...
install.embed.lcdd.sh
Best Regards;
H.

Offline hmeister

  • Jr. Member
  • **
  • Posts: 88
  • Karma: +0/-0
    • View Profile
    • Nettech
Re: Firebox LCD Driver for LCDProc
« Reply #123 on: April 24, 2011, 09:25:54 pm »
at first the bootloader, then this menu. After booting "booting complete", but not the generelly menu

thx for the idea, i will test this tomorrow.

the lcdriver package "lcdproc" is not needed? only the lcdd.tar.gz?
Your getting the "Booting Complete" without the additional pfsense console setup menu system.
I have seen this happen on some loads of 1.2.3. & 2 and cannot figure out why.
I rebuilt my drive and now it works... Rev2 will do this and not give you the final menu also...
What version are you running?

H.
Best Regards;
H.

Offline stephenw10

  • Hero Member
  • *****
  • Posts: 8175
  • Karma: +8/-0
    • View Profile
Re: Firebox LCD Driver for LCDProc
« Reply #124 on: April 25, 2011, 05:44:29 am »
MMmmm....

Still can't seem to get this syntax to work - it keeps saying my drive is mounted and I can't seem to write the commands...
install.embed.lcdd.sh

That post you quoted is over three years old! It's the first version of the driver built against a much older version of pfSense. It won't work for 2.0 at all.

The most recent version complete with an install script that works for 1.2.3 or 2.0 and many other improvements is here.

What version are you installing on? There is a good chance that the install script from the first version will have left your file system incorrectly mounted.

Steve
« Last Edit: April 25, 2011, 05:46:41 am by stephenw10 »

Offline hmeister

  • Jr. Member
  • **
  • Posts: 88
  • Karma: +0/-0
    • View Profile
    • Nettech
Re: Firebox LCD Driver for LCDProc
« Reply #125 on: April 25, 2011, 06:13:07 am »
Ok...

I will look at the other thread... just trying to figure out where to start and Yes- it messed with the setup and I started over...!
I tried the upgrade and that did not work either going from 1.2.3. to 2 x386.
That thread shows RC2. I am running 1.2.3...
I am running the embedded 1.2.3 on hard drive and that is something else I am trying to figure out - how and what file to use for upgrading...
The last attempt just cycles the boot process over and over... I was able to upgrade using the GUI.
Thx for the pointer and I will read some more...
H.
Best Regards;
H.

Offline stephenw10

  • Hero Member
  • *****
  • Posts: 8175
  • Karma: +8/-0
    • View Profile
Re: Firebox LCD Driver for LCDProc
« Reply #126 on: April 25, 2011, 07:39:19 am »
Hmmm,
The file I linked to in that post, lcdd4.tar, is intended for embedded systems. I'm not sure what it would do on a full install.
The embedded nanobsd install has the file system mounted read only to prevent excessive writes to flash media. The script re-mounts the filesystem RW, install the LCD driver and daemon and then re-mounts it read only. Obviously you do not want a full HD install mounted RO. However it uses the included functionality on pfSense to do the re-mounting, /etc/rc.conf_mount_rw and /etc/rc.conf_mount_ro. If those files are not included in a full install then it will probably work just fine. Or it may just throw up errors!  ::)
Try it and see if it's a fresh install with nothing to loose.

Steve

Offline erisan500

  • Jr. Member
  • **
  • Posts: 29
  • Karma: +0/-0
    • View Profile
Re: Firebox LCD Driver for LCDProc
« Reply #127 on: April 25, 2011, 08:15:22 am »
stephenw10,

lcdd4.tar works perfectly on 2.0 RC1 full install (uniproc kernel) as I have this installed on my firebox core xxl.

Greetings,
Eric

Offline stephenw10

  • Hero Member
  • *****
  • Posts: 8175
  • Karma: +8/-0
    • View Profile
Re: Firebox LCD Driver for LCDProc
« Reply #128 on: April 25, 2011, 08:23:19 am »
Great, that's good to know.
Can you remember if it gave any errors?

Steve

Offline erisan500

  • Jr. Member
  • **
  • Posts: 29
  • Karma: +0/-0
    • View Profile
Re: Firebox LCD Driver for LCDProc
« Reply #129 on: April 25, 2011, 08:24:33 am »
No errors at all, just run the install script and poef...enjoy your lcd display

Offline hmeister

  • Jr. Member
  • **
  • Posts: 88
  • Karma: +0/-0
    • View Profile
    • Nettech
Re: Firebox LCD Driver for LCDProc
« Reply #130 on: April 25, 2011, 11:32:33 am »
erisan - are you running 2.0 on CF or 1.2.3?
I am running 1.2.3 on a hard drive but am thinking to try and use the CF.
Thx....
Best Regards;
H.

Offline erisan500

  • Jr. Member
  • **
  • Posts: 29
  • Karma: +0/-0
    • View Profile
Re: Firebox LCD Driver for LCDProc
« Reply #131 on: April 25, 2011, 02:35:06 pm »
I'm running 2.0 on a HD

Offline hmeister

  • Jr. Member
  • **
  • Posts: 88
  • Karma: +0/-0
    • View Profile
    • Nettech
Re: Firebox LCD Driver for LCDProc
« Reply #132 on: April 26, 2011, 11:59:16 am »
Ok Erisan and Steve - I will try the script tonight on the 1.2.3 embedded build on my HD install.
Thanks for the help... and thank-you for your script...
Will update you later tomorrow -
Regards;
H.
Best Regards;
H.

Offline phr0zen

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Firebox LCD Driver for LCDProc
« Reply #133 on: April 27, 2011, 10:32:31 am »
I am having an issue installing the lcdd4.tar.  (firebox x700, 1.2.3 embeded installed via live cd, onto HD)

Steps:
1. uploaded the lcdd4.tar via web interface
2. opened console via serial (putty)
3. tar -xvf lcdd4.tar
4. ./install-embed2.lcdd.sh

I get this:

ln /lib/libkvm.so.4:  File Exists

I try to run it anyway with:
/usr/local/etc/rc.d/lcdd.sh

I get:
/libexec/ld-elf.so.1: Shared object "libkvm.so.3" not found, required by "lcdproc"

Can anyone help me?
(btw, this was a fresh install, only thing i did after interface setup was try to install this lccd4.tar)

Thanks!

EDIT:

Ok... so I think I figured it out.  Got it working at least.
I had to edit the install-embed.lcdd.sh. It looked like it was creating the wrong symlinks for 1.2.3 (gathered from other posts).  Here is what I edited it to:
Code: [Select]
#!/bin/csh
/etc/rc.conf_mount_rw
cp -R lcdd /usr/local/share/
cp /usr/local/share/lcdd/lcdd.sh /usr/local/etc/rc.d/
chown -R root:wheel /usr/local/share/lcdd
chmod -R ugo=rX /usr/local/share/lcdd
chown root:wheel /usr/local/etc/rc.d/lcdd.sh
chmod ugo=rx /usr/local/etc/rc.d/lcdd.sh
ln -s /lib/libc.so.7 /lib/libc.so.6
ln -s /lib/libkvm.so.4 /lib/libkvm.so.3
/etc/rc.conf_mount_ro

« Last Edit: April 27, 2011, 01:04:20 pm by phr0zen »

Offline stephenw10

  • Hero Member
  • *****
  • Posts: 8175
  • Karma: +8/-0
    • View Profile
Re: Firebox LCD Driver for LCDProc
« Reply #134 on: April 27, 2011, 01:08:23 pm »
Yes, my fault! Sorry  :-[

libkvm.so.5 is only in 2.0.

I'm late for a dinner party, I'll edit something later!

Steve