Questions tagged [xhost]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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 ...
Richard Wheeldon's user avatar
-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 ...
Tim's user avatar
  • 100k
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: ...
Bintr's user avatar
  • 31
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 ...
Mona Jalal's user avatar
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=:...
Karan Shah's user avatar
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 ...
ManSoMean's user avatar
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 ...
Anirban's user avatar
  • 141
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 ...
Multisync's user avatar
  • 474
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 ...
dymdin's user avatar
  • 21
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 ...
Mukesh Sai Kumar's user avatar
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 ...
Johnathan Andersen's user avatar
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 ...
J Collins's user avatar
  • 1,115
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 ...
DocSalvager's user avatar
  • 2,143
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" # ...
overexchange's user avatar
  • 1,496
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 ...
CrazyCray's user avatar
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 ...
dr.nukular's user avatar
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 ...
stacker's user avatar
  • 51
-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!! ...
Sachin H's user avatar
  • 111
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 ...
SDG's user avatar
  • 315
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 ...
SDG's user avatar
  • 315
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, ...
JustMe's user avatar
  • 308
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?
GP92's user avatar
  • 815
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 ...
tannerli's user avatar
  • 101
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 ...
user129340's user avatar
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 ...
rusty's user avatar
  • 1,861
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,...
Thomas Vincent's user avatar