12/23/2023 0 Comments Fedora sync folders![]() Next time the system reboots the /home/demo folder located on the remote fedora system will be mounted on the local /nfsmount mount point. To mount, for example, a folder with the path /home/demo which resides on a system called fedora in the local folder with the path /nfsmount, add the following line to the fstab file: fedora:/home/demo /nfsmount nfs dev/sdc1 /media/usbdisk ext3 pamconsole,exec,noauto,managed 0 0 dev/hda /media/cdrom auto pamconsole,exec,noauto,managed 0 0 ![]() dev/hdb /media/cdrecorder auto pamconsole,exec,noauto,managed 0 0 dev/VolGroup00/LogVol01 swap swap defaults 0 0 dev/VolGroup00/LogVol00 / ext3 defaults 1 1 When loaded, it will likely look something like the following: # This file is edited by fstab-sync - see 'man fstab-sync' for details To do this load the /etc/fstab file into your favorite editor as super user: su. This is achieved by editing the /etc/fstab file. It is possible to configure a Fedora Linux system to automatically mount a remote file system each time the system starts up. Mounting an NFS Filesystem on System Startup ![]() The above command will generate the following output: /vol1 192.168.2.21 It is also possible to view the current share settings from the command-line using the exportfs tool: /usr/sbin/exportfs The file will contain the settings we specified in the configuration tool: /tmp *(rw,sync) To see how the tool has configured the system, we need to edit the /etc/exports file: gedit /etc/exports The main screen of the configuration tool will now display as follows: Repeat the above process to export a second directory of your choice, and this time specify the share as read only and allow only one host to access to the share by specifying the remote hostname or IP address. We are going to make the /tmp directory of the local system available to all hosts, so enter a '*' in the Hosts field and change the basic permissions to Read/Write so that remote users can both read and write to files on our system. In the Add NFS Share dialog enter the path to a directory you would like to share, either by typing in the path, or using the Browse button. In order to specify a folder to be exported for sharing via NFS to remote systems, click on the Add button in the toolbar. The following screenshot shows the NFS server running in the tool: The status of the service will be displayed. When the tool loads, scroll down the list of services until you find NFS and click on it. To check on the status of NFS using the graphical services tool launch it from the System->Administration->Services menu option. If the service is not running, invoke it using the following command: /sbin/service nfs start If the services are running you will see output similar to the following: rpc.mountd (pid 3617) is running. To verify that the NFS services are running from the command-line, run the following command from a terminal window: su. This can be achieved either from the command line, or using the graphical services tool. The first task is to verify that the NFS services are installed and running on your Fedora Linux system. In this chapter we will be looking at network based sharing of folders between Linux based systems using NFS.Įnsuring NFS Services are Running on Fedora Linux NFS is very different to the Windows SMB resource sharing technology used by Samba. NFS was originally developed by Sun Microsystems in the 1980s and remains the standard mechanism for sharing of remote Linux/UNIX file systems to this day. NFS allows the file system on one Linux computer to be accessed over a network connection by another Linux or UNIX system. ![]() The topic of folder sharing using Samba is covered in the next chapter ( Sharing Fedora Linux Folders with Remote Windows Systems).Īnother option, which is targeted specifically at sharing folders between Linux and UNIX based systems uses technology called Network File System (NFS). This is by far the most popular approach to sharing folders and in recent versions of Fedora has been given the most attention in terms of documentation and tools support. This approach can also be used to share folders between other Linux and UNIX based systems as long as they too have Samba support installed and configured. Samba is based on Microsoft Windows Folder Sharing and allows Fedora systems to make folders accessible to Windows systems, and also to access Windows based folder shares from Fedora. One approach is to use technology called Samba. Learn more.įedora provides two mechanisms for sharing files and folders with other systems on a network. Take your Fedora Linux Skills to the Next Levelįedora 31 Essentials book is now available in Print ($36.99) and eBook ($24.99) editions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |