2of1
half a nibble of another

Home
Projects
About
Jul

07

Installing IDA Pro (32-bit) on 64-bit Arch Linux

Filed Under (Hacking, Open source, Reverse engineering) by 2of1 on 07-07-2011

Installing IDA Pro on a 64-bit flavour of Linux is a bit of a business – mostly because there is no 64-bit version of IDA (yet).

Now of course you can install it in a VM, but what’s the point? A x86_64 can natively run 32-bit instructions can’t it?!

Getting IDA Pro up and running involves quite a few steps. Here’s how it’s done on Arch Linux.

32-bit chroot environment
This first thing to do is get a minimal 32-bit chroot environment going.
There are a number of ways of doing this (in fact, there are a number of ways of doing almost everything in this post).
The easiest is probably by installing the arch32-light package from the AUR:

pak -S arch32-light
sudo arch32initialize
sudo pacman32  -Sy bash coreutils filesystem grep gzip licenses sed
sudo pacman -S schroot

(NOTE: I use paktahn to install Arch Linux packages as to includes support for all repositories – including AUR – and has a ‘pacman’-esque command format feel to it; but please feel free to use whatever method/frontend you want)

You should now have a fancy, albeit minimal, 32-bit chroot environment set up.

Installing IDA Pro
Now you can go ahead and copy IDA Pro somewhere.

mkdir ~/tools/ida
tar xvf ida_XXXXXXXXXXXXX* -C ~/tools/ida

Getting IDA to execute using
We now need to install a number of 32-bit dependencies for IDA (./idaq) to run:

sudo pacman32 -S glib2 freetype2 ttf-dejavu libsm libxrender fontconfig libxext

IDA needs to connect to the host (64-bit) X-Windows server.
Access control is enabled by default, so simply give access to local clients:

xhost +local:

Give it a go!
You should now be able to take you IDA install for a spin:

schroot -p ./tools/ida/idaq

What you’ll notice is that idapython can’t dlopen() libpython2.6. Simply installing python2.7 in the chroot environment (with pacman32) or even installing python 2.6 from the AUR doesn’t seem to work (creating a symbolic link from 2.7 -> 2.6 is a no go either).
You can either compile a 32-bit, python2.7 version of idapython or ask/wait for one to be released.

No Comments
Read More

Leave a Reply

  • Recent Posts

    • ARM long branch
    • Mini-Namco #3: (Almost) Finished
    • Mini-Namco #2: Unit construction
    • Mini-Namco #1: Design
    • Simple C hashtable code
  • Archives

    • January 2012
    • September 2011
    • August 2011
    • July 2011
    • May 2011
    • March 2011
    • February 2011
    • January 2011
    • November 2010
    • October 2010
    • September 2010
    • August 2010
    • July 2010
    • June 2010
  • GitHub

    • code
    • d2d1headers
    • locateme
    • findjerusalem
    • seg7
    • userspace-krb
    • libgmail
    • preloader
    • linhook
  • qrcode

  • Site Search

  • Categories

    • Apps (7)
      • Preloader (1)
      • Symbian S60 (1)
      • VLC (4)
      • Wordpress (1)
    • Coding (28)
      • Assembly (1)
        • ARM (1)
      • C (12)
      • Compilers (5)
      • Direct2D API (4)
      • Linux kernel (2)
      • Networking (4)
      • Python (1)
      • Sqlite (1)
      • Version control (5)
        • Git (5)
    • Hacking (4)
      • Code injection (1)
      • Reverse engineering (3)
    • Hardware (4)
      • Arduino (1)
      • PCBs (3)
    • Linux (21)
      • Bash (1)
      • Tips & tricks (13)
      • Virtualization (1)
      • VNC (2)
      • Xmonad (1)
    • Open source (30)
    • Other stuffs (3)
    • Social (3)
      • DC9723 (2)
  • OctoFinderProgramming Blogs - Blog Catalog Blog Directory

    Locations of visitors to this page

© 2of1.