Comments (5)
Hello,
The VPN is not a problem for display sharing neither is the host
mode (Exegol is using a X11 unix socket).
Can you run exegol info <container_name>
and copy paste here the result ?
Exegol does not support wayland yet, and I never tested the compatibility with Xwayland, so this is problem the reason why.
from exegol.
Here's exegol info
output :
┌──────────────────┬───────────────────────────────────────────────────────────────────┐
│ Name │ demo │
│ Image │ light - v.2.1.1 │
├──────────────────┼───────────────────────────────────────────────────────────────────┤
│ GUI │ On ✔ │
│ Network │ host │
│ Timezone │ On ✔ │
│ Exegol resources │ On ✔ (/opt/resources) │
│ My resources │ On ✔ (/my-resources) │
│ Shell logging │ Off 🪓 │
│ Privileged │ Off ✔ │
│ Workspace │ Dedicated (/workspace) │
│ Envs │ DISPLAY=:0 │
│ │ _JAVA_AWT_WM_NONREPARENTING=1 │
│ │ QT_X11_NO_MITSHM=1 │
│ │ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin │
│ Volumes │ /home/hollow/.exegol/my-resources ➡ /my-resources │
│ │ /home/hollow/.exegol/exegol-resources ➡ /opt/resources │
│ │ /home/hollow/.exegol/workspaces/demo ➡ /workspace │
│ │ /tmp/.X11-unix ➡ /tmp/.X11-unix │
│ │ /etc/localtime ➡ /etc/localtime (RO) │
└──────────────────┴───────────────────────────────────────────────────────────────────┘
The error message when I try to start firefox
is :
Authorization required, but no authorization protocol specified Unable to init server: Could not connect: Connection refused Error: cannot open display: :0
I don't really know if this info is relevant but my compositor (Hyprland) uses wlroot's wlr_xwayland_create to start Xwayland.
from exegol.
So I found a weird workaround, it works but I don't know how or why :
I created a user with the same UID as my host user in the container and when I start a GUI while su
'ed into this user it works.
Steps to reproduce :
# useradd -o -m -u <Host User ID> host_user
# su host_user
$ firefox
-> It works
I noticed in the permissions of /tmp/.X11-unix/X0
the rvm
group with a GID of 1000 but no user with the same name, what is it ? I only found things related to the Ruby Version Manager ?
from exegol.
Thats because /tmp/.X11-unix/X0
is a unix socket of your X server on your host and this soket is used by GUI application running in your user environment with user rights.
The Authorization required
error may occur if the X server requests authentication (see the xauth
command).
The UID / GID 1000 is the first default id for user and group on your host system, when using docker bind mount, file and permission are shared. When you shared a file own by your host user, it's own by UID 1000 but inside your container, UID (from /etc/passwd
) are not the same that your host and same for groups.
By using a user with the same id of your host user with the right permission, you manage to use the unix socket.
It would be interesting to see if with xauth
(from the host or the container) it would be possible to add exegol to the authorized accounts.
from exegol.
Thanks for your explanations !
I don't have much time but if I manage to find a nice way to do it I'll open a PR 👍
from exegol.
Related Issues (20)
- [BUG] update message incomplete HOT 1
- sub-modules of `exegol-resources` are missing HOT 5
- Installed image are not correctly reported with podman HOT 6
- [BUG] Desktop (beta) on a missing network interface leads to stacktrace on all wrapper commands HOT 4
- [BUG] Error with X11 folder bindind HOT 7
- Request to add a --run-script option for post install setup HOT 2
- WSL2 "Exec format error" when running 'cmd.exe' HOT 13
- Honour trusted certificates of host HOT 4
- [ERROR] The xhost command is not available on your host and can't access containers from previous install HOT 4
- Docker-desktop auth error HOT 3
- Can not setup workspace in mounted directory HOT 31
- TypeError on Custom network mode VPN HOT 1
- Incorrect port syntax : using vpn HOT 4
- Exegol routed through tor ? HOT 2
- xhost: unable to open display ":0" HOT 9
- Upgrade of Wrapper v4.3.1 -> v4.3.2 on MacOS occurs a CRITICAL ERROR HOT 3
- Error while exegol update execution HOT 4
- Unable to install images due to docker disk space error HOT 2
- [Feature] - Log session
- Remote Desktop feature dont work HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from exegol.