---
title: Server installation
slug: server-installation
description: Learn how to install Bluecherry on Linux using either the Docker or Package based method. Follow the recommended mysql-server settings for optimal storage. Get step-by-step guidance on setting up the Bluecherry server, including client installation and co
docTags: 
createdAt: 2023-09-05T14:12:34.608Z
---

## Docker (preferred)

:::BlockQuote
sudo bash -c "$(curl -s https\://raw\.githubusercontent.com/bluecherrydvr/bluecherry-docker/master/scripts/install.sh)"
:::

:::hint{type="info"}
This is the prefered method of installation as it can install on any Linux operating system that supports Docker

:::

## Package based (Select  Debian and Ubuntu systems only)

The second installation method is for Debian 9, Debian 10 and Debian 11 along with Ubuntu LTS releases. &#x20;

The installation script for this method is below:

:::BlockQuote
sudo bash -c "$(curl -s https\://dl.bluecherrydvr.com/scripts/install-unstable)"
:::

Video tutorial on how to install Bluecherry server using the package method above.

::embed[]{url="https://youtu.be/tcvlT-eGSkQ"}

## mysql-server setup



Bluecherry uses mysql for storage of configuration and events.  It is highly recommended that you follow the defaults during this setup and to remember the password you set for the mysql-server.  You will need this password after the mysql-server setup and during the actually installation of the Bluecherry server

At this point the bluecherry server will be installed. If you plan to install the client on the same system, then please follow the client installation guide.



![](https://archbee-doc-uploads.s3.amazonaws.com/zEZ5kdtTvuIPeqGV--8aG/0KpVQl_yvBhcEuzhL8lV-_image.png)





::Image[]{src="https://bluecherry-apps.readthedocs.io/en/latest/_images/term-mysql-setup.png" size="96" width="560" height="324" position="center" showCaption="false"}

The instructions below assume you have received the [download instructions](https://app.archbee.io/docs/42ZCbo9vNLpw12_7zSpq4/yCamBxOsz-Q-B6FTClaqP#w2-installing-bluecherry-from-the-bluecherry-repository)

You will now be asked to configure Bluecherry. You must hit Yes, or the installation process will fail.

Enter the database administrative password that you set previously for the ‘root’ user.

Enter the password that you want to create for the bluecherry database. This can be the same password that you provided for the root MySQL account, but we recommend keeping the password unique. You will be asked to enter this password twice to verify the password matched.

