remove files and folders by date

this is designed to delete files by date from the current directory….it was googles fault for providing “source” in a .deb with relative paths without being clear. plus it was my fault for not doing a test extract prior to doing a real one….pretty irrelevant but was needed to tidy up my /usr/local/src

by design will remove files dated 2008-11-07 from slackware’s ls -al …probably would be wise to trial run it by changing the xargs to an echo first ;-)

#ls -altrh |grep ‘2008-11-07’ |awk {‘print $8’} |xargs rm -rfv

qmail with ezmlm on openbsd

i wouldn’t suggest that anyone mimick mymethod here because i’m putting all of this into an openbsd virtual machine already configured with postfix, dovecot and a handful of other software (check out allardsoft for more info) but i’ll be putting up more info as i’m repeating my process and finding missing info

comp45.tgz –> compilation base set –> ftp://ftp.openbsd.org/pub/OpenBSD/4.5/i386/comp45.tgz

cd /
tar zxpf /path/to/file/comp45.tgz

daemontools daemontools-0.76.tar.gz daemontools home
ucspi-tcp ucspi-tcp-0.88.tar.gz ucspi-tcp home
qmail qmail-1.03.tar.gz qmail home

openbsd basic info to remember

this will be expanded as my knowledge grows but for now i just need to be able to find this info again.

a package is a piece of software

a set is a series of software packages that speak together

to install a set after the initial install, simplly untar the *.tgz from the root directory while preserving permissions

# cd root

# tar zxvpf /path/to/set.tgz

phpMyProxy – Simple, Straightforward and works

When a routing issue in our datacenter arose today, as a temporary solution i whipped out a proxy install that was so basic i couldn’t mess it up (and i definitely was doing “unsupported” tweaks to the files). To embelish on the routing issue a little more: a local isp moved some equippment into the datacenter, now on the same level in the same pool as our servers, their clients could not reach our servers when entering the routes from very specific directions. a temp solution is now in place and they aren’t sure when the permanent solution will work…don’t blame me….nothing changed on my end.

http://www.drunkensailor.org/proxy/

www.phpmyproxy.com – i did have to register for the initial link, but since it’s open source here’s a link to my version’s tarball…(so much lighter!!!)

CUPS useful commands

to add a MFC-8220 printer to CUPS v1.1.20 connected to a linksys print server via commandline:

#/usr/sbin/lpadmin -p xxxbrotherA -m BR8220_2_GPL.ppd -v lpd://192.168.xxx.5/P1 -E
***replace “xxx” with appropriate subnet
***get the PPD from openprinting.org http://openprinting.org/foomatic-db/db/source/PPD/Brother/BR8220_2_GPL.ppd

to list all currently installed printers:

# lpstat -v

to list all supported models:

# lpinfo -m

to test a PPD file for validity and compatility:

# cupstestppd /path/to/ppd

ndiswrapper with linux kernel 2.6.29.2

made the all too fatal yet all to common mistake of updating to slackware current fully and lost the ability to compile some of my favorite (virtualbox) and most used (ndiswrapper) software due too stricter code residing in the kernel. so all that aside, i HAVE to use ndiswrapper with mylow power lp-phy usb-like mini pci card…it sucks in short.

so with ndiswrapper not compiling i was giving up hope until i found this post –> read through to the last post by slh.. in it he shows a patch fix (which is pretty striaght forward to apply manually) and i have included below:

fix C syntax error and field name in conditional netdev ops struct,
triggering on kernel >= 2.6.29 and CONFIG_NET_POLL_CONTROLLER=y.

— a/driver/wrapndis.c
+++ b/driver/wrapndis.c
@@ -1744,7 +1744,7 @@ static const struct net_device_ops ndis_
.ndo_set_mac_address = ndis_set_mac_address,
.ndo_get_stats = ndis_get_stats,
#ifdef CONFIG_NET_POLL_CONTROLLER
– .poll_controller = ndis_poll_controller;
+ .ndo_poll_controller = ndis_poll_controller,
#endif
};
#endif