freebsd port update, monitor outdated port with portsnap
we have about 15 freebsd servers with us, ranging from freebsd 4.7 to freebsd 7. most of the server need to be patched regularly, except servers that are not accessible from public network. one of the method we use to…
ssh client hang after a few minutes of inactivity
specify the parameter “ServerAliveInterval 60” in /etc/ssh_config or /etc/ssh/ssh_config. for more info, man ssh_config
Exim – anti-spam per domain setting
acl_check_rcpt: blah … blah … blah … deny message = rejected as $sender_host_address is blacklisted in $dnslist_domain\n$dnslist_text domains = domain-one.com : domain-two.com : domain-three.com dnslists = sbl-xbl.spamhaus.org blah … blah … blah … reference link : http://www.exim-new-users.co.uk/content/view/65/39/
screen in FreeBSD default to csh as suppose to bash (preferred)
After changing bash shell to a new user using chsh, screen needs ~/.bashrc for environment settings, which need “ln -s ~/.bash_profile ~/.bashrc”.
run sql/queries (postgres) within bash
e.g. for things-to-buy in $(psql -d database-name -U username -c “select item from glossaries where priority = ‘urgent’ “; do blah, blah, blah … done
Recent Comments