July 17, 2008

Using Ekiga softphone on Ubuntu Linux on a Thinkpad

Posted in Misc, Software at 00:19 by Graham King

For many months now I have been making and receiving telephone calls from my computer. There are two advantages:

  • It is very cheap. Calls within the United States are about $1/hour!
  • It makes your phone number virtual, and configurable, which means for example that my phone number will forward to my cell phone if my computer is offline. It also means you don’t have to be in the same country as your phone number.

I am running Ubuntu Linux on a Thinkpad, but most of this should apply to Ekiga on all platforms, and the principles apply to all Softphones.

First, you’ll need a headset with a microphone. The Thinkpad’s built in microphone isn’t loud enough, and will generate too much feedback from the speakers. I bought the Logitech Precision PC Gaming Headset which I’m happy with.

Next, you need to install Ekiga which on Ubuntu is as simple as sudo apt-get install ekiga.

Then you need to adjust your sound settings:

  • sudo alsamixer
  • Drop the ‘Mic’ to 0
  • Move the ‘Mic Boost’ to max
  • Exit alsamixer by pressing Esc
  • Go to System / Preferences / Sound and change everything to use ‘ALSA’. This makes all programs share your soundcard, so you can hear the phone ring when playing music with Rythmbox.

Start Ekiga. It will prompt you to sign up for a SIP address (which looks like an e-mail address) at Ekiga.net. That is the address people can ring you on, if they are on a SIP phone too. You’re all set to make PC to PC calls. Dial one of the Ekiga fun numbers and talk to yourself.

You probably want to be able to dial out to the regular phone network. Follow the instructions on Using Ekiga to do PC to Phone calls. I signed up with diamondcard.us, the default provider, and the service is good. Don’t be put off by their ugly website. Once you sign up they call you to check you are a real person. In my case this was about 24 hours after I signed up. You’re all set. Remember to dial the full international number (starting with 00 then the country code), and you’re talking!

If you want to receive calls, you need to rent a telephone number. This is fun, because you can rent a number from anywhere in the world, and have it terminate at your computer (or your mobile, landline, anywhere). I am paying $3/month for a US number. On diamondcard (or whoever you are renting the number from) setup that number to ring on your SIP phone first (called IP Phone on diamondcard), then forward to your mobile. Increase the length of time it rings on your SIP phone, so you have time to mute your speakers, plugin your headset, locate the Ekiga window, and click ‘Accept’. I set it to 30 seconds.

I tweaked the default Ekiga sounds to make the ringing more pronounced, and the disconnect sound shorter. Fire up Audacity and open /usr/share/sounds/ekiga/ring.wav. Trim each end and increase the volume. Save it. Open /usr/share/sounds/ekiga/busytone.wav and trim it to one beep. This sound is played at the end of each call.

There you have it, a great telephony setup!

Finally, here’s a couple of tips:

  • Dialing toll-free numbers. If you are in the United States, when you dial a toll free 1-800 number, that number will think you are abroad, so you will be charged normal rates ($0.017/min). Instead of dialing via diamondcard (or whoever), dial using a SIP gateway, by prefixing your number with *850, for example*85018001231234`. More SIP gateway details at Ekiga fun numbers.
  • Dealing with the delay: There is a slight delay on the line. Closing any programs you have that might be using bandwidth improves the delay. Warn your conversational partners about the delay, and ask them to ignore it. Relax, and let them finish their ideas before you speak. Leave slightly longer gaps between when they finish speaking and you start. If you do start speaking, keep speaking even if you hear them. They probably started before they heard you and will stop as soon as they realise.

    Happy chatting!

February 12, 2008

Wine grapes from least to most tannins

Posted in Misc at 01:40 by Graham King

Gamay, pinot noir, sangiovese, tempranillo, zinfandel, syrah, merlot, cabernet sauvignon, nebbiolo.

Please note that this is a general indication – the origin of the wine and process used (such as aging) may change the order of this list. See Somm’s comment below.

December 27, 2007

Migrate from Gallery 2 to Flickr

Posted in Misc at 02:04 by Graham King

I have recently moved all my photos from a Gallery 2 instance I ran myself, to Flickr. This means I don’t need to keep my Gallery2 install up to date, it frees up lots of disk space on my server, and allows me to more easily share pictures with friends and family. Here’s how I did it:

This plugin sends a Gallery2 gallery to Flickr, preserving all the titles and descriptions, setting the permissions your specify, creating a set with the same title and description as your Gallery2 set, and tagging all the photos with your Gallery2 tags plus ‘gallery2flickr’. The only problem is that it only includes your first photo in the set. That’s easy to fix.

For each gallery in Gallery2 you want to export:

  • Select ‘Export to Flickr’ in the menu on the left. If it doesn’t appear you haven’t setup the plugin correctly.
  • Whilst it uploads, go to your Flickr stream and rotate any portrait mode photos that don’t come in the right orientation.
  • Once the upload has completed, go to Flickr, in the Organize menu select ‘Your sets and collections’.
  • Enter the set in Flickr by double-clicking it.
  • At the bottom, expand ‘More options’, select ‘Tags only’, and search for ‘gallery2flickr’. The number of results should match the number of items in your Gallery2 gallery. If not wait 30 seconds for Flickr to process your pictures and search again.
  • Select all those pictures and drag them into your set. It should say that they were all added except the one that was already there.
  • In the Arrange menu, select ‘By date uploaded (oldest first)’. Save.
  • In your main Flickr page select ‘tags’, then the ‘gallery2flickr’ tag. Rename that tag to something meaningful for your set.
  • Wait until that job has processed. When a search of your pictures turns up no more pictures with the tag ‘gallery2flickr’, you are ready to uploaded the next gallery.

    Note that I used gallery2flickr-0.9.0 dated June 27, 2007. Other versions may vary. Always test your export on a gallery you don’t care too much about just in case.

    Thanks Gunnar Wrobel for the great plugin.

« Previous entries