If you installed FEniCS from the package manger, for instance by running
sudo apt-get install fenics
then you should be able to run FEniCS programs without modifying your environment. The demo programs will be available in /usr/share/dolfin/demo
. However, this directory is write protected, so you should copy this to a directory where you have write permisson. There is a script dolfin-get-demos
that comes with the FEniCS installation that will do this automatically for you. Simply run
dolfin-get-demos
and the demo files will be copied to your home directory, that is, $HOME/dolfin-demos
.