How do you know your install is truly better? Run these tests.
Instead of running it manually, create a hardened service file.
sudo nano /etc/systemd/system/astra.service
Paste this optimized configuration:
[Unit] Description=Astra Cesbo Streamer (Optimized) After=network.target StartLimitIntervalSec=500 StartLimitBurst=5[Service] Type=simple User=astra Group=astra ExecStart=/usr/local/bin/astra -c /etc/astra/astra.conf -p 8000 Restart=on-failure RestartSec=10 LimitNOFILE=65536 LimitCORE=infinity TasksMax=infinity MemoryMax=4G CPUQuota=300% Nice=-10 IOSchedulingClass=realtime
[Service] ProtectSystem=full PrivateTmp=yes NoNewPrivileges=yes astra cesbo install better
[Install] WantedBy=multi-user.target
What makes this "better"?
Create the dedicated user:
sudo useradd -r -s /bin/false astra
sudo mkdir -p /etc/astra
sudo chown -R astra:astra /etc/astra
Don't log to syslog. Write to a RAM disk to save SSD wear:
mkdir /dev/shm/astra_logs
astra --log-dir /dev/shm/astra_logs --log-level 3
Use logrotate to flush RAM to disk hourly.
Cesbo’s web panel simplifies configuration:
sudo apt install php8.1-fpm php8.1-cli php8.1-curl php8.1-json nginx -y
Download Cesbo Panel:
cd /var/www
sudo wget https://cesbo.com/download/panel/panel-latest.tar.gz
sudo tar -xzf panel-latest.tar.gz
sudo mv panel cesbo-panel
sudo chown -R www-data:www-data cesbo-panel
Configure Nginx (example site):
server
listen 8080;
server_name _;
root /var/www/cesbo-panel;
index index.php;
location ~ \.php$
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
Restart services:
sudo systemctl restart nginx php8.1-fpm
Access panel at http://YOUR_IP:8080 (default login: admin / admin).