Debian on the X10

Search This thread

anantshri

Senior Member
Feb 22, 2011
687
320
Bangalore
anantshri.info
thanks, I will take a look.

I have tried other people's scripts, and modified them to add additional debugging, and no joy.

For the moment I simply created a minimal image in a tar ball and copied it over to /data/local/linux and chroot'd into that, and it works.

that's the actually concept buddy the difference is that we try to keep a .img file which is nothing but a ext2 partition on file and use loopmounting for it to be available @ /data/local/linux or what ever name you may have.

the only difference i have is i did some simple optimization on code and segregated code in 3 files start stop and cmd so as to allow person to independently work on chroot image without caring about autoclosing of terminal window.
 

Umeaboy

Senior Member
Jun 25, 2010
180
28
Umeå
OK. People in #mageia told me that there's no way that it could work, but I'll try. Any video yet that proves it working?

Sent from my X10i using XDA App
 

anantshri

Senior Member
Feb 22, 2011
687
320
Bangalore
anantshri.info
OK. People in #mageia told me that there's no way that it could work, but I'll try. Any video yet that proves it working?

Sent from my X10i using XDA App

hold on buddy.

there are very few people here who are interested in pulling Linux on Xperia so progress will be slow, besides we all have our daily job+life too.

also this is the first time i heard about mageia,

I don't think anyone has worked towards rpm based distro's....
If i get time over this weekend i might give it a try.

however just look at my ubuntu + backtrack threads they all describe how i will be working towards its (there is no vodoo magic in here. all is already open.)
 

DooMLoRD

Inactive Recognized Developer
Jul 27, 2010
13,187
39,710
Pune
hold on buddy.

there are very few people here who are interested in pulling Linux on Xperia so progress will be slow, besides we all have our daily job+life too.

also this is the first time i heard about mageia,

I don't think anyone has worked towards rpm based distro's....
If i get time over this weekend i might give it a try.

however just look at my ubuntu + backtrack threads they all describe how i will be working towards its (there is no vodoo magic in here. all is already open.)

wow! redhat based distro would be nice... may be not that useful... may be as proof-of-concept?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    [MESSAGE TO MODS, I could not include urls so have added spaces to pass spam filter.. please change?]
    Well now we finally have root on our shiny devices I decided to crack open
    the beers and get to work getting debian running on the X10..
    the process is actually pretty straight-forward.
    (as it turns out the x10's kernel already has support for most things needed
    such as the ext2 filesystem)


    -- step 1--
    firstly we need to create a debian image for the phone, there are a few already out there but you can use the following to create your own
    Code:
    apt-get install debootstrap
    dd if=/dev/zero of=debian.img seek=749999999 bs=1 count=1
    mke2fs -F debian.img
    mkdir debian
    mount -o loop debian.img debian
    debootstrap --verbose --arch armel --foreign lenny debian [ht]tp:[//]ftp. de. debian. org/debian
    umount debian

    how ever if you would prefer to use a ready built one (recomended for less techies ;) ) you can get one from: rapidshare. com/files/161776007/debian-armel-750.img.bz2

    (had to include spaces in the url to pass spam filter, could a mod please change this?)

    now copy this too the root of your sdcard and make sure its called debian.img

    -- step 2 --

    I have created a script to do most of the other work for you:

    Code:
    alias b=busybox
    export PATH=/data/local/bin:/usr/bin:/usr/sbin:/bin:$PATH
    b mknod /dev/loop0 b 7 0
    b mount -o loop,noatime /sdcard/debian.img /data/local/mnt
    echo 'nameserver 4.2.2.2' >data/local/mnt/etc/resolv.conf
    b chroot /data/local/mnt
    mount -t devpts devpts /dev/pts
    mount -t proc proc /proc
    mount -t sysfs sysfs /sys
    rm -f /etc/mtab
    ln -s /proc/mounts /etc/mtab

    put this in your sdcard to.

    -- step 3 --

    Finally in any terminal emulator cd to the location of the startdeb.sh file
    and do the following:
    Code:
    chmod  777 ./startdeb.sh
    ./startdeb.sh


    !! and your done !!
    you should now be within the debian system.. i suggest running
    Code:
    apt-get update
    and installing what ever apps you want
    (my first choices were gcc, python and tightvncserver)


    [ EXTRA ]
    now your on debian you can use
    Code:
    apt-get install tightvncserver
    to get the xwindow system and the vnc server
    now set both your HOME and USER variables
    Code:
    export HOME=/root
    export USER=root
    (or what ever user you choose)
    and run
    Code:
    tightvncserver
    (your also gonna have to download lxde and do a few other bits of setup
    have a look around for X11 "Ported" to android post on these forums)
    you could also change the config so that the desktop is displayed
    at the right size for the screen :)
    just use a vnc client from the market to connect to your GUI :D