Vim settings

Pathogen, NERDTree


Jellybeans colorscheme


How to install ParaView 5.2 on Ubuntu 16.04

Install ParaView from Ubuntu repositories

Installing ParaView with the command

sudo apt-get install paraview

results in an earlier version (5.01.) of ParaView. You might want to upgrade to 5.2. but the Ubuntu repositories don’t have the latest version.

First remove the old version, then follow the instructions below:

sudo remove paraview

Install ParaView 5.2.


To install the latest stable version we can use the binaries from the website. This will work for earlier Ubuntu versions and earlier versions of ParaView as well.

    1. Download the binaries from For me this results in: ParaView-5.2.0-Qt4-OpenGL2-MPI-Linux-64bit.tar.gz
    2. Extract and copy them:

      tar xzvf -C /opt/ParaView-5.2.0-Qt4-OpenGL2-MPI-Linux-64bit.tar.gz
      sudo gedit ~/.bashrc

    3. then insert the following line, save & close

      export PATH=$PATH:/opt/ParaView-5.2.0-Qt4-OpenGL2-MPI-Linux-64bit/bin/

From now you can run ParaView with /opt/ParaView-5.2.0-Qt4-OpenGL2-MPI-Linux-64bit/bin/paraview.

Create symbolic links

To be able to run ParaView with the command “paraview” in terminal, symbolic links should be created.

sudo ln -s /opt/ParaView-5.2.0-Qt4-OpenGL2-MPI-Linux-64bit/bin/paraview /usr/bin/paraview

sudo ln -s /opt/ParaView-5.2.0-Qt4-OpenGL2-MPI-Linux-64bit/lib/paraview-5.2/ /usr/lib/paraview-5.2

Create launcher icon

Now ParaView can be run from terminal with the command “paraview” and it can be locked to the Launcher, but the icon is missing. To resolve the problem type in terminal

sudo gedit /usr/share/applications/paraview.desktop

then insert the following:

[Desktop Entry]
Name=ParaView 5.2.


[NewWindow Shortcut Group]
Name=New Window

save & quit & restart the computer.

After restart, paraview can be launched from the terminal and locked to the Launcher.

Vim keys

h   move one character left
j   move one row down
k   move one row up
l   move one character right
0   move to beginning of line
$   move to end of line
gg  move to first line
G   move to last line
Ctrl-D  move half-page down
Ctrl-U  move half-page up
Ctrl-B  page up
Ctrl-F  page down

Dolfin add superlu

Upgrade petsc

  1. find petsc folder: /usr/lib/petscdir
  2. download petsc somewhere from with wget
  3. extract with tar xf
  4. the configure it: ./configure –prefix=/usr/lib/petscdir/3.6.3 –download-superlu_dist –with-cc=gcc –with-cxx=g++ –with-fc=gfortran –download-fblaslapack –download-mpich –download-parmetis –download-metis
  5. make all test
  6. and then change the environment variables as required

Add superlu to dolfin

  1. download fenics
  2. mkdir build
  3. cd build
  4. change Cmakelists.txt
  5. cmake –DCMAKE_INSTALL_PREFIX=~/software –download-suitesparse –download-superlu –download-superlu_dist ..

In case of warnings: “invalid suffix on literal”: