Blog uživatele Zdenek Key

Postfix check_headers

Playing with postfix check_headers directive

Application: Postfix
Version: 2.9
System: Debian
Description:
Use check_headers to replace some headers from emails send by postfix

Maildir format - notification, mailx command

Using Maildir format in Debian 7:

  • mail notification after login
  • mail notification after ssh login
  • read mail using mailx or mail command

BTW: set delivery agents to use Maildir before

open XEN | open XCP notes

U can see some usefull things below.

XCP:

  • VNC console cs_CZ keymap = use en layout(gnome) while connection to DOM0 console(via tunnel like ssh -CN -L 5900(localport):localhost:5901 $HOST)
  • no LVM in storage type = create symlink from LVHDSR.py to LVHDSR in /usr/lib/xcp/sm/
  • HVC console = /etc/default/grub (CMDLINE_LINUX="console=hvc0") /etc/inittab (co:2345:respawn:/sbin/getty hvc0 9600 linux)
network bonding aka etherchannel

Network bonding on debian:

mode used: balance roundrobin
NICs: 2x 100Mbit
application: ifenslave-2.6 (Debian Wheezy repos)
configs: /etc/network/interfaces
kernel: 3.2 (deb official)

sometimes is need to put "alias bond0 bonding \
options miimon=100 downdelay=200 updelay=200"
to /etc/modules|modprobe.d/

playing with dd_rescue, loop device and mdadm

How to backup drive and examine mdadm over the image file using loop

WPA passphrase checking

How to check your WPA passphrase security.

Restore deleted files

Progs needed:
extundelete (check repository or http://extundelete.sourceforge.net/)

#change dir to place where can u write/read with enought space
cd /YOUR_FOLDER_W_RW_RIGHTS

#remount(umount/mount) disk with files w8ing for restore with read only att

umount /dev/xxx

mount -o ro /dev/xxx /media/yyy

#see which inode belongs to you desired folder(with deleted files)
ls -il /zzz

#do the job
extundelete /dev/xxx --restore-inode aaaa

-----

Firefox addons

List of Firefox plugins I have.
http://ygg.cz/upload/ext_ff.htm

Set #1

Mixed in Jun 2010
Trance set
DOWNLOAD

Port Forwarding at FW

Nazev: Port forwarding at the FW
Co: SSH, iptables

Suburban Glory Web Design