Created
July 27, 2014 12:28
-
-
Save mniip/192bcb5edf32c5569ab6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ $EUID != 0 ]; then | |
su -c $0 | |
exit | |
fi | |
for i in /tmp/.X11-unix/X*; do | |
ln -f $i $(sed 's:^/::' <<< "$i") | |
done | |
xauth extract - $DISPLAY | xauth -f root/.Xauthority merge - | |
export XAUTHORITY=/root/.Xauthority | |
mount -t proc proc proc | |
chroot . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment