Categories
Knowledge Support Support exacqVision Server Products

Linux – Delete Video from Root Volume

Exacq Technologies does not recommend using the root partition for video recording as the OS is installed on this partition.  Exacq labels the root partition as /mnt/edvr/0.  In the event that /mnt/edvr/0 has been enabled on the storage page,  resulting in video being recorded to the root partition and you now need to delete that video and prevent future recordings follow these instructions.

exacqVision files are stored on each drive enabled for recording in a directory structure beginning with YYYY (Year), see our KB: 393 exacqVision Video File Naming Format for additional details 

Knowing this we only need to concern ourselves with identifying the year folders which have been written to /mnt/edvr/0.  Once identified then they, along with their contents, including sub-directories can be easily removed. 

The basic steps are: 

  • Verify that future recording to /mnt/edvr/0 has been disabled
  • Open terminal and change to the mnt/edvr/0 directory 
  • Determine which Year folders have been created on /mnt/edvr/0
  • Delete the contents, of this year folders, including sub-directories
  • Empty the contents of trash
  • Close the Terminal Window 

In this screenshot mnt/edvr/0 has been enabled resulting in video being recorded to the root partition.  This is not recommended and should be unchecked to prevent recording to the root partition in the future.

Example of deleting video from the root partition (/mnt/edvr/0) and emptying the trash from the terminal

Change directory to /mnt/edvr/0 

$ cd /mnt/edvr/0

List contents of /mnt/edvr/0

$ ls
2021  psfpi

Remove year folder, in this case 2021 and it’s contents 

$ sudo rm -r 2021

Note if prompted enter in the OS root password and press enter.  There will be no visual feedback while you type. 

Empty Trash 

$ sudo rm -rf ~/.local/share/Trash/*

Exit Terminal 

$ exit
Categories
Knowledge Support Support Categories Products exacqVision Hardware

Update Ubuntu Linux Software Using Command Line

Installing updates via Terminal

The commands are as follows:

apt update: Update is used to resynchronize the package index files from their sources on Ubuntu Linux via the Internet.
apt upgrade: Upgrade is used to install the newest versions of all packages currently installed on the Ubuntu system.

To update software list for Ubuntu

First, open the Terminal application and type following two commands (Application > Accessories > Terminal or CTL-ALT-T).

Type the following apt command:
sudo apt update

Install updates and patches on Ubuntu

sudo apt upgrade

ExacqVisions Official stance on Operating System Updates Https://support.exacq.com/#/knowledge-base/article/5144

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>