Welcome to Eternity Ready. This repo is a new app we created in August 2024. Made in python using the Stream Lit, an open source framework. This app has a front-end UI - web page @ https://yt.eternityready.com The script allows users to download Videos and MP3 Audio from YouTube. The script allows videos and MP3 Audio files to be downloaded - saved to the web host (where this script is installed) or to the user's device.
This script requires a VPS / Dedicated Server with root and command line access. You have to install Stream Lit and Python.
The following is instructions on how to setup the app and the server:
This guide provides a step-by-step process to deploy a Streamlit application on a Linux server.
● Linux server with root access.
Step 1: Update the Server
- Update and Upgrade Packages
Open the terminal and run the following commands to ensure your server packages are up-to-date:
sudo apt update && sudo apt upgrade
Step 2: Install Python and pip
- Install Python 3 and pip by running:
sudo apt install python3 python3-pip
Step 3: Install Streamlit
- With Python installed, install Streamlit by running:
pip3 install streamlit
Step 4: Deploy Your Streamlit App
- Use the cd command to navigate to the directory where your Streamlit app is located:
cd /path/to/your/app
Start the Streamlit app by running:
streamlit run your_app.py
Step 5: Set Up a Systemd Service
- To keep your Streamlit app running in the background and ensure it restarts automatically, create a systemd service.
Create a Service File. Open a new service file with the following command:
sudo nano /etc/systemd/system/streamlit-app.service
Add Service Configuration. Copy and paste the following content into the service file.
[Unit] Description=Streamlit App After=network.target
[Service] User=your_username WorkingDirectory=/path/to/your/app ExecStart=/usr/bin/python3 -m streamlit run your_app.py Restart=always
[Install] WantedBy=multi-user.target
Start and Enable the Service
sudo systemctl start streamlit-app
Enable the service to start on boot:
sudo systemctl enable streamlit-app
Step 6: Access Your Streamlit App
Once everything is set up, you can access your Streamlit app by navigating to your server's IP address or domain name in a web browser.
systemctl restart streamlit-app.service
systemctl start streamlit-app.service
systemctl status streamlit-app.service