This project counts as 2 grades.
Setting Up The NIS Server:
Use Webmin to setup the NIS server. Install webmin by downloading it from http://www.webmin.com/ or from my FTP server. Please ask to be added to my NIS server if your user has not already been added before you download from my FTP server. You need to have ypserv installed before you can setup the NIS server. You can use yum install ypserv at the terminal command prompt if you are root. Launch webmin by starting firefox and then use http://localhost:10000/ if you are using Red Hat fedora 8 if you are using Red Hat Fedora 6 you need to use https://localhost:10000/ Please check you hosts file if this does not work as your hosts file is probably blank and will need loopback put into the file. Add the entry to the hosts file:
127.0.0.1 localhost
Also you need a name for your server so first off since we are being fed dhcp IP addresses so you will need to use ifconfig at the terminal prompt to find your ip address for your computer and put that into the hosts file along with the name of your server. The entry will look something like this.
10.78.108.32 instructorserver
where instructorserver is the name of my server but please use a good name for your own server. Save the hosts file. Go to Network in webmin and then click on NIS. Click on NIS server. Define the NIS domain this should not be a web domain like .com, .net, .biz, .gov, .org, etc. I have been using domain.nis for my domain. Also you need to enter the name of your server computer. You need to check the options for the server and for the NIS domain. When you are finished you only need to click save and apply.
Setting up the NIS Client:
Make sure that you have yp-tools and ypbind. These programs are probably already installed on your server. You can check them by using the commands at the terminal prompt.
rpm -q yp-tools
rpm -q ypbind
If these tools are not installed then you need to use yum to install them. To install these tools at the terminal prompt type the following.
yum install yp-tools
yum install ypbind
Now go to the client part for NIS in webmin and input the NIS domain from the NIS server and the server name. Click on save and apply and you are finished.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment