Home     About Us     RSSRSS

Zimbra: How to emtpy my email inbox??

May 29, 2017 by @HKw@! | No Comments | Filed in Zimbra

In some situation, you may experience your mailbox will get full of used or unused email. To remove email in inbox, it will take long time to do it in Zimbra GUI.  Refer to example to below screenshot, i have more than 68000 email in my inbox.

 

To empty the inbox email, it can be done it via CLI. Below is the command to remove all the inbox message for the particular email account

[root@mail ~]# su – zimbra
[zimbra@mail ~]$ zmmailbox -z -m test@techkaki.com emptyFolder /Inbox

Once above command been execute, it took less than 1 minute to remove 68000 email from the inbox

🙂

CentOS – Existing lock /var/run/yum.pid: another copy is running as pid xxxx.

May 29, 2017 by @HKw@! | No Comments | Filed in centos, Fedora, Linux, RedHat

Error Message “Existing lock /var/run/yum.pid: another copy is running as pid xxxx.”  is a very common error which you might come across in Red Hat Linux distro while trying to run yum command.

As you see the error from above screenshot, it mentioned that yum command is locked by another application. Meaning that someone already run the yum command and the process is running.

To find out which process and user holding the yum lock, just enter following command:-

From the above screenshot, PID 11290 is currently run by root user and holding the yum lock.

Solution

It is very easy to solve this issue, first wait the process finished. Second is kill the process ID. Below is the command to kill the PID

kill -9 11290

Now you should able to use yum command.

Cheers!

MacOS Sierra: Unable to negotiate with IP X.X.X.X port 22 no matching host key type found. Their offer: ssh-dss

May 22, 2017 by @HKw@! | No Comments | Filed in centos, Linux, Mac OS X

Issue

My latest MacOS X 10.12 release failed to ssh to network devices with the following error:

techkaki-MacBook-Pro:~ techkaki$ ssh root@10.10.10.243
Unable to negotiate with 10.10.10.243 port 22: no matching host key type found. Their offer: ssh-dss

Root Cause

OpenSSH Version 7 and above disable DSA key by default.

Solution

A) To enable the ssh-dss (DSA) key exchange algorithm  using the HostKeyAlgorithms option:

ssh -o HostKexAlgorithms=+ssh-dss  aimsadm@10.10.10.82

B) Enable ssh-dss (DSA) on ssh_config by adding HostkeyAlgorithms +ssh-dss at the end of the ssh_config file.

sudo nano /etc/ssh/ssh_config

Screen Shot 2017-05-22 at 11.54.31 AM

Hope this information will help 🙂

Reference link:-

https://www.openssh.com/legacy.html