Yum Error Operation too slow

When i did yum update on a CloudLinux server, i get following error

This is because server is unable to connect to one of the yum mirrors. To fix this, we need to disable the mirror that cause this timeout. Edit file

Find

Replace with

Find

Add below

run […]

Read More…

yum fix duplicate package error

When installing a package, i get following error

To fix, remove the conflicting package with

See yum, Fix yum duplicate packages […]

Read More…

Red Hat Killing CentOS Linux, Fight for CentOS clone

RedHat, parent company of CentOS Linux announce it will stop supporting CentOS 8, the latest version of CentOS. CentOS is build from the source code RHEL, making a free version of stable and well-tested enterprise ready RHEL Linux. CentOS 7 will keep getting security updates until it reaches End Of Life June 30th, 2024. For […]

Read More…

Install Xfce VNC remote desktop on CentOS 7

xfce remote desktop

Xfce is a lightweight linux desktop environment. You can install Xfce on a remote server or virtual machine, connect to it using VNC to use it as a desktop. To install Xfce, enable EPEL repo

Install Xfce

You can see other groups available with command “yum grouplist”. Insall vnc server

Creating User […]

Read More…

Disable SELinux on CentOS/RHEL

To disable SELinux Method 1

Method 2 edit file

Find

Replace with

Reboot the server with

You can disable selinux for current session by running command

See SELinux […]

Read More…

Install Latest MariaDB on CentOS

MariaDB install CentOS

To install latest MariaDB on CentOS server, go to https://downloads.mariadb.org/mariadb/repositories/#mirror=Fibergrid On this page, select CentOS, then select your CentOS version and MariaDB version you need. Below you will see instruction for your specific version of CentOS. Install MariaDB 10.5 on CentOS 7 CentOS 7 by default provide MariaDB 5.5. To install MariaDB 10.5 Create file […]

Read More…

Prometheus init script for CentOS 6

Create init file.

Add following

Create User For Prometheus

Run prometheus on Boot

Verify it is enabled

“3:on” will start prometheus on run level 3, that is normal boot. Start Prometheus

See Monitor Server with Prometheus and Grafana […]

Read More…

rpmquery

rpmquery command allow you to check if a specific rpm package installed on your computer.

Example

See rpm […]

Read More…

Install PHP 5.6 on CentOS 7

To install PHP 5.6 on CentOS 7, enable EPEL repo and remi repo

Install yum-utils and enable remi-php56 repo

Install PHP 5.6 with

[…]

Read More…