yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] diabolical28:
they didnt but the debian has been talked about many times.

slax isnt a distro that is lacking anything... it is powerful and can have more modules added easy.

i was just asking because slax is specificly written to be run from USB or CD which the preformance issues are null its been ported to run fast on usb thumbdrives. not pocket drives... any how i put an idea out and maybe someone overlooked slax :P
[G1 Android Development] beartard:
One thing that sets Debian apart among Linux distros is that it has been compiled for the largest number of architectures of any distro. Everything from mainframes to wristwatches can run Debian easily.

And as for USB keys, many many distros, Ubuntu included, have smaller, optimized versions for installation on them.
[G1 Android Development] Sk8erAndroid:
This isn't true.

I am running Ubuntu 8.10 via Bootable CD-R, and it runs just as smooth as my official Operating System ( Which is currently Windows Based ).

Maybe it is your pc, but, mines is running and always has been running just fine off of my bootable Ubuntu Image.
[G1 Android Development] unrafa:
How to please?

I installed debian in my G1 SD card, following saurik's instructions here http://www.saurik.com/id/10 ok, it works nice.

now, i would like the phone to automatically set debian environment up on boot/reboot, or maybe an icon in phone's desktop doing the loop mount and all the stuff for me. any idea would be apreciated, thanks
[G1 Android Development] aoi0123:
I just put a shell script, file name is "@1", to somewhere in the pathed dir.

so that I just type "@1". then I can use debian.:)

The file "@1" is just a shell script, with permission.

1stly, I make the script file "debian.sh".

But it's lazy to type the 9 letters...
[G1 Android Development] grzzer2:
Problems with installing Debian

I have been trying to install Debian on my g1 for a couple of days now and with no luck. I am a windows guy so this is new to me. I am running jesus rc30 1.3. My question is while I am running in Ubuntu and trying to follow saurik's directions I am having trouble understanding some of them. For example to quote him:

"I placed the kit in a folder under the root directory of the microSD card and put everything else in /data/local (the one useful folder you can normally write to). "

From my understanding I needed to format part of my sdcard to ext2 correct? Or am I way off. My next question is where is this /data/local? Also which is a very noob question but I cant get admin rights to change anything on my sdcard.

While trying to fininsh the first step I am always getting this message

insmod: can't read '/data/local/ext2.ko': No such file or directory

I have 2 partitions on my SDcard 1 is an ext2 and the other is fat32. I have all tools in the ext partition of the sd card, what am I doing wrong, I am going crazy.

Thank you for any help in pointing me in the right direction
[G1 Android Development] aoi0123:
type "modprobe ext2" instead of "insmod $kit/ext2.ko"

I think u can fix it with this.

I had the same problem before. but now I have no problem:)
[G1 Android Development] grzzer2:
so that should be it? i will try that, what about the /data/local files. where are these files in regards to my sdcard
[G1 Android Development] JesusFreke:
/data/local is on your phone, not your sdcard :). You can use adb push to copy files onto the phone.
[G1 Android Development] grzzer2:
oh ok, i am slowly understanding. Thank you for the help. How do I put the files from saurik onto the phone from ubuntu?
[G1 Android Development] schizox:
all this is great, debian the god of gods on a G1

i've used slackware for quite some time

in theory i should be able to install slack on the g1 following these steps

im loving the capabilities of this phone
[G1 Android Development] grzzer2:
Ok, another question, how do I use adb push using windows or linux. I have been looking everywhere on the net and in this site and found nothing.

I have been able to successfully install adb on my windows but I don't know how to accesss the files from my phone in order to continue to the installation of debian on my g1.

Thank you for the help
[G1 Android Development] deprecate:
indeed!

http://www.armedslack.org/

(i just chose a random location for your sdk stuffs)

c:\android\sdk\tools\>adb remount

remount succeeded

(assuming that you want to push super.apk in your tools dir to /system/app/)

c:\android\sdk\tools\>adb push super.apk /system/app/super.apk
[G1 Android Development] grzzer2:
So I just input this in my command prompt?
[G1 Android Development] grzzer2:
Is there a place where i can get an updated dummy tutorial on how to install debian on my g1? When I type that into the command prompt nothing happens. it says bad command
[G1 Android Development] grzzer2:
Using ADB push in windows how do I see the files from my hone in order to put the debian files in there.
[G1 Android Development] tr1px:
Question

First of I am not a newb when it comes to linux but feeling really dumb trying to get debian on my G1.

So far I tried:

I put all the files on my SDCARD in the dir called "kit". My SDCARD is formatted FAT32. I have the modified RC30 from this site and my phone is rooted. I tried "enter telnetd enter" and tried to telnet into localhost but it does not work. Now I am using the terminal App from the market and exported all variables.

Then i tried #insmod $kit/ext2.ko and got an error like a whole bunch of people here. I also cd'ed to my kit dir on the SDCARD and tried modprobe ext2.ko and again errors.

Nothing works for me. Someone mentioned that it might be running commands from the terminal app might be as a regular user but I am not sure of this because I can mount the system partition and other things as root.

So I am really stuck now trying to come up with some more tricks. The last thing i did was put 2 partitions on my SDCARD. One FAT32 and another ext2 but that did not work either because without the kernel module loaded into android it won't even recorgnize the second partition.

I know other people here have asked the same questions and every time some one took it off-topic. Please help me out here.

Cheers.
[G1 Android Development] SuperUserMovado:
Some problems I had and resolved while "installing" debian

Some users may not be able to use the command

insmod $kit/ext2.ko

If you get an error when you in put this command you should make sure you have copied ext2.ko to /data/local

then

cd /data/local

modprobe ext2

If you are using telnet to put debian on your phone and you get a socket error. Download terminal emulator from the market.

Open it and Type

$su

#telnetd

Now navigate back to the telnet program and you should be able to connect

Because the insmod may not work for all of you I have modified Saurik's script which mounts the debian image.

This script will mount the debian image and put you into debian userland. This script should only be used if you were already able to get into debian userland following his instructions. Just change mount.txt to mount.sh and copy to a location on your sdcard. This script also assume you have saved ext2.ko in your phones local memory at /data/local

If you do not want to be put in debian userland you can use a text editor

and remove the line _ chroot $mnt /bin/bash from the script.

This is my first post on xda-developers. I have been reading the forums for a while now

since I got my first wm mobile phone a couple of years ago. I exorcised myself of the

wm devil some time ago however. I just wanted to thank all the developers out there for their

work on opening up this "open" phone.

Just to let you all know I only have a couple of months experience of using Linux on my desktop so I am not familiar

with all the Linux commands/terminology.
[G1 Android Development] tr1px:
still not working

SuperUserMovado:

I tried what you said and used the terminal emulator to launch telnetd and was now able to to telnet localhost. Previous I moved ext2.ko to /data/local/kit with cat /sdcard/kit/ext2.ko > /data/local/kit/ext2.ko .

Now I cd'ed to /data/local/kit and did #modprobe ext2.ko and got modprobe: module 'ext2.ko' not found.
[G1 Android Development] tr1px:
!

SuperUserMovado

Dude you changed your post. modprobe ext2 worked... Sweet I will continue now trying to make this work.

Thanks
[G1 Android Development] SuperUserMovado:
tr1px

/data/local is located on your phone not your sd card

you will have to use telnet (i used terminal) to copy the ext2 and unionfs files to your phones internal memory

so in the terminal emulator I believe you would

cp sdcard/data/local/kit/ext2.ko /data/local

someone can correct me if that command is wrong or innacurate
[G1 Android Development] tr1px:
yea i know. I just made a dir on the phone called /data/local/kit for personal reasons.

So I got Debian running for a few seconds... I did an apt-get update and left the phone sitting for a few minutes to work on something else. When I came back telnetd stopped and along with it my telenet session obviously. So I tried to get back into Debian with _ chroot $mnt /bin/bash and got nothing but an error.

I am guessing that I need to redo all the mounts again because my phone decided it was enough of that. This brings me to the shell scripts here. Is this the time to use the remount.sh file. Also do I need to chmod ... remount.sh to something to get it going because when I tried chmod +x remount.sh it said bad mode. Without this the telnet session says denied or something like that.

Thanks in advance.
[G1 Android Development] grzzer2:
How did you make a dir in the phone, I am a noob when it comes to this and have no idea how to put things in the phone dir in order to get this working
[G1 Android Development] grzzer2:
_ mount -o loop $kit/debian.img $mnt

mount: mounting /dev/block/loop2 on /data/local/mnt failed: No such file or directory

what am I doing wrong
[G1 Android Development] xMemphisx:
Debian on Android -- Installer + Bootlader (Very Easy)

Just released, very simple to use, makes it a lot easier for those who would like to try it out and not go through a lot of technical stuff.

Link:

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

[Edit]

Here are specific instructions to make it work perfectly. Thanks to afbcamaro for clearing up the errors:

1. Download and the Android debian image (link above)

2. Unzip the 'debian' folder to the root of your sdcard (should look like /sdcard/debian)

3. Download and Install 'Terminal Emulator' from the market, if you haven't already, and open it up

3. type in 'su' to get root access, then 'cd /sdcard/debian', followed by 'chmod 4755 *'

4. type 'sh installer.sh' (it will say the bootloader was successfully installed)

5. type 'mv bootdeb bootdev.sh'

6. type 'sh bootdev.sh' and debian will start to run! That's all!
[G1 Android Development] CleverJake37:
mhmm

thanks alot GhostWalker
[G1 Android Development] Perrosky:
I'm sorry for my ignorance guys but in what does it help have debian in our phone?

:confused:
[G1 Android Development] davidhooper4:
hey when i went to the terminal emulator i did the cd then the chmod then when it came to the su ./installer.sh i did it and it said

./installer.sh: 40: syntax error: unterminated quoted string

any suggestions on whats wrong?
[G1 Android Development] letsrootit:
The installer.sh is missing a double quote ("). That's not all either, I can't get it to boot at all. :rolleyes:

Edit: I stand corrected. Followed instructions below, and it works perfectly. Thanks!
[G1 Android Development] davidhooper4:
me niether so nybody could help us with installing this or actually booting into debian because ive tried almost everything
[G1 Android Development] Rafase282:
Does it has to be in the root of the sdcard or can it be on /system/sd where I have and ext2 partition of 1 Gb fro app?
[G1 Android Development] afbcamaro:
Just some mistakes in his commands pertaining to our images.

su on terminal before you chmod

after which use

sh installer.sh

instead of ./installer.sh

after that rename bootdeb to bootdev.sh

and to boot debian type

sh bootdev.sh

It works perfectly. Just in time I needed to get debian working quickly on my g1 since I destroyed my phone and had to redo everything

Thanks for your work buddy.
[G1 Android Development] davidhooper4:
okay so i got the penguin haha

and now what can i do from here if I may ask cause im such a noob.
[G1 Android Development] Rafase282:
I did some momdifications to the stripc, first it was missing a " then i changed to the Debian folder would be on /system/sd where i have the space for app on the storage card. I'll try and see how it goes.
[G1 Android Development] veda_sticks:
Im getting the same thing
[G1 Android Development] veda_sticks:
Got it working by properly reading this thread, LOL

Now i have no idea what to do. I take it this is the very base system with no gui
[G1 Android Development] veda_sticks:
where does it isntall stuff to, is it the SDcard?? tried to install gnome, but it needs 1600mb free space, i think thats over my fair use policy aswell

Any lite GUI that dont take up much space?
[G1 Android Development] jusplainmike:
Gnome or any other manager will not run on android atm, there is no x-server in the android system.
[G1 Android Development] veda_sticks:
If i run apt-get install gnome, it lists all the packages required for download including x-sever
[G1 Android Development] Rafase282:
ok when I run it I get mount: mounting devpts on /data/local/mnt/dev/pts failed and other erros, it still run but idk if i should be getting them
[G1 Android Development] Sistum Id:
Forgive my ignorance but what does this allow us to do? I've read its an OS but how does it work on a mobile platform?
[G1 Android Development] Rafase282:
i fixed it, my custom install, anywyas where is this scripts/onetime.sh file?
[G1 Android Development] letsrootit:
Once you're in debian, just 'cd scripts' and 'sh onetime.sh'
[G1 Android Development] xMemphisx:
I tried to install blackbox, and it downloaded and installed, but when i tried to launch, it just returned

"cannot find display ' ' "

maybe there is a way to configure it? I'm not overly familiar with it, maybe someone with more experience knows? :confused:
[G1 Android Development] Csgod0:
can someone please reupload this to filefront or another location, I'm having the slowest possible download from megauploads.
[G1 Android Development] jusplainmike:
Gnome. Blackbox, KDE, etc will not work on the android atm, you need a native x-server compiled and working on the ARM architecture that Android runs on.
[G1 Android Development] philje123:
Keep getting an error of "can't open installer.sh".

I have busybox installed and i'm doing at su... can't figure it out!

Phil
[G1 Android Development] diaztradeinc:
after i try to boot debian i get installer.sh: Syntax error: Unterminated quoted string.......Sum one please helpp.:confused:
[G1 Android Development] letsrootit:
Open up the installer.sh file and add in the missing " (line 40 if I remember correctly). Any editor will screw the syntax coloring up on the line that's missing the quote. Add it, and you'll be good.
[G1 Android Development] killerbeesateme:
I had the same kind of errors as Rafase282.

I went and created /data/local/mnt/dev/pts/ , /data/local/mnt/proc/, and /data/local/mnt/sys/ and that got rid of those errors.

Now however, I keep running into :

mount: mounting /dev/block/loop2 on /data/local/mnt failed: Invalid argument

which leads to a chroot: cannot execute /bin/bash: No such file or directory.

Any ideas?
[G1 Android Development] grokdesigns:
I'm having the same issue...
[G1 Android Development] Rafase282:
Okay I solved the problem in my case it was because I didnt edit all the files. i was trying to install debian in/system/sd which is the partition where I install the apps to save up space onthe system. So on the install script I added the " and changed the location from /sdcard/debian to /system/sd/debian

I forgot to do them same with the other files and I was getting that error. So when i changed the directories to point where the debian folder really was it was workign just fine.
[G1 Android Development] Rafase282:
What does it do? I have run debian a few times already so can i still do that?
[G1 Android Development] letsrootit:
I haven't actually looked at what's in it, but it makes you set your password (I assume for root).
[G1 Android Development] Rafase282:
Okay so I would like to install phyton, how do I install the lastes version?

I already got it, apt-get install python
[G1 Android Development] foltz61:
Would anything from this project help anyone get a gui working? http://linwizard.sourceforge.net/
[G1 Android Development] Smokuevo:
anyway to get a faster download link??

thanks in adv
[G1 Android Development] pdspatrick:
I assume the quickest way to get a display working is to install xfce/xserver, configure it to run headless, and connect to it via the android vnc app....

So....how do we config that from command line?
[G1 Android Development] jusplainmike:
I've downloaded the zip file three times and every time I try and unzip it with winrar it says archive corrupt, does anyone have an alternate download?
[G1 Android Development] Rafase282:
use 7zip instead
[G1 Android Development] jeffmthomas:
is there any way someone can upload the debian file to a faster file host... such as rapidshare or something?

Thanks
[G1 Android Development] Smokuevo:
ok now what cann we do ;p
[G1 Android Development] sangeet.003:
I get the same error again and again what to do to get debian running !!!
[G1 Android Development] Rafase282:
Make sure are the files are ont he right place. sdcard/debian

The problem with me was that i was trying to install it on another place.
[G1 Android Development] philje123:
I'm getting the same error.

There is a post in here saying there is a " missing from the installer.sh on line 40 and on line 40 there is:

echo " "

So not really sure whats happening.

Phil
[G1 Android Development] Koush:
I've been using Debian pretty extensively to do on device development... I have Samba and X11 set up. It's pretty sweet.
[G1 Android Development] grokdesigns:
Here are two mirrors of the file, as a 7-zip archive:

http://ifile.it/xe5u7hi/debian.7z

http://rapidshare.com/files/184942236/debian.7z

MD5: f6415122abe05f24ee90c1762f7afe26
[G1 Android Development] sonic_beatnik:
ncurses?

So I've managed to get this all set up and working.

Apt-get seems to connect and have access to the repositories.

From what I understand, there are no completed ports of x-server to the gphone architecture, so that rules out any program that depends on X11 am I right?

What about ncurses? I'm tempted to try it, but I a little hesitant to try anything that might interfere with the display.

Anyone know what kind of display the G1 uses?

Can I at least assume it is VGA compatible?
[G1 Android Development] sonic_beatnik:
Hmmm. It looks as if the mozilla people have managed to get a project up and running with ARM EABI

http://linux.onarm.com/index.php/GeckoEngineStatus

Even if x.org was ported successfully to ARM EABI, I can't imagine it would be usable.

You would essentially be running a full blown linux desktop in a virtual machine type environment.

Which means youd have X11 + WM running alongside the android (java?) windowing system and with only 192Mb (at best) RAM to share.

That does not seem very workable.

I have a full debian + XFCE system on a laptop with 192Mb RAM, and while it works semi-decent, It needs and uses every bit of that RAM.

Not to mention that 192Mb is the *stated* (read maximum) memory on your phone. Like hard drives, your almost guaranteed to have less than the sticker amount.

My G1 shows available RAM 96Mb and used 70Mb (70%) and that is after a fresh boot.

So to put all this into perspective, youd need an X11 environment capable of running off of less than 96Mb RAM and that is more than pushing it even for XFCE, fluxbox, IceWM, etc.

Anyone know if they can even run on that small amount of RAM?

And you can rule out any gnome or kde apps and besides they arent made to work with touch screen and such small display anyways.

The most promising would be to get QT-Embedded running on the G1. Maybe its already been done? Opera uses QT I know for certain and I assume that the android Opera app uses QT-Embedded.

Being a KDE person I have not been paying much attention any of the Gtk+ (read gnome) porting projects for mobile platfoms (though the mozilla project proves they are out there), but with QT-Embedded running it should be possible to fully port KDE4 to the android fairly cleanly and not to mention natively.

So my point in all this, is that while it is great to have a full featured debian system on the G1, if your looking to get your favorite GUI apps running in this manner, I wouldnt get your hopes up.

Instead you should keep your eye on the GTK+ and QT-Embedded projects if you are looking for your favorite linux GUI apps on android.
[G1 Android Development] joshtheitguy:
I can't think of anything else but installing debian that would have done this but since installing it I am luck if I can get 3 hours out of my phone when it is idle and the screen is off.

What is going on?
[G1 Android Development] bodyman:
Might be a way to get debian to a visual concept

Found this on a search to get debian in a "x-server" mode, that most of us M$ user's will understand. Will do some more looking and anyone that is good at linux, might be able to help better....

bodyman
[G1 Android Development] beartard:
GUIs in GNU/Linux run under the X-Windows system using an X-server and an X-client. Usually both the client and server are on the same PC, but it doesn't have to be the case. This enabled users of Unix-like operating systems to have graphical thin clients with the beefy machine serving out the GUI to the lighter machine long before Microsoft Windows got around to it.

I'm not sure where you're going with this. Are you thinking it's possible to run an Xorg server/client on a phone to get a GUI running under Debian?

I guess it *could* be possible, but I think the G1's hardware would be a severe limitation to this approach. Xorg needs drivers specific to the display chipset to work. It does have the capability to use a framebuffer, but I doubt anyone has even begun to code a framebuffer driver for the video chipset in the G1.

Even if you could get X running on the G1, which window manager would you use? I think even the lightest window managers would tax the system to the point of unusability. Modern desktop environments (and apps that require them) like GNOME and KDE would be right out.

I don't mean to jump on a good idea. And I hate to be pessimistic about a phone with so much potential. But I'm going out on a limb to say it's not possible in any really useful sense if at all.
[G1 Android Development] Koush:
You can probably port a Java X server if there is one. Or write a Java wrapper for a C implementation. Should be totally doable.
[G1 Android Development] UnkzDomain:
Just reboot your phone when you're done using Debian as I think it runs in the background, too.
[G1 Android Development] cannon1616:
I just wanna know...

I just wanna know how does installing debian help my phone and also if i install it will i be able to go back to normal.

I tried Googling it for all the people whos gonna post ignorant replies.
[G1 Android Development] grzzer2:
I have a question, how do you get the files to sdcard/debian. What do i need to do to creat and ut those file in there. I keep seeing "put in the root of your sdcard" but I do not know how to put those in the "root" of my sdcard. Thanks for the help
[G1 Android Development] cannon1616:
Also

Also i wanted to know if the debian bootloader is better then the dev bootloader, and is it possible to brick the g1 while running the debian bootloader?
[G1 Android Development] Rafase282:
Just conect it to your computer and open the sdcard, put it on a folder named debian, it cant be inside an yother folder. is like on windows the root would be C://
[G1 Android Development] grzzer2:
Everything is finally working! I have been trying to get debian to work for almost a week (yes im a noob)