Raspberry Pi 3 B+ 开箱基本配置(Windows环境下)
1. 下载系统下载 Raspbian,建议下载种子,然后使用迅雷等下载工具下载。 2. 写入SD卡下载 Win32 Disk Imager,直接下载即可,安装。 3. SSH连接将SD卡插到树莓派上,将树莓派连接到路由器,上电。 4. 配置网络给有线网络配置静态IP地址,可通过路由器静态IP配置,也可通过修改树莓派的网络接口配置文件 pi@raspberrypi:~ $ ifconfig -a
eth0: flags=4098<BROADCAST,MULTICAST> mtu 1500
ether 12:34:56:78:9a:bc txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
pi@raspberrypi:~ $ sudo vi /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP,consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
iface eth0 inet static
address 192.168.0.112
netmask 255.255.255.0
gateway 192.168.0.1
以下是无线配置,如果打算使用有线就跳过无线配置。 pi@raspberrypi:~ $ sudo vi /etc/network/interfaces
在最后添加: auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid "[YOUR WIFI SSID]"
wpa-psk "[YOUR WIFI PASSWORD]"
这是设置动态IP,静态IP参考有线的配置。 5. 网络名称默认是 pi@raspberrypi:~ $ sudo vi /etc/hostname
其次, pi@raspberrypi:~ $ sudo vi /etc/hosts
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.1.1 raspberrypi
配置完成后重启树莓派。 6. 图形桌面使用RDP(Remote Desktop Protocol,远程桌面协议)登录树莓派,需要安装 pi@raspberrypi:~ $ sudo apt-get install xrdp
7. 修改密码出于安全考虑,通过 pi@raspberrypi:~ $ sudo passwd pi
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
pi@raspberrypi:~ $ sudo passwd root
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
注意RDP登录的密码也受此影响。 8. 更新系统
pi@raspberrypi:~ $ sudo apt-get update
pi@raspberrypi:~ $ sudo apt-get upgrade
将软件源更改为国内源(网络稳定):为树莓派更换国内镜像源 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |