OFBiz

Install Apache OFBiz CRM on Debian 10

Apache OFBiz also known as “Open For Business Project” is a free and open-source ERP system written in Java. It is a suite of business applications that can be used to run all aspects of your business. It is scalable, reliable, customizable and flexible to grow with your business. It offers Accounting, Warehousing, Inventory, Order Management, Manufacturing, Pricing, Product and Catalog Management, and also includes a complete CRM system.

In this tutorial, we will show you how to install OFBiz CRM on Debian 10 server.

Prerequisites

  • A server running Debian 10.

Getting Started

Before starting, it is recommended to update your system to the latest version. You can run the following command to update your system.

apt-get update -y
 apt-get upgrade -y

Once your system is updated, restart it to implement the changes.

Install Java

Before starting, the OFBiz requires the Java Development Kit (JDK) version 8 installed on your system. By default, Java 8 is not available in the Debian 10 default repository. So you will need to add java 8 repository in your system.

First, install the required packages with the following command:

apt-get install apt-transport-https ca-certificates wget dirmngr gnupg software-properties-common unzip -y

Next, download and add the GPG key with the following command:

wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | apt-key add -

Next, you can add java 8 repository with the following command:

add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/

After installing the repository, update the repository and install java 8 with the following command:

apt-get update -y
apt-get install adoptopenjdk-8-hotspot -y

Once the installation is completed, you can verify the Java version with the following command:

java -version 

You should get the following output:

 openjdk version "1.8.0_232" 
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_232-b09)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.232-b09, mixed mode)

Install Apache OFBiz

You can download the latest version of the Apache OFBiz from its official website using the following command:

 wget https://archive.apache.org/dist/ofbiz/apache-ofbiz-16.11.05.zip

Once downloaded, unzip the downloaded file with the following command:

 unzip apache-ofbiz-16.11.05.zip

Next, change the directory to the apache-ofbiz-16.11.05 and load default data with the following command:

 cd apache-ofbiz-16.11.05
./gradlew cleanAll loadDefault

Once the process is completed successfully, you should see the following output:

 BUILD SUCCESSFUL 

Total time: 2 mins 55.503 secs

This build could be faster, please consider using the Gradle Daemon:
https://docs.gradle.org/2.13/userguide/gradle_daemon.html

Start Apache OFBiz

Before starting the Apache OFBiz, you can also install demo data and seed data with the following command:

 ./gradlew "ofbiz --load-data readers=seed"
./gradlew "ofbiz --load-data readers=seed,seed-initial,ext"

Once you are completed, start the Apache OFBiz service with the following command:

 ./gradlew ofbiz

Access Apache OFBiz

After starting the Apache OFBiz service, open your web browser and type the URL https://your-server-ip:8443/ordermgr/control/main. You will be redirected to the following page:

Provide the default username and password as admin / ofbiz and click on the Login button. You should see the Apache OFBiz default dashboard in the following page:

You can access the eCommerce application using the URL https://your-server-ip:8443/ecommerce in your web browser:

You can access the WebTools application using the URL https://your-server-ip:8443/webtools/ in your web browser:

You can access the Catalog Manager application using the URL https://your-server-ip:8443/catalog in your web browser:

Hur man synkroniserar tid i Linux-server med hjälp av Chrony

Tid spelar en viktig roll i Linux-servrar speciellt när de används i banker, aktiemarknader och andra finansiella sektorer. Om vi vill att alla våra Linux-servrar ska ha rätt tid måste vi konfigurera vissa NTP-klienter som alltid hämtar rätt tid från fjärr NTP-servrar och vid behov gör de justeringar som krävs för att synkronisera tiden.

I den här artikeln kommer vi att visa hur vi kan synkronisera tid med NTP-servrar i Linux-server med hjälp av Chrony (NTP Client).

Installera Chrony på CentOS / RHEL / Fedora System
Utför följande kommando yum eller dnf för att installera Chrony på CentOS, RHEL och Fedora System

~]# yum install chrony -y
Or
~]# dnf install chrony -y

Install Chrony on Debian / Ubuntu System

To install Chrony on Debian and Ubuntu Systems, run the following apt command,

~]$ sudo apt install chrony -y

Once the chrony is installed on Linux server then it offers two programs,

  • chronyc : It is command line interface of chrony
  • chronyd : It is daemon for chrony which start and enable chrony service across the reboot.

Configuration File of Chrony

Configuration file for Chrony is “/etc/chrony.conf” , sample chrony.conf file is listed below,

~]# cat  /etc/chrony.conf

Where:

  • pool 0.europe.pool.ntp.org iburst is the remote NTP server from where chrony will fetch the time.
  • makestep 1.0 3 is the parameter which will step system clock (speedup or slow down) if adjustment is larger than 1 second but only for first 3 clock updates
  • keyfile /etc/chrony.keys as the name suggest this file contains keys for NTP authentication.
  • logdir /var/log/chrony , it is the log file which logs of Chrony.
  • driftfile /var/lib/chrony/drift is the drift file which contains drift data
Ubuntu-19-04-0

Install Ubuntu 19.04 Desktop

In this article we will demonstrate how to install Ubuntu 19.04 on your laptop or desktop with customize partitions scheme. There are number new features and enhancements noticed in this release, some of them are listed below:

New Linux Kernel version 5.0
Improved GNOME 3.32 Desktop
Kernel Live patching for Desktop Users
Improved Audio Settings
Introduction of Mesa 19.0 (Graphics Library)
Updated Packages like OpenJDK 11, Python 3.7.3, Perl 5.28.1 ruby 2.5.5 and php 7.2.15 etc.
LibreOffice 6.6.2
Minimum System Requirement for Ubuntu 19.04:
2 GB RAM
Dual Core Processor (2GHz Speed)
20 GB free hard disk space
Bootable Media like USB or DVD
Internet Access (optional but recommended)
Let’s jump into the installation steps of Ubuntu 19.04,

Download and Burn Ubuntu 19.04 ISO

Download Ubuntu 19.04 (64-bit) ISO file from its official site:

https://www.ubuntu.com/download/desktop

Once you have downloaded the ISO file then burn it either into USB drive or DVD and make it bootable.

Read Also: How to Create Bootable USB Disk / DVD on Ubuntu / Linux Mint

Reboot your target desktop or laptop on which you want to install Ubuntu 19.04 and go to its bios settings and change the boot medium as “USB Drive/ DVD”

Choose Install Ubuntu

Select your keyboard layout

Choose your keyboard layout which suits to your language,

 Prepare to Install Ubuntu and third-party software

Choose how you want to start Ubuntu 19.04 installation, there two options,

  • Normal Installation
  • Minimal Installation

If you want to install desktop utilities like Web browsers, Office, media players etc during the installation then choose first option else go with second option.

If your system is connected to internet and you want to install updates and third-party software, then choose below options or else untick these options

  • Download updates while installing Ubuntu
  • Install third-party software for Graphics and WiFi…

Choose Your Installation Type

In this step you have to choose your Ubuntu 19.04 installation type,  Installation type can be of following types,

  • Erase Disk and Install Ubuntu (Delete all data from disk and will create partitions automatically)
  • Encrypt the new Ubuntu installation for security (If want to encrypt your hard drive for Ubuntu 19.04 then choose this option)
  • Use LVM with the new Ubuntu installation (If you are planning to have LVM based partitions then choose this option)
  • Something Else (If you want to create your own partitions scheme then choose this option)

In this tutorial I will demonstrate how to create your own partitions scheme by selecting the option “Something Else

In the Next window, you will get how much hard disk is available for Ubuntu 19.04 installation, in my case I have around 42 GB disk space, so I will be creating beneath partitions on it,

  • /boot = 2GB (ext4 file system)
  • /home = 16 GB (ext4 file system)
  • /var = 10 GB (ext4 file system)
  • / = 12 GB (ext4 file system)
  • Swap = 1.7 GB

Click on “New Partition Table” and then click on Continue

Let’s create our first partition as /boot of size 2 GB, Select the free disk and then click on + symbol and then specify partition mount point as /boot and file system as ext4

Click on OK to create further partitions,

Create /home partition of size 16 GB,

Similarly create /var and / partition of size 10 GB and 12 GB respectively,

Click on OK to create proceed further

Now create our last partition as swap of size 1.7 GB,

Click on OK

In the Next window click on “Install Now” option and then click on continue to write changes to the disk

Choose Your Time Zone

Select your time zone which suits to your installation and then click on Continue

Specify User Name & its password and set Hostname

In this step specify the user name & its password and hostname for your Ubuntu 19.04.We will use the same user name and password to login to the system once installation is completed.

Ubuntu 19.04 Installation Started

As we can see installation has been started and is in progress

Once the installation is completed then installer will prompt you to restart your system

Click on “Restart Now” to reboot your system.

After reboot, make sure you change the boot medium from Bios settings so that your system boots up the hard disk.

Login Screen and desktop of your Ubuntu 19.04

After login you will get the window to configure your online accounts like Google, Nextcloud and Microsoft etc, if you don’t want to configure it right now then you can skip this.

This confirms that we have successfully installed Ubuntu 19.04 on our laptop / Desktop. Please share your feedback and comments if these steps help you to install Ubuntu 19.04 on your system.


Centos8

Install CentOS 8 Desktop

Download CentOS 8 

First, you will need to download CentOS 8 from their official websites. You can download the CentOS 8 Linux and CentOS 8 Stream ISO using the following URLs:

You can also download the CentOS 8 ISO from the CentOS 8 mirror links as shown below:

After downloading the CentOS 8 ISO, you will need to create a bootable USB stick or DVD.

Install CentOS 8

Start the system on which you want to install CentOS 8 and change the boot order as USDB or DVD from the BIOS settings.

Once the system boots up, you will get the following screen:

Select “Install CentOS Linux 8.X” and hit Enter. You will be redirected to the following screen:

Select your desired language and click on the Continue button. You should see the following screen:

From here, you can set Keyboard, Installation Source, Software Selection, Time & Date, Kdump and Installation Destination. Click on the Installation Destination. You should see the following screen:

Select Automatic and click on the Done button. You should see the following screen:

Now, click on the Begin Installation button. You should see the following screen:

Now, click on the Root Password to set the root password. You should see the following screen:

Provide your desired password and click on the Done button. You should see the following screen:

Now, click on the User Creation button. You should see the following screen:

Provide your desired username, password and click on the Done button. You should see the following screen:

Once the installation has been completed successfully. You should see the following screen:

Click on the Reboot button to restart the system and boot from the Hard disk. 

Once the system started, you should see the CentOS License information screen:

Click on the License Information, accept the License agreement and click on the Done button. You should see the following screen:

Click on the FINISH CONFIGURATION. You will be redirected to the CentOS 8 login screen:

Click on the username, provide your password and click on the Sign In button. You should see the CentOS 8 Welcome screen:

Select your desired language and click on the Next button. You should see the following screen:

Select your Input Method and click on the Next button. You should see the following screen:

Now, enable the location services and click on the Next button. You should see the following screen:

Now, click on the Skip button. You should see the following screen:

Now, click on the Start Using CentOS Linux. You should see CentOS 8 desktop in the following screen: