Uploaded January 2025 | Updated November 2026, 2 hours ago
#Mattermost #Collaboration #Linux
Full steps can be found at i12bretro.github.io/tutorials/0888.html
--------------------------------------------------------------------
What is Mattermost?
--------------------------------------------------------------------
Mattermost is a secure collaboration platform for accelerating mission-critical collaborative work. The platform is built to meet the custom needs of technical and operational teams in rigorous and complex environments, including government, defense, and critical infrastructure. Mattermost gives organizations full control over their data with self-hosted and private deployment options and access to the source code. - docs.mattermost.com/about/product.html
--------------------------------------------------------------------
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 mattermost database user
create user mattermost_rw with password 'Matt3rM0st';
# create mattermost database
create database mattermost with encoding='UTF8' template='template0' owner='mattermost_rw';
# close postgresql connection
exit
# create mattermost user
sudo useradd -mrd /opt/mattermost mattermost -s "$(which bash)"
# create /opt/mattermost directory
sudo mkdir /opt/mattermost -p
# set owner of /opt/mattermost
sudo chown mattermost:mattermost /opt/mattermost -R
# switch to mattermost user
sudo su - mattermost
# fetch the latest download URL
regex='(https:\/\/releases\.mattermost\.com\/[^/]*\/mattermost-[^/]*-linux-amd64\.tar\.gz)' && response=$(curl docs.mattermost.com/about/version-archive.html) && [[ $response =~ $regex ]] && downloadURL="${BASH_REMATCH[1]}"
# download mattermost
wget -O /tmp/mattermost.tar.gz $downloadURL
# extract the download
tar -xvzf /tmp/mattermost.tar.gz -C /opt/mattermost --strip-component 1
# backup config json file
cp /opt/mattermost/config/config.json /opt/mattermost/config/config.json.orig
# edit config.json
nano /opt/mattermost/config/config.json
03. Set the SiteURL value
"SiteURL": "http://debian.local",
04. Scroll down to find the SqlSettings configuration, update the DataSource value as follows
"DataSource": "postgres://mattermost_rw:Matt3rM0st@localhost/mattermost?sslmode=disable\u0026connect_timeout=10\u0026binary_parameters=yes",
05. Press CTRL+O, Enter, CTRL+X to write the changes
--------------------------------------------------------------------
Running Mattermost as a Service
--------------------------------------------------------------------
01. Back in the Terminal, continue with the following commands
# exit the mattermost user shell
exit
# create mattermost service file
sudo nano /etc/systemd/system/mattermost.service
02. Paste the following into mattermost.service
[Unit]
Description=Mattermost
After=postgresql.service
BindsTo=postgresql.service
[Service]
Type=notify
ExecStart=/opt/mattermost/bin/mattermost
TimeoutStartSec=3600
KillMode=mixed
Restart=always
RestartSec=10
WorkingDirectory=/opt/mattermost
User=mattermost
Group=mattermost
LimitNOFILE=49152
[Install]
WantedBy=multi-user.target
03. Press CTRL+O, Enter, CTRL+X to write the changes
04. Continue with the following commands
# reload systemd services
sudo systemctl daemon-reload
# start mattermost service on boot and now
sudo systemctl enable mattermost --now
05. Open a web browser and navigate to http://DNSorIP:8065
06. Click the View in Browser button
07. Complete the form to create an account
08. Enter an Organization Name ≫ Click Continue
09. Complete the remaining prompts or choose to skip
10. Welcome to Mattermost
Source: docs.mattermost.com/install/install-tar.html
### Connect with me and others ###
★ Discord: discord.com/invite/EzenvmSHW8
★ Reddit: reddit.com/r/i12bretro
★ Twitter: twitter.com/i12bretro
#Mattermost #Collaboration #Linux
Full steps can be found at i12bretro.github.io/tutorials/0888.html
--------------------------------------------------------------------
What is Mattermost?
--------------------------------------------------------------------
Mattermost is a secure collaboration platform for accelerating mission-critical collaborative work. The platform is built to meet the custom needs of technical and operational teams in rigorous and complex environments, including government, defense, and critical infrastructure. Mattermost gives organizations full control over their data with self-hosted and private deployment options and access to the source code. - docs.mattermost.com/about/product.html
--------------------------------------------------------------------
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 mattermost database user
create user mattermost_rw with password 'Matt3rM0st';
# create mattermost database
create database mattermost with encoding='UTF8' template='template0' owner='mattermost_rw';
# close postgresql connection
exit
# create mattermost user
sudo useradd -mrd /opt/mattermost mattermost -s "$(which bash)"
# create /opt/mattermost directory
sudo mkdir /opt/mattermost -p
# set owner of /opt/mattermost
sudo chown mattermost:mattermost /opt/mattermost -R
# switch to mattermost user
sudo su - mattermost
# fetch the latest download URL
regex='(https:\/\/releases\.mattermost\.com\/[^/]*\/mattermost-[^/]*-linux-amd64\.tar\.gz)' && response=$(curl docs.mattermost.com/about/version-archive.html) && [[ $response =~ $regex ]] && downloadURL="${BASH_REMATCH[1]}"
# download mattermost
wget -O /tmp/mattermost.tar.gz $downloadURL
# extract the download
tar -xvzf /tmp/mattermost.tar.gz -C /opt/mattermost --strip-component 1
# backup config json file
cp /opt/mattermost/config/config.json /opt/mattermost/config/config.json.orig
# edit config.json
nano /opt/mattermost/config/config.json
03. Set the SiteURL value
"SiteURL": "http://debian.local",
04. Scroll down to find the SqlSettings configuration, update the DataSource value as follows
"DataSource": "postgres://mattermost_rw:Matt3rM0st@localhost/mattermost?sslmode=disable\u0026connect_timeout=10\u0026binary_parameters=yes",
05. Press CTRL+O, Enter, CTRL+X to write the changes
--------------------------------------------------------------------
Running Mattermost as a Service
--------------------------------------------------------------------
01. Back in the Terminal, continue with the following commands
# exit the mattermost user shell
exit
# create mattermost service file
sudo nano /etc/systemd/system/mattermost.service
02. Paste the following into mattermost.service
[Unit]
Description=Mattermost
After=postgresql.service
BindsTo=postgresql.service
[Service]
Type=notify
ExecStart=/opt/mattermost/bin/mattermost
TimeoutStartSec=3600
KillMode=mixed
Restart=always
RestartSec=10
WorkingDirectory=/opt/mattermost
User=mattermost
Group=mattermost
LimitNOFILE=49152
[Install]
WantedBy=multi-user.target
03. Press CTRL+O, Enter, CTRL+X to write the changes
04. Continue with the following commands
# reload systemd services
sudo systemctl daemon-reload
# start mattermost service on boot and now
sudo systemctl enable mattermost --now
05. Open a web browser and navigate to http://DNSorIP:8065
06. Click the View in Browser button
07. Complete the form to create an account
08. Enter an Organization Name ≫ Click Continue
09. Complete the remaining prompts or choose to skip
10. Welcome to Mattermost
Source: docs.mattermost.com/install/install-tar.html
### Connect with me and others ###
★ Discord: discord.com/invite/EzenvmSHW8
★ Reddit: reddit.com/r/i12bretro
★ Twitter: twitter.com/i12bretro
![Install Actual Budget - Open Source Finance Management - on Linux
#ActualBudget #FOSS #Linux
Full steps can be found at https://i12bretro.github.io/tutorials/0967.html
What is Actual Budget?
Actual is a local-first personal finance tool. It is 100% free and open-source, written in NodeJS, it has a synchronization element so that all your changes can move between devices without any heavy lifting. - https://github.com/actualbudget/actual
Installing NodeJS
01. Log into the Linux device
02. Run the following commands in a terminal window
# add nodejs software repository
curl -sL https://deb.nodesource.com/setup_20.x | sudo bash -
# install nodejs
sudo apt install nodejs -y
# test node & npm are working
node -v && npm -v
Installing Actual
01. Continue with the following commands:
# install git
sudo apt install git -y
# create working directory
sudo mkdir /usr/local/actualbudget -p
# set folder ownership
sudo chown -R $USER:$USER /usr/local/actualbudget
# clone actual github repo
git clone https://github.com/actualbudget/actual-server.git /usr/local/actualbudget
# cd into git clone
cd /usr/local/actualbudget
# checkout the latest tagged release
git checkout $(git tag sort=v:refname | tail -n1)
# install yarn
sudo npm install -g yarn
# install dependencies
yarn install
# create a service file
sudo nano /etc/systemd/system/actualbudget.service
02. Paste the following configuration
[Unit]
Description=Actual Server
[Service]
Type=simple
ExecStart=/usr/bin/yarn start
WorkingDirectory=/usr/local/actualbudget
Environment=NODE_ENV=production
Restart=always
# Restart service after 10 seconds if node service crashes
RestartSec=10
[Install]
WantedBy=multi-user.target
03. Press CTRL+O, Enter, CTRL+X to write the changes
04. Continue with the following commands
# reload services
sudo systemctl daemon-reload
# start and enable actual budget service
sudo systemctl enable actualbudget.service now
05. Open a web browser and navigate to http://DNSorIP:5006
06. Enter and confirm an admin password
07. Click the link to create an account
08. Click Start Fresh
09. Welcome to Actual Budget
Source: https://actualbudget.org/docs/install/local/
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Install Actual Budget - Open Source Finance Management - on Linux](https://i.ytimg.com/vi/EIm0vvuM0kw/mqdefault.jpg)
![Running Snipe-IT in Docker
#SnipeIT #AssetManagement #Docker
*** Updated 08/05/2024
Full steps can be found at https://i12bretro.github.io/tutorials/0567.html
What is Snipe-IT?
Snipe-IT is a Free Open Source (FOSS) project built on Laravel. Snipe-IT was made for IT asset management, to enable IT departments to track who has which laptop, when it was purchased, which software licenses and accessories are available, and so on. - https://snipe-it.readme.io/docs
Installing Docker
01. Log into the Linux host
02. Run the following commands in a terminal window
# 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 Snipe-IT
01. Continue with the following commands in terminal to setup and run Snipe-IT
# create working directories
sudo mkdir ~/docker/snipeit/{config,data} -p && sudo mkdir ~/docker/mariadb -p
# create snipeit network
docker network create snipeit
# download the base configuration
sudo wget -O ~/docker/snipeit/.env https://raw.githubusercontent.com/snipe/snipe-it/master/.env.example
# generate an app_key
docker run rm snipe/snipe-it
# edit the .env file
sudo nano ~/docker/snipeit/.env
02. Scroll through the .env file, making sure to comment out the mysql connection details and change the following fields as needed
#
# REQUIRED: BASIC APP SETTINGS
#
APP_ENV=production
APP_DEBUG=false
APP_KEY=≪%PASTED APP_KEY%≫
APP_URL=http://≪%DNSorIP%≫:8000
APP_TIMEZONE=America/New_York
APP_LOCALE=en
MAX_RESULTS=500
#
# REQUIRED: UPLOADED FILE STORAGE SETTINGS
#
PRIVATE_FILESYSTEM_DISK=local
PUBLIC_FILESYSTEM_DISK=local_public
#
# REQUIRED: DATABASE SETTINGS
#
DB_CONNECTION=mysql
DB_HOST=db
DB_DATABASE=snipe_it
DB_USERNAME=snipe_it_rw
DB_PASSWORD=Snip3-IT!
DB_PREFIX=null
#
# REQUIRED: OUTGOING MAIL SERVER SETTINGS
#
MAIL_DRIVER=smtp
MAIL_HOST=smtp.i12bretro.local
MAIL_PORT=25
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDR=snipe-it@i12bretro.local
MAIL_FROM_NAME=Snipe-IT
MAIL_REPLYTO_ADDR=snipe-it@i12bretro.local
MAIL_REPLYTO_NAME=Snipe-IT
MAIL_AUTO_EMBED_METHOD=attachment
03. Press CTRL+O, Enter, CTRL+X to write the changes to .env
04. Continue with the following commands in terminal
# set owner of docker directory
sudo chown $USER:$USER ~/docker -R
# set permissions on docker directory
sudo chmod g+rwx $HOME/docker -R
# run the mariadb docker container
docker run -d name mariadb network snipeit network-alias db -e MYSQL_ROOT_PASSWORD=r00tp@ss -e MYSQL_USER=snipe_it_rw -e MYSQL_PASSWORD=Snip3-IT! -e MYSQL_DATABASE=snipe_it -v ~/docker/mariadb:/var/lib/mysql restart=unless-stopped mariadb:latest
# run the snipeit container
docker run -d name snipeit -p 8000:80 network snipeit env-file=$HOME/docker/snipeit/.env -v ~/docker/snipeit/data:/var/lib/snipeit -v ~/docker/snipeit/config:/config restart=unless-stopped snipe/snipe-it:v5.1.7
Snipe-IT Web Installer
01. Open a web browser and navigate to http://DNSorIP:8000
02. Review the Pre-Flight Checks summary ≫ Click the Next: Create Database Tables button
....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 Snipe-IT in Docker](https://i.ytimg.com/vi/EsCh0gOrxqE/mqdefault.jpg)
![Run Easy!Appointments - Appointment Scheduler System - in Docker
#EasyAppointments #Scheduling #Docker
Full steps can be found at https://i12bretro.github.io/tutorials/0949.html
What is Easy!Appointments?
Easy!Appointments is a highly customizable web application that allows customers to book appointments with you via a sophisticated web interface. Moreover, it provides the ability to sync your data with Google Calendar so you can use them with other services. It is an open source project that you can download and install even for commercial use. Easy!Appointments will run smoothly with your existing website as it can be installed in a single folder of the server and of course share an existing database. - https://github.com/alextselegidis/easyappointments#about
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 Easy!Appointments
01. Now that Docker is installed, run the following commands to setup the Easy!Appointments 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
# run the mariadb docker container
docker run -d name mariadb network containers network-alias db -e MYSQL_ROOT_PASSWORD=r00tp@ss -e MYSQL_USER=easy_appointments_rw -e MYSQL_PASSWORD=EasyAppo1ntm3nts! -e MYSQL_DATABASE=easy_appointments -v /home/$USER/docker/mariadb:/var/lib/mysql restart=unless-stopped mariadb:latest
# run the easy!appointments docker container
docker run -d name easy-appointments network containers -p 8089:80 -e DB_HOST=mariadb -e DB_NAME=easy_appointments -e DB_USERNAME=easy_appointments_rw -e DB_PASSWORD=EasyAppo1ntm3nts! restart=unless-stopped alextselegidis/easyappointments
Easy!Appointments Web Installer
01. Open a web browser and navigate to http://DNSorIP:8089
02. The Easy!Appointments Installation web installer should be load
03. Complete the Administrator and Company form fields ≫ Click Install Easy!Appointments
04. Welcome to Easy!Appointments
Documentation: https://hub.docker.com/r/alextselegidis/easyappointments
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Run Easy!Appointments - Appointment Scheduler System - in Docker](https://i.ytimg.com/vi/FDdDQinpzq4/mqdefault.jpg)
![Run MkDocs - Read the Docs Alternative - in Docker
#MkDocs #Containers #Docker
Full steps can be found at https://i12bretro.github.io/tutorials/0986.html
What is MkDocs?
MkDocs is a fast, simple and downright gorgeous static site generator thats geared towards building project documentation. Documentation source files are written in Markdown, and configured with a single YAML configuration file. It is designed to be easy to use and can be extended with third-party themes, plugins, and Markdown extensions. - https://github.com/mkdocs/mkdocs
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 MkDocs
01. Now that Docker is installed, run the following commands to setup the MkDocs Docker container and run it
# create working directory
mkdir ~/docker/mkdocs
# set owner of working directories
sudo chown $USER:$USER ~/docker -R
# allow the container to write to working directories
sudo chmod a+rwx -R ~/docker/mkdocs
# run mkdocs container
docker run -d name=mkdocs -p 8000:8000 -v ~/docker/mkdocs/:/mkdocs restart=unless-stopped polinux/mkdocs
02. Open a web browser and navigate to http://DNSorIP:8000
03. Welcome to MkDocs running in Docker
Read the Docs Theme
01. Back in the terminal, continue with the following commands
# stop the container
docker stop mkdocs
# edit the mkdocs configuration file
sudo nano ~/docker/mkdocs/mkdocs.yml
02. Add the following line to mkdocs.yml
theme: readthedocs
03. Press CTRL+O, Enter, CTRL+X to write the changes
04. Run the following command to see the change
# restart the container
docker start mkdocs
05. Back in the web browser, refresh the mkdocs page
Source: https://www.mkdocs.org/getting-started/
Documentation: https://hub.docker.com/r/polinux/mkdocs
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Run MkDocs - Read the Docs Alternative - in Docker](https://i.ytimg.com/vi/Fnx8w_uqyuM/mqdefault.jpg)
![Run Matomo - Google Analytics Alternative - in Docker
#Matomo #Analytics #Docker
Full steps can be found at https://i12bretro.github.io/tutorials/0279.html
What is Matomo?
Matomo is the leading Free/Libre open analytics platform. Matomo aims to be a Free software alternative to Google Analytics and is already used on more than 1,400,000 websites. Privacy is built-in! - https://github.com/matomo-org/matomo
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 Matomo
01. Continue with the following commands in a terminal window
# create a working directory
mkdir ~/docker/matomo -p && mkdir ~/docker/mariadb -p
# set owner of working directories
sudo chown $USER:$USER ~/docker -R
# allow the container to write to working directories
sudo chmod a+rwx -R ~/docker/matomo
# run the mariadb docker container
docker run -d name mariadb -e MYSQL_ROOT_PASSWORD=r00tp@$$ -e MYSQL_USER=matomo_rw -e MYSQL_PASSWORD=M4tom0! -e MYSQL_DATABASE=matomo -v ~/docker/mariadb:/var/lib/mysql -p 3306:3006 restart=unless-stopped mariadb:latest
# start the matomo container
docker run -d name matomo link mariadb -p 80:80 -v ~/docker/matomo:/var/www/html -e MATOMO_DATABASE_HOST=mariadb -e MATOMO_DATABASE_USERNAME=matomo_rw -e MATOMO_DATABASE_PASSWORD=M4tom0! -e MATOMO_DATABASE_DBNAME=matomo restart=unless-stopped matomo
02. Open a web browser and navigate to http://DNSorIP
03. Click Next at the Welcome screen
04. Scroll to the bottom of the System Check screen ≫ Click Next
05. Verify the Database Setup form ≫ Click Next
06. Click Next on the Creating the Tables page
07. Enter a Superuser login, password and email ≫ Click Next
08. Complete the form to setup the first site to start tracking analytics ≫ Click Next
09. Click Next then Continue to Matomo
10. Login with the Superuser username and password created earlier
11. Welcome to Matomo
Additional Information: https://matomo.org/
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Run Matomo - Google Analytics Alternative - in Docker](https://i.ytimg.com/vi/FxFcRMVodDI/mqdefault.jpg)
![Running PHP Server Monitor in Docker
#PHP Server Monitor #Docker #Linux
Full steps can be found at https://i12bretro.github.io/tutorials/0558.html
What is PHP Server Monitor
PHP Server Monitor is a script that checks whether your websites and servers are up and running. It comes with a web based user interface where you can manage your services and websites, and you can manage users for each server with a mobile number and email address. - https://www.phpservermonitor.org/
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 PHP Server Monitor
01. Now that Docker is installed, run the following commands to setup the PHP Server Monitor Docker container and run it
# run the PHP Server Monitor docker container
# create working directories
mkdir /home/$USER/docker/mariadb -p
# set owner of working directories
sudo chown $USER:$USER /home/$USER/docker -R
# create phpServerMonitor network
docker network create phpServerMonitor
# run the php server monitor docker container
docker run -d name phpservermonitor network phpServerMonitor -p 8080:80 -e MYSQL_HOST=db -e MYSQL_USER=servermon_rw -e MYSQL_PASSWORD=Serv3rM0n! -e MYSQL_DATABASE=server_monitor -e MYSQL_DATABASE_PREFIX= -e TIME_ZONE=America/New_York -e PSM_REFRESH_RATE_SECONDS=60 -e PSM_AUTO_CONFIGURE=true -v /sessions restart=unless-stopped phpservermonitor/phpservermon:latest
# run the mariadb docker container
docker run -d name mariadb network phpServerMonitor network-alias db -e MYSQL_ROOT_PASSWORD=r00tp@ss -e MYSQL_USER=servermon_rw -e MYSQL_PASSWORD=Serv3rM0n! -e MYSQL_DATABASE=server_monitor -v /home/$USER/docker/mariadb:/var/lib/mysql restart=unless-stopped mariadb:latest
02. Open a web browser and navigate to http://DNSorIP:8080/install.php
03. The PHP Server Monitor setup screen should be displayed
04. Click the Lets Go button
05. Create an administrator account by entering a username, password and email address ≫ Click Install
06. After the installation completes click Go to your monitor
07. Login with the administator account created earlier
08. Welcome to PHP Server Monitor
Documentation: https://hub.docker.com/r/phpservermonitor/phpservermon
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Running PHP Server Monitor in Docker](https://i.ytimg.com/vi/GOeDUQMrt8Q/mqdefault.jpg)

![Run Dashy Application Dashboard in Docker
#Dashy #Dashboard #Docker
Full steps can be found at https://i12bretro.github.io/tutorials/0992.html
What is Dashy?
[Dashy is] a self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more! - https://github.com/Lissy93/dashy
Installing Docker
01. Log into the Linux Docker host and run the following commands in a terminal window
# 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 Dashy
01. Continue with the following commands in a terminal window
# create working directories
mkdir ~/docker/dashy -p
# download default conf.yml
wget -O ~/docker/dashy/conf.yml https://raw.githubusercontent.com/Lissy93/dashy/refs/heads/master/user-data/conf.yml
# set owner of working directories
sudo chown $USER:$USER ~/docker -R
# allow the container to write to working directories
sudo chmod a+rwx -R ~/docker/dashy
# run the dashy docker image
docker run -d name dashy -p 8080:8080 -v ~/docker/dashy:/app/user-data restart=unless-stopped lissy93/dashy:latest
02. Open a web browser and navigate to http://DNSorIP:8080
03. Welcome to Dashy
Source: https://github.com/Lissy93/dashy?tab=readme-ov-file#getting-started-
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Run Dashy Application Dashboard in Docker](https://i.ytimg.com/vi/GfuTdFSh1xc/mqdefault.jpg)
![Containerized Self-Hosted ACME Server with Step-CA in Docker
#ACME #StepCA #LetsEncrypt #SSL
Full steps can be found at https://i12bretro.github.io/tutorials/0749.html
What is Step-CA?
[Step-CA is] a private certificate authority (X.509 & SSH) & ACME server for secure automated certificate management, so you can use TLS everywhere & SSO for SSH. - https://github.com/smallstep/certificates
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 Step-CA Server
01. Continue with the following commands in a terminal window
# create a working directory
mkdir ~/docker/step-ca -p
# start the step-ca container
# change the INIT_NAME and DNS_NAMES variables as needed
docker run -d name=step-ca -v ~/docker/step-ca:/home/step -p 9000:9000 -e DOCKER_STEPCA_INIT_NAME=i12bretro Certificate Authority -e DOCKER_STEPCA_INIT_DNS_NAMES=$(hostname -f) smallstep/step-ca
# enable the acme provisioner
docker exec -it step-ca step ca provisioner add acme type ACME
# restart the step-ca container
docker restart step-ca
Automating Certificate Requests
01. Log into the server needing to request a certificate
02. Continue following commands in a terminal window
# if on a remote server from the docker host, copy the root-ca.crt file
scp ≪%user%≫@≪%dockerhostDNSorIP%≫:~/docker/step-ca/certs/root_ca.crt ~/root_ca.crt
# remove apt version of certbot if installed
sudo apt remove certbot -y
# install snapd
sudo apt install snapd -y
# install snap core and update
sudo snap install core; sudo snap refresh core
# install certbot snap
sudo snap install classic certbot
# create certbot symbolic link
sudo ln -s /snap/bin/certbot /usr/bin/certbot
# request the certificate
sudo REQUESTS_CA_BUNDLE=~/root_ca.crt certbot certonly standalone -d ≪%host-DNS-name%≫ server https://≪%step-ca-docker-host%≫:9000/acme/acme/directory
03. When prompted, enter an email address and agree to the terms of service
04. Choose whether to share your email and receive emails from certbot
05. Certbot will output information regarding the location of the certificate files
Documentation: https://hub.docker.com/r/smallstep/step-ca
Sources: https://certbot.eff.org/instructions?ws=other&os=debianbuster
https://smallstep.com/docs/tutorials/acme-challenge/
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Containerized Self-Hosted ACME Server with Step-CA in Docker](https://i.ytimg.com/vi/Gksq9Tx92j0/mqdefault.jpg)

![i12bretro Plays the [Hated?] Video Background Music
#i12bretro #Guitar #Music
Full steps can be found at https://i12bretro.github.io/tutorials/0826.html
This is the surprisingly polarizing background music I use in my tutorial videos. I wrote this about five years ago and could never come up with a fitting melody, but I liked the mellow vibe, so I decided to use it in the background of my videos when I started the channel. I get quite a few comments from viewers liking the tune and many more of them hating it. The truth of it is, I live near an airport and without some kind of background music youd be able to hear airplanes flying over during my voiceovers. Or Id have to stop and start recording frequently to wait for the air traffic to clear. Making the voiceovers is already my least favorite part of the video creation process, so I dont want it to take any longer than it already does, so the background music is here to stay. Enjoy!
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro i12bretro Plays the [Hated?] Video Background Music](https://i.ytimg.com/vi/HQIvvBh0FaE/mqdefault.jpg)