-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
0549: Running Shinobi CCTV in Docker on Ubuntu Server
- Loading branch information
Showing
1 changed file
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<title>Running Shinobi CCTV in Docker on Ubuntu Server</title> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
<meta charset="UTF-8"> | ||
<meta name="keywords" content="Browser Based,Docker Made Easy,Home Lab,Home Lab Ideas,Install Guide,Self-Hosted,Web Based,Web Based Tools,CCTV,FOSS,Linux,Open Source,Shinobi,Shinobi CCTV,Docker,Docker Container,Docker How To,Docker Made Simple,Docker Simplified,Docker Tutorial,Homelab,Ubuntu,Debian,How To,Tutorial,i12bretro"> | ||
<meta name="author" content="i12bretro"> | ||
<meta name="description" content="Running Shinobi CCTV in Docker on Ubuntu Server"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta name="revised" content="04/20/2024 07:14:47 PM" /> | ||
<link rel="icon" type="image/x-icon" href="includes/favicon.ico"> | ||
<script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script> | ||
<script type="text/javascript" src="includes/js/steps.js"></script> | ||
<link href="css/steps.css" rel="stylesheet" type="text/css" /> | ||
</head> | ||
<body> | ||
<div id="gridContainer"> | ||
<div class="topMargin"></div> | ||
<div id="listName" class="topMargin"> | ||
<h1>Running Shinobi CCTV in Docker on Ubuntu Server</h1> | ||
</div> | ||
<div></div> | ||
<div id="content"> | ||
<h2>What is Shinobi?</h2> | ||
|
||
<blockquote><em>Shinobi is Open Source, written in Node.js, and real easy to use. It is the future of CCTV and NVR for developers and end-users alike. It is catered to by professionals and most importantly by the one who created it. -<a href="https://shinobi.video/" target="_blank">https://shinobi.video/</a></em></blockquote> | ||
|
||
<h2>Installing Docker</h2> | ||
|
||
<ol> | ||
<li>Log into the Linux based device</li> | ||
<li>Run the following commands in the terminal | ||
<div class="codeBlock"># install prerequisites<br /> | ||
sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y<br /> | ||
# add docker gpg key<br /> | ||
curl -fsSL https://download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release)/gpg | sudo apt-key add -<br /> | ||
# add docker software repository<br /> | ||
sudo add-apt-repository "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release) $(lsb_release -cs) stable"<br /> | ||
# install docker<br /> | ||
sudo apt install docker-ce docker-compose containerd.io -y<br /> | ||
# enable and start docker service<br /> | ||
sudo systemctl enable docker && sudo systemctl start docker<br /> | ||
# add the current user to the docker group<br /> | ||
sudo usermod -aG docker $USER<br /> | ||
# reauthenticate for the new group membership to take effect<br /> | ||
su - $USER</div> | ||
</li> | ||
</ol> | ||
|
||
<h2>Running the Shinobi Container</h2> | ||
|
||
<ol> | ||
<li>Now that Docker is installed, run the following commands to setup the Shinobi Docker container and run it | ||
<div class="codeBlock"># create working directories<br /> | ||
sudo mkdir /home/$USER/docker/shinobi/config -p && sudo mkdir /home/$USER/docker/shinobi/data && sudo mkdir /home/$USER/docker/shinobi/videos<br /> | ||
# run the Run Shinobi docker container<br /> | ||
docker run -d -p 8080:8080 -v /etc/localtime:/etc/localtime:ro -v /etc/timezone:/etc/timezone:ro -v /home/$USER/docker/shinobi/config:/config -v /home/$USER/docker/shinobi/data:/var/lib/mysql -v /home/$USER/docker/shinobi/videos:/opt/shinobi/videos -v /dev/shm/shinobiDockerTemp:/dev/shm/streams migoller/shinobidocker</div> | ||
</li> | ||
<li>Open a web browser and navigate to http://DNSorIP:8080/super</li> | ||
<li>Login with the username admin@shinobi.video and password admin</li> | ||
<li>Select Preferences from the top navigation menu</li> | ||
<li>Change the admin user email address and enter and confirm a new password</li> | ||
<li>Click Save at the top of the page</li> | ||
<li>Welcome to Shinobi</li> | ||
</ol> | ||
|
||
<p>Documentation: <a href="https://registry.hub.docker.com/r/migoller/shinobidocker/" target="_blank">https://registry.hub.docker.com/r/migoller/shinobidocker/</a></p> </div> | ||
</div> | ||
</body> | ||
</html> | ||
|