Install nmap if you don't already have it on your Linux computer. Run "sudo apt-get install nmap" on Ubuntu, or "sudo dnf ...
You can enable remote desktop access on a Mac to allow yourself and others to access your computer from a different location.