How to install debian on the droid.

Discussion in 'Android Hacks and Help' started by crabs, Jul 20, 2010.

  1. crabs
    Offline

    crabs New Member

    Joined:
    Jun 15, 2010
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    0
    I have been doing this since 2009 (On a G1) and recently heard that I'm one of the only ones who has done it (Droid).

    You will need,
    A kernel made by chevy or any other kernel with ext2 support (May need to alter guide)
    The ext2 update from here also
    *A froyo rom (I'm using bb 0.4)
    Android terminal


    *Recommended

    Debian files torrent http://torrents.thepiratebay.org/5703656/Debian_droid_android.5703656.TPB.torrent


    Flash chevys kernel + ext2 module.
    Dl and copy the debian folder to the root of the sdcard.
    Open android terminal and type
    Code:
    su
    Then
    Code:
    cd /sdcard/debian
    Then
    Code:
     sh ./debian.sh
    Then
    Code:
    bootdebian
    Then
    Code:
    start
    Now download and open up android vnc and put in

    nickname: linux
    address: localhost
    password: crabsvnc
    Color format: 24 bit
    Then press connect and Ta Da.

    Nice and simple right?



    Troubleshooting:

    Format sdcard (I had to do this alot, Thats why it got so delayed.) I'm working on this one alot.

    Make sure you installed and did everything correctly.

    MAKE SURE ALL APPS ARE ON PHONE AND NOT SDCARD. (I had to do this with androidvnc)

    This error may pop up if you do not.
    [​IMG]
    Last edited: Jul 20, 2010
  2. peterpressure
    Offline

    peterpressure New Member

    Joined:
    Dec 21, 2009
    Messages:
    247
    Likes Received:
    0
    Trophy Points:
    0
    VNC USING PORT 5901

    Much Smaller Zipped MegaUpload(1/4th the torrent size!)
    Mirror: http://www.megaupload.com/?d=90PDMS2O


    More Instructions:

    So just to Clarify, I am running BB 0.4, ChevyNo1 ULV kernel, I added ext2.zip.

    After I ext2ed it, I came up and first typed in the adb shell "/system/xbin/chevyno1/ext2" to make sure ext2 loaded properly. Than I continued with the instructions using the adb shell.

    My exact output:
    Code:
    C:\android-sdk-windows\tools>adb shell
    # su
    su
    # /system/xbin/chevyno1/ext2
    /system/xbin/chevyno1/ext2
    [B]EXT2 loaded![/B]
     
    # cd /sdcard/debian
    cd /sdcard/debian
    # sh ./debian.sh
    sh ./debian.sh
    modprobe: chdir(/lib/modules): No such file or directory
    ←[H←[Jrm failed for -f, No such file or directory
    rm failed for -f, No such file or directory
    rm failed for -f, No such file or directory
    rm failed for -f, No such file or directory
    rm failed for -f, No such file or directory
    ←[H←[Jrm failed for /system/bin/fsrw, No such file or directory
    rm failed for /system/bin/bootdebian, No such file or directory
    rm failed for /system/bin/unionfs, No such file or directory
    rm failed for -/system/bin/mountonly, No such file or directory
    Unable to chmod bootdebian: Operation not permitted
    ←[H←[J
    Debian Chroot Bootloader v0.1
    To enter the Debian Linux console just type 'bootdebian'
    # bootdebian
    bootdebian
    insmod: init_module '/system/lib/modules/ext2.ko' failed (File exists)
    modprobe: chdir(2.6.32-ulowV-1.1Ghz): No such file or directory
    net.ipv4.ip_forward = 1
    Setting /etc/resolv.conf to Google Open DNS 8.8.8.8 and 8.8.4.4
    Setting localhost on /etc/hosts
    type start to start vnc server
    localhost:/# start
    start
    Killing Xtightvnc process ID 2104
    Unknown HZ value! (94) Assume 100.
    kill: No such process
    New 'X' desktop is localhost:1
    Starting applications specified in /root/.vnc/xstartup
    Log file is /root/.vnc/localhost:1.log
    /bin/start: line 7: unexpected EOF while looking for matching `"'
    /bin/start: line 8: syntax error: unexpected end of file
    localhost:/#
    After this I VNCed using port 5901 and it works!

    I rebooted, typed it all in the android terminal emulator this time and it worked again!

    Yay it survives reboots and I can run it "on the go" !

    I am happy. Hope this helps anyone having issues.

    Now to figure out how to use this vnc app. I am used to remote desktop which is way smoother IMO.
    Last edited: Jul 22, 2010
  3. jamesw1125
    Offline

    jamesw1125 New Member

    Joined:
    Jun 10, 2010
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    0
    I still cant get this to work....I have the ext2 and a chevy kernel...I am using SS v4.5...I have formatted my sdcard like 10 times....gonna give ti another shot....also no apps on the sdcard!
  4. jamesw1125
    Offline

    jamesw1125 New Member

    Joined:
    Jun 10, 2010
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    0
    ok, i give up, oh well
  5. peterpressure
    Offline

    peterpressure New Member

    Joined:
    Dec 21, 2009
    Messages:
    247
    Likes Received:
    0
    Trophy Points:
    0
    I had the ubuntu version working, but after I rebooted my phone once, it never worked again even following the same steps again. Oh well.
  6. jddevinn
    Offline

    jddevinn New Member

    Joined:
    Jan 14, 2010
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    0
    Cant wait to try!! just have to wait a few hours till the debian file downloads... will let yall know how it turns out!
  7. peterpressure
    Offline

    peterpressure New Member

    Joined:
    Dec 21, 2009
    Messages:
    247
    Likes Received:
    0
    Trophy Points:
    0

    says 8 hours for me!
  8. billygalbreath
    Offline

    billygalbreath New Member Developer

    Joined:
    Feb 16, 2010
    Messages:
    678
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Houston, TX
    I did this back in early March. Was fun to play with for a day or two, but imho, its far too slow to be used for anything graphical (i.e., Firefox).

    I'm glad to see others interested in this idea though! Shows the world isn't indeed full of sheeple after all ;)
  9. joeybarclay
    Offline

    joeybarclay Member

    Joined:
    Jun 30, 2010
    Messages:
    708
    Likes Received:
    1
    Trophy Points:
    18
    i cant get it to work. i have kernels and everything flashed and i formated sd card and still no luck. been trying all day im givin up :( does anyone know if this works better on BB?
  10. LinkinX
    Offline

    LinkinX New Member

    Joined:
    Mar 27, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    It seems like I get it to boot but I cant connect via VNC?

    and it is on my phone not SD...

    Code:
    C:\android-sdk-windows\tools>adb shell
    # su
    su
    # cd /sdcard/debian
    cd /sdcard/debian
    # sh ./debian.sh
    sh ./debian.sh
    modprobe: chdir(2.6.32-ulowV-1.1Ghz): No such file or directory
    ←[H←[Jrm failed for -f, No such file or directory
    rm failed for -f, No such file or directory
    rm failed for -f, No such file or directory
    rm failed for -f, No such file or directory
    rm failed for -f, No such file or directory
    mkdir failed for /data/local/mnt, File exists
    ←[H←[Jrm failed for -/system/bin/mountonly, No such file or directory
    Unable to chmod bootdebian: Operation not permitted
    ←[H←[J
    Debian Chroot Bootloader v0.1
    To enter the Debian Linux console just type 'bootdebian'
    # bootdebian
    bootdebian
    link failed File exists
    insmod: init_module '/system/lib/modules/ext2.ko' failed (File exists)
    modprobe: chdir(2.6.32-ulowV-1.1Ghz): No such file or directory
    mknod: /dev/loop2: File exists
    ioctl LOOP_SET_FD failed: Device or resource busy
    net.ipv4.ip_forward = 1
    Setting /etc/resolv.conf to Google Open DNS 8.8.8.8 and 8.8.4.4
    Setting localhost on /etc/hosts
    type start to start vnc server
    
    localhost:/# start
    start
    Killing Xtightvnc process ID 1894
    Unknown HZ value! (94) Assume 100.
    
    New 'X' desktop is localhost:1
    
    Starting applications specified in /root/.vnc/xstartup
    Log file is /root/.vnc/localhost:1.log
    
    /bin/start: line 7: unexpected EOF while looking for matching `"'
    /bin/start: line 8: syntax error: unexpected end of file
    localhost:/# ps
  11. Droid_3.0
    Offline

    Droid_3.0 New Member

    Joined:
    Apr 25, 2010
    Messages:
    376
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Maryland :P
    ............ i give up tell me when this bug is fixed
  12. freeflysage
    Offline

    freeflysage New Member

    Joined:
    Nov 11, 2009
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    Exact same issue here. Followed to a T

    /sm
  13. peterpressure
    Offline

    peterpressure New Member

    Joined:
    Dec 21, 2009
    Messages:
    247
    Likes Received:
    0
    Trophy Points:
    0
    I GOT IT!

    He/She never said which port to use. The default is 5900, but when I tried 5900 it did not work, so I tried 5901 which is what I last used in the ubuntu version of this floating around.

    Worked like a charm!!!
  14. peterpressure
    Offline

    peterpressure New Member

    Joined:
    Dec 21, 2009
    Messages:
    247
    Likes Received:
    0
    Trophy Points:
    0
    So just to Clarify, I am running BB 0.4, ChevyNo1 ULV kernel, I added ext2.zip.

    After I ext2ed it, I came up and first typed in the adb shell "/system/xbin/chevyno1/ext2" to make sure ext2 loaded properly. Than I continued with the instructions using the adb shell.

    My exact output:
    Code:
    C:\android-sdk-windows\tools>adb shell
    # su
    su
    # /system/xbin/chevyno1/ext2
    /system/xbin/chevyno1/ext2
    [B]EXT2 loaded![/B]
     
    # cd /sdcard/debian
    cd /sdcard/debian
    # sh ./debian.sh
    sh ./debian.sh
    modprobe: chdir(/lib/modules): No such file or directory
    ←[H←[Jrm failed for -f, No such file or directory
    rm failed for -f, No such file or directory
    rm failed for -f, No such file or directory
    rm failed for -f, No such file or directory
    rm failed for -f, No such file or directory
    ←[H←[Jrm failed for /system/bin/fsrw, No such file or directory
    rm failed for /system/bin/bootdebian, No such file or directory
    rm failed for /system/bin/unionfs, No such file or directory
    rm failed for -/system/bin/mountonly, No such file or directory
    Unable to chmod bootdebian: Operation not permitted
    ←[H←[J
    Debian Chroot Bootloader v0.1
    To enter the Debian Linux console just type 'bootdebian'
    # bootdebian
    bootdebian
    insmod: init_module '/system/lib/modules/ext2.ko' failed (File exists)
    modprobe: chdir(2.6.32-ulowV-1.1Ghz): No such file or directory
    net.ipv4.ip_forward = 1
    Setting /etc/resolv.conf to Google Open DNS 8.8.8.8 and 8.8.4.4
    Setting localhost on /etc/hosts
    type start to start vnc server
    localhost:/# start
    start
    Killing Xtightvnc process ID 2104
    Unknown HZ value! (94) Assume 100.
    kill: No such process
    New 'X' desktop is localhost:1
    Starting applications specified in /root/.vnc/xstartup
    Log file is /root/.vnc/localhost:1.log
    /bin/start: line 7: unexpected EOF while looking for matching `"'
    /bin/start: line 8: syntax error: unexpected end of file
    localhost:/#
    After this I VNCed using port 5901 and it works!

    I than rebooted, typed it all in the android terminal emulator this time and it worked again!

    Yay it survives reboots and I can run it "on the go" !

    I am happy. Hope this helps anyone having issues.

    Now to figure out how to use this vnc app. I am used to remote desktop which is way smoother IMO.
    Last edited: Jul 21, 2010
  15. gflam
    Offline

    gflam Developer Theme Developer Developer

    Joined:
    Jun 14, 2010
    Messages:
    1,885
    Likes Received:
    11
    Trophy Points:
    38
    Location:
    Jersey
    Can't get it to work i've downloaded all the files flashed the roms and ext2 and i have the torrent file on the root of my sd card.

    I go into android terminal emulator and type the following commands

    $ export PATH=/data/local/bin:$Path
    $ su
    # /system/xbin/chevyno1/ext2

    EXT2 loaded!

    # cd /sdcard/debian
    cd: can't cd to /sdcard/debian
    #

    What is wrong? why can't it cd? please help
  16. peterpressure
    Offline

    peterpressure New Member

    Joined:
    Dec 21, 2009
    Messages:
    247
    Likes Received:
    0
    Trophy Points:
    0
    If you cannot CD to the debian directory on your SDcard, something fundamental is wrong with that folder or location. Did you try rebooting and opening astro to make sure the folder and files exist? Also, try and mount it as a USB drive in SPrecovery and see if the folder exists. I did run into your issue once and formatted my SD and tried again and it worked. I assume something is keeping your SDcard mounted and that is why you cannot CD to it.
  17. motodroid34
    Offline

    motodroid34 New Member

    Joined:
    Apr 12, 2010
    Messages:
    189
    Likes Received:
    0
    Trophy Points:
    0

    Sorry guys for my question. But....... what exactly is this for???

    any one please.

    Thanks
  18. peterpressure
    Offline

    peterpressure New Member

    Joined:
    Dec 21, 2009
    Messages:
    247
    Likes Received:
    0
    Trophy Points:
    0
    I do not have a specific reason yet, other than running an Ubuntu or Debian virtual machine off my SD card is wicked cool.

    Say you wanted to run some apps that Android does not have yet. Simply run them in a Debian virtual machine if the performance is reasonable. I think command line apps are the best bet so far. Say you wanted to convert file formats to something android can recognize? Few possible scenarios. I am sure if more people try this someone will find a use.

    Why run a Windows Virtual Machine on a Mac? Most people do it to run windows apps not available on Mac. Same could apply here.
  19. motodroid34
    Offline

    motodroid34 New Member

    Joined:
    Apr 12, 2010
    Messages:
    189
    Likes Received:
    0
    Trophy Points:
    0
    Oh ok.
    not for me them ;)

    Thanks any way.
  20. wuyanks
    Offline

    wuyanks DF News Team Premium Member

    Joined:
    Nov 6, 2009
    Messages:
    2,390
    Likes Received:
    0
    Trophy Points:
    0
    can somebody mirror the debian files? torrent stopped at 28%
Search tags for this page

debian droid

,
debian for droid x
,

debian on droid

,

debian on droid x

,
debian on motorola droid
,

droid 3 debian

,
droid debian
,

droid x debian

,
how to install debian on droid x
,
install debian on motorola droid
,
kernel by chevy with ext 2 support download for android made
,
new droid 3 debian rom