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
- Download the official Raspberry Pi Imager.
- Select
Choose OS→Raspberry Pi OS (other)→Raspberry Pi OS Lite (64-bit). - Open the settings (gear icon) and
- set a hostname,
- enable SSH,
- create a user named
pi– the installer expects this user name.
- 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:
sudo -iThen download and start the installer directly from GitHub:
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.shThe installer asks for
- your language (German / English) and
- 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):
systemctl status cocktailpi # is it running?
systemctl restart cocktailpi # restart CocktailPi
tail -f /var/log/cocktailpi.log # follow the logTIP
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:
| User | Password |
|---|---|
admin | 123456 |
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):
docker run -p 8080:8080 alex9849/cocktailpiThen open http://localhost:8080 in your browser.