Installing CAM-AI server on a Raspberry Pi or Debian PC

This is an installation tutorial for the CAM-AI Server on a Raspberry Pi 4 (Minimum 4 GB of internal RAM) with Raspberry Pi OS 12 (bookworm) 64bit. For Raspi we recommend installing CAM-AI on a freshly installed Raspi-OS. You can prepare your Raspi (OS installation etc.) following the instructions in this separate tutorial.

Alternatively you can install the CAM-AI server on a PC with Debian OS Version 12. You can prepare your PC (OS installation etc.) following the instructions in this separate tutorial.

Establishing an SSH connection to your Raspi (skip if using Debian)

Open a terminal on your remote computer and enter this:

If you get this warning table, this is probably because you have done other tasks with the same server in the past. Fix it with entering:

ssh-keygen -R "cam-ai-raspi"

…and then try again. If this does not work, try to replace “cam-ai-raspi” with your CAM-AI servers IP address.

If you are using an Apple computer (MacBook etc.) as a Terminal to do this, this might not work. In this case, go to your home directory, change to subdirectory /.ssh (after making hidden directories visible), and edit the file “known host”. Delete all lines related to your CAM-AI server.

If you are asked about the authenticity of your fingerprint (see example below), answer with yes.

Continue here to proceed on Raspi and/or Debian: First you give the cam_ai user the privilege to launch server shutdown and reboot without a password. This is needed to end or update the program from the web interface:

You add the following context to the empty file. When done, save and leave:

Next is getting the CAM-AI installer program and launching it:

This installation program will ask you a couple of questions first:

Here are the answers:

  • Localhost: Hit “Enter” for no if you do not plan to access your server from a browser on the same machine.
  • Internal IP: Enter “cam-ai-raspi”, if this is your server’s name. If not, enter the right server name or the server’s IP address.
  • Root password: This is the password for the root access to the database. Select one and write it down, in case you need it later.
  • CAM-AI password: This is the password for the user’s access to the database. Select one and write it down, in case you need it later.

For Raspi systems type:

For debian systems type

Log in

From another PC in the same network, you can now log in by giving your browser:

If your server has a network name different from “cam-ai-raspi” (“cam-ai-debian for example), use that or the IP address. The initial login information is user=admin password=cam-ai-123.

Done.

What’s next?

  • A CAM-AI server installed on with the standard setup needs a connection to another server that is capable of doing the AI work. Get an account from our fast server in the cloud. Here is how. Write down your new username and password. You will need it later.
  • To connect your camera to your server and your Server to the AI server, you need to do a basic server setup.
  • Optional: If you want to use this server for daily use, it makes sense to add the autostart feature and make it autonomous from your PC’s terminal. Here is how.
  • Optional: If you want to access your server from outside your local area network, you need to configure HTTPS. Here is how.

Discuss this topic in our Forum

2 thoughts on “Installing CAM-AI server on a Raspberry Pi or Debian PC”

  1. Pingback: Making a Raspi server autostart - CAM-AI: Articial intelligence for cameras

  2. Pingback: Enabling HTTPS on your Raspi server - CAM-AI: Articial intelligence for cameras

Comments are closed.

Scroll to Top