Author Archives: Kaven Gagnon

avatar

About Kaven Gagnon

System & Network Architect

Zimbra : Initializing ldap…failed.

When installing and configuring Zimbra for the first time on RHEL/CentOS 6, it return that LDAP failed to initialize and then the config script exit. The log file probably indicate the following error : Initializing ldap… *** Running as zimbra user: /opt/zimbra/libexec/zmldapinitsudo: sorry, you must have a tty to run sudo IO::Socket::INET: connect: Connection refused… Read More »

VMware Server : Performance tweak tips

VMware Server performance can be improved in so many ways… there are some recomendation that I’ve discovered when I was using this product at large before moving them to ESXi : Use preallocated virtual disk Use as less virtual hardware as possible – do not add unneeded hardware Use ext4 or XFS filesystem (if host… Read More »

Vim : how do I search and replace text

Do the following to find and replace text string in a whole file using the Vi text editor : 1. Enter in command mode by typing ” : ” 2. Your command should look like this : :%s/search_for_text/replace_with_this_text/g NOTE : To search & replace a string containing slashes ” / “, use a coma ”… Read More »

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