Installing ShinobiCE on nixOS Latest
ShinobiCE is an open-source video surveillance software designed for linux servers. It provides a web interface for managing CCTV cameras and their recordings.
In this tutorial, we will guide you on how to install ShinobiCE on nixOS Latest.
Prerequisites
- nixOS Latest installed
- Command line interface (CLI) access to the server
- Basic understanding of linux commands
Steps
Update the nixOS system by running the following command on the terminal:
sudo nixos-rebuild switch --upgradeInstall git, which is a version control system, by running the following command:
sudo nix-env -i gitClone the ShinobiCE repository by running the following command:
git clone https://gitlab.com/Shinobi-Systems/ShinobiCE.gitNavigate to the ShinobiCE directory by running the following command:
cd ShinobiCEInstall the required dependencies for ShinobiCE by running the following command:
sudo nix-shell -p make nodejs yarn ffmpeg sqlite postgresqlNote: If you want to use PostgreSQL, please install the database using the following command:
sudo nix-env -i postgresqlCreate a config file by copying the example file provided in the ShinobiCE directory:
cp conf.sample.json conf.jsonEdit the conf.json file using a text editor to add the configurations for your cameras and database.
nano conf.jsonStart the ShinobiCE server by running the following command:
yarn startThis will start the server on the default port 8080.
Access ShinobiCE by pointing your web browser to the server's IP address and port:
https://your_server_ip:8080/You will be prompted to create an account and log in.
Congratulations! You have successfully installed ShinobiCE on nixOS Latest. You can now add your cameras and start monitoring.