Remote desktop on mac to linux

Remote Desktop connection from Mac to Ubuntu

It shouldn’t be #2 and 3 since I can ssh to the server just fine. So I suspect #1 is the culprit.

For RDP you need a desktop. If you have one installed then installing and configuring xrdp should be as in your linked answer.

David — when @CelticWarrior says «you need a desktop», he doesn’t mean a laptop wont work. He means you need a gui installed on your Ubuntu server. If you have a basic server from the «server» download link on ubuntu.com, it won’t have a gui (aka a desktop) unless you added and configured one (i.e. Unity, Gnome, etc.). Without a desktop/gui, something like xrdp will not work.

James: Ah I see. So in the link in the OP, I followed those instructions and installed xRDP and xfce4. Aren’t these all that is needed to set up the «desktop?»

4 Answers 4

You can use Microsoft Remote Desktop from App Store. Set up your Ubuntu this way:

If you don’t have desktop installed:

sudo apt-get install ubuntu-desktop

Enable XRDP to start on boot:

If you have a firewall make sure that the 3389 port is open:

Now connect with Microsoft Remote desktop to your Linux machine.

I successfully logged-in remotely from my iMac macOS Mojave desktop into my hackintosh, which is a retrofitted 2012 Apple Macbook Pro running smoothly Ubuntu 16.04:

From the Ubuntu Desktop in 16.04

  1. Download and install vino by running sudo apt-get install vino within the Ubuntu terminal.
  2. Next run vino-preferences .
  3. After the vino application preferences window prompts, ensure that the «Allow other users to view your desktop» and «Allow other users to control your desktop» options are selected beneath the «Sharing» field; it is also recommended to select the «You must confirm each access to the this machine» and «Require the user to enter system-password».
  4. Run sudo-reboot and then log-in to the Ubuntu 16.04 desktop.
  5. Retrieve and the device-IP address by running ifconfig -a ; the local-IP address of the device will be returned within the terminal-output under the field: «inet addr:» (e.g. inet addr: 10.3.1.233 ). After noting the local-IP address of the device, proceed with the next set of instructions from your macOS desktop.

From Ubuntu 18.04-2 LTS

  1. Evidently, vino functionality was merged in Ubuntu 18.04.2 LTS Gnome Control Center, so it’s much easier- simply go to «Settings».
  2. Within «Settings», scroll down to the «Sharing» tab within the left-hand side of the window.
  3. Turn on «Screen Sharing»- select «Allow connections to control the screen» and «Require a password» underneath «Access Options» then proceed with the below instructions to remotely access your Ubuntu 18.04.2 LTS desktop from your macOS desktop.
Читайте также:  Поменять хозяина папки линукс

Logging-in From macOS Mojave

  1. Access the «Spotlight» by hitting CMD + Space-bar
  2. Within the Spotlight field, enter vnc://your_server_ip:5900 (e.g. vnc://10.3.1.233:5900 ).
  3. If successful, the Screen Sharing application should automatically launch within your macOS desktop to remotely view your Ubuntu 16.04 or Ubuntu 18.04.2-LTS device on your local-network as depicted by the screen-shot below- enjoy!

Источник

How to set up remote desktop on Ubuntu, access it from macOS

Need to use a distant Ubuntu computer from your Mac laptop or desktop? I have an Intel NUC in my office providing some lightweight services — a Gogs-based Git server, and a Jenkins instance — and, while I hardly ever use its desktop environment it is useful to occasionally do so. Using Apple’s Screen Sharing feature is excellent, when used between Mac’s. But with Ubuntu two issues crop up, one being the relative difficulty getting it set up on Ubuntu and the other being the inscrutable error message macOS gives when you attempt to access the Ubuntu desktop.

Apple promises that remote desktop access is this easy. That the existence of a computer with desktop sharing turned on is advertised using the Bonjour service, such computers then automatically show up in Finder, and you simply click on this button and voila the remote desktop appears on your screen.

Getting to this goal requires two major tasks:

  1. Enabling remote desktop support on Ubuntu
  2. Configuring things such that the Mac is able to display a remote Ubuntu desktop

Enabling remote desktop support on Ubuntu

The Ubuntu project has integrated the Vino VNC server, and made it easy to configure Vino from the system Settings screens.

VNC — which stands for Virtual Network Computing — is a communications protocol letting you access desktop environments on remote computers. For a computer to share its desktop environment it must have VNC Server software. For a computer to access a remote desktop using VNC it must have VNC Client software.

VNC is not the only system of this sort. But it is the system we’ll use for this task, if only because VNC’s software licensing (it is open source) is friendly to Linux systems like Ubuntu.

In any case this means the remote Ubuntu machine must have a VNC server. That’s what Vino is, a VNC server which the Ubuntu project is putting to use.

In Ubuntu you access the system settings a.k.a. control panel via this menu. The icon to click on is in the lower left and looks like a wrench and screwdriver.

This is the main settings window. Click on the Sharing choice — because we’ll be enabling Screen Sharing. If we were doing the same for macOS, we’d go to System Preferences and also click on the Sharing section then enable Screen Sharing. The Ubuntu Team must have had this in mind when designing this for Ubuntu.

Читайте также:  Linux который похож на windows

In this pane you see three sorts of sharing — File Sharing, Screen Sharing and Remote Login. Each does what is implied, for example File Sharing sets up a SAMBA server and allows folks to access directories on the machine over the network.

In this case we’re interested in Screen Sharing and you can see I have already enabled this. The default is for this to be Off, so let’s see what’s involved with enabling the feature. Click on Screen Sharing.

Obviously for folks to access the screen the Allow connections choice must be selected. There’s also a button in the top of this dialog window, shown here as On that must be selected. That button controls whether this feature is on or off.

Down at the bottom is a choice labeled Networks. This Intel NUC has its WiFi turned off, and it is instead hardwired to an ethernet switch that includes the WiFi router. Obviously for remote access to the Ubuntu desktop at least one network connection must be enabled.

In the middle is something requiring a couple choices. It’s good form to limit access — since this is the desktop of a logged-in user on one of your computers. What if someone nefarious had access to your local network? You want to have some degree of control, don’t you?

The New connections must ask for access requires that someone using the shared computer must click approval on a dialog that pops up on the desktop. In this case I have not selected that choice because I simply want to connect to the Ubuntu desktop without requiring any input on that desktop.

The Require a password means that the VNC Client will ask for a password, and that a password is required to access the VNC server.

Once you’ve done this, close the dialog.

Enabling auto-login on Ubuntu

A related task is the option of having the Ubuntu system automatically log-in as a given user. In my case I want to not have to directly use the Ubuntu machine ever. Think of the Ubuntu machine being stuffed in a closet where there’s no display or keyboard. If the Ubuntu machine were rebooted you don’t want to go to the closet and log-in, you just want the machine to be logged in.

On this screen first click on the Unlock button in the title bar. You’ll be asked for your password. Then click on Automatic Login. This choice means that when the Ubuntu machine reboots it will automatically log in to this user ID.

Читайте также:  What is my linux server ip address

At this point you should reboot the computer to make sure Automatic Login works.

Enabling access to Ubuntu remote desktop from macOS

So far we’ve set up a VNC server on the Ubuntu machine. Recall that we now need a VNC Client to access any VNC server.

Take a look in the macOS Application Store and you’ll find several VNC client applications. Ignore all those.

Instead look in Finder and you should find something like this:

Simply click on the Share Screen button.

If everything is correctly configured you’ll get this, and upon entering the correct password you’ll get a screen showing the remote desktop.

In my case there was a problem — an inscrutable error message.

Hurm. I even got some of the macOS VNC clients in the App Store to see if they would work when Screen Sharing did not. The message doesn’t make much sense — it’s talking about incompatibility, but surely Apple would make things compatible? Surely one of the other VNC clients would make things compatible?

After some searching I found this command has to be run on the Ubuntu computer:

$ gsettings set org.gnome.Vino require-encryption false 

This setting has to do with whether the VNC transmission is encrypted. Getting back to security issues — what if your remote desktop session went over a network connection where others could watch what you were doing? In theory all your data could be exposed if someone else could snoop on your VNC remote desktop session. Therefore it is best to have VNC connections encrypted.

But the macOS Screen Sharing thing does not support encrypted VNC sessions. So. run the above command, and then you’ll be prompted for a password, and the remote desktop will pop up.

Windows?

Windows does not have such a feature built in. Instead you use a 3rd party VNC client of which there are many. A commonly recommended client is Real VNC.

Mobile devices

In the respective app stores for Android and iOS (or iPadOS) there are VNC client programs. Get one. I don’t have any recommendations to share.

In both the case of Windows and mobile VNC clients, the applications have a paradigm of managing a set of known VNC Connections. So you would add a New Connection for the Ubuntu machine, configure the settings for this connection, and then click the Connect button.

About the Author(s)

David Herron : David Herron is a writer and software engineer focusing on the wise use of technology. He is especially interested in clean energy technologies like solar power, wind power, and electric cars. David worked for nearly 30 years in Silicon Valley on software ranging from electronic mail systems, to video streaming, to the Java programming language, and has published several books on Node.js programming and electric vehicles.

Источник

Оцените статью
Adblock
detector