hi3516配置网络+Telnet登录+ftp传输+挂载nfs
2022/8/25 23:27:43
本文主要是介绍hi3516配置网络+Telnet登录+ftp传输+挂载nfs,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
1. 拿到hi3516核心版后,首先通过串口登录,修改IP地址,启动自动生效
vi /etc/init.d/rcS
ifconfig eth0 192.168.1.13 netmask 255.255.255.0
route add default gw 192.168.1.1
2. 添加DNS,访问互联网
vi /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
参考:
https://hpzwl.blog.csdn.net/article/details/121393691
https://blog.csdn.net/weixin_44697198/article/details/124988586
http://t.zoukankan.com/tianpeng-blog-p-14804993.html
3. 在核心版上配置ftp服务,传输文件
vi /etc/inetd.conf
21 stream tcp nowait root ftpd ftpd -w /root
vi /etc/init.d/rcS
inetd
passwd root 123 # 设置root密码
4. 在主机上下载FileZilla通过ftp协议传输文件
参考:
https://blog.csdn.net/a421701136/article/details/41699831
5. 在开发版上启动telnetd服务,在主机上通过telnet登录到开发板
vi /etc/init.d/rcS
telnetd
telnet 开发板IP
参考:
https://blog.csdn.net/edsam49/article/details/124649814
6. 在主机上安装nfs服务
sudo apt install nfs-kernel-server
vim /etc/exports
/tmp/nfs *(rw,sync,no_root_squash,no_subtree_check) # 设置nfs被挂载目录
sudo /etc/init.d/rpcbind restart
sudo /etc/init.d/nfs-kernel-server restart
7. 在开发版上挂载nfs目录
mount -t nfs -o nolock -o tcp -o rsize=32768,wsize=32768 host_ip:/tmp/nfs /mnt
参考:
https://blog.csdn.net/weixin_41553751/article/details/114273220
https://zhuanlan.zhihu.com/p/237874901
https://www.freesion.com/article/7664516253/
https://www.cnblogs.com/1149825709qq/articles/13277142.html
这篇关于hi3516配置网络+Telnet登录+ftp传输+挂载nfs的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-05-13TiDB + ES:转转业财系统亿级数据存储优化实践
- 2024-05-09“2024鸿蒙零基础快速实战-仿抖音App开发(ArkTS版)”实战课程已上线
- 2024-05-09聊聊如何通过arthas-tunnel-server来远程管理所有需要arthas监控的应用
- 2024-05-09log4j2这么配就对了
- 2024-05-09nginx修改Content-Type
- 2024-05-09Redis多数据源,看这篇就够了
- 2024-05-09Google Chrome驱动程序 124.0.6367.62(正式版本)去哪下载?
- 2024-05-09有没有大佬知道这种数据应该怎么抓取呀?
- 2024-05-09这种运行结果里的10.100000001,怎么能最快改成10.1?
- 2024-05-09企业src漏洞挖掘-有意思的命令执行