bkpmind Just some notes

17Sep/110

vmware and the “several modules must be compiled…”

Sometimes vmware needs to compile some modules showing you a message "Before you can run vmware several modules must be compiled and loaded into the running kernel". This could happen just after you have installed it or after a kernel upgrade.

So, vmware try to build these modules automatically, but sometimes it can't.
(Of course, life isn't easy)

To solve this problem, I found the below script that must be executed by root user.

#!/bin/bash
cd
cp -prn /usr/lib/vmware/modules/source /usr/lib/vmware/modules/source-backup
mkdir fixed
cd fixed
find /usr/lib/vmware/modules/source -name "*.tar" -exec tar xf '{}' \;

## add missing header on kernels
sed -i '/#include "compat_wait.h"/a\#include "compat_sched.h"' vmnet-only/vnetUserListener.c
sed -i '/#include "compat_page.h"/a\#include "compat_sched.h"' vmci-only/include/pgtbl.h
## comment out an invalid definition
sed -i 's|\(extern void poll_initwait(compat_poll_wqueues \*);\)|//\1|' *-only/include/compat_wait.h

tar cf vmblock.tar vmblock-only
tar cf vmci.tar vmci-only
tar cf vmmon.tar vmmon-only
tar cf vmnet.tar vmnet-only
tar cf vmppuser.tar vmppuser-only
tar cf vsock.tar vsock-only

cp -p *.tar /usr/lib/vmware/modules/source

cd /lib/modules/`uname -r`/build/include/linux
ln -s ../generated/autoconf.h
ln -s ../generated/utsrelease.h
cd

vmware-modconfig --console --install-all

# clean up
cd
rm -rf fixed
cd /lib/modules/`uname -r`/build/include/linux
rm autoconf.h utsrelease.h
cd /usr/lib/vmware/modules/
rm -rf source-backup
cd

This was successfully executed in openSUSE 11.4 and the script's author was the malcolmlewis user from forums.opensuse.org. Thanks Malcolm!

Tagged as: , No Comments
9Sep/110

Installing tint2 on openSUSE

I'm using GNOME 3 on openSUSE 11.4 and everything is (almost) fine. But something that I missed was the taskbar, but no more, thanks to tint2.

tint2 "is a simple panel/taskbar unintrusive and light (memory / cpu / aestetic)".

Unfortunately tint2 isn't available through Yast, so we have to do this in a hard mode (not so hard).

Grab the source code from http://code.google.com/p/tint2/, unpack and enter into its directory. Open the INSTALL file and you'll see that is very simple to build tint2. You just need to create a directory and execute cmake, make and make install commands.

At the end, you'll want it to execute automatically. The easiest way is through gnome-session-properties tool. Add a new entry there and do logout/login.

And you also get, completly free, tint2conf used to manage your panel themes.