Deployment without Internet access

Hideez Enterprise Server without Internet access

This guide describes how to install the HES server on a computer that does not have Internet access. An example is taken for RedHat 7.9 in which MySQL 8 and nginx are not present in official repositories.

In the test environment we have a "fresh" server with SELinux and firewall disabled

systemctl stop firewalld
systemctl disable firewalld
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
reboot

Enable local repo

For install additives packages, If you do not have a local repository, you need to connect, for example, a repository with an official DVD in "/media/iso/”

cp /media/iso/media.repo /etc/yum.repos.d/rhel7dvd.repo
chmod 644 /etc/yum.repos.d/rhel7dvd.repo

then edit file ‘/etc/yum.repos.d/rhel7dvd.repo’

vi /etc/yum.repos.d/rhel7dvd.repo

and bring this file to this content:

[InstallMedia]
name=Red Hat Enterprise Linux 7.9
mediaid=1600369739.509793
metadata_expire=-1
gpgcheck=1
cost=500
enabled=1
baseurl=file:///media/iso/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

here "/media/iso/" is our DVD

and finally, connect the repository:

yum clean all
yum repolist enabled

Remove mariadb-libs

yum remove mariadb-libs -y

Install additive packages from default repo (CD-ROM in our case)

yum install perl net-tools libicu cyrus-sasl -y

Download files

We will need to install the following programs: HES, MySQL, nginx

You can always find the latest versions of these programs at the following links:

Of course, you can always download from the original sites and download them manually, or:

Option 1:

We have saved the rpm files you need on our site by following the link https://update.hideez.com/hes/AdditionalLibraries/rpm/ and hes in https://update.hideez.com/hes

Option 2: For automatic download, we have prepared a small script that downloads the latest versions of packages at the time of writing our instructions:

  • Or on windows computer:

#!/bin/bash
# HES
curl -O https://update.hideez.com/hes/linux_x64_latest.tar.gz
# MySQL
curl -O https://cdn.mysql.com//Downloads/MySQL-8.0/mysql-community-server-8.0.27-1.el7.x86_64.rpm
curl -O https://cdn.mysql.com//Downloads/MySQL-8.0/mysql-community-client-8.0.27-1.el7.x86_64.rpm
curl -O https://cdn.mysql.com//Downloads/MySQL-8.0/mysql-community-client-plugins-8.0.27-1.el7.x86_64.rpm
curl -O https://cdn.mysql.com//Downloads/MySQL-8.0/mysql-community-libs-8.0.27-1.el7.x86_64.rpm
curl -O https://cdn.mysql.com//Downloads/MySQL-8.0/mysql-community-common-8.0.27-1.el7.x86_64.rpm
# nginx
curl -O http://nginx.org/packages/rhel/7/x86_64/RPMS/nginx-1.20.2-1.el7.ngx.x86_64.rpm

You can save it, on a computer with internet access, called "download.sh" and then run:

bash download.sh
  • Or on windows computer:

# HES
$Name="linux_x64_latest.tar.gz"
Invoke-WebRequest https://update.hideez.com/hes/$Name -OutFile $Name

# MySQL
$Name="mysql-community-server-8.0.27-1.el7.x86_64.rpm"
Invoke-WebRequest https://cdn.mysql.com//Downloads/MySQL-8.0/$Name -OutFile $Name
$Name="mysql-community-client-8.0.27-1.el7.x86_64.rpm"
Invoke-WebRequest https://cdn.mysql.com//Downloads/MySQL-8.0/$Name -OutFile $Name
$Name="mysql-community-client-plugins-8.0.27-1.el7.x86_64.rpm"
Invoke-WebRequest https://cdn.mysql.com//Downloads/MySQL-8.0/$Name -OutFile $Name
$Name="mysql-community-libs-8.0.27-1.el7.x86_64.rpm"
Invoke-WebRequest https://cdn.mysql.com//Downloads/MySQL-8.0/$Name -OutFile $Name
$Name="mysql-community-common-8.0.27-1.el7.x86_64.rpm"
Invoke-WebRequest https://cdn.mysql.com//Downloads/MySQL-8.0/$Name -OutFile $Name

# nginx
$Name="nginx-1.20.2-1.el7.ngx.x86_64.rpm"
Invoke-WebRequest http://nginx.org/packages/rhel/7/x86_64/RPMS/$Name -OutFile $Name

save it, on a computer with internet access, called "download.ps1" and then run in powershell:

.\download.ps1

It doesn't matter how you download the files, but in the end you need to have the following files on your computer:

  • linux_x64_latest.tar.gz

  • mysql-community-client-8.0.27-1.el7.x86_64.rpm

  • mysql-community-client-plugins-8.0.27-1.el7.x86_64.rpm

  • mysql-community-common-8.0.27-1.el7.x86_64.rpm

  • mysql-community-libs-8.0.27-1.el7.x86_64.rpm

  • mysql-community-server-8.0.27-1.el7.x86_64.rpm

  • nginx-1.20.2-1.el7.ngx.x86_64.rpm

Transfer these files to the computer on which you want to install HES and run the following commands

  • installing MySQL and nginx:

rpm -ivh *.rpm
systemctl enable mysqld nginx
systemctl start mysqld nginx
  • installing HES:

tar -xvf linux_x64_latest.tar.gz
mv HES /opt/

Then follow our instructions posted here given that MySQL, nginx and HES have already been installed. All you have to do is configure them.

Last updated