Uploaded October 2023 | Updated November 2026, 3 hours ago
#Akaunting #AccountingSoftware #Linux
Full steps can be found at i12bretro.github.io/tutorials/0831.html
--------------------------------------------------------------------
What is Akaunting?
--------------------------------------------------------------------
Akaunting is a free, open source and online accounting software designed for small businesses and freelancers. - github.com/akaunting/akaunting
--------------------------------------------------------------------
Installation
--------------------------------------------------------------------
01. Log into the Linux device
02. Run the following commands in a terminal window:
# update software repositories
sudo apt update
# install prerequisites
sudo apt install curl wget zip lsb-release apt-transport-https ca-certificates -y
# add the php gpg key
sudo wget -O /etc/apt/trusted.gpg.d/php.gpg packages.sury.org/php/apt.gpg
# add the php apt repository
echo "deb packages.sury.org/php $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php.list
# update software repositories
sudo apt update
# install available software updates
sudo apt upgrade -y
# install Apache HTTPD and MySQL
sudo apt install apache2 mariadb-server mariadb-client -y
# install PHP components
sudo apt install php8.0 libapache2-mod-php8.0 php8.0-common php8.0-xml php8.0-bcmath php8.0-gd php8.0-mbstring php8.0-curl php8.0-zip php8.0-gmp php8.0-mysql php8.0-intl -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 unix 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 database and database user
CREATE DATABASE akaunting;
GRANT ALL ON akaunting.* to 'akaunting_rw'@'localhost' IDENTIFIED BY '@kaunt1ng!';
FLUSH PRIVILEGES;
EXIT;
exit
13. Continue with the following commands:
# lookup latest akaunting release URL
regex='"browser_download_url": "(https:\/\/github.com\/akaunting\/akaunting\/releases\/download\/[^/]*\/[^/]*\.zip)"' && response=$(curl -H "Accept: application/vnd.github.v3+json" api.github.com/repos/akaunting/akaunting/releases/latest) && [[ $response =~ $regex ]] && downloadURL="${BASH_REMATCH[1]}"
# download the latest release
wget -O /tmp/akaunting.zip $downloadURL
# extract the download .zip archive
sudo unzip /tmp/akaunting.zip -d /var/www/html/akaunting
# copy sample .env file
sudo cp /var/www/html/akaunting/.env.example /var/www/html/akaunting/.env
# generate application key
# if prompted, answer yes
sudo php /var/www/html/akaunting/artisan key:generate
# set the owner of the akaunting directory
sudo chown -R www-data:www-data /var/www/html/akaunting
# enable mod_rewrite
sudo a2enmod rewrite
# restart apache2 service
sudo systemctl restart apache2
--------------------------------------------------------------------
Akaunting Web Installer
--------------------------------------------------------------------
01. Open a web browser and navigate to http://DNSorIP/akaunting/index.php
02. Select a Language ≫ Click Next
03. Complete the Database form as shown below
Hostname: localhost
Username: akaunting_rw
Password: @kaunt1ng!
Database: akaunting
04. Click Next
05. Complete the Admin form by entering a Company Name, Company Email, Admin Email and Admin Password ≫ Click Next
06. Log in with the Admin username and password
07. On the Company tab, scroll to the bottom of the form and click Skip this step
08. Select/add the desired currencies ≫ Click Next
09. Click Next on the Taxes tab
10. Click the Create your first invoice link
11. Welcome to Akaunting
Source: akaunting.com/docs/installation
### Connect with me and others ###
★ Discord: discord.com/invite/EzenvmSHW8
★ Reddit: reddit.com/r/i12bretro
★ Twitter: twitter.com/i12bretro
#Akaunting #AccountingSoftware #Linux
Full steps can be found at i12bretro.github.io/tutorials/0831.html
--------------------------------------------------------------------
What is Akaunting?
--------------------------------------------------------------------
Akaunting is a free, open source and online accounting software designed for small businesses and freelancers. - github.com/akaunting/akaunting
--------------------------------------------------------------------
Installation
--------------------------------------------------------------------
01. Log into the Linux device
02. Run the following commands in a terminal window:
# update software repositories
sudo apt update
# install prerequisites
sudo apt install curl wget zip lsb-release apt-transport-https ca-certificates -y
# add the php gpg key
sudo wget -O /etc/apt/trusted.gpg.d/php.gpg packages.sury.org/php/apt.gpg
# add the php apt repository
echo "deb packages.sury.org/php $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php.list
# update software repositories
sudo apt update
# install available software updates
sudo apt upgrade -y
# install Apache HTTPD and MySQL
sudo apt install apache2 mariadb-server mariadb-client -y
# install PHP components
sudo apt install php8.0 libapache2-mod-php8.0 php8.0-common php8.0-xml php8.0-bcmath php8.0-gd php8.0-mbstring php8.0-curl php8.0-zip php8.0-gmp php8.0-mysql php8.0-intl -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 unix 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 database and database user
CREATE DATABASE akaunting;
GRANT ALL ON akaunting.* to 'akaunting_rw'@'localhost' IDENTIFIED BY '@kaunt1ng!';
FLUSH PRIVILEGES;
EXIT;
exit
13. Continue with the following commands:
# lookup latest akaunting release URL
regex='"browser_download_url": "(https:\/\/github.com\/akaunting\/akaunting\/releases\/download\/[^/]*\/[^/]*\.zip)"' && response=$(curl -H "Accept: application/vnd.github.v3+json" api.github.com/repos/akaunting/akaunting/releases/latest) && [[ $response =~ $regex ]] && downloadURL="${BASH_REMATCH[1]}"
# download the latest release
wget -O /tmp/akaunting.zip $downloadURL
# extract the download .zip archive
sudo unzip /tmp/akaunting.zip -d /var/www/html/akaunting
# copy sample .env file
sudo cp /var/www/html/akaunting/.env.example /var/www/html/akaunting/.env
# generate application key
# if prompted, answer yes
sudo php /var/www/html/akaunting/artisan key:generate
# set the owner of the akaunting directory
sudo chown -R www-data:www-data /var/www/html/akaunting
# enable mod_rewrite
sudo a2enmod rewrite
# restart apache2 service
sudo systemctl restart apache2
--------------------------------------------------------------------
Akaunting Web Installer
--------------------------------------------------------------------
01. Open a web browser and navigate to http://DNSorIP/akaunting/index.php
02. Select a Language ≫ Click Next
03. Complete the Database form as shown below
Hostname: localhost
Username: akaunting_rw
Password: @kaunt1ng!
Database: akaunting
04. Click Next
05. Complete the Admin form by entering a Company Name, Company Email, Admin Email and Admin Password ≫ Click Next
06. Log in with the Admin username and password
07. On the Company tab, scroll to the bottom of the form and click Skip this step
08. Select/add the desired currencies ≫ Click Next
09. Click Next on the Taxes tab
10. Click the Create your first invoice link
11. Welcome to Akaunting
Source: akaunting.com/docs/installation
### Connect with me and others ###
★ Discord: discord.com/invite/EzenvmSHW8
★ Reddit: reddit.com/r/i12bretro
★ Twitter: twitter.com/i12bretro
![Running AriaNg - Browser Based Download Utility - in Docker
#AriaNg #Aria2 #Docker
Full steps can be found at https://i12bretro.github.io/tutorials/0466.html
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/ubuntu/gpg | sudo apt-key add -
# add docker software repository
sudo add-apt-repository deb [arch=amd64] https://download.docker.com/linux/ubuntu $(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 AriaNg
01. Now that Docker is installed, run the following commands to setup the AriaNg Docker container and run it
# create working directory
mkdir ~/docker/ariang/data -p
# run the ariang docker container
docker run -d name ariang -p 8002:80 -p 6800:6800 -e PUID=1000 -e PGID=1000 -e ENABLE_AUTH=false -e RPC_SECRET=SomethingSecure -e ARIA2_SSL=false -e ARIA2_EXTERNAL_PORT=6800 -v ~/docker/ariang/data:/data restart unless-stopped wahyd4/aria2-ui
02. Once the AriaNg container is downloaded and running, open a web browser and navigate to http://DNSorIP:8002/ui
03. Welcome to AriaNg running in a Docker container
Documentation: https://github.com/wahyd4/aria2-ariang-docker
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Running AriaNg - Browser Based Download Utility - in Docker](https://i.ytimg.com/vi/5Qj32yZE4MQ/mqdefault.jpg)
![Running a MacOS 14 Sonoma VM in ProxMox VE
#MacOS #Sonoma #Proxmox #VirtualMachine
*** Updated 03/31/2024
Full steps can be found at https://i12bretro.github.io/tutorials/0566.html
💡 NOTE: MacOS higher than version 12 requires a CPU with AVX2 instruction support
01. Download a MacOS Sonoma .iso https://archive.org/search.php?query=MacOS%20collection&and[]=mediatype%3A%22software%22 OR create your own https://youtu.be/JFMvUpdCMwo
02. Download KVM OpenCore bootloader https://github.com/thenickdude/KVM-Opencore/releases
03. Extract the downloaded KVM OpenCore bootloader .gz file
04. Upload the Sonoma and KVM OpenCore .iso files to the Proxmox ISO library
05. Log into the ProxMox web UI
06. Right click the ProxMox node name ≫ Create VM
07. Type MacOSSonoma in the name field, set the VM ID to 1400 (unless 1400 is in use) ≫ Next
08. On the OS tab, set the Type field to Other and select the KVM OpenCore .iso in the ISO Image field ≫ Next
09. On the System tab, set the Graphic card field to VMware compatible, BIOS field to OVMF (UEFI), Uncheck the Pre-Enroll Keys checkbox, Check the Add EFI Disk checkbox, Machine field to q35 and the SCSI Controller to VirtIO SCSI ≫ Next
10. On the Hard Disk tab, set the Bus/Device field to VirtIO Block, Disk size field to 64, Cache field to Write back (unsafe) ≫ Next
11. On the CPU tab, set Cores field to 4, Type field to host ≫ Next
12. On the Memory tab, set the Memory to 4096 ≫ Next
13. On the Network tab, set the Model field to VMware vmxnet3 ≫ Next
14. Verify the summary and click Finish
15. Click the MacOSSonoma VM ≫ Select Hardware from the left sub-navigation menu
16. Click Add ≫ CD/DVD Drive
17. Select the MacOS Sonoma .iso downloaded earlier ≫ Click Create
18. Select the MacOSSonoma VM ≫ Options ≫ Boot Order
19. Set the KVM OpenCore disk as the first boot option ≫ Click OK
20. Right click the ProxMox node name ≫ Console
21. Run the following commands in the terminal
# edit the VM conf file, change 1400 to the VM ID for the MacOSSonoma VM
nano /etc/pve/qemu-server/1400.conf
22. If running on an Intel CPU, add the following line to the bottom of the .conf file:
FULL STEPS ON GITHUB LINK ABOVE
23. If running on an AMD CPU, add the following line to the bottom of the .conf file:
FULL STEPS ON GITHUB LINK ABOVE
24. Press CTRL+W and search for ,media=cdrom
25. Delete the ,media=cdrom from the two attached .iso files (KVM OpenCore and Sonoma) and add cache=unsafe
26. Press CTRL+O, Enter, CTRL+X to write the changes to the conf file
27. Back in the Proxmox web UI, right click the MacOSSonoma VM in the left navigation pane ≫ Start
28. Click console in the left sub-navigation menu
29. At the OpenCore menu, select UEFI Shell ≫ Press Enter
30. Type the following in the UEFI shell:
# change to the Sonoma.iso, the disk number may be different for you
fs0:
# launch the MacOS installer
SystemLibraryCoreServicesboot.efi
31. After a long initialization sequence the MAC OS Setup should start
32. Select Disk Utility
33. Select the VIRTIO Block Media ≫ Click Erase
34. Name the drive MacOS ≫ Set the Format to APFS ≫ Click Erase
35. Click Done ≫ Close Disk Utility
36. Click Install macOS Sonoma
37. Click Continue ≫ Click Agree ≫ Click Agree again
38. Select the MacOS disk ≫ Click Install
39. Wait while Mac OS installs files, the VM will reboot several times
40. Select your Country or Region ≫ Click Continue
41. Confirm your languages and keyboard layout ≫ Click Continue
42. Click Not Now on the Accessibility screen
43. Click Continue on the Data & Privacy screen
44. Select Not Now on the Migration Assistant screen
45. Select Set Up Later and then Skip on the Apple ID screen
46. Click Agree ≫ Agree again
47. Enter a name, user name, password ≫ Click Continue
48. Click Continue ≫ Select Use or Dont Use for Location Services
49. Pick a timezone ≫ Click Continue
50. Uncheck Share Mac Analytics with Apple ≫ Click Continue
51. Click Set Up Later on the Screen Time screen
52. Pick a theme ≫ Click Continue
53. Welcome to MacOS 14 Sonoma
Configuring Booting Without OpenCore Mounted
01. Log into the MacOSSonoma VM
02. Launch a web browser and download the KVM OpenCore EFI folder https://github.com/thenickdude/KVM-Opencore/releases
03. Download MountEFI from GitHub https://github.com/corpnewt/MountEFI
04. Start LaunchPad from the dock
05. Search terminal ≫ Click Terminal to launch it
06. Run the following commands in the terminal window
cd ~/Downloads/MountEFI
chmod +x MountEFI.command
./MountEFI.command
....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 a MacOS 14 Sonoma VM in ProxMox VE](https://i.ytimg.com/vi/68R2SdbFj-8/mqdefault.jpg)
![Run HomeDash - Server Monitor/Dashboard - in Docker
#Homedash #Dashboard #Docker
Full steps can be found at https://i12bretro.github.io/tutorials/0786.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 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 HomeDash
01. Now that Docker is installed, run the following commands to setup the HomeDash Docker container
# create working directories
mkdir ~/docker/homedash -p
# set owner of working directories
sudo chown $USER:$USER ~/docker -R
# generate a 32 character random string
RANDOM_STRING=$(head /dev/urandom | LC_ALL=C tr -dc A-Za-z0-9 | head -c 32)
# copy the output string to the clipboard
# run the homedash container
docker run -d name homedash -p 4567:4567 -v /etc/localtime:/etc/localtime:ro -v ~/docker/homedash:/data -e SALT=$RANDOM_STRING restart=unless-stopped gonzague/homedash
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 Monitor/Dashboard - in Docker](https://i.ytimg.com/vi/6XcEUggRR1U/mqdefault.jpg)
![Install Dashy Application Dashboard on Linux
#Dashy #Dashboard #Linux
Full steps can be found at https://i12bretro.github.io/tutorials/0991.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 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_18.x | sudo bash -
# install nodejs
sudo apt install nodejs -y
# test node is working
node -v
# test npm is working
npm -v
Running Dashy
01. Continue with the following commands:
# install git
sudo apt install git -y
# cd back to home
cd ~
# clone dashy github repo
git clone https://github.com/Lissy93/dashy.git ./dashy
# cd into git clone
cd dashy
# 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 ignore-engines
# create .env file backup
cp ./.env ./.env.orig
# build dashy
yarn build
# run dashy
yarn start
02. Open a web browser and navigate to http://DNSorIP:4000
03. Welcome to Dashy
Source: https://github.com/Lissy93/dashy/blob/master/docs/quick-start.md#alternative-deployment-method-1 from-source
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Install Dashy Application Dashboard on Linux](https://i.ytimg.com/vi/6i3_qeol2f4/mqdefault.jpg)

![Install BookStack - Documentation/Wiki Platform - on Linux
#BookStack #Wiki #Linux
Full steps can be found at https://i12bretro.github.io/tutorials/0919.html
What is BookStack?
BookStack is an opinionated wiki system that provides a pleasant and simple out-of-the-box experience. New users to an instance should find the experience intuitive and only basic word-processing skills should be required to get involved in creating content on BookStack. The platform should provide advanced power features to those that desire it but they should not interfere with the core simple user experience. - https://github.com/BookStackApp/BookStack
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 php libapache2-mod-php php-curl php-tokenizer php-ldap php-cli php-json php-gd php-mbstring php-mysql php-xml php-zip php-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 BookStack database and database user
CREATE DATABASE bookstack;
GRANT ALL ON bookstack.* to bookstack_rw@localhost IDENTIFIED BY B00k$t@ck!;
FLUSH PRIVILEGES;
EXIT;
exit
12. Continue with the following commands:
# clone bookstack from github
sudo git clone https://github.com/BookStackApp/BookStack.git branch release single-branch /var/www/bookstack
# create a copy of the sample .env file
sudo cp /var/www/bookstack/.env.example /var/www/bookstack/.env
# edit the .env file
sudo nano /var/www/bookstack/.env
13. Edit the following environment variables as needed
APP_ENV=production
APP_DEBUG=false
APP_KEY=SomethingSecure
APP_URL=http://debian/bookstack
APP_TIMEZONE=America/New_York
APP_LOCALE=en
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_DATABASE=bookstack
DB_USERNAME=bookstack_rw
DB_PASSWORD=B00k$t@ck!
MAIL_DRIVER=smtp
MAIL_HOST=smtp.i12bretro.local
MAIL_PORT=25
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDR=bookstack@i12bretro.local
MAIL_FROM_NAME=BookStack
MAIL_REPLYTO_ADDR=bookstack@i12bretro.local
MAIL_REPLYTO_NAME=BookStack
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 bookstack directory
sudo chown -R www-data:www-data /var/www/bookstack
# setup composer working directory
sudo mkdir /var/www/.composer
sudo chown -R www-data:www-data /var/www/.composer
cd /var/www/bookstack
# install dependencies with composer
sudo -u www-data composer install no-dev no-plugins
# generate app key
sudo php artisan key:generate no-interaction force
# migrate the database
sudo php artisan migrate no-interaction force
# create bookstack apache configuration
sudo nano /etc/apache2/sites-available/bookstack.conf
16. Paste the following configuration into bookstack.conf
Alias /bookstack /var/www/bookstack/public
≪Directory /var/www/bookstack/public≫
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
≪IfModule mod_rewrite.c≫
≪IfModule mod_negotiation.c≫
Options -MultiViews -Indexes
≪/IfModule≫
RewriteEngine On
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
....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 Install BookStack - Documentation/Wiki Platform - on Linux](https://i.ytimg.com/vi/7DY-BaOEnpM/mqdefault.jpg)
![Install FocalBoard - Project and Task Management Platform - on Linux
#Focalboard #Linux #Kanban
Full steps can be found at https://i12bretro.github.io/tutorials/0960.html
What is FocalBoard?
Focalboard is an open source, multilingual, self-hosted project management tool thats an alternative to Trello, Notion, and Asana. It helps define, organize, track and manage work across individuals and teams. - https://github.com/mattermost/focalboard
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 nginx and MySQL database
sudo apt install nginx mariadb-server mariadb-client -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 database and database user
CREATE DATABASE focalboard DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
GRANT ALL ON focalboard.* TO focalboard_rw@localhost IDENTIFIED BY Foc@lB0a4d;
FLUSH PRIVILEGES;
EXIT;
exit
13. Continue with the following commands to download and extract FocalBoard to the webroot
# fetch the latest download URL
regex=browser_download_url: (https://github.com/mattermost/focalboard/releases/download/[^/]*/focalboard-server-linux-amd64.tar.gz) && response=$(curl -H Accept: application/vnd.github.v3+json https://api.github.com/repos/mattermost/focalboard/releases) && [[ $response =~ $regex ]] && downloadURL=${BASH_REMATCH[1]}
# download latest focalboard version
wget -O /tmp/focalboard.tar.gz $downloadURL
# extract the downloaded archive
sudo tar -xvzf /tmp/focalboard.tar.gz -C /opt
# edit focalboard configuration
sudo nano /opt/focalboard/config.json
14. Update the dbtype and dbconfig to the following
dbtype: mysql,
dbconfig: focalboard_rw:Foc@lB0a4d@tcp(127.0.0.1:3306)/focalboard,
15. Continue with the following commands
# create nginx config file
sudo nano /etc/nginx/sites-available/focalboard
16. Paste the following configuration
upstream focalboard {
server localhost:8000;
keepalive 32;
}
server {
listen 80 default_server;
server_name focalboard.example.com;
location ~ /ws/* {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
client_max_body_size 50M;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Frame-Options SAMEORIGIN;
proxy_buffers 256 16k;
proxy_buffer_size 16k;
client_body_timeout 60;
send_timeout 300;
lingering_timeout 5;
proxy_connect_timeout 1d;
proxy_send_timeout 1d;
proxy_read_timeout 1d;
proxy_pass http://focalboard;
}
location / {
client_max_body_size 50M;
proxy_set_header Connection ;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Frame-Options SAMEORIGIN;
proxy_buffers 256 16k;
proxy_buffer_size 16k;
proxy_read_timeout 600s;
proxy_cache_revalidate on;
proxy_cache_min_uses 2;
proxy_cache_use_stale timeout;
proxy_cache_lock on;
proxy_http_version 1.1;
proxy_pass http://focalboard;
}
}
17. Press CTRL+O, Enter, CTRL+X to write the changes
18. Continue with the following commands
# remove default nginx site
sudo rm /etc/nginx/sites-enabled/default
# enable the focalboard site config
....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 Install FocalBoard - Project and Task Management Platform - on Linux](https://i.ytimg.com/vi/7KhhKpCJGVo/mqdefault.jpg)



