Questions tagged [xhost]

26 questions
13
votes
1 answer

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 much from the man page, so I expect some more…
rusty
  • 1,841
  • 6
  • 21
  • 25
8
votes
3 answers

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 criticisms. Many other answers to this issue…
ManSoMean
  • 81
  • 1
  • 4
6
votes
1 answer

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 and my ssh_config file in /etc/ssh/ssh_config…
CrazyCray
  • 61
  • 1
  • 1
  • 2
6
votes
1 answer

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 undo the one above? xhost -
dr.nukular
  • 61
  • 1
  • 2
5
votes
0 answers

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, it should be started in the user shell (file…
Thomas Vincent
  • 153
  • 1
  • 5
4
votes
1 answer

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 login user but this no longer seems to work. xhost…
stacker
  • 41
  • 1
  • 4
3
votes
1 answer

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 leaving off the colon suffix seems to have…
DocSalvager
  • 2,143
  • 2
  • 25
  • 38
3
votes
2 answers

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, and have it visible (be displayed on) on screen…
JustMe
  • 308
  • 1
  • 9
3
votes
0 answers

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 being added to access control list su AnotherUser -c…
user129340
  • 61
  • 2
  • 4
2
votes
1 answer

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=:0.0 xclock And the clock opens on DISPLAY:0 as…
Karan Shah
  • 121
  • 1
  • 4
1
vote
1 answer

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: accept() failed is printed infinitely on the screen.…
Bintr
  • 31
  • 3
1
vote
1 answer

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" # cat /etc/system-release Red Hat Enterprise Linux…
overexchange
  • 1,466
  • 10
  • 29
  • 46
1
vote
0 answers

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 it. I decided to go with Openbox Window Manager…
SDG
  • 315
  • 1
  • 4
  • 16
1
vote
1 answer

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
  • 775
  • 6
  • 15
  • 31
0
votes
2 answers

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 shell. I can use either the hostname or the IPv4…
1
2