LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 09-29-2022, 03:54 PM   #1
mbmsv
LQ Newbie
 
Registered: Apr 2022
Posts: 3

Rep: Reputation: 0
Question Is there a way to Remote Desktop to an existing Gnome session?


I am using a CentOS 8 Stream desktop at work to run some software that uses GUI. I want to be able to connect to it remotely from a Windows machine to continue working on a project from home or simply from another Windows PC in the office. So far, every remote desktop solution I tried either didn't work at all or it would only be able to open a new blank session in Gnome while all I want is for it to work as the Remote Desktop works in Windows where I can always connect to my Windows work PC from home and I will see the screen exactly the way I left it before leaving for home.

Can this be done? Any help is highly appreciated.
 
Old 09-29-2022, 04:24 PM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 6,270

Rep: Reputation: 2989Reputation: 2989Reputation: 2989Reputation: 2989Reputation: 2989Reputation: 2989Reputation: 2989Reputation: 2989Reputation: 2989Reputation: 2989Reputation: 2989
I have done this using VNC. Start a listening session ON the desktop listeining at a local port before leaving the machine, then connect using VNC over SSH to access that port on the host machine using ssh forwarding. (I also used VNC directly a time or two, but only when I had a solid and secure VPN connection as VNC is not very secure without some kind of encryption to protect the traffic.) My experience with it is ancient now, as I have not wanted access to an existing session that was not served by SCREEN for a long, LONG time!

If you set VNC services on the host machine as a service you can connect, but every connection has a unique desktop session and NOT the one already running.

You might look into other options. I once used RDP for that purpose, but it is almost as insecure as VNC and even Microsoft no longer recommends it.

I would consider some of the other options from these pages:
https://www.itproportal.com/guides/b...top-for-linux/
https://www.techradar.com/best/best-...esktop-clients
or
https://www.tecmint.com/best-remote-...ring-software/
and see if any of them had the functionality you are seeking. Keep in mind you may be looking for a combination of applications to accomplish the need. My VNC suggestion above is one for the desktop view/control and a different one to secure that access. It is unclear to me if something like REMMINA or NoMachine performs both functions in a way that would serve you well.

Last edited by wpeckham; 09-29-2022 at 04:29 PM.
 
Old 09-29-2022, 08:16 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,987
Blog Entries: 28

Rep: Reputation: 6371Reputation: 6371Reputation: 6371Reputation: 6371Reputation: 6371Reputation: 6371Reputation: 6371Reputation: 6371Reputation: 6371Reputation: 6371Reputation: 6371
I would also recommend a VNC.

Here's another link you might want to check: https://www.howtogeek.com/devops/how...s-the-network/
 
Old 10-06-2022, 12:24 PM   #4
suramya
Member
 
Registered: Jan 2022
Location: Earth
Distribution: Debian
Posts: 249

Rep: Reputation: 103Reputation: 103
Anydesk also works quite well between Linux and windows machines (even Linux to Linux).
 
1 members found this post helpful.
Old 10-06-2022, 06:31 PM   #5
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 6,270

Rep: Reputation: 2989Reputation: 2989Reputation: 2989Reputation: 2989Reputation: 2989Reputation: 2989Reputation: 2989Reputation: 2989Reputation: 2989Reputation: 2989Reputation: 2989
Quote:
Originally Posted by suramya View Post
Anydesk also works quite well between Linux and windows machines (even Linux to Linux).
Does "Anydesk" allow you to connect to and run and existing running session?
 
Old 10-07-2022, 12:50 AM   #6
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,882

Rep: Reputation: 645Reputation: 645Reputation: 645Reputation: 645Reputation: 645Reputation: 645
My method:

SSH to target (as user with existing graphical session).
Run x11vnc (with appropriate options as desired).
Connect with VNC client (via SSH tunnel).
 
Old 10-13-2022, 12:45 PM   #7
suramya
Member
 
Registered: Jan 2022
Location: Earth
Distribution: Debian
Posts: 249

Rep: Reputation: 103Reputation: 103
Quote:
Originally Posted by wpeckham View Post
Does "Anydesk" allow you to connect to and run and existing running session?
yes. Think VNC over encrypted channel and a lot less bandwidth usage. It also allows you to redirect/pipe speaker and mic input/output streams between the two machines.
 
  


Reply

Tags
centos, rdp, vnc


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to launch "cinnamon-session-cinnamon" X session "cinnamon-session-cinnamon" -found; Falling back to default "session." xxxindigo Linux Mint 22 09-01-2019 09:21 AM
Session key renegotiation if session lasts longer than configured (e.g. an hour) then session keys needs to be renegotiated. dakshinya Linux - Newbie 1 02-04-2016 04:15 PM
How to have remote administration take over existing session mindjet SUSE / openSUSE 1 11-27-2007 09:27 PM
Creating a screen session in an existing session Frits of waterplant Linux - Newbie 4 01-18-2007 04:53 AM
Is there a fast way to view (not manipulate) an X session on a remote machine? auditek747 Linux - Software 4 03-18-2006 11:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 07:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration