Changes

Jump to navigation Jump to search
no edit summary
Line 52: Line 52:  
  groupadd -g 64002 sugar
 
  groupadd -g 64002 sugar
 
  useradd -m -u 64002 -g sugar -s /bin/bash sugar
 
  useradd -m -u 64002 -g sugar -s /bin/bash sugar
 +
 +
=== D-Bus ===
 +
 +
Sugar wants to be able to use global state stored in both HAL and NetworkManager, both of which live on the system bus. Consequently, ''outside the chroot'', we need to
 +
 +
sudo mount --bind /var/run/dbus $CHROOT/var/run/dbus
 +
 +
before entering the chroot. (Mock uses unshare() to enter a new mount-point namespace since this makes garbage collection of mountpoints much easier.)
    
=== X11 ===
 
=== X11 ===
Line 60: Line 68:     
See the talk page for more secure alternatives.
 
See the talk page for more secure alternatives.
  −
=== D-Bus ===
  −
  −
Sugar wants to be able to use global state stored in both HAL and NetworkManager, both of which live on the system bus. Consequently, ''outside the chroot'', we need to
  −
  −
sudo mount --bind /var/run/dbus $CHROOT/var/run/dbus
  −
  −
before entering the chroot. (Mock uses unshare() to enter a new mount-point namespace since this makes garbage collection of mountpoints much easier.)
      
=== Running Sugar ===
 
=== Running Sugar ===
Line 73: Line 73:  
Then, inside the chroot, you can happily run sugar as user 'sugar' with something like
 
Then, inside the chroot, you can happily run sugar as user 'sugar' with something like
   −
  sudo chroot $CHROOT /bin/bash -l
+
sudo chroot $CHROOT /bin/bash -l
  su sugar -
+
su sugar -
  export DISPLAY=:1
+
export DISPLAY=:1
  export DBUS_SESSION_BUS_ADDRESS=$(dbus-daemon --session --print-address --fork)
+
export DBUS_SESSION_BUS_ADDRESS=$(dbus-daemon --session --print-address --fork)
  sugar
+
sugar
76

edits

Navigation menu