Jump to content

Debian Lenny now running on Hero!


Guest PaulOBrien

Recommended Posts

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

Link to comment
Share on other sites

Guest danmalone72

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!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

@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?

Link to comment
Share on other sites

  • 1 month later...
Guest encrypt
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!!!

Link to comment
Share on other sites

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... :)

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 2 months later...
Guest nicandris

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
Link to comment
Share on other sites

  • 3 months later...
  • 11 months later...
Guest kanofski
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

Link to comment
Share on other sites

  • 11 months later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.