Skip to content

Installation ​

CocktailPi is tested on the Raspberry Pi 3, 4 and 5 with Raspberry Pi OS Lite (64-bit). If you want to use a local touchscreen, a Raspberry Pi 4 or 5 is recommended for performance.

WARNING

CocktailPi requires a Raspberry Pi. Other boards like NanoPi or BananaPi are not supported.

1. Install the operating system ​

  1. Download the official Raspberry Pi Imager.
  2. Select Choose OS → Raspberry Pi OS (other) → Raspberry Pi OS Lite (64-bit).
  3. Open the settings (gear icon) and
    • set a hostname,
    • enable SSH,
    • create a user named pi – the installer expects this user name.
  4. Write the image to the SD card, put it into the Pi, connect it to your network and boot it.

2. Run the installer ​

Connect to the Pi via SSH (e.g. ssh pi@<hostname> or PuTTY on Windows) and become root:

bash
sudo -i

Then download and start the installer directly from GitHub:

bash
wget https://raw.githubusercontent.com/alex9849/CocktailPi/refs/heads/master/script/installer/installer.sh -O cocktailpi-installer.sh && chmod +x cocktailpi-installer.sh && ./cocktailpi-installer.sh

The installer asks for

  1. your language (German / English) and
  2. what to install:
    • CocktailPi – only the server and web UI
    • CocktailPi + Touchscreen UI – additionally sets up a kiosk browser that starts the touchscreen UI on boot

It updates the system, installs Java and all other dependencies, downloads the latest release into /root/cocktailpi and registers CocktailPi as the systemd service cocktailpi, which starts automatically on boot.

Useful commands (as root):

bash
systemctl status cocktailpi     # is it running?
systemctl restart cocktailpi    # restart CocktailPi
tail -f /var/log/cocktailpi.log # follow the log

TIP

Depending on your Pi it can take a moment after boot until the web UI is reachable.

3. Open the UI ​

After the installation the web UI is available on port 80 of your Pi, e.g. http://<hostname>/. If you chose the touchscreen UI, it starts automatically.

Default login:

UserPassword
admin123456

TIP

Change the default password right after the first login.

Continue with First steps.

Updating ​

Re-run the installer as root and choose the same option again – it stops the running instance and replaces it with the latest release. Your data is kept.

Resize the touchscreen UI ​

If the touchscreen UI is too small or too large, SSH into the Pi again, become root (sudo -i) and run the installer command from above. Choose your language and then Configuration: Change size of Touchscreen UI. The UI restarts automatically.

Try it without hardware (Docker) ​

For testing on a normal computer there is a Docker image that runs CocktailPi in demo mode (no GPIO access, pumps are simulated):

bash
docker run -p 8080:8080 alex9849/cocktailpi

Then open http://localhost:8080 in your browser.

Try the online demo

Log in with the credentials below. The demo is shared with other visitors and is reset from time to time, so your changes may be lost.

User
Admin
Password
123456