How to install MongoDB on CentOS 6.4

Step by step how-to install mongo on CentOS 6.4 in right way Lets create new repo file sudo vi /etc/yum.repos.d/10gen.repo Put there [10gen] name=10gen Repository baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64 gpgcheck=0 enabled=1 Then sudo yum update and yum install mongo-10gen mongo-10gen-server After all we have installed mongodb on centos 6.4

base.ldif

dn: dc=localdomain,dc=com dc: localdomain objectClass: top objectClass: domain dn: ou=People,dc=localdomain,dc=com ou: People objectClass: top objectClass: organizationalUnit dn: ou=Group,dc=localdomain,dc=com ou: Group objectClass: top objectClass: organizationalUnit

Rootkit scanner Rkhnter

Rootkit scanner is scanning tool to ensure you for about 99.9%* you’re clean of nasty tools. This tool scans for rootkits, backdoors and local exploits by running tests like: – MD5 hash compare – Look for default files used by rootkits – Wrong file permissions for binaries – Look for suspected strings in LKM and […]

proxy: HTTP: disabled connection for (localhost)

I had a problem with Jenkins on fresh installed centos. Jenkins drops with http 503 error. In log file i found such message proxy: HTTP: disabled connection for (localhost) There are to ways to solve it: 1) Disable SELinux edit /etc/selinux/config and change SELINUX=disabled dont forget to reboot 2) Without disabling SELinux sestatus -b | […]

install latest git on centos 6.4

First of all you need an rpmforge repository installed on your system. Than you should enable rpmforge-extras repo. yum provides git In output you will find something like Loaded plugins: fastestmirror, presto Loading mirror speeds from cached hostfile * base: ftp.colocall.net * epel: ftp.colocall.net * extras: ftp.colocall.net * rpmforge: apt.sw.be * rpmforge-extras: apt.sw.be * updates: […]

git over smart-http with https secured by openldap on Centos

# git –version git version 1.7.1 # apachectl -v Server version: Apache/2.2.15 (Unix) My repos will located at /opt/data/repo named “repo1” and “repo2” mkdir /opt/data/repo #create first repo git init –bare repo1 cp repo1/hooks/post-update.sample repo1/hooks/post-update chmod +x repo1/hooks/post-update chown -R apache:apache repo1/ #create second repo git init –bare repo2 cp repo2/hooks/post-update.sample repo2/hooks/post-update chmod +x repo2/hooks/post-update […]

setup apache+ssl on centos

yum install mod_ssl openssl # Generate private key openssl genrsa -out ca.key 1024 # Generate CSR openssl req -new -key ca.key -out ca.csr # Generate Self Signed Key openssl x509 -req -days 365 -in ca.csr -signkey ca.key -out ca.crt # Copy the files to the correct locations cp ca.crt /etc/pki/tls/certs cp ca.key /etc/pki/tls/private/ca.key cp ca.csr […]