Android @ MoDaCo: Debian Lenny now running on Hero! - Android @ MoDaCo

Jump to content

Galaxy Nexus Review
We put the Galaxy Nexus and Ice Cream Sandwich through their paces.

Google Music Launch
Google bring Music out of beta and launch their music store.

MoDaCo Plus / Ad Free
Hate ads? Want cool stuff? Sign up for a MoDaCo Plus / MoDaCo Ad Free account with Online Kitchen access!

Close
Open
Close
  • 4 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Debian Lenny now running on Hero!
-----


#1 User is offline   PaulOBrien 

  • It's My Party
  • View gallery
  • Group: Founder
  • Posts: 32,271
  • Joined: 06-November 02
  • Gender:Male
  • Location:Norwich, UK
  • Interests:Snowboarding, Arsenal FC, Mobile Phones (duh!), Fast Cars, Slow VW Campers!
  • Devices:Galaxy S II / Xoom 3G
  • Twitter:@paulobrien

Posted 28 August 2009 - 08:54 AM

Has anyone got Debian running on the Hero?

Having all sorts of issues with the modprobe, mount etc.

P

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco / Follow MoDaCo Android on Twitter - http://twitter.com/modacoandroid

Want to donate? MoDaCo is raising money the Multiple Sclerosis society.

Posted Image
0

Sponsored Links


#2 User is offline   PaulOBrien 

  • It's My Party
  • View gallery
  • Group: Founder
  • Posts: 32,271
  • Joined: 06-November 02
  • Gender:Male
  • Location:Norwich, UK
  • Interests:Snowboarding, Arsenal FC, Mobile Phones (duh!), Fast Cars, Slow VW Campers!
  • Devices:Galaxy S II / Xoom 3G
  • Twitter:@paulobrien

Posted 28 August 2009 - 02:04 PM

OK so the normal mount command won't mount debian.img, but 'busybox mount' will.

Woohoo, success!

My doing 'rm /system/bin/mount' this makes 'bootdeb' use the busybox mount instead, and hey presto! :D

P

Posted Image

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco / Follow MoDaCo Android on Twitter - http://twitter.com/modacoandroid

Want to donate? MoDaCo is raising money the Multiple Sclerosis society.

Posted Image
0


#3 User is offline   Funkyfin2000 

  • Regular
  • PipPip
  • Group: Members
  • Posts: 79
  • Joined: 05-October 03
  • Location:Stafford, Staffordshire
  • Devices:HTC Hero
  • Twitter:@Funkyfin2000

Posted 28 August 2009 - 02:15 PM

Sadly I don't have a clue what Debian is :D

HTC Hero - Orange (Debranded) | Firmware 1.5 | Kernel 2.6.27-mck-teknologist-1.92 root@neutrino | Build Number MoDaCo Custom ROM 3.2 Core | Software Version 1.0.0.A6288
0


#4 User is offline   PaulOBrien 

  • It's My Party
  • View gallery
  • Group: Founder
  • Posts: 32,271
  • Joined: 06-November 02
  • Gender:Male
  • Location:Norwich, UK
  • Interests:Snowboarding, Arsenal FC, Mobile Phones (duh!), Fast Cars, Slow VW Campers!
  • Devices:Galaxy S II / Xoom 3G
  • Twitter:@paulobrien

Posted 28 August 2009 - 02:16 PM

Here is my installer.sh btw... I copied the debian.img to /sdcard/debian/debian.img but everything else to a new directory called /data/debian. This allows chmod 4755 on the installer.sh file.

I used the 2.1 zip from here.

P

su <./fsrw

modprobe ext2

clear

rm -f /data/local/bin/fsrw
rm -f /data/local/bin/bootdeb
rm -f /data/local/bin/unionfs
rm -f /data/local/bin/installer.sh
rm -f /data/local/bin/mountonly

mkdir /data/local/mnt

clear

cp -f fsrw /system/bin
cp -f bootdeb /system/bin
cp -f unionfs /system/bin
cp -f installer.sh /system/bin
cp -f mountonly /system/bin

cd /sdcard/debian

chmod 777 *

cd /system/bin/

chmod 4777 *

cd /

clear

echo " "
echo "VERSION 2.1"
echo "Custom Debian Bootloader is now installed! Quick huh?"
echo "This process does NO damage to your Android underlying OS!"
echo " "
echo "Courtesy of http://www.androidfanatic.com"
echo "Installer by Mark Walker (ghostwalker)"

echo " "

echo "To enter the Debian Linux console just type 'bootdeb'"
echo "PS: Be sure to run /scripts/onetime.sh as root from the shell after your FIRST 'boot'."

:D

P

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco / Follow MoDaCo Android on Twitter - http://twitter.com/modacoandroid

Want to donate? MoDaCo is raising money the Multiple Sclerosis society.

Posted Image
0


#5 User is offline   bobbymilla 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 19-October 09
  • Devices:HTC Hero

Posted 19 October 2009 - 11:16 PM

Hey Paul,

Ive run your installer.sh script on my hero but im still getting mount (file or directory not found) errors when I run dootdeb. I'd really appreciate it if you could post a quick rundown of how to install debian on the Hero. I know there is a guide for installing onto the G1, but is the process the same? :)

Thanks in advance!!

This post has been edited by bobbymilla: 19 October 2009 - 11:17 PM

0


#6 User is offline   drewstiff 

  • Newbie
  • Pip
  • Group: MoDaCo Ad Free
  • Posts: 33
  • Joined: 16-September 09
  • Gender:Male
  • Devices:Galaxy Nexus

Posted 20 October 2009 - 10:00 AM

I decided to give this a try last night - I put the debian.img into /sdcard/debian and the other files into /data/debian. I then pasted your code into a text file and pushed it to /data/debian/installer.sh.

I had to edit the installer.sh in vi (1st use of vi evar!) to remove the ^M at the end of each line which I believe was due to me creating the file in Windows.

I then did a chmod 4755 on the installer.sh and ran it....

...but got the following (this is from adb shell but it seemed the same when running it via a local Connectbot connection on the phone):

./installer.sh
Filesytem remounted as read/write
modprobe: chdir(2.6.27-0078c992): No such file or directory
←[H←[Jmkdir: cannot create directory '/data/local/mnt': File exists
←[H←[J←[H←[J
VERSION 2.1
Custom Debian Bootloader is now installed! Quick huh?
This process does NO damage to your Android underlying OS!

Courtesy of [url="http://www.androidfanatic.com"]http://www.androidfanatic.com[/url]
Installer by Mark Walker (ghostwalker)

To enter the Debian Linux console just type 'bootdeb'
PS: Be sure to run /scripts/onetime.sh as root from the shell after your FIRST '
boot'.

I guessed the "no such file or directory" error near the start is due to the script trying to remove some files that aren't there (guesswork as I am by no means a linux/script-master!) and for the "File exists" error, I presumed it shouldn't be a problem if the thing we are trying to create is already there, and so I tried running 'bootdeb'!

This is what I got in return:

bootdeb
modprobe: chdir(2.6.27-0078c992): No such file or directory
←[H←[JAndroid Filesytem remounted as read/write
mknod: /dev/loop2: File exists
←[H←[J
               a888a
             d888888b
             8P YP Y88
             8|o||o|88
             8.    .88
             8 ._.  Y8.
            d/       8b.
          .dP   .     Y8b.
         d8:         ::88b.
        d8             Y88b
       :8P             :888
        8a.    :      _a88P
      ._/ Yaa_ :    .| 88P|
      \    YP        | 8P  \.
      /     \._____.d|    .|
       --..__)888888P ._.|


mount: cannot setup loop device: No such file or directory
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
Custom Linux Pseudo Bootstrapper V2.1 - by Mark Walker
WEB: [url="http://www.androidfanatic.com"]http://www.androidfanatic.com[/url]
EML: [email protected]

Starting init process
INIT: Debian booting.....
Running Linux Kernel
net.ipv4.ip_forward = 1
AutoMounter started
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........
Processes killed......
Loopback device shutdown - success
Debian down
Coded by Mark Walker
[url="http://www.androidfanatic.com"]http://www.androidfanatic.com[/url]
admin.androidfanatic.com

Rebooting device to ensure clean takedown.........


...and then my phone rebooted itself. Paul do you have any idea what I'm doing wrong? I don't know enough to have written the script myself but I believe I'm capable enough to be attempting it by ripping off your own script so I hope you can help out :)

[BTW big love for the sick Hero ROM, and for sorting the voda/peep issue! I think there will be a donation coming your way regardless, but especially if I can get this working!]

0


#7 User is offline   iNasar 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 11
  • Joined: 10-October 09
  • Gender:Male
  • Location:Lahore Pakistan

Posted 20 October 2009 - 11:39 AM

View Postdrewstiff, on Oct 20 2009, 16:00, said:

I decided to give this a try last night - I put the debian.img into /sdcard/debian and the other files into /data/debian. I then pasted your code into a text file and pushed it to /data/debian/installer.sh.

I had to edit the installer.sh in vi (1st use of vi evar!) to remove the ^M at the end of each line which I believe was due to me creating the file in Windows.

I then did a chmod 4755 on the installer.sh and ran it....

...but got the following (this is from adb shell but it seemed the same when running it via a local Connectbot connection on the phone):

./installer.sh
Filesytem remounted as read/write
modprobe: chdir(2.6.27-0078c992): No such file or directory
←[H←[Jmkdir: cannot create directory '/data/local/mnt': File exists
←[H←[J←[H←[J
VERSION 2.1
Custom Debian Bootloader is now installed! Quick huh?
This process does NO damage to your Android underlying OS!

Courtesy of [url="http://www.androidfanatic.com"]http://www.androidfanatic.com[/url]
Installer by Mark Walker (ghostwalker)

To enter the Debian Linux console just type 'bootdeb'
PS: Be sure to run /scripts/onetime.sh as root from the shell after your FIRST '
boot'.

I guessed the "no such file or directory" error near the start is due to the script trying to remove some files that aren't there (guesswork as I am by no means a linux/script-master!) and for the "File exists" error, I presumed it shouldn't be a problem if the thing we are trying to create is already there, and so I tried running 'bootdeb'!

This is what I got in return:

bootdeb
modprobe: chdir(2.6.27-0078c992): No such file or directory
←[H←[JAndroid Filesytem remounted as read/write
mknod: /dev/loop2: File exists
←[H←[J
               a888a
             d888888b
             8P YP Y88
             8|o||o|88
             8.    .88
             8 ._.  Y8.
            d/       8b.
          .dP   .     Y8b.
         d8:         ::88b.
        d8             Y88b
       :8P             :888
        8a.    :      _a88P
      ._/ Yaa_ :    .| 88P|
      \    YP        | 8P  \.
      /     \._____.d|    .|
       --..__)888888P ._.|
mount: cannot setup loop device: No such file or directory
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
Custom Linux Pseudo Bootstrapper V2.1 - by Mark Walker
WEB: [url="http://www.androidfanatic.com"]http://www.androidfanatic.com[/url]
EML: [email protected]

Starting init process
INIT: Debian booting.....
Running Linux Kernel
net.ipv4.ip_forward = 1
AutoMounter started
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........
Processes killed......
Loopback device shutdown - success
Debian down
Coded by Mark Walker
[url="http://www.androidfanatic.com"]http://www.androidfanatic.com[/url]
admin.androidfanatic.com

Rebooting device to ensure clean takedown.........


...and then my phone rebooted itself. Paul do you have any idea what I'm doing wrong? I don't know enough to have written the script myself but I believe I'm capable enough to be attempting it by ripping off your own script so I hope you can help out :)

[BTW big love for the sick Hero ROM, and for sorting the voda/peep issue! I think there will be a donation coming your way regardless, but especially if I can get this working!]


paul not that i doubt your intentions or your reasons for doing this but why would you want lenny on hero?

daymn. thats some sic modding!

0


#8 User is offline   Loxley 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 43
  • Joined: 20-October 09
  • Devices:Hero

Posted 20 October 2009 - 12:23 PM

View Postdrewstiff, on Oct 20 2009, 11:00, said:

This is what I got in return:
mount: cannot setup loop device: No such file or directory


Would you please change the line "mknod /dev/loop2 b 7 0" in bootdeb to "mknod /dev/loop0 b 7 0" and try again?

HTH

Niki

0


#9 User is offline   drewstiff 

  • Newbie
  • Pip
  • Group: MoDaCo Ad Free
  • Posts: 33
  • Joined: 16-September 09
  • Gender:Male
  • Devices:Galaxy Nexus

Posted 20 October 2009 - 01:06 PM

View PostLoxley, on Oct 20 2009, 13:23, said:

Would you please change the line "mknod /dev/loop2 b 7 0" in bootdeb to "mknod /dev/loop0 b 7 0" and try again?

HTH

Niki



Got pretty much the same result, but I will post it here in case you spot something I missed:
bootdeb
modprobe: chdir(2.6.27-0078c992): No such file or directory
←[H←[JAndroid Filesytem remounted as read/write
mknod: /dev/loop2: File exists
←[H←[J
               a888a
             d888888b
             8P YP Y88
             8|o||o|88
             8.    .88
             8 ._.  Y8.
            d/       8b.
          .dP   .     Y8b.
         d8:         ::88b.
        d8             Y88b
       :8P             :888
        8a.    :      _a88P
      ._/ Yaa_ :    .| 88P|
      \    YP        | 8P  \.
      /     \._____.d|    .|
       --..__)888888P ._.|


mount: cannot setup loop device: No such file or directory
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
Custom Linux Pseudo Bootstrapper V2.1 - by Mark Walker
WEB: [url="http://www.androidfanatic.com"]http://www.androidfanatic.com[/url]
EML: [email protected]

Starting init process
INIT: Debian booting.....
Running Linux Kernel
net.ipv4.ip_forward = 1
AutoMounter started
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........
Processes killed......
Loopback device shutdown - success
Debian down
Coded by Mark Walker
[url="http://www.androidfanatic.com"]http://www.androidfanatic.com[/url]
admin.androidfanatic.com

Rebooting device to ensure clean takedown.........


Thanks for your help though - Any other ideas?

0


#10 User is offline   Loxley 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 43
  • Joined: 20-October 09
  • Devices:Hero

Posted 20 October 2009 - 01:30 PM

View Postdrewstiff, on Oct 20 2009, 14:06, said:

mknod: /dev/loop2: File exists
Thanks for your help though - Any other ideas?


The error "mknod: /dev/loop2: File exists" means you didn't change /dev/loop2 to /dev/loop0. You might want to try again.

0


#11 User is offline   drewstiff 

  • Newbie
  • Pip
  • Group: MoDaCo Ad Free
  • Posts: 33
  • Joined: 16-September 09
  • Gender:Male
  • Devices:Galaxy Nexus

Posted 20 October 2009 - 02:53 PM

View PostLoxley, on Oct 20 2009, 14:30, said:

The error "mknod: /dev/loop2: File exists" means you didn't change /dev/loop2 to /dev/loop0. You might want to try again.


Ah I had edited the bootdeb in /data/debian/ but then ran bootdeb without running the installer.sh again first, so in essence it was the old version of the file!

Now that I've done that it is working perfectly - that is awesome!

Just gotta work out proper reasons for having debian on my phone now - I'm very much the "Wow you can do that? I have no reason for it but let's try it!" kinda guy.


Quick question Loxley - what did we change by altering that "mknod..." line and why was it different for me than for Paul? Just want to try and learn whilst I'm at it :)


Thanks very much for your help!

0


#12 User is offline   Loxley 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 43
  • Joined: 20-October 09
  • Devices:Hero

Posted 20 October 2009 - 02:59 PM

Hi there, I did some cleanup on the bootdeb file. Could someone please point me to the right place to discuss this?
Until then you might want to try this one. I tested it on Modaco 2.2.

HTH

Niki

Edit: Now makes sure that you are root and allows you to mount the sdcard on your pc after exiting debian.

#!/system/bin/sh

# Based on Saurik's remount.sh  - modified by Mark Walker of [url="http://www.androidfanatic.com"]http://www.androidfanatic.com[/url]
# Email [email protected]

# Further work by K.-M. Hansche
# No more reboot
# Loopdevice corrected
# Check for root
# Free loopdevice

noroot(){
	echo "Please become root!"
	exit 0
}
id | grep uid=0 || noroot

export kit=/sdcard/debian
export bin=/system/bin
export mnt=/data/local/mnt

export PATH=$bin:/usr/bin:/usr/sbin:/bin:$PATH
export TERM=linux
export HOME=/root

[ -b /dev/loop0 ] || mknod /dev/loop0 b 7 0

clear
echo " "
echo "               a888a      "
echo "             d888888b      "
echo "             8P YP Y88      " 
echo "             8|o||o|88       "
echo "             8.    .88       "
echo "             8 ._.  Y8.      "
echo "            d/       8b.     "
echo "          .dP   .     Y8b.    "
echo "         d8:         ::88b.   "
echo "        d8             Y88b   "
echo "       :8P             :888   "
echo "        8a.    :      _a88P   "
echo "      ._/ Yaa_ :    .| 88P|   "
echo "      \    YP        | 8P  \. "
echo "      /     \._____.d|    .|  "
echo "       --..__)888888P ._.|"
echo " "
echo " "

mount -o loop,noatime $kit/debian.img $mnt

mount -t devpts devpts $mnt/dev/pts
mount -t proc proc $mnt/proc
mount -t sysfs sysfs $mnt/sys

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

#After exit command is executed clear it all up
echo " "

echo "Shutting down Debian........"
[ -d /data/local/mnt/bin ] || exit 0

fuser -k -m /data/local/mnt/
sleep 2
fuser -KILL -k -m /data/local/mnt/
umount /data/local/mnt/sys /data/local/mnt/proc /data/local/mnt/dev/pts 
umount -d /data/local/mnt

[ ! -d /data/local/mnt/bin ] || echo "I'm sorry, but something went wrong. You might want to reboot."


This post has been edited by Loxley: 20 October 2009 - 05:35 PM

0


#13 User is offline   drewstiff 

  • Newbie
  • Pip
  • Group: MoDaCo Ad Free
  • Posts: 33
  • Joined: 16-September 09
  • Gender:Male
  • Devices:Galaxy Nexus

Posted 20 October 2009 - 03:18 PM

View PostLoxley, on Oct 20 2009, 15:59, said:

Hi there, I did some cleanup on the bootdeb file. Could someone please point me to the right place to discuss this?
Until then you might want to try this one. I tested it on Modaco 2.2.

HTH

Niki

#!/system/bin/sh

# Based on Saurik's remount.sh  - modified by Mark Walker of [url="http://www.androidfanatic.com"]http://www.androidfanatic.com[/url]
# Email [email protected]

# Further work by K.-M. Hansche:
# No more reboot
# Dont't remount /system rw, there's no need to
# Loopdeviceusage corrected
# Get rid of all debian processes after exit

export kit=/sdcard/debian
export bin=/system/bin
export mnt=/data/local/mnt

export PATH=$bin:/usr/bin:/usr/sbin:/bin:$PATH
export TERM=linux
export HOME=/root

[ -b /dev/loop0 ] || mknod /dev/loop0 b 7 0

clear
echo " "
echo "               a888a      "
echo "             d888888b      "
echo "             8P YP Y88      " 
echo "             8|o||o|88       "
echo "             8.    .88       "
echo "             8 ._.  Y8.      "
echo "            d/       8b.     "
echo "          .dP   .     Y8b.    "
echo "         d8:         ::88b.   "
echo "        d8             Y88b   "
echo "       :8P             :888   "
echo "        8a.    :      _a88P   "
echo "      ._/ Yaa_ :    .| 88P|   "
echo "      \    YP        | 8P  \. "
echo "      /     \._____.d|    .|  "
echo "       --..__)888888P ._.|"
echo " "
echo " "

mount -o loop,noatime $kit/debian.img $mnt

mount -t devpts devpts $mnt/dev/pts
mount -t proc proc $mnt/proc
mount -t sysfs sysfs $mnt/sys

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

#After exit command is executed clear it all up
echo " "

echo "Shutting down Debian........"
[ -d /data/local/mnt/bin ] || exit 0

#Terminate all Debian processes, give them tow seconds, then kill them
fuser -k -m /data/local/mnt/
sleep 2
fuser -KILL -k -m /data/local/mnt/

umount /data/local/mnt/sys /data/local/mnt/proc /data/local/mnt/dev/pts /data/local/mnt

#This will give fair warnining if a process started in the chroot couldn't be killed
[ ! -d /data/local/mnt/bin ] || echo "I'm sorry, but something went wrong. You might want to reboot."



Wow! I had already got it working but wouldn't mind using this instead as it won't try and reboot each time (doesn't succeed from Connectbot prompt but still slightly irritating) plus I'd quite like to be using a script adapted for this purpose (putting it on a Hero). I presume I just need to go through the whole process (inc. ./installer.sh) again using this bootdeb?

Quick question though: As I use Windows, I tend to find that if I copy and paste some text from this site into a text file it tends to have "^M" (carriage returns?) at the end of each line. Is there a way to either stop this from happening, or to easily remove them before pushing the file onto my phone? Would prefer if the answer wasn't "use a Linux PC instead"! :)

0


#14 User is offline   Loxley 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 43
  • Joined: 20-October 09
  • Devices:Hero

Posted 25 October 2009 - 05:28 PM

That's my final bootdeb: Attached File  bootdeb.gz (1.12K)
Number of downloads: 402
It mounts important android directories under /android, uses tmpfs for directories containing temporary files, really kills all running debian programs on shutdown, …

Changed:
  • Rebuild resolv.conf on boot(deb) -> Makes debian use current dns-servers.
  • Fix building of resolv.conf.
  • Enlarge ramdisks.
Enjoy.

This post has been edited by Loxley: 04 November 2009 - 05:37 AM

0


#15 User is offline   drewstiff 

  • Newbie
  • Pip
  • Group: MoDaCo Ad Free
  • Posts: 33
  • Joined: 16-September 09
  • Gender:Male
  • Devices:Galaxy Nexus

Posted 29 October 2009 - 01:19 PM

View PostLoxley, on Oct 25 2009, 18:28, said:

That's may final bootdeb: Attachment bootdeb.gz.
It mounts important android directories under /android, uses tmpfs for directories containing temporary files, really kills all running debian programs on shutdown, …

Enjoy.


That's awesome Loxley, thanks very much. Just seems a lot 'cleaner' than the original!

0


#16 User is offline   solarian_storm 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 02-November 09
  • Devices:HTC Hero

Posted 02 November 2009 - 01:39 PM

Hi all,

I'm running MoDaCo Custom ROM 2.5. Do I need to install version 2.8 to run Debian Linux?
My second question would be, how do I install Debian Linux safely? I have searched on the internet for a guide on how to do this. I found one for a different HTC device, but I'm not to sure about this. If you are interested here is the link: http://www.geekzone.co.nz/barf/985 . Is there anyone who knows a noob guide on the internet, or is anyone willing to make one? I'd really like to try this. The custom ROM was installed with a guide from here too which made it quite simple for me :D

best regards,

Solarian

0


#17 User is offline   Tragos 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 02-November 09
  • Devices:HTC Hero

Posted 03 November 2009 - 05:16 PM

View Postsolarian_storm, on Nov 2 2009, 15:39, said:

I'm running MoDaCo Custom ROM 2.5. Do I need to install version 2.8 to run Debian Linux?

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

View Postsolarian_storm, on Nov 2 2009, 15:39, said:

My second question would be, how do I install Debian Linux safely? I have searched on the internet for a guide on how to do this. I found one for a different HTC device, but I'm not to sure about this. If you are interested here is the link:

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.

View Postsolarian_storm, on Nov 2 2009, 15:39, said:

Is there anyone who knows a noob guide on the internet, or is anyone willing to make one? I'd really like to try this. The custom ROM was installed with a guide from here too which made it quite simple for me :P


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: :D
  • Downloaded the installer from http://www.androidfanatic.com/cms/unoffici...einfo&id=21. It took a while before a download slot became available @FileFactory.
  • Unzipped the file on my computer. This created a directory called "debian".
  • Downloaded Loxley's bootdeb.gz (see post #14 above).
  • 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.
  • 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.
  • Moved the whole debian folder in the root directory of Hero's memory card using the data cable. After this I disconnected the cable.
  • Opened ConnectBot in Hero, choosed local connection.
  • Became root by typing: su -
  • Entered the debian directory in memory card: cd /sdcard/debian
  • Launched the installer script: sh installer.sh
  • Entered Debian console: bootdeb
  • Launched the setup script: /scripts/onetime.sh
  • 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.

0


#18 User is offline   kendon 

  • Addict
  • PipPipPipPipPip
  • Group: Members
  • Posts: 922
  • Joined: 13-March 06
  • Devices:HTC Hero, ZTE Blade

Posted 03 November 2009 - 07:28 PM

View PostTragos, on Nov 3 2009, 18:16, said:

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

thx for the writeup, really nice. just tried, everything works fine, apart from the dns servers. somewhere i read that changes were made, anyway, the /etc/resolv.conf contains:

localhost:~# cat /etc/resolv.conf 
10.74.83.22
192.168.1.1
193.254.160.1


and should read:

localhost:~# cat /etc/resolv.conf 
nameserver 192.168.1.1
(other servers if needed)


then apt-get update downloads the indexes, but then segfaults:

localhost:~# echo "nameserver 192.168.1.1" > /etc/resolv.conf 
localhost:~# apt-get update
Get:1 [url="http://ftp.de.debian.org"]http://ftp.de.debian.org[/url] lenny Release.gpg [1032B]
Get:2 [url="http://ftp.de.debian.org"]http://ftp.de.debian.org[/url] lenny Release [73.6kB]
Ign [url="http://ftp.de.debian.org"]http://ftp.de.debian.org[/url] lenny/main Packages/DiffIndex
Get:3 [url="http://ftp.de.debian.org"]http://ftp.de.debian.org[/url] lenny/main Packages [6703kB]
Fetched 6777kB in 42s (161kB/s)                                                                                                                
Segmentation faultsts... 99%


anyone? :D

This post has been edited by kendon: 03 November 2009 - 07:29 PM

0


#19 User is offline   Loxley 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 43
  • Joined: 20-October 09
  • Devices:Hero

Posted 04 November 2009 - 05:42 AM

Hi Kendon!

View Postkendon, on Nov 3 2009, 20:28, said:

then apt-get update downloads the indexes, but then segfaults:
anyone? :D


I fixed the resolv.conf issue. Unfortunately I can't reproduce the segfault.
I enlarged the ramdisks to 25% of memory, perhaps that might fix it. Could you redownload my bootdeb and try again, please?

HTH

Niki

0


#20 User is offline   kendon 

  • Addict
  • PipPipPipPipPip
  • Group: Members
  • Posts: 922
  • Joined: 13-March 06
  • Devices:HTC Hero, ZTE Blade

Posted 04 November 2009 - 02:39 PM

View PostLoxley, on Nov 4 2009, 06:42, said:

Hi Kendon!
I fixed the resolv.conf issue. Unfortunately I can't reproduce the segfault.
I enlarged the ramdisks to 25% of memory, perhaps that might fix it. Could you redownload my bootdeb and try again, please?

HTH

Niki

i would love to, a link might help...? :D

0


Sponsored Links

Share this topic:


  • 4 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2012. MoDaCo uses IntelliTxt technology. Privacy Policy / Contact Details.

Skin and Language

Sign in here


Sign in options
Log in with Facebook Log in with Twitter   Go to advanced login Register Now!