Questions tagged [xhost]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
39 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 ...
user avatar
-2 votes
1 answer
101 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 ...
user avatar
  • 90.8k
0 votes
1 answer
91 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: ...
user avatar
  • 9
1 vote
1 answer
3k 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 ...
user avatar
1 vote
1 answer
1k 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=:...
user avatar
2 votes
0 answers
2k 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 ...
user avatar
1 vote
0 answers
2k 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 ...
user avatar
  • 155
0 votes
1 answer
617 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 ...
user avatar
  • 424
0 votes
0 answers
267 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 ...
user avatar
  • 21
0 votes
1 answer
2k 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 ...
user avatar
0 votes
1 answer
133 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 ...
user avatar
0 votes
1 answer
538 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 ...
user avatar
  • 1,025
3 votes
1 answer
2k 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 ...
user avatar
  • 2,105
1 vote
1 answer
11k 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" # ...
user avatar
  • 1,286
5 votes
0 answers
21k 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 ...
user avatar
5 votes
1 answer
3k 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 ...
user avatar
4 votes
1 answer
5k 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 ...
user avatar
  • 41
-1 votes
1 answer
281 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!! ...
user avatar
1 vote
0 answers
448 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 ...
user avatar
  • 275
0 votes
0 answers
316 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 ...
user avatar
  • 275
3 votes
2 answers
790 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, ...
user avatar
  • 308
1 vote
1 answer
2k 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?
user avatar
  • 703
0 votes
3 answers
231 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 ...
user avatar
  • 101
3 votes
0 answers
5k 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 ...
user avatar
11 votes
1 answer
31k 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 ...
user avatar
  • 1,681
5 votes
0 answers
2k 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,...
user avatar