ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

hi3516配置网络+Telnet登录+ftp传输+挂载nfs

2022-08-25 17:01:26  阅读:210  来源: 互联网

标签:ftp Telnet blog etc nfs https article net


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

标签:ftp,Telnet,blog,etc,nfs,https,article,net
来源: https://www.cnblogs.com/d442130165/p/16624832.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有