Samba配置 #
samba配置后,仍然无法访问 #
https://blog.csdn.net/Panda_YinLP/article/details/104687438
访问window共享目录 #
sudo mount -t cifs -l //192.168.31.181/raspberry /media/pi/win
TFTP配置 #
https://linuxhint.com/install_tftp_server_ubuntu/
https://download.samba.org/pub/samba/
NFS挂载 #
https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nfs-mount-on-ubuntu-20-04
将文件系统目录导出 #
解压文件系统
cd /usr/local/ti-sdk-am335x-evm-07.03.00.005/filesystem/
sudo mkdir tisdk-default-image-am335x-evm
sudo tar -Jxf tisdk-default-image-am335x-evm.tar.xz -C tisdk-default-image-am335x-evm
修改/etc/exports增加NFS导出目录后,重新加载 #
$ vi /etc/exports
#增加以下内容
/usr/local/ti-sdk-am335x-evm-07.03.00.005/filesystem/tisdk-default-image-am335x-evm *(rw,nohide,insecure,no_subtree_check,async,no_root_squash)
使NFS目录生效 #
$ sudo exportfs -a
查看NFS导出列表 #
#查看NFS导出列表
$ showmount -e
Export list for ubuntu:
/usr/local/ti-sdk-am335x-evm-07.03.00.005/filesystem/tisdk-default-image-am335x-evm *
/usr/local/ti-sdk-am335x-evm-07.03.00.005/filesystem/tisdk-tiny-image-am335x-evm *
/usr/local/ti-sdk-am335x-evm-07.03.00.005/targetNFS
测试NFS目录是否成功
3B-pi@raspberrypi:~ $ sudo mkdir /mnt/tisdk-default-image-am335x-evm ;sudo mount -t nfs 192.168.31.85:/usr/local/ti-sdk-am335x-evm-07.03.00.005/filesystem/tisdk-default-image-am335x-evm /mnt/tisdk-default-image-am335x-evm -o nolock
Automatically Mounting NFS File Systems with /etc/fstab
#
https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nfs-mount-on-ubuntu-18-04
On the Host #
On the host server, install the nfs-kernel-server
package, which will allow you to share your directories. Since this is the first operation that you’re performing with apt
in this session, refresh your local package index before the installation:
sudo apt update
sudo apt install nfs-kernel-server
Once these packages are installed, switch to the client server.
On the Client #
On the client server, we need to install a package called nfs-common
, which provides NFS functionality without including any server components. Again, refresh the local package index prior to installation to ensure that you have up-to-date information:
sudo apt update
sudo apt install nfs-common
sudo systemctl restart nfs-kernel-server
sudo mount -t nfs 192.168.31.87:/home/debian /mnt/bbb/ -o nolock
sudo mount -t nfs 192.168.31.115:/home/pi/Public /mnt/rpi4/ -o nolock
sudo mkdir /mnt/ubuntu1604;sudo mount -t nfs 192.168.31.85:/home/qq/Public/ /mnt/ubuntu1604 -o nolock
修改/etc/fstab #
# <file system> <dir> <type> <options> <dump> <pass>
10.10.0.10:/backups /var/backups nfs defaults 0 0