Talk:Development Team/Chroot: Difference between revisions
No edit summary |
RafaelOrtiz (talk | contribs) xz utils |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
== Restricting Xephyr connections == | == Restricting Xephyr connections == | ||
Most X11 servers are configured to disable TCP connections. This means that in order to get a working X connection we can: | |||
# bind-mount the X unix socket into the chroot. | |||
# ssh ''into'' the chroot with X11-forwarding enabled. | |||
# Enable TCP on an X server, e.g. a nested Xephyr. | |||
In the main walk-through, we chose to use an open Xephyr like so: | |||
Xephyr -ac :1 | |||
However, we might instead try: | |||
# ''outside chroot'' | # ''outside chroot'' | ||
DISP=:1 # adjust to suit your configuration | DISP=:1 # adjust to suit your configuration | ||
| Line 13: | Line 25: | ||
== as_person script, when PAM is misconfigured == | == as_person script, when PAM is misconfigured == | ||
cat > as_person <<EOF | cat > as_person <<EOF | ||
#!/usr/bin/env python | #!/usr/bin/env python | ||
from os import environ, chdir, setgroups, setgid, setuid, execve | from os import environ, chdir, setgroups, setgid, setuid, execve | ||
| Line 29: | Line 41: | ||
chmod a+x as_person | chmod a+x as_person | ||
./as_person sugar /usr/bin/sugar | ./as_person sugar /usr/bin/sugar | ||
== Using xz utils == | |||
this step must be reformed, | |||
curl http://dev.laptop.org/~mstone/releases/SOURCES/$NV.tar.xz | tar Zxf $NV.tar.xz | |||
because tar doesn't suggest it (for now) | |||
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=523499 | |||
this is at least in debian/ubuntu | |||