Installing Debian on an SD Card

"This is a guide on how to install Debian onto the microSD card, it DOES NOT replace the default Linux operating system.

==Getting Ready==
#You'll need to root your phone, instructions on [[Rooting_Android]] are there.
#There is an automatic installer package available [http://www.androidfanatic.com/cms/unofficial-app-repo.html?func=fileinfo&id=21 here]. Download it and move it to your microSD card.
#Unzip the installer package, move the entire Debian folder to the root of your SD card. If it isn't this location, it won't work. (It should be /debian)
#Go to the Android Market and download the application called "Terminal Emulator" (if you haven't already), open it after it installs.
#Enter the following commands, hitting enter/return after each line. Authorize the program in SuperUserWhitelist if it asks you.
cd /sdcard/debian
su
chmod 4755 *-->

cd /sdcard/debian
su
chmod 4755 *
#Then type ''installer.sh'' and the installer should run!

==Troubleshooting==
If chmod 4755 * gives you an error stating that you do not have permissions, close Terminal Emulator and run su again, this time when SuperUserWhitelist asks for if you should give Terminal Emulator super user permissions hit yes instead of always.

If running installer.sh tells you that installer.sh could not be found, type su, followed by sh installer.sh."

http://androidmobileos.com/?page_id=428