Above link gives you what are the libraries you should install before you install Alfresco. You should run below command to install libraries.
sudo apt-get install libice6 libsm6 libxt6 libxrender1 libfontconfig1 libcups2But still office document previews didn't work properly. Some documents worked properly but some of them did't. Then I tried to debug it with one of my colleagues. We found below text in our logs
Then we tried to run soffice application from terminal. Look what we got!
/home/vagrant/alfresco-5.0.1/libreoffice/program/oosplash: error while loading shared libraries: libXinerama.so.1: cannot open shared object file: No such file or directoryThen we realised that we should install that library on Ubuntu. Run below command on Ubuntu server to install the missing library.
sudo apt-get install libxinerama1
Make sure you run both commands above!