FreeBSD to install SMB file system with Sharitylight

Source: Internet
Author: User
Tags command line file system

Using Smbclient to use file resources on a Windows computer is a way to control the command line, and you must download the file to local to process it. A more convenient approach is to mount the resources on the remote file server to the local directory tree so that the remote files can be processed as if they were local files. NFS on UNIX is the way it is handled, and the mapped network drive of the Windows system is the same way it is used.

In Unix, the standard practice for providing such a remote network file system is to complete a file system driver that is loaded by the driver to load the remote SMB file system, as SMBFS on Linux. Another idea, however, is to translate a network file system protocol into an existing network file system protocol, such as NFS, which is then loaded by the NFS driver in the system. The idea of loading an SMB network file system is entirely achievable, with a very mature original driver without having to change the kernel program, with a more stable feature.

Sharity is to translate the SMB protocol into an NFS protocol, and then load the software for the shared resource on UNIX, because the software is not running in the kernel, so its speed is slightly affected, but because of this, Even if the crash of a remote Windows system that has been installed to the local filesystem does not affect UNIX, this feature is useful because the Windows system is not stable.

Need to use Packages collection to install this software, the current free sharity for sharity Light, and the latest version of the sharity for commercial software, sharity Light use part of the GNU software Code, Therefore, also comply with the GNU license, is the external source code software.

Sharity's web site is located in http://www.obdev.at/Products/Sharity.html

Installing Sharity light installs two applications Shlight and unshlight to the/usr/local/sbin directory, one for installing the file system, and the other for uninstalling the installed file system. Sharity is very simple to use and does not require any settings.

# /usr/local/sbin/shlight //fbsdsrv/wb /dist -U wb
Password:
Using port 1908 for NFS.
bash-2.02# mount
/dev/da0s2a on / (local, writes: sync 1192 async 12795)
/dev/da0s2f on /usr (local, writes: sync 18054 async 80408)
/dev/da0s2e on /var (local, writes: sync 15954 async 33980)
procfs on /proc (local)
shlight-39011 on /dist
bash-2.02# /usr/local/sbin/unshlight /dist

Note that Sharity uses a slash instead of a backslash in the UNC to identify the UNC, which is different from Samba's approach.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.