5
4
I am frequently using ssh
to connect to remote linux machines. Using ssh -X
it is even possible to use the gui. Unfortunately, this is very slow, when done over the internet. The gui is very sluggish, and frankly speaking quite annoying to use. It is also not really what I would like to have, since I don't see the desktop, and opening multiple programs via the ssh -X
, makes the connection even slower.
Linux has one very handy tool named rdesktop
. I can use rdesktop
to log to my windows machine. In this case everything runs smoothly and results in no sluggish gui. Even better, is that I can actually see the same screen, as if I am sitting on the remote computer, which is my final goal.
My question is, whether such option exists to connect form linux to linux and have similar features like rdesktop
. Or even better, is it possible to use rdesktop
to connect to a linux machine?
I tired to do this, but I failed. To log on the windows machine I use Local port forwarding on an intermediate machine, since my desktop is on a local network and not directly visible from the internet. But I don't see why dis works with windows and not with linux.
Thank you for your help
With some help form the experts on this forum and some internet research I found a solution.
Solution:
It is possible to use rdesktop with Linux. For this xrdp
is needed. The steps to use it are:
1) install xrdp
2) open /etc/xrdp/xrdp.ini
and
2.1) check on which port xrdp is listening
2.2) to be able to resume sessions change port=-1
to port=ask-1
3) if xrdp
is not on do service xrdp start
if it is on you have to do
service xrdp restart
to load the new configuration.
4) add rule to sudo iptables -I INPUT 1 -p tcp --dport XRDP_PORT -j ACCEPT
5) rdesktop ip_remote_pc:XRDP_PORT -f -u "username"
6) Enjoy
Thanks for the help!
If you want to connect from Linux to Linux and for personal use, If in you would check nomachine nx. Always server + client. – Hastur – 2015-11-16T13:50:08.983
I am doing this experiments on my home network, and was curious how to do the equivalent of remote desctop on Linux.
xrdp
seems to do the job fine, unfortunately it is a bit slower than doingrdesktop
to a windows machine. Perhaps I will have to look at some fine tuning for speedup or use another tool. – Alexander Cska – 2015-11-17T16:03:50.597Check nomachine nx... and let me know if you find it better... – Hastur – 2015-11-17T16:05:46.543