Category Archives: Operating Systems

Linux : How to install clang on CentOS 7

The EPEL repository provides clang RPM package. So to install clang on CentOS 7, You need to install EPEL first: sudo yum install epel-release Then you can install “clang”: sudo yum install clang After this, you can use clang to compile your program.

Linux : error processing package nginx on Debian

Having this error trying to install Nginx on Debian Linux 8? dpkg: error processing package nginx (–configure): dependency problems – leaving unconfigured Errors were encountered while processing: nginx-full nginx E: Sub-process /usr/bin/dpkg returned an error code (1) This is a known behaviour if you have Apache or another Web server installed and running. The problem… Read More »

Linux : How to tune up receive (TX) and transmit (RX) buffers on network interface

Modern and performance/server grade network interface have the capability of using transmit and receive buffer description ring into the main memory. They use direct memory access (DMA) to transfer packets from the main memory to carry packets independently from the CPU. The usual default buffering values for regular desktop NICs are 256 or 512 bytes. High… Read More »

Linux : Edit Grub2 settings on RHEL/CentOS 7

RedHat / CentOS 7 is now shipped with Grub2 which require a different approach than the well known legacy Grub. To modify Grub2 settings or kernel parameters, edit the following file : /etc/default/grub Then regenerate the Grub config as followed : grub2-mkconfig -o /boot/grub2/grub.cfg

Windows : How to enable the legacy boot loader

Since Windows 8, everything is now Metro, not just the start menu, but the boot loader too! Fortunately, there is a command to disable the Metro boot loader and enable the legacy one. To do so, you will need to open the command line utility as administrator and use the following command : bcdedit /set… Read More »

Linux : Ubuntu apt-get update Hash Sum mismatch

Experiencing the following error while running “apt-get update” on your Ubuntu server? W: Failed to fetch http://ca.archive.ubuntu.com/ubuntu/dist/precise/restricted/source/Sources Hash Sum mismatch E: Some indes files failed to download. They haev been ignored, or old ones used instead. Just run the following command : sudo rm -Rf /var/lib/apt/lists/* And run the update command again : sudo apt-get… Read More »

Linux : Yum Error: database disk image is malformed

Having this error message while running a “yum install” or “yum update” command on your RHEL/CentOS Linux system? Error: database disk image is malformed 1. Simply run the following command to fix this issue : yum clean all 2. Alternatively, if the problem is still persisting, then try to move the RPM database to a… Read More »