Skip to main content

Posts

Zimbra migration

1. Introduction Zimbra project doesn’t have a cross migration or proper account transfer documentation. All they tell is to do copy the folder /opt/zimbra to your new servers. But if any of those files infected with a rootkit or other malicious scripts , then your new server also will be compromised. So never sync or copy the entire directory of your zimbra installation. Zimbra also tell you to upgrade your production server to the latest version before migration. But improper upgrade may result in entire data lose. With this procedure you can do:
Migrate zimbra from one Operating System To another.Migrate zimbra account between any hardware and Operating systems configurations.No interruption on production server like software upgrade or service disable.Migrate zimbra from old version to a new version serverZimbra cross migrations without copying entire directories.2. Requirement You need an old server with zmibra account and a new fresh server with the Os you wish. Dont’ cre…
Recent posts

Zimbra: Restore or import a user mailbox from backup using CLI

If you have backed up or exported an account and named the compressed backup file as backup.tgz, you can restore or import using zimbra webgui or CLI. CLI is the preferred method if involving backup file bigger than 500MB. The command is as below(run as user zimbra):

zmmailbox -z -m email@domain.com postRestURL "/?fmt=tgz&resolve=skip" backup.tgz

That's all there is to it.


Setup SSL for Jira

How to do it...

Perform the following steps to import an SSL certificate:

1. Open up a command window and go to the directory where the certificate file
resides.

2. Generate a Java KeyStore (JKS) for JIRA by running the

keytool -genkey -alias jira -keyalg RSA -keystore /opt/jks/jira.jks

3. Import the certificate into KeyStore repository
keytool -import -alias jira -keystore JIRA_INSTALL/jira.jks -file file.crt

where file.crt is the certificate file.

4. Open the server.xml file located in the /opt/atlassian/jira/conf directory in a text editor.

5. Locate and uncomment the following XML configuration snippet:

maxThreads="150"
minSpareThreads="25" maxSpareThreads="75"
enableLookups="false"
disableUploadTimeout="true"
acceptCount="100" scheme="https" secure="true"
clientAuth="false"
sslProtocol="TLS" useBodyEncodingForURI="true"
keystoreFile="/opt/jks/jira.jks"
keystorePass=&qu…

Navigate through bash history with page up/down key

Linux bash history with Page up / Page down In linux you can configure the pgup/pgdown keys to navigate through commands you typed that begin with the string you just typed. Type "mysql" and then hit "Page up", and you will see nothing but mysql-related commands.
Unfortunately this has to be configured anew on every machine or server/vm I work on, and I always forget where this is configured (and it takes a while to find it in google), so I thought I should write it down.

In /etc/inputrc, uncomment: # alternate mappings for "page up" and "page down" to search the history
"\e[5~": history-search-backward
"\e[6~": history-search-forward
Restart your shell or use Ctrl+X, Ctrl+R to tell it to re-read.
(thanks stackoverflow)
Yep, it's not ".bashrc" but "inputrc". Not sure why this one is not hidden, but so it is. You could try ~/.inputrc for a local, user-specific configuration.
Tried this in Ubuntu, an…

Error mounting NFS volume

If you got error to mount NFS volume in CentOS like below:

#mount -t nfs  10.12.1.23:/volume1/test  /mnt/test                                             
mount: wrong fs type, bad option, bad superblock on 10.12.1.230:/volume1/test,
       missing codepage or helper program, or other error
       (for several filesystems (e.g. nfs, cifs) you might
       need a /sbin/mount. helper program)

       In some cases useful info is found in syslog - try
       dmesg | tail or so.




To solve this problem, you need to install nfs-utils package:

#yum install nfs-utils

In debian-based distros, you can try install nfs-common package:

#apt install nfs-common


That's all there is to it!

Have fun :)







perl: warning: Setting locale failed.

If you have error like the following:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_US:en",
        LC_ALL = (unset),
        LC_MONETARY = "ms_MY.UTF-8",
        LC_ADDRESS = "ms_MY.UTF-8",
        LC_TELEPHONE = "ms_MY.UTF-8",
        LC_NAME = "ms_MY.UTF-8",
        LC_MEASUREMENT = "ms_MY.UTF-8",
        LC_IDENTIFICATION = "ms_MY.UTF-8",
        LC_NUMERIC = "ms_MY.UTF-8",
        LC_PAPER = "ms_MY.UTF-8",
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "en_US:en",
        LC_ALL = (unset),
        LC_MONETARY = "ms_MY.UTF-8",
        LC_ADDRESS = "ms_MY.UTF-8",
        …