Jenkins

Jenkins – Git repository and self-signed certificate

When we want to connect Jenkins to a SCM server like git or svn with a self-signed certificate (https connexion), the following error can occur: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target Actually, it is a Java error due to the fact Jenkins hits the URL before…

linux

Linux – Commands

Resources SS64.com – An A-Z Index of the Bash command line for Linux http://ss64.com/bash/   In short Display the system hour $ date Modify the hour # date -s HH:MM:SS Modify the date # date -s MM/JJ/AAAA Display the server bios hour $ hwclock Synchronize the system hour with the bios hour # hwclock –systohc…

ntp

NTP time server

NTPDATE If we want to update the date of our serveur from time to time, we type the following: $ntpdate {a time server} Note: we must stop the process ntpd if it is running, we can do that with: # /etc/init.d/ntp stop or # /etc/init.d/ntpd stop If we must do a scheduled task which executes…

crontab-schedule

Crontab

Structure Crontab’s structure is very easy to understand. # Edit this file to introduce tasks to be run by cron. # # Each task to run has to be defined through a single line # indicating with different fields when the task will be run # and what command to run for the task #…

subversion-logo[1]

SVN – Authentication

SVN configuration with multi-authentications (2 Active Directory domains) Here is an example of a vhost configuration for an SVN. It allows users to be authenticated with 2 different Active Directory domains. #Authentication providers <AuthnProviderAlias ldap firstone> AuthLDAPBindDN “CN=svn-generic,OU=Service Accounts,DC=firstone,DC=com” AuthLDAPBindPassword jtCCkWW6 AuthLDAPURL ldap://dc01.firstone.com:3268/?sAMAccountName?sub? </AuthnProviderAlias> <AuthnProviderAlias ldap secondone> AuthLDAPBindDN “CN=svn-generic,OU=Service Accounts,DC=secondone,DC=com” AuthLDAPBindPassword xh3J1VZX AuthLDAPURL ldap://dc01.secondone.com:3268/?sAMAccountName?sub? </AuthnProviderAlias>…

apache

Apache 2

Exception on a web folder <Location “/timeline”> <Limit GET> Order deny,allow Allow from all Require valid-user Satisfy any </Limit> </Location>   Restart Apache2 on a RedHat system # /usr/local/apache2/bin/httpd -f /usr/local/apache2/conf/httpd.conf -k restart Apache2 – SSL – Put a website on HTTPS You must have certificates previously created in order to have an https website.…

nfs

NFS

Installation of NFS (server side) System Requirements & Prerequisites On our server (IP :10.10.13.58), we define a place (a folder) which will be reserved for NFS. In our case, the whole /backup directory is reserved for NFS. We plan to have several shared folders, one by server. So, in order to do that, we create…

log-rotate

Logrotate

Logrotate is a tool is a tool installed by default on linux distributions. It rotates logs automatically but it also compresses or transfers its. It could also suppress obsoletes files. It main config file is: /etc/logrotate.conf If we want to add log files to be rotate automatically by logrotate, we must type some lines of…