- 博客(18)
- 收藏
- 关注
原创 树莓派 - 2 Python - c 实验:文件传输
接收端(server)代码import osimport structimport socketimport threading##########def deal_data(conn, addr): # 打印client地址 print ('>> Accept connection from {0}'.format(addr[0])) # 接收文件头信
2017-12-29 18:38:51 784
原创 树莓派 - 2 Python - a 包的安装和查看
假设包名为xyz,例如:PIL,Pillow安装方法一:apt-get (推荐)# 更新软件sudo apt-get update# 安装包sudo apt-get install python-xyz # python 2sudo apt-get install python3-xyz # python 3安装方法二:pip#
2017-12-15 15:56:29 3254
原创 树莓派 - 2 Python - a python 2与3的转化
2to3 -w /home/pi/Desktop/test_client.py
2017-12-13 15:57:03 1629
原创 树莓派 - 3 组网实验 - e 无线组网(ad-hoc + STA)
实现功能:树莓派上有2个无线网卡(板载无线网卡wlan0 + 外接无线网卡wlan1),wlan0用于ad-hoc模式,wlan1用于AP/STA模式的STA。- 打开interfaces文件sudo nano /etc/network/interfaces- 修改内容#### (1) ad hocauto wlan0iface wlan0
2017-12-01 10:44:13 1471
原创 树莓派 - 3 组网实验 - d 无线组网(ad-hoc模式)
- 打开interfaces文件:sudo nano /etc/network/interfaces- 替换成以下内容:auto wlan0 iface wlan0 inet static address 30.0.0.2 # 设置ip地址2,3,4,5... netmask 255.255.255.0
2017-12-01 10:43:59 3090
原创 树莓派 - 3 组网实验 - c 无线组网(AP/STA模式 - STA)
- 打开interfaces文件sudo nano /etc/network/interfaces- 修改内容auto wlan0allow-hotplug wlan0iface wlan0 inet dhcpwpa-ssid RPI-APwpa-psk????- 重启网络服务sudo service networki
2017-12-01 10:43:39 1282
原创 树莓派 - 3 组网实验 - b 无线组网(AP/STA模式 - AP)
1. 安装软件- 更新Raspbian软件sudo apt-get updatesudo apt-get upgrade- 安装软件# hostapd - This is the package that allows you to use the built in WiFi as an access point# dnsmasq - This is a combi
2017-12-01 10:43:25 1737
原创 树莓派 - 3 组网实验 - a 有线组网
(1)设置静态IP- 打开dhcpcd配置文件sudo nano /etc/dhcpcd.conf- 在文件最底部加入以下语句interface eth0static ip_address=192.168.0.2/24 (分别设为2,3,4,5...)static routers=192.168.0.1static domain_name_serve
2017-12-01 10:42:51 587
原创 树莓派 - 3 组网实验 - 备注
1. /etc/network/interfaces中参数的含义参见:https://unix.stackexchange.com/questions/128439/good-detailed-explanation-of-etc-network-interfaces-syntaxlayer 2 options:autointerface –
2017-12-01 10:42:21 258
原创 树莓派 - 1 安装与配置 - f 远程登陆
远程登陆的三种方法- SSH (只能登陆 Raspbian 的命令行)- VNC (可以登陆 Raspbian 的图形界面,分辨率低)- XRDP (可以登陆 Raspbian 的图形界面,分辨率高,推荐)软件(在PC上安装)- putty (用于SSH,http://www.putty.org/)- VNC viewer (用于VNC,https://w
2017-11-22 17:50:17 470
原创 树莓派 - 1 安装与配置 - e 软件更新
https://www.raspberrypi.org/documentation/raspbian/系统更新https://www.raspberrypi.org/documentation/raspbian/updating.mdsudo apt-get updatesudo apt-get dist-upgrade
2017-11-22 17:48:22 330
原创 树莓派 - 1 安装与配置 - d 更换软件源
更换为阿里云的源:- 执行以下命令sudo nano /etc/apt/sources.list- 进入编辑界面,删除原有的内容,写入以下语句deb http://mirrors.aliyun.com/raspbian/raspbian stretch main contrib non-free rpideb-src http://mirrors.aliyu
2017-11-18 10:24:42 269
原创 树莓派 - 1 安装与配置 - c 树莓派的基本设置
第一次使用树莓派时,需要进行一些简单的配置。(1)基本配置sudo raspi-config- 修改 User password (pi 用户的默认密码为raspberry)- 修改 Timezone(Asia-Shanghai)- 修改 Keyboard (China-Chinese)- 修改 W
2017-11-18 09:48:58 481
原创 树莓派 - 1 安装与配置 - b 系统备份与恢复
系统重装前对TF卡进行格式化 -> 软件:SD Formatter 系统备份与恢复 -> 软件:win32diskimager(1)系统备份打开Win32DiskImager,Device选择TF卡盘符,Image File指定要备份的文件路径。点击Read。(2)系统恢复打开Win32DiskImager,Device选择T
2017-11-18 09:45:22 787
原创 树莓派 - 1 安装与配置 - a 系统安装(Raspbian)
(1)安装指导docs- https://www.raspberrypi.org/downloads/- https://www.raspberrypi.org/documentation/installation/installing-images/README.mdvideos - 树莓派 Raspberry Pi 3 Model B 开箱实测 装机 + S
2017-11-17 21:02:19 1216
原创 树莓派 - 1 安装与配置 - 有用的网站
https://www.raspberrypi.org/http://shumeipai.nxez.com/https://elinux.org/RPi_Hub
2017-11-17 20:56:50 216
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人