linux开发板无线共享文档

原子哥的教程是用 网线 和虚拟机共享文件夹的,这样对我这路由器很远以及没有网线的人来说,好难弄呀,因此 小白我就用无线试试了。
本人小白白白。。。。啥都不懂

1.电脑端

让开发板连接上无线,和电脑同处于同一局域网中就行了

我用的是原子哥自带的系统,因为我现在不会驱动无线模块(我。。太菜了)

在这里插入图片描述
看看 俺已经连上无线网了

电脑也是
在这里插入图片描述

——————————————————————————————————————————————————
虚拟机

(1)ifconfig—>获取IP地址
在这里插入图片描述
(2)在 ubuntu 安装 nfs 服务:

注意别多复制了空格
apt-get install nfs-kernel-server

权限不够就加sudo
  在这里插入图片描述

(3)在/home 下创建一个名为 nfs 的文件夹
在这里插入图片描述
(4)打开配置文件添加 nfs 共享目录

vi /etc/exports

在这里插入图片描述
在配置文件里面添加一下代码:

/home/nfs/ *(rw,sync,no_root_squash)
其中:/home/nfs/ 是 nfs 服务器要共享的目录
  rw:是可读写权限
  sync:是资料同步写入内存和硬盘
  no_root_squash:当登录 NFS 主机使用共享目录的使用者是 root 时,其权限将被转
  换成为匿名使用者,通常它的 UID 与 GID 都会变成 nobody 身份。

(5)重启 nfs 服务

/etc/init.d/nfs-kernel-server restart

在这里插入图片描述

开发板端

开发板连上无线网
ping 虚拟机
在这里插入图片描述
能ping通 按ctrl 取消
在这里插入图片描述
这图我没截全 (灬ꈍ ꈍ灬)

输入这
mount -t nfs -o nolock,nfsvers=3,vers=3 192.168.1.190:/home/nfs /mnt/

3.看看能不能用

1.在虚拟机中 可以看到有两个文件

在这里插入图片描述

2.在开发板中 也有
在这里插入图片描述

4.不足之处

这个重启后就会失效 以后改进下 让关机保存配置 还需加油呀

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Table of Contents 1 Introduction ...................................................................................................... 4 1.1 Scope ................................................................................................................... 4 1.2 Background ......................................................................................................... 4 1.3 Overview ............................................................................................................. 4 1.4 Implemented File Functionality ......................................................................... 5 1.4.1 Basic ............................................................................................................................... 5 1.4.2 Access Attributes ............................................................................................................ 5 1.4.3 Protective Mode .............................................................................................................. 7 1.4.4 Access Monitor ............................................................................................................... 7 1.5 Disk Usage Saturation ........................................................................................ 7 2 Application Programming Interfaces (APIs) .................................................. 9 2.1 The TFFS Protection Application Programming Interface (TP-API) ................ 9 2.1.1 TFFS Usage Protection .................................................................................................. 9 2.1.1.1 Pseudo Code Example .......................................................................................... 9 2.1.1.2 Posix Code Example ............................................................................................ 10 2.1.1.3 sig_semRead ....................................................................................................... 11 2.1.1.4 sig_semWrite ....................................................................................................... 11 2.1.1.5 wai_semRead ...................................................................................................... 11 2.1.1.6 wai_semWrite....................................................................................................... 11 2.1.2 Protective Mode Application Programming Interface ................................................... 11 2.1.3 Monitor Protection Application Programming Interface ................................................ 11 2.2 The TFFS User Application Programming Interface (TU-API) ....................... 13 2.2.1 tffsChange .................................................................................................................... 13 2.2.2 tffsChdir ........................................................................................................................ 14 2.2.3 tffsClearerr .................................................................................................................... 14 2.2.4 tffsDelete ....................................................................................................................... 15 2.2.5 tffsDiagMode ................................................................................................................. 15 2.2.6 tffsExists ....................................................................................................................... 16 2.2.7 tffsFclose ...................................................................................................................... 16 2.2.8 tffsFeof .......................................................................................................................... 17 2.2.9 tffsFerror ....................................................................................................................... 17 2.2.10 tffsFflush ....................................................................................................................... 17 2.2.11 tffsFopen ....................................................................................................................... 18 2.2.12 tffsFormat ...................................................................................................................... 19 2.2.13 tffsFread ........................................................................................................................ 20 2.2.14 tffsFseek ....................................................................................................................... 20 2.2.15 tffsFwrite ....................................................................................................................... 21 2.2.16 tffsGetBlockInfo ............................................................................................................ 21 2.2.17 tffsGetPath .................................................................................................................... 22 2.2.18 tffsGetRoot .................................................................................................................... 22 2.2.19 tffsInit ............................................................................................................................ 22 2.2.20 tffsLsdir ......................................................................................................................... 23 2.2.21 tffsMkdir ........................................................................................................................ 24 2.2.22 tffsMonitorAdd ............................................................................................................... 25 2.2.23 tffsMonitorRemove ........................................................................................................ 26 2.2.24 tffsMount ....................................................................................................................... 27 2.2.25 tffsReclaim .................................................................................................................... 28 2.2.26 tffsResize ...................................................................................................................... 29 2.2.27 tffsRewind ..................................................................................................................... 29 2.2.28 tffsTruncate ................................................................................................................... 30 2.2.29 tffsUnmount .................................................................................................................. 30

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值