[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

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

Enable logwatch for your server

May 9, 2008 · Filed Under security · Comment 

Logwatch is a customizable log analysis system, it creates a analysis report base on the are that you specify. The report will be send to your email address everyday and the report has been proceesed. As mention in the title, we are enabling logwatch but not installing logwatch here. Logwatch is already installed on most cPanel servers, so i will only covered for those who have Logwatch ready in the server.

First thing to do is SSH into your server as root.

And then nano/pico/vi /etc/log.d/conf/logwatch.conf

Seek for Mailto = root

change it to

Read more

Installing BFD(Brute Force Detector)

May 9, 2008 · Filed Under Linux, security · 1 Comment 

Previously i have posted a tutorial on “Setup firewall for your Linux Server”, now as promised i deliver the tutorial for setting Brute Force Detector. But please ensure that you have already installed APF because you need APF in BFD. For those who have not yet installed APF, you can go to this page “Setup firewall for your Linux Server”.

So why do we need APF in BFD? BFD will detect for suspicious activity like attempts of failed login and then insert their IP into APF deny hosts list, so that they will be totally lock out from the server.

Now we start for the installing.

Read more

Setup firewall for your Linux Server

May 9, 2008 · Filed Under Linux · Comment 

Firewall is a wall that can protect your server againts FIRE DISASTER! ….just kidding hehe.

Ok! Firewall work in the way that it let you create rules for packet filtering and NAT. Still blur on what im talking about? Well nevermind, i know many people don’t understand how it works but they do really need it to protect their server. Actually you can call firewall the security guard of your server, you can order “him” to disallow some IP from visiting your whole server or only for certain services. Example, you allow all IP to your Apache service and allow only one of your OWN house/office IP to access the FTP Service. I hope you caught an image on how it works right now, the next i will teach you how to setup the firewall.

Read more

HowTo use GNU Screen in Linux

May 9, 2008 · Filed Under Linux · Comment 

GNU Screen is a terminal multiplexer, it let you create as many number of screen you want in your favourite command shell. Usually i use screen to do installation which required long hours, so that if i get disconnected from my remote server, i can still connect and attach back to the installation screen once i get online. And the installation will still continue in the screen that you created even if you disconnected yourself from the server. If you are doing some installation in the server without Screen, and if you disconnected half way in the installation, the installation will stop and sometimes it might crash your server too.

Don’t worry, you will be familiar with Screen, it looks like normal Shell that you are using all the time, it just another screen that live in the server. Some Linux Distro comes with Screen installed, to make sure if your server have Screen installed, SSH into your server and type in:

Read more

Bash Shell Keyboard Shortcuts

May 7, 2008 · Filed Under Linux · Comment 

Here is the List of Bash Shell Keyboard Shortcuts For Linux Users

  • Ctrl + A - Go to the beginning of the line you are currently typing on
  • Ctrl + E - Go to the end of the line you are currently typing on
  • Ctrl + L - Clears the Screen, similar to the clear command
  • Ctrl + U - Clears the line before the cursor position. If you are at the end of the line, clears the entire line.
  • Ctrl + H - Same as backspace
  • Ctrl + R - Let’s you search through previously used commands
  • Ctrl + C - Kill whatever you are running
  • Ctrl + D - Exit the current shell
  • Read more

    LAMP (Linux, Apache2, MySQL5, PHP5) Installation Guide

    May 6, 2008 · Filed Under Apache, Linux, MySQL, PHP · 6 Comments 

    STEP 1: DOWNLOAD SOURCES THAT GOING TO BE USE IN THE INSTALLATION

    1. cd /usr/local/src
    2. wget http://www.php.net/distributions/php-5.2.5.tar.gz
    3. wget http://apache.oregonstate.edu/httpd/httpd-2.2.8.tar.gz
    4. wget http://mysql.oss.eznetsols.org/Downloads/MySQL-5.0/mysql-5.0.51a.tar.gz
    5. wget http://apache.leakage.org/apr/apr-1.2.12.tar.gz
    6. wget http://apache.leakage.org/apr/apr-util-1.2.12.tar.gz
    7. wget http://xmlsoft.org/sources/libxml2-2.6.32.tar.gz
    8. wget http://curl.haxx.se/download/curl-7.18.1.tar.gz
    9. wget http://download.savannah.gnu.org/releases/freetype/freetype-2.3.5.tar.gz
    10. wget http://quirkysoft.googlecode.com/files/jpegsrc.v6b.tar.gz
    11. wget http://www.zlib.net/zlib-1.2.3.tar.gz
    12. wget http://prdownloads.sourceforge.net/libpng/libpng-1.2.28.tar.gz?download

    STEP 2: INSTALL NECCESSARY TOOLS/LIBRARY

    Read more

    Next Page »