$ ufraw-batch --out-type=jpeg --out-path=/home/itsme/Pictures/export --compression=85 --size=1280 /media/Data/home/itsme/Pictures/MyPics/*.neffor more details cf. http://otype.net/2008/08/convert-nikon-nef-to-jpg-with-ufraw/
Thursday, December 25, 2008
personal reminder: Convert Nikon NEF to JPG with ufraw
Monday, December 8, 2008
howto copy CalendarServer (content) - use rdiff-backup
rsynced a complete and functional copy of CalendarServer to another drive (and to another file system). afterwards, the server started and didn't complain but iCal.app didn't show any calendar (but still logged in and didn't complain about anything - just no calendar!).
tryied rsync -aA, rsync -rlpAtgoD (long version - one never knows...), and cp -a - but all to no avail.
finally, i tried rdiff-backup -b - and this worked... why? not quite sure! ideas welcome....
tryied rsync -aA, rsync -rlpAtgoD (long version - one never knows...), and cp -a - but all to no avail.
finally, i tried rdiff-backup -b - and this worked... why? not quite sure! ideas welcome....
Friday, December 5, 2008
personal reminder: building debian packages from source
...for future reference:
- apt-get source (-t testing) PACKAGENAME
- apt-get build-dep (-t testing) PACKAGENAME
- cd PACKAGANAME-version
- OPT: vi debian/rules (e.g. to activate some experimental features)
- OPT: vi debian/patches/00list (to enlist a patch that should be applied)
- OPT: vi debian/patches/... (the patch enlisted previosly)
- dpkg-buildpackage -rfakeroot -uc -b
- dpkg -i ../PACKAGENAME-version-etc (only the necessary packages)
Thursday, November 20, 2008
apt-listchanges chokes on its DB (bsddb.db.DBRunRecoveryError)
in case of:
Traceback (most recent call last):(similarly to the post below) something along the lines of:
File "/usr/bin/apt-listchanges", line 229, in ?
main()
File "/usr/bin/apt-listchanges", line 150, in main
seen.close()
File "bsddb/__init__.py", line 237, in close
bsddb.db.DBRunRecoveryError: (-30974, 'DB_RUNRECOVERY: Fatal error, run database recovery -- PANIC: fatal region error detected; run recovery')
cd /var/lib/apthelps.
db4.6_dump listchanges.db | db4.3_load temp.db
mv temp.db listchanges.db
Saturday, November 15, 2008
spamassassin (or spamd) fails while accessing bayes databases - R/O: tie failed: Transport endpoint is not connected
just found lines like these in the spamd.log (i.e. spamassassin was not able to use the bayes databases any more...)
anyways, the following commands helped:
warn: bayes: cannot open bayes databases /.../.spamassassin/bayes_* R/O: tie failed: No such file or directorythe problem seemed to have been a mismatch in used versions of the BereklyDB files (don't know how exactly they got mixed up...)
...
warn: bayes: cannot open bayes databases /.../.spamassassin/bayes_* R/O: tie failed:
warn: bayes: cannot open bayes databases /.../.spamassassin/bayes_* R/O: tie failed: Transport endpoint is not connected
anyways, the following commands helped:
for i in auto-whitelist bayes_*; do db4.6_dump ${i} | db4.3_load ${i}.db; chown Debian-exim:Debian-exim ${i}.db; chmod g-rwx ${i}.db; done;after that one may check/sync/rebuild the databases along the lines of:
mmv '*.db' '#1'
sudo -u Debian-exim sa-learn -u USERNAME --rebuild --dbpath /.../.spamassassin/ -Dsome inspiration cam from this thread: http://lists.debian.or.jp/debian-users/200601/msg00113.html
Friday, November 14, 2008
tweking perl dependencies in debian
wanted to install dkimproxy on a debian server and was happy to find that the package existed. however, installing this package would have altered quite a lot of the perl installation - including many removes (due to dependency errors...); after some manual tweaking of aptitude, apt-get, and dpkg i finally, realized that this won't work...
but then i found: http://www.debian-administration.org/articles/78 - and started with:
References:
but then i found: http://www.debian-administration.org/articles/78 - and started with:
dh-make-perl Mail-DKIM-0.32/...but found that more modules were needed:
dh-make-perl --cpan Crypt::OpenSSL::Random --buildinstallation is done via regular dpkg -i. and afterwards:
dh-make-perl --cpan Crypt::OpenSSL::RSA --build
dh-make-perl --cpan Crypt::OpenSSL::Bignum --build
sudo aptitude install --without-recommends dkimproxy/testingworked.
References:
- http://dkimproxy.sourceforge.net/
- http://www.cpan.org/modules/01modules.index.html
- https://help.ubuntu.com/community/GnuPrivacyGuardHowto (in case something like 'running debsign failed' comes up...)
Monday, November 10, 2008
CalDAV support in Google Calendar
neat, Google Calendar can be used with iCal.app and Mozilla Sunbird/Lightning: http://www.google.com/support/calendar/bin/answer.py?answer=99355
Tuesday, October 14, 2008
oo documents in svn
short summary of how to get oo documents into svn (content aware...) - well, it doesn't really work. but, at least, some idea: http://www.oooforum.org/forum/viewtopic.phtml?t=51797&postdays=0&postorder=asc&start=0 which goes along the lines of:
unzip -oq [filename] -d [directory]
zip -rq9DX [filename] *
Thursday, September 18, 2008
Apple Calendar Server and memcached
the apple calendar server (in r2002) seems to 'forget' to make libevent - it works hard to download, compile and install - available for the executable...
[memcached] memcached: error while loading shared libraries: libevent-1.4.so.2: cannot open shared object file: No such file or director/usr/local/share/libevent-1.4.4-stable/_root/lib holds the files (per default) - cf. man ldconfig and ld.so to proceed from there...
Sunday, September 14, 2008
OpenVPN and fail2ban
wanted to combine Shorewall and fail2ban for SSH and OpenVPN - but found no OpenVPN filters, hence, added http://www.fail2ban.org/wiki/index.php/OpenVPN.
Monday, August 18, 2008
Saturday, August 16, 2008
Shorewall and Limit: how to reset a Limit counter
...i have still no ide how to reset the counter in /proc/net/ipt_recent/
but found a way to circumvent the blocking of an address for some time:
1. sudo iptables -L | grep -e "Chain.*%Limit\([0-9]\+\)\? "
- this lists all the Limit Chains
2. sudo iptables -I %Limit -m recent --name SSHA --remove -s IPADDRESS
- in case the Chain is calld %Limit and the name for the recent module is SSHA
References:
but found a way to circumvent the blocking of an address for some time:
1. sudo iptables -L | grep -e "Chain.*%Limit\([0-9]\+\)\? "
- this lists all the Limit Chains
2. sudo iptables -I %Limit -m recent --name SSHA --remove -s IPADDRESS
- in case the Chain is calld %Limit and the name for the recent module is SSHA
Friday, August 8, 2008
OS X Leopard (>= 10.5.4 + Security Update 2008-005) - 'Add Printer' for non-admin users
funnily enough the latest Security Update seems to have outdated this hack.
now the Add Printers... dialogue shows all broadcasted cups printers. however, users cannot add them without authenticating as an Administrator of the computer.
a possible solution seems to be to edit a different part of the cupsd.conf file. look for this section and change it accordingly...
Referenes:
now the Add Printers... dialogue shows all broadcasted cups printers. however, users cannot add them without authenticating as an Administrator of the computer.
a possible solution seems to be to edit a different part of the cupsd.conf file. look for this section and change it accordingly...
# All administration operations require an administrator to authenticate...
<Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
# AuthType Default
# Require user @SYSTEM
Require valid-user
Order deny,allow
</Limit>
Referenes:
Tuesday, July 29, 2008
Change OS X 10.5 Leopard Dock from 3D to 2D
a quick reminder for myself (because i'd rather like the two lines than downloading a software...)
references:
defaults write com.apple.dock no-glass -boolean YES
killall Dock
references:
Monday, July 28, 2008
Flushing DNS Cache
mac os x:
win:
linux:
lookupd -flushcache
win:
ipconfig /flushdns
linux:
/etc/init.d/ncsd restart
Subscribe to:
Posts (Atom)