Posts Tagged ‘linux’

sshguard on Debian/lenny

Tuesday, March 9th, 2010

The sshguard documentation is correct, but a little lacking.

Here are my notes of what is needed in case I ever need to re-do it:

  • Download sshguard-1.4.tar.gz from http://www.sshguard.net/
  • Unpack and compile (see the stock documentation on sshguard.net)
  • In /etc/rc.local add the following lines before the “exit 0″. This sets up iptables with a filter for ssh connections:

    iptables -N sshguard

    iptables -A INPUT -p tcp --dport 22 -j sshguard

    You should run those commands before you edit the syslog configuration. Or reboot.

  • In /etc/syslog-ng/syslog-ng.conf add around line 190 the following lines:

    filter sshlogs { facility(auth, authpriv) and not match("sshguard"); };

    destination sshguardproc {
    program("/usr/local/sbin/sshguard"
    template("$DATE $FULLHOST $MESSAGE\n"));

    };

    And down near the end of the file, add:


    log { source(s_all); filter(sshlogs); destination(sshguardproc); };

  • And finally restart syslog-ng (sudo killall -HUP syslog-ng) and read the sshguard faqs: http://www.sshguard.net/docs/faqs/

Ubuntu/lucid on hp2133

Tuesday, February 16th, 2010

Tonight I wiped my hp2133 running Ubuntu/karmic and installed lucid.

The only pain was of course getting the wireless card to work. That simply meant getting the Broadcom firmware into /lib/firmware/b43

The instructutions on http://wireless.kernel.org/en/users/Drivers/b43 were right on. You will need to build b43-fwcutter from source pulled from the git repo, but the commands are provided.

Are you a Linux or Java geek looking for a phone?

Monday, January 4th, 2010

If so, then you *need* to get a Droid.

I think of the Motorola Droid as an “always on portable computer with G3, WiFi, GPS, Blutetooth, audio in/out, microSD, compass, accelerometer, keyboard and a reasonable size touch screen.” Oh, and you can make phone call with it too.

The open source dev tools for Linux/Windows/Mac integrate with eclipse and includes the can’t-say-Java-but-that-is-what-it-is compiler & runtime. Nice desktop phone emulator for debugging and on the phone there is a reasonable USB-based debugging tool. It was straight forward to compile some of the sample projects and put it on my phone.

SheevaPlug initial Ubunut/Jaunty pre-loaded kernel

Wednesday, May 13th, 2009

Linux version 2.6.22.18 (dhaval@devbox) (gcc version 4.2.1) #1 Thu Mar 19 14:46:22 IST 2009

HP has released AdvFS under a GPLv2 license!

Monday, June 23rd, 2008

It is nice to see that this well tested filesystem technology has been made available under the GPLv2 and may have another life with Linux.

Press Release HP Contributes Source Code to Open Source Community to Advance Adoption of Linux and the AdvFS site on SourceForge.

My MySQL talk at GNHLUG

Friday, June 20th, 2008

Last night I gave my much delayed talk about MySQL at the Greater New Hampshire Linux Users Group.

BTW, next time you are in downtown Nashua, stop by Martha’s Exchange and have a Cherry beer with the Jambalaya — spicy but delicious!

My new shiny hp 2133 mininote

Wednesday, May 21st, 2008

Last month I ordered an hp 2133 mini-note with pre-installed Linux, specifically Novell’s SuSE Linux Enterprise Desktop 10 and it was back ordered until last week.

Here are the obligatory unboxing photos.

hp 2133 unpacked

Man it is tiny, but after a few hours of getting use to it, it isn’t *too* small for typing. I’m getting to like the button under the space bar that disables the touchpad for when you are doing extended typing.
open hp compaq 2133 mini-note

See the rest of the photos here:
HP 2133 mininote unboxing

I’ll be blogging more about this nice hardware as I explore it — hw specs, restore CDs, installing Ubuntu/Hardy and Fedora 9, and any little hints along the way.

Full Disclosure: While I do work for HP, it is not in any PC/notebook related area, although I do use Linux (RHEL4, OEL) on ProLiant servers on a daily basis. Also this a personal purchase for home use. I didn’t even get an employee discount!

How to connect a Samsung Flipshot U900 to Ubuntu/Linux

Thursday, April 3rd, 2008

First purchase a USB cable that works with the Samsung Flipshot U900 — I ordered one from 3GCables.com for $8.95 (and $6.95 s/h)

The default setting for the phone was to ask how it should present itself when connected via USB. The options are “Ask on Plug”, “Copy To/From Card”, “Sync Music” or “Modem”
Since I’m always going to use it like a usb-storage device, I changed it to always use “Copy To/From Card”.

  • 5. Settings & Tools
  • 8. USB Auto Detection
  • Change to “Copy From/To Card’.

Now you can copy files to /media/disk. My top level directory looks like this:


$ ls /media/disk/
my_files my_flix my_music my_pix my_sounds

USB to Serial Adapter for Ubuntu

Monday, June 18th, 2007

I recently received an updated laptop at work — a nice hp nc6400 notebook. Unlike the previous nc6000, this new on does not include a serial port which is problematic for the Garmin to serial cable I have. I ordered from CompUSA a USB to Serial Adapter by CablesToGo (model 26886) and it works great out of the box on Ubuntu/Feisty.

All I needed to change is the serial port to use, so:

gpsbabel -t -i garmin -f /dev/ttyS0 -o kml,points=0,line_color=ff0000ff -F waypoints.kml
gpsbabel -t -i garmin -f /dev/ttyS0 -o gpx -F waypoints.gpx

becomes:

gpsbabel -t -i garmin -f /dev/ttyUSB0 -o kml,points=0,line_color=ff0000ff -F waypoints.kml
gpsbabel -t -i garmin -f /dev/ttyUSB0 -o gpx -F waypoints.gpx

FWIW, it uses the pl2303 kernel module.

Convert audio from WMV files to MP3

Sunday, February 25th, 2007

A while back some radio station website or somewhere had a video in WMV of KT Tunstall performing Black Horse and the Cherry Tree and I wanted the music for a plane ride today.

Usually I’d use vsound, I’ve been able do save the audio track of a video in realplayer, but for some reason it wasn’t working for gxine.

Anthony Barker’s blog had the concise steps needed to use mplayer to grab the sound.


mplayer -dumpfile outfile.dat -dumpstream some-video.wmv

mplayer -vo null -vc null -ao pcm -ao pcm:file=audio.wav outfile.dat

lame audio.wav audio.mp3

rm outfile.dat