You can use the -X option to forward graphical applications. People typically forward single applications or the taskbar or panel rather then the entire desktop. For applications such as Firefox people typically "tunnel".
ssh -X user@server
Then you can
startkde &
To use Xephyr :
sudo apt-get install xserver-xephyr
Start a Xephyr session
# change "1280x1024" to the size you desire
Xephyr -ac -screen 1280x1024 -br -reset -terminate 2> /dev/null :1 &
Set your $DISPLAY (assuming Xephyr is on :1)
DISPLAY=:1.0
ssh in to your server and start kde
ssh -XfC -c blowfish user@server startkde
-X = forward X
-f = puts your ssh session into the background
-C = use compression -c blowfish = use blowfish (I am told this is the fastest)
If you are using ssh, be sure to understand the security risk, and I personally advise you use keys and disable password authentication.
If you want an entire desktop I would suggest FreeNX. FreeNX is both fast and secure.
I use freerdp-x11 that is front-ended by x2goclient and back-ended by x2goserver, if you are connecting to Linux machines, then the connection is established and secured by ssh.
You can use the
-X
option to forward graphical applications. People typically forward single applications or the taskbar or panel rather then the entire desktop. For applications such as Firefox people typically "tunnel".Then you can
To use Xephyr :
Start a Xephyr session
Set your $DISPLAY (assuming Xephyr is on :1)
ssh in to your server and start kde
If you are using ssh, be sure to understand the security risk, and I personally advise you use keys and disable password authentication.
If you want an entire desktop I would suggest FreeNX. FreeNX is both fast and secure.
https://help.ubuntu.com/community/FreeNX
If you're just talking about running a graphical application from the terminal, you can specify the
DISPLAY
environment value like so:Or if you want it to persist you can export it to remain part of your bash session:
I use freerdp-x11 that is front-ended by x2goclient and back-ended by x2goserver, if you are connecting to Linux machines, then the connection is established and secured by ssh.
This also enables shadowing.
Alternatively, xtightvncviewer is rather handy.
For the x2goserver, depending on distro: https://wiki.x2go.org/doku.php/wiki:repositories:ubuntu
You might need to configure such things as this:
Then all you need to do is launch the x2goclient, add in your parameters and pick the desktop type the host is using. For example, I use:
Parameters:
when connecting to a Windows terminal server.
The majority of Linux machines are using Lubuntu, which is LXDE, so I pick that and the resolution, the rest works automatically.