Category: Linux

Python setuptools and get_python_version is not defined

If you run into the below error when using setuptools (setup.py), then it’s quite possible that you’re using an outdated version of Python’s setuptools. In particular, the python-setuptools package in the CentOS yum repository is too old. Traceback (most recent call last): File “setup.py”, line 19, in ? setup(**metadata) File “/usr/lib64/python2.4/distutils/core.py”, line 149, in setup dist.run_commands() File “/usr/lib64/python2.4/distutils/dist.py”, line 946,...

HyperVM and yum update Transaction Check Errors

If you’re having file conflict problems when running “yum update” on servers with the lxlabsupdate repository for HyperVM (or Kloxo) installed then there’s a simple resolution: cd /var/cache/yum/lxlabsupdate/packages/ rpm -Uvh *.rpm –replacefiles –replacepkgs This should fix errors such as: file /usr/share/man/man1/pcregrep.1.gz from install of pcre-8.02-1.el5_5.1.x86_64 conflicts with file from package pcre-6.6-2.el5_1.7.i386 file /usr/share/man/man1/pcretest.1.gz from install of pcre-8.02-1.el5_5.1.x86_64 conflicts with file...

Retrieve the Dell PowerEdge Service Tag remotely from Windows or Linux

Have you ever wanted to get the Dell Service Tag from a PowerEdge machine that you don’t have physical access to? Well it’s actually quite easy as Dell make this available through the standardised Desktop Management Interface (otherwise known as DMI) framework, so you don’t even have to install any of Dell’s OpenManage tools to view it! On a Linux...

Intel VT Virtualisation Technology on Dell PowerEdge servers

Somewhat annoyingly, Dell seem to like to disable Intel’s VT (Virtualisation Technology, sometimes called VMX) in the BIOS on their Dell PowerEdge servers, which means that you can’t use the Xen hypervisor to virtualise Microsoft Windows Server without changing this setting, which requires a reboot of the server to take effect. You can use omreport from the Dell OpenManage Server...

Cancelled yum transactions

If you’ve ever aborted a yum update for any reason, you’ve probably come across messages warning of transaction errors, such as the following example during an update from CentOS 5.4 to CentOS 5.5 that got cancelled part way through: Transaction Check Error: file /usr/include/libdevmapper.h from install of device-mapper-1.02.39-1.el5.i386 conflicts with file from package device-mapper-1.02.32-1.el5.x86_64 file /usr/share/man/man8/dmsetup.8.gz from install of device-mapper-1.02.39-1.el5.i386...

yum install and weird architecture behaviour

I was just trying to accomplish what you would think was a relatively easy task – installing the PHP-GD package from the Atomic Rocket Turtle repository for 64bit CentOS 5 and ran into a slightly cryptic problem. Running yum install php-gd simply produced a dependancy error php-gd-5.2.13-1.el5.art.i386 from atomic has depsolving problems –> Missing Dependency: libt1.so.5 is needed by package...