Categories
Knowledge Support Support exacqVision Server Categories Products

Common Linux CLI Commands (Terminal)

Download the latest release

Use the ‘wget‘ command followed by the URL for each exacqVision application:

Server
https://www.exacq.com/release/exacqVisionServerRC.deb

Client
https://www.exacq.com/release/exacqVisionClientRC.deb

Web Service
https://www.exacq.com/release/exacqVisionWebServiceRC.deb

<br>

Install the latest release

Use the ‘dpkg’ package manager to install exacqVision packages after downloading using the ‘wget‘ commands above.

Server
dpkg -i exacqVisionServer.deb

Client
dpkg -i exacqVisionClient.deb

Web Service
dpkg -i exacqVisionWebService.deb

<br>

Check available hard drive space

Use the ‘disk free’ command. Disk partitions used by exacqVision are usually labeled with their mount points as /mnt/edvr/1, 2, 3, and so on.

df -h

<br>

Check if exacqVision Server is running

Use the ‘process status’ command to list running processes followed by the ‘grep’ command to filter results to ‘core’ which is the name of the exacqVision Server process.

ps auxw | grep core

<br>

Stop the exacqVision Server service

Use either of the following commands:

  • sudo service edvrserver stop
  • sudo /etc/init.d/edvrserver stop

<br>

Start the exacqVision Server service:

Use either of the following commands:

  • sudo service edvrserver start
  • sudo /etc/init.d/edvrserver start

<br>

Stop the exacqVision Web Service

sudo /usr/local/exacq/webservice/service.sh stop

<br>

Start the exacqVision Web service

sudo /usr/local/exacq/webservice/service.sh start

<br>

List server log files

Log files are titled by date.

ls /usr/local/exacq/server/logs/

<br>

View a log file

Replace *filename* with the name of the log file you wish to open.

sudo less /usr/local/exacq/server/logs/*filename*

<br>

Compress a server log file to send to support

Replace *filename* with the name of the log file you wish to compress.

tar -cvjf log.tar.bz2 /usr/local/exacq/server/logs/*logfilename*

<br>

Compress all server log files to send to support

tar -cvjf logs.tar.bz2 /usr/local/exacq/server/logs

<br>

Open log file to show new entries as they are written

Replace *filename* with the name of the log file for the current date.

tail -n 25 -f /usr/local/exacq/server/logs/*filename*

Stop the update and return to a command prompt by pressing CTRL+C.

Note: The number after “-n” allows the number of lines displayed to be adjusted. (25 lines in this case)

<br>

Check for a mounted data drive

mount

<br>

Edit the Web Service config file

The command used will depend on the version of the web service used on the NVR.

9.6+          sudo nano /etc/webservice/wfe.json

9.0 – 9.4   sudo nano /etc/webservice/webservice.conf

1.x – 8.8   sudo nano /etc/webservice.conf

Note: Press CTRL+X to exit. This will prompt to save changes.

<br>

List PCI Devices in System (Capture Boards, Sound Card, Video Card)

lspci

<br>

List Motherboard BIOS information

sudo dmidecode

<br>

Show routing table

route -n

On newer OS’s if route is not installed by default, you may use ip.

ip route list

<br>

Add a static route

Setting static routes may be necessary when you have two or more networks that your computer needs to send traffic to. Most devices only connect to one network and all network traffic is routed to the default gateway, which is a router that chooses where to forward traffic to next. When you add more static routes, it adds more gateways. This will tell the system to send data you know is destined for a specific network to a chosen router instead of the default.

Replace NETWORK with the target network IP. Replace NETMASK and GATEWAY with the respective network mask and gateway IP address.

sudo route add -net NETWORK netmask NETMASK gw GATEWAY

Example: sudo route add -net 192.168.5.0 netmask 255.255.0.0 gw 192.168.5.1

On newer OS’s if route is not installed by default, you may use ip. Replace CIDR with the CIDR notation for the netmask and INTERFACE with the name of the network interface.

sudo ip route add NETWORK/CIDR dev INTERFACE

Example: sudo ip route add 192.168.5.0/16 dev eth0

<br>

Local Commands

Change Screen Resolution for the User profile

Press CTRL+ALT+F3.

Log in as user and run the following 2 commands:

  1. export DISPLAY=:0.0
  2. gnome-display-properties

Press CTRL+ALT+F7.

<br>