Nov 02

[HowTo] set VPS Timezone

November 2, 2008 · Filed Under Linux · Comment 
First nuke the currently set timezone
rm -rf /etc/localtime 2>/dev/null; unlink /etc/localtime 2>/dev/null
Then, decide what timezone you want
find /usr/share/zoneinfo/ | more

Once you know the filename representing your timezone, use ln as follows. In this example, I will set the VPS to EST, my favorite timezone.

ln -s /usr/share/zoneinfo/EST /etc/localtime

Jul 31

[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>

Jul 30

[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.

Jul 16

[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!!!

Jul 02

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

Jun 24

HowTo: Install Zabbix Server & Zabbix Agent

June 24, 2008 · Filed Under Linux · Comment 

Zabbix is a system which allow you to monitor multiple server within your local area network or even across Internet. It comes with a nice web front end which let you monitor many things that happen in the servers on your web browser, isn’t great? Basically, it runs an application in a master server, they call it Zabbix Server, and a Zabbix Agent in the server that you want to monitor. Therefore, you will have to install them separately. Agent will report almost everything you wan to the Master Server, after it received the data it starts to process for you and let you access to them in your web browser. The web script is written in PHP and using MySQL, PostgreSQL and SQLite, and it have to be installed in the Master Server as well (Maybe it can be installed separately, but i never tried that). I will only jot down the installation guide for both Server and Agent and is for MySQL only, maybe later for the configuration and settings, they are quite complicated but trust me, they worth a learn. This guide tested in CentOS 5.1 and Fedora Core 8.

[ZABBIX SERVER INSTALLATION GUIDE]

First of all make sure you have your Apache, MySQL and PHP installed in the server.

1. Download the latest version from Zabbix, and untar it.

Read more

May 17

HowTo: Mouse over music preview in Ubuntu

May 17, 2008 · Filed Under Ubuntu · Comment 

I saw a clip in youtube few days back, a person showing off his Ubuntu with the features of mouse over music preview, which means by putting mouse cursor on top of the music file icon, it will start to play the song without the needs of playing the song in a music player. I was attracted by this features and it’s really useful when i want to search for song in a thousand song by just moving my mouse cursor one by one. I start to search around for the work around, i tried many ways suggested in forums and blog but i still cant make it work. However at last i manage to make it work by installing things below, but so far i only test it in Hardy Heron.

Things to be installed

  • ubuntu-restricted-extras
  • mpg123
  • mpg123-esd
  • pulseaudio-esound-compat
  • vorbis-tools

You can install from synaptic or by the method below

$ sudo aptitude install ubuntu-restricted-extras mpg123-esd pulseaudio-esound-compat vorbis-tools

May 16

HowTo: CJK(Chinese, Japanese, Korean) in Wine Application

May 16, 2008 · Filed Under Ubuntu · Comment 

If you are installing CJK(Chinese, Japanese, Koean) application in ordinary fresh installed wine, you will see a lots of funny character instead of the one of the CJK which is readable. Follow the guide below to get your CJK application display properly in wine. Tested on Ubuntu Feisty and Hardy.

1. Open the terminal and execute the following

$sudo touch /var/lib/locales/supported.d/ja
$sudo touch /var/lib/locales/supported.d/kr
$sudo touch /var/lib/locales/supported.d/zh

2. Open each of the file that you have just created and paste in the line as below

Read more

May 12

Sonork IM in Ubuntu using Wine

May 12, 2008 · Filed Under Ubuntu · 6 Comments 

The first time i install sonork IM using wine was last year but failed, it wont read the history record from data file when you open chat screen. When new message arrive i got the notification but when i open the chat screen it was empty, i can only see the incoming message if i keep the sender’s chat screen open before he or she send me the message. Sonork IM is an internet messenger application which is not popular at all, but some of the company are using it as a private messenging network, because it is not well known enough so i can hardly find any information in google regarding problem in running sonork IM using wine and its solution. I tried crossover office as well but no hope. So i conclude to myself that sonork IM not compatible at all with wine. Until recently i bring it out to try again because i need to stick with linux base OS for some my research, this time somehow i make it to works, i don’t know how it would work in this way, but i just work.

The trick to make it work is really simple, for the 3rd step in the installation wizard, there is an “advanced…” button, after clicking on it you will see that you can actually set your own data and tmp path for Sonork IM. For Data folder i set it to my Ubuntu file system /home/warrence/sonork/data, as for tmp folder i set it to /tmp. Thats all!

May 10

Guide: Fully uninstall KDE

May 10, 2008 · Filed Under Ubuntu · 1 Comment 

If you install KDE with aptitude, use below method to remove:

$sudo aptitude remove kubuntu-desktop

or

$sudo aptitude remove xubuntu-desktop

If you are using apt-get or synaptic to install, follow as below:

Read more

Next Page »