How to install VMware Server 1.0.5 in Ubuntu Hardy (8.04)

Since Hardy uses a 2.4.24 kernel, you can't compile the vmmon module which is needed to install VMWare Server 1.0.5.

Fortunately, the long-awaited vmware-any-any-update115 patch solves the issue.
(Found on the Ubuntu Forums)

First, untar vmware server and run the installation script:

tar -zxvf VMware-server-1.0.5-80187.tar.gz
cd vmware-server-distrib
sudo ./vmware-install.pl

When it asks you whether you want to run the configuration script, answer no, download, untar the patch and run it:

wget http://knihovny.cvut.cz/ftp/pub/vmware/vmware-any-any-update115.tar.gz
tar -zxvf vmware-any-any-update115.tar.gz
cd vmware-any-any-update115
sudo ./runme.pl

After that, again, do NOT run the configuration script. You still have to modify the sources of vmnet:

cd /usr/lib/vmware/modules/source
sudo tar xf vmmon.tar vmmon-only
sudo sed -i 's#asm/bitops.h#linux/bitops.h#' vmmon-only/include/vcpuset.h
sudo mv vmmon.tar vmmon.tar.old
sudo tar cf vmmon.tar vmmon-only

You can run the configuration script this time.

sudo vmware-config.pl

When you will try to run your newly installed vmware server, it will fail with the following error:

/usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_3.4' not found (required by /usr/lib/libcairo.so.2)
/usr/lib/vmware/bin/vmware: /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1: version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)
[x3]

To overcome it, type:

sudo ln -sf /lib/libgcc_s.so.1 /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1

To test it, type

vmware

Voila! Your server and client should be up and running at this point.