Linux

From wiki.sixohthree.com
Jump to: navigation, search
Scold.jpg

This page is a damn mess.

How many times have I told you to clean this pigsty up? You are grounded until this room is spotless, young man!

Logical Volume Management is a short-term goal of mine. LdapAuthentication is more of a long-term thing. I run a MailServer using netqmail, courier-imap, etc.


I exercise judicious use of "exec" in my daily Linuxing. exec startx secures my initial login shell so no one can switch to tty1 and background/kill XFree86 and get a free shell under my name. exec ssh user@host saves me the extra exit command at the end of the day, as does exec screen. (Speaking of screen(1), I just learned about regions.)


Bash scripting makes my life easier. The Advanced Bash-Scripting Guide is invaluable, particularly the Reference Cards. A Guide to Unix Shell Quoting may also be useful.


Problem: I'm having problems with ezmlm, the EZ Mailing List Manager. ezmlm is replying to the Return-Path: field instead of the From: field. This is unexpected, though not wholly unwelcome. (Just a little unwelcome, since it wasn't an obvious fix.)

Solution: sendmail allows trusted users to specify a From: address using the "-f" flag. As an aside, you can automatically use -f with mutt by setting "envelope_from" in your .muttrc. Check the MuttWiki for more information.


I'm trying to be better about backing up my system. Here's my initial experiements at incremental backups of my home directory:

tar cpvf adam-aziz-`now`.tar -N "`date -r adam-aziz-20031207.tar`" --directory / home/adam

Where adam-aziz-20031207.tar is the last backup I created. One caveat: `date -r` returns modification time, not creation time. If the previous .tar has been touched since it was created you won't archive all the files you expected.

[edit] Firewall

I use a custom rc.firewall for iptables, created using this article as a reference. It also relies on blacklist from the Apache httpd tools package.

I also use an alias in my .bashrc:

alias iptables-list='iptables -vnL --line-numbers'
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox