Mac : Add a static route in OSX

To add a static route in Mac OSX, do the following as root in the terminal : route -n add “network/prefix” “gateway” Example : route -n add 10.0.0.0/8 10.16.1.1 To print the routine table, use the following command : netstat -nr

Category: Mac

Mac : Flush local dns cache on OSX

MacOSX run a local named caching server.  In some reason you may need to refresh it manually to get a resent updated DNS record. Under Mac OSX 10.8 and above, use the following command using the terminal : sudo killall -HUP mDNSResponder Under Mac OSX 10.5 and 10.6, use : sudo dscacheutil -flushcache Under Mac… Read More »

Category: Mac

Mac : How to disable named on OSX Server

To permanently disable local dns server on a MacOSX Server simply run the following command as root : sudo /bin/launchctl unload -w /System/Library/LaunchDaemons/org.isc.named.plist You will be prompted to enter the administrative password next and you’re done!

Category: Mac

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.