recursive get via smbclient

I was just in need of a recursive directory get from a windows machine. It's simple as that:
$ smbclient '//$' -U username%Passw0rd -c 'lcd /data/; prompt; recurse; mget ImportantData\'
Have fun.

try Nginx webserver

Have you ever had a system that went out of resources because of some heavy-loaded apache2 webserver? I recommend trying out Nginx instead.

In combination with some clever fastcgi technique, it can boost your site performance as well as lowering your resource needs.
That topic was also recently covered in our companies blog (german):
This is an example for changing smoothly apache2 for nginx for some groupware webapp.

MySQL optimization

I recently stumbled over this two tools: and
They can assist you in reading the mysql runtime statistics and give you hints on what to tweak. I recently covered that topic in our company blog (german):
On a personal installation, the first one gave me some crucial hint on 3 passwordless accounts :) ...along some minor ideas on what to do regarding performance.


One can get quite addicted to it. If you're german speaking, I really can recommend this guy, having posted almost 100 "let's play videos" covering this great roguelike game.
Here's an example video from him:

Sophos UTM9 Home (Astaro)

Deploying Sophos/Astaro firewall appliances for our customers, I recently talked to a colleague who told me, old "ASGs" were available cheap on the internet (eBay e.g.). Told so I went for a ASG120/110 and got it for 15 EUR incl. shipping. Technically we're talking about a metal housing with a DNB830 motherboard on the inside. For details on the board have a look here:
Basically it's a VIA EDEN 800MHz with some peripherals like 3x 100 Mbit/s LAN. After buying some cheap SSD (Sandisk ReadyCache) and a 1GB RAM upgrade the thing was complete and the bill looked like this:
15 EUR HW appliance
Sum: 103 EUR
What was the plan? Replacing my Fritz 7270 v2 that began making trouble.
Now for the OS: Voyage Linux, Debian stable, ...wait, Sophos provides a free "Home license" for its boxes. It's only limited by 50 client IPs and 32000 concurrent connections, fair enough.
After running it now for a couple of days I can recommend a few steps for better RAM usage and less use of swap: /etc/crontab

30 5 * * *     root    /var/mdw/scripts/httpproxy restart
(the first line only if you make use of the transparent web proxy)
35 5 * * *     root    sync; echo 3 > /proc/sys/vm/drop_caches

As well as setting the swappiness to a lower value than the default, which is 60.
sysctl -w vm.swappiness=xx
or permanently this way: /etc/sysctl.conf

Todo: Look for a low-noise 30x30mm fan for the housing. I don't know if the design is "original" without a fan, because there are some holes prepared for one, and it gets quite hot in there.

Edit: More performance gains: Disable logging + the caching of the transparent proxy.
Making those stats takes a lot of CPU.


My new toy arrived a couple of weeks ago and I was able to figure out some APRS and debugging stuff.
Sending emails using APRS and the Winlink system was one:
For short: 1.) Grab an account at Winlink. 2.) Start sending emails through APRS by directing a message to the call WLNK-1 using either the short message format:
SMS to@add.ress My message is this!
or the long version where one email is split up into multiple APRS messages (see above link). Another neat thing was the alignment menu. On this model you can enter it by:
- enabling + setting the CW id (menu no. 16) -> to AH041M
- switch to "A" band VFO mode only, set the freq to 430 MHz
- switch the radio off, and switch it back on with the HM/RV key pushed
- now you're on your own regarding the settings :)
- extra tipp: turn the knob a few settings and then hit the Band button. now you're able to change the same settings, but for 2m Band separately.


SSH as Proxy #2

Just as a reminder:
$ ssh -o "CompressionLevel=5" -C -4 -ND localhost:1080 root@YourHop.blarg

Set for a socks proxy in your browser (-> localhost + port 1080). Done - almost.
Look out that DNS requests are also done by the hop!
Get to "about:config" in FF and search for
network.proxy.socks_remote_dns and set it to true.
Now you're somewhat safe.

Packet Radio with Linux (sound card)
...led me into the right direction. Thanks for those resources!
Anyway I'm struggling with "soundmodem" and my USB-to-serial PTT-device.
I'm using one of these:
Result: DSR is toggling (reverse), but neither DTR not RTS does?! Halp. -> Update - Solved: Using a FTDI-Adapter now. HNY.
Update #2 (06.01.2013):
Worth reading, regarding behaviour of soundcards and transceivers (de-emphasis).