This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

Saturday, June 13, 2020

How to Install Microweber Website Builder on FreeBSD 12

Microweber is a drag and drop website builder and a powerful next-generation CMS. It's based on the PHP Laravel Framework. You can use Microweber to make any kind of website, online store, and blog. The drag and drop technology allows you to build your website without any technical knowledge.
The core idea of the software is to let you create your own website, online shop or blog. From this moment of creation, your journey towards success begins. Supporting you along the way will be different modules, customizations, and features of the CMS. Many of them are specifically tailored for e-commerce enthusiasts and bloggers.
The most important thing you need to know is that Microweber pairs the latest drag and drop technology, with a revolutionary Real-Time Text Writing and Editing feature. This pair of features deliver improved user experience, easier and quicker content management, a visually appealing environment, and flexibility.
This tutorial will show you how to install Microweber on a fresh FreeBSD 12 system with Nginx as a web server and MariaDB as a database engine.

Requirements

Requirements for installing and running Microweber are as follows:
  • PHP version 5.4 or higher with the following PHP extensions: gd2, mcrypt, xml, dom, json
  • Web server software like Nginx or Apache.
  • MySQL version 5.0 or higher or MariaDB equivalent.
  • Composer.

Prerequisites

  • FreeBSD 12 operating system.
  • A non-root user with sudo privileges.
I will be using the domain name example.com in this tutorial. Please replace the word example.com with your own domain name wherever it occurs in the commands and config files below (especially in the Nginx config file and the Let's encrypt commands).

Initial steps

Check your FreeBSD version:
uname -ro
# FreeBSD 12.1-RELEASE
Set up the timezone:
tzsetup
Update your operating system packages (software). This is an important first step because it ensures you have the latest updates and security fixes for your operating system's default software packages:
freebsd-update fetch install
pkg update && pkg upgrade -y
Install some essential packages that are necessary for basic administration of FreeBSD 12.0 operating system:
pkg install -y sudo vim unzip wget bash socat

Step 1 - Install PHP and necessary PHP extensions

Microweber web application requires PHP version 5.4 or higher. We can easily install newer PHP by using pkg package manager on FreeBSD 12.
Install PHP, as well as the necessary PHP extensions:
sudo pkg install -y php72 php72-mbstring php72-tokenizer php72-pdo php72-pdo_mysql php72-openssl php72-hash php72-json php72-phar php72-filter php72-zlib php72-dom php72-xml php72-xmlwriter php72-xmlreader php72-curl php72-session php72-ctype php72-iconv php72-gd php72-simplexml php72-zip php72-filter php72-tokenizer php72-calendar php72-fileinfo php72-intl php72-phar php72-soap php72-xmlrpc
To show PHP compiled in modules, you can run:
php -m

ctype
curl
exif
fileinfo
. . .
. . .
Check the PHP version:
php --version

# PHP 7.2.16 (cli) (built: Apr 30 2019 08:37:17) ( NTS )
# Copyright (c) 1997-2018 The PHP Group
# Zend Engine v3.3.5, Copyright (c) 1998-2018 Zend Technologies
# with Zend OPcache v7.3.5, Copyright (c) 1999-2018, by Zend Technologies
Start and enable PHP-FPM service:
sudo sysrc php_fpm_enable=yes
sudo service php-fpm start
We can move on to the next step where we will install acme.sh client and obtain SSL certs.

Step 2 - Install acme.sh client and obtain Let's Encrypt certificate ( optional )

Securing your site with HTTPS is not necessary, but it is a good practice to secure your site traffic. To obtain a TLS certificate from Let's Encrypt we will use acme.sh client. Acme.sh is a simple UNIX shell software for obtaining TLS certificates from Let's Encrypt with zero dependencies.
Download and install acme.sh:
sudo pkg install -y acme.sh
Check acme.sh version:
acme.sh --version
# v2.8.2
Obtain RSA and ECC/ECDSA certificates for your domain/hostname:
# RSA 2048
acme.sh --issue --standalone -d example.com --keylength 2048
# ECDSA
acme.sh --issue --standalone -d example.com --keylength ec-256
If you want fake certificates for testing, you can add --staging flag to the above commands.
After running the above commands, your certificates and keys will be in:
  • For RSA: /home/username/example.com directory.
  • For ECC/ECDSA: /home/username/example.com_ecc directory.
To list your issued certs you can run:
acme.sh --list
Create a directory to store your certs. We will use the /etc/letsencrypt directory.
mkdir -p /etc/letsecnrypt/example.com
sudo mkdir -p /etc/letsencrypt/example.com_ecc
Install/copy certificates to /etc/letsencrypt directory.
# RSA
acme.sh --install-cert -d example.com --cert-file /etc/letsencrypt/example.com/cert.pem --key-file /etc/letsencrypt/example.com/private.key --fullchain-file /etc/letsencrypt/example.com/fullchain.pem --reloadcmd "sudo systemctl reload nginx.service"
# ECC/ECDSA
acme.sh --install-cert -d example.com --ecc --cert-file /etc/letsencrypt/example.com_ecc/cert.pem --key-file /etc/letsencrypt/example.com_ecc/private.key --fullchain-file /etc/letsencrypt/example.com_ecc/fullchain.pem --reloadcmd "sudo systemctl reload nginx.service"
All the certificates will be automatically renewed every 60 days.
After obtaining certs exit from root user and return to regular sudo user:
exit

Step 3 - Install MariaDB and create a database

Install MariaDB database server:
sudo pkg install -y mariadb102-client mariadb102-server
Check the MariaDB version:
mysql --version
# mysql  Ver 15.1 Distrib 10.2.23-MariaDB, for Linux (x86_64) using readline 5.1
Start and enable MariaDB service:
sudo sysrc mysql_enable="yes"
sudo service mysql-server start
Run mysql_secure installation script to improve MariaDB security and set the password for MariaDB root user:
sudo mysql_secure_installation
Answer each of the questions:
Would you like to setup VALIDATE PASSWORD plugin? N
New password: your_secure_password
Re-enter new password: your_secure_password
Remove anonymous users? [Y/n] Y
Disallow root login remotely? [Y/n] Y
Remove test database and access to it? [Y/n] Y
Reload privilege tables now? [Y/n] Y
Connect to MariaDB shell as the root user:
sudo mysql -u root -p
# Enter password
Create an empty MariaDB database and user for Microweber and remember the credentials:
mysql> CREATE DATABASE dbname;
mysql> GRANT ALL ON dbname.* TO 'username' IDENTIFIED BY 'password';
mysql> FLUSH PRIVILEGES;
Exit from MariaDB:
mysql> exit
Replace dbname, username and password with your own names.

Step 4 - Install and configure NGINX

Install the NGINX web server:
sudo pkg install -y nginx
Check the NGINX version:
nginx -v
# nginx version: nginx/1.14.2
Start and enable NGINX service:
sudo sysrc nginx_enable=yes
sudo service nginx start
Configure Nginx for Microweber by running:
sudo vim /usr/local/etc/nginx/microweber.conf
And populate the file with the following configuration:
server {
  listen 80;
  listen 443 ssl;
  
  server_name example.com;
  root /usr/local/www/microweber;

  # RSA
  ssl_certificate /etc/letsencrypt/example.com/fullchain.pem;
  ssl_certificate_key /etc/letsencrypt/example.com/private.key;
  # ECC
  ssl_certificate /etc/letsencrypt/example.com_ecc/fullchain.pem;
  ssl_certificate_key /etc/letsencrypt/example.com_ecc/private.key;

  index index.php;

  location / {
    try_files $uri $uri/ /index.php$is_args$args;
  }

  location ~ \.php$ {
    try_files $uri =404;
    include fastcgi_params;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_pass 127.0.0.1:9000;
  }
}
Run sudo vim /usr/local/etc/nginx/nginx.conf and add the below line to http {} block to include Microweber config.
include microweber.conf;
Check Nginx configuration for syntax errors:
sudo nginx -t
Reload Nginx service:
sudo service nginx reload

Step 5 - Install Microweber

Create a document root directory where Microweber should reside in:
sudo mkdir -p /usr/local/www/microweber
Navigate to the document root directory:
cd /usr/local/www/microweber
Download the latest version of Microweber CMS and unzip it:
sudo wget https://download.microweberapi.com/ready/core/microweber-latest.zip
sudo unzip microweber-latest.zip
sudo rm microweber-latest.zip
Change ownership of the /usr/local/www/microweber directory to www:
sudo chown -R www:www /usr/local/www/microweber
Open your domain name (http://example.com/) in your web browser and follow the instructions. After installation, your admin panel URL will be at http://example.com/admin.

Step 6 - Finish the Microweber installation

Open your web browser and type the URL http://example.com. You will be redirected to the following page where you will need to choose the database engine of your choice. This tutorial uses MySQL/MariaDB. You can select SQLite like the screenshot below shows:
Database details
You can select the MySQL database engine:
Select MySQL server
Or PostgreSQL if you prefer it:
Or PostgreSQL
After entering the requested details Microweber installation is completed. To access Microweber admin append /admin to your website URL.
Microweber Login
After login, here is how the Microweber dashboard will look like:
Microweber dashboard
And here is the Microweber frontend:
Microweber CMS

Share:

Monday, May 18, 2020

How To install BitWarden

Open Source Password Manager for Individuals and Teams | Bitwarden

SYSTEM REQUIREMENTS

  • Processor: x64, 1.4GHz or faster
  • Memory: 2GB of RAM or more
  • Storage: 10GB or more
  • Docker: Engine 1.8+ and Compose 1.17.1+


INSTALL DOCKER


Open a terminal window and type:
sudo apt-get update
Allow the operation to complete.
sudo apt install docker.io


Installing Docker Compose

sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose

apt install docker-compose

INSTALL BITWARDEN

  1. Download the main Bitwarden script to your machine in the desired location:

     NOTE

    All Bitwarden assets will be installed in the ./bwdata directory relative to where the main Bitwarden script resides.
      Bash
    curl -Lso bitwarden.sh https://go.btwrdn.co/bw-sh \
        && chmod +x bitwarden.sh
    
     PowerShell
    Invoke-RestMethod -OutFile bitwarden.ps1 `
        -Uri https://go.btwrdn.co/bw-ps
    
  2. Start the installer:
      Bash
    ./bitwarden.sh install
    
     PowerShell
    .\bitwarden.ps1 -install
    
  3. Complete the prompts in the installer.
  4. Environment Variables
    Some features such as a SMTP mail server settings, YubiKey OTP API credentials, HaveIBeenPwned (HIBP) breach report API key, etc. are not configured by the installer. You can find the environment file for these settings (and all others) in the following location: ./bwdata/env/global.override.env. Edit this file and REPLACE the placeholders values for them.
    Example:
    globalSettings__mail__smtp__host=smtp.sendgrid.net
    globalSettings__mail__smtp__port=587
    globalSettings__mail__smtp__ssl=false
    globalSettings__mail__smtp__username=apikey
    globalSettings__mail__smtp__password=SG.YOUR.API_KEY
    
      Bash
    ./bitwarden.sh start
    
     PowerShell
    .\bitwarden.ps1 -start
    


Share:

Tuesday, May 12, 2020

Install Docker on Ubuntu Using Default/ Official Repositories

Install Docker on Ubuntu Using Default Repositories




In this tutorial, we will show you how to install Docker on Ubuntu 18.04.

Prerequisites
  • Ubuntu 18.04 64-bit operating system
  • A user account with sudo privileges
  • Command-line/terminal (CTRL-ALT-T or Applications menu > Accessories > Terminal)
  • Docker software repositories (optional)

Install Docker on Ubuntu Using Default Repositories

Step 1: Update Software Repositories

It’s a good idea to update the local database of software to make sure you’ve got access to the latest revisions.
Open a terminal window and type:
sudo apt-get update
Allow the operation to complete.

Step 2: Uninstall Old Versions of Docker

Next, it’s recommended to uninstall any old Docker software before proceeding.
Use the command:
sudo apt-get remove docker docker-engine docker.io

Step 3: Install Docker

To install Docker on Ubuntu, in the terminal window enter the command:
sudo apt install docker.io

Step 4: Start and Automate Docker

The Docker service needs to be setup to run at startup. To do so, type in each command followed by enter:
sudo systemctl start docker
sudo systemctl enable docker
enable docker command, in terminal

Step 5 (Optional): Check Docker Version

To verify the installed Docker version number, enter:
docker --version
checking version of docker installed in terminal

Note: The official Docker website does not offer support for Ubuntu 18.04. It’s possible that the Ubuntu default repositories have not updated to the latest revision. There’s nothing wrong with running this installation. However, if you are up for a slightly more intensive operation, you can install a more recent (or specific) Docker from the official Docker repositories.


Alternative: Install Docker from Official Repository

Step 1: Update Local Database

Update the local database with the command:
sudo apt-get update

Step 2: Download Dependencies

You’ll need to run these commands to allow your operating system to access the Docker repositories over HTTPS.
In the terminal window, type:
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
To clarify, here’s a brief breakdown of each command:
  • apt-transport-https: Allows the package manager to transfer files and data over https
  • ca-certificates: Allows the system (and web browser) to check security certificates
  • curl: This is a tool for transferring data
  • software-properties-common: Adds scripts for managing software

Step 3: Add Docker’s GPG Key

The GPG key is a security feature.
To ensure that the software you’re installing is authentic, enter:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add –
docker GPG key security in terminal

Step 4: Install the Docker Repository

To install the Docker repository, enter the command:
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu  $(lsb_release -cs)  stable" 
The command “$(lsb_release –cs)” scans and returns the codename of your Ubuntu installation – in this case, Bionic. Also, the final word of the command – stable– is the type of Docker release.
example installation of the docker repository in terminal
A stable release is tested and confirmed to work, but updates are released less frequently. You may substitute edge if you’d like more frequent updates, at the cost of potential instability. There are other repositories, but they are riskier – more info can be found on the Docker web page.

Step 5: Update Repositories

Update the repositories you just added:
sudo apt-get update

Step 6: Install Latest Version of Docker

To install the latest version of docker:
sudo apt-get install docker-ce

Step 7 (Optional): Install Specific Version of Docker 

List the available versions of Docker by entering the following in a terminal window:
apt-cache madison docker-ce

The system should return a list of available versions as in the image above.
At this point, type the command:
sudo apt-get install docker-ce=<VERSION>
However, substitute <VERSION> for the version you want to install (pulled from the list you just generated).
For example:
installation of a specific version of docker in terminal

Step 8 (Optional): Install from a .deb Package

First, open a web browser, and go to the following web address:
Next, click on the pool link, then stable, then amd64.  This is the location of the stable Docker releases for Ubuntu 18.04.

At the time this article was written, this directory was empty. This indicates that there are no verified stable releases for Ubuntu 18.04.
Not to worry, though! The previous versions should work just fine. Alternatively, you can install an edge release by browsing to:
Download the file, and make a note of the path where you saved it. Use the following command:
sudo dpkg -i /path/to/package.deb
Substitute your file location for /path/to/package.deb. Allow the installer to run.
Share:

Search This Blog

Blog Archive

Nerdy Tech Tips. Powered by Blogger.

How to Install InvoicePlane

  How to Install InvoicePlane with Apache and Free Let's Encrypt SSL Certificate on Debian 11 On this page Prerequisites Install Apache,...

Blogger templates