Birmingham mumbai



Download 15,21 Mb.
Pdf ko'rish
bet411/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   407   408   409   410   411   412   413   414   ...   482
Bog'liq
Mastering Ubuntu Server Gain expertise in the art of deploying, configuring, managing, and troubleshooting Ubuntu Server by Jay LaCroix (z-lib.org)

[
 313 
]
To configure this, open 
/etc/idmapd.conf
 in your text editor. Look for an option 
that is similar to the following:
# Domain = localdomain 
First, remove the 
#
 symbol from that line to uncomment it. Then, change the domain 
to match the one used within the rest of your network. You can leave this as it is 
as long as it's the same on each node, but if you recall from 
Chapter 11

Setting Up 
Network Services
, we used a sample domain of 
local.lan
 in our DHCP configuration, 
so it's best to make sure you use the same domain name everywhere—even the 
domain provided by DHCP. Basically, just be as consistent as you can and you'll 
have a much easier time overall. You'll also want to edit the 
/etc/idmapd.conf
 file 
on each node that will access your file server, to ensure they are configured the 
same as well.
With our 
/etc/exports
 and 
/etc/idmapd.conf
 files in place, and assuming you've 
already created the exported directories on your filesystem, we should be all set to 
restart NFS to activate our configuration:
sudo systemctl restart nfs-kernel-server 
After restarting NFS, you should check the daemon's output via 
systemctl
 to ensure 
that there are no errors:
systemctl status nfs-kernel-server 
As long as there are no errors, our NFS server should be working. Now, we just need 
to learn how to mount these shares on another system. Unlike Samba, using a Linux 
file manager and browsing the network will not show NFS exports by default; we'll 
need to mount them manually. Client machines, assuming they are Debian-based 
(Ubuntu fits this description) will need the 
nfs-common
 package installed in order to 
access these exports. It may already be installed, but if it's not, we can install it with 
apt
 like any other package:
sudo apt install nfs-common 
With the client installed, we can now use the 
mount
 command to mount NFS exports 
on a client. For example, with regards to our 
documents
 export, we can use the 
following variation of the 
mount
 command to do the trick:
sudo mount myserver:/documents /mnt/documents 


Sharing and Transferring Files

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   407   408   409   410   411   412   413   414   ...   482




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish