<p>I own a Nokia 6102i phone (provided by Cingular). <ahref="http://gnokii.org">gnokii</a> is a Linux program that lets me interface with the phone. Here are some recipes:</p>
<p>The easiest way to chop an MP3 in Linux is with <code>dd</code>; the drawback is that you need to specify length in KB, not time. To chop an MP3 to be 200 KB long, do:</p>
<p>To make a Phonebook.ldif file from the phone (suitable for import into Thunderbird):</p>
<p><code>gnokii --getphonebook ME 1 end --ldif > Phonebook.ldif</code></p>
<p>To add the entries in Phonebook.ldif to the phone:</p>
<p><code>cat Phonebook.ldif | gnokii --writephonebook -m ME --find-free --ldif</code></p>
<p>You can specify <code>--overwrite</code> instead of <code>--find-free</code> if you want to overwrite all the entries, but this will lose some data (e.g. speed dial, preferred numbers).</p>
These show up on the phone in <code>My Stuff/Images</code>. The files don’t need to be any specific size; they are autoscaled. GIFs probably also work.</p>
<p>Unfortunately, nothing I knew of in 2007 (when this page was first written) would play <code>.amr</code> files, but these days (2021) perhaps <code>ffmpeg input.amr output.mp3</code> would work. You might have to use the <code>-ar</code> flag to specify the audio rate. I haven’t actually tried this though!</p>