How to find out the top 10 files/folders in homedir

Many times, a linux user had exceed the disk quota of homedir, so here is a small command to find out the top 10 files/folders that consumed the most in homedir:

du -xck ~/.[^.]* |sort -rn |head

“~/” – mean current user’s homedir. You can replace “~/.*” with the directory you wish to check, example “/tmp”.



Posted in Linux | Leave a comment

ANZ banking system fault!!!

Hmm … I am wondering whether anyone else had experience being charged “overdrawn fee” by ANZ when there is not overdrawn? I had …. 3 times!

Here is the scenario:

  1. ANZ Access Advantage Account with $0 balance, and ANZ Online Saver Account with $200 balance
  2. I transferred $100 from Online Saver Account to Access Advantage Account
  3. Withdraw $100 via ATM (from Access Advantage Account)
  4. Cash deposit $40 via ATM at around 10pm
    • Check balance via ATM shown $40
  5. Transferred back $40 from Daily Access Account back to Online Savings Account via “goMoney ANZ”
    • Access Advantage Account shown $40 balance , and Online Saver Account shown $100 before transferred
    • Access Advantage Account shown $0 balance , and Online Saver Account shown $140 after transferred
  6. Next business day, ANZ charged me $6 overdrawn fees, saying that my Daily Access Account went into negative
Please note that you are not allow to transfer (via goMoney ANZ nor online) if there are insufficient in ANZ Access Advantage Account to ANZ Online Saver, so how is it possible for ANZ Access Advantage Account to go negative?
It seem like there is a flaw in ANZ system, which any banking transaction happen after 10pm business day will only be process on next business.  If so, why on earth it show $40 balance in ANZ Access Advantage Account, and allow transfer of the money into ANZ Online Saver?
So, if you have encounter this before ….. it is not your account went to negative, is just bad coordination (timing) of the ANZ systems!



Posted in Uncategorized | Tagged , , , , | Leave a comment

Forcing 16:9 resolution onto Linux GUI

Sometimes, Linux can’t detect the monitor resolution properly, eg 1920X1080 (16:9), so we will need to be creative and trick the Linux to think that’s a new video mode for that resolution.
Here is some brief steps how I got it working for my Linux:

0. Find out which monitor output the screen resolution need to change:
$ xrandr -q

1. Find out the resolution mode:
$ cvt 1920 1080 60
# 1920×1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz
Modeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync

2. Insert the new mode using "xrandr" with the info above
$ xrandr –newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync

3. Add the new mode into the connected primary (eg Virtual1 for VM)
$ xrandr –addmode Virtual1 1920x1080_60.00

4. Set the output
$ xrandr –output Virtual1 –mode 1920x1080_60.00

You can put this into /etc/rc.local to force the system to use the mode everything it startup.

Posted in Uncategorized | Leave a comment

Matlab – tips and tricks

Would like to ensure all additional MATLAB support packages are installed on the share location:

1. launch matlab as “root” user
2. find out the current support package root (default is homedir:


3. set it to a share location:

4. To change the add-ons installation folder
On the Home tab, in the Environment section, click Preferences > MATLAB > Add-Ons.
5. To install support packages, on the MATLAB Home tab, in the Environment section, click Add-Ons > Get Hardware Support Packages.



The USB Webcam does not work in RHEL6 due to some libraries, but work fine in RHEL7.

Posted in IT, Linux, Uncategorized | Tagged , | Leave a comment

Linux 101 – crond

Always remember to put full path of the scripts or commands to be run in crond.

Posted in Uncategorized | Leave a comment

cfengine2 segfault – culprit ipv6 in kickstart

I had been troubleshooting cfengine segfault for days and finally found the issues:
Network setup in the kickstart %post had enable networking_ipv6, which confuse cfengine

It was a broken kickstart since long time ago, and the workaround was rerun “cfagent” again. Not a very good workaround.

Anyway, by copying and mimic some necessary changes in %post for network setup fixed the issue!

This is the final solution that I had done in my kickstart.cfg:

network –bootproto=dhcp –onboot=on –noipv6

to ensure ipv6 will not be activate during or after kickstart.


Posted in Linux | Tagged , | Leave a comment

Basic steps to setup pulseaudio (DisplayPort output) in Linux

Here is some basic steps (and reminder to self):1. install pulseaudio-utils
# yum install pulseaudio-utils
2. Check which output to can be use:
# pactl list

** find the output you need, the 1 I am outputing is "output:hdmi-stereo-extra2+input:analog-stereo"
** you might need to start "pulseaudio -D"

3. Set the default output:
# pactl set-card-profile 0 output:hdmi-stereo-extra2+input:analog-stereo

4. To make the changes permanent, append/insert/edit /etc/pulse/
set-card-profile 0 output:hdmi-stereo-extra2+input:analog-stereo

And this should be able to play sound output to DisplayPort.

More info about:

Posted in Uncategorized | Leave a comment