Slashdot Mirror


Debian For Android Installer Released

dooberrymctavish writes "You can now download an installer and bootloader for getting Debian running on your Android (G1 at the moment) device; the whole install process will take you about 10 minutes, and leaves you with access to the full plethora of programs available in Debian and lets you continue using your phone as it was intended to be: as an Android device with all the capabilities thereof. Here's a look at it running.

38 of 160 comments (clear)

  1. Ok. by drolli · · Score: 5, Insightful

    That would be a reason to buy this phone....

    1. Re:Ok. by Anonymous Coward · · Score: 2, Funny

      Are you saying that this linux can run on a computer without windows underneath it, at all ? As in, without a boot disk, without any drivers, and without any services ?

      That sounds preposterous to me.

      If it were true (and I doubt it), then companies would be selling computers without a windows. This clearly is not happening, so there must be some error in your calculations. I hope you realise that windows is more than just Office ? Its a whole system that runs the computer from start to finish, and that is a very difficult thing to acheive. A lot of people dont realise this.

      Microsoft just spent $9 billion and many years to create Vista, so it does not sound reasonable that some new alternative could just snap into existence overnight like that. It would take billions of dollars and a massive effort to achieve. IBM tried, and spent a huge amount of money developing OS/2 but could never keep up with Windows. Apple tried to create their own system for years, but finally gave up recently and moved to Intel and Microsoft.

      Its just not possible that a freeware like the Linux could be extended to the point where it runs the entire computer fron start to finish, without using some of the more critical parts of windows. Not possible.

      I think you need to re-examine your assumptions.

  2. Must resist. by fuzzyfuzzyfungus · · Score: 5, Funny

    Must resist purchase of new geek toy...

    1. Re:Must resist. by Miv333 · · Score: 5, Interesting

      Must resist purchase of new geek toy...

      Don't resist! Just give in. I bought it the day of release, I got out of my Verizon contract for 200$ even. I don't regret it one bit. Loading Debian on it? Can't wait!

    2. Re:Must resist. by Nursie · · Score: 3, Funny

      Hey, that's not a geek toy, the Openmoko Freerunner is a geek toy. That can run android and/or debian too.

      Plus, what's even better is that the kernel's still a work in progress and the phone systems barely work! How geeky is that? You get to explain to friends and family that their call is echoing or you can't pick up because you have teh linux! /worst 270 GBP I ever spent...

  3. Re:This is why linux/opensource sucks. by Orange+Crush · · Score: 4, Insightful

    ^The same sort of people who take things apart to see how they work, and tinker with things because they actually enjoy doing so.

    Don't worry, your iPhone will not wink out of existance because somebody with different preferences buys a different phone, or prefers cars without the hoods welded shut.

  4. The video sucks by amRadioHed · · Score: 3, Insightful

    Just shows Debian booting. What can you do with it?

    --
    We hope your rules and wisdom choke you / Now we are one in everlasting peace
    1. Re:The video sucks by flu1d · · Score: 5, Funny

      Just shows Debian booting. What can you do with it?

      You can drain your battery with it, enjoy!

    2. Re:The video sucks by Anonymous Coward · · Score: 5, Informative

      It does not show Debian booting, it shows an safe-upgrade using apt or aptitude.

      The Debian version is Lenny, btw.

    3. Re:The video sucks by wcoenen · · Score: 2, Insightful

      It is not booting. The video shows apt-get downloading and installing some packages on the phone.

    4. Re:The video sucks by biocute · · Score: 4, Funny

      Just shows Debian booting

      Wrong. It's the new media player, it turns sound wave into text. Can't you hear the 'tuff tuff' music playing?

      The header clearly stated "Here's what it looks like running:", so I have no reason to believe otherwise.

    5. Re:The video sucks by nine-times · · Score: 4, Insightful

      Probably not, but being able to run apt-get is a big step in being able to run anything you damn well please.

    6. Re:The video sucks by cibyr · · Score: 5, Funny

      But you can use apt-get to install the GNU toolchain...

      But you can use the GNU toolchain to build apt-get...

      OH GOD I'M SO CONFUSED!

      --
      It's not exactly rocket surgery.
  5. Re:This is why linux/opensource sucks. by SanityInAnarchy · · Score: 5, Insightful

    Yeah...

    Can I buy an unlocked iPhone for a reasonable price, yet? How about deals with networks other than AT&T?

    Can I install custom software yet? Oh, I have to jailbreak it. That makes sens... Oh wait, you're asking me to crack my own phone.

    Alright, I'll develop an iPhone app. I'll write it in Python, or maybe Erlang, download updates on the fly... Not allowed, you say? I wonder why? Only Apple knows...

    Maybe I'll make it run in the background, so I can have something play music while users do something else... Nope, not allowed. When the user taps away from my app, I have to shut down, completely, so as not to drain the battery. That's not just a good best practice, it's actually enforced by Apple.

    Yes, it's prettier. Yes, there are things it does better. But as long as Apple keeps such a stranglehold around what's available and what isn't, the iPhone will fall behind. There is no question of that -- there will be killer apps written for Android, even for Windows Mobile, which cannot be ported to the iPhone because of Apple's restrictions.

    Why would you want a system so closed, inflexible, and proprietary that it makes Windows look good?

    --
    Don't thank God, thank a doctor!
  6. Re:If it takes that much time to boot... by guppysap13 · · Score: 3, Informative

    This video looks more like apt updating and installing than debian booting, so we don't know how long it takes to boot. On the other hand, if it takes this long to install packages using apt, installing programs is going to be really painful.

  7. this is just debootstrap by joey · · Score: 3, Insightful

    All the video shows is debootstrap being run in a terminal on, presumably, a G1 phone.

    Since debootstrap is a shell script that builds a debian chroot and is designed to be run on any linux system, that is not a significant accomplishment, is it?

    That's the "installer" portion. The "bootloader" portion would appear to consist of something like:

    #!/bin/sh
    chroot /debian

    Anyway, it's nice to see interest in running Debian on these devices, I guess..

    --
    see shy jo
  8. Re:If it takes that much time to boot... by Anonymous Coward · · Score: 5, Informative

    Hi Guys, the video is of Debian doing an 'apt-get update' the boot takes less than 3 seconds. I showed this particular video to show that it is debian running. The boot is only 3 secs.

  9. teh lolz by joey · · Score: 5, Informative

    Here is the actual code from the bootdeb script.

    I particularly like how init is "started" before the kernel is "booted". The "automounter" is also a nice touch. It's also impressive how the kernel boots in exactly 1 second every time.

    echo "Custom Linux Pseudo Bootstrapper V1.0 - by Mark Walker"
    echo "WEB: http://www.androidfanatic.com/"
    echo "EML: admin@androidfanatic.com"
    echo " "
    sleep 1
    echo "Starting init process"
    sleep 1
    echo "INIT: Debian booting....."
    sleep 1
    echo "Running Linux Kernel"
    sysctl -w net.ipv4.ip_forward=1
    sleep 1
    echo "AutoMounter started"
    sleep 1
    echo "Type EXIT to end session"
    echo "Make sure you do a proper EXIT for a clean kill of Debian!"
    echo " "

    chroot $mnt /bin/bash

    On the other hand, my prediction re debootstrap was wrong. Rather than just use the shell script as designed, the creator of this thing ships an entire pre-built debian system that's chrooted into. Amusingly, this includes a root/.bash_history showing every command he ran while setting it up. (It also includes 104 mb of cached debs in /var, etc.)

    Anyway, very amusing.

    --
    see shy jo
  10. Re:This is why linux/opensource sucks. by k1e0x · · Score: 4, Funny

    Man you almost had it. Insightful +5, then you went and mentioned Windows Mobile.. ugg..

    --
    Bringing liberty to the masses. - http://freetalklive.com/
  11. Welcome to the new year by ColdWetDog · · Score: 5, Funny

    2009: The year of Terminal on the cell phone.

    Take that iPhone!

    --
    Faster! Faster! Faster would be better!
  12. booting? by aperion · · Score: 4, Interesting

    Article mentions Android is based on Debian, so basically what has happened is apt-get was installed (and all required software) which then gives access to the entire debain ARM library.

    Is this correct?

    It's sad the number of responses saying this is a boot screen... maybe if you don't actually look at it, and just go: 'oh pretty text!'

  13. Re:This is why linux/opensource sucks. by knarf · · Score: 5, Funny

    Think Different. Think Better. Think Apple.

    I think (ergo sum) that you really meant

    Why Think? We think better! Let us do the thinking for you (for a 'small' fee)

    --
    --frank[at]unternet.org
  14. Re:This is why linux/opensource sucks. by Bob9113 · · Score: 4, Insightful

    Don't worry, your iPhone will not wink out of existance because somebody with different preferences buys a different phone, or prefers cars without the hoods welded shut.

    hehe - indeed. I have a Mac laptop, a Linux workstation, and a Linux media center at home. Each is brilliant for its intended purpose. Viva La Difference!

  15. NICE! by certain+death · · Score: 4, Informative

    I have the phone, but I am not so sure I am willing to do this...

    --
    "My immediate reaction is "WTF? What kind of moron doesn't make things 64-bit safe to begin with?" Linus
    1. Re:NICE! by riflemann · · Score: 3, Informative

      I put debian on my Dev G1. Zero problems.

      It's safe - all it does is run a chroot environment from your SD card, thus you are unable to break your existing system (/dev hacks aside). No kernel is booted, it lives off the running system kernel.

      This means two things:

      - Resources are only consumed by actual running debian processes you initiate. No mysterious background daemons. I run a bash shell, and the only extra process on the phone is one bash shell.

      - Aside from memory/cpu resources (not really scarce on a 192Mb phone), zero impact on the rest of the phone (I can compile a kernel whilst making a call at the same time).

      I can now install and run any debian app. With a $12 4Gb micro-sd, I can install a *lot*. Access either via keyboard or network (ssh).

      python and perl on my phone - w00t!

      All I'm waiting on now is someone to create python modules to interface with the phone's GUI. And/or an X server.

  16. Re:This is why linux/opensource sucks. by SanityInAnarchy · · Score: 4, Informative

    Except it's true.

    Yes, Windows Mobile sucks. But, it does one thing Apple doesn't:

    You are allowed, and encouraged, to develop and use third-party apps, which have no relationship to Microsoft.

    You can download them from the Internet. You can install them via sync, or wifi. I don't actually know you can grab them with wifi, but that doesn't matter, because you could write a program that does that -- write your own package manager, even! -- and no one will stop you.

    On the iPhone, you distribute them through Apple, through the App Store, and you buy them through the App Store. Anything else is likely to void your warranty, maybe even get you sued.

    --
    Don't thank God, thank a doctor!
  17. the point of the android by heroine · · Score: 3, Funny

    The android standards were written so you wouldn't install package managers & run native programs. You're supposed to be running Java Xlets. What's wrong with you people?

  18. Really uninspiring by NekoXP · · Score: 4, Insightful

    Well, you boot Android, get Debian on it and the video we're treated to is... ... running apt-get to drag down packages.

    Am I the only one who thinks this is totally pointless?

  19. Because.. by RulerOf · · Score: 4, Funny

    Why would you want a system so closed, inflexible, and proprietary that it makes Windows look good?

    With all the thrashing /. has given Vista, we Microsoft fanbois will take what we can get. ;)

    --
    Boot Windows, Linux, and ESX over the network for free.
  20. Re:FTL! by mixmatch · · Score: 4, Insightful

    Aside from the cool geek factor, why load Debian? It's a distro optimized for servers.

    Who told you that? My experience is that Debian's strength is in its versatility, rather than a focus on servers. Thats why it is seen in using for anything from the firmware-based Linksys NSLU2 to being the base of some of the most popular desktop distros of the past few years, suck as Knoppix and Ubuntu.

  21. Language! by XanC · · Score: 3, Funny

    suck as Knoppix and Ubuntu.

    Hey now, they're not so bad...

  22. Re:This is why linux/opensource sucks. by Animaether · · Score: 2, Informative

    just to answer the "don't know if you can grab them with wifi" - absolutely. All but the most ancient of WM devices that have WiFi or a cellular chip will have an internet browser - typically IE, but newer models come with Opera. Just browse to the website that hosts the .CAB or .EXE (the former is the more common - the latter you have to make sure it's not a windows installer but e.g. a pocketpc installer.. yes, that's a bit of a hassle, yes, the App(le) Store prevents such hassles), save the file, and launch it.. whether you're doing so over a virtual network (via a USB cable, for example), wifi, cellular chip, bluetooth or heck - IRda modem.. it doesn't care.. once the file's on the machine (by any means), you can run it.

  23. Re:Yeah! by larry+bagina · · Score: 2, Funny

    I'm pretty sure the supreme geek toy is still a greased up yoda doll.

    --
    Do you even lift?

    These aren't the 'roids you're looking for.

  24. Re:This is why linux/opensource sucks. by SanityInAnarchy · · Score: 2, Interesting

    Point is, you can work around the OS.

    I'm not sure how easy it is on WM, but consider if it was desktop Windows vs the iPhone OS. Worst case, just replace explorer.exe with your own shell, use a layer like Cygwin or Services for Unix, and it's hard to tell it's actually Windows under there.

    On the other hand, if you like the iPhone, it's great, but if you don't, or you want to change it in some interesting way, you're pretty much boned.

    --
    Don't thank God, thank a doctor!
  25. AndroidFanatics fails to credit their sources by saurik · · Score: 3, Informative

    For the record, this is just a shell script that runs the commands listed here: http://www.saurik.com/id/10. AndroidFanatics generally doesn't reference it's sources. At least this time they (arguably) provided some value in packaging, but that usually isn't the case. The Android Market Browser it has, for example, is just a republished download of http://www.cyrket.com/. It used to be an iframe, but when I told them I wasn't okay with that they decided to just wget the contents. They don't even have the intelligence/decency to reformat it at all, making the entire thing quite flagrant. Frown pants.

  26. Re:This is why linux/opensource sucks. by tcr · · Score: 2, Interesting

    Oh, I have to jailbreak it. That makes sense... Oh wait, you're asking me to crack my own phone.
     
    To be fair, TFA mentions that in order to run Debian on Android, you have to use modded firmware to gain root access (it was removed by default by an update a little while ago). Probably won't brick the device, but there are no guarantees.
     
      Maybe I'll make it run in the background, so I can have something play music while users do something else... Nope, not allowed.
     
    What I've read suggests that the iPhone will continue iPod playback in the background, but not other apps. Never used one, though.
     
    I'm more than happy with my Android G1 in this respect, because I can run things like the StreamFurious Shoutcast client in the background while surfing or reading eBooks.

    --


    Information wants to be beer.
  27. Re:You can take a nigger out of the jungle, by grimwell · · Score: 2, Insightful

    Try changing your threshold to zero or higher. Then you won't see the trolls.

    --
    If the govt becomes a lawbreaker, it breeds contempt for law, it invites man to become his own law, it invites anarchy
  28. Re:This is why linux/opensource sucks. by Hognoxious · · Score: 2, Funny

    I would have gone for "Think you're different? Think you're better? Don't think: buy Apple."

    --
    Confucius say, "Find worm in apple - bad. Find half a worm - worse."