Posts Categorized: red hat centos

Building Slurm Scheduler RPM Packages

centos logo

Download the slurm tarball from http://www.schedmd.com/#repos Install dependencies: yum install munge-devel munge-libs readline-devel perl-ExtUtils-MakeMaker openssl-devel pam-devel rpm-build Build the RPM: rpmbuild -ta ./slurm-14.03.10.tar.bz2 After 5 minutes compiling this will create RPMs in the directory: ~/rpmbuild/RPMS/x86_64/ for me this was /root/rpmbuild/RPMS/x86_64/ The created RPMs were as follows: slurm-14.03.10-1.el6.x86_64.rpm slurm-pam_slurm-14.03.10-1.el6.x86_64.rpm slurm-sjobexit-14.03.10-1.el6.x86_64.rpm slurm-slurmdb-direct-14.03.10-1.el6.x86_64.rpm slurm-devel-14.03.10-1.el6.x86_64.rpm slurm-perlapi-14.03.10-1.el6.x86_64.rpm slurm-sjstat-14.03.10-1.el6.x86_64.rpm slurm-sql-14.03.10-1.el6.x86_64.rpm slurm-munge-14.03.10-1.el6.x86_64.rpm… Read more »

Install Logtail on CentOS

I had a munin plugin script that uses the logtail program. Logtail comes with the ‘logcheck’ package – available in the EPEL repository. To install it make sure you have the EPEL repository installed. If not (for CentOS 6): rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm With the EPEL repository installed, install logcheck: yum install logcheck Logtail is installed… Read more »

LDAPS Active Directory Issues with php-5.3.3-27.el6_5.2.x86_64

I upgraded a CentOS server today updating PHP from php-5.3.3-27.el6_5.x86_64 to php-5.3.3-27.el6_5.2.x86_64 This stopped a PHP web application I had written from being able to communicate with Active Directory over LDAPS. Normal LDAP appears to continue working fine but when I change my connections back to ldaps they stop working. To deal with the problem… Read more »

Browsing the GitLab Omnibus Postgres Database

phpPgAdmin

After installing GitLab Omnibus edition I wanted to take a look at the database tables. To do so I installed phpPgAdmin (available in the EPEL repo): yum install phpPgAdmin I created a user in Postgres for use with phpPgAdmin: su – gitlab-psql /opt/gitlab/embedded/bin/psql gitlabhq_production gitlabhq_production=# CREATE USER jonny_test WITH PASSWORD ‘opensesame’; CREATE ROLE gitlabhq_production=# GRANT… Read more »

Restricting SSH Logins to LDAP Group

The are multiple methods of doing this including using pam but I settled for the following: In the /etc/ssh/sshd_config file I currently have: AuthorizedKeysCommand /usr/libexec/openssh/ssh-ldap-wrapper AuthorizedKeysCommandRunAs nobody to check for ssh keys for the user logging in and I also have password authentication disallowed. The content of the file /usr/libexec/openssh/ssh-ldap-wrapper was simply: exec /usr/libexec/openssh/ssh-ldap-helper -s… Read more »

pam_exec.so Execute Commands on User Login

In addition to the normal pam_mkhomedir.so I wanted to create a directory for each user on an alternative disk. To do so I edited: vi /etc/pam.d/password-auth added the line below (just above the line: session optional pam_mkhomedir.so) session     optional      pam_exec.so /usr/local/bin/create_dir.sh Then created the create_dir.sh file: vi /usr/local/bin/create_dir.sh and added the following: #!/bin/bash if [… Read more »

Named: libcrypto.so.10: no version information available

centos logo

We had a problem today on CentOS release 6.4  when restarting the bind / named service. We had been receiving the error message: /usr/sbin/named: /usr/lib64/libcrypto.so.10: no version information available (required by /usr/lib64/libdns.so.100) This problem may have come about from using the CentAlt version of Bind. We are using 40:9.9.4-1.P2.el6 and we had been using openssl-1.0.0-27.el6_4.2.x86_64 … Read more »

Reset ntopng admin password

I had a comment on my recent Ntopng article from a user who needed to reset the admin password on ntopng. Ntopng uses redis as a backend data store. So first check that the redis server is actually running: netstat -luntap | grep redis You should get output similar to: tcp        0      0 127.0.0.1:6379              0.0.0.0:*                  … Read more »

ntopng on CentOS 6

ntopng

Ensure you have the EPEL repository installed first then do the following to add a repository for ntopng: vi /etc/yum.repos.d/ntop.repo Add the following (the deri bit at the end below is not cut off – it works): [ntop] name=ntop packages baseurl=http://rpm.ntop.org/$releasever/$basearch/ enabled=1 gpgcheck=1 gpgkey=http://www.nmon.net/centos/RPM-GPG-KEY-deri Install ntopng and dependencies: yum install pfring n2disk nProbe ntopng ntopng-data… Read more »