Package Manager
Repository Installation
sudo curl -fsSL https://deb.sagernet.org/gpg.key -o /etc/apt/keyrings/sagernet.asc
sudo chmod a+r /etc/apt/keyrings/sagernet.asc
echo "deb [arch=`dpkg --print-architecture` signed-by=/etc/apt/keyrings/sagernet.asc] https://deb.sagernet.org/ * *" | \
sudo tee /etc/apt/sources.list.d/sagernet.list > /dev/null
sudo apt-get update
sudo apt-get install serenity
Manual Installation
Service Management
For Linux systems with systemd, usually the installation already includes a serenity service, you can manage the service using the following command:
Operation | Command |
---|---|
Enable | sudo systemctl enable serenity |
Disable | sudo systemctl disable serenity |
Start | sudo systemctl start serenity |
Stop | sudo systemctl stop serenity |
Kill | sudo systemctl kill serenity |
Restart | sudo systemctl restart serenity |
Logs | sudo journalctl -u serenity --output cat -e |
New Logs | sudo journalctl -u serenity --output cat -f |