# update and install software repositories
sudo apt update && apt upgrade -y
apt install vim ncdu mlocate net-tools -y
#install prerequisites
sudo apt install git curl apache2 -y
# add nodejs software repository
curl -sL https://deb.nodesource.com/setup_16.x | sudo bash -
# install nodejs
sudo apt install nodejs -y
# clone the homer git repository
git clone https://github.com/bastienwirtz/homer.git ./homer
# change directory to the source code
cd homer
# checkout the latest version
git checkout "$(git tag --sort=v:refname | tail -n1)"
# clean npm cache
npm cache clean --force
# install npm dependencies
npm install
# fix npm vulnerabilities
npm audit fix
# build homer
npm run build
# copy the sample config.yml
sudo cp ./dist/assets/config.yml.dist ./dist/assets/config.yml
# copy the dist directory to web root
sudo cp ./dist /var/www/html/homer -r
Go to the ip address of the server http://192.168.1.10/homer
You can add stuf in the config.yml file in the location /var/www/html/homer/dist/assets/config.yml