While reading on some blogger’s blog, found this cool tips and tricks, it is pretty interesting. Thumbs up to geek00L :)

It is very useful for copying a large file. This command below will show you the copy progress and it will not see it with a cp command.

rsync --progress -v SRC DST

Below is a first example: -

[root@localhost root]# rsync --progress -v someimage.img.gz /tmp
someimage.img.gz
63780138 100% 53.23MB/s 0:00:01
wrote 63788015 bytes read 36 bytes 42525367.33 bytes/sec
total size is 63780138 speedup is 1.00

If you would like more stats, below is a second example: -

[root@localhost root]# rsync --progress --stats -v someimage.img.gz /tmp
someimage.img.gz
63780138 100% 77.74MB/s 0:00:00
rsync[1579] (server receiver) heap statistics:
arena: 135168 (bytes from sbrk)
ordblks: 1 (chunks not in use)
smblks: 0
hblks: 0 (chunks from mmap)
hblkhd: 0 (bytes from mmap)
usmblks: 0
fsmblks: 0
uordblks: 41624 (bytes used)
fordblks: 93544 (bytes free)
keepcost: 93544 (bytes in releasable chunk)
rsync[1577] (sender) heap statistics:
arena: 135168 (bytes from sbrk)
ordblks: 2 (chunks not in use)
smblks: 2
hblks: 0 (chunks from mmap)
hblkhd: 0 (bytes from mmap)
usmblks: 0
fsmblks: 80
uordblks: 37520 (bytes used)
fordblks: 97648 (bytes free)
keepcost: 93552 (bytes in releasable chunk)

Number of files: 1
Number of files transferred: 1
Total file size: 63780138 bytes
Total transferred file size: 63780138 bytes
Literal data: 63780138 bytes
Matched data: 0 bytes
File list size: 41
Total bytes written: 63788015
Total bytes read: 36

wrote 63788015 bytes read 36 bytes 42525367.33 bytes/sec
total size is 63780138 speedup is 1.00

Yesterday, I learned this tips and tricks from my colleague Danesh (or Danny). Thank you. His blog The Danesh Project

You can duplicate a current SSH session without login again…this is awesome and fast, :)

You need to add the following 2 lines below into your /etc/ssh/ssh_config file: -

ControlMaster auto
ControlPath ~/.ssh/socket-%r@%h:%p

You need to login into a remote SSH server for the first time, the SSH session will create a socket file at ~/.ssh folder indicating a login name, host and port.

ssh root@remotehost

Below is the SSH session socket file created: -

socket-root@remotehost:22

After that, you can duplicate the SSH session by just executing a same SSH command you did for the first login and this time there is no password prompt. You will login into the remote host directly.

This tips and tricks only works on OpenSSH 4.0 above. I had tried it on RHEL 3 (not working), RHEL 4 (not working) and CentOS 5 (working).

After the bowling session, we decided to go to the Eye On Malaysia using the new SMART tunnel.

STORMWATER MANAGEMENT AND ROAD TUNNEL (SMART) PROJECT

The Eye On Malaysia is 60 meters above the Lake Titiwangsa. It has 42 fully enclosed capsules equipped with air-conditioned, each holding up to 8 guests. It is an unforgettable 12 minutes ride experience.

The tickets are RM 15 for adult and RM 8 for child. But I didn’t take the ride (afraid of height). My wife can’t take the ride too (she is 32 weeks pregnant).

See Kuala Lumpur as never before…

EYE ON MALAYSIA

An unique part of the Visit Malaysia Year 2007 celebrations and the 50th year of Malaysia’s independance day (MERDEKA).

My parent-in-law came last Saturday 9 June 2007 from Bidor, Perak. Gathering sessions (all my in-laws) began on Saturday afternoon. Have lunch. Have dinner.

The next day, 10 June 2007, we went for a dim sum breakfast. We ended up having a bowling session in Bukit Jalil club after the breakfast. It has been a very long time I didn’t play bowling since my college time.

I was teased that I played like a PENGUiN during my bowling session with my “heng tai” long time ago.

Today, my colleague seek my help on NFS mounting timeout…this makes me remembered the assignment on Linux Thin Client Server (now known as Linux Terminal Server Project) assigned by my ex-Technical Manager on year 2000. I started learning Linux NFS then.

Below are the website I found during my troubleshooting: -

Linux NFS faq
Network File System (protocol) – Wikipedia, the free encyclopedia
NFS Problem Determination
NFS Error Messages

Here you go…the day to remember (3 June 2007), I attended my ex-colleague’s (Nanthakumar) wedding ceremony, :D

This is my first experience for an Indian wedding ceremony…

My new mobile phone Nokia E61i. Thanks “Cak” for helping me to buy it, :D Still playing around with it…

This is a welcome message from WordPress.com. And, I would like to welcome myself to the blogging world!

« Previous Page