A Direct Ethernet Link between a MacBook Air and an Arch Linux ThinkPad
A single USB-C to RJ45 cable between a MacBook Air M1 and a ThinkPad P15 running Arch Linux, with fixed addresses, checks of the link, and passwordless SSH for Julia workers and Mathematica kernels.
In this post, we will describe how to connect a MacBook Air M1 to a ThinkPad P15 Gen 1 running Arch Linux with a single Ethernet cable, without using a router or a switch. We will give each machine a fixed address and set up passwordless SSH from the Mac to the ThinkPad. This Ethernet link will connect the two machines (as described in this setup). We will use the Mac to launch Julia workers and Mathematica kernels on the ThinkPad and use both machines concurrently to run our embarrassingly parallel computations. For remote access over the internet, see the notes on remote login, where we have used Tailscale.