Raspberry安装

	 # 烧录系统

查找磁盘号

leo@MacBookAir:/Volumes/boot$ df -h
Filesystem Size Used Avail Capacity iused ifree %iused Mounted on
/dev/disk1s6s1 792Gi 14Gi 367Gi 4% 500637 3852948240 0% /
devfs 345Ki 345Ki 0Bi 100% 1192 0 100% /dev
/dev/disk1s4 792Gi 2.0Gi 367Gi 1% 3 3852948240 0% /System/Volumes/VM
/dev/disk1s2 792Gi 287Mi 367Gi 1% 1183 3852948240 0% /System/Volumes/Preboot
/dev/disk1s7 792Gi 648Ki 367Gi 1% 17 3852948240 0% /System/Volumes/Update
/dev/disk1s5 792Gi 403Gi 367Gi 53% 1279014 3852948240 0% /System/Volumes/Data
ntfs://disk0s4/BOOTCAMP 139Gi 41Gi 98Gi 30% 1 0 100% /Volumes/BOOTCAMP
/dev/disk1s1 792Gi 3.3Gi 367Gi 1% 27222 3852948240 0% /Volumes/Macintosh HD - 数据 M
map auto_home 0Bi 0Bi 0Bi 100% 0 0 100% /System/Volumes/Data/home
/dev/disk2s1 60Mi 51Mi 9.1Mi 85% 0 0 100% /Volumes/boot

卸载磁盘

leo@MacBookAir:/Volumes/boot$
leo@MacBookAir:/Volumes$ diskutil umount /dev/disk2s1
Volume boot on disk2s1 unmounted

确认磁盘号

leo@MacBookAir:~$ diskutil list
/dev/disk0 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_APFS Container disk1 850.0 GB disk0s2
3: Microsoft Reserved 16.8 MB disk0s3
4: Microsoft Basic Data BOOTCAMP 149.4 GB disk0s4
5: Windows Recovery 602.9 MB disk0s5

/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +850.0 GB disk1
Physical Store disk0s2
1: APFS Volume Macintosh HD - 数据 M 3.5 GB disk1s1
2: APFS Volume Preboot 301.2 MB disk1s2
3: APFS Volume Recovery 1.1 GB disk1s3
4: APFS Volume VM 2.1 GB disk1s4
5: APFS Volume Macintosh HD - 数据 433.0 GB disk1s5
6: APFS Volume Macintosh HD 15.2 GB disk1s6
7: APFS Snapshot com.apple.os.update-… 15.2 GB disk1s6s1

/dev/disk2 (internal, physical):
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *31.9 GB disk2
1: Windows_FAT_32 boot 64.0 MB disk2s1
2: Linux 2.4 GB disk2s2
3: Linux 29.4 GB disk2s3

写入系统

改写无线联接配置文件

cp wpa-… /boot/

改写引脚更换

启用SSH

touch /boot/ssh

免密登录

客户机产生密匙

ssh-keygen -t rsa

传输公匙到服务器

james@HP800G1 .ssh % ssh-copy-id -i ~/.ssh/id_rsa.pub pi@3B
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: “/Users/james/.ssh/id_rsa.pub”
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed – if you are prompted now it is to install the new keys
pi@3b’s password:

Number of key(s) added: 1

Now try logging into the machine, with: “ssh ‘pi@3B’”
and check to make sure that only the key(s) you wanted were added.

james@HP800G1 .ssh % ls

安装中文字体

sudo apt-get install font-wqy-zenhei

sudo apt-get update
sudo apt-get install ttf-wqy-microhei
sudo dpkg-reconfigure locales

安装wiringPi

wiringPi 与树莓派一同安装,不需要单独安装。

如果版本Pulleyes 没有gpio命令,则安装不正常,可尝试修复:
sudo apt --fix-broken install

wiringPi 已没有人维护,并不能跟上64位系统升级。可换用 raspi-gpio.

安装DDNS

阿里云的DDNS需要安装Python库
pi@Pi3T:~/ip $ pip install aliyun-python-sdk-alidns

Debian DNS 工具

DNS 工具 dig, nslookup,

  • 19
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值