Questions tagged [xhost]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
17 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
1answer
235 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 ...
1
vote
1answer
139 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
1answer
2k 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" # ...
2
votes
0answers
7k 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 ...
3
votes
1answer
1k 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 ...
0
votes
1answer
1k 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
1answer
149 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
0answers
244 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
0answers
175 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
2answers
625 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
1answer
1k 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
3answers
157 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
0answers
3k 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 ...
7
votes
1answer
17k 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 ...
4
votes
0answers
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,...