The Computer Oracle

Remote desktop from a Mac to an Ubuntu system?

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Lost Civilization

--

Chapters
00:00 Remote Desktop From A Mac To An Ubuntu System?
00:17 Accepted Answer Score 32
00:44 Answer 2 Score 11
03:27 Answer 3 Score 4
05:05 Answer 4 Score 2
05:29 Answer 5 Score 1
05:43 Thank you

--

Full question
https://superuser.com/questions/253044/r...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#mac #ubuntu #remotedesktop

#avk47



ACCEPTED ANSWER

Score 32


This site lists a number of servers, such as Vino and krfb. On the mac, you can just use the Screen Sharing client (in Finder's Go menu, click Connect to Server, then enter the address vnc://192.168.0.6 or whatever IP address the Ubuntu system is on, making sure to retain the vnc:// portion).




ANSWER 2

Score 11


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

  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 typing "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!

enter image description here

Disable Encryption

If you encounter error message stating something like: "the remote computer is incompatible with the version of your VNC client". For example the built-in Screen Sharing app on Mac, or the VNC Viewer for Windows. You should be able to fix it by asking Vino server to disable encryption. You do this by entering the command:

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

and then restart the Vino server with command:

sudo systemctl restart vino-server --user




ANSWER 3

Score 4


I have just sorted out this same challenge and had some great success, so wanted to share.

Goal: get screen sharing on my 2015 MacBook Pro (MacOS 11.4 Big Sur) to show me the screen of a fresh install of Ubuntu 20.04.2 LTS on my Mac Mini i7, over the house WIFI.

Steps to success for me were:

  • Get computers on the same wifi (no Vlan separations etc.)
  • Update both machines to most current version
  • On the Ubuntu Desktop:
    1. Open Settings -> Sharing
    2. Toggle the switch at the top to 'ON' (It should switch to Purple)
    3. Activate Screen Sharing
    4. Note the 'Computer Name' shown near the top of the window, you will need it on the Mac (you can also use the IP address if you )
    5. Ensure 'Allow connections to control the screen' and 'Require a password' are selected
    6. Make sure the right network is shown at the bottom of that window
    7. You can close the settings app now.
    8. Open a terminal and type: settings set org.gnome.Vino require-encryption false
    9. You can close the terminal app.
  • On the Mac
    1. From the Finder, select Go -> Connect to Server ... (or select Command+K)
    2. In the window that comes up, type vnc://<ubuntu_computer_name>.local
    3. When prompted, enter the password you chose on the Ubuntu machine

BTW, this should also work on most home wifi/ethernet combinations, but check your network settings to make sure they are not isolated from each other.




ANSWER 4

Score 2


Just tunnel your X11 session over SSH. Nice and fast - because you're sending drawing commands, etc. Not whole bitmaps.

ssh -X user@hostname (or IP address)

And then just type the name of a program, eg:

nautilus

You can run a whole desktop as well.




ANSWER 5

Score 1


JollysFastVNC is reportedly the fastest VNC server available for OSX.

That said, in my experience slow connections in/out from Ubuntu often mean it's trying to do IPv6 when it shouldn't be.