MySQL : Can’t open and lock privilege tables

Trying to import a MySQL dump and/or starting mysqld return the following error : [ERROR] bdb:  fatal region error detected; run recovery [ERROR] Fatal error: Can’t open and lock privilege tables: Table ‘host’ is read only Probably the MySQL database directory does not have the right privileges. The permission scheme should look like this :… Read More »

Linux : Remove VMware Workstation

Latest VMware Workstation (such as VMware-Workstation-Full-7.1.4-385536.x86_64.bundle) can be uninstalled using the following command on a Linux host : vmware-installer -u vmware-workstation You may have a look at the list of VMware product installed and their version using this command : vmware-installer -l

Mac : Change the hostname

Changing the hostname can be done through the GUI or console. Go to System Preferences > Sharing. On top of the window, click on Edit to change the computer name. The command line for the console is the following : sudo scutil –set HostName “your_hostname”

Category: Mac

Linux : How to add a network static route

Here is the traditional way to set static route on Linux OS. route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.1 The best way to make it permanent, is to add the gateway directly to the interface by editing the interface script : /etc/sysconfig/networking/devices/ifcfg-eth0 add : GATEWAY=192.168.1.1 To remove a static route : route del -net… Read More »

SSL Connection Error : exceeded the maximum permissible length

When trying to open a page through HTTPS, you receive this error : SSL received a record that exceeded the maximum permissible length. (Error code: ssl_error_rx_record_too_long) This is probably due to a vhost IP mismatch/configuration error. The virtual host does not have the right IP address.

Office : Application crash randomly

With Word or Excel 2010, you may experience a crash at the application launch, or new document opening. If you have a look at Event Viewer (eventvwr.msc), you can see this error under Application : Faulting application name: WINWORD.EXE, version: 14.0.5123.5000, time stamp: 0x4c646b40 Faulting module name: btmoffice.dll, version: 1.0.0.45, time stamp: 0x4d0155a1 Exception code:… Read More »

Category: PC

Qmail : How to change the default submission SMTP port

By default, the submission port is TCP-587. To change to another value, edit the following file : /var/qmail/supervise/submission/run And simply change the port number just before the last line : /usr/bin/tcpserver -v -R -H -l $HOSTNAME -x $TCP_CDB -c “$MAXSMTPD” \ -u “$QMAILDUID” -g “$NOFILESGID” 0 587 \ $SMTPD $VCHKPW /bin/true 2>&1 Of course, you… Read More »

Windows : Adding a permanent static route

Follow these steps to add a permanent static route to Windows. 1. Open the command prompt (must be done as administrator). 2. Enter the following command and replace with your network information : route -p add <NETWORK_IP> mask <NETMASK> <GATEWAY_IP> Let’s explain in details with the following IP information… assume we want to add a… Read More »