Tag Archives: ubuntu

How to sync music between iPhone and ubuntu using new ifuse

iphone and ubuntu can be much more well integrated now.

If you used the previuose method described here some months ago, you must first remove those changes:

First remove the packages

sudo apt-get remove gvfs-backends ifuse libiphone-dev libplist0 libplist-dev libiphone0  libgpod4 libusbmux0 libusbmux-dev gtkpod

Now let’s remove the jonabeck PPA repo:

Either adding it as root to your /etc/apt/sources.list file

Or with the GUI “Software sources”

Now:  lets perform an update and upgrade:

sudo apt-get update && sudo apt-get upgrade

At this point it might be a good option to reboot the system.

New Mehod starts here

Let’s add a new PPA repository:

sudo add-apt-repository ppa:pmcenery/ppa

Let’s make a full update and upgrade:

sudo apt-get update && sudo apt-get dist-upgrade

Let’s install the new needed packages:

sudo apt-get install gvfs gvfs-backends gvfs-bin gvfs-fuse libgvfscommon0 ifuse libgpod-dev libgpod-common libimobiledevice-utils libimobiledevice0 libimobiledevice-dev python-libimobiledevice libplist++1 libplist-utils python-plist libusb-1.0-0 libusb-1.0-0-dev libusbmuxd1 usbmuxd

Now we have to add our own user to the fuse group:

sudo adduser $USER fuse

Let’s modify the fuse config file:

gksudo gedit /etc/fuse.conf

Uncoment the line that says


(uncoment means remove the “#”)

Ready: Now symply connect your iphone and it will be detected, you can see it in Rhythmbox and other media players.

Tip: iPhone should not be password protected when connected

You will notice that you have two iphone mounted devices, one as camera, and one as phone. Enjoy :-)


SocialTwist Tell-a-Friend

How to sync music between iphone and Ubuntu

This method is deprecated
Use This other method instead to sync iphone and ubuntu


OK, now is beginig to be possible to sync your music from Ubuntu to your iPhone, thanks to the work of marcan and many others.

Disclaimer: This is very Alfa software, I didn’t invented any of the things I’m writing about, I just adpated the marcan instructions in the way they worked for me, to my personal systems, wich I’m sure many are using: Ubuntu Karmic Koala 9.10 and iPhone 3G with OS 3.1.2, by the way you need to have some music synced by iTunes before you can start.
Don’t cry if your iPhone melts:

1- update your system, either via synaptic or with

sudo apt-get update

sudo apt-get upgrade

2- Add the PPA repository with the needed packages :

deb http://ppa.launchpad.net/jonabeck/ppa/ubuntu karmic main

Either adding it as root to your /etc/apt/sources.list file

Or with the GUI “Software sources”

Then add the key for the repo with this command:
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com F0876AC9

And update again with:

sudo apt-get update

3- Install the packages required for compilation, and the already packaged libraries:

sudo apt-get install git-core cmake autoconf libtool libglib2.0-dev intltool gtk-doc-tools libsqlite3-dev libxml2-dev  libiphone-dev libplist1 libusb-1.0-0 libusb-1.0-0-dev libusbmux0 libusbmux-dev ifuse libiphone0 libplist0 libplist-dev

4-Get the libgpod code and compile it:

$ git clone git://gtkpod.git.sourceforge.net/gitroot/gtkpod/libgpod
$ cd libgpod
$ CFLAGS=”-g -O0″ sh autogen.sh –prefix=/usr
$ make
$ sudo make install

5-Create a folder to mount it, and mount it:

sudo mkdir /media/ipod

**connect your iPhone**

sudo ifuse /media/ipod

6-Create the needed directory and files:

cd /media/ipod/iTunes_Control
mkdir Device

Find your UUID with

lsusb -v | grep -i iSerial

grab your UUID wich is the 40 characters long text
and run the following command replaceing with yours:

ipod-read-sysinfo-extended /media/ipod

This has generated a needed file into the Device folder.

7-Thats it. Now you can open the gtkpod application and sync your iPhone.

In order tu unmount your iphone first dissconect it via gtkpod and the you can use

sudo umount /media/ipod

And to mount it again just

sudo ifuse /media/ipod

SocialTwist Tell-a-Friend

Copying an audio CD in ubuntu

Today I needed to make a copy of a CD in ubuntu, and I came across a problem:

My laptop has one drive only, so the normal procedure in brassero, is to get a temporal Image file of the CD, then switch CD ‘s and burn the Image into the CD, but everytime I inserted the virgin CD,  the operation was aborted, and brassero was reporting that the device was busy…. nothing else.

Tired of trying, I installed k3b, same procedure, but k3b was cleaver enought to tell me that the application using the device was gvfsd-cdd. And it was even cleaver enought to tell me that k3b can kill that process for me, if I want to.

I said, yes, kill the process, and the burning process started and was perfect.

So the tip is:

If you have that  device busy problem in brassero, just kill that gvfsd-cdd process, or switch to k3b.

For the curios, gvfsd-cdd is controlling the location of an audio CD in the gnome virtual file system daemon, and since the Audio CD is no longer in the device… seems like is safe to kill it.

SocialTwist Tell-a-Friend

How to access linux desktop from iphone

There are several ways to access linux remotely.

  • Access a console (no graphics) via ssh, with a client on AppStore or Cydia (is possible to use iSSH to get an X connection, I found it very slow and unreliable yet)
  • Access a desktop via VNC (very slow)
  • Access via an NX client (none available for the iPhone yet)
  • Access via RDP

The best way would be an NX client, but there is none yet, so the easiest and fastest way to do it is via the Microsoft protocol RDP, what we need is:

1-An RDP server in linux: install xrdp (use this link to install in ubuntu).

2-An RDP client on the iPhone: I have tried many that work: Mocha RDP lite, Mocha RDP, iRdesktop, WinAdmin, and one that does not work: Jaadu RDP, it’s a shame because I can tell that is the best RDP client for iPhone (it works for windows servers, but I have not been able to make it connect to linux xrdp)

3-If you want to access over the internet behind a firewall, you would need to open a port 3389 in your router’s firewall and get the current valid IP address. You can even get a free service from dyndns or no-ip in order to get a subdomain that will always point to your machine, no matter where it is.

SocialTwist Tell-a-Friend

How to install xrdp in ubuntu

xrdp is an open source remote desktop protocol(rdp) server, so it’s able to serve a desktop to any Microsoft terminal server client. (that includes any recent Windows, Linux via rdesktop, or many portable devices with RDP clients.

But, the default installation of xrdp in ubuntu has some glitches that need to be solved. So this is what’s needed:

I’ll be using ubuntu 9.04 (jaunty jackalpe)

1-Since xrdp requires a vnc server, one is automatically installed with xrdp, BUT the only working one is tightvnc (if you have already installed vnc4server, remove it) so you MUST install tightvnc first, either using synaptic or the following command:

sudo apt-get install tightvncserver

2-Now Install the xrdp server via synaptic or with

sudo apt-get install xrdp

Now in order to get the proper keyboard map and theme in GNOME, you need to make a modification:

3-Open gconf-editor either by typing that in a console, or in the Alt+F2 window.

4-Inside gconf-editor, navigate to /apps/gnome_settings_daemon/plugins/keyboard and set “active” to false.

That’s it. your Remote Desktop sever should be up and running.

SocialTwist Tell-a-Friend

Ubuntu GNU/Linux: my Operating System of choice

The combination of the linux kernel and the GNU project tools, plus many other things produce a great operating system, which is commonly refer to as LINUX.

There is no single corporation governing Linux,  all this is based on Free Software (Free as in Freedom), there are many projects with thousand of volunteers and companies involved in the development of the Free Software, there are also many corporates developing software for linux some of the free and open source, other proprietary components.

Using linux is like playing lego, the whole is clearly an assemble of many different pieces. You can switch the pieces, interchange positions, colors, get a different shape, and make a different article based on the same pieces. That’s why there are several Distributions (Operating Systems) based on GNU and Linux.

The first time I try Linux, it was back in late 90’s with Caldera Open Linux, I tried that distributiun because it was recommended for begginers. I remember using  the KDE  1.1.2 desktop and facing an old problem: Win modems, software based modems based on proprietary drivers and not functional in Linux. I remember this everything when I found hardware that is not compatible with Linux like our office printer DELL MFP 1125 printer.

This win modem issue keep me away from using Linux seriously for a couple of years.

A big quantity of the Windows licences in Mexico were (and I guess still are) installed on many PC’s. It was in 2002 when the mexican agency IMPI (Mexican Institute for the Intellectual Property) visited our company looking for the validity of the Microsoft, Adobe, Symantec and some other brands licences. The deal was simple, they made an inventory of the installed software, then after a couple of days you have to provide the proof of purchase of the licenses.  The general idea was more simple: you don’t have it, go buy it, we wait for you.

My GNOME Ubuntu 9.04 Desktop
My GNOME Ubuntu 9.04 Desktop

It was at that moment when I decided that I was not going to give any money to any of those companies, for using bad software that keep me annoyed, it was clear for me: I’m fully switching to LINUX.

It was then when I switched to Mandrake Linux 9.0, at that time a very easy to use distribution know known as Mandriva. And I keep on using it until I got a Laptop. Then I face a new problem suspending and hibernation was an issue with Mandrake Linux and my new DELL laptop.

I did some research and found a distribution that solved my problem: UBUNTU 5.10 since then I’ve been using it.

At first I did not liked the GNOME desktop, which is the default in Ubuntu, then I switched to my preferred desktop KDE, via the Kubuntu derivative. After around a year using it but not happy with the KDE implementation into Ubuntu I realized what many people were, and still say: KDE is a second class citizen in Ubuntu, and in order get the best from the distro, I dumped kubuntu and switched to plain ubuntu.

Since then I have always keept an eye on KDE, and in order to get it back I tried other distros like Open SuSE, Gentoo and Archlinux, but the very good integration of Ubuntu and the fabulous APT packaging system and conflict resolution keep me on Ubuntu GNOME.

GNOME has improved a lot, and I’m very happy with it now… But i still keep an eye on KDE  4.

SocialTwist Tell-a-Friend