LCDncid - LCD Network Caller ID Install

LCDnid

Copyright © 2014-2023
Author: John L Chmielewski

Last edited: Jun 7, 2018


All examples below assume LCDncid version 0.30.

Index

LCDncid REQUIREMENTS

INSTALLING FROM SOURCE

INSTALLING FROM AN OS INSTALL PACKAGE

CONFIGURE

TEST

LCDncid REQUIREMENTS

INSTALLING FROM SOURCE

REQUIREMENTS

LAYOUT

Fedora

Redhat

Debian, Ubuntu or Raspberry Pi (RPi)

FreeBSD

OSX

BUILD

          cd
          wget https://sourceforge.net/projects/ncid/files/lcdncid/0.30/lcdncid-0.30-src.tar.gz
          tar xzf lcdncid-0.30-src.tar.gz
          cd lcdncid
          make
          make local
          make package
          make fedora
          make redhat
          make ubuntu
          make mac

INSTALL

          sudo make install
          sudo make install prefix=/usr prefix2=

or:

          sudo make install-package
          sudo make fedora-install
          sudo make redhat-install
          sudo make ubuntu-install
          sudo make mac-install

INSTALLING FROM AN OS INSTALL PACKAGE

Fedora and Fedora based

          wget https://sourceforge.net/projects/ncid/files/lcdncid/0.30/lcdncid-0.30-1.fc28.noarch.rpm
  • Using the file viewer:
  • Open the file viewer to view the NCID RPM packages.
  • Select the RPM packages.
  • Right click selections and select “Open with Package installer.”
  • Using dnf:
                        sudo dnf install lcdncid-*.rpm
          sudo cp -a /etc/lcdproc/LCDd.conf.sample /etc/lcdproc/LCDd.conf
  • Use the systemctl command to start the daemons. The service commands are: start, stop, restart, reload, reload-or-restart and status.

Here are some examples:

  • start the LCDncid client:
                          sudo systemctl start lcdncid.service
  • stop the LCDncid client:
                          sudo systemctl stop lcdncid.service
  • get the status of LCDncid:
                          sudo systemctl status lcdncid.service
  • restart the LCDncid client:
                          sudo systemctl restart lcdncid.service
  • autostart lcdncid at boot:
                          sudo systemctl enable lcdncid.service
  • remove LCDncid from boot startup:
                          sudo systemctl disable lcdncid.service
  • Review the man page (man systemctl).
  • Use the service command to start LCDncid as a service. The service commands are: start, stop, restart, reload and status.

Here are some examples:

  • start the LCDncid client:
                          sudo service lcdncid start
  • stop the LCDncid client:
                          sudo service lcdncid stop
  • get the status of LCDncid:
                          sudo service lcdncid status
  • Review the man page (man service).
  • Use chkconfig to enable/disable the service to start at boot.

Here are some examples:

  • autostart lcdncid at boot:
                          sudo chkconfig lcdncid on
  • remove LCDncid from starting at boot:
                          sudo chkconfig lcdncid off
  • Review the manpage (man chkconfig).

Ubuntu, Raspbian, Debian and Debian based

          wget https://sourceforge.net/projects/ncid/fileslcdncid/0.30/lcdncid_0.30-1_all.deb
  • Using sudo dpkg -i <package> will not install dependent packages.
  • Using sudo apt-get install <package> will not install local packages.
  • Install gdebi if needed:
                        sudo apt-get install gdebi
  • Install the LCDncid client:
                        sudo gdebi lcdncid-0.30-1_all.deb
  • If needed use the the menu item “Add/Remove…” to install the GDebi Package Installer.
  • Using the file viewer:
    • Open the file viewer to view the LCDncid DEB package.
    • Select the DEB package.
    • Double click selections or right click selections and select “Open with GDebi Package installer.”
  • Install the LCDncid client:
                        sudo dpkg -i gdebi lcdncid-0.30-1_all.deb
  • Force install of all dependencies:
                        sudo apt-get install -f
          sudo cp -a /usr/local/etc/lcdproc/LCDd.conf.sample /usr/local/etc/lcdproc/LCDd.conf
  • Use the invoke-rc.d command to start any of the daemons. The invoke-rc.d actions are: start, stop, restart, reload and status. The client can also be started using the output module name instead of ncid. All output modules can be run at the same time.

Here are some examples:

  • start the LCDncid client:
                          sudo invoke-rc.d lcdncid start
  • stop the LCDncid client:
                          sudo invoke-rc.d lcdncid stop
  • restart the LCDncid client:
                          sudo invoke-rc.d lcdncid restart
  • status of the LCDncid client:
                          sudo invoke-rc.d lcdncid status
  • Review the man page (man invoke-rc.d).
  • Use the update-rc.d command to install/remove the service at boot.

Here are some examples:

  • enable LCDncid to start at boot:
                          sudo update-rc.d lcdncid defaults
  • remove LCDncid from starting at boot:
                          sudo update-rc.d -f lcdncid remove
  • Review the man page (man update-rc.d).
  • Use apt-get to remove the lcdncid package:
  • Normal removal without removing configuration files and dependencies:
                          sudo apt-get remove lcdncid
  • Complete removal including dependencies:
                          sudo apt-get --purge autoremove lcdncid
  • Review the man page (man apt-get).

FreeBSD

          sudo pkg install lcdproc
          sudo cp -a /usr/local/etc/lcdproc/LCDd.conf.sample /usr/local/etc/lcdproc/LCDd.conf
                 wget https://sourceforge.net/projects/ncid/files/lcdncid/0.30/lcdncid-0.30-freebsd.tgz
          cp -a /usr/local/etc/lcdncid.conf .
          sudo tar -xzvf lcdncid-0.30-freebsd.tgz -C /

Here are some examples:

          sudo /usr/local/etc/rc.d/lcdncid start
          sudo /usr/local/etc/rc.d/lcdncid restart
          sudo /usr/local/etc/rc.d/lcdncid stop
          sudo /usr/local/etc/rc.d/lcdncid status

Here is the LCDd LCDncid rc scripts and its enable lines:

          /usr/local/etc/rc.d/     /etc/rc.conf.local
          --------------------     ------------------
          LCDd                     LCDd_enable="YES"
          lcdncid                  lcdncid_enable="YES"

Mac

                 sudo cp -a /usr/local/etc/lcdproc/LCDd.conf.sample /usr/local/etc/lcdproc/LCDd.conf
                 wget https://sourceforge.net/projects/ncid/files/lcdncid/0.30/lcdncid-0.30-mac-osx.tgz
          cp -a /usr/local/etc/lcdncid.conf .
          sudo tar -xzvf lcdncid-0.30-mac-osx.tgz -C /

Here are some examples:

  • Start the LCDncid server and enable it at boot:
                        sudo launchctl load -w /Library/LaunchDaemons/net.sourceforge.lcdncid.plist
  • Stop the LCDncid server and disable it at boot:
                        sudo launchctl unload -w /Library/LaunchDaemons/net.sourceforge.lcdncid.plist

CONFIGURE

TEST

          ncidd -D
          LCDd
          lcdncid -D

LCDnid Start

or a message saying it could not attach to a server. If you have problems, you can try verbose levels 1 to 4. For example:

          lcdncid -Dv3

View the man page for more information:

          lcdncid --man