Changes

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 ===
76

edits