Uploaded September 2023 | Updated September 2026, 2 weeks ago
#MediaWiki #Linux #Debian
Full steps can be found at i12bretro.github.io/tutorials/0347.html
01. Log into the Debian device
02. Run the following commands in a terminal:
# update repositories and install any available software updates
sudo apt update
sudo apt upgrade -y
# install Apache HTTPD and MySQL
sudo apt-get install apache2 mariadb-server mariadb-client curl
# install PHP components
sudo apt install php php-common php-mysql php-cli php-json php-opcache php-gd php-curl php-gd php-mbstring php-xml php-xmlrpc php-soap php-intl php-zip
# configure the MySQL database
sudo su
mysql_secure_installation
03. Press Enter to login as root
04. Type Y and press Enter to set a root password, type the password twice to confirm
05. Type Y and press Enter to remove anonymous users
06. Type Y and press Enter to disallow root login remotely
07. Type Y and press Enter to remove the test database
08. Type Y and press Enter to reload privilege tables
09. Run the following command to login into MySQL:
mysql -u root -p
10. Authenticate with the root password set earlier
11. Run the following commands to create the MediaWiki database and database user
CREATE DATABASE wikidb;
GRANT ALL ON wikidb.* TO 'wikiuser'@'localhost' IDENTIFIED BY 'WikiW1k1Wh@t!!';
FLUSH PRIVILEGES;
EXIT;
exit
12. Continue with the following commands to download and extract MediaWiki in the Apache webroot
# download latest MediaWiki version
sudo wget -O mediawiki.tar.gz releases.wikimedia.org/mediawiki/1.35/mediawiki-1.35.1.tar.gz
# extract mediawiki.tar.gz
sudo tar xzvf mediawiki.tar.gz --directory /var/www/html
# rename mediawiki folder
sudo mv /var/www/html/mediawiki* /var/www/html/wiki
# set the owner of the new wiki directory to www-data
sudo chown -R www-data:www-data /var/www/html/wiki
# restart apache2 service
sudo systemctl restart apache2
13. Open a web browser and navigate to http://DNSorIP/wiki
14. Click the set up the wiki first link
15. Select a language ≫ Click Continue
16. Scroll to the bottom of the page and click Continue
17. Enter the database host, name, username and password ≫ Click Continue
Host: localhost
Name: wikidb
Username: wikiuser
Password: WikiW1k1Wh@t!!
18. Leave Use the same account as for installation checked and click Continue
19. Give the Wiki a name and create an administrator username and password
20. Uncheck the Share data about this installation with MediaWiki developers box
21. Check the I'm bored already, just install the wiki box
22. Click Continue and the Continue again to begin the installation
23. After the installation completes click Continue
24. Download the generated LocalSettings.php to the Downloads directory
25. Run the following command in terminal to place the LocalSettings.php in the correct location
sudo mv ~/Downloads/LocalSettings.php /var/www/html/wiki
26. Back in the browser click the enter your wiki link
27. Click the Log In link at the top right
28. Log in with the administrator account created during the installation
29. Welcome to WikiMedia
### Connect with me and others ###
★ Discord: discord.com/invite/EzenvmSHW8
★ Reddit: reddit.com/r/i12bretro
★ Twitter: twitter.com/i12bretro
#MediaWiki #Linux #Debian
Full steps can be found at i12bretro.github.io/tutorials/0347.html
01. Log into the Debian device
02. Run the following commands in a terminal:
# update repositories and install any available software updates
sudo apt update
sudo apt upgrade -y
# install Apache HTTPD and MySQL
sudo apt-get install apache2 mariadb-server mariadb-client curl
# install PHP components
sudo apt install php php-common php-mysql php-cli php-json php-opcache php-gd php-curl php-gd php-mbstring php-xml php-xmlrpc php-soap php-intl php-zip
# configure the MySQL database
sudo su
mysql_secure_installation
03. Press Enter to login as root
04. Type Y and press Enter to set a root password, type the password twice to confirm
05. Type Y and press Enter to remove anonymous users
06. Type Y and press Enter to disallow root login remotely
07. Type Y and press Enter to remove the test database
08. Type Y and press Enter to reload privilege tables
09. Run the following command to login into MySQL:
mysql -u root -p
10. Authenticate with the root password set earlier
11. Run the following commands to create the MediaWiki database and database user
CREATE DATABASE wikidb;
GRANT ALL ON wikidb.* TO 'wikiuser'@'localhost' IDENTIFIED BY 'WikiW1k1Wh@t!!';
FLUSH PRIVILEGES;
EXIT;
exit
12. Continue with the following commands to download and extract MediaWiki in the Apache webroot
# download latest MediaWiki version
sudo wget -O mediawiki.tar.gz releases.wikimedia.org/mediawiki/1.35/mediawiki-1.35.1.tar.gz
# extract mediawiki.tar.gz
sudo tar xzvf mediawiki.tar.gz --directory /var/www/html
# rename mediawiki folder
sudo mv /var/www/html/mediawiki* /var/www/html/wiki
# set the owner of the new wiki directory to www-data
sudo chown -R www-data:www-data /var/www/html/wiki
# restart apache2 service
sudo systemctl restart apache2
13. Open a web browser and navigate to http://DNSorIP/wiki
14. Click the set up the wiki first link
15. Select a language ≫ Click Continue
16. Scroll to the bottom of the page and click Continue
17. Enter the database host, name, username and password ≫ Click Continue
Host: localhost
Name: wikidb
Username: wikiuser
Password: WikiW1k1Wh@t!!
18. Leave Use the same account as for installation checked and click Continue
19. Give the Wiki a name and create an administrator username and password
20. Uncheck the Share data about this installation with MediaWiki developers box
21. Check the I'm bored already, just install the wiki box
22. Click Continue and the Continue again to begin the installation
23. After the installation completes click Continue
24. Download the generated LocalSettings.php to the Downloads directory
25. Run the following command in terminal to place the LocalSettings.php in the correct location
sudo mv ~/Downloads/LocalSettings.php /var/www/html/wiki
26. Back in the browser click the enter your wiki link
27. Click the Log In link at the top right
28. Log in with the administrator account created during the installation
29. Welcome to WikiMedia
### Connect with me and others ###
★ Discord: discord.com/invite/EzenvmSHW8
★ Reddit: reddit.com/r/i12bretro
★ Twitter: twitter.com/i12bretro





![Create a Secure Web Based Password Vault with Keepass Web
#KeepassWeb #PasswardVault #Linux
Full steps can be found at https://i12bretro.github.io/tutorials/0233.html
01. Log into the Debian device
02. Run the following commands in a terminal:
# update repositories and install any available software updates
sudo apt update
sudo apt upgrade
# install apache2
sudo apt install apache2
# download and extract keepass web
wget https://github.com/keeweb/keeweb/archive/gh-pages.zip
sudo unzip gh-pages.zip -d /var/www/html/
sudo mv /var/www/html/keeweb-gh-pages /var/www/html/keepass
# create webdav directory and set permissions
sudo mkdir /var/www/html/webdav
sudo chown -R www-data:www-data /var/www/html/webdav
# change permissions on the newly setup application folder
sudo chown -R www-data:www-data /var/www/html/keepass
# create a new keepass.conf file to configure the site
sudo nano /etc/apache2/sites-available/keepass.conf
03. Paste the following directives into keepass.conf
DavLockDB /var/www/html/webdav/DavLock
≪Location /keepass ≫
RewriteEngine on
RewriteCond %{REQUEST_METHOD} OPTIONS
RewriteRule ^(.*)$ blank.html [R=200,L,E=HTTP_ORIGIN:%{HTTP:ORIGIN}]
# Dont require LDAP authentication for a healthcheck
SetEnvIf Request_URI ^/healhcheck accessgranted=1
Order deny,allow
Satisfy any
Deny from all
Allow from env=accessgranted
AuthType Basic
AuthBasicProvider ldap
AuthLDAPURL ldap://i12bretro.local:389/DC=i12bretro,DC=local?sAMAccountName?sub?(objectClass=user) NONE
AuthLDAPBindDN readonly_svc@i12bretro.local
AuthLDAPBindPassword Read0nly!!
AuthName Restricted Area [i12bretro.local]
# to authenticate a domain group, specify the full DN
AuthLDAPGroupAttributeIsDN on
require ldap-group CN=WebAuthAccess,CN=Users,DC=i12bretro,DC=local
≪/Location≫
≪Location /webdav≫
DAV On
AuthType Basic
AuthName webdav
Options Indexes
Header always set Access-Control-Allow-Origin *
Header always set Access-Control-Allow-Headers origin, content-type, cache-control, accept, authorization, if-match, destination, overwrite
Header always set Access-Control-Expose-Headers ETag
Header always set Access-Control-Allow-Methods GET, HEAD, POST, PUT, OPTIONS, MOVE, DELETE, COPY, LOCK, UNLOCK
Header always set Access-Control-Allow-Credentials true
≪/Location≫
04. Edit the index.html file and modify the kw-config meta tag, setting the value to config.json
#
sudo nano /var/www/html/keepass/index.html
05. Press CTRL+O, Enter, CTRL+X to write the changes to index.html
06. Create and edit config.json to by running the following command:
sudo nano /var/www/html/keepass/config.json
07. Paste the following in to config.json
{
settings: {
theme: fb,
autoSave: true,
autoSaveInterval: 1,
canOpenDemo: false,
dropbox: false,
gdrive: false,
onedrive: false,
canExportXml: true
},
files: [{
storage: webdav,
name: Database,
path: /webdav/database.kdbx
}]
}
08. Press CTRL+O, Enter, CTRL+X to write the changes to config.json
09. Continue by executing the following commands in terminal:
# enable the keepass site and required Apache modules
sudo a2ensite keepass
sudo a2enmod dav dav_fs ldap authnz_ldap rewrite headers
# restart apache2 service for the changes to take effect
sudo systemctl restart apache2
10. Open a web browser and navigate to http://DNSorIP/keepass
11. Authenticate with a valid LDAP user account
12. Click the New icon
13. Click the New link in the lower left hand corner
14. Enter a Master password and re-type it to confirm
15. Enter a Name for the keepass database
16. Click the Save to... button ≫ File
17. Save the database to ~/database.kdbx
18. Close the browser
19. Continue by executing the following commands in terminal:
# copy the keepass database to webdav directory
sudo mv ~/database.kdbx /var/www/html/webdav/
20. Open a web browser and navigate to http://DNSorIP/keepass
....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 Create a Secure Web Based Password Vault with Keepass Web](https://i.ytimg.com/vi/fJkWzZS8KVA/mqdefault.jpg)
![Monitor Docker Container Resource Usage with cAdvisor
#cAdvisor #Docker #Monitoring
Full steps can be found at https://i12bretro.github.io/tutorials/0828.html
What is cAdvisor?
cAdvisor (Container Advisor) provides container users an understanding of the resource usage and performance characteristics of their running containers. It is a running daemon that collects, aggregates, processes, and exports information about running containers. - https://github.com/google/cadvisor
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 the cAdvisor Container
01. Now that Docker is installed, run the following commands to setup the cAdvisor Docker container and run it
# run the cadvisor container
sudo docker run -d name=cadvisor -p 8080:8080 -v /:/rootfs:ro -v /var/run:/var/run:ro -v /sys:/sys:ro -v /var/lib/docker/:/var/lib/docker:ro -v /dev/disk/:/dev/disk:ro privileged device=/dev/kmsg restart=unless-stopped gcr.io/cadvisor/cadvisor
02. Open a web browser and navigate to http://DNSorIP:8080
03. Welcome to cAdvisor
Documentation: https://hub.docker.com/r/google/cadvisor
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Monitor Docker Container Resource Usage with cAdvisor](https://i.ytimg.com/vi/fMcXUxJwcrU/mqdefault.jpg)
![Run HomeDash - Server MonitorDashboard - on Linux
#Homedash #Dashboard #Linux
Full steps can be found at https://i12bretro.github.io/tutorials/0904.html
What is Homedash?
HomeDash is a simple dashboard that allows to monitor and interact with many different services in order to have a single entry point for ones dedicated server via a set of Plugins. Its easy to install, setup and use. - https://lamarios.github.io/Homedash2/
Installing Java and Maven
01. Log into the Linux based device
02. Run the following commands in the terminal
# update software respositories
sudo apt update
# install available software updates
sudo apt upgrade -y
# install java and maven
sudo apt install default-jdk maven -y
# check java version
java version
# check maven version
mvn -version
Running HomeDash
01. Now that Java and Maven are installed, run the following commands to run HomeDash
# create working directories
sudo mkdir /opt/homedash2 -p
# set owner of working directories
sudo chown $USER:$USER /opt/homedash2 -R
# change directory to the new folder
cd /opt/homedash2
# lookup latest homedash jar URL
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]}
# download the latest release
wget -O ./homedash.jar $downloadURL
# generate a config file
java -jar ./homedash.jar -create-config
# run homedash
java -Dconfig.file=/opt/homedash2/homedash.properties -jar homedash.jar
02. Open a web browser and navigate to http://DNSorIP:4567
03. Welcome to HomeDash
Documentation: https://github.com/lamarios/HomeDash2
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Run HomeDash - Server MonitorDashboard - on Linux](https://i.ytimg.com/vi/fQdQs4mnczs/mqdefault.jpg)
![Install MeshCentral - Remote Management Site - on Linux
#MeshCentral #HomeLab #Linux
Full steps can be found at https://i12bretro.github.io/tutorials/0962.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 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 is working
node -v
# test npm is working
npm -v
Installing MeshCentral
01. Continue with the following commands:
# create a meshcentral folder
sudo mkdir /usr/local/bin/meshcentral
# change to the new directory
cd /usr/local/bin/meshcentral
# install meshcentral
sudo npm install meshcentral
# create a service file
sudo nano /etc/systemd/system/meshcentral.service
02. Paste the following configuration
[Unit]
Description=MeshCentral Server
[Service]
Type=simple
LimitNOFILE=1000000
ExecStart=/usr/bin/node /usr/local/bin/meshcentral/node_modules/meshcentral
WorkingDirectory=/usr/local/bin/meshcentral
Environment=NODE_ENV=production
Restart=always
# Restart service after 10 seconds if node service crashes
RestartSec=10
# Set port permissions capability
AmbientCapabilities=cap_net_bind_service
[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 meshcentral service
sudo systemctl enable meshcentral.service now
05. Open a web browser and navigate to https://DNSorIP
06. Accept the certificate warning
07. Click the link to create an account
08. Complete the form by entering an username, email and password ≫ Click Create Account
09. Welcome to MeshCentral
Source: https://meshcentral.com/docs/MeshCentral2InstallGuide.pdf
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Install MeshCentral - Remote Management Site - on Linux](https://i.ytimg.com/vi/fd23f5-LgZc/mqdefault.jpg)

