Tim K.C. Leung & Sin Y.S. Tin

Directadmin mail forward for 1st (master) account

by on Jan.05, 2012, under Linux, 電腦

In directadmin, mail can be forwarded to other mail box / e-mail address by setting forarder.

However, the setting for master account and virtual account are different. here is the tips.

For master account:

iammaster@domains.com  iammaster,somebody@yahoo.com.hk

For virtual account:

iamvirtual@starfls.com  somebody@yahoo.com.hk

The different is that for virtual e-mail forwarder, a copy must be sent to the virtual account and forward another copy to the forwarder address. However master e-mail forwarder doesn’t.

Leave a Comment :, more...

Disable dmraid support when installing CentOS 6.x

by on Dec.28, 2011, under 生活

When the Centos installation disk ask for the choice of text mode or graphic mode, use “Tab” to edit and add the following at the end.

nodmraid

Leave a Comment more...

Norton DNS

by on Dec.19, 2011, under Networking, 電腦

198.153.192.1
198.153.194.1

Leave a Comment more...

Install VMware Tools in Linux

by on Dec.11, 2011, under VMware, 電腦

# yum install gcc gcc-c++ kernel-devel
# ln -s /usr/src/kernels/[your kernel version] /usr/src/linux

# mkdir /mnt/cdrom
# mount /dev/cdrom /mnt/cdrom
# cd /mnt/cdrom
# cp VMwareTools-[version].tar.gz /tmp
# cd /tmp
# umount /mnt/cdrom
# tar zxf VMwareTools-[version].tar.gz
# cd /tmp/vmware-tools-distrib
# ./vmware-install.pl

From: http://www.thewebhostinghero.com/tutorials/install-centos-on-vmware-part3.html

Leave a Comment more...

Rootkit Hunter installation

by on Dec.03, 2011, under Linux

Download From
http://sourceforge.net/projects/rkhunter/

Install

tar zxvf rkhunter-*
cd rkhunter-*
./installer.sh --install
cd ..
rm -rf rkhunter*

Run /usr/local/bin/rkhunter --update to update the database
Run /usr/local/bin/rkhunter --propupd to create pre-required MD5 check sum
Run /usr/local/bin/rkhunter -c to run rkhunter
Review log file less /var/log/rkhunter.log

References:

http://sourceforge.net/projects/rkhunter/

http://www.howtoforge.com/faq/1_38_en.html

Leave a Comment :, , more...

Enable php feature by .htaccess

by on Mar.24, 2011, under web programming, 電腦

You may use .htaccess to enable php feature by

php_value output_buffering On

However, If the php is not running as Apache modules, 500 errors probably come up.
In this case you should use this instend.

php_flag output_buffering On

Leave a Comment :, , more...

Sum the number in each line of a file

by on Jan.31, 2011, under Linux

Here is the command

awk '{s += $1} END {print s}' mydatafile.txt

Leave a Comment :, more...

Red Hat Enterprise Linux 6.0 Benchmarks By Phoronix

by on Jan.30, 2011, under Linux

With Red Hat Enterprise Linux 5.x using the Linux 2.6.18 kernel, EXT3, and GCC 4.1 by default, there’s quite a number of areas in Red Hat Enterprise Linux 6.0 where the performance has improved measurably, assuming you had not manually built newer key packages for RHEL5.


Using GCC 4.4, EXT4, and the Linux 2.6.32 kernel results in noticeable improvements in many areas except for a few where the disk performance falls due to the EXT4 file-system, but that should be because of additional safeguards to protect the drive’s data.

Reference: Phoronix RHEL 6.0 Benchmarks

Leave a Comment :, , , more...

網路效能測試工具 – iperf

by on Jan.20, 2011, under Linux, Networking

Download and install iperf

Start a server by using command:
iperf -s

Test the bandwidth by using command:
iperf -i 10 -m -t 120 -c IP_ADDRESS

Leave a Comment : more...

Linux Ethernet Bonding – load balancing / active-passive

by on Jan.15, 2011, under Linux, Networking

This is a notice in the topic of Linux Ethernet Bonding with two ethernet NIC

The case:
There is a server with two ethernet NIC. They are going to be set as either load balancing or active-passive mode.

  1. For load balancing (round-robin) – mode = 0, this is the default, transmitting packets in order from the first available slave through the last, for load balancing and fault tolerance.
  2. For active-passive – mode = 1, Only one of the bond slaves is used, and the others act as stand-by mode. Once the active one failure, after particular time period (miimon=xxx), the stand-by one will take over and resume the network connection.

(continue reading…)

Leave a Comment :, more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Blogroll

A few highly recommended websites...

  • Oracle PL/SQL Tutorial