Tag Archives: Ubuntu

Configuring NFS in Ubuntu

Configuring NFS in Ubuntu


What is NFS?

NFS stands for Network File System.

NFS allows you to share directories from one computer with another. For example:


Here we have a server with a user called user1 and a laptop with a user called user2.

What we want to do is to see all of user1’s files on the laptop.

With /home/user1’s directory NFS mounted onto the directory /home/user2/zoostorm lets user2 see all user1’s files in the zoostorm directory.

You can modify, delete and add files there.

This is so you don’t not have to use Sneakernet which is sharing files between computers by putting your sneakers on and carrying the files between computers on a floppy disk, CD, DVD or memory stick.

Microsoft stole this idea from UNIX and calls it Simple File Sharing.

This can be very useful for backing up files or partitions from the laptop to the server PC, as servers traditionally have lots more drive space than say, a laptop or netbook.

The Nitty Gritty

On the host server – This is an example i/p address

sudo apt-get update
sudo apt-get install nfs-kernel-server

sudo apt-get update
sudo apt-get install nfs-common

On the client computer – This is an example i/p address

sudo apt-get update
sudo apt-get install nfs-common

Configure the NFS Exports on the Host Server

Open the /etc/exports file in your text editor with root privileges:

sudo vi /etc/exports

We want to create a line for each of the directories that we wish to share.

/home/username *(rw,sync,no_root_squash,no_subtree_check)

You can replace * with one of the hostname formats. Make the hostname declaration as specific as possible so unwanted systems cannot access the NFS mount, i.e.

sudo exportfs -a

Create the Mount Points and Mount Remote Shares on the Client Server

In your home directory create a directory for the mount in my case this is called zoostorm

mkdir /home/chris/zoostorm

sudo mount /home/chris/zoostorm

At this point, you probably will find out that the mount will time out, what the Ubuntu documentation fails to tell you is that the Ubuntu built in firewall
will block the mounts.

Allowing the NFS ports through the firewall

On both the client and server do the following:

sudo apt-get install ufw

sudo ufw enable

The ports you need to allow through the firewall are 111 and 2049

Just to be on the safe side to find out which port NFS is using:

cat /etc/services | grep -i nfs

you should get:

nfs 2049/tcp # Network File System
nfs 2049/udp # Network File System

so NFS is using port 2049.

We now do the following:

sudo ufw allow 111

sudo ufw allow 2049

Now on the client,

sudo mount /home/chris/zoostorm

We have opened the required ports, so this should now work.

Leave a comment

Posted by on January 27, 2015 in Linux


Tags: , , , ,

Synchronizing RSS feeds from your Desktop to your Nexus 7

Synchronizing RSS feeds from your Desktop to your Nexus 7

Today I found an interesting site about Ubuntu, my preferred desktop operating system:

I noticed that they had an RSS feed button on the top of their page   Screenshot - rss   Just like the one at the top of my blog – hint, hint 🙂

I thought it was about time I set things up for me to read them, so here goes:

For those of you who don’t know what RSS feeds are and how useful they can be, here is brief description culled from the net:

RSS (most commonly expanded as Really Simple Syndication) is a family of web feed formats used to publish frequently updated works…………………

Simple eh? Some people have a way with words, the wrong way !!! – Well that’s the Wikipedia format for you.

It is easier to think of it as a funnel that sites that you like, are asked to pour their latest offerings into. That enables you to read them all in one place. This saves going to your favourite sites on a regular basis to see if there is anything new. When you look for it, there are lots of interesting feeds out there and lots of junk too. You choose. To show how bad it can be, there is even one for Strictly Come Dancing, so you have been warned.

RSS Funnel

RSS Funnel

There are many ways of doing this, but the one I decided to use was Google reader on my PC:

and the Google reader app on my Nexus 7 :

The reason I made these choices was that The Google reader on the PC allows you to create folders to put your RSS feeds into, for example one for Nexus another for Ubuntu etc. Great for organising things.

I tried various apps and widgets on the Nexus, but the official free one from Google was the only one that seemed to recognise folders. I am currently using a few of them at the same time to convince myself that it is the right one. If anything changes I will blog it.

Leave a comment

Posted by on December 23, 2012 in Nexus 7


Tags: , , , , , , , , , , , ,

Sharing Bookmarks between Ubuntu and a Nexus 7

I know I shouldn’t, but I can’t let go when I go to bed. Now, no mucky comments Keith.

I want to carry on browsing and watching my YouTube favourites on my Nexus 7 in bed, where I’m nice and warm and cosy. So I looked for a solution for having the same links on my tablet as my PC. Here is my solution.

I looked at Pocket, which works great on the Nexus but I could not find it for Ubuntu and it didn’t really do what I wanted, namely being able to carry on browsing the same links as I was on my PC.

I also looked at Evernote. No native Evernote program for Ubuntu. You can of course use Everpad, a nice

solution but Evernote is a bit of an overkill for what I wanted.

Up until now I had resorted to emailing myself links and going to bed and reading the emails to pick up the links. Silly I know, use I hear you say. The ‘word on the street’ is that Yahoo are going to stop that, so I took a look at Google Bookmarks instead.

On the Nexus there is an app for this called: Gbookmark. So far so good. I use Firefox on my PC, so I could drag the Google Bookmark button to the toolbar. Getting better.

Even better is the way you can categorize the links on Google Bookmarks.

Google calls these Labels, but you may just think of the as tags. Give each links a number of relevant tags and a list of them is then given on the left hand side of the screen.

When you have built up a large number of links over time, finding the one you want is simplicity itself.

You can either search for the term that you want, for example: Nexus and it will show you all the links that contain the term Nexus, or you can click on Nexus on the left hand side of the screen and you only get the links you have tagged with this. This all assumes of course that you have labelled some links with the word Nexus.

Screenshot - 081212 - 22:00:52











This may not be your cup of tea mug of cocoa, but it gives me exactly what I want.

Off to bed to look for a ‘Mug of Cocoa’ App 🙂


Posted by on December 8, 2012 in Uncategorized


Tags: , , , , , , , , , , , , , , , , ,

%d bloggers like this: