yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] Blade10:
andonnguyen said

"I've posted a 3.5GB debian image here:

http://xdaforums.com/showthread.php?t=487597"

Thanks, but this image doesnt work for me. It says the apt-get command is not found. I swapped images and the 750 image is fine with apt-get.

Thoughts?

Kieth
[G1 Android Development] dmwOtis:
Did you unpack the image first?

See the last 6 lines or so of the first post of this thread:

http://xdaforums.com/show...t=debian+phone
[G1 Android Development] brandon15811:
Debian

where is /bin/bash,there is not a /system/bin/bash either
[G1 Android Development] Nitro212:
mine is inside the /bin/

try using locate bash
[G1 Android Development] Alphacrux:
Wow I see how many of you are using Ghostwalker's script and thanking him and it just makes me really sad... :( This guy's script is simply a listing of Saurik's instructions minus the unionfs stuff. I've downloaded his scripts and a few of them are unused and not fully developed and just take up space on your hdd or g1. Not only that many of you have had to modify the usable stuff to get it working as well (bootdeb, installer.sh). I wouldn't mind so much as it does make it easier to install and use Debian, but he copies Saurik's command's almost verbatim and then barely and half-***edily thanks him in one mere comment in the script. Then he puts his own name and website on it like 4 times in "echo"s that force you to see it every time you chroot into Debian. He doesn't even mention Saurik in his how-to. If you're going to use this guy's script you should really add in Saurik's name to the fake bootloader thingy or take Mark Walker out of it... I could easily create a new script for you all that would automate Saurik's how-to without this guys name in it and that doesn't try to falsely take credit for someone else's work.
[G1 Android Development] Alphacrux:
Two things first I've been able to modify init.rc so that the ext2 image mounts on the Debian folder on boot up, however my setup is a bit different then the one you all are using in this thread so I need to modify init.rc a bit before you all can use it.

Secondly my installation of Debian seems to be working OK. I didn't use Saurik's image but I followed his directions on how to create your own. The only thing is I'm not getting internet access so I can't use apt-get for anything. Do you need to use wifi for internet access or are all of you just using the 3g cause I have yet to try it on the wifi. Does anyone know what the problem might be, I've followed Saurik's instructions to a tee in his how-to, so I should have the correct repository in my sources.list and Ive added his listed dns server ip to resolv.conf. Anyone have any ideas?
[G1 Android Development] dmwOtis:
Did you unpack and configure the image (as mentioned above your posts)?

Did you "apt-get update"?
[G1 Android Development] paopaomj:
i think you are right
[G1 Android Development] leszekr:
i have root

and the latest system update from the jf updated app.

i followed a guide on android fanatic

and the su ./installer.sh or sh installer.sh command do not work.

the following command line reads

cant open installer.sh

backtracking

i started out by installing (or trying to) busybox

did not work,

turns out the JF update i had already had this installed

any mkdir command i attempted gave me the response that the file already exists, which is true, since it is i am assuming built into my JF os

is there anything i should do regarding busybox that might affect the installation of debian?

would a solution be to downgrade my os, and install busybox manually, and then upgrade again after the install?

i also am doubting the android fanatic guide.

after seeing the saurik guide, i am thinking of deleting all files associated with AF guide, and starting over using sauriks

that is, after i get a larger sd card.

please help!

thank you.
[G1 Android Development] daftpunk6592:
New Debian installer has been released today on AF:

I have done it and it works fine. On both my ADP and t-mobile UK G1's

It's a bit smoother now.

http://www.androidfanatic.com/cms/community-forums.html?func=view&catid=9&id=2253
[G1 Android Development] beatle7777777:
What do i put under address in the Android anc APP so i can run icevm?
[G1 Android Development] unrafa:
Im surprised, saurik make this possible several months ago, and there is nothing new since then, nobody made any new to this matter, only copycats popping up. oh, well... X running on G1... easy cake and dog slow.

android looks like CRAP, because most apps force close from time to time, it is slow very slow, it is a batter killer..... android looks to me like not better than windows, looks worse. dont panic. Im a windows hater, but the fact is a java based operating system... SUCK. I hate to say that but, windows apps will always run faster than android apps. And will be less battery killer.

Thats why i would like to see native arm debian runnning on G1, with Xorg having access to the phone's screen (with no dirty and slow tricks like the VNC one) that would be the best for this phone.

is it possible?
[G1 Android Development] daftpunk6592:
UNRAFA:

it's the people like ghostwalker, jesusfreke and saurik, and more like them, that will progress this platform, in order to get the most from it, if you so desire. Some people want a phone just to make a call. Others want to push it to it's limit.

If people settled for just a wheel, we wouldn't be able to fly from New York to London.

If you see what I mean.
[G1 Android Development] oldtown1981:
Hy all.

Both installers worked for me but apt-get update or install vnc didn't work.

I get an error

Sub process gzip returned an error

Added deb http://fpt.debian.org/lenny main contrib non-free

And the deb-src with same adress to the sources.list

Apt-get clean and update are still returning this error

Any ideas?
[G1 Android Development] unrafa:
Why do i / we have to care in finding or thinking or give a solution to a problem, when i/we are not even provided with the full output error, but only the last 6 words?
[G1 Android Development] oldtown1981:
s

sorry for my incomplete post. here is the screenshot.
[G1 Android Development] unrafa:
looks to me that you have wrong lines in /etc/apt/sources.list and your lines are mixing

the words "deb http://[B]ftp[/B]" it should be "deb ftp://ftp" for an ftp address or "deb http://htp" for an htp adress

try to edit /etc/apt/sources.list and remove everything and add this lines:

deb ftp://ftp.uk.debian.org/debian/ lenny main non-free contrib

deb-src ftp://ftp.uk.debian.org/debian/ lenny main non-free contrib
[G1 Android Development] wergeld:
I am trying to edit my sources.lists file for the apt-get program. I have tried edit /etc/apt/sources.list but I get bash: edit: command not found errors. I even went waaaaay back to my university days and tried pico and it worked. So for those with issues try:

pico /etc/apt/sources.list

I am not a vi fan so that might work as well but I did not try it.

Q: How do I get my putty app on my PC to access my phone through my local WiFi? I run "su telnetd" from the root G1 terminal. Nothing happens, no command prompt after it and I cannot access the phone through putty. Any ideas?

wergeld
[G1 Android Development] oldtown1981:
is it:

deb ftp://ftp.uk.debian.org/debian/ lenny main non-free contrib

deb-src ftp://ftp.uk.debian.org/debian/ lenny main non-free contrib

or

deb ftp://ftp.uk.debian.org/debian/ lenny main contrib non-free

deb-src ftp://ftp.uk.debian.org/debian/ lenny main contrib non-free
[G1 Android Development] oldtown1981:
i found this:

# Debian Lenny

deb http://ftp.de.debian.org/debian/ lenny main contrib non-free

#deb-src http://ftp.de.debian.org/debian/ lenny main contrib non-free

but still get the same error.

gzip returned an error code (1)
[G1 Android Development] unrafa:
wergeld: telnetd &

dont let the phone sleep and then telnet the phone to port 23 from putty

the order doesn't matter will download first contrib or non-free doesnt matter.

do this in your phone terminal:

echo "deb-src ftp://ftp.uk.debian.org/debian/ lenny main contrib non-free" > /etc/apt/sources.list

echo "deb ftp://ftp.uk.debian.org/debian/ lenny main contrib non-free" >> /etc/apt/sources.list

apt-get update ; apt-get dist-upgrade

first line delete /etc/apt/sources.list and adds the first (source code repository)

second line adds the important repository.

third line, updates the package list ; and upgrades debian.

ftp.uk means United kingdom, if you replace uk with US, it will go download from us servers, es = spain servers, be = belgium etc. the country doesnt matter, all servers have same images, just ones are faster than others.

vi editor suck, apt-get install nano; its easier.
[G1 Android Development] knight4linux:
Nano is a hell of lot easier...agreed.

vi for me = litany of curse words.
[G1 Android Development] wergeld:
Right, I do start up telnetd on my phone. I get no return prompt. just looks sorta like this

#>telnetd

No prompt at all. I cannot connect to the telnet session using my phone's IP and the port number. Its wacky. I even tried it within debian, same thing.

wergeld
[G1 Android Development] julienstanford:
Thanks to JesusFreke for all his work,

The only thing I can't seem to find is a list of running programs, I'm hoping to run Openoffice with Theaurus and Spellcheck, Firefox or Gimp.

Also has anyone tested the desktop version of Fennec?
[G1 Android Development] :
Something went wrong with my install, I want to uninstall debian and start over I deleted it off my sd, but whenever I type bootdeb it still tries to boot it up, how do I remove it all the way.
[G1 Android Development] jairomeo:
I've had debian running great and all. Only issue I'm having is when I VNC into it for X-Windows. When I load the terminal in the VNC (I'm using android-vnc) some the Shift key doesnt seem to work nor do some of the alt+ symbols. Is this something that can be fixed in debian with the keys or is it a problem with the VNC app?
[G1 Android Development] berish:
has anyone tried this with 1.5? i'm hesitant to start dabbling, given my frankly appalling lack of knowledge of linux.

also, any idea of i would be able to use a bluetooth keyboard to type within debian?

thanks!
[G1 Android Development] chrisharang:
I have, and it works fine, although I prefer to use the approach using unionfs & root symlinks to be able to use it

without

being in a chroot jail. Saurik's writeup on this (which I believe most of the other instructions floating around are more or less stolen from) is excellent. (Thank you, Saurik!)

I did run into an issue with su, but that's just because the debian su (in /bin) is found before the JF1.5 version (in /system/bin) in the path, but that is easy to resolve. I like having it outside of a chroot, because you can then still access the usual locations on the phone (/sdcard, for example) easily from debian apps (bash, etc.)
[G1 Android Development] mohikanul:
Hi all i have rooted device with JF 1.5, i tryed to install debian, is started successful but i can't do nslookup.

The same problem is for all people who can't run apt-get, all hosts in sources.lists is nor resolved in IP.

i think problem is in location of binaries. please help if have any idea.

Thanks.
[G1 Android Development] mohikanul:
all solved with 1.43
[G1 Android Development] josefcrist:
i will buy a g1 right now if it supports collecting ivs
[G1 Android Development] mrandroid:
I found this site that the dude grabbed all the tutorials around and put them all together nicely... He Links back to this site, it's mainly like a tutorial site only...

He put up tutorials to:

install debian, resize the image (right on your phone, no linux computer required), and then install the gui and setup the vnc server..

It's really nice all files are hosted on the server itself.

check it out, follow tutorials 5, 6 & 7 and you'll be all set.

http://myhangoutonline.com/androids/
[G1 Android Development] screwthe49ers:
Where exactly do you enter this? There's multiple instances of admin@androidfanatic.com in there. <---(Linux/Unix noob, sorry)
[G1 Android Development] FukTheRegister:
I have installed succesfully my Debian Lenny ARMEL on my G1 with the Official Android Dev cupcake ROM from HTC.

I have also cross-compiled my module (tun.ko for openvpn) for this kernel

G1:~# uname -a
Linux G1 2.6.27-00393-g6607056 #1 PREEMPT Mon May 11 10:38:09 PDT 2009 armv6l GNU/Linux

I can connect my phone to my network trought VPN without Debian.

But I want to make a micro-server in my phone (SMS with MySQL).

In can acces to hardware with a "busybox -o bind [/dev|/sys|/proc] /data/mnt/[dev|/sys|/proc]".

In can control all leds trough /sys/class/leds/*/brigthness with "echo 0 to 255" in this file.

I think I can also control modem, wifi, bluetooth with my mounts.

Any idea to control other hardware device directly by Debian ?

And anthother question :

It's possible to remove completly Android (but keep my boot.img for the kernel) by an full Debian by an system.img ?

Thanks a lot.

(Sory I'm french, my english is poor)
[G1 Android Development] sampei7777:
Please could you give me your compiled tun.ko?

I have an HTC Magic and my kernel is 2.6.27-00393-g6607056 (the same of your).

I'm trying to connect to my network trought VPN with Debian and Openvpn installed on it, but it needs tun.ko.

How can you connect to your network trought VPN without Debian?

Thank you
[G1 Android Development] FukTheRegister:
Yes I can, This tun.ko is for the original kernel (because I test compile my own kernel, and if you have add the iptables in your kernel and compile it with the same VESION (for the wlan.ko) you just ... crash and reboot the phone.

My tun.ko for the original kernel is here :

http://www.galoula.net/fr/Tutoriels...-Modules/modules/2.6.27-00393-g6607056/tun.ko

In can connect to my VPN without debian, with the terminal.

You MUST have a "big root" (id uid=0, gid=0) for the "insmod tun.ko" command.

You can give it with "adb shell".

If you wan't to have an "big root" access directly trought the terminal emulator, you must execute an modded "su". If you want this, I can give you.
[G1 Android Development] whitemonster:
Full Instructions for installing, resizing and putting a GUI are found at http://www.myhangoutonline.com/forums/16-g1-tutorials
[G1 Android Development] FukTheRegister:
Okay, but, where is the tutorial for give an Xorg into debian (I don't ant to use the VNC).

I can boot my phone in command line (with or without Android).

If I lunch my X I have this errors :

Debian-ARMEL:/# X
_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/Debian-ARMEL:0
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6

X.Org X Server 1.4.2
Release Date: 11 June 2008
X Protocol Version 11, Revision 0
Build Operating System: Linux Debian (xorg-server 2:1.4.2-10.lenny2)
Current Operating System: Linux Debian-ARMEL 2.6.27-GALOULA_v1.001 #40 PREEMPT Fri Jul 10 17:32:44 CEST 2009 armv6l
Build Date: 11 June 2009 11:50:58AM

Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Fri Jul 10 14:34:18 2009
(==) Using config file: "/etc/X11/xorg.conf"
(EE) FBDEV(0): FBIOPUT_VSCREENINFO: Invalid argument
(EE) FBDEV(0): mode initialization failed

Fatal server error:
AddScreen/ScreenInit failed for driver 0
Debian-ARMEL:/#

My screen is completly black for few seconds, and when if back, I show And android full or partialy Image ? Strange ...

In it print after the crash this in dmesg :

[ 172.694671] msmfb_pan_display timeout waiting for frame start, 524340 524340
[ 172.996978] AKM8976 AKECS_TransRBUFF: Data not ready
[ 173.199584] AKM8976 AKECS_SetMode:dummy read to reset INT pin
[ 173.200256] AKM8976 AKECS_SetMode:after dummy read, status = 0
[ 177.694671] msmfb_pan_display timeout waiting for frame start, 524341 524341

I my /etc/X11/xorg.conf :

Section "ServerLayout"
Identifier "Default Layout"
screen 0 "Screen0" 0 0
EndSection

Section "Modes"
Identifier "MyMode"
Mode "320x480"
DotClock 26.001
HTimings 320 320 320 320
VTimings 480 480 480 480
Flags "-HSync" "-VSync"
EndMode

EndSection

Section "Device"
Identifier "Framebuffer"
Driver "fbdev"
Option "fbdev" "/dev/graphics/fb0"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Framebuffer"
Monitor "Monitor0"
EndSection

Section "Monitor"
Identifier "Monitor0"
UseModes "MyMode"
EndSection

I think my FB driver is bad.
[G1 Android Development] glock30:
How were you able to get it to work outside of chroot. I have my debian installed on a ext2 partition and would like to get access to the entire file system... Sorry if this is a very noobish question/something with a simple answer. I have been searching and trying different things now for weeks, but have been unsuccessful. Any ideas would be greatly appreciated.
[G1 Android Development] FukTheRegister:
I have make a script, he CAN acces ALL the phone device, and data exept / and /sbin

For run this script :

make an directory /system/opt/bin

copy busybox into /system/opt/bin

cd /system/opt/bin

and run busybox -install

In the first run of the script you have few error.

In the debian root, create an /system /data /cache /sqlite_stmt_journals /sdcard directory for the mounts points !

put your debian.img image in /sdcard/debian directory.

make the directory : /system/opt/mnt/Debian

I modified my script for you : it don't check the debian image in this version.

# cat /system/opt/bin/bootdeb.sh
#!/system/opt/bin/sh

# Make the system file on R/W
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system

# Test if loop is needed.
if [ ! -e /dev/loop2 ]; then
busybox mknod /dev/loop2 b 7 0
fi

# Many variables
export kit=/sdcard/debian
export bin=/system/bin
export mnt=/system/opt/mnt/Debian
export PATH=/usr/bin:/usr/sbin:/bin:$PATH
export TERM=linux
export HOME=/root
export SHELL=bash

# Premount the image on loop and check it.
busybox losetup /dev/loop2 /sdcard/debian/debian.img
#busybox mount -o bind /dev /system/opt/fsck.ext2/dev
#busybox chroot /system/opt/fsck.ext2 /fsck.ext2 /dev/loop2
#busybox umount /system/opt/fsck.ext2/dev

# Mount the image.
busybox mount /dev/loop2 $mnt

# This is for my tests for direct hardware acces.
busybox mount -o bind /dev $mnt/dev
busybox mount -o bind /sys $mnt/sys
busybox mount -o bind /proc $mnt/proc

# Mount Android on Debian
busybox mount -o bind /sqlite_stmt_journals $mnt/sqlite_stmt_journals
busybox mount -o bind /system $mnt/system
busybox mount -o bind /data $mnt/data
busybox mount -o bind /cache $mnt/cache
busybox mount -o bind /sdcard $mnt/sdcard

# FIX the "stdin: is not a tty" error in direct hadware case.
busybox mount -t devpts devpts $mnt/dev/pts

# For the network.
busybox sysctl -w net.ipv4.ip_forward=1

# For a nice output for the df command !
busybox echo -n "" >$mnt/etc/mtab
S1="/dev/loop2 $mnt ext2 rw,errors=continue 0 0"
cat /proc/mounts | while read line
do
S2="$line"
if [ "$S1" = "$S2" ]; then
break;
else
echo "$line">>$mnt/etc/mtab
fi
done

# Cleanup tmp folder.
busybox rm -rf $mnt/tmp
mkdir $mnt/tmp
# Enter Debian :-)
busybox chroot $mnt /bin/bash

# while you type "exit" the script continue here : I unmount all.
sync
busybox umount $mnt/sqlite_stmt_journals
busybox umount $mnt/system
busybox umount $mnt/data
busybox umount $mnt/cache
busybox umount $mnt/sdcard
busybox umount $mnt/dev/pts
busybox umount $mnt/dev
busybox umount $mnt/sys
busybox umount $mnt/proc
busybox umount $mnt
# If you you have propely exit all Debian process, all are unmounted succesfully
[G1 Android Development] sampei7777:
Thank you very much.

I already have su.

But after have doing "insmod tun.ko" how can I connect to my vpn without having debian installed in my htc magic?

Thank You.
[G1 Android Development] glock30:
This actually might help me. My debian is not actually installed in a image file, so I don't need to mount the image file. The way I have debian currently set up is in a folder in /systes/sd/debian. I think I can pull what I need from your script though. Thank you.

EDIT: You sir have solved my issue. Thank you very much. All I did was add a slightly modified version of this portion to my boot script and it worked like a charm. :D

# Mount Android on Debian
busybox mount -o bind /sqlite_stmt_journals $mnt/sqlite_stmt_journals
busybox mount -o bind /system $mnt/system
busybox mount -o bind /data $mnt/data
busybox mount -o bind /cache $mnt/cache
busybox mount -o bind /sdcard $mnt/sdcard
[G1 Android Development] FukTheRegister:
Yes, if you have the openvpn binary and busybox for ifconfig and route command.

Have you got this binaries ?

If yes, you CAN lunch openvpn winthout an Debian install.

But, you must have an 'solid' openvpn binary. I have this if you want.

To connect, yust type openvpn and read :-)
[G1 Android Development] FukTheRegister:
For a full acces, mount with bind option the 'dev proc sys' directory. With this you can. For exemple. Activate an LED, grab output of devices...
[G1 Android Development] sampei7777:
Yes, I understand.

Now I can connect to my vpn but I have to launch debian first end then openvpn "under" my debian inst.

Maybe with your openvpn binary could I launch openvpn directly from android?

If so, could I have this openvpn binary please?

Or do you think the debian openvpn binary is right for this?

Thank you very much.
[G1 Android Development] FukTheRegister:
My openvpn binaries are here (the official http://g1.fnord.to/crypto/ website where I find this is down ...)

http://www.galoula.net/fr/Tutoriels/HTC-DREAM-G1/FTP/Outils/openvpn_0.2.tar

This binaries Don't need an Debian install or Debian run.

You must have the good directory tree (for route and ifconfig) for this works fine.
[G1 Android Development] smsrat84:
is there anything else, other than Debian, but similar that can go on the g1? just curious
[G1 Android Development] FukTheRegister:
I think, all linux can be loaded on the HTC G1, if it's compiled for ARM ...

I think gentoo can be run natively on the G1, but the onboard compilation, are slowly ...

It's possible to run Windows Mobile (A version for ARM exist), but I don't know the boot process of them.

The HTC G1 is realy same as a mini computer. Just he's ARM architechture is the big difference than x86 in your PC.
[G1 Android Development] Proxin:
What can be done really with Debian on G1? I mean you've already got a GUI browser and fast mini-computer/phone in your hands...

I recently got Debian working again (I couldn't mount once I made my ext2 partition for apps2sd, I went to CyanogenMod and changed ext2 to ext3 and fixed it :) so now I'm wondering what I can do with it since I got it working.
[G1 Android Development] bhang:
can you say "apt get update cyanogen"
[G1 Android Development] FukTheRegister:
Idea for aircrack on HTC Dream ?

I just find that :

http://bobcopeland.com/android_wifi.html

Do you think that help for run airodump/aircrack on HTC Dream ?

Thank.