I want to query data from an Oracle database from a Python program and this could be done by using the cx_Oracle Python package. This package required some Oracle package pre-requisites so it cannot be installed thru pip directly.
The following steps are done on a Centos 7 machine with Python 2.7.
1. Download and install the following from Oracle.
2. The installed client should be located at /usr/lib/oracle/11.2/client64.
Continue reading Python – Install cx_Oracle
collectd is a statistics gathering tools which helps system admin to analysis the system conditions. It includes both server and client implementations. The collectd client send metrics to the collectd server.
I installed the collectd on a CentOS 7 machine and try to send the metrics to a Graphite instance. But no matter how i changed the setup, the Graphite couldn’t receive any data. Finally, i realized that it is blocked by the SELinux policy.
Continue reading collectd – Cannot send out matrics
Assume SELinux is disabled on your Git server…
The following setup is on CentOS and assume your Git repositories are all located under /data/repos.
1. Install Git and Apache.
yum install git httpd
2. Create the /etc/httpd/conf.d/git.conf.
# Git over HTTP
SetEnv GIT_PROJECT_ROOT /data/repos
ScriptAlias /git/ /usr/libexec/git-core/git-http-backend/
AuthName "Git Access"
Continue reading Make Git work on HTTP protocol
Haven’t worked with CentOS for a long time. Miss the time and the teammates in HKU CECID.
Here are the steps to install Alternative PHP Cache (APC) on CentOS.
1. Install the following packages.
yum install php-pear php-devel httpd-devel pcre-devel gcc make
Continue reading CentOS – Install Alternative PHP Cache (APC)
Webtatic.com provides its own repository. If you want to get the latest packages such as PHP and MySQL, you can consider adding it to your yum repo by the following steps.
1. Add the yum repository information
Continue reading PHP – PHP 5.3 Repository for CentOS from Webtatic.com
The default CentOS repository is quite old and i cannot find what i need. The JPackage Project is designed for providing up-to-date java packages for Linux user. Please refer to the JPackage Official Website for more details.
Continue reading JPackage – Yum Repositories for CentOS, Fedora and Redhat
If you want to use Java Sun JDK instead of OpenJDK on CentOS, u have to install it manually.
Continue reading CentOS – Install Java Sun JDK
The current available postgresql-server package in CentOS Yum Repository is 8.1.18. But my application needs postgresql-server 8.3. Luckily, PostgreSQL provides its own repository for upgrade. So Fedora, Redhat and CentOS users can upgrade by the following steps.
Continue reading PostgreSQL – Upgrade version from PostgreSQL Yum Repository
Finally i make the yum work in the virtual linux inside the Cisco AXP 1.5. That virtual linux has a Cisco Built Linux Kernel which only has some basic commands and i need to install many software on it in order to make my application works. One of the pre-requisites is PHP 5.2 but unfortunately, the default CentOS repository – http://mirror.centos.org/ only provides PHP5.1.
Continue reading CentOS – PHP5.2 Installation