Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    [Debian] Running Debian in a chroot

    Reply
    Page 10 of 34 | Prev |   8     9   10   11     12   20 | Next | Last
    pipeline | # 91 | 2008-06-24, 18:22 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by pipeline; 2008-06-24 at 18:25.

     
    qole | # 92 | 2008-06-24, 19:34 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by qole; 2008-06-25 at 18:51.

     
    qole | # 93 | 2008-06-24, 19:48 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by qole; 2008-06-24 at 20:05.

     
    doctorbri | # 94 | 2008-06-25, 00:08 | Report

    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?

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by doctorbri; 2008-06-25 at 00:10. Reason: spelling

     
    pipeline | # 95 | 2008-06-25, 01:28 | Report

    Works for me ... no difference.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    qole | # 96 | 2008-06-25, 05:17 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    maxzar100 | # 97 | 2008-06-25, 06:27 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by maxzar100; 2008-06-25 at 06:48.

     
    daperl | # 98 | 2008-06-25, 06:52 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    qole | # 99 | 2008-06-25, 07:43 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    qole | # 100 | 2008-06-25, 07:52 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to qole For This Useful Post:
    maxzar100

     
    Page 10 of 34 | Prev |   8     9   10   11     12   20 | Next | Last
vBulletin® Version 3.8.8
Normal Logout