[Tutorial] How to install and use Bochs.

Discussion in 'iOS Jailbreak & Cydia' started by powerpup118, Jul 23, 2009.

  1. powerpup118

    powerpup118 New Member

    Joined:
    Jan 2, 2009
    Messages:
    69
    Likes Received:
    0
    Device:
    2G iPod touch
    How to install Bochs, the x86 emulator, on the iPhone/iPod Touch​


    Bochs is an x86 emulator, that has been ported to the iPhone/iPod Touch. What this means is that with it, you are able to (slowly) run most x86 based operating systems.​



    This tutorial will show you how to use it, and how to run another operating system instead of the stock ones provided.​


    (we will be using Damn Small Linux [DSL] for this tutorial.)​



    All credit goes to the original designers of the open source program Bochs, and anyone involved in porting it to the iPhone/iPod Touch.​

    **I have only written a tutorial to help you**
    **As stated, all credit goes to the designers.**


    1. Download the ported version of Bochs to your computer. (Download link here)

    2. Transfer the file via SSH or iPhone Browser. (File goes into /tmp/)

    3. Install and open Mobile Terminal from Cydia.

    4. Log in as root by the following commands:
    To login type: "login"
    Type your user name, default is: "root"
    Type your password, default is: "alpine"​

    5. Run the command: "dpkg -i /tmp/bochs.deb"

    6. Restart springboard, either on your own, or type the following command:

    In Mobile Terminal from Cydia: "killall SpringBoard"
    (The capital "S" and "B" are important!)

    7. You can now see the Bochs icon on your SpringBoard.

    8. You can test the stock Win3.11 or Win95 operating system images.

    Note they will take a while to start up.

    9. If those two operating systems are good enough, then no more work!

    10. If you're a little more advanced, and want more OS's then follow on!




    After installing the Bochs application with the above steps, and if you would like to add your own operating system:

    1. Download the file I modified. (Download link here -- After you click on the link, right click and save as.)

    2. SSH or use iPhone Browser and go to: private/var/mobile/Library/Bochs/

    3. Make a folder that you would like to appear in the Bochs app menu. (I use "Test")

    4. Put the file you downloaded (os.ini) into the folder you just made.

    5. Put any .iso image of an operating system you wish to use, into the folder.

    Make sure the .iso image of your OS is called "test.iso"

    **This is very important!**

    6. Start Bochs on your iPhone/iPod Touch. The folder name you gave, should come up.

    7. Click on the folder, and it should begin booting the .iso image of the OS you put in the folder!

    8. I used Damn Small Linux for this tutorial, and it boots up.

    9. That is my proof of concept, the fact it got to the installation screen.

    10. Enjoy!





    To anyone who has questions: please ask.
    This fully works. 100%.
    It is very slow.
    Takes aprox 8 minutes or so to boot Win95 on iPod Touch 2nd Generation.
    And this is no VNC.
    This is a fully workable x86 emulator.

    Thanks, and have fun!





    P.S.
    To the mods: I am very unsure if the pre included Win95 and Win3.11 are legal? Is it alright for these to be here? If it is bad then please tell me, or even remove the download link. I will upload a new version without those two OS's if they are illegal. Thank you.

    Attached Files:

  2. Nburnes

    Nburnes Well-Known Member

    Joined:
    Jan 3, 2009
    Messages:
    9,022
    Likes Received:
    767
    Device:
    OnePlus One
    And btw to all you n00bs out there who will be like "OMG Teh haz the LinuX on iTouch!!!!111!"

    This isn't linux on the ipod or iPhone.

    This is an OS "running" in a simulated environment.
  3. powerpup118

    powerpup118 New Member

    Joined:
    Jan 2, 2009
    Messages:
    69
    Likes Received:
    0
    Device:
    2G iPod touch
    I hoped I stated that enough, but yes just for anyone who misunderstands...
    This only simulates a computer running linux/windows.

    This is no replacements for iphone OS.
  4. Nburnes

    Nburnes Well-Known Member

    Joined:
    Jan 3, 2009
    Messages:
    9,022
    Likes Received:
    767
    Device:
    OnePlus One
    This is a very good tutorial btw.
  5. powerpup118

    powerpup118 New Member

    Joined:
    Jan 2, 2009
    Messages:
    69
    Likes Received:
    0
    Device:
    2G iPod touch
    Thanks!
    I'm just concerned if the Win95 and Win3.11 included are legal or if I'll get a warning D:
  6. DarkWrath

    DarkWrath Active Member

    Joined:
    Apr 17, 2009
    Messages:
    1,218
    Likes Received:
    0
    Device:
    4G iPod touch
    @powerpup

    how did you 'modify' the os?

    EDIT: nvm, i think i got it :D
  7. SumDaii

    SumDaii Active Member

    Joined:
    Nov 17, 2008
    Messages:
    6,297
    Likes Received:
    0
    Device:
    iPod touch
    Nice tutorial! Thanks!
  8. Retro349

    Retro349 New Member

    Joined:
    Jan 18, 2009
    Messages:
    355
    Likes Received:
    0
    Device:
    iPhone 4 (Black)
    This is great! My only question is how can I use the keyboard? Lol

    EDIT: Nevermind, I see it doesn't. Oh well...

    EDIT 2: Oh and for all the Android fans out there (you know who you are) just take a gander at this website.
  9. dweng85

    dweng85 Banned

    Joined:
    Jan 31, 2009
    Messages:
    73
    Likes Received:
    0
    Device:
    2G iPod touch
    well that means we can use Android as well right?
  10. iptman

    iptman Active Member

    Joined:
    Jun 16, 2009
    Messages:
    1,047
    Likes Received:
    0
    Device:
    2G iPod touch
    Anyone tried android yet...

Share This Page