To overcome this issue there is a simple workaround that require you to modify the MySQL’s AppArmor file and define directory where the program can read and write.
Be aware that allowing MySQL to read and write in a directory could lead to security problems, always review this kind of changes with a System Administrator.
The workaround is really quick:
Open the file /etc/apparmor.d/usr.sbin.mysqld as root with your favourite text editor
You should see a list of paths where AppArmor allow MySQL to write and read, at the end of this list add the directory where you would like that MySQL will be able to read and write following the pattern used in all the previous entries. For instance:
#This will be your dir definition
Then save and close the file.
After you have successfully modified the file it is time to tell AppArmor that it needs to reload the configurations, so as root execute the following command:
# /etc/init.d/apparmor reload
Then restart MySQL, as root execute the following command:
# service mysql restart
At this point you have allowed MySQL to write and read contents into your defined directory, only do this if you know what you are doing! I take no responsibility for any damage or data loss caused by a server not correctly secured.
I had to change the default browser in Thunderbird but there was no clear way to do that, recently I found the solution.
I’ve tried to update the alternatives with
update-alternatives --config x-www-browser
but it just got ignored, the solution is to change the settings in Thunderbird’s config editor (Preferences > Advanced > Config) and search for network.protocol-handler.warn-external.http and network.protocol-handler.warn-external.https and set them to true, this will ask you what browser Thunderbird should use to open the links, just check “remember the setting” and set your preferred browser.
Who use linux systems may encounter the following error:
W: GPG error: ftp://ftp.debian.org/ testing Release:
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY EB563F93142986CE
W: There is no public key available for the following key IDs:
The ID is different everytime but the solution is always the same:
Recently Drupal released the new version (7.16) to fix a security issue that would allow an attacker to reinstall an existing Drupal site with an external database server and then execute custom PHP code, more information available here: http://drupal.org/node/1815912.
There are many way to prevent this instead of updating a Drupal installation (always recommended), probably the quickest is to deny access to the interested file with few lines for the .htaccess file:
deny from all
ErrorDocument 403 "Access denied."
Recently I had to connect to internet using the Vodafone Key from the Vodafone station, here a brief guide about how to do it quickly:
1) Click on the icon that manage the network connections and select “Edit connections”
2) Select “Mobile Broadband”
3) Click on “Add”
4) Now you should see your Internet key connection, select “Modify”
5) Your vodafone APN is web.omnitel.it