Sunday, June 9, 2013

How to open X programs inside chroot

1. You must have Xnest program. In Ubuntu type
sudo apt-get install xnest

2. Run "Xnest -ac :1". Program Xnest will be opened.

3. In other terminal chroot where you want to chroot

4. From chrooted location type "export DISPLAY=localhost:1"

Now you should be able to open any x application. Type "xterm" for example

No comments:

Post a Comment