The archives for `Tips'


Ott 2

PolicyKit, permission denied…

figotip.jpgThe process of search of the acquaintance often is studded of failures and, sometimes, the best ones discovered take the way from such errors. I do not speak broadly speaking about the acquaintance, or however not only, also the learning processes characterize them are subject to these dynamics; as an example it has happened to modernize to mine opensuse 11 to me on virtualbox and discovering an error to the mounting of vboxadditions:
org.freedesktop. Hal.Device.PermissionDeniedByPolicy: org.freedesktop.hal.storage.mount-removable not <- (action, result).
I would have never imagined that my modernization introduced modifications to the operation of PolicyKit, the framework used from HAL for the advanced management of the accesses protect to the resources, practically an application can turn with the privileges of the customer and demand the access like root only when closely necessary, and that the solution was this sempilce modification in the section delimited from the tag of the /etc/PolicyKit/PolicyKit.conf rows:

<match action=” org.freedesktop.hal.storage.mount-removable” >
<return result=” yes”/>
</match>

Set 18

Google Chrome for Linux/Mac OS X

Google Chrome for Linux and Mac link for the download is not still that native one, but it is the porting of the version for windows with the use of the code of Wine. Sul defines situated it “proof of concept, for fun, and to showcase what Wine can gives”, among other things is available already ready packages for Ubuntu, Debian, Red Hat, Mandriva and Suse, let alone a eseguibile for the other distributions. chromium.png

Set 4

WP-Postviews and Php4…

figotip.jpgThis article means to be more a personal note that a post dedicated to one of the arguments dealt habitually on tuxmind. Yesterday I have dawned wordpress from localized in Italian and widened version 2,5 to the 2.6.1 in the functionalities from the addition of some plugin, prelevabile to this address. Well after the process of modernization and the resolution of some banal incovenienti that habitually take place in situations of this type me are imbattuto in a somewhat annoying problem, above all in reason of its implications, we say thus, of service. Creed all know that the version current of php is number 5 and, like such, come used from the majority of the hosts. Mine, instead, the Aruba usual, still uses version 4 that creates problems with some plugin. In the fattispecie, for how much it regards to me, the disadvantage is happened with WP-Postviews, plugin that it allows the visualization of the post more read, which on php4 generates an error of the type: “How to work around the Warning: cannot yet handle MBCS in html_entity_decode ()”.
Girovagando a little I have found a likeable one hack that it allows to bypassare the problem without to resort to php5 (also because it would have to ask to Aruba):

  1. to open the rows wp-postviews.php;
  2. to find the line $text = html_entity_decode ($text, ENT_QUOTES, get_option ('blog_charset')); and to replace it with $text = utf8_decode ($text);

Now all it works perfectly.

Lug 23

Compilation of VMWare-tools on Ubuntu Hardy

figotip.jpgAfter to have installed VMWare serveur on Ubuntu 8,04 it comes to you sure wants to put to us within also VMWare-tools, ovverosia those instruments that us undoubtedly concur a more intense use of our virtual machine.
Here the procedure:

  1. I sudo apt-get install build-essential linux-headers-$ (uname - r);
  2. tar - xzf VMwareTools-1.0.6-91891.tar.gz;
  3. cd vmware-tools-distrib/
  4. I sudo ./vmware-install.pl

However your experience with these instruments would risk to being frustrating if this did not come you in aid post that it explains like obviating to the error:

Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-config0/vmhgfs-only'
make - C /lib/modules/2.6.24-19-server/build/include/. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make [1]: Entering directory `/usr/src/linux-headers-2.6.24-19-server'
CC [M] /tmp/vmware-config0/vmhgfs-only/cpName.o
In rows included from it includes/linux/string.h: 11,
from /tmp/vmware-config0/vmhgfs-only/cpName.h: 18,
from /tmp/vmware-config0/vmhgfs-only/cpName.c: 18:
it includes/linux/types.h: 40: error: conflicting types for `uintptr_t'
/tmp/vmware-config0/vmhgfs-only/vm_basic_types.h: 161: error: previous declaration of `uintptr_t' was to here
make [2]: *** [/tmp/vmware-config0/vmhgfs-only/cpName.o] Error 1
make [1]: *** [_module_/tmp/vmware-config0/vmhgfs-only] Error 2
make [1]: Leaving directory `/usr/src/linux-headers-2.6.24-19-server'
make: *** [vmhgfs.ko] Error 2
make: Leaving directory `/tmp/vmware-config0/vmhgfs-only'
Unable to build the vmhgfs module.

The problem has been resolved on the forum of vmware simply using open-vmware-tools in order to create the module of the kernel normally and successively installing vmware-tools (sudo ./vmware-install.pl):

  1. I sudo apt-get install libproc-dev libdumbnet-dev libicu-dev;
  2. wget http://mesh.dl.sourceforge.net/sourceforge/open-vm-tools/open-vm-tools-2008.07.01-102166.tar.gz;
  3. tar - xzf open-vm-tools-*.tar.gz
  4. cd open-vm-tools-*
  5. ./configure - without-x
  6. make
  7. cd modules/linux
  8. for in *; I give to mv $ {i} $ {i} - only; tar - cf $ {} .tar $ {the} - only; done
  9. cd ../../../
  10. mv - f open-vm-tools-*/modules/linux/*.tar vmware-tools-distrib/lib/modules/source/
  11. cd vmware-tools-distrib/
  12. I sudo ./vmware-install.pl

Now it is all OK!

Lug 15

ifconfig route

This tip extension the procedure of allocation of a static IP address to an interface of net and formulation of the instradamento of the packages necessary to the utilizzzo of the same net. The commandos who we will use are ifconfig and route. The first one used without arguments on my PC extension this result: ifconfig.png Route - n instead this: route.png

In order to assign to an address to the interface eth0 the line it is: ifconfig eth0 192.168.1.30.
Route allows to manipulate the table of instradamento of protocol You add “ifconfig   route” to Of the .icio.usYou add “ifconfig   route” redditYou add “ifconfig   route” to TechnoratiYou add “ifconfig   route” to Stumble UponYou add “ifconfig   route” to DiggitaYou add “ifconfig   route” to Wikio