damiaa 发表于 2022-3-21 09:16

平头哥Sipeed LicheeRV 86 Panel测评】三 玩debian linux系统 加ssh

本帖最后由 damiaa 于 2022-3-21 17:02 编辑

<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="font-size:16px;">平头哥Sipeed LicheeRV 86 Panel测评】三 玩debian linux系统加ssh</span></p>

<p>1,烧录镜像 ,因为开始玩,所以选择<span style="font-size:16px;"><span style="color:#27ae60;">LicheeRV_Debian_86_480p.img</span></span>烧录,使用PhoenixCard,如果烧录有问题,可以先用SD Card Formatter格式化一下</p>

<p>&nbsp; &nbsp; 记得等待一下,直到烧录完成。</p>

<p></p>

<p>2,硬件准备,<strong><span style="font-size:16px;">套件里面</span></strong>有个<span style="color:#2980b9;"><strong>usb接口转换器</strong></span>,但还要个<span style="font-size:20px;"><strong><span style="background-color:#f39c12;">usb hub</span></strong></span>才能把键盘和鼠标都插上。usb接口转换器插到<span style="color:#27ae60;"><strong>USB-host接口</strong></span>上然后插上usb hub。usb hub上插键盘和鼠标。</p>

<p>&nbsp; &nbsp; &nbsp; <span style="font-size:16px;"><span style="color:#27ae60;">5V+uart那个usb口插到电脑</span></span>,一方面供电,另外用putty 115200 n,8,1可以操作debian linux。</p>

<p></p>

<p>3,启动和wifi设置</p>

<p><span style="color:#1abc9c;">普通用户sipeed 密码为licheepi</span> <span style="color:#2ecc71;">wifi设置 在菜单Preferences==》connman Settings里面</span>看一看到有线,无线等,设置无线,允许自动搜索,找到你家里的wifi,设置密码。</p>

<p></p>

<p>好了后就可以其他电脑ping到了,但这个debian系统好像还不行。</p>

<p>需要<span style="font-size:20px;"><span style="color:#2980b9;"><strong>sudo apt-get update</strong></span></span>一下,重新启动后用root用户登录,密码也是licheepi</p>

<p>这个时候你用ifconfig ,用ping命令就可以了。192.168.0.102是这个debian系统</p>

<p></p>

<p>4,root登录后安装ssh&nbsp;</p>

<p>&nbsp; &nbsp; &nbsp;1),root登录(root &nbsp;licheepi)</p>

<p>&nbsp; &nbsp; &nbsp;2),<span style="color:#27ae60;">udo apt-get update</span>(前面做了就不做了)<br />
&nbsp; &nbsp; &nbsp;3),<span style="color:#2ecc71;">apt install openssh-server</span> (sudo apt install openssh-server普通用户)</p>

<p>&nbsp; &nbsp; &nbsp;4),<span style="color:#2ecc71;">修改</span>/etc/ssh/sshd_config文件: &nbsp; &nbsp;&nbsp;</p>

<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;vim&nbsp;/etc/ssh/sshd_config</p>

<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color:#3498db;">#PermitRootLogin prohibit-password&nbsp;</span>配置改为:<span style="color:#2ecc71;">PermitRootLogin yes</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#3498db;">#Port 22&nbsp;</span> 配置改为:<span style="color:#2ecc71;">Port 22</span><br />
&nbsp; &nbsp; &nbsp; 5),<span style="color:#27ae60;">service sshd restart</span></p>

<p>&nbsp; &nbsp; &nbsp;&nbsp;debian系统的ssh设置好了。</p>

<p>5,设置vscode</p>

<p>&nbsp; &nbsp; &nbsp; 1,安装ssh插件。</p>

<p>&nbsp; &nbsp; &nbsp; 2,新加一个ssh连接,设置ip:192.168.0.102,端口22,用户名root 密码licheepi 保存</p>

<p>&nbsp; &nbsp; &nbsp; 3,点击一下,看是否连上了:</p>

<p>&nbsp; &nbsp; &nbsp;</p>

<p>&nbsp;6,这个时候可以用ssh操作debian linux的Sipeed LicheeRV 86 Panel板了。</p>

<p>&nbsp; 其他后续在玩。</p>

<p>&nbsp;</p>

Jacktang 发表于 2022-3-21 20:22

<p>root登录后安装ssh,步骤这么多</p>

<p>还需要修改/etc/ssh/sshd_config文件,有点麻烦,</p>

<p>看着楼主的测评,了解了很多</p>
页: [1]
查看完整版本: 平头哥Sipeed LicheeRV 86 Panel测评】三 玩debian linux系统 加ssh