English | Korean | Chinese | Japanese

Chapter 1. Installation

 

Install VMS on Ubuntu 20.04/22.04/24.04

1. Copy the `vms_linux_x.x.zip` file to your home directory and unzip it. All files will be extracted into the `vms/` subdirectory.

$ unzip vms_linux_x.x.zip
$ cd vms/
$ ls -lh

-rw-rw-r-- 1 vms_user vms_user 5,4K sept. 24 17:32 config.ini
-rwxr-xr-x 1 vms_user vms_user  591 sept. 25 15:49 install_dependencies.sh
drwxrwxr-x 2 vms_user vms_user 4,0K sept. 24 17:34 lib
drwxrwxr-x 2 vms_user vms_user 4,0K sept. 24 17:34 lib_gnu
-rwxr-xr-x 1 vms_user vms_user  652 oct.   2 20:03 register_startup.sh
-rwxr-xr-x 1 vms_user vms_user  373 oct.   2 20:04 unregister_startup.sh
-rwxrwxr-x 1 vms_user vms_user 2,7M oct.  12 18:52 vms
-rwxr-xr-x 1 vms_user vms_user 1,4K oct.   3 12:52 vms_start.sh
-rwxr-xr-x 1 vms_user vms_user  472 oct.   5 17:35 vms_stop.sh
-rwxrwxr-x 1 vms_user vms_user  18K oct.  12 18:52 vms_watchdog

 

2. Run `sudo ./install_dependencies.sh` to install the necessary files and create the required directories. A directory named `/_vms` will be created to store configuration and log files.

3. Prepare your storage drives and mount them to directories at the root level, using names such as `/_driveA`, `/_driveB`, etc. For permanent mounting, you will need to edit the `/etc/fstab` file.

· Ref) https://securitynetworkinglinux.wordpress.com/2021/01/24/how-to-format-a-hdd-storage-device-in-linux-and-mount-it/

4. Run `sudo ./register_startup.sh` to register VMS to start automatically upon system startup. To unregister the auto-startup later, run `sudo ./unregister_startup.sh`.

5. Run `sudo ./vms_start.sh` to start VMS immediately. To stop it, run `sudo ./vms_stop.sh`.

6. Set the system timezone according to your location:

$ timedatectl list-timezones
$ sudo timedatectl set-timezone [your_time_zone]

· Ref) https://linuxize.com/post/how-to-set-or-change-timezone-in-linux/

7. Download the `config-linux` tool to your Windows PC and install it. Add the address, port, and access ID/password of the Linux VMS PC. When the Linux VMS is running, a green light will appear next to the item. Click the item and select "Config." The configuration process is similar to that for Windows VMS; refer to the Windows VMS configuration guide for more details.

7.1. On the `Storage` tab, add pools to the pool list, then assign a drive to each pool item. Drives are labeled `A`, `B`, etc., based on how they were mounted (`/_driveA`, `/_driveB`, etc.).

7.2. On the `Device` tab, register IP cameras and assign each to a pool.

7.3. To have the VMS connect automatically on startup, enable the `Connect on startup` option in the `System` tab.

7.4. After configuration, click `Save` at the bottom left to store your settings on the Linux VMS server. Then, click `Restart VMS Server` to restart the service.

8. Run `./view_log.sh` to inspect the log files. To continuously monitor the current logs, select the log for the current date and press the `F` key to activate the data-waiting mode of the less command.