关于树莓派安装、配置、使用等的技巧、工具
About the skills and toolkits of installing, configuring raspbian and handbook for raspberry
[toc]
目录及说明
boot
- 参见boot目录下README.md
- 将boot目录下文件放在/boot目录下
- cmdline.txt 文件为系统初始化配置参数,根据需要修改相关参数,可在开头添加ip=192.168.173.1 来设置eth0以太网静态地址
- config.txt 文件为树莓派参数配置文件,可根据需要修改相关参数,使其适配主板电流、显示器等
- config_raw.txt 文件为备份的原始树莓派参数配置文件
- softwaresrc.sh 文件为shell脚本,用于自动修改软件更新源,可自定义
- 在/boot目录下 cd /boot
- chmod +x ./softwaresrc.sh
- sudo ./softwaresrc.sh
- ssh 文件可使树莓派默认打开ssh功能,由于新版本中树莓派系统默认禁用了 SSH 服务,因此在/boot目录下添加此文本可使树莓派默认打开ssh功能
- As of the November 2016 release, Raspbian has the SSH server disabled by default.
- 出错的详细信息为:
- ssh: connect to host 192.168.43.220 port 22: Connection refused
- 官方的解决方案是:
- SSH disabled by default; can be enabled by creating a file with name “ssh” in boot partition
- 或用hdmi对树莓派进行连接,在命令行界面输入打开ssh服务的命令
- sudo systemctl enable ssh
- sudo systemctl start ssh
- wpa_supplicant.conf 文件为设置树莓派的默认网络连接配置文件,可使树莓派开机后,根据所设参数自动连接WIFI
os
- 参见os目录下README.md
树莓派系统下载地址(Raspberry OS download URL) Download Page
toolkit
- 参见toolkit目录下README.md
- menu
- 刷机
- 可从网上查找安全下载地址,或使用本人提供的,亲测安全有效
- SD Card Formatter.rar SDCardFormatterv5_WinEN.zip
- usbit.zip
- win32diskimager.zip
- 调试终端
- 建议官网下载
- FCN.zip 官网
- free connect your private network from anywhere
- FCN[free connect]是一款傻瓜式的一键接入私有网络的工具, fcn利用公共服务器以及数据加密技术实现:
- WinSCP.exe 官网
- WinSCP 是一个 Windows 环境下使用的 SSH 的开源图形化 SFTP 客户端。同时支持 SCP 协议。它的主要功能是在本地与远程计算机间安全地复制文件,并且可以直接编辑文件。
- WinSCP is an open source free SFTP client, FTP client, WebDAV client, S3 client and SCP client for Windows. Its main function is file transfer between a local and a remote computer. Beyond this, WinSCP offers scripting and basic file manager functionality.
- putty.exe 官网 知名ssh软件
- sscom5.13.1.exe 官网 新版安全可靠强大,包含串口调试、tcp及udp通讯调试
- PortScan.exe 用于在局域网内查找树莓派的IP
- 刷机
安装respbian.docx
- 关于树莓派安装、配置、使用等的教程
树莓派通过网线直连笔记本电脑共享上网 .docx
- 如题
Python
pip install RPi.GPIO
树莓派常用命令集合
sudo apt-get update
sudo apt-get install vim
vim /etc/apt/sources.list
cd /etc/apt/
sudo vim /etc/apt/sources.list
sudo apt-get update
ping ustc.edu.cn
sudo passwd
reboot
sudo reboot
su root
sudo passwd pi
sudo apt-get install python-pip
sudo apt-get install fuse-utils ntfs-3g
modprobe fuse
sudo modprobe fuse
sudo vim /etc/fstab
sudo apt-get install exfat-fuse
sudo pip install bpython
sudo apt-get install python-dev
sudo pip install ipython
sudo apt-get install nmap
sudo apt-get upgrade
sudo pip install ipython
sudo pip install bpython
sudo pip install virtualenv
df
df -lh
fdisk -l
sudo fdisk -l
df -h
sudo fdisk /dev/mmcblk0
sudo reboot
sudo resize2fs /dev/mmcblk0p2
df -h
sudo apt-get install -y dnsmasq
sudo vim /etc/dnsmasq.conf
sudo service dnsmasq restart
dig
sudo apt-get install dnsutils
ls
dig www.baidu.com
sudo vim /etc/dnsmasq.conf
sudo service dnsmasq restart
dig www.baidu.com
sudo vim /etc/resolv.conf
sudo service dnsmasq restart
dig www.baidu.com
chkconfig dnsmapq on
find resolv.dnsmapq.conf
dig jd.com
sudo vim /etc/dnsmasq.conf
netstat -lpnt
ps -ef
ifconfig
sudo service --status-all
service dnsmasq status
sudo apt-get install git
sudo easy_install -U distribute
python -V
sudo pip install rpi.gpio
alias ll='ls -lh'
source /etc/profile
sudo raspi-config
website
- 树莓派实验室 | Raspberry Pi中文资讯站,提供丰富的树莓派使用教程和DIY资讯
- NanoPi Embedded system for ARM SBC,Computer-on-Module and Custom Design
- 有哪些对树莓派的有趣改造和扩展应用?
Tutorial list
个人收藏的raspberry pi/树莓派文章及教程
License 许可证 & Copyright
- 版权声明:Copyright © 2019 要庆生. All rights reserved. 未经本人同意请勿转载。经本人同意后转载时请注明出处。
- https://choosealicense.com/licenses/cc-by-sa-4.0/
知识共享许可协议 版权声明:署名,允许他人基于本文进行创作,且必须基于与原先许可协议相同的许可协议分发本文(Creative Commons)