Uploaded June 2024 | Updated November 2026, 3 hours ago
#LibreNMS #NetworkMonitoring #Docker
Full steps can be found at i12bretro.github.io/tutorials/0480.html
--------------------------------------------------------------------
What is LibreNMS
--------------------------------------------------------------------
LibreNMS is an autodiscovering PHP/MySQL/SNMP based network monitoring which includes support for a wide range of network hardware and operating systems including Cisco, Linux, FreeBSD, Juniper, Brocade, Foundry, HP and many more. - github.com/librenms/librenms
--------------------------------------------------------------------
Installing Docker
--------------------------------------------------------------------
01. Log into the Linux based device
02. Run the following commands in the terminal
# install prerequisites
sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y
# add docker gpg key
curl -fsSL download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release)/gpg | sudo apt-key add -
# add docker software repository
sudo add-apt-repository "deb [arch=$(dpkg --print-architecture)] download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release) $(lsb_release -cs) stable"
# install docker
sudo apt install docker-ce docker-compose containerd.io -y
# enable and start docker service
sudo systemctl enable docker && sudo systemctl start docker
# add the current user to the docker group
sudo usermod -aG docker $USER
# reauthenticate for the new group membership to take effect
su - $USER
--------------------------------------------------------------------
Running LibreNMS
--------------------------------------------------------------------
01. Now that Docker is installed, run the following commands to setup the LibreNMS Docker container and run it
# create working directories
mkdir /home/$USER/docker/librenms -p && mkdir /home/$USER/docker/mariadb -p
# run the mariadb docker container
docker run --name mariadb -e MYSQL_ROOT_PASSWORD=p@$$word -e MYSQL_USER=librenms_rw -e MYSQL_PASSWORD=librenms -e MYSQL_DATABASE=librenms -v /home/$USER/docker/mariadb:/var/lib/mysql -p 3306:3306 -d mariadb
# run the librenms docker container, replace 10.10.27.11 with your docker host IP address
docker run -d --name librenms -v /home/$USER/docker/librenms:/data -e TZ=America/New_York -e DB_HOST=10.10.27.11 -e DB_NAME=librenms -e DB_USER=librenms_rw -e DB_PASSWORD=librenms --network host librenms/librenms:latest
02. Open a web browser and navigate to http://DNSorIP:8000
03. Login to LibreNMS with username librenms and password librenms
04. Welcome to LibreNMS running in a Docker container
05. Hover over librenms in the top right ≫ My Settings
06. Enter the current password (librenms) and enter and confirm a new password ≫ Click the Change Password button
Documentation: hub.docker.com/r/librenms/librenms
### Connect with me and others ###
★ Discord: discord.com/invite/EzenvmSHW8
★ Reddit: reddit.com/r/i12bretro
★ Twitter: twitter.com/i12bretro
#LibreNMS #NetworkMonitoring #Docker
Full steps can be found at i12bretro.github.io/tutorials/0480.html
--------------------------------------------------------------------
What is LibreNMS
--------------------------------------------------------------------
LibreNMS is an autodiscovering PHP/MySQL/SNMP based network monitoring which includes support for a wide range of network hardware and operating systems including Cisco, Linux, FreeBSD, Juniper, Brocade, Foundry, HP and many more. - github.com/librenms/librenms
--------------------------------------------------------------------
Installing Docker
--------------------------------------------------------------------
01. Log into the Linux based device
02. Run the following commands in the terminal
# install prerequisites
sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y
# add docker gpg key
curl -fsSL download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release)/gpg | sudo apt-key add -
# add docker software repository
sudo add-apt-repository "deb [arch=$(dpkg --print-architecture)] download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release) $(lsb_release -cs) stable"
# install docker
sudo apt install docker-ce docker-compose containerd.io -y
# enable and start docker service
sudo systemctl enable docker && sudo systemctl start docker
# add the current user to the docker group
sudo usermod -aG docker $USER
# reauthenticate for the new group membership to take effect
su - $USER
--------------------------------------------------------------------
Running LibreNMS
--------------------------------------------------------------------
01. Now that Docker is installed, run the following commands to setup the LibreNMS Docker container and run it
# create working directories
mkdir /home/$USER/docker/librenms -p && mkdir /home/$USER/docker/mariadb -p
# run the mariadb docker container
docker run --name mariadb -e MYSQL_ROOT_PASSWORD=p@$$word -e MYSQL_USER=librenms_rw -e MYSQL_PASSWORD=librenms -e MYSQL_DATABASE=librenms -v /home/$USER/docker/mariadb:/var/lib/mysql -p 3306:3306 -d mariadb
# run the librenms docker container, replace 10.10.27.11 with your docker host IP address
docker run -d --name librenms -v /home/$USER/docker/librenms:/data -e TZ=America/New_York -e DB_HOST=10.10.27.11 -e DB_NAME=librenms -e DB_USER=librenms_rw -e DB_PASSWORD=librenms --network host librenms/librenms:latest
02. Open a web browser and navigate to http://DNSorIP:8000
03. Login to LibreNMS with username librenms and password librenms
04. Welcome to LibreNMS running in a Docker container
05. Hover over librenms in the top right ≫ My Settings
06. Enter the current password (librenms) and enter and confirm a new password ≫ Click the Change Password button
Documentation: hub.docker.com/r/librenms/librenms
### Connect with me and others ###
★ Discord: discord.com/invite/EzenvmSHW8
★ Reddit: reddit.com/r/i12bretro
★ Twitter: twitter.com/i12bretro
![Running OpenFire XMPP Server in Docker
#OpenFire #XMPP #Docker
Full steps can be found at https://i12bretro.github.io/tutorials/0481.html
What is OpenFire
Openfire is a real time collaboration (RTC) server licensed under the Open Source Apache License. It uses the only widely adopted open protocol for instant messaging, XMPP Openfire is incredibly easy to setup and administer, but offers rock-solid security and performance. - https://igniterealtime.org/projects/openfire/
Installing Docker
01. Log into the Linux based device
02. Run the following commands in the terminal
# install prerequisites
sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y
# add docker gpg key
curl -fsSL https://download.docker.com/linux/$(awk -F= /^ID=/{ print $NF } /etc/os-release)/gpg | sudo apt-key add -
# add docker software repository
sudo add-apt-repository deb [arch=$(dpkg print-architecture)] https://download.docker.com/linux/$(awk -F= /^ID=/{ print $NF } /etc/os-release) $(lsb_release -cs) stable
# install docker
sudo apt install docker-ce docker-compose containerd.io -y
# enable and start docker service
sudo systemctl enable docker && sudo systemctl start docker
# add the current user to the docker group
sudo usermod -aG docker $USER
# reauthenticate for the new group membership to take effect
su - $USER
Running OpenFire
01. Now that Docker is installed, run the following commands to setup the OpenFire Docker container and run it
# create a working directory
mkdir /home/$USER/docker/openfire/db -p
# run the OpenFire docker container
docker run name openfire -d -p 9090:9090 -p 5222:5222 -p 5269:5269 -p 5223:5223 -p 7443:7443 -p 7777:7777 -p 7070:7070 -p 5229:5229 -p 5275:5275 -v /home/$USER/docker/openfire/db:/var/lib/openfire/embedded-db restart=unless-stopped quantumobject/docker-openfire
02. Open a web browser and navigate to http://DNSorIP:9090
03. Select a language ≫ Click Continue
04. Set the XMPP Domain Name and Server Host Name (FQDN) to local ≫ Click Continue
05. Select Embedded Database ≫ Click Continue
06. Select Default on the Profile Settings page ≫ Click Continue
07. Input an admin email address and password ≫ Click Continue
08. Click the Login to the admin console button
09. Login with username admin and the password created previously
10. Click the Users/Groups tab
11. Click Create New User in the left navigation menu
12. Create a username and password for the new user
13. Follow the steps to create as many users as needed, at least 2 are needed for testing
Making the Configuration Persistent
01. With OpenFire now configured, run the following commands to copy the configuration files to a persistent volume and re-run the docker container
# create working directory for conf
mkdir /home/$USER/docker/openfire/conf -p
# copy the configuration from the running docker container
sudo docker cp openfire:/usr/share/openfire/conf/ /home/$USER/docker/openfire
# set owner of working directories
sudo chown $USER:$USER /home/$USER/docker -R
# stop and remove the running OpenFire container
docker rm openfire force
# re-run the OpenFire docker container with new conf volume
docker run name openfire -d -p 9090:9090 -p 5222:5222 -p 5269:5269 -p 5223:5223 -p 7443:7443 -p 7777:7777 -p 7070:7070 -p 5229:5229 -p 5275:5275 -v /home/$USER/docker/openfire/db:/var/lib/openfire/embedded-db -v /home/$USER/docker/openfire/conf:/usr/share/openfire/conf restart=unless-stopped quantumobject/docker-openfire
Setting Up A XMPP Client
01. Download Pidgin Portable https://portableapps.com/apps/internet/pidgin_portable
02. Run the Pidgin Portable installer
03. Launch Pidgin Portable
04. Click Add...
05. Select XMPP from the protocol dropdown
06. Input the first username created above along with the XMPP domain setup in OpenFire and the users password
07. Click the Advanced tab ≫ Select Use encryption if available from the Connection security dropdown
08. Enter the OpenFire DNS name or IP in the server field
09. Click the Add button
10. Click Accept on the self-signed certificate popup
11. Copy the extracted Pidgin Portable folder to another device
12. Launch Pidgin Portable on the second device
13. Select Modify Account
14. Update the username and password to be a different account from the previous device
15. From one of the devices, select Buddies ≫ Add Buddy
16. Input the opposite devicess username
....Full steps can be found on GitHub [link at the top]
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Running OpenFire XMPP Server in Docker](https://i.ytimg.com/vi/T66RcFd8CMg/mqdefault.jpg)

![Roll Your Own Google Analytics Alternative with Umami in Docker
#Umami #Analytics #Docker
Full steps can be found at https://i12bretro.github.io/tutorials/0385.html
What is Umami?
Umami is a simple, fast, privacy-focused alternative to Google Analytics. - https://github.com/umami-software/umami
Installing Docker
01. Log into the Linux based device
02. Run the following commands in the terminal
# install prerequisites
sudo apt install apt-transport-https ca-certificates openssl curl software-properties-common gnupg-agent -y
# add docker gpg key
curl -fsSL https://download.docker.com/linux/$(awk -F= /^ID=/{ print $NF } /etc/os-release)/gpg | sudo apt-key add -
# add docker software repository
sudo add-apt-repository deb [arch=$(dpkg print-architecture)] https://download.docker.com/linux/$(awk -F= /^ID=/{ print $NF } /etc/os-release) $(lsb_release -cs) stable
# install docker
sudo apt install docker-ce docker-compose containerd.io -y
# enable and start docker service
sudo systemctl enable docker && sudo systemctl start docker
# add the current user to the docker group
sudo usermod -aG docker $USER
# reauthenticate for the new group membership to take effect
su - $USER
Running Umami
01. Now that Docker is installed, run the following commands to setup the Umami Docker container and run it
# create working directories
mkdir ~/docker/mariadb -p
# set owner of working directories
sudo chown $USER:$USER ~/docker -R
# create containers network
docker network create containers
# generate a random string
RANDOMSTRING=$(openssl rand -base64 30)
# run the mariadb docker container
docker run -d name mariadb network containers -e MYSQL_ROOT_PASSWORD=r00tp@ss -e MYSQL_USER=umami_rw -e MYSQL_PASSWORD=Um4m1 -e MYSQL_DATABASE=umami -v ~/docker/mariadb:/var/lib/mysql restart=unless-stopped mariadb:latest
# run the umami docker container
docker run -d name umami network containers -p 8030:3000 -e DATABASE_URL=mysql://umami_rw:Um4m1@mariadb:3306/umami -e DATABASE_TYPE=mysql -e APP_SECRET=$RANDOMSTRING restart=unless-stopped umamisoftware/umami:mysql-latest
02. Open a web browser and navigate to http://DNSorIP:8030
03. Login with the username admin and password umami
04. Navigate to Settings ≫ Profile and click the Change Password button
05. Enter the current password (umami) and enter and confirm the new password ≫ Click save
Documentation: https://umami.is/docs
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Roll Your Own Google Analytics Alternative with Umami in Docker](https://i.ytimg.com/vi/TU-H7wU1y24/mqdefault.jpg)



![Run MeshCentral - Remote Management Site - in Docker
#MeshCentral #HomeLab #Docker
Full steps can be found at https://i12bretro.github.io/tutorials/0963.html
What is MeshCentral?
MeshCentral is a full computer management web site. With MeshCentral, you can run your own web server to remotely manage and control computers on a local network or anywhere on the internet. - https://github.com/Ylianst/MeshCentral
Installing Docker
01. Log into the Linux based device
02. Run the following commands in the terminal
# install prerequisites
sudo apt install apt-transport-https ca-certificates git curl software-properties-common gnupg-agent -y
# add docker gpg key
curl -fsSL https://download.docker.com/linux/$(awk -F= /^ID=/{ print $NF } /etc/os-release)/gpg | sudo apt-key add -
# add docker software repository
sudo add-apt-repository deb [arch=$(dpkg print-architecture)] https://download.docker.com/linux/$(awk -F= /^ID=/{ print $NF } /etc/os-release) $(lsb_release -cs) stable
# install docker
sudo apt install docker-ce docker-compose containerd.io -y
# enable and start docker service
sudo systemctl enable docker && sudo systemctl start docker
# add the current user to the docker group
sudo usermod -aG docker $USER
# reauthenticate for the new group membership to take effect
su - $USER
Running MeshCentral
01. Now that Docker is installed, run the following commands to setup the MeshCentral Docker container and run it
# create working directories
mkdir ~/docker/meshcentral/{data,user_files} -p && mkdir ~/docker/mongodb -p
# set owner of working directories
sudo chown $USER:$USER ~/docker -R
# create docker network
docker network create containers
# run mongodb container
docker run -d name=mongodb network containers -v ~/docker/mongodb:/data/db restart=unless-stopped mongo
# run meshcentral container
# update the HOSTNAME variable
docker run -d name=meshcentral network containers -p 8086:443 -e HOSTNAME=ubuntuserver.local -e REVERSE_PROXY=false -e IFRAME=false -e ALLOW_NEW_ACCOUNTS=false -e WEBRTC=false -e NODE_ENV=production -v ~/docker/meshcentral/data:/opt/meshcentral/meshcentral-data -v ~/docker/meshcentral/user_files:/opt/meshcentral/meshcentral-files restart=unless-stopped typhonragewind/meshcentral:mongodb-latest
# update the config file
sed -Ei s/(NewAccounts: false,)/NewAccounts: false,ntallowedOrigin: true,/ ~/docker/meshcentral/data/config.json
# restart the container
docker restart meshcentral
02. Open a web browser and navigate to https://DNSorIP:8086
03. Accept the certificate warning
04. Click the link to create an account
05. Complete the form by entering an username, email and password ≫ Click Create Account
06. Welcome to MeshCentral running in Docker
Source: https://github.com/Typhonragewind/meshcentral-docker
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Run MeshCentral - Remote Management Site - in Docker](https://i.ytimg.com/vi/V94q02P1zwM/mqdefault.jpg)


![Install Odoo - Open Source Business Application Suite - on Linux
#Odoo #Python #Linux
Full steps can be found at https://i12bretro.github.io/tutorials/0924.html
What is Odoo?
Odoo is a suite of web based open source business apps. The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing. Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps. - https://github.com/odoo/odoo
Installation
01. Log into the Linux device
02. Run the following commands in terminal
# update software repositories
sudo apt update
# install available software updates
sudo apt upgrade
# install prerequisites
sudo apt install wget git apt-transport-https -y
# install postgresql
sudo apt install postgresql postgresql-client -y
# enable the postgresql service and start it
sudo systemctl enable postgresql now
# connect to postgresql
sudo -u postgres psql postgres
# create odoo database user
create user odoo_rw with password 0dooDB_rw$;
# create odoo database
create database odoo with encoding=UTF8 template=template0 owner=odoo_rw;
# close postgresql connection
exit
# install python
sudo apt install python3-full python3-pip libldap2-dev libpq-dev libsasl2-dev -y
# create odoo user
sudo useradd -M odoo
# create /opt/odoo directory
sudo mkdir /opt/odoo -p
# set owner of /opt/odoo
sudo chown odoo /opt/odoo -R && sudo chgrp odoo /opt/odoo -R && sudo usermod -d /opt/odoo odoo
# switch to odoo user
sudo su - odoo
# clone odoo from github
git clone https://github.com/odoo/odoo.git .
# prepare the working directory
python3 -m venv odoo-venv
. odoo-venv/bin/activate
# install wheel
pip3 install wheel
# install odoo
pip install -r requirements.txt
# create a config file
touch ./odoo.conf
# write database config to config file
echo [options]ndb_user = odoo_rwndb_password = 0dooDB_rw$ndb_name = odoondb_host = localhost ≫ ./odoo.conf
# run odoo
./odoo-bin config ./odoo.conf -i base
03. Open a web browser and navigate to http://DNSorIP:8069
04. Login with the username admin and password admin
05. Click the user icon at the top right corner of the screen ≫ Preferences
06. Update the Email and Email Signature ≫ Click Save
07. Click the Account Security tab ≫ Click the Change Password button
08. Enter admin as the current password ≫ Click Confirm Password
09. Enter and confirm a new password ≫ Click Change Password
10. Login using the updated email address and password
11. Welcome to Odoo
Running Odoo as a Service
01. Back in the Terminal, press CTRL+C to kill the running Odoo process
02. Continue with the following commands in terminal
# exit the odoo user shell
exit
# create odoo service file
sudo nano /etc/systemd/system/odoo.service
03. Paste the following into odoo.service
[Unit]
Description=Odoo
Requires=postgresql.service
After=network.target postgresql.service
[Service]
User=odoo
Group=odoo
ExecStart=/opt/odoo/odoo-venv/bin/python3 /opt/odoo/odoo-bin -c /opt/odoo/odoo.conf
[Install]
WantedBy=multi-user.target
04. Press CTRL+O, Enter, CTRL+X to write the changes
05. Continue with the following commands
# reload systemd services
sudo systemctl daemon-reload
# start odoo service on boot and now
sudo systemctl enable odoo now
06. Back in the web browser, refresh the Odoo tab
07. If prompted, log back in using the updated email address and password
Source: https://www.odoo.com/documentation/17.0/administration/on_premise/source.html
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Install Odoo - Open Source Business Application Suite - on Linux](https://i.ytimg.com/vi/WPBEQawJ7p4/mqdefault.jpg)
