0549.html 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Running Shinobi CCTV in Docker on Ubuntu Server</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <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">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Running Shinobi CCTV in Docker on Ubuntu Server">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="revised" content="04/20/2024 07:14:47 PM" />
  12. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  13. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  14. <script type="text/javascript" src="includes/js/steps.js"></script>
  15. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="gridContainer">
  19. <div class="topMargin"></div>
  20. <div id="listName" class="topMargin">
  21. <h1>Running Shinobi CCTV in Docker on Ubuntu Server</h1>
  22. </div>
  23. <div></div>
  24. <div id="content">
  25. <h2>What is Shinobi?</h2>
  26. <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>
  27. <h2>Installing Docker</h2>
  28. <ol>
  29. <li>Log into the Linux based device</li>
  30. <li>Run the following commands in the terminal
  31. <div class="codeBlock"># install prerequisites<br />
  32. sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y<br />
  33. # add docker gpg key<br />
  34. curl -fsSL https://download.docker.com/linux/$(awk -F&#39;=&#39; &#39;/^ID=/{ print $NF }&#39; /etc/os-release)/gpg | sudo apt-key add -<br />
  35. # add docker software repository<br />
  36. sudo add-apt-repository &quot;deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/$(awk -F&#39;=&#39; &#39;/^ID=/{ print $NF }&#39; /etc/os-release) $(lsb_release -cs) stable&quot;<br />
  37. # install docker<br />
  38. sudo apt install docker-ce docker-compose containerd.io -y<br />
  39. # enable and start docker service<br />
  40. sudo systemctl enable docker &amp;&amp; sudo systemctl start docker<br />
  41. # add the current user to the docker group<br />
  42. sudo usermod -aG docker $USER<br />
  43. # reauthenticate for the new group membership to take effect<br />
  44. su - $USER</div>
  45. </li>
  46. </ol>
  47. <h2>Running the Shinobi Container</h2>
  48. <ol>
  49. <li>Now that Docker is installed, run the following commands to setup the Shinobi Docker container and run it
  50. <div class="codeBlock"># create working directories<br />
  51. sudo mkdir /home/$USER/docker/shinobi/config -p &amp;&amp; sudo mkdir /home/$USER/docker/shinobi/data &amp;&amp; sudo mkdir /home/$USER/docker/shinobi/videos<br />
  52. # run the Run Shinobi docker container<br />
  53. 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>
  54. </li>
  55. <li>Open a web browser and navigate to http://DNSorIP:8080/super</li>
  56. <li>Login with the username admin@shinobi.video and password admin</li>
  57. <li>Select Preferences from the top navigation menu</li>
  58. <li>Change the admin user email address and enter and confirm a new password</li>
  59. <li>Click Save at the top of the page</li>
  60. <li>Welcome to Shinobi</li>
  61. </ol>
  62. <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>
  63. </div>
  64. </body>
  65. </html>