标签:down chmod article log ip地址 style network class .com
前两天到手一块树莓派3B+,感觉板子不错,有点搞头,就在某宝上淘了一块微雪的屏。看起来还不错,然后就搞了起来。
再讲之前,先说一下参考文档:
微雪官方:http://www.waveshare.net/wiki/3.2inch_RPi_LCD_(B)
静态ip设置:http://jingyan.baidu.com/article/9158e00056cdc0a255122879.html
由于微雪的官方驱动和网卡驱动有冲突,所以我们不能按照官方的步骤来做。
一。把网卡配置文件替换/etc/network/interfaces
1 # interfaces(5) file used by ifup(8) and ifdown(8) 2 3 # Please note that this file is written to be used with dhcpcd 4 # For static IP, consult /etc/dhcpcd.conf and ‘man dhcpcd.conf‘ 5 6 # Include files from /etc/network/interfaces.d: 7 source-directory /etc/network/interfaces.d 8 9 auto lo 10 iface lo inet loopback 11 12 # iface eth0 inet dhcp 13 14 auto ethiface eth0 inet static 15 address 192.168.0.20 ## 设定的静态IP地址 16 netmask 255.255.255.0 ## 网络掩码 17 gateway 192.168.0.1 ## 网关 18 19 20 allow-hotplug wlan0 21 iface wlan0 inet manual 22 wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf 23 24 allow-hotplug wlan1 25 iface wlan1 inet manual 26 wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
二。安装脚本:
1 #!/bin/sh 2 wget http://www.waveshare.net/w/upload/9/95/LCD-show-160813.tar.gz 3 4 chmod +777 LCD-show-160813.tar.gz 5 6 tar vzxf LCD-show-160813.tar.gz 7 8 sudo su 9 10 cp LCD-show /root/ -r 11 12 cd 13 14 cd LCD-show/ 15 16 ./LCD32-show
标签:down chmod article log ip地址 style network class .com
原文地址:http://www.cnblogs.com/jikexianfeng/p/6041227.html