Uploaded May 2024 | Updated November 2026, 3 hours ago
#PHPServerMonitor #Uptime #Linux
Full steps can be found at i12bretro.github.io/tutorials/0557.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. - phpservermonitor.org
--------------------------------------------------------------------
Installation
--------------------------------------------------------------------
01. Log into the Linux device
02. Run the following commands in a terminal:
# update software repositories
sudo apt update
# install 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 php7.3 libapache2-mod-php7.3 php7.3-curl php7.3-common php7.3-json php7.3-mysql php7.3-xml
# 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 database and database user
CREATE DATABASE server_monitor;
GRANT ALL ON server_monitor.* to 'servermon_rw'@'localhost' IDENTIFIED BY '$erv3rM0n!';
FLUSH PRIVILEGES;
EXIT;
exit
12. Continue with the following commands to download and extract PHP Server Monitor in the Apache webroot
# download latest PHP Server Monitor
wget -O phpservermon.tar.gz github.com/phpservermon/phpservermon/releases/download/v3.5.2/phpservermon-3.5.2.tar.gz
# extract the tar.gz
sudo tar xzvf phpservermon.tar.gz --directory /var/www/html
# rename the extracted folder
sudo mv /var/www/html/phpservermon-3.5.2 /var/www/html/monitor
# create config.php placeholder
sudo touch /var/www/html/monitor/config.php
# set the owner of the new monitor directory to www-data
sudo chown -R www-data:www-data /var/www/html/monitor
# set the PHP timezone, change the timezone as needed before running
sudo sed -i "s/^;date.timezone =/\date.timezone = America\/New_York/" /etc/php/7.3/apache2/php.ini
# restart apache2 service for the changes to take effect
sudo systemctl restart apache2
13. Open a web browser and navigate to http://DNSorIP/monitor/install.php
14. The PHP Server Monitor setup screen should be displayed
15. Click the Let's Go button
16. Fill out the database connetion information as follows
Database host: localhost
Database port: 3306
Database name: server_monitor
Database user: servermon_rw
Database password: $erv3rM0n!
Table prefix:
17. Click Save configuration
18. Refresh the page
19. Create an administrator account by entering a username, password and email address ≫ Click Install
20. After the installation completes click Go to your monitor
21. Login with the administator account created earlier
22. Welcome to PHP Server Monitor
Source: github.com/phpservermon/phpservermon
### Connect with me and others ###
★ Discord: discord.com/invite/EzenvmSHW8
★ Reddit: reddit.com/r/i12bretro
★ Twitter: twitter.com/i12bretro
#PHPServerMonitor #Uptime #Linux
Full steps can be found at i12bretro.github.io/tutorials/0557.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. - phpservermonitor.org
--------------------------------------------------------------------
Installation
--------------------------------------------------------------------
01. Log into the Linux device
02. Run the following commands in a terminal:
# update software repositories
sudo apt update
# install 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 php7.3 libapache2-mod-php7.3 php7.3-curl php7.3-common php7.3-json php7.3-mysql php7.3-xml
# 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 database and database user
CREATE DATABASE server_monitor;
GRANT ALL ON server_monitor.* to 'servermon_rw'@'localhost' IDENTIFIED BY '$erv3rM0n!';
FLUSH PRIVILEGES;
EXIT;
exit
12. Continue with the following commands to download and extract PHP Server Monitor in the Apache webroot
# download latest PHP Server Monitor
wget -O phpservermon.tar.gz github.com/phpservermon/phpservermon/releases/download/v3.5.2/phpservermon-3.5.2.tar.gz
# extract the tar.gz
sudo tar xzvf phpservermon.tar.gz --directory /var/www/html
# rename the extracted folder
sudo mv /var/www/html/phpservermon-3.5.2 /var/www/html/monitor
# create config.php placeholder
sudo touch /var/www/html/monitor/config.php
# set the owner of the new monitor directory to www-data
sudo chown -R www-data:www-data /var/www/html/monitor
# set the PHP timezone, change the timezone as needed before running
sudo sed -i "s/^;date.timezone =/\date.timezone = America\/New_York/" /etc/php/7.3/apache2/php.ini
# restart apache2 service for the changes to take effect
sudo systemctl restart apache2
13. Open a web browser and navigate to http://DNSorIP/monitor/install.php
14. The PHP Server Monitor setup screen should be displayed
15. Click the Let's Go button
16. Fill out the database connetion information as follows
Database host: localhost
Database port: 3306
Database name: server_monitor
Database user: servermon_rw
Database password: $erv3rM0n!
Table prefix:
17. Click Save configuration
18. Refresh the page
19. Create an administrator account by entering a username, password and email address ≫ Click Install
20. After the installation completes click Go to your monitor
21. Login with the administator account created earlier
22. Welcome to PHP Server Monitor
Source: github.com/phpservermon/phpservermon
### Connect with me and others ###
★ Discord: discord.com/invite/EzenvmSHW8
★ Reddit: reddit.com/r/i12bretro
★ Twitter: twitter.com/i12bretro
![Running Shinobi CCTV in Docker
#Shinobi #CCTV #Docker
Full steps can be found at https://i12bretro.github.io/tutorials/0549.html
What is Shinobi?
Shinobi is Open Source, written in Node.js, and real easy to use. It is the future of CCTV and NVR for developers and end-users alike. It is catered to by professionals and most importantly by the one who created it. - https://shinobi.video/
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 Shinobi Container
01. Now that Docker is installed, run the following commands to setup the Shinobi Docker container and run it
# create working directories
sudo mkdir /home/$USER/docker/shinobi/config -p && sudo mkdir /home/$USER/docker/shinobi/data && sudo mkdir /home/$USER/docker/shinobi/videos
# run the Run Shinobi docker container
docker run -d -p 8080:8080 -v /etc/localtime:/etc/localtime:ro -v /etc/timezone:/etc/timezone:ro -v /home/$USER/docker/shinobi/config:/config -v /home/$USER/docker/shinobi/data:/var/lib/mysql -v /home/$USER/docker/shinobi/videos:/opt/shinobi/videos -v /dev/shm/shinobiDockerTemp:/dev/shm/streams migoller/shinobidocker
02. Open a web browser and navigate to http://DNSorIP:8080/super
03. Login with the username admin@shinobi.video and password admin
04. Select Preferences from the top navigation menu
05. Change the admin user email address and enter and confirm a new password
06. Click Save at the top of the page
07. Welcome to Shinobi
Documentation: https://registry.hub.docker.com/r/migoller/shinobidocker/
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Running Shinobi CCTV in Docker](https://i.ytimg.com/vi/WeK-JnaYaow/mqdefault.jpg)
![Running Homepage Application Dashboard on Windows
#Homepage #Dashboard #Windows
Full steps can be found at https://i12bretro.github.io/tutorials/0882.html
What is Homepage?
[Homepage is] a modern, fully static, fast, secure fully proxied, highly customizable application dashboard with integrations for over 100 services and translations into multiple languages. Easily configured via YAML files or through docker label discovery. - https://github.com/benphelps/homepage
Installing Homepage
01. Log into the Windows device
02. Download the latest Homepage release https://github.com/benphelps/homepage/releases/latest
03. Download NodeJS https://nodejs.org/en/download/current/
04. Install NodeJS ≫ During the install, make sure to check the Tools for Native Modules option
05. At the Native Modules prompt, press any key to begin the installation process
NOTE: This process takes quite a while to install, be patient. Proceed once the PowerShell window closes
06. Extract the downloaded Homepage files
07. Rename the extracted folder homepage
08. Cut the homepage folder to a location it can safely run from, C:Program Fileshomepage in this example
09. Hold the SHIFT key and right click in the white space ≫ Open PowerShell window here...
10. Run the following commands in the PowerShell window
# install dependencies
npm install
# create .env file from example
Copy-Item .srcskeleton -Destination .config -Recurse
# build homepage
npm run build
# run homepage
npm start
11. Open a web browser and navigate to http://DNSorIP:3000
12. Welcome to Homepage
Run Homepage on System Startup (Optional, but recommended)
01. Press CTRL + C to kill the running Homepage process
02. Open a text editor and paste the following
:: Start homepage server
cd /D %~dp0
start homepage /b npm start
03. Save the file as homepage.bat in the homepage directory, C:Program Fileshomepage in this example
04. Click on the Start Button ≫ Type task ≫ Launch Task Scheduler
05. Right click the Task Scheduler Library folder in the left pane ≫ Create Basic Task...
06. Set the name to Homepage and optionally set a Description ≫ Click Next
07. For the Trigger, select When the computer starts ≫ Click Next
08. For the Action, select Start a program ≫ Click Next
09. Complete the form fields as follows:
Program/script: %ProgramFiles%homepagehomepage.bat
Add arguments:
Start in:
10. Click Next
11. Check the Open the Properties dialog checkbox ≫ Click Finish
12. In the Properties dialog, click the Change User or Group... button
13. Type System in the Object name field ≫ Click OK
14. Check the Run with highest privileges box
15. Click OK to create the scheduled task
16. Right click the Homepage task ≫ Run
17. Refresh the open web browser to verify Homepage is now running from the scheduled task
Source: https://github.com/gethomepage/homepage?tab=readme-ov-file#with-node
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Running Homepage Application Dashboard on Windows](https://i.ytimg.com/vi/WkuNY6tnxU0/mqdefault.jpg)
![Running an Amazon Linux (AL2) VM in Proxmox
#AmazonLinux #Proxmox #AL2VM
Full steps can be found at https://i12bretro.github.io/tutorials/0155.html
What is Amazon Linux?
Amazon Linux 2 is a Linux operating system from Amazon Web Services (AWS). It provides a security-focused, stable, and high-performance execution environment to develop and run cloud applications. - https://aws.amazon.com/amazon-linux-2
Creating the VM
01. Open a web browser and navigate to the ProxMox web UI (ie https://ProxMoxDNSorIP:8006/)
02. Right click the Proxmox node name ≫ Create VM
03. Give the VM a unique ID and Name ≫ Next
04. On the OS tab, Select Do not use any media, leave the Type as Linux and the Version as 5.x - 2.6 Kernel ≫ Next
05. On the System tab, leave the defaults and check the Qemu Agent box to enable it ≫ Next
06. On the Hard Disk tab, delete the scsi0 disk ≫ Next
07. On the CPU tab, set Cores to 1 or more and Type to host ≫ Next
08. On the Memory tab, set the Memory to 512 or more ≫ Next
09. Leave the defaults on the Network tab ≫ Next
10. Verify the summary and click Finish
11. Click the Proxmox node in the left navigation menu ≫ Shell
12. Run the following commands in the web shell
# lookup the latest amazon linux file name
regex=≪td≫≪a href=([^/]*.qcow2)≫[^/]*≪/a≫≪/td≫ && response=$(curl -s -L https://cdn.amazonlinux.com/os-images/latest/kvm/) && [[ $response =~ $regex ]] && downloadURL=${BASH_REMATCH[1]}
# download the amazon linux virtual disk
wget -O /tmp/al2.qcow2 https://cdn.amazonlinux.com/os-images/latest/kvm/$downloadURL
# import the downloaded virtual disk
# update the vmid and destination storage pool to match your environment
# usage
# qm importdisk ≪%target vmid%≫ ≪%path to source disk%≫ ≪%destination storage device%≫ [OPTIONS]
qm importdisk 2000 /tmp/al2.qcow2 SSD_100GB
13. Once the import completes, select the newly created Amazon Linux VM from the left navigation panel
14. Select Hardware from the left sub-navigation menu
15. Double click the Unused Disk to edit it ≫ Click the Add button
16. Click the Add dropdown ≫ CloudInit Drive
17. Set the target storage for the CloudInit drive ≫ Click the Add button
18. Select Cloud-Init from the left sub-navigation menu
19. Edit each of the Cloud-Init fields to set a username, password and DNS/network parameters
20. Select Options from the left sub-navigation menu
21. Double click Boot Order
22. Check the Enabled box next to the hard disk and drag it up in the boot order as needed, typically below the CD-ROM device
23. Click OK
24. Click the Start button in the top right of the screen
25. Select Console from the left sub-navigation menu to watch the boot process
Setting Up Amazon Linux 2
01. Once the boot process completes, login with the username and password set in the Cloud-Init settings earlier
02. Run the following commands in the terminal
# elavate to root
sudo su
# enable hostname preservation in cloud-init config
echo -e npreserve_hostname: true ≫≫ /etc/cloud/cloud.cfg
# set the hostname
hostnamectl set-hostname amazon-linux
# output hostname details
hostnamectl
# update software repositories
yum check-update
# install available updates
yum update
# install qemu-guest-agent
yum install qemu-guest-agent -y
# shutdown
shutdown now
03. Once the VM has shutdown completely, power it back up on clicking the Start button at the top right of the screen
04. After the boot process completes, login back in
05. Continue with the following command in the terminal
# verify hostname details were retained
sudo hostnamectl
06. Welcome to Amazon Linux running in Proxmox
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Running an Amazon Linux (AL2) VM in Proxmox](https://i.ytimg.com/vi/Wrjt6S4wwHs/mqdefault.jpg)


![Running Homer Application Dashboard in Docker
#Homer #Dashboard #Docker
Full steps can be found at https://i12bretro.github.io/tutorials/0589.html
What is Homer?
A dead simple static HOMepage for your servER to keep your services on hand, from a simple yaml configuration file. - https://github.com/bastienwirtz/homer
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 Homer
01. Now that Docker is installed, run the following commands to setup the Homer Docker container and run it
# create working directories
mkdir /home/$USER/docker/homer -p
# set owner of working directories
sudo chown $USER:$USER /home/$USER/docker -R
# run the homer docker container
docker run -d name homer -p 8080:8080 -v /home/$USER/docker/homer:/www/assets restart=unless-stopped b4bz/homer:latest
02. Open a web browser and navigate to http://DNSorIP:8080
03. Welcome to Homer
04. To make changes to the dashboard, edit the config.yml file with the following command
# edit homer config.yml
sudo nano ~/docker/homer/config.yml
05. Press CTRL+O, Enter, CTRL+X to write the changes
06. Back in the web browser, refresh the page to view the changes
Documentation: https://hub.docker.com/r/b4bz/homer
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Running Homer Application Dashboard in Docker](https://i.ytimg.com/vi/XGOnM292uac/mqdefault.jpg)

![Running Passbolt in Docker on Ubuntu Server
#Passbolt #Docker #Linux
Full steps can be found at https://i12bretro.github.io/tutorials/0464.html
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/ubuntu/gpg | sudo apt-key add -
# add docker apt 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
# 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 Passbolt Container
01. Continue with the following commands in a terminal window
# create working directories
mkdir /home/$USER/docker/passbolt -p && mkdir /home/$USER/docker/mariadb -p
# set owner of working directories
sudo chown $USER:$USER /home/$USER/docker -R
# run the mariadb docker container
docker run name mariadb -e MYSQL_ROOT_PASSWORD=r00tp@$$ -e MYSQL_USER=passbolt_rw -e MYSQL_PASSWORD=p@$$b0lt -e MYSQL_DATABASE=passbolt -v /home/$USER/docker/mariadb:/var/lib/mysql -p 3306:3306 -d mariadb
# run the passbolt docker container, replace 10.10.27.11 with your docker host IP address
docker run name passbolt -p 8081:80 -e DATASOURCES_DEFAULT_HOST=10.10.27.11 -e DATASOURCES_DEFAULT_PASSWORD=p@$$b0lt -e DATASOURCES_DEFAULT_USERNAME=passbolt_rw -e DATASOURCES_DEFAULT_DATABASE=passbolt -d passbolt/passbolt
# create an admin user account
docker exec passbolt su -m -c bin/cake passbolt register_user -u i12bretro@i12bretro.local -f i12bretro -l
i12bretro -r admin -s /bin/sh www-data
02. Copy the registration link generated
03. Open a web browser and navigate to http://DNSorIP:8081/≪registration link copied above≫
04. The Passbolt setup screen should be displayed
05. Enter a passphrase
06. Click the download button to download the key and store it in a safe place ≫ Click the Next button
07. Set a color and 3 letter security token ≫ Click the Next button
08. Follow the steps to install the Passbolt browser extension
09. Click the link to refresh after installing the extension
10. Welcome to Passbolt Password Vault running in a Docker container
Source: https://help.passbolt.com/hosting/install/ce/docker, https://hub.docker.com/r/passbolt/passbolt
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Running Passbolt in Docker on Ubuntu Server](https://i.ytimg.com/vi/XQzFK7Bi8gw/mqdefault.jpg)

![Installing Ajenti Web Administration Panel
#Ajenti #WebPanel #Linux
Full steps can be found at https://i12bretro.github.io/tutorials/0009.html
What is Ajenti?
[Ajenti is] an admins tool for a more civilized age, providing you with a fast and secure way to manage a remote Linux box at any time using everyday tools like a web terminal, text editor, file manager and others.- https://ajenti.org/
01. Log into the Linux device
02. Run the following commands in a terminal:
# update software repositories
sudo apt update
# install software updates
sudo apt upgrade -y
# install pre-requisites
sudo apt install build-essential python3-pip python3-dev python3-lxml python3-dbus python3-augeas libssl-dev python3-apt ntpdate -y
# upgrade pip
sudo pip3 install setuptools pip wheel -U
# install ajenti
sudo pip3 install ajenti-panel ajenti.plugin.ace ajenti.plugin.augeas ajenti.plugin.auth-users ajenti.plugin.core ajenti.plugin.dashboard ajenti.plugin.datetime ajenti.plugin.filemanager ajenti.plugin.filesystem ajenti.plugin.network ajenti.plugin.notepad ajenti.plugin.packages ajenti.plugin.passwd ajenti.plugin.plugins ajenti.plugin.power ajenti.plugin.services ajenti.plugin.settings ajenti.plugin.terminal
# create and edit ajenti.service
sudo nano /lib/systemd/system/ajenti.service
03. Paste the following configuration into the service file
[Unit]
Description=Ajenti panel
After=network.target
[Service]
Type=forking
PIDFile=/var/run/ajenti.pid
ExecStart=/usr/bin/python3 /usr/local/bin/ajenti-panel -d
ExecStartPost=/bin/sleep 5
[Install]
WantedBy=multi-user.target
04. Press CTRL+O, Enter, CTRL+X to write the changes
05. Continue with the following commands:
# reload daemons
sudo systemctl daemon-reload
# enable and start ajenti service
sudo systemctl enable ajenti now
# set the PANEL variable
PANEL=$(which ajenti-panel)
# create and edit the initscript
sudo nano /etc/init.d/ajenti
06. Paste the following into the init file
#!/bin/sh
### BEGIN INIT INFO
# Provides: ajenti
# Required-Start: $network $syslog $local_fs
# Required-Stop: $network $syslog $local_fs
# Should-Start: $local_fs
# Should-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Ajenti
# Description: Ajenti administration frontend
### END INIT INFO
if [ -e /lib/lsb/init-functions ]; then
. /lib/lsb/init-functions
log_success() {
log_success_msg $1
}
log_failure() {
log_failure_msg $1
}
else
. /etc/rc.d/init.d/functions
log_success() {
echo_success
echo $1
}
log_failure() {
echo_failure
echo $1
}
fi
NAME=Ajenti
PIDFILE=/var/run/ajenti.pid
case $1 in
start)
echo Starting $NAME:
export LC_CTYPE=en_US.UTF8
if pidofproc -p $PIDFILE $PANEL ≫ /dev/null; then
log_failure already running
exit 1
fi
if $DAEMON -d ; then
log_success started
else
log_failure failed
fi
;;
stop)
echo Stopping $NAME:
if pidofproc -p $PIDFILE $PANEL ≫ /dev/null; then
killproc -p $PIDFILE $PANEL
/bin/rm -rf $PIDFILE
log_success stopped
else
log_failure not running
fi
;;
restart)
$0 stop && sleep 2 && $0 start
;;
status)
if pidofproc -p $PIDFILE $PANEL ≫ /dev/null; then
log_success $NAME is running
else
log_success $NAME is not running
fi
;;
*)
echo Usage: $0 {start|stop|restart|status}
exit 1
esac
exit 0
07. Press CTRL+O, Enter, CTRL+X to write the changes
08. Continue with the following commands:
# make the init script executable
sudo chmod +x /etc/init.d/ajenti
# run the init script
sudo /etc/init.d/ajenti start
09. Open a web browser and navigate to http://DNSorIP:8000
10. Login with the username root and the root Linux password
11. Welcome to Ajenti
Source: http://docs.ajenti.org/en/latest/man/install.html
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Installing Ajenti Web Administration Panel](https://i.ytimg.com/vi/YBE_RnkIVxY/mqdefault.jpg)
![Run OpenVPN Access Server in Docker
#OpenVPN #Docker #Containerize
Full steps can be found at https://i12bretro.github.io/tutorials/0946.html
What is OpenVPN Access Server?
OpenVPN Access Server, [a] self-hosted VPN solution, simplifies the rapid deployment of a secure remote access and site-to-site solution with a web-based administration interface and built-in OpenVPN Connect app distribution with bundled connection profiles. - https://openvpn.net/access-server/
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 OpenVPN Access Server
01. Now that Docker is installed, run the following commands to setup the OpenVPN Access Server Docker container and run it
# create working directory
mkdir ~/docker/openvpn-as -p
# run openvpn access server container
docker run -d name openvpn-as cap-add=NET_ADMIN -p 943:943 -p 8443:443 -p 1194:1194/udp -v ~/docker/openvpn-as:/openvpn openvpn/openvpn-as
# find the temporary password
docker logs openvpn-as | grep Auto-generated pass
02. Locate the line Auto-generated pass = and copy the password to your clipboard
03. Open a web browser and navigate to https://DNSorIP:943/admin
04. Login with the username openvpn and the Auto-generated password located earlier
05. Click the Agree button to accept the EULA
06. Click User Management ≫ User Permissions in the left navigation
07. Click the edit icon next to the openvpn user
08. Enter a new password in the Password field ≫ Click the Save Settings button
09. Click Logout at the bottom of the left navigation
10. Log back in with the username openvpn and the updated password
11. Welcome to OpenVPN Access Server running in Docker
Source: https://openvpn.net/as-docs/docker.html
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro Run OpenVPN Access Server in Docker](https://i.ytimg.com/vi/YQQjyWefFNA/mqdefault.jpg)