Category Archives: Operating Systems

Linux : Managing resolv.conf with resolvconf on Ubuntu

Lately, Ubuntu introduced “resolvconf” which manage and maintain the legacy “/etc/resolv.conf” file. As stated in the comment of this file, any manual editing will be lost, so by default you have to use resolvconf to manage it. You will find the following text files under /etc/resolvconf/resolv.conf.d : base : used when no data can be… Read More »

Linux : Error failed dependencies updating kernel-3.10.63-11.el6.centos.alt.noarch

Having the following error trying to install/update kernel v3.10 from the Xen repository on CentOS 6? error: Failed dependencies: kernel-firmware < 3.10.63-11.el6.centos.alt conflicts with kernel-firmware-3.10.63-11.el6.centos.alt.noarch Well, you are probably trying to install using “rpm -i” command. You should use “rpm -Uvh” instead as followed : rpm -Uvh kernel-3.10.68-11.el6.centos.alt.x86_64.rpm kernel-firmware-3.10.68-11.el6.centos.alt.noarch.rpm

Linux : How to register RedHat Enterprise Linux

RedHat can be used upon a paid subscription. You have to register your system using the following command in order to use the Yum repositories : subscription-manager register –username <username> –password <password> –auto-attach If by any chance you ran that command in the first place but you had no subscription available in your account, your… Read More »

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