Difference between revisions of "Development Team/Chroot"

From Sugar Labs
Jump to navigation Jump to search
(New page: Sugar ought to be easy to run from chroots. For a variety of silly reasons, this isn't yet the case, but it might be soon. Ping Michael with questions. === X11 === Most X...)
 
m (moved Walter is a wanker 12/Chroot to Development Team/Chroot over redirect: revert)
 
(76 intermediate revisions by 11 users not shown)
Line 1: Line 1:
Sugar ought to be easy to run from chroots. For a variety of silly reasons, this isn't yet the case, but it might be soon. Ping [[User:Mstone|Michael]] with questions.
+
=== Status ===
  
=== X11 ===
+
* sugar-chroot-0.1 released: see [http://dev.laptop.org/git/users/mstone/sugar-chroot sugar-chroot]
  
Most X11 servers are configured to disable TCP connections. This means that in order to get a working X connection we can:
+
=== Purpose ===
  
a) bind-mount the X unix socket into the chroot.
+
''You want to hack sugar. You don't want to fuss around. '''You want sugar-chroot.'''''
b) ssh ''into'' the chroot with X11-forwarding enabled.
 
c) enable TCP on an X server, e.g. a nested Xephyr.
 
  
We're going to try option (3) first.
+
=== Usage ===
  
=== Chroot Construction ===
+
As excerpted from the '''[http://dev.laptop.org/git/users/mstone/sugar-chroot/plain/README README]''':
  
There are lots of ways to create appropriate chroots; e.g. by hand, with debootstrap, with mock, etc.
+
sugar-chroot consists of simple scripts. Download and unpack them like so:
 +
 
 +
NV=sugar-chroot-0.1
 +
curl http://dev.laptop.org/~mstone/releases/SOURCES/$NV.tar.xz | tar Zxf $NV.tar.xz
 +
cd $NV
 +
 
 +
To use them, pick a supported distro:
 +
 
 +
DISTRO=debian
 +
DISTRO=fedora
 +
 
 +
To configure:
 +
 
 +
echo $DISTRO > conf/distro
 +
$EDITOR conf/$DISTRO.mk
 +
 
 +
Then run
 +
 
 +
sudo make r/distro
 +
 
 +
to install your chroot.
 +
 
 +
=== History ===
 +
 
 +
See http://wiki.sugarlabs.org/index.php?title=Development_Team/Chroot&oldid=36911 for the manual instructions which sugar-chroot automates.

Latest revision as of 20:33, 23 February 2010

Status

Purpose

You want to hack sugar. You don't want to fuss around. You want sugar-chroot.

Usage

As excerpted from the README:

sugar-chroot consists of simple scripts. Download and unpack them like so:

NV=sugar-chroot-0.1
curl http://dev.laptop.org/~mstone/releases/SOURCES/$NV.tar.xz | tar Zxf $NV.tar.xz
cd $NV

To use them, pick a supported distro:

DISTRO=debian
DISTRO=fedora

To configure:

echo $DISTRO > conf/distro
$EDITOR conf/$DISTRO.mk

Then run

sudo make r/distro

to install your chroot.

History

See http://wiki.sugarlabs.org/index.php?title=Development_Team/Chroot&oldid=36911 for the manual instructions which sugar-chroot automates.