Archive for February, 2009

Copy from

Skrip ini aku guna kat server aku.. backup mysql setiap hari. Hanya perlu ubah pada bahagian setting sahaja. chmod dan set cron untuk daily run

=========== mula ==============


##### SETTING #####
FAIL=mybck_$(date +%d-%m-%Y)


#check DIR_PATH
if [ ! -d $DIR_PATH ]
mkdir $DIR_PATH

#Running MySQL dump
cd /tmp
mysqldump -c -x –add-drop-table –add-locks –database $DB -u $MYUSER -p$MYPWD > $FAIL.sql

#Compress result
if [ -e $DIR_PATH/mytoday_$(date +%d-)* ]
rm -f $DIR_PATH/mytoday_$(date +%d-)*
tar -jcf $DIR_PATH/$FAIL.tgz $FAIL.sql
rm -f $DIR_PATH/latest.tgz
ln -s $DIR_PATH/$FAIL.tgz $DIR_PATH/latest.tgz
tar -jcf $DIR_PATH/$FAIL.tgz $FAIL.sql
rm -f $DIR_PATH/latest.tgz
ln -s $DIR_PATH/$FAIL.tgz $DIR_PATH/latest.tgz
rm -f $FAIL.sql

===================== tamat ====================

Vmware host server kernel problem

Posted: February 19, 2009 in Debian, Slackware

Copy from

i’m facing a problem with vmware community server which stop responding on host server after a few hours running on clock update. To solve the problem we have to edit /etc/vmware/config
and add this :-

host.useFastClock = FALSE

save it then restart vmware

hope this help

Install Plesk on Debian OS manually

Posted: February 19, 2009 in Debian

I use plesk as my web hosting control panel

Step # 1: Verify current system

File /etc/debian_version stores current Debian version number :

$ cat /etc/debian_version


Find out kernel version
$ uname -mrs
Linux 2.6.18-6-686 i686

Step #2: Update package list

Use apt-get command:
# apt-get update

Step #3 : Update distribution

# apt-get dist-upgrade

Step #4 : Update /etc/apt/sources.list file

Open /etc/apt/sources.list file:
# pico /etc/apt/sources.list

deb etch all

Next run update to cache packages list:

# aptitude update
Now you can install Plesk. For example to install base Plesk package use:

# aptitude install psa

or you can download this using aoutoinstaller


After installation gets complete you can get the plesk password from

cat /etc/psa/.psa.shadow.

debian date and time

Posted: February 19, 2009 in Debian

if you have problem using date and time in debian issued this command


enter : y

than choose: kuala_lumpur

than issued


you will get date and time for malaysia

slackware server

Posted: February 19, 2009 in Slackware

if somebody out there love to use slackware as server then this i recommended

Zenwalk server

this is simple and light version of slackware but use lighttpd as a webserver

i use it as a samba server and my own web server.

i based on this LQ


Zenwalk can be used as a server but it makes on hell of a desktop. Slackware can be used as a desktop but makes on hell of a server

Free memory in linux

Posted: February 19, 2009 in Debian, Slackware

using this will flush your cache in RAM

pico /usr/bin/memfree

#——————- cut here —————–

sync &
echo 3 > /proc/sys/vm/drop_caches &

#——————- cut here —————–

chmod +x /usr/bin/memfree

using cron to flush server memory

crontab -u root -e

then put in your cron

*/30 * * * * /skrip/memfree >/dev/null 2>&1

debian repo

Posted: February 19, 2009 in Debian

This is guide debian repository using malaysian mirror

deb etch main contrib non-free

For backport use this repo

deb etch-backports main

then issued this command

apt-get install debian-backports-keyring


pico /etc/apt/preferences

Package: *

Pin: release a=etch-backports

Pin-Priority: 200