admin管理员组

文章数量:1539072

通过putty控制,比较简单,但是没有界面只能使用命令行

电脑系统:win10

首先网线连接电脑和树莓派

1.设置-网络设置-更改适配器选项

WLAN属性设置-共享-允许共享

2.查找IP

在刚刚的更改适配器选项中,以太网2属性-Internet协议**-IP地址:192.**

然后打开cmd,输入

arp -a

 找到同为192.168.137.**的IP(255位广播IP,忽略这个IP)即为树莓派IP地址。(不确定可以ping以下试试)

3.打开树莓派的SSH接口

在树莓派终端输入

sudo /etc/init.d/ssh start

 4.使用putty连接

官网安装putty

Download PuTTY: latest release (0.79) (greenend.uk)https://www.chiark.greenend.uk/~sgtatham/putty/latest.html

打开putty,输入树莓派IP

open-弹窗accept。输入用户名密码即可登入。

二、无线连接

首先配置树莓派的无线连接,在终端中输入

nano /etc/wpasupplicant/wpa_supplicant.conf

 在文件后加入下面内容:

network={
        ssid="你的SSID"
        psk="你的密码"   
        priority=10
} 

^o保存^x退出。

 5.换源

我安装的LInuxCNC Raspberry Pi OS没有换源,安装速度足够。

既然已经连接网线,顺便换源(第一次更新需要较多流量),终端输入

sudo nano /etc/apt/sources.list

将默认源注释,在文件后面加入想换的源,清华源如下: 

deb https://mirrors.tuna.tsinghua.edu/debian/ bookworm main contrib non-free non-free-firmware
deb-src https://mirrors.tuna.tsinghua.edu/debian/ bookworm main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu/debian/ bookworm-updates main contrib non-free non-free-firmware
deb-src https://mirrors.tuna.tsinghua.edu/debian/ bookworm-updates main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu/debian/ bookworm-backports main contrib non-free non-free-firmware
deb-src https://mirrors.tuna.tsinghua.edu/debian/ bookworm-backports main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu/debian-security bookworm-security main contrib non-free non-free-firmware
deb-src https://mirrors.tuna.tsinghua.edu/debian-security bookworm-security main contrib non-free non-free-firmware

更新:

sudo apt-get update

sudo apt-get upgrade

6.安装raspi-config

raspi-config一般在树莓派官方系统是预装的,而在kali、ubuntu mate、osmc等第三方系统中(LinuxCNC RPI OS显然是没有的)则是没有内置raspi-config的,有时raspi-config的gui设置又相对方便友好,对新手来说能解决很多问题。 

本文标签: 网线笔记本树莓派