Linux Redsn0w 0.8 Tutorial/Help Request

Discussion in 'iPod touch Firmware 3.0 Jailbreak' started by NdranC, Jul 10, 2009.

  1. NdranC

    NdranC New Member

    Joined:
    Jan 18, 2009
    Messages:
    21
    Likes Received:
    0
    Device:
    2G iPod touch
    Pretty much thats it. I downloaded redsn0w 0.8 on my ubuntu jaunty machine, and each time i try to run the script from the console i get the following error

    Code:
    ./redsn0w: error while loading shared libraries: libwx_gtk2u_richtext-2.8.so.0: cannot open shared object file: No such file or directory
    
    I checked and i have installed the wxgtk libs, so maybe is some sort of quickfix like a simlink of sorts. The script has executable permissions and running it with "sudo" doesn't change the outcome. I have looked all over the internet but i cant find anything related to redsn0w 0.8 and linux, even the iphone dev readme that came with the tar just blabs about license stuff.

    PS: Plz dont answer go look for a friend with windows (i have a windows partition) because thats beyond the point of the thread

    Please Register or Log in to view images

  2. NdranC

    NdranC New Member

    Joined:
    Jan 18, 2009
    Messages:
    21
    Likes Received:
    0
    Device:
    2G iPod touch
    /bumb

    No one? I hate to do this but maybe im not asking in the right place?
  3. darkshadow

    darkshadow Member

    Joined:
    Dec 28, 2007
    Messages:
    151
    Likes Received:
    1
    Device:
    iPod touch
    Use getlibs to solve dependency problems easily that is what I used for redsn0w. Here is a link with info on how to run it, and a link to download.

    http://ubuntuforums.org/showthread.php?t=474790

    If you are running 64bit Linux say so and I will show you how to get around some missing file errors I ran into.
  4. NdranC

    NdranC New Member

    Joined:
    Jan 18, 2009
    Messages:
    21
    Likes Received:
    0
    Device:
    2G iPod touch
    Oh i see, what you are saying is that this time they just made the 32 bit installer? because i do remember that redsn0w 0.3 had 32 bit and 64 bit version. Ah damn. Yes i'm running 64 bit ubuntu jaunty. This is not the first time i use getlibs, but it's been a while. Im gonna try it out and post my results.

    Thx for your answer

    Please Register or Log in to view images

  5. darkshadow

    darkshadow Member

    Joined:
    Dec 28, 2007
    Messages:
    151
    Likes Received:
    1
    Device:
    iPod touch
    If I remember correctly it took me a few time to get everything installed including a few times specifying the library for getlibs after the basic "getlibs redsn0w"

    Also some stuff does not get redirected to /usr/lib32 no matter what so I came up with a dirty workaround script to start redsn0w

    first prep the system with
    sudo mv /usr/lib/gio/modules /usr/lib/gio/modules.64
    sudo ln -s /usr/lib/gio/modules.64 /usr/lib/gio/modules


    then use the following script to run redsn0w

    sudo rm /usr/lib/gio/modules
    sudo ln -s /usr/lib32/gio/modules /usr/lib/gio/modules
    ./redsn0w
    sudo rm /usr/lib/gio/modules
    sudo ln -s /usr/lib/gio/modules.64 /usr/lib/gio/modules
  6. NdranC

    NdranC New Member

    Joined:
    Jan 18, 2009
    Messages:
    21
    Likes Received:
    0
    Device:
    2G iPod touch
    Ok i used getlibs to install the missing libs using "getlibs -l libwx_******" i installed the two libs the error output of ./redsn0w gave me.

    Now when i run ./redsn0w i get this output

    Code:
    Gtk-Message: Failed to load module "canberra-gtk-module": /usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so: wrong ELF class: ELFCLASS64
    /usr/lib/gio/modules/libgiogconf.so: wrong ELF class: ELFCLASS64
    Failed to load module: /usr/lib/gio/modules/libgiogconf.so
    /usr/lib/gio/modules/libgvfsdbus.so: wrong ELF class: ELFCLASS64
    Failed to load module: /usr/lib/gio/modules/libgvfsdbus.so
    /usr/lib/gio/modules/libgioremote-volume-monitor.so: wrong ELF class: ELFCLASS64
    Failed to load module: /usr/lib/gio/modules/libgioremote-volume-monitor.so
    
    but the GUI launches, the problem is that it crashes when it comes to the jailbreaking part. I tried to install those wrong ELF class libs with getlibs but it doesnt seem to do anything. Any suggestions?
    ------------------double post merged------------------
    oh i didnt see this answer.. srry for that. ok by script you mean make a #!/bin/bash kind of script?


    -------------- EDIT --------------

    i did what you said, i prepared the system with the commands you gave me, the i made a bash script (named jailbreak) with the script commands, and i still got the same result.

    This is the complete output of the script ran from the terminal

    Code:
    ndranc@uMIA:~/Desktop/redsn0w-linux_0.8$ ./jailbreak
    Gtk-Message: Failed to load module "canberra-gtk-module": /usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so: wrong ELF class: ELFCLASS64
    libgvfscommon.so.0: cannot open shared object file: No such file or directory
    Failed to load module: /usr/lib/gio/modules/libgvfsdbus.so
    libgvfscommon.so.0: cannot open shared object file: No such file or directory
    Failed to load module: /usr/lib/gio/modules/libgioremote-volume-monitor.so
    Hashing IPSW...
    *** glibc detected *** ./redsn0w: free(): invalid next size (normal): 0x0819b2c8 ***
    ======= Backtrace: =========
    /lib32/libc.so.6[0xf72c2204]
    /lib32/libc.so.6(cfree+0x96)[0xf72c41e6]
    ./redsn0w(_ZN15JailbreakThread5EntryEv+0x266)[0x8060680]
    /usr/lib32/libwx_baseu-2.8.so.0(_ZN16wxThreadInternal12PthreadStartEP8wxThread+0xf3)[0xf77b8223]
    /usr/lib32/libwx_baseu-2.8.so.0(wxPthreadStart+0x1d)[0xf77b829d]
    /lib32/libpthread.so.0[0xf73bb4ff]
    /lib32/libc.so.6(clone+0x5e)[0xf7338b9e]
    ======= Memory map: ========
    08048000-08096000 r-xp 00000000 08:05 696324                             /home/ndranc/Desktop/redsn0w-linux_0.8/redsn0w
    08096000-08097000 r-xp 0004d000 08:05 696324                             /home/ndranc/Desktop/redsn0w-linux_0.8/redsn0w
    08097000-08d2a000 rwxp 0004e000 08:05 696324                             /home/ndranc/Desktop/redsn0w-linux_0.8/redsn0w
    08d2a000-08d2d000 rwxp 08d2a000 00:00 0 
    09e47000-0a39c000 rwxp 09e47000 00:00 0                                  [heap]
    e9754000-ed755000 rwxp f4b7f000 00:00 0 
    f4d74000-f4e00000 r-xp 00000000 08:03 935335                             /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf
    f4e00000-f4ee9000 rwxp f4e00000 00:00 0 
    f4ee9000-f4f00000 ---p f4ee9000 00:00 0 
    f4f0b000-f4f10000 r-xp 00000000 08:03 778253                             /lib32/libnss_dns-2.9.so
    f4f10000-f4f11000 r-xp 00004000 08:03 778253                             /lib32/libnss_dns-2.9.so
    f4f11000-f4f12000 rwxp 00005000 08:03 778253                             /lib32/libnss_dns-2.9.so
    f4f2f000-f4f30000 ---p f4f2f000 00:00 0 
    f4f30000-f5730000 rwxp f4f30000 00:00 0 
    f5730000-f5731000 ---p f5730000 00:00 0 
    f5731000-f5f31000 rwxp f5731000 00:00 0 
    f5f31000-f5f91000 rwxs 00000000 00:09 410255389                          /SYSV00000000 (deleted)
    f5f91000-f60c6000 r-xp 00000000 08:03 845379                             /usr/lib32/libxml2.so.2.6.32
    f60c6000-f60c7000 ---p 00135000 08:03 845379                             /usr/lib32/libxml2.so.2.6.32
    f60c7000-f60cb000 r-xp 00135000 08:03 845379                             /usr/lib32/libxml2.so.2.6.32
    f60cb000-f60cc000 rwxp 00139000 08:03 845379                             /usr/lib32/libxml2.so.2.6.32
    f60cc000-f60cd000 rwxp f60cc000 00:00 0 
    f60cd000-f60fe000 r-xp 00000000 08:03 844594                             /usr/lib32/libcroco-0.6.so.3.0.1
    f60fe000-f6101000 rwxp 00030000 08:03 844594                             /usr/lib32/libcroco-0.6.so.3.0.1
    f6101000-f6134000 r-xp 00000000 08:03 845274                             /usr/lib32/libgsf-1.so.114.0.11
    f6134000-f6135000 ---p 00033000 08:03 845274                             /usr/lib32/libgsf-1.so.114.0.11
    f6135000-f6137000 r-xp 00033000 08:03 845274                             /usr/lib32/libgsf-1.so.114.0.11
    f6137000-f6138000 rwxp 00035000 08:03 845274                             /usr/lib32/libgsf-1.so.114.0.11
    f6138000-f6139000 rwxp f6138000 00:00 0 
    f6139000-f616a000 r-xp 00000000 08:03 845335                             /usr/lib32/librsvg-2.so.2.26.0
    f616a000-f616b000 r-xp 00031000 08:03 845335                             /usr/lib32/librsvg-2.so.2.26.0
    f616b000-f616c000 rwxp 00032000 08:03 845335                             /usr/lib32/librsvg-2.so.2.26.0
    f6172000-f6183000 r-xp 00000000 08:03 935325                             /usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf
    f6183000-f6187000 r-xp 00000000 08:03 887716                             /usr/lib32/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
    f6187000-f6188000 r-xp 00003000 08:03 887716                             /usr/lib32/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
    f6188000-f6189000 rwxp 00004000 08:03 887716                             /usr/lib32/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
    f6189000-f618a000 r-xp 00000000 08:03 887724                             /usr/lib32/gtk-2.0/2.10.0/loaders/svg_loader.so
    f618a000-f618b000 r-xp 00000000 08:03 887724                             /usr/lib32/gtk-2.0/2.10.0/loaders/svg_loader.so
    f618b000-f618c000 rwxp 00001000 08:03 887724                             /usr/lib32/gtk-2.0/2.10.0/loaders/svg_loader.so
    f618c000-f61a6000 r-xs 00000000 08:03 893116                             /usr/share/mime/mime.cache
    f61a6000-f623e000 r-xp 00000000 08:03 935336                             /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
    f623e000-f6240000 r-xp 00000000 08:03 977086                             /usr/lib32/pango/1.6.0/modules/pango-basic-fc.so
    f6240000-f6241000 r-xp 00001000 08:03 977086                             /usr/lib32/pango/1.6.0/modules/pango-basic-fc.so
    f6241000-f6242000 rwxp 00002000 08:03 977086                             /usr/lib32/pango/1.6.0/modules/pango-basic-fc.so
    f6242000-f6248000 r-xs 00000000 08:05 10503808                           /home/ndranc/.fontconfig/945677eb7aeaf62f1d50efc3fb3ec7d8-x86.cache-2
    f6248000-f624a000 r-xs 00000000 08:05 10503807                           /home/ndranc/.fontconfig/99e8ed0e538f840c565b6ed5dad60d56-x86.cache-2
    f624a000-f624d000 r-xs 00000000 08:05 10503806                           /home/ndranc/.fontconfig/e383d7ea5fbe662a33d9b44caf393297-x86.cache-2
    f624d000-f624e000 r-xs 00000000 08:05 10503805                           /home/ndranc/.fontconfig/fd9505950c048a77dc4b710eb6a628ed-x86.cache-2
    f624e000-f624f000 r-xs 00000000 08:05 10503804                           /home/ndranc/.fontconfig/e3fa16a14183b06aa45b3e009278fd14-x86.cache-2
    f624f000-f6250000 r-xs 00000000 08:05 10503803                           /home/ndranc/.fontconfig/a2ab74764b07279e7c36ddb1d302cf26-x86.cache-2
    f6250000-f6253000 r-xs 00000000 08:05 10503802                           /home/ndranc/.fontconfig/6eb3985aa4124903f6ff08ba781cd364-x86.cache-2
    f6253000-f6254000 r-xs 00000000 08:05 10503801                           /home/ndranc/.fontconfig/4c73fe0c47614734b17d736dbde7580a-x86.cache-2
    f6254000-f6256000 r-xs 00000000 08:05 10503800                           /home/ndranc/.fontconfig/646addb8444faa74ee138aa00ab0b6a0-x86.cache-2
    f6256000-f6259000 r-xs 00000000 08:05 10503799                           /home/ndranc/.fontconfig/a755afe4a08bf5b97852ceb7400b47bc-x86.cache-2
    f6259000-f6260000 r-xs 00000000 08:05 10503798                           /home/ndranc/.fontconfig/6d41288fd70b0be22e8c3a91e032eec0-x86.cache-2
    f6260000-f6263000 r-xs 00000000 08:05 10503797                           /home/ndranc/.fontconfig/de156ccd2eddbdc19d37a45b8b2aac9c-x86.cache-2
    f6263000-f6265000 r-xs 00000000 08:05 10503796                           /home/ndranc/.fontconfig/da1bd5ca8443ffe22927a23ce431d198-x86.cache-2
    f6265000-f626d000 r-xs 00000000 08:05 10503795                           /home/ndranc/.fontconfig/e3de0de479f42330eadf588a55fb5bf4-x86.cache-2
    f626d000-f6278000 r-xs 00000000 08:05 10503794                           /home/ndranc/.fontconfig/0f34bcd4b6ee430af32735b75db7f02b-x86.cache-2
    f6278000-f627a000 r-xs 00000000 08:05 10503793                           /home/ndranc/.fontconfig/ddd4086aec35a5275babba44bb759c3c-x86.cache-2
    f627a000-f627b000 r-xs 00000000 08:05 10503792                           /home/ndranc/.fontconfig/4794a0821666d79190d59a36cb4f44b5-x86.cache-2
    f627b000-f629d000 r-xs 00000000 08:05 10503791                           /home/ndranc/.fontconfig/365b55f210c0a22e9a19e35191240f32-x86.cache-2
    f629d000-f62a4000 r-xs 00000000 08:05 10503790                           /home/ndranc/.fontconfig/d52a8644073d54c13679302ca1180695-x86.cache-2
    f62a4000-f62aa000 r-xs 00000000 08:05 10503789                           /home/ndranc/.fontconfig/089dead882dea3570ffc31a9898cfb69-x86.cache-2
    f62aa000-f62ff000 r-xs 00000000 08:05 10503788                           /home/ndranc/.fontconfig/b80ce64a4bd0ac846cde5fbdd290c01c-x86.cache-2
    f62ff000-f6306000 r-xs 00000000 08:05 10503783                           /home/ndranc/.fontconfig/e13b20fdb08344e0e664864cc2ede53d-x86.cache-2
    f6306000-f6310000 r-xp 00000000 08:03 778254                             /lib32/libnss_files-2.9.so
    f6310000-f6311000 r-xp 00009000 08:03 778254                             /lib32/libnss_files-2.9.so
    f6311000-f6312000 rwxp 0000a000 08:03 778254                             /lib32/libnss_files-2.9.so
    f6312000-f631b000 r-xp 00000000 08:03 778256                             /lib32/libnss_nis-2.9.so
    f631b000-f631c000 r-xp 00008000 08:03 778256                             /lib32/libnss_nis-2.9.so
    f631c000-f631d000 rwxp 00009000 08:03 778256                             /lib32/libnss_nis-2.9.so
    f631d000-f6332000 r-xp 00000000 08:03 778251                             /lib32/libnsl-2.9.so
    f6332000-f6333000 r-xp 00014000 08:03 778251                             /lib32/libnsl-2.9.so
    f6333000-f6334000 rwxp 00015000 08:03 ./jailbreak: line 4: 15748 Aborted     
  7. darkshadow

    darkshadow Member

    Joined:
    Dec 28, 2007
    Messages:
    151
    Likes Received:
    1
    Device:
    iPod touch
    My last post fixes that problem, But I noticed you have a extra problem file you will need to add the same type fix for. Must be different for me since I have only done this on Ubuntu 8.10, and have not got around to it since I updated to 9.04.
  8. NdranC

    NdranC New Member

    Joined:
    Jan 18, 2009
    Messages:
    21
    Likes Received:
    0
    Device:
    2G iPod touch
    Mind elaborating on this for a sec? Srry for all the rushing posting, i made several unnecessary posts. Maybe point me into the right direction?

    On a side note, why did the dev team only released a 32 bit version of the jailbreak on linux... weird.
  9. darkshadow

    darkshadow Member

    Joined:
    Dec 28, 2007
    Messages:
    151
    Likes Received:
    1
    Device:
    iPod touch
    You need the same type of workaround for "/usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so"

    Also you still need getlibs for these 2
    libgvfsdbus.so
    libgioremote-volume-monitor.so
  10. NdranC

    NdranC New Member

    Joined:
    Jan 18, 2009
    Messages:
    21
    Likes Received:
    0
    Device:
    2G iPod touch
    I tried to use getlibs for those two libs and it installs "gvfs" (apparently is the same). Put redsn0w still fails to load them up.

    About the libcanberra workaround, mind spell the exact commands for the script, i'm really new to the linux side of the world and i dont want to mess my system files without fully knowing what i'm doing.

Share This Page