Quote:
Originally Posted by prodev05
After logging in to the remote machine, you are trying to start a graphical window, possibly it a command (xclock). The issue is you have to export the variable from localhost to the remote machine. Follow the below steps.
1.) Login to you local machine and get the output for the command " echo $DISPLAY "
2.) Login to the remote machine and ensure the graphical display manager is running.
3.) Open a terminal from the remote machine and export the display of your localhost.
4.) then you try to issue the command " xclock ".
|
Thanks for your reply. #echo $DISPLAY was showing the IP address of the unknown IP. I wonder who in the world edit the config file. I finally figure out myself how to change the value for this $DISPLAY by command
Code:
export DISPLAY=localhost:10.0
But then, after reboot, this export return to its normal condition which is showing unknown IP. So, in order to make the changes permanent edit this file
~/.bash_profile and add the line export DISPLAY=localhost:10.0 in it. So next time if you reboot the machine the $DISPLAY will still localhost:10.0 !
Anyway prodev05, thanks.