Just a quick post for those of you who have ran into issues with VMWare after a dist-upgrade.
If apt did not download the matching kernel headers on update, just run apt-get install linux-headers-`uname -r`.
Once that has completed type uname -r and remember the kernel version. You can then just symlink that version as follows :
ln -s /usr/src/linux-headers-2.X.X.X /usr/src/linux
Afterwards type
/usr/bin/vmware-config.pl
And it will ask you where your C header files are. You can then just type
/usr/src/linux
And all will be dandy, leave the rest of the configuration to default unless you need to change something. I am sure most people already know this, it is quite basic however may be useful to some.
Let’s say you just dumped an entire database and are looking to import it elsewhere, possibly on a new host. As soon as you install mysql-server on the new box a new password is set for user debian-sys-maint.
# mysqldump –all-databases -u root -p > dump.sql
Once you import this database on the new host there is a good chance you will not be able to restart mysql as the debian-sys-maint user account passwords will not match.
# mysql -u root -p < dump.sql
So the easiest way to fix this issue is to :
web:~# cat /etc/mysql/debian.cnf
# Automatically generated for Debian scripts. DO NOT TOUCH!
[client]
host = localhost
user = debian-sys-maint
password = PASSWORD
socket = /var/run/mysqld/mysqld.sock
[mysql_upgrade]
user = debian-sys-maint
password = PASSWORD
socket = /var/run/mysqld/mysqld.sock
basedir = /usr
So often after installing VMWare on my Debian based hosts I get this error :
desktop gregory # vmware
/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)
/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)
/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)
You have probably seen this yourself if running any Ubuntu flavored distributions, heres my fix :
desktop gregory # rm /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1
desktop gregory # ln -s /usr/lib/gcc/i486-linux-gnu/4.2/libgcc_s.so /usr/lib/vmware/lib/libgcc_s.so.1/libgcc_s.so.1
Now I wil never forget…


