mercoledì 29 dicembre 2010

Reassemble linux software raid device

In event of loss of madadm.conf:

echo DEVICE partitions > /etc/mdadm.conf
mdadm -Es >> /etc/mdadm.conf
mdadm -As --auto=yes

it might be necessary to set the nodmraid kernel boot option

martedì 7 dicembre 2010

Apple Mail ssh tunneling

http://www.ok-labs.com/blog/entry/ssh-tunneling-smtp-on-mac-os-x/

Library/LaunchDaemon/mailtunnel.plist


create key:

ssh -i tunnel_key -q -T mail.example-com

in authorized_keys2 :

command="nc smtp.to.infn.it 25",no-X11-forwarding,no-agent-forwarding,no-port-forwarding

testing:

SSH_AUTH_SOCK= ssh -i .ssh/tunnel_key mail.example.com