Search

My notebook

Month

August 2013

backup and restore one user zimbra

Restore some mailbox script

/etc/scripts/zimbra_restore_specific_mbox.sh

 

 

Or manual restore

/opt/zimbra/bin/zmmailbox -z -m al@mail.teleclalsms.co.il getRestURL “//?fmt=zip” > /backup_destination/al_mail.zip

 

#restore only al user mail

/opt/zimbra/bin/zmmailbox -z -m al@mail.teleclalsms.co.il postRestURL “//?fmt=zip&resolve=reset” /opt/zimbra/backup/mailbox/Tue/al@mail.teleclalsms.co.il.zip

Advertisements

mount nfs

EXAMPLE, mount to NFS on filer.

showmount -e 192.168.220.150

showmount -e 192.168.220.152

 

mount -t nfs -o vers=3 192.168.220.150:/vol/WebData/vtiger2  /nfs-data

 

AutoMount

add to fstab
192.168.220.12:/vol/zimbra_data  /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
exit
(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: ./install.sh -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:
/var/log/
/tmp/

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
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

  • 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

 

Ubuntu SET STATIC IP

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
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1

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 xxx.xxx.xxx.xxx’ 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:

nameserver 8.8.4.4
nameserver 8.8.8.8

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 http://www.google.com. 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 xxx.xxx.xxx.xxx, replacing xxx.xxx.xxx.xxx 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

http://www.lancelhoff.com/how-to-find-the-mac-address-of-a-pc-or-device-on-the-lan/

 

route add linux

route add -net 10.1.14.0 netmask 255.255.255.0 gw 10.107.1.254

Blog at WordPress.com.

Up ↑