From the mind of Emil Soleyman-Zomalan

To content | To menu | To search

System Administration

Entries feed - Comments feed

Sunday 7 October 2007

Evolution Contacts to Zimbra Addressbook

A question was asked by a fellow Zimbra user by email about exporting contacts from Evolution to Zimbra's Addressbook and I offered him the following advice.

  • Open a terminal and execute the following command: evolution-addressbook-export --format=csv --output=file.csv

  • Login to the web mail portion of Zimbra
  • Go to "Options" from the top-most row of buttons
  • Choose "Address Book" from the newly created view
  • Go to the line "Import from .CSV" and choose the file.csv document created earlier and then choose import

NOTE: This should be a temporary solution until the Evolution Connector is in better shape.

Thursday 8 March 2007

Unix Commands to Know and Use

I will be updating this entry with commands that I have come to use throughout my system administration and engineering work. I hope that it is of some use to readers who stumble on this site. 

  1. Watch for changes in active and inactive connections in the Linux Virtual Server kernel table
    watch -n 5 "ipvsadm -L -n"
  2. List the types and amount of TCP states in the linux networking subsytem
    netstat -tan |awk '{print $6}'|perl -ne 'chomp; $a{$_}++; END { print map({ "$_:$a{$_}\n" } sort keys %a); }'
  3. List the SYN_RECV state per IP address
    netstat -tan |grep SYN_RECV |awk -F '[ :][ :]*' '{print $6}' | perl -ne 'chomp; $a{$_}++; END { print map({ "$_: $a{$_}\n" } sort key
    s %a); }'

  4. CHMOD all of the files (not directories) in a directory
    find . -type f -exec chmod a+r \{\} \;
  5. CHMOD all of the directories (not files) in a directory
    find . -type d -exec chmod a+rx \{\} \;
  6. Find the largest file in the filesystem excluding NFS mounted shares
    find / -fstype nfs -o -type f -ls | sort +6n -r | less

  7. Find the largest files in the filesystem
    find / -xdev -type f -ls | sort +6n -r | less
  8. Remove the CVS directories that populate a source directory
    find ./ -name CVS -type d -exec rm -fr {} \; -- find ./ -name .cvsignore -exec rm -f {} \;