Friday, April 19, 2024
 Popular · Latest · Hot · Upcoming
23
rated 0 times [  23] [ 0]  / answers: 1 / hits: 73112  / 2 Years ago, thu, october 13, 2022, 8:45:31

Is there any way to open the desktop display from terminal(ssh login)?


More From » kubuntu

 Answers
3

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.



https://help.ubuntu.com/community/FreeNX


[#41092] Friday, October 14, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
disdry

Total Points: 133
Total Questions: 128
Total Answers: 109

Location: Greenland
Member since Fri, Jul 31, 2020
4 Years ago
disdry questions
Tue, Apr 11, 23, 11:37, 1 Year ago
Thu, Oct 13, 22, 19:09, 2 Years ago
Fri, Oct 28, 22, 15:06, 2 Years ago
Sat, Feb 25, 23, 11:33, 1 Year ago
;