Bookmark

Run HomeDash on Linux: a Lightweight HomeLab Dashboard

HomeDash is a Java dashboard for collecting information about HomeLab services and servers. This article keeps the complete command sequence from the i12bretro tutorial while resolving the latest release through the GitHub API instead of committing a binary to the repository.

Source reference: i12bretro – Run HomeDash on Linux . The original video belongs to i12bretro on YouTube .

Youtube video player

Install Java and Maven

  1. Log into the Linux device.
  2. Update the package list:
1
sudo apt update
  1. Install available updates:
1
sudo apt upgrade -y
  1. Install the default JDK and Maven:
1
sudo apt install default-jdk maven -y
  1. Check Java:
1
java --version
  1. Check Maven:
1
mvn -version

Download and run HomeDash

  1. Create the working directory:
1
sudo mkdir /opt/homedash2 -p
  1. Assign the directory to the current user:
1
sudo chown $USER:$USER /opt/homedash2 -R
  1. Change into the directory:
1
cd /opt/homedash2
  1. Resolve the latest JAR release URL through the GitHub API:
1
2
3
regex='"browser_download_url": "(https:\/\/github.com\/lamarios\/Homedash2\/releases\/download\/[^/]*\/Homedash-[^/]*\.jar)"'
response=$(curl -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/lamarios/Homedash2/releases/latest)
[[ $response =~ $regex ]] && downloadURL="${BASH_REMATCH[1]}"
  1. Download the JAR to a fixed local filename:
1
wget -O ./homedash.jar $downloadURL
  1. Generate the configuration file:
1
java -jar ./homedash.jar -create-config
  1. Run HomeDash with the generated configuration:
1
java -Dconfig.file=/opt/homedash2/homedash.properties -jar homedash.jar
  1. Open http://DNSorIP:4567 in a browser.
  2. Confirm that the HomeDash page is available.

Operations note: Do not expose port 4567 directly to the Internet. Use a VPN or an authenticated reverse proxy for remote access. Protect homedash.properties, inspect logs, and create a systemd unit only after confirming the Java/JAR versions work together.

Source and video


0 Bình luận

Góp Ý / Bình Luận / Đánh giá