Install NethServer using YUM in CentOS

38

In our previous guide, we have seen what is NethServer and how to install NethServer by using its ISO image. It was the easiest and straight forward method. Today, we will see how to install NethServer in an existing, freshly installed CentOS server. If you have a VPS or physical system pre-installed with CentOS operating system, you can install NethServer on top of it, without formatting or deleting the entire setup.

Install NethServer using YUM in CentOS minimal server

Please note that you should install NethServer in a fresh CentOS minimal server.

Log in as root user, and update the CentOS server using command:

yum update

Then, run the following command to add and enable NethServer’s repository in your CentOS:

yum localinstall http://mirror.nethserver.org/nethserver/nethserver-release-6.rpm

Sample output:

yum localinstall http://mirror.nethserver.org/nethserver/nethserver-release-6.rpm
 Loaded plugins: fastestmirror
 Setting up Local Package Process
 nethserver-release-6.rpm | 24 kB 00:00
 Examining /var/tmp/yum-root-Lmn3jM/nethserver-release-6.rpm: nethserver-release-6.8-2.ns6.noarch
 Marking /var/tmp/yum-root-Lmn3jM/nethserver-release-6.rpm to be installed
 Loading mirror speeds from cached hostfile
 * base: centos.excellmedia.net
 * extras: centos.excellmedia.net
 * updates: centos.excellmedia.net
 Resolving Dependencies
 --> Running transaction check
 ---> Package nethserver-release.noarch 0:6.8-2.ns6 will be installed
 --> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package Arch Version Repository Size
 ================================================================================
 Installing:
 nethserver-release noarch 6.8-2.ns6 /nethserver-release-6 42 k

Transaction Summary
 ================================================================================
 Install 1 Package(s)

Total size: 42 k
 Installed size: 42 k
 Is this ok [y/N]: y

Finally, install NethServer base system using command:

nethserver-install

Sample output:

Alternatively, you can install base system and additional modules (Ex.Mail server) at the same time as shown below:

nethserver-install nethserver-mail nethserver-nut

The above commands will download and install NethServer packages in your CentOS server. This will take a while depending upon the Internet connection speed.

Finally, you will see the following message after NethServer base system has been installed.

Complete!

Configuring system, please wait...

You can access the Web interface at:

 https://domain-name:980 (or https://IP_Address:980)

Login: root
 Password: <your_root_password>

Installation log can be found here: /var/log/nethserver-install.log

Acesss NethServer’s Server-manager

You can access the NethServer web interface by reaching the following URL(s) from your web browser.

  • https://domain-name:980 or https://IP_Address:980

Log in as your root user and its password.