Running programs whith display on another computer


Khalid Al-Baloushi


Let's say that you want to run a program on your laptop but you want the display on the desktop..

Laptop ip is 192.168.1.100
Desktop ip is 192.168.1.200

1- On the desktop, run xhost command followed by the laptop ip
# xhost 192.168.1.100

2- On the laptop, change the DISPLAY variable to use the desktop's display
# echo $DISPLAY
:0.0
# export DISPLAY= 192.168.1.200:0.0
# echo $DISPLAY
192.168.1.200:0.0

3- Make sure that the desktop can accept remote x requests. For example on ubuntu, go to: System>Administration>Login Window then click on the Security tab and uncheck the box next to Deny TCP connections to Xserver.

4- Run programs normally on the laptop and prey for me :)

تعليقات