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
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.
[Continue reading.....................]
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
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
[Continue reading.....................]
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!
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:
[Continue reading.....................]
I migrated myself from Vista to Ubuntu, and honestly speaking, i love it more than Vista after i use it for a month. But one thing that i don’t like is the shortcut key to hide and show desktop. Oridinary in Vista was using Super L + D whereas for Ubuntu it use Ctrl+Alt+D. So i decide to configure the shortcut to be similar like the behaviour in Vista, and then i realize that i can’t combine Super L key with other key in the settings. I start googling for the answer, and of cause i did found out the solution or else i wont be writing this post just to ask for help. So here is the solution to share with those out there who have the same problem as me.
- Goto System > Preferences > Keyboard
- Goto Layouts tab
- Click Layout Options… button
- Expand Alt/Win Behavior
- Check on Super is mapped to the Win-keys (default)
- Click on close button
- Goto System > Preferences > Keyboard Shortcuts
Now you are able to set your shortcut with the combination of Super L and other keys. It should come out as Mod4+CHOSENKEY.
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
[Continue reading.....................]
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.
[Continue reading.....................]
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.

