Linux hard drive information

Sometimes it is useful to get some more information about your hard drive than just the size remaining. For this purpose there is a Linux package called smartmontools available, which can be easily installed.

Once available you can inspect different quantities and qualities of your drive by issuing smartctl commands. A good article is available over at written by Vincent Danen

The tools will be installed to /usr/sbin/smartctl. In case you are on a machine that does not have sbin in it’s path (I was working on a bananapi, which does not) you will have to precede the commands with the full path.

Some commands and their output are given below.

Get the basic information from your drive

Starting a short test

Viewing the test results

The test results will be at the end of the ouptut provided by smartctl -a. Test information starts with a hash.

Setting up an NFS server on Banana Pi

Install the NFS Server


Mount the drive

Setting up the exports

Configuring the exported directories

Starting the server

After normal restart

Adding the NFS group

Assign the new group to existing files

Adding the group on the client machine

Using Californium in Eclipse

Why Californium?

When dealing with IoT on a technical level one of the protocols to look at ist CoAP. Well and for wetting your feets a library is required.

The Californium library is one of the rare libraries that provides the CoAP protocol on top of the secure DTLS protocol. Both CoAP respective DTLS are based on UDP.

Setting up Eclipse for usage with Californium

I am using Ubuntu 14.04 and the Eclipse you can install with the package manager is not featuring the required extensions:

  • EGit
  • Maven

So first thing is to install them manually.

Eclipse Install Menu

Select a site with Eclipse software

Eclipse Install Software Dialog. Select Site

Install EGit into Eclipse

Eclipse software dialog - Select EGit

Eclipse software installation - Egit

Install Maven Integration into Eclipse

Eclipse software installation - Maven

Import Californium into Eclipse

Importing a maven project into Eclipse


Select californium directory with projects


Setting up an own project using Californium