LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Use Iphone/Ipod with Slack like in Ubuntu? (https://www.linuxquestions.org/questions/slackware-14/use-iphone-ipod-with-slack-like-in-ubuntu-829851/)

damgar 09-01-2010 09:54 PM

Use Iphone/Ipod with Slack like in Ubuntu?
 
I'm out of my depth on this one and was hoping someone had some idea how to get this working. I have an Iphone that has some music on it. Under Ubuntu 10.04 I can simply plug it in to the usb jack and I'm offered two choices, one to open f-spot for dealing with the pictures on the phone, and the other to launch a media player to deal with the music. I've been through SBo installed all the packages that mention Ipods, but I have no idea how to go about mounting the phone etc. It is picked up in dmesg when I plug it in:
Quote:

sb 1-4: new high speed USB device using ehci_hcd and address 8
usb 1-4: New USB device found, idVendor=05ac, idProduct=1294
usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-4: Product: iPhone
usb 1-4: Manufacturer: Apple Inc.
usb 1-4: SerialNumber: 300bd977d3241fbc79eb9af9e8b291dd78bdbb5a
dtest@dtest:~$
I'm don't really ever use anything usb except thumb drives which are picked up like hard drives so this is all new to me.

Jeebizz 09-01-2010 10:03 PM

AFAIK if the i-whatever isn't jailbroken, then you most likely CANNOT mount it like an external disc. The only way to get at the music is either by (Amarok???) or whatever other program is use under Linux for the i-whatevers. I don't know about pictures.

--

Except, now I may eat my own words: ifuse can apparently mount your i-whatever, but I still don't know if your i-device has to be jailbroken? :scratch: Check the documentations.

Ah yes of course, and there is also gtkpod. Hope that gives you at least SOME kind of help?

I don't own any of the i-devices, so thats the best I can do. Hopefully someone who has these i-thingies can offer better insight.

--edit

I would think Ubuntu though has it's own repositories for this? If you are running Ubuntu, check apt(?) or whatever other program is used to get at their repositories, or better yet, Debians repositories?

D1ver 09-01-2010 10:10 PM

I don't really know much about the topic but I did notice when I was compiling kernel 2.6.35 the option to build Iphone support. Maybe this is required for what your trying to do..?

My old Ipod mounts and can be manipulated with Amarok, but I've never dealt with the new i-devices.

damgar 09-01-2010 10:12 PM

Yeah that's the rub, it's just out of the box functionality with Ubuntu so I'm not real sure what's going on there. My problem is that other than dmesg, I just can't get slackware to see the phone that I can tell. I have all the ifuse, gtkpod, etc that I could find on SBo. I'm guessing I just don't know how to use it, and I'm having trouble finding the information.

damgar 09-01-2010 10:14 PM

Quote:

Originally Posted by D1ver (Post 4085562)
I don't really know much about the topic but I did notice when I was compiling kernel 2.6.35 the option to build Iphone support. Maybe this is required for what your trying to do..?

I needed to build a new kernel anyway. I'll see what that does for the situation.

Jeebizz 09-01-2010 10:15 PM

Quote:

Originally Posted by damgar

My problem is that other than dmesg, I just can't get slackware to see the phone that I can tell.
Logically maybe right now I would say, maybe said serial number would at least help distinguish each i-device, and somehow would be included in the documentation of amarok/whatever, (ipod from iphone, etc), until I read this from your output.

Code:

usb 1-4: SerialNumber: 300bd977d3241fbc79eb9af9e8b291dd78bdbb5a
Leave it to Apple to also obscure their own identities of their h/w. :rolleyes:

What a bunch of buttheads. :banghead:

damgar 09-01-2010 10:23 PM

Interesting that rhythbox seems to see the phone, but I get these errors:
Quote:

Device 0 (VID=05ac and PID=1294) is UNKNOWN.
Please report this VID/PID and the device model to the libmtp development team
libusb couldn't open USB device /dev/bus/usb/007/002: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/007/003: Permission denied.
libusb requires write access to USB device nodes.
Device 0 (VID=05ac and PID=1294) is UNKNOWN.
Please report this VID/PID and the device model to the libmtp development team
LIBMTP PANIC: could not inspect object property descriptions!
LIBMTP PANIC: could not inspect object property descriptions!
LIBMTP PANIC: could not inspect object property descriptions!

(rhythmbox:8676): Rhythmbox-WARNING **: libmtp error: PTP Layer error 02fe: get_track_metadata(): call to ptp_mtp_getobjectpropssupported() failed.


Jeebizz 09-01-2010 10:30 PM

Ok judging by that latest output I have to ask, the device then is not in anyway jailbroken then?

Maybe you might(?) have better luck with an unlocked devices?

Only other thing I can think of to perhaps get past those errors, is make sure your username is added to the appropriate places in /etc/group? Though not sure how much of a difference would that be either.

Arrggh, damn you i-devices! :banghead:

damgar 09-01-2010 10:36 PM

Quote:

Originally Posted by Jeebizz (Post 4085586)
Ok judging by that latest output I have to ask, the device then is not in anyway jailbroken then?

Maybe you might(?) have better luck with an unlocked devices?

Only other thing I can think of to perhaps get past those errors, is make sure your username is added to the appropriate places in /etc/group? Though not sure how much of a difference would that be either.

Arrggh, damn you i-devices! :banghead:

Yes they are a PITA, and no it's not jailbroken. This wouldn't be something I'd even care about, except I noticed when playing with Ubuntu that this was automatic, so there has to be a way for it to work in Slack....and now I have to know. To be quite honest I'll probably never mess with this again after I figure it out, but getting there is all the fun..and frustration.

Speaking of groups, looking at an old tutorial for doing this on Ubuntu 9.10 they talk about adding your user to the fuse group, however I don't have a fuse group.....hmm. Time to boot into 'bunter I reckon.

damgar 09-01-2010 11:00 PM

Nope, nothing useful here. Booting back into slack, I get this error when I attach my Iphone while running rhythmbox from the terminal
Quote:

(rhythmbox:2846): GStreamer-WARNING **:
Trying to join task 0x81be8c8 from its thread would deadlock.
You cannot change the state of an element from its streaming
thread. Use g_idle_add() or post a GstMessage on the bus to
schedule the state change from the main thread.


larryhaja 09-01-2010 11:52 PM

It looks like you don't need to jailbreak the I(Phone|Touch) device. After a quick google search I came across this Ubuntu page.
https://help.ubuntu.com/community/Po...Devices/iPhone
Which uses the libimobiledevice library to read the filesystem. I don't have an i-whatever device to test so I don't know how hard/easy it is to install and manage.
http://www.libimobiledevice.org/

ricky_cardo 09-02-2010 06:17 AM

Well here is my story: (And It gives me read only)
Added the following from slackbuilds:
-ifuse-1.0.0-x86_64-1_SBo.tgz
-libplist-1.3-x86_64-1_SBo.tgz
-libtasn1-2.2-x86_64-1_SBo.tgz
-libimobiledevice-1.0.2-x86_64-1_SBo.tgz
-usbmuxd-1.0.4-x86_64-1_SBo.tgz

Next I made a dir to mount in in : mkdir /home/rich/iLV

Here is what I could do:
ifuse /home/rich/iLV (mount the iPhone in my case)
ideviceinfo (look at info)
idevicesyslog (watch transactions)

Then ran amarok:
-can see music if you use /home/rich/iLV as local directory


This about as far as I got

damgar 09-02-2010 09:00 PM

Success!!!!
 
GOT IT!!!! Kinda. I'm listening to my iPhone and it even seems as though I can drag and drop files, create new files, etc on the iPhone, which I wasn't able to with iTunes if I remember correctly. Remember this is a standard iPhone, running some version of OS3, not having a machine to run iTunes I haven't updated the OS since picture messaging was released. In other words, not jailbroken.

It's kind of touchy, doesn't work perfectly everytime, but I noticed I get similar behavior in Ubuntu so we'll see.

These are the steps in abridged format, they may not all be necessary:

I went to SBo and searched for "ipod" and installed all the packages that came up as well as their dependencies. I wish I could give an exact accounting, but I had to clean out /tmp and my sbopkg queue went with it.

gtkpod
usbmuxd
libplist
ifuse
libimobiledevice
libtasn1

that seems to be all of them.

I updated libgpod to 0.7.94 by downloading the source and using the standard slackbuild from my favorite mirror.

EDIT: I also rebuilt rhythmbox (the only media player I've tried thus far) using the GSB slackbuild.

After all of that I rebuilt gvfs, I have GSB installed so I used their slackbuild for that.

I plugged in the phone a few times and it was seen then lost several times, but finally it "just worked" I'll play with it some to see what happens, but for now at least, I'm able to at least access it. I haven't tried to sync it yet.

damgar 09-02-2010 11:22 PM

Quote:

Originally Posted by D1ver (Post 4085562)
I don't really know much about the topic but I did notice when I was compiling kernel 2.6.35 the option to build Iphone support. Maybe this is required for what your trying to do..?

My old Ipod mounts and can be manipulated with Amarok, but I've never dealt with the new i-devices.

I didn't notice this when building my kernel. Where did you see it at?


All times are GMT -5. The time now is 05:56 AM.