How to install .ttf fonts in Xubuntu

Fonts only for your user

mkdir ~/.fonts
cp <myfont.ttf> ~./fonts/

Or system wide fonts

cp <myfont.ttf> /usr/share/fonts/truetype/

Then reload the fonts cache

sudo fc-cache -f

Anjuta: an alternative IDE for pyGI

This tutorial will show you how to compile Anjuta from the source, this is necessary because the latest version available on repository is not always updated. The following steps are tested on Xubuntu 14.04.


Install dependencies
sudo apt-get git install flex bison g++ libglib2.0-dev libgtk-3-dev libxml2-dev libgdl-3-dev libgda-5.0-dev libgtksourceview-3.0-dev intltool itstool libxml2-utils

If you want to build also the documentation:

sudo apt-get install yelp-tool gtk-doc-tools


Plugins dependencies

if you need the Glade plugin:

sudo apt-get install libgladeui-dev

if you need the DevHelp plugin:

sudo apt-get install libdevhelp-dev

if you need the terminal plugin:

sudo apt-get install libvte-2.90-dev

if you need the python plugin:

sudo apt-get install python-dev python-rope

if you need the subversion plugin:

sudo apt-get install libsvn-dev

if you need the vala plugin:

sudo apt-get install libvala-0.22-dev valac


Get source from repository
git clone anjuta-git
cd anjuta-git


 Configure and compile

if you have installed all packages needed by each plugin, you should get:

 Conditionally built plugins:
 Building subversion plugin: ............................YES
 Building glade plugin: .................................YES
 Building devhelp plugin: ...............................YES
 Building terminal plugin: ..............................YES
 Building Vala support: .................................YES
 Building python plugin loaeder: ........................YES


make -j4
sudo make install

The executable file will be placed in /usr/local/bin/anjuta but if you lauch Anjuta from command line you will encounter this error:

$ anjuta
anjuta: error while loading shared libraries: cannot open shared object file: No such file or directory

In fact if we check the loaded libraries we will find out that the problem concerns (not found) which is not in the path

ldd /usr/local/bin/anjuta =>  (0x00007fff0e9c9000) => /usr/lib/x86_64-linux-gnu/ (0x00007f68faff9000) => /usr/lib/x86_64-linux-gnu/ (0x00007f68fadca000)
... => not found
... is located in /usr/local/lib which is not included in the default path:

echo $PATH

Add /usr/local/lib to the path permanently:

sudo touch /etc/profile.d/

Edit /etc/profile.d/ as follow:

# set PATH so it includes local lib if it exists
if [ -d "/usr/local/lib" ] ; then

Update the path:

. /etc/profile.d/

Finally we can launch Anjuta:

anjuta -v

Anjuta 3.18.2

How to configure the NFS server and mount NFS shares (Xubuntu 14.04)

NFS Server

Just one package to install:

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

Create the folder which we want to share

mkdir /srv/nfs

Change the ownership of the folder in order to limit the rights of the client:

chown nobody:nogroup /srv/nfs

PS: do not share the /home directory because it will cause a massive permissions problem.

Now we have to inform the NFS server about what we what to share:

nano /etc/exports

and add the sharing point /srv/nfs:

/srv/nfs          *(rw,no_root_squash,async,no_subtree_check)

or in case we want to limit the share to a single client with IP=


Next update the NFS table with the new sharing point

exportfs -rav

Finally start the NFS service:

service nfs-kernel-server start


NFS Client

Just one package to install:

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

create the NFS mount point:

sudo mkdir -p /mnt/nfs

Next mount the NFS shared folder:

sudo mount -t nfs /mnt/nfs/

Now we are connected with the NFS share, we will crosscheck it as follows:

mount -t nfs on /mnt/nfs type nfs (rw,vers=4,addr=,clientaddr=
Permanent NFS mounting

Add the NFS share in /etc/fstab file

 nano /etc/fstab


 [...] /mnt/nfs nfs defaults 0 0

Yocto/OpenEmbedded: fix “max_leb_cnt too low” error

I am developing with the board Atmel SAMA5D3-Xplained, if you are compiling with Yocto/OpenEmbedded you might experience a similar error:

ERROR: Error: The image creation script '/home/cesare/development/projects/atmel_studio/yocto/poky_atmel2/poky/build-atmel/tmp/work/sama5d3_xplained-poky-linux-gnueabi/atmel-qt5-demo-image/1.0-r0/temp/create_image.ubifs' returned 255:
Error: max_leb_cnt too low (2101 needed)
WARNING: exit code 255 from a shell command.

ERROR: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /home/cesare/development/projects/atmel_studio/yocto/poky_atmel2/poky/build-atmel/tmp/work/sama5d3_xplained-poky-linux-gnueabi/atmel-qt5-demo-image/1.0-r0/temp/log.do_rootfs.17769
ERROR: Task 7 (/home/cesare/development/projects/atmel_studio/yocto/poky_atmel2/meta-atmel/qt5-layer/recipes-qt/images/, do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4519 tasks of which 4274 didn't need to be rerun and 1 failed.

To solve edit /poky/meta-atmel/conf/machine/sama5d3-xplained.conf and change the argument -c <newvalue> at line

MKUBIFS_ARGS ?= " -e 0x1f000 -c 2048 -m 0x800  -x lzo"

with a new increased value.

WordPress Themes