Debian Tutorials Copy/Paste tutorials for Debian based Linux distros

21Apr/120

Enable Active Directory / LDAP authentication in Apache

If you already have a central directory of users installed (AD or LDAP) you can configure most applications to use that directory instead of a local database for each application and make the user management much easier. Apache supports that so here are instructions on how to password protect a site or location using LDAP directory.

In squeeze, the Apache LDAP module is already installed with the Apache common package. You just need to enable the module and configure.

1. Enable the LDAP module

a2enmod authnz_ldap

11Feb/121

Installing VMware tools on squeeze

The VMware Tools package adds drivers and utilities to improve the graphical performance for different guest operating systems, including mouse tracking. The package also enables some integration between the guest and host systems, including shared folders, plug-and-play devices, clock synchronisation, and cutting-and-pasting across environments.

This tutorial has been tested on Debian squeeze running on VMware ESXi 4.x but should work on all latest VMware hosts.

1. Install kernel headers and tools required to compile and install VMware tools:

apt-get install binutils cpp gcc make psmisc linux-headers-$(uname -r)

27Dec/110

Installing PowerDNS with MySql backend

The PowerDNS Nameserver is a modern, advanced and high performance authoritative-only nameserver. It is written from scratch and conforms to all relevant DNS standards documents. Furthermore, PowerDNS interfaces with almost any database.

This tutorial has been tested and is working on Debian etch and lenny

1. Install the PowerDNS server and MySql backend using apt

apt-get install pdns-server pdns-backend-mysql

15Dec/110

Scan your web server for vulnerabilities with Nikto on squeeze

Nikto is a web server scanner which performs comprehensive tests against web servers for multiple items, including over 3500 potentially dangerous files/CGIs, versions on over 900 servers, and version specific problems on over 250 servers.

1. Add non-free archive to apt sources (pico /etc/apt/sources.list)

deb http://ftp.uk.debian.org/debian/ squeeze main non-free
deb-src http://ftp.uk.debian.org/debian/ squeeze main non-free

11Dec/110

Installing PowerDNS as supermaster with slaves

The PowerDNS Nameserver is a modern, advanced and high performance authoritative-only nameserver. It is written from scratch and conforms to all relevant DNS standards documents. Furthermore, PowerDNS interfaces with almost any database.

This tutorial has been tested to be working on Debian squeeze. It's assumed that you are installing one supermaster and one or more slaves that will sync with the master automatically.

On all servers

1. Install the PowerDNS server and MySql backend using apt

apt-get install pdns-server pdns-backend-mysql

6Nov/110

Monitoring Varnish with Munin

Varnish is a great reverse proxy and very useful for load balancing. Here you can find a tutorial on installing Varnish: Installing and configuring Varnish HTTP accelerator.

Munin is a network/system monitoring application that presents output in graphs through a web interface. If you haven't installed it already, use this tutorial: Monitoring multiple servers with Munin.

Assuming you have both varnish and munin installed, here's a tutorial on installing a plugin for munin to monitor Varnish.

1. Install git-core to receive the plugin from github

apt-get install git-core

3Nov/111

Scan your server for rootkits with rkhunter

Rootkit hunter (rkhunter)rkhunter (Rootkit Hunter) is a tool that scans for rootkits, backdoors and possible local exploits. It does this by comparing SHA-1 hashes of important files with known good ones in online database, searching for default directories (of rootkits), wrong permissions, hidden files, suspicious strings in kernel modules, and special tests for Linux and FreeBSD.

1. Install rkhunter

apt-get install rkhunter

12Sep/111

Installing and using the IPMI tool

The Intelligent Platform Management Interface (IPMI) is a standardized computer system interface used by system administrators to manage a computer system and monitor its operation.

The development of this interface specification was led by Intel Corporation and is supported by more than two hundred computer systems vendors including Dell, Hewlett-Packard, Intel, and NEC Corporation.

1. Install the ipmitool which is used to send commands and receive information from the management interface.

apt-get install ipmitool

Tagged as: , Continue reading
24Aug/110

Installing and configuring vsftpd for local unix users

vsftpd is a secure, fast and stable FTP server. In this tutorial we'll install the server allow local unix to access their home directories.

1. Install vsftpd

apt-get install vsftpd

15Aug/110

Installing Dovecot IMAP and POP3 daemon with MySql backend on squeeze

Dovecot is an open source IMAP and POP3 server for Linux/UNIX-like systems, written primarily with security in mind. Dovecot primarily aims to be a lightweight, fast and easy to set up open source mailserver.

It's assumed that you have already installed and configured Postfix according to this tutorial:
Installing Postfix with MySql backend and SASL for SMTP authentication

1. Install required packages

apt-get install dovecot-imapd dovecot-pop3d