Tag Archives: haveged

Entropy on linux

Introduction
How to check entropy level:

[codesyntax lang="bash"]

watch -n1 cat /proc/sys/kernel/random/entropy_avail

[/codesyntax]

If the value is to low (around 100) install haveged daemon

How to install haveged on Linux

Debian
[codesyntax lang="bash"]

 apt-get install haveged

[/codesyntax]

CentOS
haveged daemon is available for CentOS via EPEL repository.
First, we download and import the GPG keys for EPEL software packages:

[codesyntax lang="bash"]

wget http://ftp.riken.jp/Linux/fedora/epel/RPM-GPG-KEY-EPEL-6
rpm --import RPM-GPG-KEY-EPEL-6
rm -f RPM-GPG-KEY-EPEL-6

[/codesyntax]

Download EPEL repository for 32-bit CentOS
[codesyntax lang="bash"]

 wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm

[/codesyntax]
Install EPEL repository on 32-bit CentOS
[codesyntax lang="bash"]

 rpm -ivh epel-release-6-7.noarch.rpm

[/codesyntax]
You can start install and use EPEL the repository to install the software packages, input yum command like follows:
[codesyntax lang="bash"]

 yum --enablerepo=epel install haveged

[/codesyntax]