Tag Archives: linux

How to tether iphone on Ubuntu via USB

First you must have tethering enabled in the iPhone, either via your carrier, or via a 3rd party app such as MyWi.

Simply add the corresponding PPA repository, either via your prefered GUI or with the command:

sudo apt-add-repository ppa:pmcenery/ppa

The update your sources with your GUI or with:

sudo apt-get update

And the install ipheth-utils via Syaptic, or with the command:

sudo apt-get install ipheth-utils

Ready, next time you connect your iPhone, Ubuntu Lucid will automatically connect.

SocialTwist Tell-a-Friend

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

“#user_allow_other”

(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 :-)

iphones

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

http://www.mexlinux.com/how-to-sync-music-between-iphone-and-ubuntu-using-new-ifuse/

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.

Notes:
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

Install a Printer is easier in Linux than Windows

This is just another real case showing that Linux has become way much easier than Windows:

My daughter has a netbook with Windows XP, I have a Laptop with Ubuntu 9.10

We have a printer HP Deskjet 460 that we used today to print a drawing that my girl was making.

-In Windows XP, we plugged the printer, it detected some device asked for autodetection, I say yes, it did not found anything suitable…It asked to try via Windows Update, it found nothing, we choosed to specify model… It’s not listed…. we choosed similar models.. did’n worked…

My girl was irritated, so I said, OK let’s make a PDF email it to me and let’s try in Ubuntu:

-In Ubuntu I plugged the printer, it was deteced, installed, and we printed the drawing, just like that!

SocialTwist Tell-a-Friend

How to control maximus preferences in Ubuntu Netbook Remix

Ubuntu netbook remix includes maximus, which is an application that maximizes all the new windows and removes the decoration, this is is very good to make it easier to work with small screens, and even to save space in regular screens, the last is my case…

Well but sometimes maximus might annoy you because it maximizes all windows, even the ones that where designed to be small.

There is no maximus icon or preferences at first sight, but you can find it under the hood, via the gconf-editor:

So open the gconf-editor with the command:

gconf-editor

open /apps/maximus

Pantallazo-Editor de configuración - maximus

You will see some options, that can help you to select applications that you don’t want to get maximized, you can keep decoration, and you can stop automatic maximization…play with that.

SocialTwist Tell-a-Friend

How to view PNG images from iPhone

For some unknown reason the images in the iphone, stored as png files do not have a standard format and are not viewable by the general image viewers.

In order to be viewable by linux or windows, they need to be normalized, Axel E. Brzostowski has written a python script that normalize the files, making the readable by any imaging program.

Here is a zip file with the script: iPIN – iPhone PNG Images Normalizer v1.0 it sholud work on any system with python installed (I have personaly only tested in linux)

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

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