Initial unpacking:

wget http://...../chroot-cs.tar.gz
sudo tar --numeric-owner --same-owner --same-permissions -xzvf chroot-cs.tar.gz

Setup:

sudo mount --bind /tmp/.X11-unix/ chroot-cs/tmp/.X11-unix/    # Each time you reboot
sudo cp ~/.Xauthority chroot-cs/home/user/                    # Each time you restart X
sudo chown 1000 chroot-cs/home/user/.Xauthority               # Each time you restart X

To run it:

sudo chroot chroot-cs/ su user -c 'DISPLAY=:0 wine /home/user/Counter-Strike\ 1.6/cstrike.exe'

CSChroot (last edited 2009-09-24 04:25:15 by RichardDarst)