Monday, July 19, 2010

I don't have access to a vmware license so I decided to try Virtualbox. I followed the instruction on the link http://www.virtualbox.org/wiki/Linux_Downloads, Debian-based Linux distributions to install virtualbox in Linux. I have 32-bit Ubuntu 10.04.

Download virtualbox-3.2_3.2.6-63112~Ubuntu~lucid_i386.deb.

Add one of the following lines to your /etc/apt/sources.list:
deb http://download.virtualbox.org/virtualbox/debian lucid non-free
deb http://download.virtualbox.org/virtualbox/debian karmic non-free
deb http://download.virtualbox.org/virtualbox/debian jaunty non-free
deb http://download.virtualbox.org/virtualbox/debian intrepid
non-free
deb http://download.virtualbox.org/virtualbox/debian hardy non-free
deb http://download.virtualbox.org/virtualbox/debian lenny non-free
deb http://download.virtualbox.org/virtualbox/debian etch non-free


Combined downloading and registering the public key but I replaced
1. with the 2. because I get the error:
"W: GPG error: http://download.virtualbox.org etch Release:
The following signatures couldn't be verified because the public key
is not available: NO_PUBKEY 54422A4B98AB5139"

1. wget -q http://download.virtualbox.org/virtualbox/debian/
oracle_vbox.asc -O- | sudo apt-key add -

2. wget -q http://download.virtualbox.org/virtualbox/debian/
sun_vbox.asc -O- | sudo apt-key add -


I refered to the following thread to solve the error:
http://ubuntuforums.org/showthread.php?t=92558


Run sudo dpkg -i virtualbox-3.2_3.2.6-63112~Ubuntu~lucid_i386.deb.

Run sudo apt-get -f install to remove the dependency errors.

Then run sudo apt-get update then sudo apt-get install
virtualbox-3.2.












Monday, July 12, 2010

Installing the Pydasm and Pefile Module on Python and Ubuntu

Pydasm is included with the module libdasm. An open source fork is available at http://libdasm.googlecode.com/svn/trunk/ svn/libdasm-read-only and requires the use of the subversion tool. To install subversion use sudo apt-get install subversion.

Run the following command to download the latest libdasm code:
svn checkout http://libdasm.googlecode.com/svn/trunk/ svn/libdasm-read-only

Run the following series of commands to install the module on python:
cd svn/libdasm-read-only/
make
sudo make install
cd pydasm
sudo apt-get install python2.6-dev
python setup.py build_ext
sudo python setup.py install

Pefile is included in Ubuntu's repository, to install the pefile module run sudo apt-get install python-pefile.