Ubuntu Installation (Linux Mint) – Eclipse Setup

Ubuntu Installation Instructions for Linux Mint – Eclipse Setup

Developers who want to use EnterMedia on an OS with a familiar UI can use these Ubuntu installation instructions. This process utilizes Java, Eclipse, Groovy and SmartGit. Alternate Instructions for standard Ubuntu Installation are also available.

Ubuntu Installation (Linux Mint) for EnterMedia

1.) Install Java and Eclipse:

sudo apt-get install openjdk-8-jdk

Download Eclipse (Mars) http://www.eclipse.org/downloads/

Setup HTML editor by going to Help | Eclipse Marketplace | Search for “HTML Editor” pick top one

2.) Install Groovy

Help | Install New Software | http://dist.springsource.org/snapshot/GRECLIPSE/e4.5/

Select : 2.4 Groovy Compiler

3.) Check out the source from git

Make sure you check out the key EnterMedia projects. We recommend using SmartGit to clone the repositories:

git clone git://github.com/entermedia-community/entermedia-core.git
git clone git://github.com/entermedia-community/entermedia-server.git
git clone git://github.com/entermedia-community/demoall.git
git clone git://github.com/entermedia-community/app-emshare.git
git clone git://github.com/entermedia-community/extension-ooffice.git
git clone git://github.com/entermedia-community/extension-openedit.git
git clone git://github.com/entermedia-community/tomcat8.git

Eclipse File | Import | Existing Projects into Workspace
Choose each of the main projects and import them, Do not check “Copy projects into workspace”

4.) Setup System

sudo apt-get install --no-install-recommends -y automake libogg0 libogg-dev libvorbis0a libvorbisenc2 x264   libav-tools lame libimage-exiftool-perl libreoffice unzip git libltdl-dev librsvg2-2 libwmf-bin libxt6 libgomp1 libtiff5-dev libtiff5 libfaac-dev lame imagemagick ghostscript

Install libx264-normal.ffpreset into: /home/USERNAME/.ffmpeg/

5.) Run your application server

Right click on demoall/etc/demoall Tomcat.launch | Debug As

You should now be able to connect to the webapp by going to http://localhost:8080/

6.) Import the EnterMedia Code Style guide

Find the style guide here: entermedia-server/etc/EnterMedia.format

7.) Linux Performance Tweaks

Add noattime to the file system mount
/etc/pm/config.d/10_journal_commit_time containing this line: JOURNAL_COMMIT_TIME_AC=30
/etc/sysctl.conf as root. Then, change or add this line to the file: vm.swappiness = 10

echo “fs.file-max = 10000000” >> /etc/sysctl.conf
echo “entermedia soft nofile 409600” >> /etc/security/limits.conf
echo “entermedia hard nofile 1024000” >> /etc/security/limits.conf
sysctl -p