LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   rdesktop problems (https://www.linuxquestions.org/questions/linux-newbie-8/rdesktop-problems-604101/)

LMSSML 12-03-2007 05:23 AM

rdesktop problems
 
Hi there


I'm Trying to use rdesktop on my linux machine but the problem it's the following

$rdesktop <server>
Autoselected keyboard map pt
ERROR: Failed to open display:

Can anyone help

Thanks

matthewg42 12-03-2007 06:36 AM

Are you running a GUI on your Linux machine (i.e. not just logged in at text console)?

If you are running a GUI (an X server), and it is a typical configuration, and you are logged in as the same user which is running the GUI, it should just be a mater of setting the DISPLAY environment variable. It is a little strange that this is not set already, hence my question about being logged in at the console.

To set the DISPLAY and run the rdesktop, do this:
Code:

DISPLAY=:0.0 rdesktop <server>
By the way, it would be helpful if you could put your distribution in your profile. it will then appear on the left when you post, and save time / improve the accuracy of answers.


All times are GMT -5. The time now is 04:14 AM.