https://www.cnblogs.com/10e-6/p/5778355.html
step:
1. SSH landing Raspberry Pi, the first connection can use the mouse + keyboard + raspberry sent directly to the display interface is provided a wireless connection.
2. Update Software:
sudo apt-get update
3. Install vim: vi system comes with a very bad, would be more convenient to use vim:
sudo apt-get install vim
4. Set the wired LAN static IP:
sudo vim /etc/dhcpcd.conf
First press the button to start insert editing
Copy the contents
interface eth0 static ip_address=192.168.1.177/24 static router=192.168.1.1
Move the cursor to the bottom, press paste chrl + alt + v
chrl + c save
After the press: wq press Enter to save and exit
5: Restart Raspberry Pi:
sudo reboot