yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] olvap377:
any step b step instructions?

please help me out

http://xdaforums.com/showthread.php?p=5486034#post5486034
[G1 Android Development] Macrophage001:
So I guess the people that actually got this running cant help out others?
[G1 Android Development] Macrophage001:
New instructions

I found a link to a simpler tut

http://www.androidfanatic.com/cms/community-forums.html?func=view&catid=9&id=2248

it says that I need modded firmware from JF but I think i already have the latest so I dont need to do that right?
[G1 Android Development] Firerat:
Hi, I have just jumped back onto the end of this thread, I did have it installed ages ago ( around OP date ).

I will be installing again now :) and will be happy to help where I can

over the last few days I have installed quite a few of the Eclair ROMS

but I have just this minute flashed Super D 1.8 ( I miss video playback )

so going to setup, have a little play etc

until then, post any specific problems you are having and I will explore the possible solutions as I do my install
[G1 Android Development] Firerat:
as long as you have root you should be fine
[G1 Android Development] Macrophage001:
Thanks man and yeah I tried it but im starting to have problems with it.

su

# cd /sdcard/debian/
# chmod 4755 *
# Unable to chmod bootdeb: Operation not permitted

I tried again by putting su before the chmod in the chmod 4755 line and it just said

Permission denied

so lost lol...
[G1 Android Development] Firerat:
do

su
find / -name foobar

not expecting it to find anything, but if you get a whole load of permission denied it tells us you haven't got root.

look for your SU permissions app, it could be that it is set to always deny
[G1 Android Development] Macrophage001:
k will try asap
[G1 Android Development] Macrophage001:
k:

$ su
# find / -name foobar
find: /proc/338: no such file or directory
find: /proc/425: no such file or directory

It seems like I do have root since no permission denied came up.

is there another command that does the same as chmod 4755?
[G1 Android Development] kR105!:
It is because the sdcard is formated in fat32 and that filesystem doesn't support permissions like extX..

Just try this:

# cd /sdcard/debian

# sh ./installer.sh

# exit

(the installer will load)

# sh bootdeb

(execute the onetime script and you're done!)
[G1 Android Development] Firerat:
yeap, the only thing I can think of at the moment is your ROMs linux has a SUID ( set user ID ) restriction

try

chmod 0755 *

if that works let me know what ROM you are using and I'll look into it

edit: thinking about it, if that works its fine, you will just need to be root ( with su ) to run the scripts, which isn't all that big a problem
[G1 Android Development] Macrophage001:
thanks man that helped lots =)....

but now it just rebooted my fone.

btw how do you execute the onetime script?

is it the same way as the installer.sh?
[G1 Android Development] Firerat:
yes, its a shell script so do

sh /scripts/onetime.sh

personally I would do

cat /scripts/onetime.sh

review what it wanted to do then

cat /scripts/onetime.sh|sh

the second time round, use the ball (up) and just add the |sh on the end ;)

this does depend on the shell, I have found ash on most of the roms

ash also lets you use tab completion ;)

http://www.redhat.com/docs/manuals/...tarted-guide/s1-managing-command-history.html
[G1 Android Development] Macrophage001:
Ok so I just restarted this.

I just did the:

sh ./installer.sh

now im typing in exit

I dont think it installed correctly because I saw some errors after i pressed enter.

I typed in

sh bootdeb

I dont think this is gunna work for me. -.- crap...
[G1 Android Development] Firerat:
finally got it downloaded

the error was no /bin/bash

I'm going to mount the debian image on a loop and see what its trying to do
[G1 Android Development] olvap377:
but this is native isn't it whih would mean that there isnt any mounting or anything. we should be able to boot into debian without android running. like the vid in my signature. i have starteed a thread related to this in hope that soe one will help us out because native debian would let us achieve great things

here is thread

http://xdaforums.com/showthread.php?p=5486034#post5486034

soo read all of the information ive gathered and ull aunderstand what im trying to achieve

p.s xdanadroid has just gotten an cab for win mobile devices that lets them dual boot into android

vid http://www.youtube.com/watch?v=Nvj4ObHmxCI

is it alot harder for us to dual boot into debian considering all that would be required is a small change in the recobvery?
[G1 Android Development] Macrophage001:
Ok so now its working differently on the Super D 1.8.

all I have to do is type installer.sh without sh at the beginning and it installs(i think)

..its still not working though. I wanna get a logcat but theres one more problem....I dont know how..=P
[G1 Android Development] Firerat:
nope

I have got this working 'as is'

the problem I had was no loopback support in my mount command, but I had loopback in busybox mount

find /system -name mount

if you get two like this

you can 'fix' with

busybox mount -o remount -rw /system
mv /system/bin/mount /system/bin/mount.bak
busybox mount -o remount -ro /system

do mv /system/bin/mount.bak /system/bin/mount

to reverse

haven't look at it fully but the busybox mount seems better

and I haven't had any problems rebooting etc

alternatively,

cd /sdcard/debian
sed -i s/^mount/busybox\ mount/ bootdeb

will edit the bootdeb script substituting mount (if it is at the start of the line) with busybox mount

or you could edit it manually,

btw Macrophage001, just curious what do you want to do with this ?
[G1 Android Development] Macrophage001:
just explore. I wanna learn as much as I can about this.

thanks again for all the help btw you two are great.

besides ive always liked Debian and linux but have never decided to fully change OS's so I just use VMware but there are some compatibility issues so I just resort to my phone since its much more compatible than Using it on VMware

(or at least, can be made to be more compatible) ^^
[G1 Android Development] Firerat:
ahh, ok so you just want to mess with linux

I have used VMware for years, never really had any compatibility problems running all kinds of guests, win98/nt4/xp/vista/all sorts of linux.

but it was Linux Host ;)

why not just partition your drive up and dual boot?

or get a second Hard Drive?
[G1 Android Development] Macrophage001:
true ima try the dual boot. I have no cash for a new hardrive lol
[G1 Android Development] Macrophage001:
hmmm now it doesnt wanna work.

the installer i mean.

I tried typing:

sh ._installer.sh

sh installer.sh

installer.sh

none of them worked.

Most likely im doing something really wrong.

If someone can post instructions on how they got it working on their G1's. It would be much appreciated :)
[G1 Android Development] Firerat:
need to know where it fails

read the installer.sh and bootdeb files and type each command in terminal

I suspect the problem is with your mount not supporting loopback

actually, scrub that

do

sh installer.sh 2> installer.log
sh bootdeb 2> bootdeb.log

let me know what errors you get in the logs with

grep -Hv not *.log

the grep is just to ignore the junk you get from the script's ";" eol hack
[G1 Android Development] Macrophage001:
wouldnt I have to rename the files?

or should I just use the old files that the debian originally came with?

I tried with original files

it all came out good until I reached the grep code.

so I did this:

# cd /sdcard/
# vi installer.log //Made the log files.
# vi bootdeb.log
# sh installer.sh 2> installer.log
# sh bootdeb 2> bootdeb.log
# grep -Hv not *.log
bootdeb.log:sh: Can't open bootdeb
installer.sh:sh: Can't open installer.sh
# vi installer.log //checked to see if it logged and it did

I'ma continue with the setup process.
[G1 Android Development] Firerat:
hehe

do

cd debian ;)
[G1 Android Development] Macrophage001:
ok the same thing happened again.

should I put the log files in the debian folder? cuz they didnt pick anything up except for

sh: Can't open installer.sh

sh: Can't open bootdeb
[G1 Android Development] Firerat:
sorry, I should have been clearer.

the log is working fine

you need to be in the debian folder

the 'logs' are the output of stderr, they are telling you the sh can't find the files, which makes sense if you only did cd /sdcard

"2>" is telling the shell to dump stderr into the 'log' files, the shell will create them.

if after being in debian folder you are still having problems look at the .logs, they will indicate what the problem is
[G1 Android Development] Macrophage001:
Oh ok. Yeah i get it now. so it makes the logs when you type in

sh installer.sh 2> installer.log etc..

damn im getting a headache lol -.-

actually yu know what.

Ima leave this alone for alittle while. my fone is starting to act strange. maybe its cuz I dont have enough mem on my stick or something but yeah =/ once I get a new mem stick i'll start this again.
[G1 Android Development] Rapax:
Hmmm...I'm having some weird trouble when trying to install on my G1 (rooted, CM 4.2.14.1, orange Switzerland)

I've downloaded the files from here - > http://www.androidfanatic.com/cms/community-forums.html?func=view&catid=9&id=2248

and I'm following the instructions, using bash on the G1.

'chmod 4755 *' gets me an "Operation not permitted", even when done as root ('su').

Simple 'chmod 755 *' works, and the installer.sh then runs without any error messages, but when I run bootdeb, it quickly fails, and returns a reboot command to the G1.

EDIT: just noticed; after 'chmod 755 *' in the debain directory, 'ls -l' shows all files with '----r--r--' permissions. That can't be right. Something weird going on here.

EDIT2: carefully watching the boot sequence of bootdeb shows that it fails due to chroot not being found.

Any hints?
[G1 Android Development] Firerat:
the 4 in chmod 4755 sets a permision called setuid, which isn't supported on fat32

all this setuid does is let a user run the file as if they were the owner ( in this case root).

you don't need it ;)

the problem is CM 4.2.14.1 doesn't have chroot

has the symlink for it , but it isn't compiled into busybox
[G1 Android Development] vaskas:
Hey guys, why don't you check out the http://xdatap1.wordpress.com/2009/05/03/jaunty-under-android/. This is much more straightforward than all the debian installation tutorials. I tried it on CM 4.2.12.1 and it worked great. Gotta test it with 4.2.14.1 though.
[G1 Android Development] Firerat:
cheers for that , had a very, very quick look

chroot is involved, CM 4.2.14.1 doesn't have chroot so it won't work :(

but tbh I'm not tied to CM 4.2.14.1, I have been on JF RC33 for ages... only recently got round to upgrading. last few days tried quite a few ROMs, all have been great, and I love the idea of OpenEclair.

toying with the idea of getting stuck in and cooking one myself, my linux is a little rusty but its starting to flood back ;)
[G1 Android Development] cookzitall:
anything intresting in the works via Debian for G1??

Just wondering if neone has any ground breaking news for us
[G1 Android Development] tonym001:
You might want to go back and look at what "debian" is ;)
[G1 Android Development] cookzitall:
I'm prettysure I know wat debian is..I'm not sure I get wat ur saying
[G1 Android Development] npace:
Sorry it took me so long to try this again... It seems that you need to chroot before you install anything, otherwise - some of the directories are read-only.

so chroot $mnt /bin/bash, then do apt-get install openssh-server and it will work.
[G1 Android Development] npace:
ERm..

Personally, I'm trying to see if I can get pptp client to work so I can connect to my work VPN.
[G1 Android Development] cookzitall:
justt a thought

It would be cool...if everybody posted what has worked wit debian on their handsets so this could be a usefull thread....any luck getting pptp to work ...?
[G1 Android Development] ballaholyk84:
Sorry bud but that is in his tutorial and its what i did going straight down but it still gives the the error when processing "x11-common"
[G1 Android Development] npace:
I had missed that part that's why I got an error. :)

Can you copy/paste the error?
[G1 Android Development] ballaholyk84:
Here it is:

Setting up x11-common <1:7.3+18> ...

/etc/init.d/x11-common: line 29: 5303 Segmentation fault chmod 1777 $SOCKET_DIR

invoke-rc.d: initscript x11-common, action "start" failed.

dpkg: error processing x11-common <--configure>:

subprocess post-installation script returned error exit status 139

Errors were encountered while processing:

x11-common

E: Sup-process /usr/bin/dpkg returned an error code <1>

localhost:/#
[G1 Android Development] bhang:
?

shell only + x11 anything = oxymoronic
[G1 Android Development] ballaholyk84:
Not sure what you mean? How do I install it then?
[G1 Android Development] npace:
Heck, I don't know who in their right mind decided to make x11-commons and xauth dependencies for openssh.

It looks like the start script (/etc/init.d/x11-common) bugs out...

Try replacing it with a blank file:

mv /etc/init.d/x11-common /etc/init.d/x11-common.old
touch /etc/init.d/x11-common
chmod +x /etc/init.d/x11-common

Maybe it'll get fooled. :)
[G1 Android Development] ballaholyk84:
Must have worked but now I get this error when installing the very last part:

localhost:/# apt-get install openssh-server
apt-get install openssh-server
Reading package lists... Done
Building dependency tree... Done
openssh-server is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
2 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up openssh-client (1:5.1p1-3) ...
/var/lib/dpkg/info/openssh-client.postinst: line 86: 5946 Segmentation fault
chmod 2755 /usr/bin/ssh-agent
dpkg: error processing openssh-client (--configure):
subprocess post-installation script returned error exit status 139
dpkg: dependency problems prevent configuration of openssh-server:
openssh-server depends on openssh-client (= 1:5.1p1-3); however:
Package openssh-client is not configured yet.
dpkg: error processing openssh-server (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
openssh-client
openssh-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
localhost:/#
[G1 Android Development] npace:
Can't do this time time though...

I guess it's chmod...

Can you actually execute this?

"chmod 2755 /usr/bin/ssh-agent"
[G1 Android Development] ballaholyk84:
This is what I get:

chmod 2755 /usr/bin/ssh-agent
Segmentation fault
[G1 Android Development] npace:
Ok...

apt-get install strace

If it installs successfully, do:

strace chmod 2755 /usr/bin/ssh-agent

and paste the result

If you can't install strace, do:

apt-get install --reinstall coreutils
[G1 Android Development] ballaholyk84:
Couldnt do the top 2 so did the 3rd and this is what I got:

localhost:/# apt-get install --reinstall coreutils
apt-get install --reinstall coreutils
Reading package lists... Done
Building dependency tree... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 4 not upgraded.
2 not fully installed or removed.
Need to get 0B/3534kB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
y
(Reading database ... 8334 files and directories currently installed.)
Preparing to replace coreutils 6.10-6 (using .../coreutils_6.10-6_armel.deb) ...

Unpacking replacement coreutils ...
Processing triggers for man-db ...
Setting up coreutils (6.10-6) ...
Setting up openssh-client (1:5.1p1-3) ...
Setting up openssh-server (1:5.1p1-3) ...
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
Restarting OpenBSD Secure Shell server: sshd.
localhost:/#

Edit: Sweet looks like it worked. I just opened up WinSCP and SSHed to the phone. Thanks for all the help everyone
[G1 Android Development] npace:
Sweet...

I was curious to see the strace - why the heck chmod would segfault but anyway - glad you got it to work.
[G1 Android Development] npace:
Yeah, actually, I'm making a lot of progress...

Got it to authenticate with CHAP but I'm stuck getting the MPPE encryption to work. It requires a kernel module and this build of debian doesn't include it.

Trying to build it now but my skills with linux are a bit rusty now.. It's been a few years...

If anyone has a pretty good idea how to build a kernel module if I don't have the kernel headers, I could really use some help.
[G1 Android Development] kunchok:
How about android-vnc-viewer with the debian Xvnc server running locally? Obviously not high performance and lacking alpha-blending and what-not but tremendous geek value ;-)
[G1 Android Development] vaskas:
OMG, no chroot in 4.2.14? It sucks.

Once again, guys:

Those who are interested in native Debian/OpenMoko, let's move to http://xdaforums.com/showthread.php?t=624392 ?

olvap377, thanks for creating a separate thread. This one has become a mess of native & dual Debian installation discussions.
[G1 Android Development] brummiesteven:
What's the point in this?

Can we run applications like for example Emulators etc via debian through android? (eg using commands like "mupen64plus '/home/steve/Roms/Pokemon Stadium.z64'") and still have android running and funtioning underneath to receive text messages / calls?
[G1 Android Development] Firerat:
when in the pub you can say, "look I have a full linux on my phone!"

yes,

well when I say yes I mean kind of...

To get graphics you have to run X as a vnc service and connect via some android VNC app, its probably going to be choppy at best

http://xdaforums.com//showthread.php?p=5486034

is probably more suitable for running emulators, but no txts/calls afaik
[G1 Android Development] vaskas:
The Debian-under-Android setup is almost useless for such kind of things since there is no X support and the device is very low on memory for this. It really makes sense if you want to run command-line UNIX software. Like openssh daemon, ftp server, CLI torrent client, development tools, mail agent whatsoever.
[G1 Android Development] vaskas:
I hope it will be possible to make calls and to text since there are no closed-source drivers or other limitations. It needs work though. Some guys got it working, but it's in the early pre-alpha stage.
[G1 Android Development] vaskas:
Hold on, chroot will come back: http://twitter.com/cyanogen/status/8541518425
[G1 Android Development] vlipper1:
i already have linux on my phone it's called android :rolleyes:

but hey its worth a try
[G1 Android Development] Firerat:
hmmm,

Android is not Linux, its quite a lot like java running and a very minimal gnu/linux

but lets not get pedantic
[G1 Android Development] FukTheRegister:
Hi all,

I send on the market an APK for install Linux (here Debian Lenny only tested) on you phone.

Anyone can test my application ?

The actual version is 0.7 named "Linux Installer" by Galoula publisher.

Thanks for yours feeds back, send me an email for support.

I wan't to create a real application more stable with more functions, but beta version musts be tested befor add new features.
[G1 Android Development] FukTheRegister:
Hi all.

I work into this project I have good news : I can ring my phone, with most chroot, and other way, but nothing is stable.

I making tutorial step by step to get my configuration :

http://www.galoula.net/en/Tutoriels/HTC-DREAM-G1/Debian/

I try to update the tutorial with my configuration.
[G1 Android Development] FukTheRegister:
Hi !

Good new for everyone !

I can now to hang up an incoming call :D

It's say my GSM is work into Debian !

I search now to get 3G into my Debian.

(Phone call isn't on my Page actually)
[G1 Android Development] vixsandlee:
thats fantastic :D

My contract comes up in november and when I upgrade I plan on playing about with this.

Its great to see that progress is still being made :)

Keep up the good work.
[G1 Android Development] FukTheRegister:
Yes I work on it, I love Debian, And I want a microcumputer, the G1 it is !

My project use Android multiboot with Debian, when I can use mostly functions (3g modem, SMS etc ...) I want to share "/data/data/com.android.providers.telephony/databases/mmssms.db" from android with Debian, to have always same SMS database with both OS.

I think is a good choice to have HTC G1, you can have ALL function :D
[G1 Android Development] ferminx360:
Ok all perfect, but if I want enter into recovery mode...what can I do??

Now we have NATIVE Debian dual boot with Android !

- To boot into Android : Turn on the phone.

- To boot debian : Turn on the phone olding HOME buton

I enter in recovery mode olding this buttons.

Sorry, I'm Spanish.

Regards
[G1 Android Development] Firerat:
your English is fine :)

to get to recovery, without an installed recovery

fastboot boot <patch to recovery folder>/recover<version>.img

will not work with SPL HBOOT-0.95.0000 ( Stock )

but 1.95.3000, 10.95.3000 , 1.33.2003 and 1.33.2005 , fastboot will work fine

search fastboot ;)
[G1 Android Development] ferminx360:
Ok, 1 million of thanks,for the answer, and I study English at school, I'm 16. :P

I envy all the English, when I have no fear, proved debian, sorry

But I'm post it my rom for G1 and MyTouch

Regards
[G1 Android Development] modena1984:
xrdb

Can someone write down the HOW-TO use XRDP instead of vnc session. As I understand it is faster then vnc protocol. I tried to do myself but with no success :) thnx in advance

P.S also I have an issue with running administration progs in Gnome session, such as users and groups for ex. Its writes that :"You are not allowed to access system configuration". Do anyone no the solution for that issue?
[G1 Android Development] FukTheRegister:
Just for informatition :

RDP protocol is faster than VNC, I m OK, but, it's real only on Windows configuration :'(

XRDP, is lower than the real RDP : no caches, and you don't have "windows gui" to have better compression of images.

aptitude install xrdp doesn't work ?

don't forget to edit /etc/xrdp files, here, you can view isn't real RDP connection, but an simply "bridge" from X or VNC computer ...

I user thes program to convert RDP <-> VNC when I have only XP PC at the scool to connect at my Linuc PC at home ...
[G1 Android Development] hetaldp:
In following web page it clearly states that Android can be booted form

NAND Flash, RAM or debugger. So can be Boot the Phone from Debugger or RAM with Boot loader and Modified Recovery Image and then Reflash Device with Custom RC30 made by JesusFreak

http://source.android.com/release-features

(Section System Software)
[G1 Android Development] diabolical28:
debain vs slax

I know i have been posting alot today now that i have root i wondered people are into debain when slax is alot smaller and is pretty powerful. for those interested in slax the site for it is slax.org
[G1 Android Development] Datruesurfer:
SLAX is a live operating system which is based off Slackware, a distro that is known for its simplicity. That makes it a good candidate to boot off a variety of mediums such as CD-ROM, USB, Network etc. It is good for people who want to use linux without installing it onto their hard drive.

Debian is a desktop OS that is usually installed to a hard drive That means you need to repartition your hard drive and install an alternate bootloader to have windows and Linux exist together. In exchange, you get a rock solid operating system with plenty of software available.

For a beginner at linux, I would stick with SLAX.
[G1 Android Development] tonym001:
Actually, I'd start with Ubuntu. it's based on debian, and is pretty damn stable.
[G1 Android Development] Datruesurfer:
That is, if you are willing to partition your drive to install it. I don't care how fast your computer is, running Ubuntu or any desktop OS from disc is SLOW. Slax is simple enough that it can run on just about anything and you wont run into too many performance issues.
[G1 Android Development] [RiS]:
When did the distro war arrive at xda-developers?