Questions tagged [xhost]
The xhost tag has no usage guidance.
26
questions
0
votes
2
answers
188
views
xhost not working in combination with aws vpn client
I have a laptop running Windows with a Cygwin X server. On this machine I have a virtual Linux box running under VMWare.
I set export DISPLAY=xserver:0 on the VM and do xhost +xclient on the cygwin ...
-2
votes
1
answer
1k
views
Why are these xhost commands used here for running a docker container?
I am running a docker container. The suggested way to run it is
$ xhost +
access control disabled, clients can connect from any host
$ sudo docker run -it --rm --ipc=host -e ...
1
vote
1
answer
416
views
Problem with XServer - _XSERVTransSocketUNIXAccept: accept() failed
I run a headless Manjaro server with Xhost and Xvfb (for a display) and after about 236 instances of a program running, the server starts lagging a lot and the error _XSERVTransSocketUNIXAccept: ...
0
votes
1
answer
10k
views
xhost: unable to open display "desktop:0"
UPDATE 1: I am not using SSH. I am using a local machine.
UPDATE 2: I restarted the X and notice that the Xauthority file that I am exporting to is actually being updated:
$ sudo systemctl restart ...
2
votes
1
answer
4k
views
How to enable xhost access from second user when display:0 is on first user?
Here is my situation:
I have two (sudo) users on a machine:
userA (created first on the machine. This is also where display :0 is attached)
userB (created later)
Being on userA I do:
export DISPLAY=:...
8
votes
3
answers
6k
views
How to run graphical applications as root under wayland
Under the new Wayland display server, several applications requiring root permission fail to run. I actually have an answer (one way of working around the issue). I welcome any better solutions or ...
0
votes
0
answers
4k
views
How to add authorized client to xhost?
Om a linux machine (In this case Debian), when I use the xhost command as follows:
$ xhost +
access control disabled, clients can connect from any host
$ xhost -
access control enabled, only ...
0
votes
1
answer
1k
views
Setting `xhost` from systemd service file
I would like to run DISPLAY=:0 xhost + at every system boot. (I'm aware of the security implications of xhost +.)
This command, executed locally, works just fine:
username@hostname:`$ DISPLAY=:0 ...
0
votes
0
answers
377
views
fedora31: cannot open display:: 0 without ethernet
I use as a window manager i3, lightdm and other graphic display manager disabled
Starting with Fedora-31, executing "nm down ethernet" causes the graphics programs to stop running:
Cannot open ...
0
votes
1
answer
3k
views
Allowing xhost access to another user, permanently
I want to run a GUI application as another user (say other-guy). Whenever I want to do so, I run
xhost si:localuser:other-guy
The changes only persist until a reboot. How do I make this permission ...
0
votes
1
answer
177
views
Why does sudo xhost throw an error on openSUSE, but su -c xhost does not?
Here are some things that work:
xhost
su -c xhost
su -c su `logname` -c xhost
Here are some things that do not work:
sudo xhost
sudo su `logname` -c xhost
sudo runuser -l `logname` -c xhost
sudo -u ...
0
votes
1
answer
644
views
Configuring CentOS 7, ParaView and Oracle VM VirtualBox on Windows 7
I am attempting to run OpenFOAM 2.3.1 on an installation of CentOS 7, running inside a virtual machine hosted by Oracle VM VirtualBox on a Windows 7 machine. I am not trying to use any remote ...
3
votes
1
answer
4k
views
Is 'xhost local' (no colon) allowing malicious access?
I'm setting up a new system and need to grant the root user authority to access the nonroot user's X display in order to run GUI utilities. I used the xhost command for this as follows, but mistakenly ...
1
vote
1
answer
14k
views
Unable to open display - error
I ran the command below on secureCRT ssh client:
$ DISPLAY=abc.xyz.com:0 ; export DISPLAY
$ /bin/xhost +abc.xyz.com
But it output this error:
/bin/xhost: unable to open display "abc.xyz.com"
# ...
7
votes
1
answer
23k
views
Xauthority problem xdpyinfo: unable to open display "".
I am trying to run a program after enabling X windows port forwarding.
My sshd_config file in /etc/ssh/sshd_config is configured such that:
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
...
6
votes
1
answer
5k
views
how long is xhost +local: active
Could someone tell me if the following command is permanent?
xhost +local:
or is it reset after I close the application, session or reboot?
or do I need to run afterwards the following command to ...
5
votes
1
answer
6k
views
How to allow second local user access to DISPLAY 0
I have basic desktop machine with two user accounts. I want to allow the second user ( no the one which started X ) to access xserver and run GUI programs.
I had this working using xhost from the ...
-1
votes
1
answer
340
views
SSH Tunnelling for Exceed
I have a following requirement.
Source (Windows-Exceed) ---> Destination (Linux Running XServer xdm-kdm)
I am able to get the complete X GUI when I connect using Exceed to Destination. This works!!
...
1
vote
0
answers
525
views
How do I use xhost for linking the display of one virtual terminal device to another?
I am currently trying to make an autonomous drone using the Robot Operating System (ROS). To do this, I have installed Raspbian Lite (Jessie) on a Rasperry Pi 3 and am currently using ROS Kinetic on ...
0
votes
0
answers
446
views
How do I use xhost for this situation?
I am currently trying to make an autonomous drone using the Robot Operating System (ROS). To do this, I have installed Raspbian Lite (Jessie) on a Rasperry Pi 3 and am currently using ROS Kinetic on ...
3
votes
2
answers
854
views
Raspberry pi 3 *reverse* remote desktop
I have local machine (A) and Raspberry PI 3 (B).
B has HDMI monitor connected, and is running Raspbian OS.
I want to run X application on A - say Libre Office Impress presentation that I have on A, ...
1
vote
1
answer
3k
views
What's the difference between X11 forwarding with `ssh -X hostname and xhost +hostname; ssh hostname`?
In both the cases, I am able to connect to X11.
What's the difference?
And is xhost +hostname permanent, even after the base terminal is closed?
0
votes
3
answers
274
views
Execute command after GUI-application has started
I have to use a home-built tool at my company which requires 'root' privileges.
To make things worse, it's a GUI application. Normally, I wouldn't execute such things, but I don't have much of a ...
3
votes
0
answers
7k
views
Difference between 'xhost + ' and 'xhost +SI:localuser:AnotherUser'
If I do
xhost +
>access control disabled, clients can connect from any host
su AnotherUser -c xterm
an xterm pops up.
However if I do
xhost +SI:localuser:AnotherUser
>localuser:AnotherUser ...
14
votes
1
answer
38k
views
What does this `xhost ...` command do?
Please help me understand this line of command:
xhost +SI:localuser:lightdm
in reference to the answer in this post and also suggest if there's a better way and why that's needed. I couldn't make ...
5
votes
0
answers
3k
views
Security of xhost (local) and sudo xauthority forwarding
Context: launch a GUI application as a linux service. I considered making a headless daemon with a GUI front-end but there is too much code involved to do it now. This service must start on user login,...