iface eth0 inet static
address 192.168.1.138 # 设定的静态IP地址
netmask 255.255.255.0 # 网络掩码
gateway 192.168.1.1 # 网关
远程桌面:
首先,要在树莓派中安装一个xrdp。可以用以下命令,就可以完成所有事情了。(命令的方法可以通过ssh或者是串口的方法。自然,这个时候树莓派应该是能上网的。)
sudo apt-get install xrdp
其次,找到windows中的远程桌面。(它在windows附件中。)