I have been writing a document about linux server.

 in

I wrote the document in Chinese before.
but from now on I will be writing document in English.

http://netkiller.hikz.com/book/linux/

the following is Table of Contents.

1. Introduction

Linux Installation

I. System

2. device information
3. System Information
4. time zone

to change system date/time

5. xinetd - replacement for inetd with many enhancements
6. Command

Distribution information
nohup - run a command immune to hangups, with output to a non-tty
lsof - list open files

7. Packages

Debian / Ubuntu apt-get

Update
Search
Installation
Remove
List of installed software packages
dpkg-reconfigure

tar - GNU tar / compress and decompress

tar examples
gzip
b2zip

Zip

8. console / terminal

serial console
console timeout
disable x window

9. Disk

show partition
Create Partition
Format Partition

ext3
ReiserFS

10. Command Shell

查找文件并删除
xargs
find and replace
to convert utf-8 from gb2312 code
php function check

II. Network

11. network tools

curl / w3m / lynx
nmap
tcpdump
rdesktop - A Remote Desktop Protocol client

12. ethernet

Interfaces
Mask
Gateway
sysctl
bonding

Ubuntu

13. DNS/Bind

bind9
Load Balancing
view
tools

14. Proxy Server

Socks 5
Apache Proxy

15. Squid - Internet Object Cache (WWW proxy cache)

debian/ubuntu 安装
Proxy Server
Squid作为反向代理Cache服务器(Reverse Proxy)
代理+反向代理
Squid 管理
禁止页面被Cache
Squid 实用案例

Squid Apache/Lighttpd 在同一台服务器上
用非 root 用户守护 Squid

16. News Group (innd)

User Authentication

17. NET SNMP (Simple Network Management Protocol)

安装SNMP
例出MBI
Cacti

III. Security

18. OpenSSH

maximum number of authentication
disable root SSH login
Automatic SSH / SSH without password
Putty
OpenSSH Tunnel

19. sysctl - configure kernel parameters at runtime

net.ipv4.ip_forward

20. iptables - administration tools for packet filtering and NAT

refresh chains
list chains
chains admin
INPUT Rule Chains

OpenSSH
FTP
DNS
WWW
SOCKS5
Mail Server
MySQL
PostgreSQL
DHCP
Samba
ICMP
禁止IP访问自己
DENY

OUTPUT Rule Chains

outbound
ICMP
禁止自己访问某个IP

Forward

TCPMSS

NAT

redirect
MASQUERADE
DMZ zone

IPV6
ulogd - The Netfilter Userspace Logging Daemon

21. Firewall

ufw - program for managing a netfilter firewall

DHCP
Samba

Firewall GUI Tools
Shorewall Tools

22. ip tunnel

ipv4

23. OpenVPN (openvpn - Virtual Private Network daemon)

Ubuntu/Debian 环境安装
OpenVPN GUI for Windows
源码安装

24. FreeRADIUS

ldap
mysql
WAP2 Enterprise

25. Kerberos

CentOS 安装
Install by apt-get
生成kerberos的本地数据库

26. Email

IV. File Transfer

27. wget - retrieves files from the web
28. axel - A light download accelerator - Console version
29. ncftp

batch command

30. ProFTPD + MySQL / OpenLDAP 用户认证

Proftpd + MySQL
Proftpd + OpenLDAP

31. Pure-FTPd + LDAP + MySQL + PGSQL + Virtual-Users + Quota
32. rsync - fast remote file copy program (like rcp)

install with source
install with aptitude
upload
download
mirror
step by step to learn rsync
rsync examples

backup to a central backup server with 7 day incremental
backup to a spare disk
mirroring vger CVS tree
automated backup at home
Fancy footwork with remote file lists

rsync for windows

33. tsync
34. Unison File Synchronizer

local
remote
config

35. csync2

server
node
test
Advanced Configuration

V. Web Application

36. Lighttpd and fastcgi

quick install with aptitude

php fastcgi

to compile and then install lighttpd

compress module
shell script

simple-vhost
redirect
rewrite
alias.url
PHP

php fastcgi

Python
Perl

Installing lighttpd and FastCGI for Catalyst

37. LAMP

Compile and then install Apache

Apache 安装与配置
PHP

Quick install apache with aptitude

command
rewrite module
PHP module
deflate module
ssl module
VirtualHost
~userdir module - /public_html

XAMPP for Linux
PHP 5
Mod Perl

38. Tomcat 安装与配置

tomcat
mod_jk
mod_proxy_ajp
RewriteEngine 连接 Tomcat
Testing file
Script 1
Shell Script 2

39. Application Service

Zope
JBoss - JBoss Enterprise Middleware

40. Web Server Optimization

ulimit
Apache 调优

worker

Tomcat
deflate

测试 gzip,deflate 模块

Apache Log
跟踪用户的cookie
Zend Optimizer
eaccelerator
Memcached
khttpd

41. Web Analysis

综合测试
awstats
webalizer

VI. Database

42. PostgreSQL

Install
Postgres 配置
Backup / Restore
PostgreSQL 实用实例参考

43. MySQL

Installation
Replication

Master
Slave
Testing

MySQL CLuster

Management node (MGM node)
Data node
SQL node
Starting
Shutdown
Testing

The Slow Query Log

44. OpenLDAP server (slapd)

Installation
基本操作

Add
Search
Modify
Delete
Search

Active Directory
Replication

Primary
Secondary

Backup and Restore

VII. Storage And Backup/Restore

45. Samba

install
share
test
user
smbfs
Security consideration

46. Network Storage - Openfiler

Accounts
Volumes

RAID
iSCSI

Quota
Shares

47. Amanda: Open Source Backup
48. inotify

inotify-tools
Incron - cron-like daemon which handles filesystem events

49. Distributed Filesystem

DRBD (Distributed Replicated Block Device)

disk and partition
Installation
configure
Starting
Using

Coda

VIII. Cluster

51. Linux Virtual Server

环境配置
VS/NAT
VS/TUN
VS/DR

配置文件

ipvsadm script
debug
ipvsadm monitor

52. keepalived

安装
test

53. heartbeat+ldirectord

54. Assistant

Webmin
logwatch
awstats
webalizer
Cacti
nulog
Zenoss
Nagios
BIG BROTHER
Ganglia

55. Open Source Distributed Computing

Boinc (berkeley 分布式计算平台)

56. Multimedia

ImageMagick
How to add metadata to digital pictures from the command line
broadcast streaming

gnump3d - A streaming server for MP3 and OGG files
icecast2 - Ogg Vorbis and MP3 streaming media server
shoutcast
PeerCast

57. Voice over IP

Gnu Gatekeeper

Gnu Gatekeeper Install
Gnu Gatekeeper Configure
Gnu Gatekeeper Test

Asterisk (OpenSource Linux PBX that supports both SIP and H.323)
OpenSER SIP Server

58. 案例

大型网站架设指南
基于LVS的集群邮件系统

A. 附录

CentOS / Redhat Notes

useful command
mysql

59. 历史记录

Webinar
One Click, Universal Protection: Implementing Centralized Security Policies on Linux Systems

As Linux continues to play an ever increasing role in corporate data centers and institutions, ensuring the integrity and protection of these systems must be a priority. With 60% of the world's websites and an increasing share of organization's mission-critical workloads running on Linux, failing to stop malware and other advanced threats on Linux can increasingly impact an organization's reputation and bottom line.

Learn More

Sponsored by Bit9

Webinar
Linux Backup and Recovery Webinar

Most companies incorporate backup procedures for critical data, which can be restored quickly if a loss occurs. However, fewer companies are prepared for catastrophic system failures, in which they lose all data, the entire operating system, applications, settings, patches and more, reducing their system(s) to “bare metal.” After all, before data can be restored to a system, there must be a system to restore it to.

In this one hour webinar, learn how to enhance your existing backup strategies for better disaster recovery preparedness using Storix System Backup Administrator (SBAdmin), a highly flexible bare-metal recovery solution for UNIX and Linux systems.

Learn More

Sponsored by Storix