Tuesday, May 1, 2012

PBIS Install hangs while importing registry - Ubuntu Server

If you have winbind installed run

sudo apt-get purge winbind

and make sure the following files don’t have any references to winbind in them.
/etc/nsswitch.conf 
/etc/pam.d/* 

Also, make sure your hosts: line in  /etc/nsswitch.conf
look like this:

hosts:  files dns

Friday, April 13, 2012

Sorting C vs Go

I ran the sorts on the same set of 10k integers(generated by random.org) 30 times each

Thursday, April 12, 2012

Cleaing up macports

sudo port -f clean all
sudo port -f uninstall inactive

Monday, April 9, 2012

Ubuntu Stop Xserver

sudo service lightdm stop #(if using ubuntu 11.10+)

or

sudo service gdm stop #(if using an older version of ubuntu)

Thursday, April 5, 2012

Fix clock difference when dual booting windows and osx

using regedit create a DWORD value in the registry

(Name = "RealTimeIsUniversal" Value = "1")

in the folder

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation

reboot and the time should stay the same in both OS

Tuesday, March 20, 2012

fixing zimbra 7.1.4 permissions

as root:
~$ /opt/zimbra/libexec/zmfixperms --verbose --extended
~$ chown root:postfix /opt/zimbra/postfix-2.7.7.3z/conf/master.cf.in
~$ chmod 777 /opt/zimbra/zimbramon/pylibs/*

Friday, March 16, 2012

enable mod_rewrite on ubuntu server

Edit the file /etc/apache2/sites-available/000-default
Directory /var/www/
   Options Indexes FollowSymLinks MultiViews
   AllowOverride None
   Order allow,deny
   allow from all
/Directory
Change "AllowOverride None" to "AllowOverride All" then run
a2enmod rewrite
restart apache