Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Newer edit →
Development Team/Chroot
(view source)
Revision as of 08:49, 22 May 2009
225 bytes added
,
08:49, 22 May 2009
no edit summary
Line 36:
Line 36:
Xephyr -ac :1 ''outside chroot''
Xephyr -ac :1 ''outside chroot''
−
::''NB: If you
figure out how
to
make Xephyr bind only
to localhost
sockets (or how to make it use a custom xauth config), speak up!''
+
::''NB: If you
want something more secure, try:''
+
+
DISP=:1 # adjust
to
suit
+
COOKIE=$(mcookie)
+
AUTH=$(mktemp)
+
echo "add :1 . $COOKIE" | xauth -f "$AUTH"
+
echo "add these commands
to
clients:"
+
echo "export DISPLAY=\"
localhost
$DISP\""
+
echo "export XAUTHORITY=\"$AUTH\""
+
Xephyr -auth "$AUTH" -reset -terminate ":$DISP"
And, ''inside'' the chroot:
And, ''inside'' the chroot:
export DISPLAY=localhost:1
export DISPLAY=localhost:1
+
# or use the commands echoed above
=== D-Bus ===
=== D-Bus ===
Mstone
76
edits