I have two machines, both running kubuntu: server & client. I'd like to connect to server from client and start the full graphical interface without fear that some commands would be run as client user.
So, ssh -XC
works and I can also start graphical programs from it just fine.
However, when I type startkde
in the ssh console, it says "KDE seems to be already running on this display." Which is true, but not for the same user account.
I tried exiting graphical interface and logging in from tty, but that then (unsurprisingly) failed to start any graphical programs, including kde.
How then can I do this such that I could simply log in just as I log in with a local user? Use client machine as a dumb terminal.
Best Answer
XDMCP is designed for this. On your server, you need to enable XDMCP support in your desktop manager:
if you're using
kdm
, look forat the end of your
kdmrc
, changefalse
totrue
and restartkdm
;if you're using
lightdm
, addto
/etc/lightdm/lightdm.conf
and restartlightdm
.Then on your client, start X using
(with the appropriate IP address instead), and your server's login screen should show up on your client.