This repository provides an automated setup script to install and configure ALTCHA Sentinel on Ubuntu 24.04 using Docker. The script includes system hardening, user creation, firewall configuration, and helper scripts to manage the Sentinel service.
- Creates a non-root
altchauser - Installs Docker and Docker Compose
- Configures UFW firewall and fail2ban
- Pulls and runs
ghcr.io/altcha-org/sentinelvia Docker Compose - Provides ready-to-use management scripts
- Enables automatic security updates and basic hardening
- Ubuntu 24.04 (fresh or minimal installation)
- You must run the script as root
Run the installer:
bash <(curl -s https://raw.githubusercontent.com/altcha-org/sentinel-install-scripts/main/install-ubuntu-24-04.sh)Or download and run:
curl -O https://raw.githubusercontent.com/altcha-org/sentinel-install-scripts/main/install-ubuntu-24-04.sh
chmod +x install-ubuntu-24-04.sh
sudo bash install-ubuntu-24-04.shThis will:
- Create a user
altchawith a temporary passwordaltcha123 - Install Docker and Docker Compose
- Set up ALTCHA Sentinel in
/home/altcha/altcha/ - Enable the firewall and basic security tools
Change the default password for the altcha user:
su - altcha
# Follow the prompt to change your password/home/altcha/altcha/
├── .env # ALTCHA configuration (optional)
├── docker-compose.yml # Docker Compose configuration
├── start.sh # Start Sentinel
├── stop.sh # Stop Sentinel
├── status.sh # Check container status and logs
├── update.sh # Pull latest Sentinel image and restart
└── logs.sh # View live logsRun these as the altcha user from /home/altcha/altcha:
./start.sh # Start ALTCHA Sentinel
./stop.sh # Stop ALTCHA Sentinel
./status.sh # Show status and recent logs
./update.sh # Pull and restart with latest version
./logs.sh # Tail logsOnce started, ALTCHA Sentinel is accessible at:
http://your-server-ip:8080
The installer configures the firewall (UFW) with the following rules:
- Allow SSH (port 22)
- Allow ALTCHA Sentinel (port 8080)
- Deny all other incoming connections
The script enables:
- UFW firewall
- Fail2ban for SSH protection
- Unattended security updates
- Docker daemon logging and live-restore settings
To update to a different version:
- Edit
docker-compose.yml:
image: ghcr.io/altcha-org/sentinel:<version>- Run:
./update.shMIT