Posts Tagged ‘linux’

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

Building F-Spot from source on Ubuntu

Thursday, February 8th, 2007

The instructions How to Build F-Spot from HEAD are mostly correct for Ubuntu/Edgy and Ubuntu/Feisty, but leave out a number of packages that need to be installed before autogen.sh is run.

Be sure to also install the following packages:

sudo apt-get install mono-devel \
libglib2.0-dev libmono-dev libmono-system-runtime2.0-cil \
libexif-dev libgnomeui-dev liblcms1-dev libgphoto2-2-dev \
libusb-dev

And instead of make install, use make -k install since it will attempt to run scrollkeeper which attempts to update /var/lib/scrollkeeper/scrollkeeper_docs.

The offending line is: scrollkeeper-update -p /var/lib/scrollkeeper -o /home/marc/unstable/f-spot/share/omf/f-spot

Seven and a half terabyte of storage?!

Friday, January 12th, 2007


$ sudo sshfs marc@192.168.1.200:/home/marc -o allow_other /media/homeserver/home/marc
Password:
$ df -h /media/homeserver/home/marc/
Filesystem Size Used Avail Use% Mounted on
sshfs#marc@192.168.1.200:/home/marc
7.5T 0 7.5T 0% /media/homeserver/home/marc
$

Converting Creative MuVo WAV to a ‘real’ WAV

Tuesday, October 10th, 2006

I recently recorded an event using my little Creative MuVo TX FM mp3 player. It created a 22M WAV file of reasonable quality, but lame and audacity had problems converting it to an MP3 file.

The work around is to open the original wav file with audacity and then File->Export as WAV. The resulting wav file is about four times as large, but is in a usable format. From there use your favorite tools to create an OGG or MP3 file.

It appears the problem has to do with the way the MuVo encodes the wav:



VOC001-original.wav: RIFF (little-endian) data, WAVE audio, IMA ADPCM, mono 8000 Hz
VOC001-clean.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 8000 Hz

Logitech USB headset & Ubuntu/Linux

Wednesday, September 13th, 2006

My wife had an unused Logitech Stereo USB Headset 250 kicking around the house that I took into the office today. Joy of joys! Ubuntu/Dapper recognized it and both the headset *and* microphone work out of the box.

Just like Microsoft Windows ;-)

Some notes from GNHLUG on SELinux

Monday, July 24th, 2006

Last Thursday’s Greater New Hampshire Linux Users Group topic was “SELinux for Dummies” by Red Hat’s Dan Walsh. I took some notes but had to leave at 9pm and they were still going strong. See http://nozell.dyndns.org/wiki/index.php/SELinuxForDummies

Moving photos around behind f-spot’s back

Sunday, July 2nd, 2006

I’ve been using f-spot since it showed up in Ubuntu/Breezy and have been keeping all my photos in a directory structure like this:

/PHOTOS/Photos/2006.06.30/
/PHOTOS/Photos/2006.07.01/

But sometimes I’ve forgotten to unclick the “Copy file to the Photos folder” box in the photos import dialog and end up with photos under ~/Photos/. Recently I checked and found there were almost a gigabytes worth of photos under there.

So this is what I did to move them to under /PHOTOS/Photos/ and keep all the tags and metadata correct.

  • Back up /home and /PHOTOS to an external USB. I love rsnapshot.
    $ rsnapshot daily
  • make an extra backup of the f-spot database
    $ cp ~/.gnome2/f-spot/photos.db photos-backup.db
  • Start poking around the f-spot database and updating it.
    $ sqlite3 ~/.gnome2/f-spot/photos.db
    sqlite> .schema photos
    CREATE TABLE photos ( id INTEGER PRIMARY KEY NOT NULL,
    time INTEGER NOT NULL,
    directory_path STRING NOT NULL,
    name STRING NOT NULL,
    description TEXT NOT NULL,
    default_version_id INTEGER NOT NULL
    );
  • See how many photos are in ~/Photos…
    sqlite> select count(*) from photos where directory_path like '/home/marc/Photos/%';
    260
  • Take a look at a few of them to see the path names…
    sqlite> select directory_path from photos where directory_path like '/home/marc/Photos/%' limit 0,10;
  • Update the pathname to my prefered one. I’ve added an ‘a’ to the end just so I won’t overwrite an existing directory.
    sqlite> update photos set directory_path = "/PHOTOS/Photos/2006.06.22a" where directory_path = "/home/marc/Photos/2006/6/22";
    sqlite> .quit
  • Make the directory and move the files to the new location…
    mkdir /PHOTOS/Photos/2006.06.22a
    mv -v /home/marc/Photos/2006/6/22/HPIM117* /PHOTOS/Photos/2006.06.22a
  • Repeat for each directory. I did it all within emacs’ shell so cut-n-paste made it a snap.

Another list of Ubuntu essentials

Thursday, June 29th, 2006

Mark Pilgrim has compiled his list of Ubuntu essentials — time to add some KDE goodness to ‘My Ubuntu/Dapper Configuration‘ page…