Mini-Howtos

Want to support HowtoForge? Become a subscriber!
 

How do I scan my Linux system for rootkits, worms, trojans, etc.?

Either with chkrootkit or with rkhunter.

chkrootkit

Either install the package that comes with your distribution (on Debian you would run

apt-get install chkrootkit

), or download the sources from www.chkrootkit.org and install manually:

wget --passive-ftp ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz
tar xvfz chkrootkit.tar.gz
cd chkrootkit-<version>/
make sense

Afterwards, you can move the chkrootkit directory somewhere else, e.g. /usr/local/chkrootkit:

How can I get a list of quotas assigned to my users and groups and of the space used by them?

repquota -avug

shows a list for both users and groups.

repquota -au

shows a list for users,

repquota -ag

a list for groups.

How can I set a limit as to how much space is available for a web site I put on my server? Like it is limited to 50 MB of space.

First, you have to enable quota on your system. Have a look at the quota section of the appropriate "Perfect Setup" tutorial for your distribution on HowtoForge.

After you've enabled quota on your system:

To set quotas for a user or group, use the setquota command (see

man setquota

for more information), e.g.:

setquota -g $group $blocks $blocks 0 0 -a
setquota -u $username $blocks $blocks 0 0 -a

Replace $group, $username and $blocks. Note: $blocks is the quota size in MB * 1024! To deactivate quotas for a user or group, run these commands and set $blocks to 0.

Quota does not work under SuSE 8.2!

On a standard SuSE 8.2 installation the quota module is not loaded into the kernel which is why

quotaon -avug

gives back an error.

Load the quota module manually with

insmod quota_v1

and

insmod quota_v2

To have those modules loaded on every bootup of the system please insert

modprobe quota_v1

and

modprobe quota_v2

in /etc/init.d/boot.local.

Configuring Tomcat5 and Apache2 with Virtual Hosts using mod_jk

Configuring Tomcat5 and Apache2 with Virtual Hosts using mod_jk

This tutorial explains how I was able to setup a web server in order to support Java Server Pages (JSP) and Servlets using virtually hosted websites. The ultimate goal is to provide instructions on how to incorporate JSP/Servlet support on the ISPConfig web hosting software. I felt it was necessary to provide this first segment separately for those that do not wish to use the ISPConfig web hosting control panel.

first page
previous page
...
16