Dino Angelov Software Architect

Connect a Raspberry Pi or Orange Pi to your Arch machine

• 2 minute read

Make sure the ethernet controllers on your machine and the Pi both have auto MDIX capabilities. If they do, you won’t need a crossover cable.

Connect your Pi to your Arch machine. Open the Advanced network configuration and edit your Ethernet/Wired connection (double-click). Under IPv4 Settings > Method, select Shared to other computers. Add an address:

AddressNetmaskGateway
10.0.0.1810.0.0.1

And then save.

Unplug the cable and plug it back in. After a few seconds, run nmap 10.0.0.0/24. If you don’t have nmap at the moment, install it with sudo pacman -S nmap and then run the command. It should show a list of entries such as:

▶ nmap 10.0.0.0/24
Starting Nmap 7.80 ( https://nmap.org ) at 2020-03-21 09:29 CET
Nmap scan report for 10.0.0.1
Host is up (0.000066s latency).
Not shown: 998 closed ports
PORT     STATE SERVICE
53/tcp   open  domain
5718/tcp open  dpm

Nmap scan report for 10.0.0.115
Host is up (0.0041s latency).
Not shown: 999 closed ports
PORT   STATE SERVICE
22/tcp open  ssh

Nmap done: 256 IP addresses (2 hosts up) scanned in 2.87 seconds

Look for a report for an IP address in the format of 10.0.0.x but not 10.0.0.1, as that is your own machine. In my case, the IP address of the Pi was 10.0.0.115. You can now SSH to your Pi:

ssh root@10.0.0.115

If all went well, you should now be asked to enter the current password and change it (if it’s your first time connecting to your Pi).