Active Topics

 


Reply
Thread Tools
pipeline's Avatar
Posts: 693 | Thanked: 502 times | Joined on Jul 2007
#91
Hmm i would recommend just libc6 since nothing in the 'deb' currently calls bzip2... these files are so big you should probably leave that to user to manage.. if that means using zip instead, well thats what i would do... your increasing rate of failure by automating extraction... i'd rather get asked howto then error messages. If you do include extract logic in deb, i would make icon or command for it instead of postinst.... 20 minute installer cylons are not pleasant.

Last edited by pipeline; 2008-06-24 at 18:25.
 
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#92
I was thinking of depending on bzip2, and then dropping a script as part of the . The script (eg. "chroot-extract") would simply be:
Code:
export IMGFOLDER=/media/mmc1
bunzip2 -c $IMGFOLDER/$1 | tar xvf - -C $IMGFOLDER/
the user would just type:
Code:
chroot-extract debian-chroot-img.tar.bz2
It seems like the best way to make this process easy. That's what I want. I want a "Debian appliance" that is easy for newbies, and you're right, "20 minute installer cylons are not pleasant."

EDIT... I should probably make my scripts more failure-resistant... put if statements, check for the existence of files, that sort of thing...

EDIT2: I can't seem to make the package dependent on bzip2, Application Manager just shrugs and says it can't find it, even in red pill mode. I don't get it.
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!

Last edited by qole; 2008-06-25 at 18:51.
 
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#93
Should I include the ext2.ko and mbcache.ko files? Do they come "stock" with OS2008?

EDIT: I've decided to put them in /lib/modules/2.6.21-omap1/, they're only 80k, and my script is pretty dependent on that kernel number anyway.
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!

Last edited by qole; 2008-06-24 at 20:05.
 
Posts: 36 | Thanked: 16 times | Joined on Apr 2006
#94
Originally Posted by qole View Post
I want a "Debian appliance" that is easy for newbies
Many thanks to qole et. al. for this very attitude. I'm looking forward to the .deb. Will your package run into problems with Diablo, that you can foresee, anyways?

Last edited by doctorbri; 2008-06-25 at 00:10. Reason: spelling
 
pipeline's Avatar
Posts: 693 | Thanked: 502 times | Joined on Jul 2007
#95
Works for me ... no difference.
 
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#96
Originally Posted by pipeline View Post
This would provide command like ext2chootrun which would (mount filesystem, run command, unmount filesystem)... or i could just mount and leave open. Base commands for mounting, chroot setup, and unmounting would be sudo-able.
Unmounting is often difficult, because many applications start up and then keep running in the chroot. Also, several system paths (/dev, /media, /home/user, etc) get bound into the chroot to make the chroot programs aware of the system... I've found that the only sure way to "close" the chroot is to reboot.
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 
Posts: 31 | Thanked: 3 times | Joined on Jun 2008
#97
hey guys, im a newbie with linux, and i got my n800 a few days ago. I am trying to test out your method. I have os2008, and the nokia n800. Im currently at the step were you untar the 1gb blank memory partion.

I am willing to test out your installer files and images, it can benefit both of us.

(this seems to be the easiest way to chroot Debian.)

Please help,
maxzar100

UPDATE: i have successfully un tarred the 1gb memory partion, but i am trying to figure out how to mount the dam thing.

Last edited by maxzar100; 2008-06-25 at 06:48.
 
daperl's Avatar
Posts: 2,427 | Thanked: 2,986 times | Joined on Dec 2007
#98
Originally Posted by qole View Post
Unmounting is often difficult, because many applications start up and then keep running in the chroot. Also, several system paths (/dev, /media, /home/user, etc) get bound into the chroot to make the chroot programs aware of the system... I've found that the only sure way to "close" the chroot is to reboot.
Maybe you should think of incorporating the dynamic symlink technique used in scratchbox. It seems to me mixing and matching a combination of environment variables, dynamic symlinks, binding mounts and a chroot can get you where you want to go.
 
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#99
Originally Posted by daperl View Post
Maybe you should think of incorporating the dynamic symlink technique used in scratchbox....
Well, scratchbox has the luxury of a nested X-server (Xephyr). You aren't trying to run all of your applications on the same X server and share as much of the same environment as possible like I'm trying to do here.
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#100
Originally Posted by maxzar100 View Post
UPDATE: i have successfully un tarred the 1gb memory partion, but i am trying to figure out how to mount the damn thing.
You've done the hard part! Really! It's super easy from here on.

Now you put the debian.img.ext2 file on the root folder of your SD card, and then you install one of the two .deb files that I attached to this post.

Install either the mmc1 deb or the mmc2 deb using the Application Manager and then run your Debian apps by choosing your new menu icons. It's that simple. If you just want to mount it and get the Debian command line, there's an icon for that too.
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 

The Following User Says Thank You to qole For This Useful Post:
Reply

Tags
chroot, debian, easy debian


 
Forum Jump


All times are GMT. The time now is 11:01.