Open gajudesk from erlang script
This commit is contained in:
parent
3898aa52be
commit
9b2970d540
21
README.md
21
README.md
@ -68,6 +68,27 @@ accessed relative to that. e.g.
|
|||||||
or
|
or
|
||||||
`sudo ./create_environment ~/install_scripts/your_script`.
|
`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
|
Destroy Environment
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
|
2
debian/cleanup
vendored
2
debian/cleanup
vendored
@ -33,9 +33,11 @@ add_mounts() {
|
|||||||
add_mount /sys
|
add_mount /sys
|
||||||
add_mount /dev
|
add_mount /dev
|
||||||
add_mount /dev/pts
|
add_mount /dev/pts
|
||||||
|
add_mount /tmp/.X11-unix
|
||||||
}
|
}
|
||||||
|
|
||||||
remove_mounts() {
|
remove_mounts() {
|
||||||
|
remove_mount /tmp/.X11-unix
|
||||||
remove_mount /dev/pts
|
remove_mount /dev/pts
|
||||||
remove_mount /dev
|
remove_mount /dev
|
||||||
remove_mount /sys
|
remove_mount /sys
|
||||||
|
3
debian/install_scripts/get_erlang_zx
vendored
3
debian/install_scripts/get_erlang_zx
vendored
@ -1,3 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/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
|
wget -q https://zxq9.com/projects/zomp/get_zx && bash get_zx
|
||||||
|
~/bin/zx run gajudesk
|
||||||
|
Loading…
x
Reference in New Issue
Block a user