Thursday, March 31, 2022

How To Install Magento 2.4 on Rocky Linux 8

 in This Tutorial you will Learn "  How To Install Magento 2.4 on Rocky Linux 8"
                          
Magento is a free, open-source, PHP-based eCommerce platform and cloud solution to grow your online business rapidly. It is built on open-source technology, with a flexible shopping cart system and an admin control panel that helps you start your online store easily. Magento also offers many plugins and themes to enhance a customer’s experience.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.20        |     Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf install httpd httpd-tools mariadb-server -y
systemctl start httpd mariadb ; systemctl enable httpd mariadb
dnf module reset php ; dnf module enable php:7.4

dnf install php php-cli php-mysqlnd php-opcache php-xml php-gd php-soap php-pdo php-bcmath php-intl php-mbstring php-json php-iconv php-zip unzip git -y

gedit  /etc/php.ini &>/dev/null
memory_limit = 1024M
upload_max_filesize = 256M
zlib.output_compression = on
max_execution_time = 18000
date.timezone = Asia/Kolkata

dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
dnf install php-cli libsodium php-pear php-devel libsodium-devel make
pecl channel-update pecl.php.net
pecl install libsodium
nano /etc/php.ini
extension=sodium.so
php -i | grep sodium

mysql
CREATE DATABASE magento;
CREATE USER 'magento'@'localhost' IDENTIFIED BY 'password';
GRANT ALL ON magento.* TO 'magento'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;
FLUSH PRIVILEGES;
EXIT;

curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer

wget https://github.com/magento/magento2/archive/refs/tags/2.4.2.zip
unzip 2.4.2.zip ; mv magento2-* /var/www/html/magento2

cd /var/www/html/magento2
composer install
chown -R apache:apache /var/www/html/magento2

find var generated vendor pub/static pub/media app/etc -type f -exec chmod g+w {} +
find var generated vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} +
chown -R apache:apache .  && chmod u+x bin/magento


nano /etc/httpd/conf.d/magento.conf
<VirtualHost *:80>
ServerAdmin admin@example.com
ServerName magento.example.com
DocumentRoot /var/www/html/magento2/
DirectoryIndex index.php
<Directory /var/www/html/magento2/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/httpd/magento_error.log
CustomLog /var/log/httpd/magento_access.log combined
</VirtualHost>

systemctl restart httpd
sudo -u apache bin/magento module:disable {Magento_Elasticsearch,Magento_Elasticsearch6,Magento_Elasticsearch7}

sudo -u apache bin/magento setup:install --admin-firstname="test" --admin-lastname="tests" --admin-email="admin@example.com" --admin-user="admin" --admin-password="secure@123" --db-name="magento" --db-host="localhost" --db-user="magento" --db-password="password" --language=en_US --currency=USD --timezone=Asia/Kolkata --cleanup-database --base-url=http://"magento.example.com"

nano /etc/hosts/
192.168.1.20    magento.example.com

cd /var/www/html/magento2
sudo -u apache  bin/magento cron:install
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++





Wednesday, March 30, 2022

2 Ways To install Ruby On Rocky Linux | RVM

 in This Tutorial you will Learn " 2 Ways To install Ruby On Rocky Linux "

Ruby is a dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      | IP -192.168.1.60        |Hostname - server.yourdomain.com
_________________________________________________________________________________________
cat /etc/system-release ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y

Method - 1
dnf install gnupg2 wget curl @ruby -y
ruby --version

M- 2 RVM
RVM is a command-line tool which allows you to easily install, manage, and work with multiple ruby environments from interpreters to sets of gems.

curl -sSL https://get.rvm.io | bash
source /etc/profile.d/rvm.sh
rvm requirements
rvm list known
rvm install ruby 3.0.2
ruby --version
_________________________________________________________________________________________


Tuesday, March 29, 2022

How To Install Ruby on Rails with PostgreSQL on Rocky Linux 8

 in This Tutorial you will Learn " How To Install Ruby on Rails with PostgreSQL on Rocky Linux 8"

Ruby on Rails or RoR or Rails is a free and open-source web application framework written in Ruby with the MIT License. It is a full-stack web framework that uses the model-view-controller (MVC) pattern.
The Rails web framework provides structures for a database, web service, and web pages. Also, Rails includes some important tools such as scaffolding, Puma, Gems, etc.
PostgreSQL is an advanced, enterprise-class, and open-source relational database system.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.20        |     Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
curl -sSL https://rvm.io/mpapis.asc | gpg2 --import - ; curl -sSL https://rvm.io/pkuczynski.asc | gpg2 --import -
curl -L get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh
rvm reload ; rvm requirements run
rvm install ruby
dnf module enable nodejs:14
dnf install nodejs npm -y
npm install -g yarn
echo "export PATH=$PATH:/usr/local/bin" >> ~/.bashrc
source ~/.bashrc
gem install rails

dnf install postgresql-devel postgresql-server libpq-devel -y
postgresql-setup --initdb
nano /var/lib/pgsql/data/pg_hba.conf
systemctl restart postgresql
sudo -u postgres psql
create role rails_dev with createdb login password 'abc123';

rails new myapp -d postgresql
cd myapp/ ; nano config/database.yml
username: rails_dev
password: abc123
host: localhost
port: 5432

  database: myapp_test
  host: localhost
  port: 5432
  username: rails_dev
  password: abc123
rails db:setup
rails db:migrate
rails s -b 192.168.1.20 -p 8080
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++




Monday, March 28, 2022

How To Install Ruby on Rails with Mysql on Rocky Linux 8.5

 in This Tutorial you will Learn " How To Install Ruby on Rails with Mysql on Rocky Linux 8.5"
Or
How To Use MySQL With Ruby On Rails Application ?

Ruby on Rails or RoR or Rails is a free and open-source web application framework written in Ruby with the MIT License. It is a full-stack web framework that uses the model-view-controller (MVC) pattern.
The Rails web framework provides structures for a database, web service, and web pages. Also, Rails includes some important tools such as scaffolding, Puma, Gems, etc.
MySQL is an open-source relational database management system.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.20        |     Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
curl -sSL https://rvm.io/mpapis.asc | gpg2 --import - && curl -sSL https://rvm.io/pkuczynski.asc | gpg2 --import -

curl -L get.rvm.io | bash -s stable
source /etc/profile.d/rvm.sh
rvm reload ; rvm requirements run
rvm install ruby
dnf module enable nodejs:14
dnf install nodejs npm -y
npm install -g yarn
echo "export PATH=$PATH:/usr/local/bin" >> ~/.bashrc
source ~/.bashrc
gem install rails
rails --version ; node --version

nano /etc/yum.repos.d/mariadb.repo
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.6/rhel8-amd64
module_hotfixes=1
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
dnf update ; dnf install mariadb-server mariadb mysql-devel -y

systemctl start mariadb ; systemctl enable mariadb ; systemctl status mariadb
mariadb-secure-installation
rails new appname -d mysql
nano /root/appname/config/database.yml
password: mysql_root_password

mysql -u root -p
show databases;
cd appname/
rake db:create
rails server
rails server --binding=server_public_IP | rails server -b 0.0.0.0 | rails server -b 0.0.0.0 -p 8080
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Saturday, March 26, 2022

Setup Quick DNS Server On Rocky Linux 8.5 Using Dnsmasq

 in This Tutorial you will Learn " How To Setup Quick DNS Server On Rocky Linux 8.5 Using Dnsmasq"

Dnsmasq is a very lightweight and simple DNS server. dnsmasq can be configured to be a DNS server and a DHCP server.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.20        |     Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf -y install dnsmasq
gedit /etc/dnsmasq.conf &>/dev/null
domain-needed
bogus-priv
strict-order
server=/server.education/192.168.1.20  | line 67
expand-hosts
# line 145 : add your own domain name
domain=primaryhost.com
systemctl enable --now dnsmasq
firewall-cmd --add-service=dns ; firewall-cmd --runtime-to-permanent
_________________________________________________________________________________________
Client Host -
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf -y install bind-utils
nmcli connection modify ens33 ipv4.dns 192.168.1.20
nmcli connection down ens33; nmcli connection up ens33
dig www.primaryhost.com.
dig -x 192.168.1.20
_________________________________________________________________________________________

Wednesday, March 23, 2022

Set up DHCP Server Using Dnsmasq

 in This Tutorial you will Learn " How To Set up a DHCP Server Using Dnsmasq On Rocky Linux 8.5 "

Dnsmasq is a lightweight DNS, TFTP and DHCP server.
Dynamic Host Configuration Protocol (DHCP) is a client/server protocol that automatically provides an Internet Protocol (IP) host with its IP address and other related configuration information such as the subnet mask and default gateway.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.20        |     Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf -y install dnsmasq
gedit /etc/dnsmasq.conf &>/dev/null
dhcp-range=192.168.0.50,192.168.0.150,12h  [ line 158 ]
# line 332: add entries for Gateway, NTP, DNS, Subnetmask
dhcp-option=option:router,192.168.0.1
dhcp-option=option:ntp-server,192.168.0.20
dhcp-option=option:dns-server,192.168.0.20
dhcp-option=option:netmask,255.255.255.0
systemctl restart dnsmasq
firewall-cmd --add-service=dhcp --permanent ; firewall-cmd --reload
________________________________________________________________________________________
Configure DHCP Client -
cat /etc/system-release ; sestatus ; hostname -I
dnf -y install dhcp-client
nmcli connection modify ens33 ipv4.method auto
nmcli connection down ens33; nmcli connection up ens33
________________________________________________________________________________________


Thursday, March 17, 2022

How To Install Parvula CMS on Ubuntu 18.04

 Parvula CMS:
An extremely simple & flexible CMS generated from flat files with a complete RESTful API |
Offcial Website: https://parvulacms.github.io/
_____________________________________________________________________________________________________
Our Server Specification-     
Os:Ubuntu 18.04 LTS Bionic Beaver 64Bit   |IP address- 192.168.1.50  | Hostname :www.yourdomain.com
_____________________________________________________________________________________________________
lsb_release -cd ; hostname ; hostname -I ; whoami ; getconf LONG_BIT ; apt install -y build-essential software-properties-common curl gdebi net-tools wget curl sqlite3 dirmngr nano lsb-release apt-transport-https leafpad git sudo unzip socat bash-completion

MariaDB Repositories & Php PPA:
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8 ; add-apt-repository 'deb [arch=amd64,arm64,ppc64el] http://mirror.biznetgio.com/mariadb/repo/10.4/ubuntu bionic main' && add-apt-repository ppa:ondrej/php -y

apt-get update ; apt install -y apache2 mariadb-server mariadb-client php7.2 libapache2-mod-php7.2 php7.2-cli php7.2-fpm php7.2-cgi php7.2-bcmath php7.2-curl php7.2-gd php7.2-intl php7.2-json php7.2-mbstring php7.2-mysql php7.2-opcache php7.2-sqlite3 php7.2-xml php7.2-zip php7.2-snmp php7.2-json php7.2-imap php7.2-common php7.2-tidy php7.2-pgsql php7.2-ldap php7.2-soap php7.2-snmp php7.2-xsl  php7.2-recode php-imagick php-pear php-memcache php-apcu

a2enmod dir env headers mime rewrite setenvif ; sed -i "s/;date.timezone.*/date.timezone = Asia\/\Kolkata/" /etc/php/*/apache2/php.ini ; echo ServerName 127.0.0.1 >> /etc/apache2/apache2.conf ; systemctl start apache2 mariadb ; systemctl enable apache2 mariadb ; mysql_secure_installation

Create Mariadb Database :
mysql -u root -p
create database db;
grant all on db.* to 'dbuser'@'localhost' identified by 'dbpass';
flush privileges;
quit

curl -sS https://getcomposer.org/installer | php ; mv composer.phar /usr/local/bin/composer ; chmod +x /usr/local/bin/composer
cd /var/www/html ; composer create-project bafs/parvula parvula
cd /var/www/html/parvula/ ; composer install
chown -R www-data:www-data /var/www/html/ ; chmod -R 755 /var/www/html/

Apache VirtualHost :
leafpad /etc/apache2/sites-available/yourdomain.conf &>/dev/null
<VirtualHost *:80>

     ServerAdmin admin@yourdomain.com
     DocumentRoot /var/www/html/parvula
     ServerName www.yourdomain.com

     <Directory /var/www/html/parvula/>
          Options FollowSymlinks
          AllowOverride All
          Require all granted
     </Directory>

     ErrorLog ${APACHE_LOG_DIR}/yourdomain_error.log
     CustomLog ${APACHE_LOG_DIR}/yourdomain_access.log combined

</VirtualHost>

a2ensite yourdomain ; a2dissite 000-default.conf  ; apache2ctl configtest ; echo "192.168.1.50 www.yourdomain.com" >> /etc/hosts ; systemctl reload apache2
http://www.yourdomain.com/admin

cat /var/www/html/parvula/data/users/users.php

How To install Mono CMS on Ubuntu 18.04

 Mono CMS offers a clean and minimalistic approach to content management system  Built with PHP and no database requirement, this CMS platform lets you built great websites for personal and professional use |
Offcial Website: http://monocms.com/
_____________________________________________________________________________________________________
Our Server Specification-     
Os:Ubuntu 18.04 LTS Bionic Beaver 64Bit   |IP address- 192.168.1.50  | Hostname :www.yourdomain.com
_____________________________________________________________________________________________________
lsb_release -cd ; hostname ; hostname -I ; whoami ; getconf LONG_BIT ; apt install -y build-essential software-properties-common curl gdebi net-tools wget curl sqlite3 dirmngr nano lsb-release apt-transport-https leafpad git vim sudo unzip socat bash-completion

add-apt-repository ppa:ondrej/php -y
apt-get update ; apt install -y apache2 php7.2 libapache2-mod-php7.2 php7.2-cli php7.2-fpm php7.2-cgi php7.2-bcmath php7.2-curl php7.2-gd php7.2-intl php7.2-json php7.2-mbstring php7.2-mysql php7.2-opcache php7.2-sqlite3 php7.2-xml php7.2-zip php7.2-snmp php7.2-json php7.2-imap php7.2-common php7.2-tidy php7.2-pgsql php7.2-ldap php-imagick php-pear

a2enmod dir env headers mime rewrite setenvif ; sed -i "s/;date.timezone.*/date.timezone = Asia\/\Kolkata/" /etc/php/*/apache2/php.ini ; echo ServerName 127.0.0.1 >> /etc/apache2/apache2.conf ; systemctl start apache2 ; systemctl enable apache2

cd /tmp ; wget http://monocms.com/MonoCMS.zip
mkdir /var/www/html/monocms ; unzip MonoCMS -d /var/www/html/monocms
chown -R www-data:www-data /var/www/html/ ; chmod -R 755 /var/www/html/

Setting up Apache VirtualHost :
leafpad /etc/apache2/sites-available/yourdomain.conf &>/dev/null
<VirtualHost *:80>

     ServerAdmin admin@yourdomain.com
     DocumentRoot /var/www/html/monocms
     ServerName www.yourdomain.com

     <Directory /var/www/html/monocms/>
          Options FollowSymlinks
          AllowOverride All
          Require all granted
     </Directory>

     ErrorLog ${APACHE_LOG_DIR}/yourdomain_error.log
     CustomLog ${APACHE_LOG_DIR}/yourdomain_access.log combined

</VirtualHost>

a2ensite yourdomain ; a2dissite 000-default.conf  ; apache2ctl configtest ; echo "192.168.1.50 www.yourdomain.com" >> /etc/hosts ; systemctl reload apache2
http://www.yourdomain.com

How To Install Magnolia CMS on Ubuntu 18.04 LTS

 Magnolia is an open-source content management system (CMS). It is developed by Magnolia International Ltd., based in Basel, Switzerland. It is based on Content repository API for Java.
Offcial Website: https://www.magnolia-cms.com/
___________________________________________________________________________________________________________________________________________________
Our Server Specification-     
Os:Ubuntu 18.04 LTS Bionic Beaver 64Bit   |            IP address- 192.168.1.50                 | Hostname :www.yourdomain.com
___________________________________________________________________________________________________________________________________________________
lsb_release -cd  ; getconf LONG_BIT ; whoami ; hostname -f ; hostname -I ; apt update ;  apt install -y build-essential software-properties-common curl gdebi wget aptitude nano git net-tools lsb-release apt-transport-https

add-apt-repository ppa:linuxuprising/java -y
apt update ; apt install oracle-java12-installer -y
apt install oracle-java12-set-default -y
update-alternatives --config java
nano /etc/environment
JAVA_HOME=”/usr/lib/jvm/java-12-oracle/bin/java/”
source /etc/environment
echo $JAVA_HOME ; java -version ; javac -version


cd /opt ; wget https://liquidtelecom.dl.sourceforge.net/project/magnolia/magnolia/Magnolia%20CE%206.1/magnolia-community-demo-bundle-6.1-tomcat-bundle.zip
unzip magnolia-community-demo-bundle-6.1-tomcat-bundle.zip
 cd magnolia-6.1/
./apache-tomcat-9.0.10/bin/magnolia_control.sh start --ignore-open-files-limit
http://192.168.1.50:8080

Or

Magnolia Version:5.6.5
cd /opt
wget https://netix.dl.sourceforge.net/project/magnolia/magnolia/Magnolia%20CE%205.6.5/magnolia-community-demo-bundle-5.6.5-tomcat-bundle.zip
unzip magnolia-community-demo-bundle-5.6.5-tomcat-bundle.zip
cd magnolia-5.6.5
./apache-tomcat-8.5.5/bin/magnolia_control.sh start --ignore-open-files-limit
http://192.168.1.50:8080

How To Install LEPTON CMS on Ubuntu 18.04

 LEPTON CMS is a easy-to-use content management system with integrated jquery library for freelancing designers or php-developers and web-agencies.
Offcial Website: https://lepton-cms.org/english.php
_____________________________________________________________________________________________________
Our Server Specification-     
Os:Ubuntu 18.04 LTS Bionic Beaver 64Bit   |IP address- 192.168.1.50  | Hostname :www.yourdomain.com
_____________________________________________________________________________________________________
lsb_release -cd ; hostname ; hostname -I ; whoami ; getconf LONG_BIT ; apt install -y build-essential software-properties-common curl gdebi net-tools wget curl sqlite3 dirmngr nano lsb-release apt-transport-https leafpad git sudo unzip socat bash-completion

MariaDB Repositories & Php PPA:
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8 ; add-apt-repository 'deb [arch=amd64,arm64,ppc64el] http://mirror.biznetgio.com/mariadb/repo/10.4/ubuntu bionic main' && add-apt-repository ppa:ondrej/php -y

apt-get update ; apt install -y apache2 mariadb-server mariadb-client php7.2 libapache2-mod-php7.2 php7.2-cli php7.2-fpm php7.2-cgi php7.2-bcmath php7.2-curl php7.2-gd php7.2-intl php7.2-json php7.2-mbstring php7.2-mysql php7.2-opcache php7.2-sqlite3 php7.2-xml php7.2-zip php7.2-snmp php7.2-json php7.2-imap php7.2-common php7.2-tidy php7.2-pgsql php7.2-ldap php7.2-soap php7.2-snmp php7.2-xsl  php7.2-recode php-imagick php-pear php-memcache php-apcu

a2enmod dir env headers mime rewrite setenvif ; sed -i "s/;date.timezone.*/date.timezone = Asia\/\Kolkata/" /etc/php/*/apache2/php.ini ; echo ServerName 127.0.0.1 >> /etc/apache2/apache2.conf ; systemctl start apache2 mariadb ; systemctl enable apache2 mariadb ; mysql_secure_installation

Create Mariadb Database :
mysql -u root -p
create database db;
grant all on db.* to 'dbuser'@'localhost' identified by 'dbpass';
flush privileges;
quit

https://lepton-cms.org/english/download.php
cd /home/ubuntu/Downloads
chown -R www-data:www-data /var/www/html/ ; chmod -R 755 /var/www/html/

Apache VirtualHost :
leafpad /etc/apache2/sites-available/yourdomain.conf &>/dev/null
<VirtualHost *:80>

     ServerAdmin admin@yourdomain.com
     DocumentRoot /var/www/html/lepton/upload/
     ServerName www.yourdomain.com

     <Directory /var/www/html/lepton/upload/>
          Options FollowSymlinks
          AllowOverride All
          Require all granted
     </Directory>

     ErrorLog ${APACHE_LOG_DIR}/yourdomain_error.log
     CustomLog ${APACHE_LOG_DIR}/yourdomain_access.log combined

</VirtualHost>

a2ensite yourdomain ; a2dissite 000-default.conf  ; apache2ctl configtest ; echo "192.168.1.50 www.yourdomain.com" >> /etc/hosts ; systemctl reload apache2
http://www.yourdomain.com/install

How To install flatCore CMS on Ubuntu 18.04"

 *****************************************************************************************************
FlatCore is a Web Content Management System (CMS) based on PHP and SQLite.
Offcial Website:Official Site: https://flatcore.org
_____________________________________________________________________________________________________
Our Server Specification-     
Os:Ubuntu 18.04 LTS Bionic Beaver 64Bit   |IP address- 192.168.1.50  | Hostname :www.yourdomain.com
_____________________________________________________________________________________________________
lsb_release -cd ; hostname ; hostname -I ; whoami ; getconf LONG_BIT ; apt install -y build-essential software-properties-common curl gdebi net-tools wget curl sqlite3 dirmngr nano lsb-release apt-transport-https leafpad git sudo unzip socat bash-completion

MariaDB Repositories & Php PPA:
apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8 ; add-apt-repository 'deb [arch=amd64,arm64,ppc64el] http://mirror.biznetgio.com/mariadb/repo/10.4/ubuntu bionic main' && add-apt-repository ppa:ondrej/php -y

apt-get update ; apt install -y apache2 mariadb-server mariadb-client php7.2 libapache2-mod-php7.2 php7.2-cli php7.2-fpm php7.2-cgi php7.2-bcmath php7.2-curl php7.2-gd php7.2-intl php7.2-json php7.2-mbstring php7.2-mysql php7.2-opcache php7.2-sqlite3 php7.2-xml php7.2-zip php7.2-snmp php7.2-json php7.2-imap php7.2-common php7.2-tidy php7.2-pgsql php7.2-ldap php7.2-soap php7.2-snmp php7.2-xsl  php7.2-recode php-imagick php-pear php-memcache php-apcu

a2enmod dir env headers mime rewrite setenvif ; sed -i "s/;date.timezone.*/date.timezone = Asia\/\Kolkata/" /etc/php/*/apache2/php.ini ; echo ServerName 127.0.0.1 >> /etc/apache2/apache2.conf ; systemctl start apache2 mariadb ; systemctl enable apache2 mariadb ; mysql_secure_installation

Create Mariadb Database :
mysql -u root -p
create database db;
grant all on db.* to 'dbuser'@'localhost' identified by 'dbpass';
flush privileges;
quit

cd /var/www/html ; git clone https://github.com/flatCore/flatCore-CMS.git flatcore
chown -R www-data:www-data /var/www/html/ ; chmod -R 755 /var/www/html/

Apache VirtualHost :
leafpad /etc/apache2/sites-available/yourdomain.conf &>/dev/null
<VirtualHost *:80>

     ServerAdmin admin@yourdomain.com
     DocumentRoot /var/www/html/flatcore/
     ServerName www.yourdomain.com

     <Directory /var/www/html/flatcore/>
          Options FollowSymlinks
          AllowOverride All
          Require all granted
     </Directory>

     ErrorLog ${APACHE_LOG_DIR}/yourdomain_error.log
     CustomLog ${APACHE_LOG_DIR}/yourdomain_access.log combined

</VirtualHost>

a2ensite yourdomain ; a2dissite 000-default.conf  ; apache2ctl configtest ; echo "192.168.1.50 www.yourdomain.com" >> /etc/hosts ; systemctl reload apache2
http://www.yourdomain.com/install/index.php
rm -rf /var/www/html/flatcore/install/

How To Setup LVS (Linux Virtual Server) Load Balancer on Rocky Linux 8.5

 in This Tutorial you will Learn " How To Setup LVS (Linux Virtual Server) Load Balancer on Rocky Linux 8.5"

Linux Virtual Server is load balancing software for Linux kernel–based operating systems. LVS is a free and open-source project started by Wensong Zhang in May 1998, subject to the requirements of the GNU General Public License, version 2.
                                       ________________________
                                      | LVS Server  - 192.168.1.20   |
___________________|                                                |_____________________
Backend Server 192.168.1.80 |                            | Backend Server 192.168.1.60|
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf -y install ipvsadm
echo 'net.ipv4.ip_forward = 1' >> /etc/sysctl.conf
sysctl -p

touch /etc/sysconfig/ipvsadm
systemctl restart ipvsadm ; systemctl enable ipvsadm ; systemctl status ipvsadm
ipvsadm -C
ipvsadm -A -t (ServiceIP:Port) -s (Distribution method)
ipvsadm -A -t 192.168.1.20:80 -s wlc

ipvsadm -a -t (ServiceIP:Port) -r (BackendServerIP:Port) -m
ipvsadm -a -t 192.168.1.20:80 -r 192.168.1.80:80 -m
ipvsadm -a -t 192.168.1.20:80 -r 192.168.1.60:80 -m
ipvsadm -l
firewall-cmd --add-service=http --permanent ; firewall-cmd --reload
_________________________________________________________________________________________




Wednesday, March 16, 2022

How To Install Crater Invoicing Solution on Ubuntu 20.04

Crater is a free and open-source invoicing application based on the Laravel PHP framework. It is designed for individual users or small and medium-sized businesses to help track payments and expenses as well as create professional invoices. It comes with a suite of tools that are used to manage invoices. Crater allows users to create and send professional invoices to their clients.
Homepage - https://craterapp.com/
_________________________________________________________________________________________
Server - Os:  Ubuntu 20.04.3 LTS 64Bit        | IP -192.168.1.80            |Hostname -  ubuntu.example.com
_________________________________________________________________________________________
lsb_release -d ; hostname ; hostname -I

add-apt-repository ppa:ondrej/php -y ; apt-get update
apt install -y apache2 build-essential mariadb-server mariadb-client php7.4 libapache2-mod-php7.4 php7.4-cli php7.4-fpm php7.4-cgi php7.4-bcmath php7.4-curl php7.4-gd php7.4-intl php7.4-json php7.4-mbstring php7.4-mysql php7.4-opcache php7.4-sqlite3 php7.4-xml php7.4-zip php7.4-snmp php7.4-imap php7.4-common php7.4-tidy php7.4-pgsql php7.4-ldap php7.4-soap php7.4-xsl php7.4-redis php7.4-xmlrpc

a2enmod rewrite expires ; sed -i "s/;date.timezone.*/date.timezone = Asia\/\Kolkata/" /etc/php/*/apache2/php.ini
systemctl start apache2 mariadb ; systemctl enable apache2 mariadb ; mysql_secure_installation

mysql -u root -p
create database db;
grant all on db.* to 'dbuser'@'localhost' identified by 'dbpassword';
flush privileges;
quit

wget https://craterapp.com/downloads/file/6.0.5 -O crater.zip
unzip crater.zip ; mv crater /var/www/html/crater
chown -R www-data:www-data /var/www/html/ ; chmod -R 777 /var/www/html/
nano  /etc/apache2/sites-available/yourdomain.conf
<VirtualHost *:80>
ServerAdmin admin@yourdomain.com
DocumentRoot /var/www/html/crater/public
ServerName www.yourdomain.com
<Directory /var/www/html/crater/public/>
Options FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/yourdomain.com-error_log
CustomLog /var/log/apache2/yourdomain.com-access_log common
</VirtualHost>

a2ensite yourdomain.conf ; a2dissite 000-default.conf  ; apache2ctl configtest ; echo "192.168.1.80 www.yourdomain.com" >> /etc/hosts ; systemctl reload apache2
http://www.yourdomain.com/  | SNcAiM7cFLJNjCT
________________________________________________________________________________________

How To install Setup Focalboard Project Management on Ubuntu 20.04

in This Tutorial you will learn "How To install Setup Focalboard Project Management on Ubuntu 20.04

Focalboard is an open-source self-hosted project management tool used for both personal and development use. It serves as an alternative to Asana, Trello, and Notion. Focalboard helps one organize, track and manage projects across systems such as Windows, Mac, or Linux.
Hoempage - https://www.focalboard.com/
_________________________________________________________________________________________
Server - Os:  Ubuntu 20.04.3 LTS 64Bit        | IP -192.168.1.80            |Hostname -  ubuntu.example.com
_________________________________________________________________________________________
lsb_release -d ; hostname -I ; hostname
VER=$(curl -s https://api.github.com/repos/mattermost/focalboard/releases/latest|grep tag_name | cut -d '"' -f 4)
wget https://github.com/mattermost/focalboard/releases/download/${VER}/focalboard-server-linux-amd64.tar.gz
tar -xvzf focalboard-server-linux-amd64.tar.gz ; mv focalboard /opt

apt install nginx postgresql postgresql-contrib -y
rm /etc/nginx/sites-enabled/default ; nano /etc/nginx/sites-available/focalboard
upstream focalboard {
   server localhost:8000;
   keepalive 32;
}

server {
   listen 80 default_server;

   server_name ubuntu.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;
   }
}
ln -s /etc/nginx/sites-available/focalboard /etc/nginx/sites-enabled/focalboard
sudo --login --user postgres
psql
CREATE DATABASE boards;
CREATE USER boardsuser WITH PASSWORD 'Passw0rd';
\q
exit

nano /opt/focalboard/config.json
"dbtype": "postgres",
"dbconfig": "postgres://boardsuser:Passw0rd@localhost/boards?sslmode=disable&connect_timeout=10",
nano /lib/systemd/system/focalboard.service
[Unit]
Description=Focalboard server

[Service]
Type=simple
Restart=always
RestartSec=5s
ExecStart=/opt/focalboard/bin/focalboard-server
WorkingDirectory=/opt/focalboard

[Install]
WantedBy=multi-user.target

systemctl daemon-reload ; systemctl start focalboard.service ; systemctl enable focalboard.service
systemctl reload nginx
http://ubuntu.example.com
_________________________________________________________________________________________


Monday, March 14, 2022

How To Install KVM On Rocky Linux | Configure Bridge networking

 in This Tutorial you will Learn " How To Install KVM On Rocky Linux 8.5 | Configure Bridge networking for KVM virtual machines."

KVM hypervisor is the virtualization layer in Kernel-based Virtual Machine (KVM), a free, open source virtualization architecture for Linux distributions.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.20        |     Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release
dnf -y install qemu-kvm libvirt virt-install
systemctl enable --now libvirtd

Configure Bridge networking for KVM virtual machines."-
nmcli connection add type bridge autoconnect yes con-name br0 ifname br0
nmcli connection modify br0 ipv4.addresses 192.168.1.20/24 ipv4.method manual
nmcli connection modify br0 ipv4.gateway 192.168.1.1
nmcli connection modify br0 ipv4.dns 192.168.1.10
nmcli connection del ens33
nmcli connection add type bridge-slave autoconnect yes con-name ens33 ifname ens33 master br0
reboot
_________________________________________________________________________________________


Saturday, March 12, 2022

Run Microsoft SQL Server in Podman

 in This Tutorial you will Learn " How To Run Microsoft SQL Server in Podman"
Microsoft SQL Server is a relational database management system developed by Microsoft.
Podman is a daemonless container engine for developing, managing, and running OCI Containers on your Linux System.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.20        |     Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y

dnf install podman -y
mkdir -p  /var/mssql/data ; chmod 755 -R /var/mssql/data
podman pull mcr.microsoft.com/mssql/server:2019-latest
podman run -d -e 'ACCEPT_EULA=Y' -e \
  'MSSQL_SA_PASSWORD=Passw0rd'  \
  --name MySQL1 \
  -p 1460:1433 \
  -v /var/mssql/data:/var/mssql/data:Z \
  mcr.microsoft.com/mssql/server:2019-latest

podman exec -it MySQL1 "bash"
/opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P "Passw0rd"
_________________________________________________________________________________________

Saturday, March 5, 2022

Deploy MySQL 8 in Podman

 in This Tutorial you will Learn " How To Run Deploy MySQL 8 in Podman

MySQL is an open-source relational database management system.
Podman is an OCI-compliant container runtime that works without a daemon.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.20        |     Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
podman pull mysql:8  Or podman pull mysql:5.7
podman images
mkdir ~/mysql_data ;  cd mysql_data
podman run -d \
--name mysql-8 \
-p 3306:3306 \
-v ~/mysql_data:/var/lib/mysql \
-e MYSQL_ROOT_PASSWORD='StrongPass123' \
-e MYSQL_USER=dbuser \
-e MYSQL_PASSWORD='dbuserpass' \
-e MYSQL_DATABASE=testdb \
mysql:8
podman ps
podman exec -it mysql-8 /bin/bash
mysql -uroot -p'StrongPass123'
show databases;
exit
_________________________________________________________________________________________



Run PostgreSQL in Podman Container

 in This Tutorial you will Learn " How To Run PostgreSQL in Podman Container "

PostgreSQL is an advanced, enterprise-class, and open-source relational database system.
Podman is an OCI-compliant container runtime that works without a daemon.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.20        |     Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; dnf groupinstall "Development Tools" -y
           
dnf install podman -y
podman pod create --name postgre-sql -p 9876:80
podman pod ps

podman run --pod postgre-sql \
-e 'PGADMIN_DEFAULT_EMAIL=admin@example.com' \
-e 'PGADMIN_DEFAULT_PASSWORD=Passw0rd'  \
--name pgadmin \
 -d docker.io/dpage/pgadmin4:latest

podman pull docker.io/library/postgres:14
podman images
podman run --name db --pod=postgre-sql -d \
  -e POSTGRES_USER=admin \
  -e POSTGRES_PASSWORD=Passw0rd \
  docker.io/library/postgres:14

podman pod ps
podman pod stats postgre-sql
http://127.0.0.1:9876
_________________________________________________________________________________________

Deploy Run MongoDB On Podman

 in This Tutorial you will Learn " How To Install MongoDB with Podman on Rocky Linux 8.5"

MongoDB is an open source NoSQL database management program.

Podman is a daemonless, open source, Linux native tool designed to make it easy to find, run, build, share and deploy applications using Open Container Initiative (OCI) containers and container images.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.20        |     Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; dnf groupinstall "Development Tools" -y
dnf install podman -y
podman -v
podman pull mongo
podman images
mkdir data ; cd data
podman run --name nextgentipsmongo -d -p 27017:27017 -v $(pwd):/data/db:Z mongo
podman run --rm -it --network host mongo mongo
_________________________________________________________________________________________

Friday, March 4, 2022

Deploying PrestoDB On Podman

 in This Tutorial you will Learn " How To install PrestoDB with Podman On Rocky Linux 8.5

Presto is an open-source SQL query engine built for running fast, large-scale analytics workloads distributed across multiple servers.
Podman is a daemonless, open source, Linux native tool designed to make it easy to find, run, build, share and deploy applications using Open Containers Initiative (OCI) Containers and Container Images. Podman provides a command line interface (CLI) familiar to anyone who has used the Docker Container Engine.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.20        |     Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; dnf groupinstall "Development Tools" -y
dnf install -y podman
podman --version
systemctl start podman ; systemctl enable podman
mkdir data ; cd data
podman run -d \
     --name nextgenprestodb \
     -p 8080:8080 \
     -v $(pwd):/data/db:Z \
     ahanaio/prestodb-sandbox
podman ps ; podman images
netstat -tlpn
http://127.0.0.1:8080
_________________________________________________________________________________________


Podman - How To Run a Apache Cassandra

in This Tutorial you will Learn " How to install Apache Cassandra with Podman On Rocky Linux 8.5"

Apache Cassandra is a free and open-source, distributed, wide-column store, NoSQL database management system designed to handle large amounts of data across many commodity servers, providing high availability with no single point of failure.

Podman is an OCI-compliant container runtime that works without a daemon.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.20        |     Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; dnf groupinstall "Development Tools" -y
dnf install podman -y
podman -v
podman pull cassandra
podman images
mkdir data ; cd data
podman run --name mycassandra -d -p 7000:7000 -v $(pwd):/data/db:Z cassandra
podman ps
podman exec -it mycassandra bash
podman logs mycassandra
_________________________________________________________________________________________

Deploy run RethinkDB On Docker | Docker-Compose | Rocky Linux 8.5

 in This Tutorial you will Learn " How To run RethinkDB with Docker | Docker-Compose | Rocky Linux 8.5"

Docker is a software platform that allows you to build, test, and deploy applications quickly.
RethinkDB is the open-source, scalable database that makes building realtime apps dramatically easier.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.20        |     Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; dnf groupinstall "Development Tools" -y ; docker-compose --version ; docker --version

mkdir -p ~/apps/rethinkdb/data
docker run -d \
    --name my-rethinkdb \
    -p 8081:8080 \
    -v ~/apps/rethinkdb/data:/data \
    rethinkdb:2.4

docker ps
docker exec -it my-rethinkdb /bin/bash
rethinkdb -v
docker stop my-rethinkdb
docker rm my-rethinkdb
_________________________________________________________________________________________
nano docker-compose.yaml
version: '3.9'

services:
  rethinkdb:
    image: rethinkdb:2.4
    ports:
      - 8081:8080
    volumes:
      - ~/apps/rethinkdb/data:/app
docker-compose up -d
docker-compose ps
docker-compose exec rethinkdb /bin/bash
rethinkdb -v
_________________________________________________________________________________________


Deploy Grafana On Podman

 in This Tutorial you will Learn " How To install and configure Grafana with Podman on Rocky LInux 8.5"
Grafana is a complete observability stack that allows you to monitor and analyze logs, metrics, and traces
.
Podman: A tool for managing OCI containers and pods.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.20        |     Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; dnf groupinstall "Development Tools" -y
dnf install podman -y
podman -v
podman pull grafana
podman images
mkdir grafana_data ; cd grafana_data
podman run --name nextgentipsgrafana -d -p 3000:3000 -v $(pwd):/grafana_data/db:Z grafana
podman run --rm -it grafana
http://127.0.0.1:3000  admin/admin
_________________________________________________________________________________________

Deploy Prometheus on Podman

 in This Tutorial you will Learn " How To run Prometheus with Podman On Rocky Linux 8.5"

Prometheus is an open-source system monitoring and alerting toolkit. Prometheus collects and stores its metrics as time-series data. Metrics information is stored with the timestamp at which it was recorded, alongside optional key-value pairs called labels.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.20        |     Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf update -y ; dnf install podman -y
podman --version
podman pull prom/prometheus
podman images
mkdir Prometheus_data ; cd Prometheus_data
podman run --name myprometheus -d -p 9090:9090 -v $(pwd):/data/db:Z prometheus
podman ps
netstat -tlpn
http://192.168.1.20:9090
http://127.0.0.1:9090
_________________________________________________________________________________________


Wednesday, March 2, 2022

How To install FTP Server (ProFTPD) & ProFTPD Client On Rocky Linux 8.5

 in This Tutorial you will Learn " How To install FTP Server (ProFTPD) & ProFTPD Client On Rocky Linux 8.5"

ProFTPD is a highly configurable FTP daemon for Unix and Unix-like operating systems.
Rocky Linux is an open-source enterprise operating system designed to be 100% bug-for-bug compatible with Red Hat Enterprise Linux.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.20        |     Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf install epel-release -y
dnf install proftpd -y
gedit  /etc/proftpd.conf &>/dev/null
ServerName                      "www.primaryhost.com"
ServerAdmin                     root@primaryhost.com
# line 116 : add : get access log and auth log
ExtendedLog                     /var/log/proftpd/access.log WRITE,READ default
ExtendedLog                     /var/log/proftpd/auth.log AUTH auth

nano /etc/ftpusers
# add users you'd like to prohibit FTP access
test
tim
systemctl enable --now proftpd ; systemctl daemon-reload
firewall-cmd --add-service=ftp ; firewall-cmd --runtime-to-permanent
SELinux- setsebool -P ftpd_full_access on
_________________________________________________________________________________________
Pure-FTPd Client  (Rocky Linux) -  
cat /etc/system-release ; sestatus ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf -y install lftp
lftp -u debs 192.168.1.20
_________________________________________________________________________________________

How To install FTP Server (Pure-FTPd ) & Pure-FTPd Client On Rocky Linux 8.5

 in This Tutorial you will Learn " How To install FTP Server (Pure-FTPd ) & Pure-FTPd Client On Rocky Linux 8.5"
Pure-FTPd is a free open-source FTP server designed with security in mind.
Rocky Linux is an open-source enterprise operating system designed to be 100% bug-for-bug compatible with Red Hat Enterprise Linux.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.20        |     Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf install epel-release -y
dnf install pure-ftpd -y
gedit  /etc/pure-ftpd/pure-ftpd.conf &>/dev/null
NoAnonymous           yes
IPV4Only                     yes
IPV6Only                     yes
systemctl enable --now pure-ftpd ; systemctl start pure-ftpd
firewall-cmd --add-service=ftp ; firewall-cmd --runtime-to-permanent
_________________________________________________________________________________________
Pure-FTPd Client  (Rocky Linux) -  
cat /etc/system-release ; sestatus ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf -y install lftp
lftp -u debs 192.168.1.20
_________________________________________________________________________________________


How To install FTP Server (VSFTPD) & Client On Rocky Linux 8.5

 in This Tutorial you will Learn "How To install FTP Server (VSFTPD) & FTP Client On Rocky Linux 8.5"

vsftpd (Very Secure FTP Daemon) is a lightweight, stable and secure FTP server for UNIX-like systems.
Rocky Linux is an open-source enterprise operating system designed to be 100% bug-for-bug compatible with Red Hat Enterprise Linux®.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.20        |     Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf -y install vsftpd
gedit /etc/vsftpd/vsftpd.conf &>/dev/null
ascii_upload_enable=YES | ascii_download_enable=YES
chroot_local_user=YES  | chroot_list_enable=YES | chroot_list_file=/etc/vsftpd/chroot_list
ls_recurse_enable=YES

local_root=public_html
use_localtime=YES
seccomp_sandbox=NO
nano /etc/vsftpd/chroot_list
# add users you allow to move over their home directory
debs
systemctl enable --now vsftpd ; systemctl restart vsftpd
firewall-cmd --add-service=ftp ; firewall-cmd --runtime-to-permanent
_________________________________________________________________________________________
FTP Client (Rocky Linux) -
cat /etc/system-release ; sestatus ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf -y install lftp
lftp -u debs 192.168.1.20
_________________________________________________________________________________________



Tuesday, March 1, 2022

How To Setup Pure-FTPD On Rocky Linux 8.5 with SSL/TLS Certificates

 in This Tutorial you will Learn " How To Setup Pure-FTPD On Rocky Linux 8.5 with SSL/TLS Certificates"

Pure-FTPd is a free (BSD license) FTP Server with a strong focus on software security.
Secure Sockets Layer (SSL) is an encryption security protocol. TLS stands for Transport Layer Security.
Rocky Linux is an open-source enterprise operating system designed to be 100% bug-for-bug compatible with Red Hat Enterprise Linux®.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.20        |     Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf install epel-release -y
dnf install pure-ftpd -y
cd /etc/pki/tls/certs ; openssl req -x509 -nodes -newkey rsa:2048 -keyout pure-ftpd.pem -out pure-ftpd.pem -days 3650
chmod 600 pure-ftpd.pem ; nano /etc/pure-ftpd/pure-ftpd.conf
TLS   
CertFile                     /etc/pki/tls/certs/pure-ftpd.pem
systemctl restart pure-ftpd
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Pure-FTPD FTP Client : Rocky Linux
cat /etc/system-release ; sestatus ; hostname -I
dnf -y install lftp
nano ~/.lftprc
set ftp:ssl-auth TLS
set ftp:ssl-force true
set ftp:ssl-protect-list yes
set ftp:ssl-protect-data yes
set ftp:ssl-protect-fxp yes
set ssl:verify-certificate no
lftp -u debs 192.168.1.20
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



How To Configure ProFTPD To Use SSL/TLS Certificates on Rocky Linux 8.5

 in This Tutorial you will Learn " How To Configure ProFTPD To Use SSL/TLS Certificates on Rocky Linux 8.5"
ProFTPD is an FTP server.
Both TLS and SSL are protocols that help you securely authenticate and transport data on the Internet.
Rocky Linux is an open-source enterprise operating system designed to be 100% bug-for-bug compatible with Red Hat Enterprise Linux.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.80        |     Hostname - www.tertiary.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf install epel-release -y
dnf install proftpd -y
cd /etc/pki/tls/certs
openssl req -x509 -nodes -newkey rsa:2048 -keyout proftpd.pem -out proftpd.pem -days 3650
chmod 600 proftpd.pem ; gedit /etc/sysconfig/proftpd &>/dev/null

PROFTPD_OPTIONS="-DTLS"
gedit /etc/proftpd/mod_tls.conf &>/dev/null
TLSEngine                     on
# change if require TLS
TLSRequired                   on
#TLSCertificateChainFile       /etc/pki/tls/certs/proftpd-chain.pem
TLSRSACertificateFile         /etc/pki/tls/certs/proftpd.pem
TLSRSACertificateKeyFile      /etc/pki/tls/certs/proftpd.pem
systemctl restart proftpd
_________________________________________________________________________________________
ProFTPD FTP Client : Rocky Linux
cat /etc/system-release ; sestatus ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf -y install lftp
nano ~/.lftprc
set ftp:ssl-auth TLS
set ftp:ssl-force true
set ftp:ssl-protect-list yes
set ftp:ssl-protect-data yes
set ftp:ssl-protect-fxp yes
set ssl:verify-certificate no
lftp -u debs 192.168.1.80
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

How To Configure FTP Vsftpd To Use SSL/TLS On Rocky Linux 8.5

 in This Tutorial you will Learn " How To Configure FTP Vsftpd To Use SSL/TLS On Rocky Linux 8.5"
vsftpd is the Very Secure File Transfer Protocol Daemon.
Secure Sockets Layer (SSL) and Transport Layer Security (TLS) are cryptographic security protocols.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.20        |     Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; dnf groupinstall "Development Tools" -y
dnf -y install vsftpd
cd /etc/pki/tls/certs ; openssl req -x509 -nodes -newkey rsa:2048 -keyout vsftpd.pem -out vsftpd.pem -days 3650
chmod 600 vsftpd.pem ; gedit  /etc/vsftpd/vsftpd.conf &>/dev/null

rsa_cert_file=/etc/pki/tls/certs/vsftpd.pem
ssl_enable=YES
force_local_data_ssl=YES
force_local_logins_ssl=YES
pasv_enable=YES
pasv_min_port=60000
pasv_max_port=60100
systemctl restart vsftpd ; systemctl status vsftpd
_________________________________________________________________________________________
FTP Client (Rocky Linux)-
cat /etc/system-release ; sestatus ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf -y install lftp
nano ~/.lftprc
# create new
set ftp:ssl-auth TLS
set ftp:ssl-force true
set ftp:ssl-protect-list yes
set ftp:ssl-protect-data yes
set ftp:ssl-protect-fxp yes
set ssl:verify-certificate no

lftp -u debs 192.168.1.20
!pwd

FTP Client (Windows 11) -
_________________________________________________________________________________________

Run QuestDB SQL Database with Docker-Compose

 in This Tutorial you will Learn " How To Run QuestDB SQL database with Docker-Compose"

QuestDB is an open source database designed to make time-series lightning fast and easy. It exposes a high performance REST API and is Postgres compatible.
Docker Compose is a tool that was developed to help define and share multi-container applications.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.20        |     Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
mkdir questdb ; cd questdb ; nano docker-compose.yml
version: "3"
services:
  questdb:
    image: questdb/questdb
    container_name: docker_questdb
    restart: always
    ports:
      - "8812:8812"
      - "9000:9000"
      - "9009:9009"
      - "9003:9003"
    volumes:
      - ./data/db:/root/.questdb/db
docker-compose up -d
docker ps
http://127.0.0.1:9000
_________________________________________________________________________________________



Dockerizing Flask Application Using Docker on Ubuntu 20.04

 in This Tutorial you will learn " How To Dockerizing Flask Application Using Docker on Ubuntu 20.04"
Flask is a popular Python web framework.
Docker is a software platform that allows you to build, test, and deploy applications quickly.
_________________________________________________________________________________________
Server - Os:  Ubuntu 20.04.3 LTS 64Bit        | IP -192.168.1.80            |Hostname -  ubuntu.example.com
_________________________________________________________________________________________
lsb_release -d ; hostname -I ; hostname ; docker-compose --version ; docker --version

mkdir -p /var/www/flask ; cd /var/www/flask ; mkdir -p app/static ; mkdir -p app/templates
nano app/__init__.py
from flask import Flask
app = Flask(__name__)
from app import views

nano app/views.py
from app import app
@app.route('/')
def home():
   return "Dockerizing Flask Application Using Docker!"

nano uwsgi.ini
[uwsgi]
module = main
callable = app
master = true

nano main.py
from app import app

nano requirements.txt
Flask==1.1.2

cd /var/www/flask ; nano Dockerfile
FROM tiangolo/uwsgi-nginx-flask:python3.6-alpine3.7
RUN apk --update add bash nano
ENV STATIC_URL /static
ENV STATIC_PATH /var/www/app/static
COPY ./requirements.txt /var/www/requirements.txt
RUN pip install -r /var/www/requirements.txt

nano start.sh
#!/bin/bash
app="docker.test"
docker build -t ${app} .
docker run -d -p 56733:80 \
  --name=${app} \
  -v $PWD:/app ${app}

bash start.sh
docker ps ; netstat -tlpn
127.0.0.1:56733
_________________________________________________________________________________________

Deploy Podman & Buildah on Rocky Linux 8.5

 in This Tutorial you will Learn " How To Install Podman and Buildah on Rocky Linux 8.5"

Buildah is a command-line tool for building, managing and modifying your images and working containers.
Podman is an OCI-compliant container runtime that works without a daemon.
_________________________________________________________________________________________
Server - Os:  Rocky Linux 8.5  64Bit      |    IP -192.168.1.20        |     Hostname - www.primaryhost.com
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; dnf groupinstall "Development Tools" -y

dnf -y update ; dnf -y install buildah podman
buildah --version ; podman  --version

Use Podman - run a sample container- Basic httpd server
podman run -dt -p 8080:8080/tcp \
  -e HTTPD_VAR_RUN=/run/httpd \
  -e HTTPD_MAIN_CONF_D_PATH=/etc/httpd/conf.d \
  -e HTTPD_MAIN_CONF_PATH=/etc/httpd/conf \
  -e HTTPD_CONTAINER_SCRIPTS_PATH=/usr/share/container-scripts/httpd/ \
  registry.fedoraproject.org/f29/httpd /usr/bin/run-httpd

podman ps -a
podman inspect -l
podman inspect -l | grep "HostPort" ; podman inspect -l | grep IPAddress
curl http://127.0.0.1:8080
http://127.0.0.1:8080
_________________________________________________________________________________________