ms_aiboy's blog

Integrasi Web Server Apache dengan Mailing List Manager Mailman

Untuk melakukan integrasi web server Apache dengan mailing list manager Mailman, edit file /etc/httpd/conf.d/mailman.conf, sebagai berikut:

# vi /etc/httpd/conf.d/mailman.conf
#
# httpd configuration settings for use with mailman.
#

ScriptAlias /mailman/ /var/mailman/cgi-bin/
Alias /pipermail/ /var/mailman/archives/public/

Options +FollowSymlinks

#
# Uncomment the following line, replacing www.example.com with your server's
# name, to redirect queries to /mailman to the listinfo page (recommended).

Mail Transfer Agent (MTA) Postfix

Untuk menggunakan Postfix sebagai Mail Transfer Agent (MTA), edit file /etc/postfix/main.cf, sebagai berikut:

# vi /etc/postfix/main.cf
# Global Postfix configuration file. This file lists only a subset
# of all 100+ parameters. See the sample-xxx.cf files for a full list.
#
# The general format is lines with parameter = value pairs. Lines
# that begin with whitespace continue the previous line. A value can
# contain references to other $names or ${name}s.
#
# NOTE - CHANGE NO MORE THAN 2-3 PARAMETERS AT A TIME, AND TEST IF
# POSTFIX STILL WORKS AFTER EVERY CHANGE.

File-file konfigurasi MTA (Mail Transfer Agent) Postfix

Postfix merupakan salah satu dari sekian banyak Mail Transfer Agent (MTA) yang berjalan pada sistem operasi Linux. Postfix mempunyai file-file konfigurasi sebagai berikut ini:

# ls -l /etc/postfix
total 188
-rw-r--r-- 1 root root 6726 Feb 25 2003 access
-rw-r--r-- 1 root root 2262 Feb 25 2003 aliases
-rw-r--r-- 1 root root 12288 Jul 25 21:46 aliases.db
-rw-r--r-- 1 root root 12288 Feb 11 2007 aliases.db.rpmsave
-rw-r--r-- 1 root root 7328 Feb 25 2003 canonical

Konfigurasi Daemon DNS di Linux

Untuk melakukan konfigurasi daemon DNS, edit file /etc/named.conf, sebagai berikut:

# vi /etc/named.conf
options {
directory "/var/named";
forwarders{
192.168.1.6;
};
};
zone "." {
type hint;
file "root.cache";
};
zone "aaa.bbb.co.id"{
type master;
file "aaa.zone";
};
zone "0.168.192.IN-ADDR.ARPA"{
type master;
file "aaa.rev";
};
zone "0.0.127.in-addr.arpa"{
type master;
file "named.local";
};
zone "bbb.co.id"{
type forward;
forward only;
forwarders{
192.168.1.6;
};
};

Konfigurasi Domain Name System (DNS) di Linux

Untuk mengkonfigurasi Domain Name System (DNS) di Linux, edit file /var/named/aaa.zone dan /var/named/aaa.rev sebagai berikut:

# vi /var/named/aaa.zone
@ IN SOA dns.aaa.bbb.co.id.root.aaa.bbb.co.id.
melky.mail.aaa.bbb.co.id (
2006122102 ; serial
28800 ; refresh
14400 ; retry
3600000 ; expire
86400 ; default_ttl
)
dns IN A 192.168.0.90
mail IN CNAME pop3

IP Address Statis & Dinamis pada Linux

Untuk membuat Server DHCP (Dynamic Host Configuration Protocol) pada Linux yang dapat melayani permintaan klien secara otomatis (BOOTP) untuk layanan IP Address statis dan dinamis, edit file /etc/dhcpd.conf, sebagai berikut:

# vi /etc/dhcpd.conf
ddns-update-style none;
subnet 192.168.0.0 netmask 255.255.255.0 {

options routers 192.168.0.1;
options subnet-mask 255.255.255.0;
options domain-name "aaa.bbb.co.id";
options domain-name-server 192.168.0.90;
range dynamic-bootp 192.168.0.16 192.168.0.253;

default-lease-time 21600;
max-lease-time 43200;

host melky {

Firewall Script di Router Linux (Multihomed)

Berikut ini adalah salah satu firewall script untuk membuat Linux router (Multihomed):

# vi /etc/rc.d/rc.firewall.inet_sharing-2.4*
# !/bin/sh
# Load the NAT module (this pulls in all the others).
modprobe iptable_nat

# Turn On IP forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward

# In the NAT table (-t nat), append a rule (- A) after routing
# (POSTROUTING) which says to MASQUERADE the connection
# (-j MASQUERADE)
/sbin/iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE

# Allows forwarding specifically to our LAN

Penambahan Pengguna Dengan Konfigurasi Default di Linux

Untuk melakukan penambahan pengguna (user) sistem komputer dengan konfigurasi default, misalnya penentuan Home Directory, Group, Shell, dll, dengan perintah useradd, edit file /etc/default/useradd, sebagai berikut:

# vi /etc/default/useradd
# useradd defaults file
GROUP=100
HOME=/home
INACTIVE=-1
EXPIRE=
SHELL=/bin/bash
SKEL=/etc/skel

Variabel Shell di Linux

Berikut ini adalah beberapa variabel shell di Linux:

REMOTEHOST, HOSTNAME, SHELL, TERM, HISTSIZE, USER, LS_COLOR, MAIL, PATH, INPUTRC, PWD, LANG
SSH_ASKPASS, SHLVL, HOME, LOGNAME, G_BROKEN_FILENAMES, SKEL, GROUP, INACTIVE, EXPIRE, OLDPWD
LESSOPEN, BASH, BASH_VERSIONINFO, BASH_VERSION, COLORS, COLUMNS, DIRSTACK, EUID, GROUPS
HISTFILE, HISTFILESIZE, HOSTTYPE, IFS, LINES, MACHTYPE, MAILCHECK, OPTERR, OPIND, OSTYPE, PIPESTATUS
PPID, PS1, PS2, PS4, SHELLOPTS, SUPPORTED,UID

Teknik Menentukan Driver Ethernet di Linux

Untuk menentukan driver ethernet di Linux, misalnya NIC (Network Interface Card) yang dimiliki chipsetnya adalah RTL8139B, maka edit file /etc/modules.conf sebagai berikut:

# vi /etc/modules.conf
alias eth0 8139too

Syndicate content