This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
user:jcavalu3:portfolio:eoce:0x1 [2014/05/06 17:06] – jcavalu3 | user:jcavalu3:portfolio:eoce:0x1 [2014/05/08 04:55] (current) – [NIS Configuration] jcavalu3 | ||
---|---|---|---|
Line 31: | Line 31: | ||
The VMs are the following: | The VMs are the following: | ||
- | * Server: | + | * Server: |
- | * Client1: masterchief | + | * Client1: |
- | * Client2: arbiter | + | * Client2: |
The dhcp settings are as follows for the VMs (this includes my other VMs as well): | The dhcp settings are as follows for the VMs (this includes my other VMs as well): | ||
+ | |||
+ | ==dhcpd.conf== | ||
+ | ---- | ||
< | < | ||
Line 47: | Line 50: | ||
host arbiter.projects.lan { | host arbiter.projects.lan { | ||
- | hardware ethernet 00:16:3E:E3:96:8F; | + | hardware ethernet 00:16:3E:23:8E:65; |
fixed-address arbiter.projects.lan; | fixed-address arbiter.projects.lan; | ||
} | } | ||
Line 65: | Line 68: | ||
==10.80.3 DNS== | ==10.80.3 DNS== | ||
+ | ---- | ||
< | < | ||
; jcavalu3 (50-59) | ; jcavalu3 (50-59) | ||
Line 79: | Line 82: | ||
59 IN PTR | 59 IN PTR | ||
</ | </ | ||
+ | |||
+ | ==projects.lan DNS== | ||
+ | ---- | ||
+ | < | ||
+ | ; jcavalu3 (50-59) | ||
+ | ;Group Pancake | ||
+ | pancake | ||
+ | vm-051 | ||
+ | vm-052 | ||
+ | vm-053 | ||
+ | vm-054 | ||
+ | vm-055 | ||
+ | vm-056 | ||
+ | client-057 | ||
+ | client-058 | ||
+ | srv-059 | ||
+ | arbiter | ||
+ | masterchief | ||
+ | cortana | ||
+ | </ | ||
+ | |||
+ | ===NFS Configuration=== | ||
+ | ---- | ||
+ | |||
+ | Required packages for cortana (NFS server): | ||
+ | |||
+ | * **nfs-kernel-server** | ||
+ | * **nfs-common** | ||
+ | * **portmap** (comes with nfs-common) | ||
+ | |||
+ | Required packages for masterchief and arbiter (clients): | ||
+ | |||
+ | * **nfs-common** | ||
+ | * **portmap** (comes with nfs-common) | ||
+ | |||
+ | After installing the **nfs-kernel-server** and **nfs-common** packages, **/ | ||
+ | |||
+ | The **/ | ||
+ | |||
+ | < | ||
+ | # / | ||
+ | # to NFS clients. See exports(5). | ||
+ | # | ||
+ | # Example for NFSv2 and NFSv3: | ||
+ | /srv | ||
+ | # | ||
+ | # Example for NFSv4: | ||
+ | # / | ||
+ | # / | ||
+ | # | ||
+ | </ | ||
+ | |||
+ | **The uncommented line contains the client mount settings.** | ||
+ | |||
+ | **fstab** has been configured to mount cortana:/ | ||
+ | |||
+ | < | ||
+ | # /etc/fstab: static file system information. | ||
+ | # | ||
+ | # <file system> <mount point> | ||
+ | proc /proc | ||
+ | devpts | ||
+ | /dev/xvda1 none swap sw 0 0 | ||
+ | /dev/xvda2 / ext3 noatime, | ||
+ | cortana:/ | ||
+ | </ | ||
+ | |||
+ | ====NIS Configuration==== | ||
+ | ---- | ||
+ | |||
+ | I followed a tutorial online to set up the NIS server and clients. | ||
+ | |||
+ | Server configuration can be seen [[http:// | ||
+ | Client configuration can be seen [[http:// | ||
+ | |||
+ | ===Server=== | ||
+ | |||
+ | The NIS domain is on the cortana server (srv-059). | ||
+ | |||
+ | The first order of business is installing the **nis** package onto the server: | ||
+ | |||
+ | <cli> | ||
+ | apt-get install nis | ||
+ | </ | ||
+ | |||
+ | At the end of the installation, | ||
+ | |||
+ | To go along with the tutorial and keep things simple and readable, I will only list the important changes in each file (all changes indicated with **change**): | ||
+ | |||
+ | < | ||
+ | |||
+ | root@cortana: | ||
+ | |||
+ | # line 6: set NISSERVER to master | ||
+ | NISSERVER=**master** | ||
+ | |||
+ | |||
+ | |||
+ | root@cortana: | ||
+ | |||
+ | # This line gives access to everybody | ||
+ | 0.0.0.0 0.0.0.0 | ||
+ | |||
+ | |||
+ | |||
+ | root@cortana: | ||
+ | |||
+ | # add shadow in front of passwd on line 119 | ||
+ | |||
+ | ALL = passwd **shadow** group hosts rpc services netid protocols netgrp | ||
+ | |||
+ | |||
+ | |||
+ | root@cortana: | ||
+ | |||
+ | 127.0.0.1 | ||
+ | 127.0.1.1 | ||
+ | # add the IP address for the NIS database | ||
+ | **10.80.3.59 | ||
+ | |||
+ | |||
+ | #update NIS database (press control-d when prompted) | ||
+ | root@cortana: | ||
+ | |||
+ | |||
+ | # start the NIS server | ||
+ | root@cortana: | ||
+ | |||
+ | # When adding new users, you MUST UPDATE THE NIS DATABASE with the following method | ||
+ | root@cortana: | ||
+ | root@cortana: | ||
+ | |||
+ | </ | ||
+ | |||
+ | ===Client Configuration=== | ||
+ | |||
+ | Client configuration begins with the installation of the NIS package and asks for the NIS domain name, which will be **cortana**. | ||
+ | |||
+ | Next, the real configuration: | ||
+ | |||
+ | < | ||
+ | |||
+ | root@client: | ||
+ | |||
+ | # At the end of the file, add the domain name followed by the server in the following format: | ||
+ | cortana cortana.projects.lan | ||
+ | |||
+ | |||
+ | |||
+ | root@client: | ||
+ | |||
+ | passwd: | ||
+ | group: | ||
+ | shadow: | ||
+ | |||
+ | hosts: | ||
+ | |||
+ | # Lastly, reboot the client. | ||
+ | </ | ||
+ | |||
+ | With NFS and NIS configured correctly, you should now be able to log onto cortana from arbiter and masterchief as the users on cortana. | ||
+ |