centos 6 Openldap logging

#touch /var/log/openldap/ldap.log Add new line to rsyslog configuration #vi /etc/rsyslog.conf #OpenLDAP local4.* /var/log/openldap/ldap.log Now restart rsyslog and slapd …. #service rsyslog restart #service slapd restart …and enjoy! tail -f /var/log/openldap/ldap.log

SSL certificate reject git over HTTPS

git clone REPOSITORY fatal: HTTP request failed Two solutions: git config –global http.sslVerify false export GIT_SSL_NO_VERIFY=true via http://stackoverflow.com/questions/3777075/ssl-certificate-rejected-trying-to-access-github-over-https-behind-firewall

code review plugin for Redmine 2.3

I choose https://bitbucket.org/haru_iida/redmine_code_review/downloads #cd /tmp #wget https://bitbucket.org/haru_iida/redmine_code_review/downloads/redmine_code_review-0.6.2.zip #unzip redmine_code_review-0.6.2.zip -d /var/www/redmine/plugins/ #rake redmine:plugins:migrate RAILS_ENV=production

Install Jenkins centos 6.4 mod_proxy

Let’s define which java version is installed (we need 1.6) # java -version # sudo yum remove java You must have EPEL repo enabled # yum install java-1.6.0-openjdk #sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo #sudo rpm –import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key #sudo yum install jenkins add this to /etc/sysconfig/jenkins JENKINS_ARGS=”–httpListenAddress=127.0.0.1 –prefix=/jenkins” add this to /etc/http/conf.d/jenkins.conf RequestHeader unset X-Forwarded-User RewriteEngine […]

change hostname on centos 6.3

To change your centos hostname: sudo vi /etc/sysconfig/network Modify HOSTNAME value with your FQDN host name HOSTNAME=myserver.domain.com Than you should change host name which is associated with your IP sudo vi /etc/hosts 127.0.0.1 localhost localhost.localdomain #change ip 123.123.123.123 to your IP 123.123.123.123 hostname.mydomain.com hostname At this point you should restart network service. You can do […]

Підключаємо додаткові репозиторії в Centos 6.3

Маємо CentOS Minimal x86_64. Будемо підключати два додаткових репозиторія Epel та RepoForge(ex rpmforge) =====epel======== sudo su yum install wget cd /tmp wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm rpm -ihv epel-release-6-8.noarch.rpm ====repoforge===== wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm rpm -ihv rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm