Monday, 28 April 2025

Uptime-Kuma On Pi Deploy (Tutorial)

Uptime-Kuma On Pi Deploy (Tutorial)

Pi Deploy and Uptime Kuma Setup Guide

Pi Deploy Installation and Uptime Kuma Setup 🖥️

Follow these steps to install Pi Deploy, set up a server, and run Uptime Kuma.

1. Install Pi Deploy 📥

1. Download and install Pi Deploy on your rooted Android device.

2. Configure Pi Deploy Settings ⚙️

Change Password: Set a new password (do not change the username).

Installation Type: Choose “File” installation type. Set a high file size value (e.g., 10700 MB) to allocate more storage for other services like Uptime Kuma.

Enable SSH: Make sure SSH is enabled for remote access.

Click on the three dots in the top-right corner and select “New Deployment”.

Root Access: Grant root access to Pi Deploy during the process.

3. Start the Deployment 🚀

1. Click Start to initiate the deployment process.

2. After the deployment begins, Pi Deploy will generate a One-Time Password. Copy this password, as it's important for SSH access.

Important: The password generated here is used for SSH login, not the password you set earlier.

4. SSH into Your Device 🔐

1. Open your terminal or Command Prompt (Windows CMD).

2. SSH into your Pi Deploy device using the following command (replace your_ip with the actual IP address):

ssh android@your_ip

3. When prompted, enter the One-Time Password generated earlier, not the password you set initially.

4. If everything works, your terminal should look like android@ls-ww2 in dark green.

5. Update and Install Dependencies 🔧

1. Once logged in, update your system by running:

sudo apt upgrade

2. Install the required software dependencies for Uptime Kuma (Node.js, FNM, PM2). Follow the tutorial for the NON-DOCKER METHOD for Uptime Kuma installation: Uptime Kuma Installation Guide

6. Set Up Uptime Kuma 🛠️

1. Clone the Uptime Kuma repository:

git clone https://github.com/louislam/uptime-kuma.git
cd uptime-kuma

2. Run the setup command:

npm run setup

7. Running Uptime Kuma ⚙️

Option 1 (Test Directly): Start the server directly using the command:

node server/server.js

Option 2 (Run in the Background with PM2):

1. First, install PM2 if you don't have it:

npm install pm2 -g && pm2 install pm2-logrotate

2. Start the server using PM2:

pm2 start server/server.js --name uptime-kuma

8. Ensuring Uptime Kuma Runs on Restart 🔄

Every time you stop Pi Deploy, you'll need to SSH into the device again:

1. SSH into the device and navigate to the Uptime Kuma directory:

cd uptime-kuma

2. Run Uptime Kuma with PM2 again:

pm2 start server/server.js --name uptime-kuma

All Set! 🎉

Your server should now be running, and Uptime Kuma should be accessible. Enjoy monitoring your services! 😎

Additional Information:

  • Node.js Version: 18
  • Device: LE2 with 3 GB RAM and 32 GB Storage

After installation Images:

0 comments: