Skip to main content

Installing NIS & NFS on Ubuntu 12.04 (client editions) *Updated*


In an attempt to upgrade all the systems in out computer labs to Ubuntu 12.04, we ran into a couple of problems. Inorder to be able to connect to the central department server, the systems had to have NIS and NFS installed and configured on each of the systems. This way, students would be able to login onto anyone of the systems and still be able to access their files(no matter which system it is).

So, after having installed Ubuntu 12.04, and having done the usual system upgrades after configuring the system proxy (yes, we have proxy in our college, kind of makes our life difficult when we're trying to upgrade on different versions of Linux), we move on to looking up Ubuntu Manuals and start looking for setup and configuration manuals of NIS and NFS.

And well, the good thing about Ubuntu is that there are a looot of installation manuals, and the best ones we found are Ubuntu help for installing NIS and Ubuntu help for installing NFS. Along with installation, he also helps you in basically configuring and making the necessary changes to let your system access NFS server.

Before i go any further, NIS is for remote login and NFS is for remote file sharing, for labs where a person/student maynot be able to login to the same system all the time, having NIS and NFS installed on the desktops and a central server will help him access his files on any one of systems.

So, we have Ubuntu installed and we have NIS and NFS installed and configured. And you may think that your job is done here. Nope. There seem to be quite a few bugs when it comes to using NIS and NFS on Ubuntu 12.04, apparent from we've read and what we've experienced.

The first one being Login. After bootup and during Login, the system should give you an option "other" which you use to access your NFS server, with a relevant username and password. And Ubuntu by default doesnt show your the 'other' option. It will show you the users defined on the particular system and will give you an option to become a guest user. So, first things first, you need to enable the 'other' option for login and you need to disable the 'Guest' option, because it pretty much becomes redundant and you don't want unauthorized access.

So, you need to configure Light DM and as mentioned in the link, you need to restart the service for the 'other' login option to be activated.

Basically -


allow-guest=false              % disables the guest login option
greeter-show-manual-login=true % will enable the 'other' login option.
greeter-hide-users=true        % to prevent the system from displaying all of the users available at the NFS server. 


sudo service lightdm restart   % restarts the service, after which you will be redirected to the login page. 

refer to comment #3 here for the same. 

And that should pretty much do it.
There are still problems though. At times, when we're trying to use NIS, after the system accepts the username and password (relevant to NIS/NFS and not the current system), the system gives and error message


mountall : disconnected from Plymouth
Why this problem exists, we dont know and the solution/bug fix for this we dont know. But i hope we've been helpful so far. Anyway, that's it for today. 
Adios. 
PS - we hate the unity interface as well, so we tried opting out of it and choose Gnome Classic, through GUI and through. Here's a  video clearly lining out how to install Gnome classic and opt out of Unity. And then there are some more who tried to uninstall Unity completely here and here. BTW, these were dont through the terminal, unlike the method mentioned in the video above. 
PPS - you can set proxy at  >system-settings>network>proxy and you can choose the server to download updates this way > Ubuntu-Software-Center > Edit > software-sources
UPDATE - 
well, like i said before, we were having problems with ubuntu login, trying to access the central NFS server through the ubuntu machine and we had to move to a terminal everytime, alter the Light DM config file (as mentioned above) and log in as admin to try and resolve issues.
Having gotten vexed trying to fix the error, we tried installing Cent OS and working on it (as it had already been running without any hitches on a couple of other machines). Well, after the usual installation and setting a Static IP address to the system, we moved on to looking for NIS (ypbind) and NFS. Luckily for us, NFS comes pre-installed, you just have to activate the networking services at >system>admin>services. 
And after installed ypbind, you start the service as previously mentioned. And because CentOS already has the other login option pre-enabled, you just restart the services and viola, everything works perfectly fine. 

Popular posts from this blog

Animation using GNUPlot

Animation using GNUPlotI've been trying to create an animation depicting a quasar spectrum moving across the 5 SDSS pass bands with respect to redshift. It is important to visualise what emission lines are moving in and out of bands to be able to understand the color-redshift plots and the changes in it.
I've tried doing this using the animate function in matplotlib, python but i wasn't able to make it work - meaning i worked on it for a couple of days and then i gave up, not having found solutions for my problems on the internet.
And then i came across this site, where the gunn-peterson trough and the lyman alpha forest have been depicted - in a beautiful manner. And this got me interested in using js and d3 to do the animations and make it dynamic - using sliders etc.
In the meanwhile, i thought i'd look up and see if there was a way to create animations in gnuplot and whoopdedoo, what do i find but nirvana!

In the image, you see 5 static curves and one dynam…

on MOOCs.

For those of you who don't know, MOOC stands for Massively Open Online Course.

The internet is an awesome thing. It's making education free for all. Well, mostly free. But it's surprising at the width and depth of courses being offered online. And it looks like they are also having an impact on students, especially those from universities that are not top ranked. Students in all parts of the world can now get a first class education experience, thanks to courses offered by Stanford, MIT, Caltech, etc.

I'm talking about MOOCs because one of my new year resolutions is to take online courses, atleast 2 per semester (6 months). And I've chosen the following two courses on edX - Analyzing Big Data with Microsoft R Server and Data Science Essentials for now. I looked at courses on Coursera but I couldn't find any which was worthy and free. There are a lot more MOOC providers out there but let's start here. And I feel like the two courses are relevant to where I …

On programmers.

I just watched this brilliant keynote today. It's a commentary on Programmers and the software development industry/ecosystem as a whole.



I am not going to give you a tl;dr version of the talk because it is a talk that I believe everyone should watch, that everyone should learn from. Instead, I am going to give my own parallel-ish views on programmers and programming.
As pointed out in the talk, there are mythical creatures in the software development industry who are revered as gods. Guido Van Rossum, the creator of Python, was given the title Benevolent Dictator For Life (BDFL). People flock around the creators of popular languages or libraries. They are god-like to most programmers and are treated like gods. By which, I mean to say, we assume they don't have flaws. That they are infallible. That they are perfect.
And alongside this belief in the infallibility of these Gods, we believe that they were born programmers. That programming is something that people are born wit…