Analysis, tutorials and tips for your Nokia and Samsung Phones

A survival guide to Linux and S60

Published by Steve Litchfield at 8:22 UTC, October 20th 2009

Guest writer David Gilson talks about his switch from Windows to Linux and his (successful) struggles to keep his desktop-S60 connectivity going.

Earlier this year I switched from using Windows XP to Ubuntu, a choice I'm very happy with. One thing that caused me some concern in the early days was how would I support my phone without Windows? In short, the answer turned out to be no trouble at all!

I am not looking to convert you or evangelise one operating system over another, you must use what works best for you. Although, if you're reading this, then I'm assuming you've given Linux more than a passing thought. When you're dealing with the systems and gadgets that your daily life revolves around, it can be somewhat nerve-racking to cast off into the unknown. Which is where this article comes in; I'd like to share my experiences0, so that you feel more informed on how to deal with using your phone along side a Linux computer.

Note 0: Everything in this article is based on my own tests with Ubuntu 9.04 and two S60 phones, an E51 and an E55.

Surprisingly, I've had a much more pleasant time working with my S60 phones in Ubuntu than I did in Windows. To get all of the Nokia features set up in Windows, you have to install four (or five if you include .net) applications: PC Suite (soon to be known as Ovi Suite), Firmware UpdaterMaps Updater and Maps Loader. Once they are installed, you have to wait for them to load up before you can do anything with them. Whereas in Ubuntu, everything you need is already part of the operating system. There's nothing to install and nothing to wait for.

Let's go through the most common usage scenarios for when you plug your phone into your computer.

 

Synchronise Contacts, Calendar and other PIM data.

Linux and S60

In Windows, PC Suite will synchronise your personal information manager (PIM) data between your phone and Microsoft Outlook (or Lotus Notes). If you happen to use any other desktop organiser, you're out of luck. Therefore, my answer for dealing with PIM sync in Linux is the same for using Windows without Outlook -- Switch to cloud computing!

This may sound like a cop out, but with how the Internet and mobile devices have developed, keeping your personal organiser online is the most versatile way to handle your data -- It is a platform agnostic solution. My only caveat for this is to make sure you use a service that makes it is easy to download a backup of your data. It is for this reason I would hesitate to recommend the Ovi services. It is very easy to sync your phone with Ovi, but it is seemingly impossible to get a copy of your data from their servers.

As far as your S60 phone is concerned, all you need is a service which supports SyncML, the protocol used by the Sync application in all S60 phones. The PIM sites I know of which support this are: MemotooScheduleworldMobical, and Ovi 1. My personal recommendation goes to Memotoo because of the comprehensive format support and ease of downloading backups. Scheduleworld comes a close second.

You can still utilise these services even if you prefer working in a desktop application. Ubuntu comes pre-installed with Evolution, an open source alternative to Microsoft Outlook,  you just need to add the SyncML plug-in. Also, Mozilla Sunbird can work with your online calendars, and there are plug-ins for Mozilla Thunderbird to access your on-line address books.

Note 1: I omitted talking about Google, because whether you use Windows or Linux, there isn't a clear route for syncing your phone with Google. You either sync with Microsoft Outlook, which in turn needs a plug-in, or you need to install GooSync on your phone to sync properly with Google. I know Google are providing better support for S60 phones, but in my opinion what they provide is not yet ready for prime time.

Editor's addendum: In addition, yes, Google's own SyncML server is still online, but it's not officially supported
  

File transfer and backups.

Nokia PC Suite has separate applets for transferring images, videos and accessing general files. If you set your phone's USB mode to "Mass Storage", then Ubuntu sees your memory card (alas, not the internal memory 2) as a removable drive and you can drag and drop all the files you want. You can even automate things, if you dare to use just one command line program called rsync, and this is the only challenging thing I ask of you in this article 3. For the pain of mastering one command line program, you can make a script that will synchronise the files on your phone's memory card. You can even create the equivalent of a quick launch icon for your script. Then, all the point and click work you would do in PC Suite can by achieved by just a single click on your Linux desktop.

Note 2: It is still possible to browse both the internal memory and memory card via Bluetooth. By default, you can only browse files with Ubuntu's file manager over Bluetooth, but if you want to address files on a Bluetooth device in a script, follow these instructions.

Icon

Your mobile showing up as a Bluetooth device.

Note 3: If you are not yet confident enough to try using the Linux command line, there is a graphical version of rsync, called grsync. Although I would encourage you to learn the command line version so that you have an understanding of all the options presented in grysnc.


PC Suite can import photos from your phone and organise them for you. Although, all that organisation is somewhat wasted when you consider that you probably want to integrate your phone's photos into your general photo archive (if you're reading this, I'm assuming you are that organised). In contrast, Ubuntu comes pre-installed with a photo organiser called F-Spot which will import photos from anywhere and file them into a central library (as will Google Picassa). It will also upload your photos to Flickr or whatever other photo sharing site you use. Furthermore, F-Spot embeds tags into your image files. In my experience of the Nokia E55, while you can tag photos, they aren't stored in the image files, and are therefore lost when the files leave the phone.

Screenshot

Importing your phone's photos with F-Spot.


PC Suite will convert videos for you too. This is doable in Linux, but I prefer to buy CorePlayer for my phones, which can play a huge range of video formats. This way, I'm not having to wait around for my computer to convert videos for me, regardless of the operating system.

The other advantage of using rsync to sync your memory card with your computer is that you have a running backup of your memory card in the event of failure or corruption. Again, for the pain of learning one command line program 4, you have a far more streamlined and reliable method of automatically exchanging files between your computer and your phone. What's more, backing up your phone in this way is fast, limited only by the memory card itself, unlike using PC Suite in Windows.

Note 4: If you need advice with how to write an rsync script for your phone, I'll be happy to help in the forum and comment thread.

 

Transfering Music & Podcasts

In Windows, unless you use the Nokia music store, you'll be using PC Suite to drag and drop your music files, just as you would in Ubuntu. However, Ubuntu's library-based audio player, Rhythmbox, sees your Nokia phone as portable music device. Therefore, you can drag and drop music to your phone from your music library instead, just as if it were an iPod.

Screen

Ubuntu detecting your phone as music device.

If you have a large enough memory card, you could just include your whole music collection with your rsync script. Then, without any extra thought on your part, your new music would always be synchronised to your phone.

Which brings me to podcasts, you can either download directly to your phone via the Nokia Podcasting application, or you can download your podcasts to your desktop. Again, using rsync to share them with your phone; I do the latter. My recommended podcatching application is Miro; it is an excellent podcast manager for the desktop, in any operating system.

 

Connecting to the Internet via your phone

You may think that this is one area in which PC Suite would trump Linux, but no! I discovered that when I set my E55's USB mode to "PC Suite", Ubuntu would detect it as a 3G modem. In addition, if you are out and about with your laptop and have forgotten your USB cable, there is always Joikuspot, which will turn your phone into a 3G WiFi router. Also, future versions of Ubuntu will have support for Bluetooth 3G-tethering too.

X
 

 

Updating Maps & Firmware

These are two areas where not having Windows could sometimes be a problem. There's no way to update your phone's firmware without the proper Windows-only software. Although more recent phones, like the 3rd Edition Feature Pack 2 phones, can update their firmware over the air, removing the need for a desktop computer.

 

Maps is another debatable issue, as it can download maps on the fly, so using the Nokia Map Loader simply saves you time and data from your mobile contract. Alternatively, I'd simply suggest viewing the area you'll need to have maps for before you leave home via your home WiFi. Due to logic that escapes me, Nokia don't always release updates for their Maps application as a .sis file, instead you sometimes have to update it via their Windows-only utility.

 

Therefore, there is a last resort solution if you have a Windows OEM disk 5. Using VirtualBox, you can create a Windows virtual machine (VM) on your Linux desktop, at which point you have access to all the Nokia applications. Of course, you probably already have Windows, and the Ubuntu Live CD installer makes it easy to set up your computer to dual boot both.

 

 

VM

Windows XP running as a virtual machine in Ubuntu.

 

Note 5: You cannot install windows with your "recovery disk", it must be an OEM disc.

 

Conclusion

If you have been thinking of moving to Linux, I hope you now see that there's nothing to fear when it comes to supporting your phone. I'd love to hear of experiences from anyone else who has ventured into Linux with their S60 phone, or are now going to after reading this.


David R. Gilson 20th October 2009, guest writer on All About Symbian
You can find me on twitter, @davidgilson and at my blog.

 

Categories: How To
Platforms: General, S60 3rd Edition, S60 5th Edition

Feature Discussion

Ammar_Dento
Great article. It will help when we use the N900 too. But i have to ask about:

1. What about Web Bookmarks? Does the Linux version of Mozilla Firefox sync with the S60?

2. About the photos,correct me if am wrong: when you sync your E55 with Ovi Photos application (on Windows) and Photos application (on E55) you dont lose your tags. It sync too.

3. Can you receive calls or SMS in Linux when the device is connected to the Computer?

Regards
timsalmon
Wow - that's all really interesting David - you've worked hard to find a comprehensive set of apps to workaround just about any problem that'll throw itself up from this kind of radical change. (On the day that my Windows 7 pack arrives!!) Not sure if I'm brave enough to move away from tried and trusted methods personally, but it'd be great to get hold of a (cheap as chips) Linux netbook and try all this stuff out. Nice article.

Tim
Unregistered
Hello,

nice article. Iīve made the transition a couple of years ago and i am still very happy. Especially as i sat in train last week and discovered that via some simple commands (i am sorry here, yes you have to use the terminal) you can set up your phone as an bluetooth modem to access the internet via 3g. Here is how it is done:

- First you have to couple your pc with your phone. This is Done via the Bluetooth Applet on your Ubuntu Desktop.
- Now open up an terminal and search for the address of your bluetooth device (if you not have it already). XX:XX...... is your Address
loki@my-desktop:~$ hcitool scan
Scanning ...
XX:XX:XX:XX:XX:XX MyPhone

- We need the channel to use for our dial-up connection. We find it like this:
sdptool browse XX:XX:XX:XX:XX:XX
...
Profile Descriptor List:
"Imaging" (0x111a)
Version: 0x0100

Service Name: Dial-Up Networking <---- bluetooth service Dial Up Networking!
Service RecHandle: 0x10007
Service Class ID List:
"Dialup Networking" (0x1103)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 3 <---- channel 3!
...

- We use our Device address (XX:XX......) and the channel we found to set up a rfcomm modem now.
sudo rfcomm connect /dev/rfcomm0 XX:XX:XX:XX:XX:XX 3

And thats it. Your ready to go. So you donīt have to wait for the next ubuntu releases :) After you have done steps 1 to 3 for the first time all you need is step 4. Put it inside an script and all you have to do is run it every time you want to connect to the internet. Configuring your provider works neatless with the networkmananger applet you use anyway because your phone is now detected as a generic 3g modem, just like youīve connected it via usb.

Have fun, i do
Unregistered
i use blueman instead of default bt stack in ubuntu and tethering has become really simple

no comand line for setting up, dialing , disconnecting at all

http://blueman-project.org/
jarijari
Thanks for a good article with new insights!

Apparently you have not tested using Windows with VirtualBox. If you had, you would know that it doesn't work. VirtualBox seems to have problems with USB ports. The Nokia programs do not recognize Nokia devices connected on USB ports linked to VirtualBox. BTW, I have the same issue with Garmin devices, too.

Cheers,
Jari
Unregistered
Have you used VirtualBox OSE Edition (wich is the standard in the ubuntu repository) or the Virtual Box dev package direct from sun? The OSE Edition dosnīt support USB connections for virtual machines. That is due to licensing issues. This is mentioned in the readme if i remember correct. But the deb version is also free to download. Have a look:

http://www.virtualbox.org/wiki/Downloads

have fun


jarijari
Thanks for a good article with new insights!

Apparently you have not tested using Windows with VirtualBox. If you had, you would know that it doesn't work. VirtualBox seems to have problems with USB ports. The Nokia programs do not recognize Nokia devices connected on USB ports linked to VirtualBox. BTW, I have the same issue with Garmin devices, too.

Cheers,
Jari
Unregistered
No need to use command line Blueman is good, I think next Koala release which is due in 8 days, they have improved default bluetooth to handle A2DP audio, Dial-up out of box.
Evolution sync via Multisync remains tricky, doesnt work well .
hammerv2
I've been seeing a LOT of ubuntu articles recently on non-linux sites.
Seems like it's finally gaining a bit of traction.
Unregistered
Linux is nice and all (I know cause I use it), but it overly complex. Just look at your own article. On my Windows box I only have PC Suite and Outlook to get everything I need. I do my update via FOTA and my map downloads through direct download.

As for the 'cloud, sorry but I will trust all my data on my own PC which I can control. The Danger debacle only proves just how much I am wary about so-called 'Cloud' computing, which is just a fancy trendy word for offside servers.
Dead1nside
I use OpenSync to back-up calendar entries. It's really easy once you've set it up and there is a GUI called multisync-gui.

Most things can be achieved on the Linux desktop exclusively apart from where a Windows-only application is required.

Good write up.
davidgilson
Hello everyone,
I've just seen all the comments!
I'm going to reply to everything that needs a reply, one post at a time, and I'll do as many as I have time for now. So if I don't reply to you just now, I'll catch up later today!
davidgilson
Quote:
Originally Posted by Ammar_Dento View Post
Great article. It will help when we use the N900 too. But i have to ask about:
Thank you :)

Quote:
Originally Posted by Ammar_Dento View Post
1. What about Web Bookmarks? Does the Linux version of Mozilla Firefox sync with the S60?
I can't sync my bookmarks with Firefox. There are two ways to go with this though:

First - Opera Mini & Desktop sync (via the internet), so you could switch to that. I don't for two reasons. A. I think there's a lot of privacy issues with Opera. B. I find that I want to bookmarks different things on my desktop to what I bookmark on my phone.

Second - For backup's, I backup my internal memory to my memory card. So if I have to hard reset my phone, I can just restore from the memory card.

Now, say I find an interesting link on Twitter while on my phone, I'll bookmark it to S60 Web. Then, from Web bookmark page, I will tick all the bookmarks I'm interested in and use the Send option to email them to myself. Then they're there waiting for me when I get back to the laptop.

Quote:
Originally Posted by Ammar_Dento View Post
2. About the photos,correct me if am wrong: when you sync your E55 with Ovi Photos application (on Windows) and Photos application (on E55) you dont lose your tags. It sync too.
That's right, the tags go with them. Although, the tags aren't held in the files, they're stored as separate meta-data. Which means, if you want to keep all that meta-data aligned with your photos, you're stuck in the Ovi framework.

This is analogous to having a music library set up on your computer, but without having any ID3 tags in your MP3 files.

So, I prefer to use F-Spot to embed all the data I want to store about an image inside each image's EXIF tag. That way, I am never stuck with using a particular photo managing system. (Which is important with F-Spot seeing as there isn't a Windows version of it.)

Quote:
Originally Posted by Ammar_Dento View Post
3. Can you receive calls or SMS in Linux when the device is connected to the Computer?
If you mean is there a Linux program to send SMS through the phone, then I'd have to say no, I haven't heard of one. However, on the phone itself, I have sent and received SMS while plugged in. Calls is something I haven't tested.

Quote:
Originally Posted by Ammar_Dento View Post
Regards
Cya :)
davidgilson
Quote:
Originally Posted by Unregistered View Post
Hello,

nice article. Iīve made the transition a couple of years ago and i am still very happy. Especially as i sat in train last week and discovered that via some simple commands (i am sorry here, yes you have to use the terminal) you can set up your phone as an bluetooth modem to access the internet via 3g. Here is how it is done:...
Hi, I found the same instructions on the web (they're linked in the article). I hadn't tried it before, but tested it especially for this article. It works, although I wouldn't use that method for backing up the internet memory, as Bluetooth file browsing is a bit slow. Although if you absolutely have to do it, it's great that it's possible.
davidgilson
Quote:
Originally Posted by Unregistered View Post
i use blueman instead of default bt stack in ubuntu and tethering has become really simple

no comand line for setting up, dialing , disconnecting at all

http://blueman-project.org/
That's something I didn't know about!
Thank you :)
davidgilson
Quote:
Originally Posted by jarijari View Post
Thanks for a good article with new insights!

Apparently you have not tested using Windows with VirtualBox. If you had, you would know that it doesn't work. VirtualBox seems to have problems with USB ports. The Nokia programs do not recognize Nokia devices connected on USB ports linked to VirtualBox. BTW, I have the same issue with Garmin devices, too.

Cheers,
Jari
Hi Jari,
I did test it, honestly :) Like the unregistered poster said, perhaps you were trying the Open Source Edition (OSE) ? I fell into that trap at first.

I initially installed VirtualBox via the Ubuntu repositories, and found that I couldn't set up any USB filters. A little more research on my part showed that there is a version of VirtualBox with closed source drivers (inc. USB), which you could download as a .deb installer from their website.

After doing this I didn't have any problem. Here is a list of the tests I successfully performed with PC Suite et al via VirtualBox:
  • File Transfer
  • Reading Contacts & Calendar
  • Reading SMS
  • Sending SMS
  • Updating the Maps app
  • Installing Maps
  • Backing up Internal memory
  • Using Firmware updater to read my firmware version

I haven't tried doing a full firmware flash, because I didn't need to update anything. The only thing that I tried unsuccessfully was restoring my internal memory from a backup. Given the amount of things that did work, I find it hard to believe that restoring the internal memory was a USB via VM issue.
davidgilson
Quote:
Originally Posted by Unregistered View Post
Linux is nice and all (I know cause I use it), but it overly complex. Just look at your own article. On my Windows box I only have PC Suite and Outlook to get everything I need. I do my update via FOTA and my map downloads through direct download.

As for the 'cloud, sorry but I will trust all my data on my own PC which I can control. The Danger debacle only proves just how much I am wary about so-called 'Cloud' computing, which is just a fancy trendy word for offside servers.
Hi there :)

I disagree on the complexity. I honestly find the Windows way of doing things to be tiresome and overly involved.

With Linux, I write an rsync script one time (which is the only technical thing you need to do), and the rest of the time I have a one-click solution to updating files between my phone and my computer. So, on a daily basis, I find the Linux way of doing things a lot simpler and less stressful than the Windows way.

As for FOTA and Maps, you and I do them the same way :)

I understand your concern with cloud computing, and in a blog post I have coming up the week after next, I actually say "If you only have your data in the cloud, then you don't have your data". This is why I said in my article that you should only use Cloud Services that allow you to easily back up your data. Then, if you do that, you have the best of both worlds. You have the versatility of the cloud, and the redundancy of an off-line copy.

As for the Danger debacle, this is why I prefer the S60 way of not being always connected. S60 phones have their own off-line copy, you choose when to sync.

If you only have your PIM data on your desktop, you're at just as much risk, because your hard drive can fail, or you can suffer from vendor lock-in through file formats.
davidgilson
Quote:
Originally Posted by Dead1nside View Post
I use OpenSync to back-up calendar entries. It's really easy once you've set it up and there is a GUI called multisync-gui.

Most things can be achieved on the Linux desktop exclusively apart from where a Windows-only application is required.

Good write up.
Thanks for that.
I did come across OpenSync in my research, but didn't have time to explore it fully, So I'm glad to see someone else mention it now.
andyspiers
Map data can be downloaded direct a country at a time using the links on this site: http://nokiamaps.site666.info/

Much easier than using the application, and possible to do it on the move (directly from phone)
cyc
Hi there,

I've been using SuSE Linux since the SuSE 6.4. around 6 years ago. I think I could say one of the biggest problem to have is Nokia support for Linux.

1. I'm really excited about ovi suite, since it's build on the Qt, which mean linux support will be native.
2. Yes, the map... I really hate nokia map or ovi map. They should make us to be able to download map directly from handphone without computer. for example. if I went to hongkong, and somehow got a free wifi and want to download map of hongkong. It's ridicules if I need computer to do that. even if I'm at home, it's still be better for ovi map, if I can download map directly from phone.
3. ovi files. I'm really excited to backup my data over ovi files internet cloud.... unfortunately it requires me to have windows.... why on earth did nokia did that? nokia should make phone user can do everything without the need of computer.... let say it's the generation AA stuff (generation after generation 'Z')... phone replacing computer generation. no need computer
davidgilson
Quote:
Originally Posted by andyspiers View Post
Map data can be downloaded direct a country at a time using the links on this site: http://nokiamaps.site666.info/

Much easier than using the application, and possible to do it on the move (directly from phone)
That's a brilliant tip, thanks for adding it :)
technoboi
I set up sync for Calendar and Contacts via the SyncML-GUI.
It works very well, a couple of clicks and its synching. There are guides on the Net on exactly how to do this.
If I want to send some info. to my phone all I do is create a text file (e.g. with the shopping list or part numbers for Maplin etc.), right click and select 'Send to'. Up comes Obex-Push, one click and my N95 asks if I want to receive the file. It comes up as an SMS.

I once spent many hours trying to get a bluetooth dongle working in Windows XP. I had little success. In Ubuntu Jaunty I plugged in the same dongle and it worked perfectly, instantly! No messing with bluetooth stacks and all altering lots of settings as I had to do in Windows - just instant operation.
So many people fear the unfamiliar or, as I have found in several recent conversations, don't even realise that there is an alternative to Windows. I am just soooooo glad I have left Windows behind.
pintofale
Thanks David, very interesting and very useful. I'm not sure I understand your comment about video conversion - I don't believe coreplayer will play a 640x480 avi at any kind of useful bitrate, so re-coding is pretty esential- I normally use ffmpeg with linux to convert to 800x352 mp4/aac for my E90. It doesn't seem to have the audio-video sync problems that many Windows apps have.
sicofante
Not trying to burst everyone's bubble, but as I see it, this article only shows that if you want a good experience with your Symbian phone, don't use Ubuntu.

I'm writing this from an Ubuntu laptop and I'd love Nokia to provide some tools for us Linux users, but let's not fool ourselves: as of today using an S60 phone with Linux is a nightmare, and the article only proves it.
davidgilson
Quote:
Originally Posted by sicofante View Post
Not trying to burst everyone's bubble, but as I see it, this article only shows that if you want a good experience with your Symbian phone, don't use Ubuntu.

I'm writing this from an Ubuntu laptop and I'd love Nokia to provide some tools for us Linux users, but let's not fool ourselves: as of today using an S60 phone with Linux is a nightmare, and the article only proves it.
Would you be a little more specific?

I can honestly say that after having perfected my S60 set up, I honestly don't want to go back to using Windows. Compared to what I do now, PC Suite just seems cumbersome to me.
davidgilson
Quote:
Originally Posted by pintofale View Post
Thanks David, very interesting and very useful. I'm not sure I understand your comment about video conversion - I don't believe coreplayer will play a 640x480 avi at any kind of useful bitrate, so re-coding is pretty esential- I normally use ffmpeg with linux to convert to 800x352 mp4/aac for my E90. It doesn't seem to have the audio-video sync problems that many Windows apps have.
Hi there,
CorePlayer will play any avi encapsulated video up to 1008 pixels wide. The frame rate depends on your phone.

With my E51, things were generally okay, but there'd be an occasional stutter, and the video and audio were usually slightly out of sync. However, with my E55, I don't get any of that, and it will play any video I throw at it with ease.

38 Comments / Post New Comment

Copyright Notes || Contact Us || Privacy Policy (Ellie)