12/09/2013

Zimbra high CPU usage with java process

I've been running Zimbra 8.0.2 and got a problem with almost 100% CPU usage with java processes.
I tried many solutions by applying the fix written on the forum but didn't work.... Finally found the solution for this.


NIO imap, NIOSocketSession leaking. 
IMAP NIO is enabled by default with Zimbra 8.0.2. That's why Zimbra takes high CPU usage.

To disable IMAP NIO, excute the following command.

[root]# su - zimbra
[zimbra]$ zmlocalconfig -e nio_imap_enabled=false
[zimbra]$ zmmailboxdctl restart




11/05/2013

How to send Ctrl + Alt + Del in Remote Desktop session

From remote Windows computer.

Ctrl + Alt + End


From remote Mac computer.

control + option + end


9/04/2013

Cacti installation by yum


Cacti installation by yum.

1. yum install httpd httpd-devel
2. yum install mysql-server mysql-devel
3. yum install php php-mysql php-pdo php-mbstring php-devel
4. /usr/bin/mysqladmin -u root password 'some_password'
5. /etc/init.d/mysqld start
6. mysql -u root -p
7. delete unnecessary users
8. mysql> create database cacti;
9. mysql> exit
10. mysql -u root -p cacti <  /usr/share/doc/cacti-0.8.8b/cacti.sql

11. access the http://cacti_IP:/cacti with your web browser.
The following error was displayed in my web browser.

Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'

I checked the web for the solution. the httpd user can't access to the db.php

chown -R apache:root /etc/cacti/db.php
chown -R apache:root /var/lib/cacti

Then, I can display the initial setup screen for cacti.
continues with the default value. then finished setup wizard.

I saw the login screen. The username and password should be 'admin'. But I couldn't log in.
I searched the web again and got the solution.
Edit the php.ini file and changed the following settings.

mysql> update user_auth set password=md5('admin') where username='admin'; 





3/07/2013

How to add spam filters on zimbra server.

# su - zimbra

Check current setting.
$ zmprov gacf | grep zimbraMtaRestriction
Output:
zimbraMtaRestriction: reject_non_fqdn_sender

Currently reject_non_fqdn_sender is set.
Adding sbl.spamhaus.org

$ zmprov mcf zimbraMtaRestriction reject_non_fqdn_sender zimbraMtaRestriction "reject_rbl_client sbl.spamhaus.org"

Check the result:
$ zmprov gacf | grep zimbraMtaRestriction
zimbraMtaRestriction: reject_non_fqdn_sender
zimbraMtaRestriction: reject_rbl_client sbl.spamhaus.org

Other options

zmprov mcf 
zimbraMtaRestriction reject_invalid_hostname 
zimbraMtaRestriction reject_non_fqdn_hostname 
zimbraMtaRestriction reject_non_fqdn_sender 
zimbraMtaRestriction "reject_rbl_client dnsbl.njabl.org" 
zimbraMtaRestriction "reject_rbl_client cbl.abuseat.org" 
zimbraMtaRestriction "reject_rbl_client bl.spamcop.net" 
zimbraMtaRestriction "reject_rbl_client dnsbl.sorbs.net" 
zimbraMtaRestriction "reject_rbl_client sbl.spamhaus.org" 
zimbraMtaRestriction "reject_rbl_client relays.mail-abuse.org"

According to zimbra wiki



2/06/2013

Canon C2020プリンタの両面印刷OFF設定方法


Macの場合
1、Webブラウザで、以下のアドレスにアクセス
2、http://localhost:631/printers/
3、_192_168_1_181、および、C2020プリンタを選択、
4、Adfministrationドロップダウンリストから、Set Default Optionsを選択
5、Generalタブをクリック
6、Print-Styleを、1-Sided Printingに変更
7、ページ下部のSet Default Optionsボタンを押す。
8、Macの現在のログインユーザ名とパスワードを聞かれるので入力する。
9、設定完了

Windowsの場合
1、コントロールパネル -> プリンタ ->  Canon iR-ADV C2020/2030 PS3をクリック
2、Printer -> Propertiesをクリック
3、Printing Preferencesをクリック
4、Finishingタブをクリック
5、Print Styleを 2-Sided Printing から1-Sided Printing に変更
6、OKを2回押して設定を保存。

1/15/2013

How to check linux file system type.

#df -T | awk '{print $1,$2,$NF}' | grep "^/dev"