Failed compilation for VMware HGFS kernel module

Vmware-tools have a kernel module for shared folders. On Ubuntu 14.04 the module compilation fails with something like "alias […] inode.c […] line 28". The fix is quite easy, here are the simple steps:

cd vmware-tools-distrib/lib/modules/source
tar -xvf vmhgfs.tar
cd vmhgfs-only
vim inode.c
":%s/d_alias/d_u.d_alias/g" (execute vim command inside editor, no quotes)
":wq!" (execute vim command)
cd ..
tar -cvf vmhgfs.tar vmhgfs-only

Now install vmware-tools normally, then shutdown and add a shared folder to your VM. After a new boot you should access your shared folder at /mnt/hgfs

source: vmware communities

PHP/Python cross encryption

Hello,

for everyone looking for a possibility to encrypt/decrypt data between PHP and Python, here are a PHP class and a Python module which allow cross-encryption. Both languages create different encryption texts but the decryption is compatible using the ECB algorhythm using AES-128.

Requirements:

Python 2.7 + PyCrypto
PHP 5.4 + Mcrypt

PhPyEnc (804 downloads )

Squirrelmail 1.4.22 on PHP 5.4 and Ensim

Hello all,

As you already read or heared php 5.3 has reached its end-of-life. So basically everyone should upgrade their php version to 5.4 or even 5.5. When I upgraded to 5.4 squirrelmail stopped working (I think it was still version 1.4.9a) and put a lots of error messages into the log. These messages were warnings concerning illegal string offsets.

Even squirrelmail 1.4.22 has problems with php 5.4!? Come on guys, if I'm right php 5.4 is out for about 2 years or so.

So i gave 1.4.23-snapshot a try and it indeed solved the php warnings issue, problem: it is no stable release yet! Although this version solved the biggest problems with php 5.4 it was not compatible with our Ensim box where sites are running in high security mode, btw 1.4.22 wasn't either. After some digging I found out that sqmail 1.4.9a (working on our ensim box) contained an other php_self() function in functions/strings.php than the latest releases.

What was the problem on the Ensim box?

As soon as you tried to log in you got a message like: "you must be logged in" and the link for going back to the login page has /var/www prepended.

Solution:

The solution is quite simple as soon as you find out: take the php_self() from functions/strings.php in sqmail 1.4.9a and replace the new function with the old one in 1.4.22 or 1.4.23