diff --git a/README.md b/README.md index 8075354..ab1c7d8 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,27 @@ accessed relative to that. e.g. or `sudo ./create_environment ~/install_scripts/your_script`. +Opening Windows +--------------- + +To access an X11 server, clients need two things, access to /tmp/.X11-unix, and +authorisation in X11's "access control" model. The former is automatically +bound by the `create_environment` script, but to get the latter you will need +to change the access control yourself. On a single-user device the simplest +way to do this is to disable X11 access control altogether, using `xhost +`, +but if for some reason you are testing these install scripts on a multi-user +system, you'll want to find some way to protect your X11 server from other +users, while still allowing your chroot host to access it. + +Once you have disabled access control, any X11 applications you like can be +installed with `apt` or `zx`, and run, and the windows will open in your +window manager, despite still being attached to the chroot. This means +different programs can be installed, configured, and run, without access to +any of the parent system's configs, allowing us not only to test that we have +all the dependencies needed to run the X11 application, but also to test any +configurations of the application that we might want to do automatically, from +that script. (e.g. adding realms to zx, creating default wallets, whatever.) + Destroy Environment ------------------- diff --git a/debian/cleanup b/debian/cleanup index 7aad62e..0da5962 100755 --- a/debian/cleanup +++ b/debian/cleanup @@ -33,9 +33,11 @@ add_mounts() { add_mount /sys add_mount /dev add_mount /dev/pts + add_mount /tmp/.X11-unix } remove_mounts() { + remove_mount /tmp/.X11-unix remove_mount /dev/pts remove_mount /dev remove_mount /sys diff --git a/debian/install_scripts/get_erlang_zx b/debian/install_scripts/get_erlang_zx index 2c3d668..368233e 100755 --- a/debian/install_scripts/get_erlang_zx +++ b/debian/install_scripts/get_erlang_zx @@ -1,3 +1,4 @@ #!/bin/sh -sudo apt install erlang-base +sudo apt -y install wget erlang wget -q https://zxq9.com/projects/zomp/get_zx && bash get_zx +~/bin/zx run gajudesk