My notebook


August 2013

backup and restore one user zimbra

Restore some mailbox script




Or manual restore

/opt/zimbra/bin/zmmailbox -z -m getRestURL “//?fmt=zip” > /backup_destination/


#restore only al user mail

/opt/zimbra/bin/zmmailbox -z -m postRestURL “//?fmt=zip&resolve=reset” /opt/zimbra/backup/mailbox/Tue/


mount nfs

EXAMPLE, mount to NFS on filer.

showmount -e

showmount -e


mount -t nfs -o vers=3  /nfs-data



add to fstab  /opt  nfs  rw  nfsvers=3   0       0

The Windows Installer Service could not be accessed.

%systemroot%system32msiexec.exe /unregserver

%systemroot%system32msiexec.exe /regserver

UnInstalling Zimbra on Linux

Uninstall Directions for Linux/All Other Operating Systems

As root:
1) Run the commands:
su – zimbra
zmcontrol stop
(you should be root after you run exit)

2a) Run the command: ps -ef | grep -i zimbra
If you see running processes
2b) Kill any lingering processes: kill -9 <pid>

3a) Run the command: df
If you see “amavisd”
3b) run command: umount /opt/zimbra/amavisd<-new-blah>/tmp

4) cd /<tmp_tar_install_dir>/zcs/

5) Run the command: ./ -u

6) Run the following commands to complete the unistall:
rm -rf /opt/zimbra
rm -rf /var/log/*zimbra*
rm -rf /tmp/*zimbra*
rm -rf /tmp/hsperfdata*
rm -rf /tmp/install.*
rm -rf /tmp/*swatch*
rm -rf /tmp/log*

Ensure that you removed ALL the files owned by the user zimbra AND that contain the name “zimbra” in:

7) Run the following commands to delete the users and groups:
userdel zimbra
userdel postfix
groupdel zimbra
groupdel postfix

8) Remove the line “/dev/shm /opt/zimbra/amavisd-new-2.4.1/tmp tmpfs defaults,users,size=150m,mode=777 0 0” from /etc/fstab.

9) Remove the Zimbra logging lines below from /etc/syslog.conf:
local0.* -/var/log/zimbra.log
auth.* -/var/log/zimbra.log
mail.* -/var/log/zimbra.log

10) Remove logrotate config file for Zimbra (CentOS, RHEL)
rm -f /etc/logrotate.d/zimbra

11) Remove the Zimbra lines below from /etc/prelink.conf (CentOS, RHEL)
# added for Zimbra
-l /opt/zimbra/lib
-l /opt/zimbra/sleepycat/lib
-l /opt/zimbra/openldap/lib
-l /opt/zimbra/cyrus-sasl/lib
-l /opt/zimbra/mysql/lib

12) Remove Zimbra entries in /etc/rc* (CentOS, RHEL)
chkconfig –del zimbra

Other methods:(assuming you didn’t already try the above)
(dijichi2) if you get stuck and really want to just purge it from the system, try:
rpm -e `rpm -qa |grep zimbra`
rm -rf /opt/zimbra
delete zimbra entries from /etc/sudoers
delete zimbra entries from root and zimbra crontabs

On Ubuntu servers dpkg may think that Zimbra is still installed. Check by running dpkg –list (-l) or dpkg -q zimbra* and see if zimbra items are still listed. You can remove them by running:
dpkg –remove zimbra-apache zimbra-ldap zimbra-mta zimbra-spell zimbra-core zimbra-logger zimbra-snmp zimbra-store or

sudo rm -r /opt/zimbra


ubuntu install and update

1. Create disk:

Disk for OS, disk for swap, disk for install application

2.  Update OS

Chack OS =  uname -a

Apt-get update,  apt-get upgrade

3. Set IP static

  • sudo nano /etc/network/interfaces

auto eth0
iface eth0 inet static

  • DNS set = sudo nano /etc/resolv.conf
  • delete DHCP client sudo apt-get remove dhcp-client
  • sudo /etc/init.d/networking restart

4. Install WEBMIN

OPEN https://localhost:10000



Change Ubuntu Server from DHCP to a Static IP Address

If the Ubuntu Server installer has set your server to use DHCP, you will want to change it to a static IP address so that people can actually use it.

Changing this setting without a GUI will require some text editing, but that’s classic linux, right?

Let’s open up the /etc/network/interfaces file. I’m going to use vi, but you can choose a different editor

sudo vi /etc/network/interfaces

For the primary interface, which is usually eth0, you will see these lines:

auto eth0
iface eth0 inet dhcp

As you can see, it’s using DHCP right now. We are going to change dhcp to static, and then there are a number of options that should be added below it. Obviously you’d customize this to your network.

auto eth0
iface eth0 inet static

Now we’ll need to add in the DNS settings by editing the resolv.conf file:

sudo vi /etc/resolv.conf

On the line ‘name server’ replace the x with the IP of your name server. (You can do ifconfig /all to find out what they are)

sudo nano /etc/resolv.conf and add:


You need to also remove the dhcp client for this to stick (thanks to Peter for noticing). You might need to remove dhcp-client3 instead.

sudo apt-get remove dhcp-client

Now we’ll just need to restart the networking components:

sudo /etc/init.d/networking restart

Ping If you get a response, name resolution is working(unless of course if google is in your hosts file).

Windows Installer startup error 14007

%systemroot%system32msiexec.exe /unregserver
 %systemroot%system32msiexec.exe /regserver




How to find the MAC address of a PC or device on the LAN

Locating the MAC address of a networked computer from Windows:

  1. Click Start -> Run, type cmd and click Ok
  2. Type ping, replacing with the IP address of the computer who’s MAC address you want to retrieve
  3. After the ping response has finished, type arp -a
  4. Under Internet Address, locate the IP address you just pinged. In the same line, the corresponding MAC address is listed underPhysical Addres


route add linux

route add -net netmask gw

Blog at

Up ↑