Webserver such as Nginx / Lighttpd accepets passwords using encoded method i.e. function crypt(3) is needs. You can create the password file with the htpasswd program from Apache. Sometime Apache is not installed use the following perl script to create password.
How do I use crypt.pl?
Download script
Set permissions:
chmod +x crypt.pl Read the rest of this entry »
Setup Virtual Users and Directories in VSFTPD July 31st, 2009
Setup virtual users instead of local users and configure user specific home directories for each user, or shared between a handful of users.
The reason for setting up virtual users, and different home directory for each user, was to allow ftp access to a web server running a number of different sites for different clients. Each client can have one or more login to the ftp server, and the usernames and passwords can be shared with the apache webserver, so you only need to store their passwords in one place.
I’m choosing vsftpd as the ftp server, as it seems to have the best reputation for being secure (and having the fewest security bugs)
Â
Installing
Whilst each flavour of linux has it’s own way of installing software, I’m going to run through using debian, so you will need to adapt it for whichever distro you use.
Firstly we need to download and install the ftp server VSFTPD
debian# apt-get install vsftpd Read the rest of this entry »
Beginner’s Guide: Run Linux like any other program in Windows July 23rd, 2009

There are many reasons people are hesitant to try Linux. The biggest of these reasons is that installing Linux generally requires people to do a list of difficult and unfamiliar tasks. However, I am going to introduce “virtualization†which is a fancy term for running Linux like any other program in Windows. The following article will guide you through the process of setting up Linux so you can run it like any other program in Windows. Don’t be intimated, these directions are designed for the absolute beginner and will not require you to do anything unfamiliar, threatening, or permanent to your computer. When you are finished you will be able to run Linux like any other program in Windows and share files between Linux and Windows.
The first step is to install VMWare Player. Read the rest of this entry »
We will learn to run squid with squidGuard that is a URL redirector used to use blacklists.
| [1] | Install squidguard | |
|
||
| [2] | Try to access to Yahoo set as prohibited domain in [1]. Anyway, this redirect setting is an example to show action of this squidGuard, but please make your own original redirect page because it’s meaningless to redirect to google like this example. |
Thanks to Author, source here
Run squid with antivirus clamav to scan download files. Install clamav first. And Install squidclamav like following example. July 17th, 2009
[1] Install clamd first
lan:~#
mkdir -p /var/run/clamav
lan:~#
chown clamav. /var/run/clamav
lan:~#
vi /usr/local/etc/clamd.conf
# line 8: maike it comment
#
Example
# line 72: change
LocalSocket
/var/run/clamav/clamd.sock
# line 80: make valid
TCPSocket 3310
# line 87: make valid
TCPAddr 127.0.0.1
# line 150: make valid
User clamav
lan:~#
/usr/local/sbin/clamd &
[1] 30805
[2] Install squidclamav
# Install packages for dependency
lan:~#
aptitude -y install libcurl3-gnutls-dev libwww-curl-perl libcurl3-gnutls libcurl3 curl libcurl3-openssl-dev slang-curl Read the rest of this entry »

