[HowTo] Download from Premium Rapidshare in Linux Console

July 31, 2008 · Filed Under Linux · Comment 

The following method is using wget in Linux. First thing is to save the cookies for your premium account login to Rapidshare

wget–save-cookies ~/.cookies/rapidshare –post-data “login=USERNAME&password=PASSWORD” -O - https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi > /dev/null

Then you can start download Rapidshare content with the following line:

wget -c –load-cookies ~/.cookies/rapidshare <Rapidshare file URL>

[HowTo]Setup Zabbix Agent for Linux

July 30, 2008 · Filed Under Linux · Comment 

1. wget http://prdownloads.sourceforge.net/zabbix/zabbix-1.4.5.tar.gz?download

2. tar -vxzf zabbix-1.4.5.tar.gz

3. cd zabbix-1.4.5

4. ./configure –enable-agent –with-mysql –with-libcurl

5. make install

6. mkdir /etc/zabbix

7. cp misc/conf/zabbix_agentd.conf /etc/zabbix/

8. cp misc/init.d/redhat/8.0/zabbix_agentd /etc/init.d/

9. chmod +x /etc/init.d/zabbix_agentd

10. adduser zabbix

11. chkconfig zabbix_agentd on

12. Edit /etc/zabbix/zabbix_agentd.conf, set Server to your Zabbix Server ip/domain and Hostname to your agent hostname.

13. Edit /etc/init.d/zabbix_agentd, set progdir to /usr/local/sbin

14. /etc/init.d/zabbix_agentd start

15. After than add the host to zabbix server and you can start monitor your agent server now.

[HowTo] Install Network Driver for P5GC-MX Under Ubuntu

July 16, 2008 · Filed Under Ubuntu · 1 Comment 

I was installing Ubuntu on Asus P5GC-MX, the install process was flawlessness, however the onboard lan wasn’t love my Ubuntu, it wont detect the onboard LAN adapter. Therefore, i dig around in internet and finally i found a solution as below:

  1. Download atl2-204tar and extract it
  2. tar -vxzf atl2-2.0.4.tar.bz
  3. cd atl2-2.0.4
  4. make
  5. sudo cp ./atl2.ko /lib/modules/`uname -r`/kernel/drivers/net
  6. sudo depmod -a
  7. sudo modprobe atl2
  8. dmesg
  9. ifconfig -a

And…..CONGRATUTION!!!!! I got it working YEAH!!!

Little Tips for vsftpd

July 2, 2008 · Filed Under Uncategorized · Comment 

Every time i setup a vsftpd server, i have to dig around in google to find the right syntax to be put in vsftpd.conf to enable jail users and use local server time, as many of us know that the syntax does not include in the default configuration file, so this time i decide to post it here for my own reference.

Lock ftp user to his folder only

chroot_local_user=YES

Force vsftpd to use local time

use_localtime=YES