iPod touch Fans
Cheap iPod touch 3G - 8GB $188.95, 32GB $279.95, 64GB $373.73 with free shipping!
Register Forums Home Rules Search Today's Posts Mark Forums Read
Go Back   iPod touch Fans forum > The OT™ > Off-topic Chat > Linux
Reply
 
Thread Tools
  #1  
Old 09-12-2008
ubunix's Avatar
iPod touch Aficionado
Join Date: Aug 2008
 
Default How can I extract the 2.1 iphone sdk on linux/ubuntu?

I just download the 1.4gb DMG image, and I cant extract it. Please help!
__________________
  #2  
Old 09-12-2008
SkaterGOD/DOOD23's Avatar
iPod touch Lover
Join Date: Dec 2007
 
Via: http://www.backports.ubuntuforums.or...d.php?t=588893

---------------cleaned up a bit----------------

Quote:
Originally Posted by UbuntuForums
Download this file on Linux:

http://vu1tur.eu.org/tools/download.pl?dmg2img.tar.gz

Extract the file (onto Desktop for example) - open up command line/enter console, cd <DIRECTORY WHERE EXTRACTED> (on Desktop it would be /home/<username>/Desktop/<foldername>), now this:

make
sudo make install


Now type (in base directory of where the .dmg was):

dmg2img -i image.img -o newimage.img

NOTE FROM ME (SkaterGOD/DOOD23): It might be dmg2img -i image.dmg -o newimage.img


Now you can mount it from root:

modprobe hfsplus
mount -t hfsplus -o loop newimage.img /folder_you_want

I'm not sure if you can burn directly the newimage.img, but at least you can mount it and get the files you need.

Please note that AcetoneISO2 1.95 beta 1 will do all this for you in a nice graphical set but it's not for 64-bit. you must compile dmg2img and run make install to make AcetoneISO2 be compatible with 64-bit
cheers!
  #3  
Old 09-13-2008
ubunix's Avatar
iPod touch Aficionado
Join Date: Aug 2008
 
Quote:
Originally Posted by SkaterGOD/DOOD23 View Post
Via: http://www.backports.ubuntuforums.or...d.php?t=588893

---------------cleaned up a bit----------------

I LOVE YOU....Dont worry im straight!
------------------double post merged------------------
Wait it says cant open input file?

Last edited by ubunix; 09-13-2008 at 12:44 PM.. Reason: Automerged Doublepost
  #4  
Old 09-13-2008
SkaterGOD/DOOD23's Avatar
iPod touch Lover
Join Date: Dec 2007
 
Quote:
Originally Posted by ubunix View Post
I LOVE YOU....Dont worry im straight!
------------------double post merged------------------
Wait it says cant open input file?
Err, you tried both of these?:
Quote:
dmg2img -i image.img -o newimage.img

NOTE FROM ME (SkaterGOD/DOOD23): It might be dmg2img -i image.dmg -o newimage.img
  #5  
Old 09-13-2008
ubunix's Avatar
iPod touch Aficionado
Join Date: Aug 2008
 
Quote:
Originally Posted by SkaterGOD/DOOD23 View Post
Err, you tried both of these?:
Nevermind mate, both those methods dont work, I just run UltraIso through Wine to extract the image.
  #6  
Old 09-13-2008
gojohnnyboi's Avatar
iPod touch Zealot
Join Date: Jan 2008
 
do this:

compile or download the dmg2img binary. run it on the sdk. then mount it i think the command is like

Code:
sudo mount -t hfsplus -o loop /path/to/iphonesdkconvertedimage.img /path/to/mount/image/at
then, find inside that mounted image, iPhoneSDKHeadersAndLibs.pkg

run sudo apt-get install xar in terminal, and run these commands on the package.

Code:
xar -xf iPhoneSDKHeadersAndLibs.pkg Payload
mv Payload Payload.gz
gunzip Payload.gz
cat Payload | cpio -i
and you will have the sdk frameworks, which hold a folder in each named "Headers", that holds the headers.
  #7  
Old 09-13-2008
ubunix's Avatar
iPod touch Aficionado
Join Date: Aug 2008
 
Quote:
Originally Posted by gojohnnyboi View Post
do this:

compile or download the dmg2img binary. run it on the sdk. then mount it i think the command is like

Code:
sudo mount -t hfsplus -o loop /path/to/iphonesdkconvertedimage.img /path/to/mount/image/at
then, find inside that mounted image, iPhoneSDKHeadersAndLibs.pkg

run sudo apt-get install xar in terminal, and run these commands on the package.

Code:
xar -xf iPhoneSDKHeadersAndLibs.pkg Payload
mv Payload Payload.gz
gunzip Payload.gz
cat Payload | cpio -i
and you will have the sdk frameworks, which hold a folder in each named "Headers", that holds the headers.
Thanks, but I already extracted the image using wine to run UltraIso then followed the guide at theiphonewiki.
  #8  
Old 09-15-2008
iPod touch Devotee
Join Date: Jan 2008
 
XPwn contains three tools that can do this: hdutil, dmg, and hfsplus.
  #9  
Old 06-14-2009
iPod touch Amateur
Join Date: Jun 2009
 
Quote:
Thanks, but I already extracted the image using wine to run UltraIso then followed the guide at theiphonewiki.
Ubunix.. can you link the guide at thiphonewiki? I haven't been able to find it. And did it all work for you?
  #10  
Old 06-14-2009
Led's Avatar
Led
iPod touch Fan
Join Date: Jan 2008
 
Whoa, whoa, whoa, wait. Can you use the iphone SDK on linux?
Reply

Tags
extract, image, sdk, ubuntu

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Useful links:


All times are GMT -7. The time now is 08:39 PM.


Powered by vBulletin® ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2007 - 2009 Vigorous Media LLC - All Rights Reserved.
No information may be posted elsewhere without written permission.


Page generated in 0.04708 seconds with 5 queries