This guide explains how to install Odysafe QuickShare as a systemd service that runs in the background with HTTPS support.
- Linux system with systemd
- Python 3.7 or higher
- OpenSSL (for SSL certificate generation)
- Root/sudo access
- Run the installation script as root:
sudo ./install-service.shThe script will:
- Install
quickshare.pyto/usr/local/bin/ - Create necessary directories in
/usr/local/quickshare/ - Generate a self-signed SSL certificate (if not already present)
- Create and enable the systemd service
- Start the service automatically
- The service will run on HTTPS port 8443
Access the service at:
https://localhost:8443https://<YOUR_IP>:8443
Note: Your browser will show a security warning for the self-signed certificate. This is normal and you can safely accept it for local network use.
sudo systemctl start quicksharesudo systemctl stop quicksharesudo systemctl restart quicksharesudo systemctl status quickshare# View recent logs
sudo journalctl -u quickshare -n 50
# Follow logs in real-time
sudo journalctl -u quickshare -f# Enable service to start at boot
sudo systemctl enable quickshare
# Disable service from starting at boot
sudo systemctl disable quickshareThe service is configured in /etc/systemd/system/quickshare.service. Default settings:
- Port: 8443 (HTTPS)
- Storage Directory:
/usr/local/quickshare/shared_files - SSL Certificate:
/usr/local/quickshare/ssl/cert.pem - SSL Key:
/usr/local/quickshare/ssl/key.pem - User: root
- Auto-restart: Enabled
To modify the configuration:
- Edit the service file:
sudo nano /etc/systemd/system/quickshare.service- Modify the
ExecStartline with your desired parameters:
ExecStart=/usr/bin/python3 /usr/local/bin/quickshare.py \
--port 8443 \
--ssl-cert /usr/local/quickshare/ssl/cert.pem \
--ssl-key /usr/local/quickshare/ssl/key.pem \
--storage-dir /usr/local/quickshare/shared_files \
--cleanup-hours 24 \
--max-size 1024- Reload and restart:
sudo systemctl daemon-reload
sudo systemctl restart quickshareIf you have your own SSL certificate:
- Copy your certificate and key to the SSL directory:
sudo cp your-cert.pem /usr/local/quickshare/ssl/cert.pem
sudo cp your-key.pem /usr/local/quickshare/ssl/key.pem
sudo chmod 644 /usr/local/quickshare/ssl/cert.pem
sudo chmod 600 /usr/local/quickshare/ssl/key.pem- Restart the service:
sudo systemctl restart quickshareTo remove the service:
sudo ./uninstall-service.shThis will:
- Stop and disable the service
- Remove the service file
- Remove the installed script
- Optionally remove the data directory (you'll be prompted)
- Check the logs:
sudo journalctl -u quickshare -n 50- Verify Python is installed:
which python3- Check file permissions:
ls -l /usr/local/bin/quickshare.py
ls -l /usr/local/quickshare/ssl/If you get SSL errors:
- Regenerate the certificate:
sudo rm /usr/local/quickshare/ssl/cert.pem /usr/local/quickshare/ssl/key.pem
sudo ./install-service.sh- Or check certificate validity:
openssl x509 -in /usr/local/quickshare/ssl/cert.pem -text -nooutIf port 8443 is already in use:
- Edit the service file to use a different port
- Or find what's using the port:
sudo lsof -i :8443- The service runs as root to allow binding to privileged ports
- The self-signed certificate is for local network use only
- For production use, consider using a proper SSL certificate from a CA
- The service automatically restarts on failure
- All data is stored in
/usr/local/quickshare/shared_files