Difference between revisions of "Installation/Helyx-OS/Fedora"

From OpenFOAMWiki
(Switched to more explicit instructions for version 1.0.3)
(Rephrased the statements about JRE)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
= Introduction =
 
= Introduction =
This page is dedicated to explaining how to install [http://sourceforge.net/p/helyx-os/wiki/Home/ Helyx-OS] in [http://fedoraproject.org Fedora].
+
This page is dedicated to explaining how to install [http://engys.github.io/HELYX-OS/ Helyx-OS] in [http://fedoraproject.org Fedora].
 
+
'''Note''': Many of these instructions were copied (with permission) from the original [http://sourceforge.net/u/wyldckat/helyxos/wiki/Home/ HelyxOS (Unofficial instructions)] written by [[User:Wyldckat]].
+
  
 
If you do not yet feel comfortable using Linux, then perhaps you better first read the page [[Installation/Working with the Shell|Working with the Shell]] and train a bit with the shell/terminal environments, so you can have a better perception of the steps shown below.
 
If you do not yet feel comfortable using Linux, then perhaps you better first read the page [[Installation/Working with the Shell|Working with the Shell]] and train a bit with the shell/terminal environments, so you can have a better perception of the steps shown below.
Line 17: Line 15:
  
  
== Fedora 17 ==
+
== Helyx-OS v2.3.1 ==
 +
{{VersionInfo}}{{version2.4}}
  
=== Fedora 17 32bit ===
+
In this section are the instructions meant for Helyx-OS v2.3.1.
'''Discussion thread where you can ask questions about these steps''': [http://www.cfd-online.com/Forums/openfoam-meshing-snappyhexmesh/117183-installing-helyxos-32-64bit-linux-distributions.html#post425067 Installing HelyxOS on 32 and 64bit Linux Distributions]
+
  
'''Note''': These instructions have been tested on Fedora 17 32bit (i686).
+
'''Note: If you have the 64 bit architecture of Fedora, perhaps it's best to follow the official installation instructions:''' [http://engys.github.io/HELYX-OS/installation/ Installation of the Latest 64 Bit Linux Binaries @ Github]
  
Steps:
+
=== Fedora 23 ===
<ol>
+
<li>Install "vtk" + "vtk-java" + "OpenJDK":
+
<bash>su -c 'yum install vtk vtk-java java-1.7.0-openjdk'</bash>
+
</li>
+
<li>Download the binary tarball for HelyxOS from the [http://sourceforge.net/projects/helyx-os/files/ download section]. You can also download the file through the command line, by running:
+
<bash>wget "http://sourceforge.net/projects/helyx-os/files/20130715-Engys-HelyxOS-1.0.3-linux-x86_64-JRE.tar.bz2/download" -O "20130715-Engys-HelyxOS-1.0.3-linux-x86_64-JRE.tar.bz2"</bash>
+
</li>
+
<li>Unpack the tarball for HelyxOS where you want to install HelyxOS:
+
<bash>tar -xjf 20130715-Engys-HelyxOS-1.0.3-linux-x86_64-JRE.tar.bz2</bash>
+
</li>
+
<li>Go into the folder {{tt|Engys/HelyxOS}} and remove the {{tt|jre}} folder:
+
<bash>cd Engys/HelyxOS
+
rm -rf jre</bash>
+
</li>
+
<li>Get a local copy of the OpenJDK installation that Fedora has got:
+
<bash>mkdir jre
+
cp -r /usr/lib/jvm/jre-1.7.0-openjdk/* jre/</bash>
+
</li>
+
<li>Go into the subfolder {{tt|v1.0.1}}:
+
<bash>cd v1.0.1</bash>
+
</li>
+
<li>Edit the file {{tt|bin/launcher.conf}} (e.g. with {{tt|nano}} or {{tt|gedit}}) and search for the following line:
+
<bash>LD_LIBRARY_PATH="$HELYXHOME/ext:$HELYXHOME/../jre/lib/amd64/xawt:$LD_LIBRARY_PATH"</bash>
+
Replace it with this one:
+
<bash>LD_LIBRARY_PATH="$HELYXHOME/ext:$HELYXHOME/../jre/lib/i386:$HELYXHOME/../jre/lib/i386/xawt:$LD_LIBRARY_PATH"</bash>
+
Save and close the file.
+
</li>
+
<li>Eliminate the contents of the {{tt|ext}} subfolder:
+
<bash>rm ext/*</bash>
+
</li>
+
<li>Create a symbolic link list to the actual VTK libraries:
+
<bash>for a in /usr/lib/vtk/lib*.so.5.8.0; do
+
    b=${a%*.5.8.0}
+
    ln -s $a ext/${b##*/}
+
done</bash>
+
Or if you prefer a single line of code:
+
<bash>for a in /usr/lib/vtk/lib*.so.5.8.0; do b=${a%*.5.8.0}; ln -s $a ext/${b##*/}; done</bash>
+
</li>
+
<li>Remove the {{tt|lib/vtk-5.10.jar}} and replace it with a symbolic link to Fedora's own build:
+
<bash>rm lib/vtk-5.10.jar
+
ln -s /usr/lib/vtk/java/vtk.jar lib/vtk-5.10.jar</bash>
+
</li>
+
<li>That is it! You are ready to go:
+
<bash>./helyxOS.sh</bash>
+
</li>
+
</ol>
+
 
+
'''Discussion thread where you can ask questions about these steps''': [http://www.cfd-online.com/Forums/openfoam-meshing-snappyhexmesh/117183-installing-helyxos-32-64bit-linux-distributions.html#post425067 Installing HelyxOS on 32 and 64bit Linux Distributions]
+
 
+
 
+
=== Fedora 17 64bit ===
+
'''Discussion thread where you can ask questions about these steps''': [http://www.cfd-online.com/Forums/openfoam-meshing-snappyhexmesh/117183-installing-helyxos-32-64bit-linux-distributions.html#post425067 Installing HelyxOS on 32 and 64bit Linux Distributions]
+
  
'''Note''': These instructions have been written for Fedora 17 64bit (x86_64).
+
==== Fedora 23 32bit ====
 +
'''Discussion thread where you can ask questions about these steps''': [http://www.cfd-online.com/Forums/openfoam-meshing-snappyhexmesh/117183-installing-helyxos-32-64bit-linux-distributions.html Installing HelyxOS on 32 and 64bit Linux Distributions]
  
 
Steps:
 
Steps:
 
<ol>
 
<ol>
<li>Install "vtk" + "vtk-java" + "OpenJDK":
+
<li>Install VTK + OpenJDK:
<bash>su -c 'yum install vtk vtk-java java-1.7.0-openjdk'</bash>
+
<bash>su -c 'dnf install vtk vtk-java vtk-devel java-1.8.0-openjdk java-1.8.0-openjdk-devel'</bash>
 
</li>
 
</li>
 
<li>Download the binary tarball for HelyxOS from the [http://sourceforge.net/projects/helyx-os/files/ download section]. You can also download the file through the command line, by running:
 
<li>Download the binary tarball for HelyxOS from the [http://sourceforge.net/projects/helyx-os/files/ download section]. You can also download the file through the command line, by running:
<bash>wget "http://sourceforge.net/projects/helyx-os/files/20130715-Engys-HelyxOS-1.0.3-linux-x86_64-JRE.tar.bz2/download" -O "20130715-Engys-HelyxOS-1.0.3-linux-x86_64-JRE.tar.bz2"</bash>
+
<bash>wget "https://github.com/ENGYS/HELYX-OS/releases/download/v2.3.1/HELYX-OS-2.3.1-linux-x86_64.tar.bz2" \
 +
-O "HELYX-OS-2.3.1-linux-x86_64.tar.bz2"</bash>
 
</li>
 
</li>
 
<li>Unpack the tarball for HelyxOS where you want to install HelyxOS:
 
<li>Unpack the tarball for HelyxOS where you want to install HelyxOS:
<bash>tar -xjf 20130715-Engys-HelyxOS-1.0.3-linux-x86_64-JRE.tar.bz2</bash>
+
<bash>tar -xjf HELYX-OS-2.3.1-linux-x86_64.tar.bz2</bash>
 
</li>
 
</li>
 
<li>Go into the folder {{tt|Engys/HelyxOS}} and remove the {{tt|jre}} folder:
 
<li>Go into the folder {{tt|Engys/HelyxOS}} and remove the {{tt|jre}} folder:
<bash>cd Engys/HelyxOS
+
<bash>cd Engys/HELYX-OS
 
rm -rf jre</bash>
 
rm -rf jre</bash>
 
</li>
 
</li>
<li>Get a local copy of the OpenJDK installation that Fedora has got:
+
<li>Link to the OpenJDK installation that Fedora has got:
 
<bash>mkdir jre
 
<bash>mkdir jre
cp -r /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/* jre/</bash>
+
ln -s /usr/lib/jvm/jre-1.8.0-openjdk jre</bash>
 
</li>
 
</li>
<li>Go into the subfolder {{tt|v1.0.1}}:
+
<li>Go into the subfolder {{tt|v2.3.1}}:
<bash>cd v1.0.1</bash>
+
<bash>cd v2.3.1</bash>
 
</li>
 
</li>
<li>Edit the file {{tt|bin/launcher.conf}} (e.g. with {{tt|nano}} or {{tt|gedit}}) and search for the following line:
+
<li>Eliminate unneeded contents from the {{tt|ext}} subfolder and get a local copy of the necessary VTK libraries:
<bash>LD_LIBRARY_PATH="$HELYXHOME/ext:$HELYXHOME/../jre/lib/amd64/xawt:$LD_LIBRARY_PATH"</bash>
+
<bash>rm -rf ext/lib*
Replace it with this one:
+
cp -a /usr/lib/vtk/libvtk* ext/
<bash>LD_LIBRARY_PATH="$HELYXHOME/ext:$HELYXHOME/../jre/lib/amd64:$HELYXHOME/../jre/lib/amd64/xawt:$LD_LIBRARY_PATH"</bash>
+
</bash>
Save and close the file.
+
 
</li>
 
</li>
<li>Eliminate the contents of the {{tt|ext}} subfolder:
+
<li>Remove the {{tt|lib/vtk6.jar}}, get the one from Fedora, do a few tweaks and package it nicely:
<bash>rm ext/*</bash>
+
<bash>rm lib/vtk6.jar
</li>
+
mkdir lib/vtk6
<li>Create a symbolic link list to the actual VTK libraries:
+
cd lib/vtk6
<bash>for a in /usr/lib64/vtk/lib*.so.5.8.0; do
+
unzip /usr/lib/vtk/vtk.jar
    b=${a%*.5.8.0}
+
sed -i \
    ln -s $a ext/${b##*/}
+
  -e 's=.*vtkRenderingParallelLICJava.*==' \
done</bash>
+
  -e 's=.*vtkRenderingVolumeOpenGL2Java.*==' \
Or if you prefer a single line of code:
+
  -e 's=.*vtkRenderingVolumeOpenGLNewJava.*==' \
<bash>for a in /usr/lib64/vtk/lib*.so.5.8.0; do b=${a%*.5.8.0}; ln -s $a ext/${b##*/}; done</bash>
+
  -e 's=.*vtkRenderingExternalJava.*==' \
</li>
+
  -e 's=.*vtkRenderingParallelJava.*==' \
<li>Remove the {{tt|lib/vtk-5.10.jar}} and replace it with a symbolic link to Fedora's own build:
+
  -e 's=.*vtkRenderingOpenGL2Java.*==' \
<bash>rm lib/vtk-5.10.jar
+
  -e 's=.*vtkRenderingContextOpenGL2Java.*==' \
ln -s /usr/lib64/vtk/java/vtk.jar lib/vtk-5.10.jar</bash>
+
  -e 's=.*vtkRenderingFreeTypeOpenGL2Java.*==' \
 +
  -e 's=.*vtkRenderingVolumeAMRJava.*==' \
 +
  -e 's=.*vtkRenderingMatplotlibJava.*==' \
 +
  -e 's=.*vtkParallelMPIJava.*==' \
 +
  -e 's=.*vtkParallelMPI4PyJava.*==' \
 +
  -e 's=.*vtkDomainsChemistryOpenGL2Java.*==' \
 +
  -e 's=.*vtkAcceleratorsDaxJava.*==' \
 +
  -e 's=.*vtkAcceleratorsPistonJava.*==' \
 +
  -e 's=.*vtkInfovisParallelJava.*==' \
 +
  -e 's=.*vtkInfovisBoostGraphAlgorithmsJava.*==' \
 +
  -e 's=.*vtkWebGLExporterJava.*==' \
 +
  -e 's=.*vtkWebCoreJava.*==' \
 +
  -e 's=.*vtkIOParallelExodusJava.*==' \
 +
  -e 's=.*vtkIOODBCJava.*==' \
 +
  -e 's=.*vtkIOGDALJava.*==' \
 +
  -e 's=.*vtkIOVPICJava.*==' \
 +
  -e 's=.*vtkIOMPIImageJava.*==' \
 +
  -e 's=.*vtkIOADIOSJava.*==' \
 +
  -e 's=.*vtkIOGeoJSONJava.*==' \
 +
  -e 's=.*vtkIOMPIParallelJava.*==' \
 +
  -e 's=.*vtkIOXdmf2Java.*==' \
 +
  -e 's=.*vtkIOMySQLJava.*==' \
 +
  -e 's=.*vtkIOParallelLSDynaJava.*==' \
 +
  -e 's=.*vtkIOXdmf3Java.*==' \
 +
  -e 's=.*vtkIOFFMPEGJava.*==' \
 +
  -e 's=.*vtkIOPostgreSQLJava.*==' \
 +
  -e 's=.*vtkIOParallelNetCDFJava.*==' \
 +
  -e 's=.*vtkPythonInterpreterJava.*==' \
 +
  -e 's=.*vtkFiltersParallelFlowPathsJava.*==' \
 +
  -e 's=.*vtkFiltersReebGraphJava.*==' \
 +
  -e 's=.*vtkFiltersPythonJava.*==' \
 +
  -e 's=.*vtkFiltersParallelGeometryJava.*==' \
 +
  -e 's=.*vtkFiltersParallelStatisticsJava.*==' \
 +
  -e 's=.*vtkFiltersParallelMPIJava.*==' \
 +
  vtk/vtkNativeLibrary.java
 +
javac vtk/vtkNativeLibrary.java
 +
zip -r ../vtk6.jar *
 +
cd ../..
 +
</bash>
 
</li>
 
</li>
 
<li>That is it! You are ready to go:
 
<li>That is it! You are ready to go:
<bash>./helyxOS.sh</bash>
+
<bash>./HELYX-OS.sh</bash>
 
</li>
 
</li>
 
</ol>
 
</ol>
  
'''Discussion thread where you can ask questions about these steps''': [http://www.cfd-online.com/Forums/openfoam-meshing-snappyhexmesh/117183-installing-helyxos-32-64bit-linux-distributions.html#post425067 Installing HelyxOS on 32 and 64bit Linux Distributions]
+
'''Discussion thread where you can ask questions about these steps''': [http://www.cfd-online.com/Forums/openfoam-meshing-snappyhexmesh/117183-installing-helyxos-32-64bit-linux-distributions.html Installing HelyxOS on 32 and 64bit Linux Distributions]
  
  
== Fedora 18 ==
+
==== Fedora 23 64bit ====
 
+
'''Discussion thread where you can ask questions about these steps''': [http://www.cfd-online.com/Forums/openfoam-meshing-snappyhexmesh/117183-installing-helyxos-32-64bit-linux-distributions.html Installing HelyxOS on 32 and 64bit Linux Distributions]
=== Fedora 18 32bit ===
+
'''Discussion thread where you can ask questions about these steps''': [http://www.cfd-online.com/Forums/openfoam-meshing-snappyhexmesh/117183-installing-helyxos-32-64bit-linux-distributions.html#post425067 Installing HelyxOS on 32 and 64bit Linux Distributions]
+
 
+
'''Note''': These instructions have been tested on Fedora 18 32bit (i686).
+
  
 
Steps:
 
Steps:
 
<ol>
 
<ol>
<li>Install "vtk" + "vtk-java" + "OpenJDK":
+
<li>Install VTK + OpenJDK:
<bash>su -c 'yum install vtk vtk-java java-1.7.0-openjdk'</bash>
+
<bash>su -c 'dnf install vtk vtk-java vtk-devel java-1.8.0-openjdk java-1.8.0-openjdk-devel'</bash>
 
</li>
 
</li>
 
<li>Download the binary tarball for HelyxOS from the [http://sourceforge.net/projects/helyx-os/files/ download section]. You can also download the file through the command line, by running:
 
<li>Download the binary tarball for HelyxOS from the [http://sourceforge.net/projects/helyx-os/files/ download section]. You can also download the file through the command line, by running:
<bash>wget "http://sourceforge.net/projects/helyx-os/files/20130715-Engys-HelyxOS-1.0.3-linux-x86_64-JRE.tar.bz2/download" -O "20130715-Engys-HelyxOS-1.0.3-linux-x86_64-JRE.tar.bz2"</bash>
+
<bash>wget "https://github.com/ENGYS/HELYX-OS/releases/download/v2.3.1/HELYX-OS-2.3.1-linux-x86_64.tar.bz2" \
 +
-O "HELYX-OS-2.3.1-linux-x86_64.tar.bz2"</bash>
 
</li>
 
</li>
 
<li>Unpack the tarball for HelyxOS where you want to install HelyxOS:
 
<li>Unpack the tarball for HelyxOS where you want to install HelyxOS:
<bash>tar -xjf 20130715-Engys-HelyxOS-1.0.3-linux-x86_64-JRE.tar.bz2</bash>
+
<bash>tar -xjf HELYX-OS-2.3.1-linux-x86_64.tar.bz2</bash>
 
</li>
 
</li>
 
<li>Go into the folder {{tt|Engys/HelyxOS}} and remove the {{tt|jre}} folder:
 
<li>Go into the folder {{tt|Engys/HelyxOS}} and remove the {{tt|jre}} folder:
<bash>cd Engys/HelyxOS
+
<bash>cd Engys/HELYX-OS
 
rm -rf jre</bash>
 
rm -rf jre</bash>
 
</li>
 
</li>
<li>Get a local copy of the OpenJDK installation that Fedora has got:
+
<li>Link to the OpenJDK installation that Fedora has got:
 
<bash>mkdir jre
 
<bash>mkdir jre
cp -r /usr/lib/jvm/jre-1.7.0-openjdk/* jre/</bash>
+
ln -s /usr/lib64/jvm/jre-1.8.0-openjdk jre</bash>
</li>
+
<li>Go into the subfolder {{tt|v1.0.1}}:
+
<bash>cd v1.0.1</bash>
+
</li>
+
<li>Edit the file {{tt|bin/launcher.conf}} (e.g. with {{tt|nano}} or {{tt|gedit}}) and search for the following line:
+
<bash>LD_LIBRARY_PATH="$HELYXHOME/ext:$HELYXHOME/../jre/lib/amd64/xawt:$LD_LIBRARY_PATH"</bash>
+
Replace it with this one:
+
<bash>LD_LIBRARY_PATH="$HELYXHOME/ext:$HELYXHOME/../jre/lib/i386:$HELYXHOME/../jre/lib/i386/xawt:$LD_LIBRARY_PATH"</bash>
+
Save and close the file.
+
</li>
+
<li>Eliminate the contents of the {{tt|ext}} subfolder:
+
<bash>rm ext/*</bash>
+
</li>
+
<li>Create a symbolic link list to the actual VTK libraries:
+
<bash>for a in /usr/lib/vtk/lib*.so.5.10.0; do
+
    b=${a%*.5.10.0}
+
    ln -s $a ext/${b##*/}
+
done</bash>
+
Or if you prefer a single line of code:
+
<bash>for a in /usr/lib/vtk/lib*.so.5.10.0; do b=${a%*.5.10.0}; ln -s $a ext/${b##*/}; done</bash>
+
</li>
+
<li>Remove the {{tt|lib/vtk-5.10.jar}} and replace it with a symbolic link to Fedora's own build:
+
<bash>rm lib/vtk-5.10.jar
+
ln -s /usr/lib/vtk/java/vtk.jar lib/vtk-5.10.jar</bash>
+
</li>
+
<li>That is it! You are ready to go:
+
<bash>./helyxOS.sh</bash>
+
</li>
+
</ol>
+
 
+
'''Discussion thread where you can ask questions about these steps''': [http://www.cfd-online.com/Forums/openfoam-meshing-snappyhexmesh/117183-installing-helyxos-32-64bit-linux-distributions.html#post425067 Installing HelyxOS on 32 and 64bit Linux Distributions]
+
 
+
 
+
=== Fedora 18 64bit ===
+
'''Discussion thread where you can ask questions about these steps''': [http://www.cfd-online.com/Forums/openfoam-meshing-snappyhexmesh/117183-installing-helyxos-32-64bit-linux-distributions.html#post425067 Installing HelyxOS on 32 and 64bit Linux Distributions]
+
 
+
'''Note''': These instructions have been written for Fedora 18 64bit (x86_64).
+
 
+
Steps:
+
<ol>
+
<li>Install "vtk" + "vtk-java" + "OpenJDK":
+
<bash>su -c 'yum install vtk vtk-java java-1.7.0-openjdk'</bash>
+
</li>
+
<li>Download the binary tarball for HelyxOS from the [http://sourceforge.net/projects/helyx-os/files/ download section]. You can also download the file through the command line, by running:
+
<bash>wget "http://sourceforge.net/projects/helyx-os/files/20130715-Engys-HelyxOS-1.0.3-linux-x86_64-JRE.tar.bz2/download" -O "20130715-Engys-HelyxOS-1.0.3-linux-x86_64-JRE.tar.bz2"</bash>
+
</li>
+
<li>Unpack the tarball for HelyxOS where you want to install HelyxOS:
+
<bash>tar -xjf 20130715-Engys-HelyxOS-1.0.3-linux-x86_64-JRE.tar.bz2</bash>
+
</li>
+
<li>Go into the folder {{tt|Engys/HelyxOS}} and remove the {{tt|jre}} folder:
+
<bash>cd Engys/HelyxOS
+
rm -rf jre</bash>
+
</li>
+
<li>Get a local copy of the OpenJDK installation that Fedora has got:
+
<bash>mkdir jre
+
cp -r /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/* jre/</bash>
+
</li>
+
<li>Go into the subfolder {{tt|v1.0.1}}:
+
<bash>cd v1.0.1</bash>
+
</li>
+
<li>Edit the file {{tt|bin/launcher.conf}} (e.g. with {{tt|nano}} or {{tt|gedit}}) and search for the following line:
+
<bash>LD_LIBRARY_PATH="$HELYXHOME/ext:$HELYXHOME/../jre/lib/amd64/xawt:$LD_LIBRARY_PATH"</bash>
+
Replace it with this one:
+
<bash>LD_LIBRARY_PATH="$HELYXHOME/ext:$HELYXHOME/../jre/lib/amd64:$HELYXHOME/../jre/lib/amd64/xawt:$LD_LIBRARY_PATH"</bash>
+
Save and close the file.
+
 
</li>
 
</li>
<li>Eliminate the contents of the {{tt|ext}} subfolder:
+
<li>Go into the subfolder {{tt|v2.3.1}}:
<bash>rm ext/*</bash>
+
<bash>cd v2.3.1</bash>
 
</li>
 
</li>
<li>Create a symbolic link list to the actual VTK libraries:
+
<li>Eliminate unneeded contents from the {{tt|ext}} subfolder and get a local copy of the necessary VTK libraries:
<bash>for a in /usr/lib64/vtk/lib*.so.5.10.0; do
+
<bash>rm -rf ext/lib*
    b=${a%*.5.10.0}
+
cp -a /usr/lib64/vtk/libvtk* ext/
    ln -s $a ext/${b##*/}
+
</bash>
done</bash>
+
Or if you prefer a single line of code:
+
<bash>for a in /usr/lib64/vtk/lib*.so.5.10.0; do b=${a%*.5.10.0}; ln -s $a ext/${b##*/}; done</bash>
+
 
</li>
 
</li>
<li>Remove the {{tt|lib/vtk-5.10.jar}} and replace it with a symbolic link to Fedora's own build:
+
<li>Remove the {{tt|lib/vtk6.jar}}, get the one from Fedora, do a few tweaks and package it nicely:
<bash>rm lib/vtk-5.10.jar
+
<bash>rm lib/vtk6.jar
ln -s /usr/lib64/vtk/java/vtk.jar lib/vtk-5.10.jar</bash>
+
mkdir lib/vtk6
 +
cd lib/vtk6
 +
unzip /usr/lib64/vtk/vtk.jar
 +
sed -i \
 +
  -e 's=.*vtkRenderingParallelLICJava.*==' \
 +
  -e 's=.*vtkRenderingVolumeOpenGL2Java.*==' \
 +
  -e 's=.*vtkRenderingVolumeOpenGLNewJava.*==' \
 +
  -e 's=.*vtkRenderingExternalJava.*==' \
 +
  -e 's=.*vtkRenderingParallelJava.*==' \
 +
  -e 's=.*vtkRenderingOpenGL2Java.*==' \
 +
  -e 's=.*vtkRenderingContextOpenGL2Java.*==' \
 +
  -e 's=.*vtkRenderingFreeTypeOpenGL2Java.*==' \
 +
  -e 's=.*vtkRenderingVolumeAMRJava.*==' \
 +
  -e 's=.*vtkRenderingMatplotlibJava.*==' \
 +
  -e 's=.*vtkParallelMPIJava.*==' \
 +
  -e 's=.*vtkParallelMPI4PyJava.*==' \
 +
  -e 's=.*vtkDomainsChemistryOpenGL2Java.*==' \
 +
  -e 's=.*vtkAcceleratorsDaxJava.*==' \
 +
  -e 's=.*vtkAcceleratorsPistonJava.*==' \
 +
  -e 's=.*vtkInfovisParallelJava.*==' \
 +
  -e 's=.*vtkInfovisBoostGraphAlgorithmsJava.*==' \
 +
  -e 's=.*vtkWebGLExporterJava.*==' \
 +
  -e 's=.*vtkWebCoreJava.*==' \
 +
  -e 's=.*vtkIOParallelExodusJava.*==' \
 +
  -e 's=.*vtkIOODBCJava.*==' \
 +
  -e 's=.*vtkIOGDALJava.*==' \
 +
  -e 's=.*vtkIOVPICJava.*==' \
 +
  -e 's=.*vtkIOMPIImageJava.*==' \
 +
  -e 's=.*vtkIOADIOSJava.*==' \
 +
  -e 's=.*vtkIOGeoJSONJava.*==' \
 +
  -e 's=.*vtkIOMPIParallelJava.*==' \
 +
  -e 's=.*vtkIOXdmf2Java.*==' \
 +
  -e 's=.*vtkIOMySQLJava.*==' \
 +
  -e 's=.*vtkIOParallelLSDynaJava.*==' \
 +
  -e 's=.*vtkIOXdmf3Java.*==' \
 +
  -e 's=.*vtkIOFFMPEGJava.*==' \
 +
  -e 's=.*vtkIOPostgreSQLJava.*==' \
 +
  -e 's=.*vtkIOParallelNetCDFJava.*==' \
 +
  -e 's=.*vtkPythonInterpreterJava.*==' \
 +
  -e 's=.*vtkFiltersParallelFlowPathsJava.*==' \
 +
  -e 's=.*vtkFiltersReebGraphJava.*==' \
 +
  -e 's=.*vtkFiltersPythonJava.*==' \
 +
  -e 's=.*vtkFiltersParallelGeometryJava.*==' \
 +
  -e 's=.*vtkFiltersParallelStatisticsJava.*==' \
 +
  -e 's=.*vtkFiltersParallelMPIJava.*==' \
 +
  vtk/vtkNativeLibrary.java
 +
javac vtk/vtkNativeLibrary.java
 +
zip -r ../vtk6.jar *
 +
cd ../..
 +
</bash>
 
</li>
 
</li>
 
<li>That is it! You are ready to go:
 
<li>That is it! You are ready to go:
<bash>./helyxOS.sh</bash>
+
<bash>./HELYX-OS.sh</bash>
 
</li>
 
</li>
 
</ol>
 
</ol>
  
'''Discussion thread where you can ask questions about these steps''': [http://www.cfd-online.com/Forums/openfoam-meshing-snappyhexmesh/117183-installing-helyxos-32-64bit-linux-distributions.html#post425067 Installing HelyxOS on 32 and 64bit Linux Distributions]
+
'''Discussion thread where you can ask questions about these steps''': [http://www.cfd-online.com/Forums/openfoam-meshing-snappyhexmesh/117183-installing-helyxos-32-64bit-linux-distributions.html Installing HelyxOS on 32 and 64bit Linux Distributions]
  
  
 
[[Category:Installing Helyx-OS]]
 
[[Category:Installing Helyx-OS]]

Latest revision as of 09:17, 27 March 2016

1 Introduction

This page is dedicated to explaining how to install Helyx-OS in Fedora.

If you do not yet feel comfortable using Linux, then perhaps you better first read the page Working with the Shell and train a bit with the shell/terminal environments, so you can have a better perception of the steps shown below.


2 Copy-Paste steps

A few notes before you start copy-pasting:

  1. Lines that start with # don't have to be copy-pasted. They are just comments to let you know what's going on.
  2. One wrong character is enough for breaking this guide, so make sure you can read the characters properly or that the installed language system does not break the copied characters!


2.1 Helyx-OS v2.3.1

Valid versions: OF Version 24.png

In this section are the instructions meant for Helyx-OS v2.3.1.

Note: If you have the 64 bit architecture of Fedora, perhaps it's best to follow the official installation instructions: Installation of the Latest 64 Bit Linux Binaries @ Github

2.1.1 Fedora 23

2.1.1.1 Fedora 23 32bit

Discussion thread where you can ask questions about these steps: Installing HelyxOS on 32 and 64bit Linux Distributions

Steps:

  1. Install VTK + OpenJDK:
    su -c 'dnf install vtk vtk-java vtk-devel java-1.8.0-openjdk java-1.8.0-openjdk-devel'
  2. Download the binary tarball for HelyxOS from the download section. You can also download the file through the command line, by running:
    wget "https://github.com/ENGYS/HELYX-OS/releases/download/v2.3.1/HELYX-OS-2.3.1-linux-x86_64.tar.bz2" \
    -O "HELYX-OS-2.3.1-linux-x86_64.tar.bz2"
  3. Unpack the tarball for HelyxOS where you want to install HelyxOS:
    tar -xjf HELYX-OS-2.3.1-linux-x86_64.tar.bz2
  4. Go into the folder Engys/HelyxOS and remove the jre folder:
    cd Engys/HELYX-OS
    rm -rf jre
  5. Link to the OpenJDK installation that Fedora has got:
    mkdir jre
    ln -s /usr/lib/jvm/jre-1.8.0-openjdk jre
  6. Go into the subfolder v2.3.1:
    cd v2.3.1
  7. Eliminate unneeded contents from the ext subfolder and get a local copy of the necessary VTK libraries:
    rm -rf ext/lib*
    cp -a /usr/lib/vtk/libvtk* ext/
  8. Remove the lib/vtk6.jar, get the one from Fedora, do a few tweaks and package it nicely:
    rm lib/vtk6.jar
    mkdir lib/vtk6
    cd lib/vtk6
    unzip /usr/lib/vtk/vtk.jar
    sed -i \
      -e 's=.*vtkRenderingParallelLICJava.*==' \
      -e 's=.*vtkRenderingVolumeOpenGL2Java.*==' \
      -e 's=.*vtkRenderingVolumeOpenGLNewJava.*==' \
      -e 's=.*vtkRenderingExternalJava.*==' \
      -e 's=.*vtkRenderingParallelJava.*==' \
      -e 's=.*vtkRenderingOpenGL2Java.*==' \
      -e 's=.*vtkRenderingContextOpenGL2Java.*==' \
      -e 's=.*vtkRenderingFreeTypeOpenGL2Java.*==' \
      -e 's=.*vtkRenderingVolumeAMRJava.*==' \
      -e 's=.*vtkRenderingMatplotlibJava.*==' \
      -e 's=.*vtkParallelMPIJava.*==' \
      -e 's=.*vtkParallelMPI4PyJava.*==' \
      -e 's=.*vtkDomainsChemistryOpenGL2Java.*==' \
      -e 's=.*vtkAcceleratorsDaxJava.*==' \
      -e 's=.*vtkAcceleratorsPistonJava.*==' \
      -e 's=.*vtkInfovisParallelJava.*==' \
      -e 's=.*vtkInfovisBoostGraphAlgorithmsJava.*==' \
      -e 's=.*vtkWebGLExporterJava.*==' \
      -e 's=.*vtkWebCoreJava.*==' \
      -e 's=.*vtkIOParallelExodusJava.*==' \
      -e 's=.*vtkIOODBCJava.*==' \
      -e 's=.*vtkIOGDALJava.*==' \
      -e 's=.*vtkIOVPICJava.*==' \
      -e 's=.*vtkIOMPIImageJava.*==' \
      -e 's=.*vtkIOADIOSJava.*==' \
      -e 's=.*vtkIOGeoJSONJava.*==' \
      -e 's=.*vtkIOMPIParallelJava.*==' \
      -e 's=.*vtkIOXdmf2Java.*==' \
      -e 's=.*vtkIOMySQLJava.*==' \
      -e 's=.*vtkIOParallelLSDynaJava.*==' \
      -e 's=.*vtkIOXdmf3Java.*==' \
      -e 's=.*vtkIOFFMPEGJava.*==' \
      -e 's=.*vtkIOPostgreSQLJava.*==' \
      -e 's=.*vtkIOParallelNetCDFJava.*==' \
      -e 's=.*vtkPythonInterpreterJava.*==' \
      -e 's=.*vtkFiltersParallelFlowPathsJava.*==' \
      -e 's=.*vtkFiltersReebGraphJava.*==' \
      -e 's=.*vtkFiltersPythonJava.*==' \
      -e 's=.*vtkFiltersParallelGeometryJava.*==' \
      -e 's=.*vtkFiltersParallelStatisticsJava.*==' \
      -e 's=.*vtkFiltersParallelMPIJava.*==' \
      vtk/vtkNativeLibrary.java
    javac vtk/vtkNativeLibrary.java
    zip -r ../vtk6.jar *
    cd ../..
  9. That is it! You are ready to go:
    ./HELYX-OS.sh

Discussion thread where you can ask questions about these steps: Installing HelyxOS on 32 and 64bit Linux Distributions


2.1.1.2 Fedora 23 64bit

Discussion thread where you can ask questions about these steps: Installing HelyxOS on 32 and 64bit Linux Distributions

Steps:

  1. Install VTK + OpenJDK:
    su -c 'dnf install vtk vtk-java vtk-devel java-1.8.0-openjdk java-1.8.0-openjdk-devel'
  2. Download the binary tarball for HelyxOS from the download section. You can also download the file through the command line, by running:
    wget "https://github.com/ENGYS/HELYX-OS/releases/download/v2.3.1/HELYX-OS-2.3.1-linux-x86_64.tar.bz2" \
    -O "HELYX-OS-2.3.1-linux-x86_64.tar.bz2"
  3. Unpack the tarball for HelyxOS where you want to install HelyxOS:
    tar -xjf HELYX-OS-2.3.1-linux-x86_64.tar.bz2
  4. Go into the folder Engys/HelyxOS and remove the jre folder:
    cd Engys/HELYX-OS
    rm -rf jre
  5. Link to the OpenJDK installation that Fedora has got:
    mkdir jre
    ln -s /usr/lib64/jvm/jre-1.8.0-openjdk jre
  6. Go into the subfolder v2.3.1:
    cd v2.3.1
  7. Eliminate unneeded contents from the ext subfolder and get a local copy of the necessary VTK libraries:
    rm -rf ext/lib*
    cp -a /usr/lib64/vtk/libvtk* ext/
  8. Remove the lib/vtk6.jar, get the one from Fedora, do a few tweaks and package it nicely:
    rm lib/vtk6.jar
    mkdir lib/vtk6
    cd lib/vtk6
    unzip /usr/lib64/vtk/vtk.jar
    sed -i \
      -e 's=.*vtkRenderingParallelLICJava.*==' \
      -e 's=.*vtkRenderingVolumeOpenGL2Java.*==' \
      -e 's=.*vtkRenderingVolumeOpenGLNewJava.*==' \
      -e 's=.*vtkRenderingExternalJava.*==' \
      -e 's=.*vtkRenderingParallelJava.*==' \
      -e 's=.*vtkRenderingOpenGL2Java.*==' \
      -e 's=.*vtkRenderingContextOpenGL2Java.*==' \
      -e 's=.*vtkRenderingFreeTypeOpenGL2Java.*==' \
      -e 's=.*vtkRenderingVolumeAMRJava.*==' \
      -e 's=.*vtkRenderingMatplotlibJava.*==' \
      -e 's=.*vtkParallelMPIJava.*==' \
      -e 's=.*vtkParallelMPI4PyJava.*==' \
      -e 's=.*vtkDomainsChemistryOpenGL2Java.*==' \
      -e 's=.*vtkAcceleratorsDaxJava.*==' \
      -e 's=.*vtkAcceleratorsPistonJava.*==' \
      -e 's=.*vtkInfovisParallelJava.*==' \
      -e 's=.*vtkInfovisBoostGraphAlgorithmsJava.*==' \
      -e 's=.*vtkWebGLExporterJava.*==' \
      -e 's=.*vtkWebCoreJava.*==' \
      -e 's=.*vtkIOParallelExodusJava.*==' \
      -e 's=.*vtkIOODBCJava.*==' \
      -e 's=.*vtkIOGDALJava.*==' \
      -e 's=.*vtkIOVPICJava.*==' \
      -e 's=.*vtkIOMPIImageJava.*==' \
      -e 's=.*vtkIOADIOSJava.*==' \
      -e 's=.*vtkIOGeoJSONJava.*==' \
      -e 's=.*vtkIOMPIParallelJava.*==' \
      -e 's=.*vtkIOXdmf2Java.*==' \
      -e 's=.*vtkIOMySQLJava.*==' \
      -e 's=.*vtkIOParallelLSDynaJava.*==' \
      -e 's=.*vtkIOXdmf3Java.*==' \
      -e 's=.*vtkIOFFMPEGJava.*==' \
      -e 's=.*vtkIOPostgreSQLJava.*==' \
      -e 's=.*vtkIOParallelNetCDFJava.*==' \
      -e 's=.*vtkPythonInterpreterJava.*==' \
      -e 's=.*vtkFiltersParallelFlowPathsJava.*==' \
      -e 's=.*vtkFiltersReebGraphJava.*==' \
      -e 's=.*vtkFiltersPythonJava.*==' \
      -e 's=.*vtkFiltersParallelGeometryJava.*==' \
      -e 's=.*vtkFiltersParallelStatisticsJava.*==' \
      -e 's=.*vtkFiltersParallelMPIJava.*==' \
      vtk/vtkNativeLibrary.java
    javac vtk/vtkNativeLibrary.java
    zip -r ../vtk6.jar *
    cd ../..
  9. That is it! You are ready to go:
    ./HELYX-OS.sh

Discussion thread where you can ask questions about these steps: Installing HelyxOS on 32 and 64bit Linux Distributions