Archive for the ‘software’ Category

How to solve Error: Missing Dependency: php-common = 5.1.6-23.2.el5_3 is needed by package php-gd-5.1.6-23.2.el5_3.i386 (updates)

Tuesday, June 9th, 2009

This is a very strange error and there seems to be no answers on the web for it. I found some cases on the CentOS forums and the recommendation was to reinstall the whole OS. This is how I solved it.

as superuser

#yum remove php-common

(this command may remove a lot of installed software, you must make a list and install them again)

#yum install php-gd

(this will install the proper version of php-common and php-gd)

Possible solutions to yum error “[Errno 4] IOError:

Friday, March 27th, 2009

1. Check if there is an internet connection

2. If internet connection is ok. edit /etc/yum.conf.

3. look for the proxy settings which would look something like “proxy=http://192.168.1.1:3128″

4. Check if this proxy is working.

5. Delete the whole line if you’re not using an internet proxy server

How to install ati video driver on a centOS machine

Monday, February 9th, 2009

This took me around 2 weeks to complete.

Here are the proper (easy) steps on how to do it

1. Update your linux kernel, install the tools then restart your computer (root)

$yum install kernel-devel
$yum install gcc
$yum install gcc-c++
$yum install make
$yum update kernel

2. download the driver here

3. run the driver from the command line (as root)

$./ati-driver-installer-9-1-x86.x86_64.run

4. run aticonfig

$aticonfig –initial –force

5. check if driver is working

$fglrxinfo
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: Radeon X1550 Series
OpenGL version string: 2.1.8395 Release

$glxinfo | grep direct
direct rendering: Yes

If this did not work, check the install logs (/usr/share/ati/fglrx-install.log)

How to change hibernate settings on runtime

Tuesday, December 16th, 2008

One is you can build your configuration from scratch but what I like to do is getting the standard settings from my hibernate.cfg.xml file then change some of the values on my code. here’s how I do it

Configuration conf = new Configuration();
conf.configure().setProperty(“hibernate.connection.url”, “jdbc:mysql://”+host+”/”+dbname);
conf.setProperty(“hibernate.connection.username”, user);
conf.setProperty(“hibernate.connection.password”, password);

How to add yum repositories on your linux CentOS system

Monday, December 8th, 2008

There are two ways of adding yum repositories to your centOS system

1. Drop .repo files into your /etc/yum.repos.d/ directory

2. Add a repository entry in your /etc/yum.conf file

you can go to http://osresources.com/11_6_en.html for more on this.

Possible solution to Error: 2003(HY000): Can’t connect to MySQL Server on….. error

Friday, December 5th, 2008

This is one possiible solution to Error: 2003(HY000): Can’t connect to MySQL Server on ******* error

this error may not be caused by wrong mysqld installation or configuration, a possible cause is that your connection is blocked by a firewall.

here’s the fix for linux systems.

on the mysql server machine, go to your shell as root and type

#/etc/init.d/iptables stop

this should disable the firewall

(if you’re not allowed to do this, ask your system admin to open connection on port 3306) :-]