![]() |
2008-07-26
, 08:39
|
|
Posts: 1,671 |
Thanked: 11,478 times |
Joined on Jun 2008
@ Warsaw, Poland
|
#252
|
The "Tablet Debian" project needs to have two sub-projects:
- Advanced users (both bootable and chroot)
- Plug-and-play / Easy set-up (probably chroot / multi-WM via xomap or Xephyr)
[*]installing as little as possible "out of the box"; the user should start with a basic debootstrap rootfs, then they can add "layers", such as "(1) make bootable," and "(2) add xfce4 window manager"[*]backwards compatibility with plug-and-play Debian; users can install plug-and-play and then, when they're ready, "upgrade" their rootfs to the advanced flavour
My interest, as you may have noticed, is the plug-and-play flavour.
The highest priority in this is to ensure that it "just works." Someone with no Linux background can buy a tablet at Best Buy, come home and set it up, get the hang of OS2008, then install Debian within the hour.
All technical aspects are servants of that goal. The most important question to ask when working on this project is, "will this make things easier?"
There should never be a point when the user has to touch the command line. Every choice should have a gui menu.
Also, the impact on the existing OS2008 should be as small as possible.
Don't install anything that isn't absolutely necessary. The project should have as few maemo dependencies as possible (preferably none), and it should be dead-simple to uninstall.
Also, since new users have higher expectations, we should focus on speed and optimization of applications.
[*]making sure things are very flexible (I want to boot and chroot to my Debian rootfs... in fact, I want to be able to choose which of my three Debians I want to mount and use!),
The Following 2 Users Say Thank You to Stskeeps For This Useful Post: | ||
![]() |
2008-07-27
, 04:49
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#253
|
Well, here it comes...
debian
- Reads configuration from ~/.chroot; all defaults are the same.
- Since hilda is now obsolete (see below) it now drops a file in /debian/tmp/ to mark chroot ready; this is actually more robust, as cancelling after the filesystem is mounted won't leave it persuaded everything's cool.
- The mount point may be changed from the default of /debian
debbie:
- debbie with no arguments now drops you to a non-privileged chrooted shell.
- hilda is now obsolete; debbie now passes su through to debian, as needed for above; eliminating one Debian-side script is a nice side-benefit.)
- DISPLAY is preserved, if it exists. (I think it should always be set, normally to :0.0, but not sure.) Good for multi-Xomap, USB-VGA, or otherwise multi-X-server configs, with no change for standard config.
- User to drop to is now configurable; defaults to user, of course, but can be set...
- Reads the same ~/.chroot as debian
.chroot
- Example config with defaults documented in comments.
Overall comments: Changed a lot of things that were set as environment variables (export FOO=bar) are now shell variables (FOO=bar); indentation is changed to "correct"style, efforts to safely quote things to prevent complete breakage in the event of empty or space-containing definitions...
EDIT: Updated tar. All better now, sorry about that.
![]() |
2008-07-28
, 13:57
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#254
|
![]() |
2008-07-28
, 15:40
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#255
|
![]() |
2008-07-28
, 16:55
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#256
|
export GTK_MODULES=libgtkstylus.so
![]() |
2008-07-28
, 19:34
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#257
|
Defaults env_keep+=GTK_MODULES user ALL = NOPASSWD: /sbin/debian
![]() |
2008-07-28
, 19:51
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#258
|
Modded it to pass environment variables rightly (su was stomping them), but still needs sudoers tweak:
Note that the second line suffices, for our purposes, instead of the ALL = NOPASSWD: ALL that we've been using. Your call which to go with; by letting the user chroot to an arbitrary FS image, they already own the system if they want it. It's not any better security-wise, but might save someone somewhere from doing something stupid. The first line, though, lets us pass GTK_MODULES through, which we need.Code:Defaults env_keep+=GTK_MODULES user ALL = NOPASSWD: /sbin/debian
![]() |
2008-07-28
, 19:51
|
|
Posts: 4,930 |
Thanked: 2,272 times |
Joined on Oct 2007
|
#259
|
![]() |
2008-07-28
, 20:40
|
Posts: 223 |
Thanked: 31 times |
Joined on Oct 2007
|
#260
|
![]() |
Tags |
chroot, debian, easy debian |
|
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!