Uploaded April 2024 | Updated September 2026, 2 weeks ago
#MyBB #Forum #Linux
Full steps can be found at i12bretro.github.io/tutorials/0934.html
--------------------------------------------------------------------
What is MyBB?
--------------------------------------------------------------------
MyBB is the free and open source forum software powering thousands of engaging, vibrant, and unique communities across the internet. - mybb.com
--------------------------------------------------------------------
Installation
--------------------------------------------------------------------
01. Log into the Linux device
02. Run the following commands in a terminal:
# update software repositories
sudo apt update
# install any available software updates
sudo apt upgrade -y
# install Apache HTTPD and MySQL
sudo apt install apache2 mariadb-server mariadb-client wget zip -y
# install PHP components
sudo apt install php php-mysql php-common php-gd php-mbstring php-xml -y
# configure the MySQL database
sudo su
mysql_secure_installation
03. Press Enter to login as root
04. Type N and press Enter to not switch to socket authentication
05. Type Y and press Enter to set a root password, type the password twice to confirm
06. Type Y and press Enter to remove anonymous users
07. Type Y and press Enter to disallow root login remotely
08. Type Y and press Enter to remove the test database
09. Type Y and press Enter to reload privilege tables
10. Run the following command to login into MySQL:
mysql -u root -p
11. Authenticate with the root password set earlier
12. Run the following commands to create the mybb database and database user
CREATE DATABASE mybb DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
GRANT ALL ON mybb.* TO 'mybb_rw'@'localhost' IDENTIFIED BY 'My44_rw$';
FLUSH PRIVILEGES;
EXIT;
exit
13. Continue with the following commands to download and extract MyBB to the webroot
# fetch the latest download URL
regex='"browser_download_url": "(https:\/\/github.com\/mybb\/mybb\/releases\/download\/[^/]*\/mybb_[^/]*\.zip)"' && response=$(curl -H "Accept: application/vnd.github.v3+json" api.github.com/repos/mybb/mybb/releases/latest) && [[ $response =~ $regex ]] && downloadURL="${BASH_REMATCH[1]}"
# download latest mybb version
sudo wget -O /tmp/mybb.zip $downloadURL
# extract the downloaded zip archive
sudo unzip /tmp/mybb.zip -d /var/www/html
# delete the Documentation directory
sudo rm /var/www/html/Documentation -R
# rename mybb folder
sudo mv /var/www/html/Upload /var/www/html/mybb
# rename htaccess file
sudo mv /var/www/html/mybb/htaccess.txt /var/www/html/mybb/.htaccess
# set permissions
sudo chown -R www-data:www-data /var/www/html/mybb
# create a config file
sudo touch /var/www/html/mybb/inc/config.php
# make some files writable
sudo chmod 666 /var/www/html/mybb/inc/config.php /var/www/html/mybb/inc/settings.php
sudo chmod 777 /var/www/html/mybb/cache/ /var/www/html/mybb/cache/themes/ /var/www/html/mybb/uploads/ /var/www/html/mybb/uploads/avatars/
14. Open a web browser and navigate to http://DNSorIP/mybb
15. Click Next at the Welcome screen
16. Click Next at the License Agreement
17. Click Next at the Requirements Check
18. Complete the Database Configuration as shown below
Database Engine: MySQL Improved
Database Server Hostname: localhost
Database Username: mybb_rw
Database Password: My44_rw$
Database Name: mybb
Table Prefix: mybb_
19. Click Next after the table creation completes
20. Click Next to complete the Table Population
21. Click Next at the Theme Insertion screen
22. Modify the Board Configuration form as needed ≫ Click Next
23. Create an administrator account by entering a Username, Password and Email Address ≫ Click Next
24. Back in the terminal, remove the /install directory with the following command
# remove the install directory
sudo rm /var/www/html/mybb/install -R
25. Back in the browser, navigate to http://DNSorIP/mybb/admin/index.php
26. Login with the administrator username and password created earlier
27. Welcome to MyBB
Source: docs.mybb.com/1.8/install
### Connect with me and others ###
★ Discord: discord.com/invite/EzenvmSHW8
★ Reddit: reddit.com/r/i12bretro
★ Twitter: twitter.com/i12bretro
#MyBB #Forum #Linux
Full steps can be found at i12bretro.github.io/tutorials/0934.html
--------------------------------------------------------------------
What is MyBB?
--------------------------------------------------------------------
MyBB is the free and open source forum software powering thousands of engaging, vibrant, and unique communities across the internet. - mybb.com
--------------------------------------------------------------------
Installation
--------------------------------------------------------------------
01. Log into the Linux device
02. Run the following commands in a terminal:
# update software repositories
sudo apt update
# install any available software updates
sudo apt upgrade -y
# install Apache HTTPD and MySQL
sudo apt install apache2 mariadb-server mariadb-client wget zip -y
# install PHP components
sudo apt install php php-mysql php-common php-gd php-mbstring php-xml -y
# configure the MySQL database
sudo su
mysql_secure_installation
03. Press Enter to login as root
04. Type N and press Enter to not switch to socket authentication
05. Type Y and press Enter to set a root password, type the password twice to confirm
06. Type Y and press Enter to remove anonymous users
07. Type Y and press Enter to disallow root login remotely
08. Type Y and press Enter to remove the test database
09. Type Y and press Enter to reload privilege tables
10. Run the following command to login into MySQL:
mysql -u root -p
11. Authenticate with the root password set earlier
12. Run the following commands to create the mybb database and database user
CREATE DATABASE mybb DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
GRANT ALL ON mybb.* TO 'mybb_rw'@'localhost' IDENTIFIED BY 'My44_rw$';
FLUSH PRIVILEGES;
EXIT;
exit
13. Continue with the following commands to download and extract MyBB to the webroot
# fetch the latest download URL
regex='"browser_download_url": "(https:\/\/github.com\/mybb\/mybb\/releases\/download\/[^/]*\/mybb_[^/]*\.zip)"' && response=$(curl -H "Accept: application/vnd.github.v3+json" api.github.com/repos/mybb/mybb/releases/latest) && [[ $response =~ $regex ]] && downloadURL="${BASH_REMATCH[1]}"
# download latest mybb version
sudo wget -O /tmp/mybb.zip $downloadURL
# extract the downloaded zip archive
sudo unzip /tmp/mybb.zip -d /var/www/html
# delete the Documentation directory
sudo rm /var/www/html/Documentation -R
# rename mybb folder
sudo mv /var/www/html/Upload /var/www/html/mybb
# rename htaccess file
sudo mv /var/www/html/mybb/htaccess.txt /var/www/html/mybb/.htaccess
# set permissions
sudo chown -R www-data:www-data /var/www/html/mybb
# create a config file
sudo touch /var/www/html/mybb/inc/config.php
# make some files writable
sudo chmod 666 /var/www/html/mybb/inc/config.php /var/www/html/mybb/inc/settings.php
sudo chmod 777 /var/www/html/mybb/cache/ /var/www/html/mybb/cache/themes/ /var/www/html/mybb/uploads/ /var/www/html/mybb/uploads/avatars/
14. Open a web browser and navigate to http://DNSorIP/mybb
15. Click Next at the Welcome screen
16. Click Next at the License Agreement
17. Click Next at the Requirements Check
18. Complete the Database Configuration as shown below
Database Engine: MySQL Improved
Database Server Hostname: localhost
Database Username: mybb_rw
Database Password: My44_rw$
Database Name: mybb
Table Prefix: mybb_
19. Click Next after the table creation completes
20. Click Next to complete the Table Population
21. Click Next at the Theme Insertion screen
22. Modify the Board Configuration form as needed ≫ Click Next
23. Create an administrator account by entering a Username, Password and Email Address ≫ Click Next
24. Back in the terminal, remove the /install directory with the following command
# remove the install directory
sudo rm /var/www/html/mybb/install -R
25. Back in the browser, navigate to http://DNSorIP/mybb/admin/index.php
26. Login with the administrator username and password created earlier
27. Welcome to MyBB
Source: docs.mybb.com/1.8/install
### Connect with me and others ###
★ Discord: discord.com/invite/EzenvmSHW8
★ Reddit: reddit.com/r/i12bretro
★ Twitter: twitter.com/i12bretro


![Roll Your Own Asset Management System with Snipe-IT
#SnipeIT #AssetManagement #Linux
*** Updated 03/09/2024
Full steps can be found at https://i12bretro.github.io/tutorials/0500.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
Installation
01. Log into the Linux device
02. Run the following commands in a terminal window:
# update software respositories
sudo apt update
# install available software updates
sudo apt upgrade -y
# install prerequisites
sudo apt install git openssl curl wget zip composer -y
# install Apache HTTPD and MySQL
sudo apt install apache2 mariadb-server mariadb-client -y
# install PHP components
sudo apt install php7.3 libapache2-mod-php7.3 php7.3-curl php7.3-tokenizer php7.3-ldap php7.3-cli php7.3-json php7.3-gd php7.3-mbstring php7.3-mysql php7.3-xml php7.3-zip php7.3-bcmath -y
# 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 Snipe-IT database and database user
CREATE DATABASE snipe_it;
GRANT ALL ON snipe_it.* to snipe_it_rw@localhost IDENTIFIED BY $nip3-IT!;
FLUSH PRIVILEGES;
EXIT;
exit
12. Continue with the following commands:
# clone snipe-it from github
sudo git clone https://github.com/snipe/snipe-it /var/www/snipe-it
# create a copy of the sample .env file
sudo cp /var/www/snipe-it/.env.example /var/www/snipe-it/.env
# edit the .env file
sudo nano /var/www/snipe-it/.env
13. Edit the following environment variables as needed
APP_ENV=production
APP_DEBUG=false
APP_KEY=SomethingSecure
APP_URL=http://debian/snipe_it
APP_TIMEZONE=America/New_York
APP_LOCALE=en
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_DATABASE=snipe_it
DB_USERNAME=snipe_it_rw
DB_PASSWORD=$nip3-IT!
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
14. Press CTRL+O, Enter, CTRL+X to write the changes to .env
15. Continue with the following commands:
# set the owner of the snipe-it directory
sudo chown -R www-data:www-data /var/www/snipe-it
# setup composer working directory
sudo mkdir /var/www/.composer
sudo chown -R www-data:www-data /var/www/.composer
cd /var/www/snipe-it
# install dependencies with composer
sudo -u www-data composer install no-dev prefer-source
# generate app key, type yes to confirm generating a new key
sudo php artisan key:generate
# create snipe-it apache configuration
sudo nano /etc/apache2/sites-available/snipe-it.conf
16. Paste the following configuration into snipe-it.conf
Alias /snipe-it /var/www/snipe-it/public
≪Directory /var/www/snipe-it/public≫
Allow From All
AllowOverride All
Options -Indexes
≪/Directory≫
17. Press CTRL+O, Enter, CTRL+X to write the changes to snipe-it.conf
18. Run the following command to enable the snipe-it site
# enable rewrite module
sudo a2enmod rewrite
# enable the snipe-it site
sudo a2ensite snipe-it
# restart the apache2 service
sudo systemctl restart apache2
Snipe-IT Web Installer
01. Open a web browser and navigate to http://DNSorIP/snipe-it
02. Review the Pre-Flight Checks summary ≫ Click the Next: Create Database Tables button
03. Once the database tables are created, Click the Next: Create User 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 Roll Your Own Asset Management System with Snipe-IT](https://i.ytimg.com/vi/o8eLiZLq3Ho/mqdefault.jpg)


![Install Invoice Plane - Invoice and Payment Manager - On Windows
#InvoicePlane #Accounting #Windows
Full steps can be found at https://i12bretro.github.io/tutorials/0816.html
What is Invoice Plane?
[Invoice Plane is a] self-hosted open source application for managing your invoices, clients and payments.- https://www.invoiceplane.com/
Installation
01. Download XAMPP https://sourceforge.net/projects/xampp/files/XAMPP%20Windows/
02. Download Invoice Plane https://github.com/InvoicePlane/InvoicePlane/releases/latest
03. Download Microsoft Visual C++ https://aka.ms/vs/16/release/vc_redist.x64.exe
04. Install Microsoft Visual C++
05. Right click the downloaded XAMPP file ≫ Extract All...
06. Right click the downloaded Invoice Plane .zip file ≫ Extract All...
07. Rename the extracted folder invoiceplane
08. Cut the invoiceplane folder inside the XAMPP/htdocs directory
09. Copy the extracted XAMPP directory to a safe location to run from, C:Program Files for example
10. Navigate into the XAMPP/htdocs/invoiceplane folder
11. Make a copy of the ipconfig.php.example and rename it ipconfig.php
12. Edit ipconfig.php in a text editor
13. Set the IP_URL value to http://DNSorIP/invoiceplane
IP_URL=http://localhost/invoiceplane
14. Save the changes to ipconfig.php and close the text editor
15. Run XAMPP/setup_xampp.bat to update the configuration files with the new server location
16. Run XAMPP/xampp-control.exe
17. Click the Start button next to Apache and MySQL
18. Navigate to XAMPP/mysql/bin
19. Hold the SHIFT key and right click in the white space ≫ Open PowerShell windows here...
20. Type the following in the PowerShell window to setup the database
.mysql -u root
CREATE DATABASE invoice_plane;
CREATE USER invoice_plane_rw@localhost IDENTIFIED BY Inv0!c3Pl@n3!;
GRANT ALL ON invoice_plane.* TO invoice_plane_rw@localhost;
FLUSH PRIVILEGES;
exit;
exit
Invoice Plane Web Installer
01. Open a web browser and navigate to http://DNSorIP/invoiceplane
02. The Invoice Plane Installation web installer should be load
03. Click the Setup button
04. Select a Language ≫ Click Continue
05. Click Continue on the Prerequisites page
06. Complete the Database Details form as follows
Hostname: localhost
Port: 3306
Username: invoice_plane_rw
Password: Inv0!c3Pl@n3!
Database: invoice_plane
07. Click the Try Again button then click Continue
08. Complete the Create User Account form ≫ Click Continue
09. Back in File Explorer, navigate to XAMPP/htdocs/invoiceplane and edit ipconfig.php
10. Find the DISABLE_SETUP setting and change the value to true
11. Save the changes to ipconfig.php and close the text editor
12. Back in the browser, click the Login button
13. Login with the Email and Password setup during the installation
14. Welcome to Invoice Plane
Source: https://wiki.invoiceplane.com/en/1.0/getting-started/installation
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Install Invoice Plane - Invoice and Payment Manager - On Windows](https://i.ytimg.com/vi/oQkHqsJeIVM/mqdefault.jpg)
![Installing RedMine Project Management Software on Linux
#Redmine #Linux
Full steps can be found at https://i12bretro.github.io/tutorials/0226.html
01. Log into the Debian device
02. Run the following commands in a terminal:
# update repositories
sudo apt update
# install available software updates
sudo apt upgrade
# install Apache2, Ruby, MySQL/MariaDB and redmine dependencies
sudo apt install ruby-dev apache2 libapache2-mod-passenger mariadb-server build-essential libxslt1-dev libmariadb-dev libxml2-dev zlib1g-dev imagemagick libmagickwand-dev curl
# 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 Redmine database and database user
CREATE DATABASE redmine CHARACTER SET utf8mb4;
GRANT ALL ON redmine.* to redmine@localhost IDENTIFIED BY R3dM1n3!!;
FLUSH PRIVILEGES;
EXIT;
exit
12. Continue with the following commands to download and extract Redmine
# create redmine user
sudo useradd -r -m -d /opt/redmine -s /usr/bin/bash redmine
# add redmine user to www-data group
sudo usermod -aG redmine www-data
# download latest redmine version
sudo wget -O redmine.tar.gz https://www.redmine.org/releases/redmine-4.1.2.tar.gz
# extract redmine.tar.gz
sudo -u redmine tar xzf redmine.tar.gz -C /opt/redmine/ strip-components=1
# authenticate as the redmine user
sudo su - redmine
# create copies of example configuration files
cp /opt/redmine/config/configuration.yml{.example,}
cp /opt/redmine/public/dispatch.fcgi{.example,}
cp /opt/redmine/config/database.yml{.example,}
# edit database.yml
nano /opt/redmine/config/database.yml
13. Update the following values in database.yml
production:
adapter: mysql2
database: redmine
host: localhost
username: redmine
password: R3dM1n3!!
14. Press CTRL+O, Enter, CTRL+X to write the changes to database.yml
15. Continue with the following commands
# exit redmine login
exit
# cd to /opt/redmine
cd /opt/redmine
# install bundler
sudo gem install bundler
# authenticate as the redmine user
sudo su - redmine
# install dependencies
bundle install without development test path vendor/bundle
# generate store secret
bundle exec rake generate_secret_token
# create database objects
RAILS_ENV=production bundle exec rake db:migrate
# insert database data
RAILS_ENV=production REDMINE_LANG=en bundle exec rake redmine:load_default_data
# reset permissions
chmod -R 755 /opt/redmine
# exit redmine login
exit
# cd to /opt/redmine
cd /opt/redmine
# start the redmine server
sudo bundle exec rails server webrick -e production
# create redmine apache2 conf
sudo nano /etc/apache2/sites-available/redmine.conf
16. Paste the following configuration into redmine.conf
Listen 3000
≪VirtualHost *:3000≫
ServerName redmine.kifarunix-demo.com
RailsEnv production
DocumentRoot /opt/redmine/public
≪Directory /opt/redmine/public≫
Allow from all
Require all granted
≪/Directory≫
ErrorLog ${APACHE_LOG_DIR}/redmine_error.log
CustomLog ${APACHE_LOG_DIR}/redmine_access.log combined
≪/VirtualHost≫
17. Press CTRL+O, Enter, CTRL+X to write the changes to redmine.conf
18. Continue with the following commands to enable the site and restart Apache:
# enable the required Apache modules
sudo a2enmod passenger
# enable redmine site
sudo a2ensite redmine
# restart apache2 service for the changes to take effect
sudo systemctl restart apache2
19. Open a web browser and navigate to http://DNSorIP:3000
20. Log in with the username admin and password admin
21. Enter the password admin and set and confirm a new password for the admin user
22. Welcome to Redmine
....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 Installing RedMine Project Management Software on Linux](https://i.ytimg.com/vi/oksnfQ7zVSE/mqdefault.jpg)


![Run AdGuard Home - Cross Platform Pi Hole Alternative - in Docker
#AdGuard #AdBlocker #Docker
*** Updated 06/03/2023
Full steps can be found at https://i12bretro.github.io/tutorials/0429.html
What is AdGuard Home?
AdGuard Home is a network-wide software for blocking ads and tracking. After you set it up, itll cover ALL your home devices, and you dont need any client-side software for that.
It operates as a DNS server that re-routes tracking domains to a “black hole”, thus preventing your devices from connecting to those servers. Its based on software we use for our public AdGuard DNS servers, and both share a lot of code. - https://github.com/AdguardTeam/AdguardHome
Installing Docker
01. Log into the Linux host and run the following commands in a terminal window
# update software respositories
sudo apt update
# install available software updates
sudo apt upgrade -y
# install prerequisites
sudo apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common -y
# add docker gpg key
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
# add docker apt repository
sudo apt-add-repository deb [arch=amd64] https://download.docker.com/linux/debian buster stable
# install docker
sudo apt install docker -y
# 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 AdGuard Home Container
01. Continue with the following commands in a terminal window
# make adguard working directories
mkdir ~/docker/adguard/work -p && mkdir ~/docker/adguard/conf -p
# run the adguardhome docker image
docker run name adguardhome -v ~/docker/adguard/work:/opt/adguardhome/work -v ~/docker/adguard/conf:/opt/adguardhome/conf -p 53:53/tcp -p 53:53/udp -p 80:80/tcp -p 3000:3000/tcp restart unless-stopped -d adguard/adguardhome
02. Open a web browser and navigate to http://localhost:3000
03. Click the Get Started button
04. Set the Admin Web Interface and DNS Server network interfaces and ports ≫ Click Next
05. Enter an admin username and password ≫ Click Next
06. Click Next on page 4
07. Click Open Dashboard on the Congratutations page
08. Log in using the admin username and password created during the install
09. Welcome to AdGuardHome running as a Docker container
Source: https://github.com/AdguardTeam/AdGuardHome/wiki/Docker
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Run AdGuard Home - Cross Platform Pi Hole Alternative - in Docker](https://i.ytimg.com/vi/p4jBY4WvJ6w/mqdefault.jpg)
