Monthly Archives: March 2010

LG Lollipop (GD580) GMAIL IMAP setup

I bought my LG lollipop recently and have been quite excited with the J-phone alike or feel. Bigger screen, Flip, Great animation in Menu and dashboard. With the impression that Jphone can access Email easily, so i decided to enable to email in my phone as well. By referring to Gmail setup here . However, the explanation sucks! It takes me few attempt before i can successfully access to GMAIL. Incoming Mail (IMAP) Server – requires SSL: imap.gmail.com Use SSL: … Continue reading

Posted in etc | Tagged , , , , , | 15 Comments

Promote NIS Slave Server in Redhat/CentOS

Situation: You have NIS Master, you need a slave setup in your office. This tutorial is covering steps for Redhat/CentOS/Fedora 64 bits. It might differ from what you have seen online. 1. Install ypserv in your server yum install -y  ypserv.x86_64 2. Start the services service ypserv start service ypxfrd start 3. Verify the yp is ready #rpcinfo -u localhost ypserv program 100004 version 1 ready and waiting program 100004 version 2 ready and waiting 4. Copy the database fro … Continue reading

Posted in Linux | Tagged , , | Leave a comment

Use awk to calculate total size of files – part 1

Your boss came to you and asked for total size of files which has not been accessed for more than 30 days! Assume that you are just checking for 1 directory “/abc” . Here comes the simple command: find /abc -atime +30 -exec ls -lk ‘{}’ \;  | awk ‘{SUM += $5} END {print SUM} ‘ Explaination: find /abc -atime +30 -exec ls -lk ‘{}’ \ find command will find /abc and check for accestime which has not been access … Continue reading

Posted in Linux | Tagged , , | 1 Comment