• Announcements

    • Reminder - MoDaCo position on illegal content   07/30/15

      ILLEGAL CONTENT I'd like to just reaffirm MoDaCo's position regarding piracy and illegal content in the light of some recent questions / postings. Posts will be censored by myself or my moderation team if the contain or link to: Illegal / pirated / cracked software or sites that host such softwareNintendo emulators / ROMs or sites hosting them (in light of Nintendo's legal stance)CUSTOM ROMS You may discuss and post links to custom device ROMs on MoDaCo, provided the following rules are adhered to: ROMs must not contain any illegal 3rd party software (this includes trial versions included without permission)ROMs must give full credit to the original authorISSUES If you have any issues with this policy, please contact PaulOBrien directly via PM.
    • Reminder: Selling items on the forum directly is not allowed   07/30/15

      Please note that selling items on the forum directly is not allowed by the forum rules. There is a forum for eBay auctions whereby you can list the items on eBay and link to them there. This is the ONLY forum for this type of activity. You may also advertise links to the eBay forum in your signature. Please note that selling directly in contravention of these rules will result in a warning / suspension / ban.

Debian Lenny now running on Hero!

65 posts in this topic

Posted · Report post

C:\Documents and Settings\Dan>adb shell ls -al /sdcard/debian/

drwxrwxrwx 2 1000 1000 4096 Nov 12 00:43 ←[1;34m.←[0m

drwxrwxrwx 18 1000 1000 4096 Jan 1 1970 ←[1;34m..←[0m

-rwxrwxrwx 1 1000 1000 2692 Nov 10 19:56 ←[1;32mbootdeb←[0m

-rwxrwxrwx 1 1000 1000 750000000 Jan 8 2009 ←[1;32mdebian.img←[0m

-rwxrwxrwx 1 1000 1000 102 Jan 9 2009 ←[1;32mfsrw←[0m

-rwxrwxrwx 1 1000 1000 866 Mar 13 2009 ←[1;32mmountonly←[0m

-rwxrwxrwx 1 1000 1000 420 Jan 9 2009 ←[1;32munionfs←[0m

the fsrw file is there and has the right size. i actually just booted into windows to confirm the weird output... :)

but i don't see the installer.sh? this should produce a different error, strange... anyway, if you want to try it again i wrote together the necessary steps and put the files into an archive, see attachment. use gedit for windows if the .txt is all in one line.

edit: i modded the installer.sh to work without the fsrw file, didn't see the point using it when you are root anyway? try it again please.

howto_debian_on_hero.zip

0

Share this post


Link to post
Share on other sites

Posted · Report post

Woo! worked without a flaw thank you very much!!

The lxde thing if you use the image from http://forum.xda-developers.com/showthread...;highlight=lxde lxde is pre-installed i did however encounter an error using that links image upon bootdeb i recieve:

Android directories are mounted under /android/

Type exit to end session

Make sure you do a proper exit for a clean kill of Debian!

rm: cannot remove directory `tmp': Device or resource busy

mkdir: cannot create directory `tmp': File exists

New 'X' desktop is localhost:1

Starting applications specified in /root/.vnc/xstartup

Log file is /root/.vnc/localhost:1.log

localhost:/#

Im not sure about the tmp thing what do you thinks going on there?

Thanks again for the walkthrough was real nice!

0

Share this post


Link to post
Share on other sites

Posted · Report post

Woo! worked without a flaw thank you very much!!

The lxde thing if you use the image from http://forum.xda-developers.com/showthread...;highlight=lxde lxde is pre-installed i did however encounter an error using that links image upon bootdeb i recieve:

instead of

export USER=root
cd /
rm -r -f tmp
mkdir tmp
cd /
vncserver -geometry 480x320 [/codebox]

put this into your .bashrc:

[codebox]export USER=root
rm -rf /tmp/* 2&> /dev/null
vncserver -geometry 480x320

then it won't bother you anymore.

0

Share this post


Link to post
Share on other sites

Posted · Report post

lol this sick, i am actually running a full blown ubuntu on my hero... actually it is unusable, but it starts... took me three hours to install, gonna try ubuntu-mid now :) maybe xfce later...

post-177282-1258093750_thumb.png

0

Share this post


Link to post
Share on other sites

Posted · Report post

@kendon: how did you get a 800x600 screen size? weird isn't it?

0

Share this post


Link to post
Share on other sites

Posted · Report post

@kendon: how did you get a 800x600 screen size? weird isn't it?

hhaah, nicely played!

0

Share this post


Link to post
Share on other sites

Posted · Report post

@kendon: how did you get a 800x600 screen size? weird isn't it?

no, actually it is pretty easy. started the vncserver with -geometry 800x600 and opened the vncviewer on my laptop. have you ever tried to use gnome with 320x480?

0

Share this post


Link to post
Share on other sites

Posted · Report post

lol this sick, i am actually running a full blown ubuntu on my hero... actually it is unusable, but it starts... took me three hours to install, gonna try ubuntu-mid now :) maybe xfce later...

Nice work guys. Thanks all for the info.

kendon, any success running ubuntu-mid? It looks awesome!!!

0

Share this post


Link to post
Share on other sites

Posted · Report post

could someone please upload the debian image to another file sharing site, such as megaupload, rapidshare? It seems to take forever to get a free download slot at FileFactory... :)

0

Share this post


Link to post
Share on other sites

Posted · Report post

could someone please upload the debian image to another file sharing site, such as megaupload, rapidshare? It seems to take forever to get a free download slot at FileFactory... :)

no hassle, my bad...I didn't realize an account is needed to download from FileFactory, and so many annoying ads... rapidshare is really much cleaner

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

Hmmmmm got debian lenny working! :)

AND got Gnome, KDE, IceWM, LXDE running also! ;)

TUTORIAL

Notice that i tried installing this with the default debian.img (750Mb?) but its too small for the installation so i had to resize it from here.

everything seems fine! :P a bit laggish but what the hell, why not? ;)

post-535466-1269359904_thumb.png here is an image :P

small info from androidfanatic:

IMPORTANT UPDATE: Many comments on sites that have blogged this post seem to be getting the wrong end of the stick. This is not connecting to a remote desktop on another machine! This is x11 and LXDE Desktop running LOCALLY on the G1 device, the reason I had to connect back to LOCALHOST using VNCViewer (also running LOCALLY on the device) is because there are no drivers available. This circumnavigates the need for any special drivers.

SPECIAL THANX to ghostwalker@androidfanatic that made this tutorial.

try it out! and lets hope for ubuntu :D

Edited by nicandris
0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

Got everything working, nice.

Edited by Mehumummo
0

Share this post


Link to post
Share on other sites

Posted · Report post

No. The files needed for this were already included in MCR 2.5.

Forget that link. That's about a Windows Mobile device. Hero is running Android, which is a Linux-based operating system. This is why we can use a more simple solution for running Debian, called chrooting.

I'm not sure if a noob should try this. In the worst case, you type something wrong and brick your phone. Even if everything goes well, there's just the command line interface. And although you can run a GUI in VNC session, your phone won't be able to run heavy desktop applications.

After the warnings, here's how I did it: :)

  1. Downloaded the installer from http://www.androidfanatic.com/cms/unoffici...einfo&id=21. It took a while before a download slot became available @FileFactory.
  2. Unzipped the file on my computer. This created a directory called "debian".
  3. Downloaded Loxley's bootdeb.gz (see post #14 above).
  4. Used 7-Zip to extract the bootdeb file from the gzip archive and moved it to the "debian" folder. There already was a bootdeb file which was overwritten.
  5. Replaced the contents of installer.sh in debian folder with Paul's version (copy-paste from post #4). I used Notepad++ for this so the linefeed characters would be kept in UNIX format.
  6. Moved the whole debian folder in the root directory of Hero's memory card using the data cable. After this I disconnected the cable.
  7. Opened ConnectBot in Hero, choosed local connection.
  8. Became root by typing: su -
  9. Entered the debian directory in memory card: cd /sdcard/debian
  10. Launched the installer script: sh installer.sh
  11. Entered Debian console: bootdeb
  12. Launched the setup script: /scripts/onetime.sh
  13. That's it!
After having fun with Debian console, it must be closed by typing exit. Then the chroot session will be terminated correctly.

Only steps 7,8 and 11 are required to launch Debian console again.

hay all

i have a htc hero and the modaco 2.1 rom.

and did all the above..

when i start the bootdeb script it wil hold and after a while i get this error

mount: can't setup loop device: No space left on device

/system/bin/bootdeb: cannot create /data/local/mnt/etc/resolv.conf: directory no

nexistent

mount: mounting devpts on /data/local/mnt/dev/pts failed: No such file or direct

ory

mount: mounting proc on /data/local/mnt/proc failed: No such file or directory

mount: mounting sysfs on /data/local/mnt/sys failed: No such file or directory

mount: mounting none on /data/local/mnt//tmp failed: No such file or directory

mount: mounting none on /data/local/mnt//var/log failed: No such file or directo

ry

mount: mounting none on /data/local/mnt//tmp failed: No such file or directory

chmod: /data/local/mnt//tmp: No such file or directory

mount: mounting none on /data/local/mnt//var/tmp failed: No such file or directo

ry

chmod: /data/local/mnt//var/tmp: No such file or directory

mount: mounting none on /data/local/mnt//var/lock failed: No such file or direct

ory

chmod: /data/local/mnt//var/lock: No such file or directory

Android directories are mounted under /android/


Type exit to end session

Make sure you do a proper exit for a clean kill of Debian!


chroot: can't execute '/bin/bash': No such file or directory


Shutting down Debian........

i have enouth space on my sdcard

8gb sdcard 6.85gb fat32 the rest is for fs

can someone help me with this working on this for 2 days now :rolleyes:

thanks and greets, Kanofski

0

Share this post


Link to post
Share on other sites

Posted · Report post

Can someone update the links to the debian.img file?

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2015. MoDaCo uses IntelliTxt technology.