Tuesday, February 17, 2009

Backup to babosa

In the relatively safe environment of my own LAN a nice command to keep some directories in sync with babosa as a backup is:

rsync -av --delete ~/Documents babosa:/home/kompoza/membrillo

Substitute Documents for any folder you want to sync.

This uses the unsafe but fast rsh protocol and I get around 1 MB/s transfer rate.

Saturday, January 10, 2009

CXXFLAGS for LinuxSampler

Fooled around a bit with linuxsampler/benchmark and got the following procedure to build an optimized rpm for my machine from LS CVS:

cvs -z3 -d:pserver:anonymous@cvs.linuxsampler.org:/var/cvs/linuxsampler co linuxsampler

or

cvs update -d -P

Then

make -f Makefile.cvs
./configure --prefix=/usr
make dist
cp linuxsampler-0.5.1.8cvs.tar.bz2 ~/rpmbuild/SOURCES/
CXXFLAGS="-O2 -march=pentium-m -ffast-math -mmmx -msse -funroll-loops -fomit-frame-pointer" rpmbuild -ba --clean --target i686 linuxsampler.spec