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 […]

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 […]

ubuntu install twinkle

To install Twinkle on ubuntu you should do: 1) vi /etc/apt/source.list deb http://http.us.debian.org/debian stable main contrib non-free deb-src http://ftp.debian.org/debian stable main contrib non-free 2) sudo apt-get update 3) sudo apt-get install twinkle

mysql reset root password

Stop your mysqld sudo service mysqld stop Start mysql without grants mysqld_safe –skip-grant-tables Login into mysql mysql –user=root mysql Change mysql root password update user set Password=PASSWORD(‘my-new-password’) where user=’root’; flush privileges; exit; Restart mysql server ps -aux|grep mysql #now use kill -9 to kill mysql Launch your mysql server service mysqld start