Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 4774  / 1 Year ago, mon, february 20, 2023, 9:10:51

I am running Xubuntu on my main PC at home.



Is it possible for 2 users to work simultaneously on one computer,
while one is physically in front of the computer, and another one is connected remotely from another Ubuntu PC?



EDIT: Both users need a GUI environment.



If yes, how do I set it up?



EDIT 3: I have a powerful desktop PC (recently converted to Linux :) ) and 2 laptops. The desktop PC has a VM with all the Graphic Design software on it. Me and my friend both work on a web project, and the laptops are not suitable for it. The laptop is good for development, but every now and then I need to access the Graphical Design software, so I need the Desktop. My friend works on Linux Graphics tools and also needs the Desktop.
So we decided to share the Desktop, while he will be working on it directly, I would like to connect to it from my Laptop to access the VM. Desktop and laptop are in one LAN.



EDIT2: Thanks, for the comments and answers, I got on track with this. A quick search revealed 2 options:




  1. SSH-X or "X11 Forwarding via SSH" (as you already pointed out)

  2. FreeNX



Which direction would you recommend? Or a better alternative if you know one.



Sorry for bad explanation, I don't have good writing skills.


More From » xubuntu

 Answers
4

There are many ways you could accomplish this, the first couple that are most often used would be ssh (Secure Shell - so, primarily command-line interface to start), and other graphical interfacing methods like rdesktop.



You can also use a combination of ssh and rdesktop or other methods, depending on what you're trying to accomplish. As other users have mentioned, however, it would be worth describing (in some detail) what you're trying to achieve. ;)



Since you want a GUI-interface for both of the simultaneous users, I'd suggest using xrdp and the aforementioned rdesktop



sudo apt-get install xrdp


Then run rdesktop from whatever machine you're trying to connect to the server from. A good test (done entirely on the server) is doing the following:



rdesktop localhost


.. and logging in as the 'second' user. If it works, you'll simply need to try from the other machine the same way, but there's no need to install xrdp on that system (since that's the server).



Alternatively, if you just want to connect via a shell interface:



sudo apt-get install openssh-server


... and, with the very basic default configurations, you're already setup to go. Assuming your network has no port blocking or firewalls on the server-side, you should then be able to (from the other PC):



ssh <server IP address>


Or, to test on the server just to ensure it's ready (you would actually do this on the server's terminal window itself):



ssh localhost


Definitely look at ssh --help for detailed instructions on how to specify ports, users, etc. as you please.


[#30741] Tuesday, February 21, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rillrage

Total Points: 122
Total Questions: 120
Total Answers: 103

Location: Tokelau
Member since Thu, Aug 26, 2021
3 Years ago
;