How does rdesktop set the DISPLAY variable?
I connect from UBUNTU on a PC to two raspbery pi computers via rdesktop, not both at the same time, say to rasp1 and rasp2.
In the remote desktop I open a terminal and issue "echo $DISPLAY".
On rasp1 I get :10.0 and can start programs that use a GUI, e.g., gparted.
On rasp2 I get :0.0 and trying to start gparted I get "cannot open display: :0.0". However, "DISPLAY=:10.0 gparted" works fine.
So the question: why sets rdesktop the DISPLAY variable sometimes, sometimes not. Where comes :10.0 from?
rasp1 and rasp2 run the same OS: ubuntu mate.
Thanks for enlightenment,
ulrich
|