Raspberry Pi
okicekimi_bell_labs
这个作者很懒,什么都没留下…
展开
-
树莓派 - 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 · 452 阅读 · 0 评论 -
树莓派 - 2 Python - b 网络与进程/线程模块:socket, threading, subprocess
的发生地方原创 2017-12-15 16:02:41 · 544 阅读 · 0 评论 -
树莓派 - 2 Python - a python 2与3的转化
2to3 -w /home/pi/Desktop/test_client.py原创 2017-12-13 15:57:03 · 1624 阅读 · 0 评论 -
树莓派 - 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 · 1197 阅读 · 0 评论 -
树莓派 - 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 · 261 阅读 · 0 评论 -
树莓派 - 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 · 572 阅读 · 0 评论 -
树莓派 - 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 · 1450 阅读 · 0 评论 -
树莓派 - 1 安装与配置 - 有用的网站
https://www.raspberrypi.org/http://shumeipai.nxez.com/https://elinux.org/RPi_Hub原创 2017-11-17 20:56:50 · 207 阅读 · 0 评论 -
树莓派 - 1 安装与配置 - b 系统备份与恢复
系统重装前对TF卡进行格式化 -> 软件:SD Formatter 系统备份与恢复 -> 软件:win32diskimager(1)系统备份打开Win32DiskImager,Device选择TF卡盘符,Image File指定要备份的文件路径。点击Read。(2)系统恢复打开Win32DiskImager,Device选择T原创 2017-11-18 09:45:22 · 775 阅读 · 0 评论 -
树莓派 - 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 · 3066 阅读 · 0 评论 -
树莓派 - 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 · 1263 阅读 · 0 评论 -
树莓派 - 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 · 1719 阅读 · 0 评论 -
树莓派 - 1 安装与配置 - c 树莓派的基本设置
第一次使用树莓派时,需要进行一些简单的配置。(1)基本配置sudo raspi-config- 修改 User password (pi 用户的默认密码为raspberry)- 修改 Timezone(Asia-Shanghai)- 修改 Keyboard (China-Chinese)- 修改 W原创 2017-11-18 09:48:58 · 459 阅读 · 0 评论 -
树莓派 - 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 · 247 阅读 · 0 评论 -
树莓派 - 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 · 313 阅读 · 0 评论 -
树莓派 - 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 · 770 阅读 · 0 评论