Posts

Dropbox in Debian Squeeze

I decided to give Debian Lenny +1 distribution, Squeeze a try on my work desktop. Things look really good and easy for one of my favorite cloud services, Dropbox . To install (instead of the old manual methods) just enable the non-free repository in your /etc/apt/sources.list : deb http://mirrors.kernel.org/debian/ squeeze main contrib non-free Then you can simply install Dropbox with: apt-get install dropbox

Finally a fix for home, end, page up and page down keys in Mac OS Terminal!

Thanks Mac Improved Blog man: http://macimproved.wordpress.com/2010/01/04/fix-page-updown-home-end-in-terminal/

lighttpd: whitelist some IPs while authenticating the rest

Here's the scenario: you have an office full of people that need access to a certain web app. Some of them probably have insecure passwords and you're too busy to worry about the latest security holes in your web-app. Slow down attackers by allowing your office IP addresses in while denying the open web access until they put in a simple group password. In other words, this post walks you through having lighttpd allow some IP addresses in (and authenticating with your web app) and others to have to authenticate with mod_auth first, then the web app. These instructions were tested on Debian Lenny: First Enable the authentication module: lighttpd-enable-mod auth Create the password file, the format is username:password vim /etc/lighttpd.user Make the password file owned by the webserver user: chown www-data:www-data /etc/lighttpd.user Configure the auth module: vim /etc/lighttpd/conf-enabled/05-auth.conf * Comment out the auth.backend = "plain" line * Co...

Pico Projectors

Is the next big (little) thing Pico Projectors? Check out my friend's site http://picoprojector.org/ - he's got pretty comprehensive reviews and news about the miniaturized projectors.

Blackberry Bold 9700 and Mac OS X 10.6.2 Bluetooth Tether for AT&T

Image
This is a fairly lazy post. I'm assuming you have the devices tethered via Bluetooth - that's fairly common knowledge. What's uncommon is getting it to work. I tried the Blackberry Modem profiles that people cooked up with no luck. What ended up working was this Option N.V device profile. Just follow the screenshots. * Note password is CINGULAR1 The speeds are under a Mbit up and down. Not great but this works. If this isn't working I suggest you tail -f /var/log/system.log while "Use verbose logging" is checked in the PPP properties. Source here (obscure CrackBerry post)

Troubleshooting Cisco/Linksys SPA-942 phones with a syslog Server

Image
Chances are you're using an Asterisk server on Linux with your SPA-941, SPA-942, or SPA-962 VoIP phones. If you're having an issue, like trouble upgrading firmware it's nice to know what the phone is saying. Simple. Enable remote syslog logging: On your Linux machine, in this case CentOS, enable remote syslog logging in /etc/sysconfig/syslog by adding a -r to the SYSLOGD_OPTIONS line. It will end up looking something like this: SYSLOGD_OPTIONS="-r -m 0" Restart syslog ( /etc/init.d/syslog restart ) and then onto the phone. Enable Logging on the SPA device On your SPA device under (Admin -> System) enter the IP of your syslog server into the boxes and set a debug level (0 is off, 3 is most verbose): Look at your logs: In /var/log/messages you should see some output the phone is putting out. This is an example of a successful firmware upgrade on an SPA-941 Feb 25 13:06:18 10.0.22.114 SPA-941 00:0e:08:23:15:2c -- Requesting upgrade http://10.0.22....

Batch convert Asterisk GSM WAV files to mp3

Image
I am working on a fun project at work to provide web based visual voice-mail for a ticketing system. I realized Flash audio players are not able to play WAV files so had to work around that. Since users are also using voicemail files in other ways I can't just change the output format from Asterisk. The type of file that I'm working with is identifed with file ms0012.WAV as: msg0012.WAV: RIFF (little-endian) data, WAVE audio, GSM 6.10, mono 8000 Hz First I'll say that I found this post http://www.thiscoolsite.com/?p=73 but like some of the commenters I couldn't get the script to work. The author assumes some other format than Asterisk spits out by default. Lame would complain that Unsupported data format: 0x0031 The Tools Sox: http://sox.sourceforge.net/ Lame: http://lame.sourceforge.net/ So here's what I do: Convert GSM encoded wav to Microsoft PCM sox msg0012.WAV -s msg0012.wav Convert the PCM wav to mp3: lame msg0012.wav msg0012.mp3 And here's a script to...