Installation/Helyx-OS/Fedora

From OpenFOAMWiki
< Installation‎ | Helyx-OS
Revision as of 18:26, 1 December 2013 by Wyldckat (Talk | contribs)

1 Introduction

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

Note: Many of these instructions were copied (with permission) from the original HelyxOS (Unofficial instructions) written by User:Wyldckat.

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 Fedora 17

2.1.1 Fedora 17 32bit

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

Note: These instructions have been tested on Fedora 17 32bit (i686).

Steps:

  1. Install "vtk" + "vtk-java" + "OpenJDK":
    su -c 'yum install vtk vtk-java java-1.7.0-openjdk'
  2. Download the binary tarball for HelyxOS from the download section. You can also download the file through the command line, by running:
    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"
  3. Unpack the tarball for HelyxOS where you want to install HelyxOS:
    tar -xjf 20130715-Engys-HelyxOS-1.0.3-linux-x86_64-JRE.tar.bz2
  4. Go into the folder Engys/HelyxOS and remove the jre folder:
    cd Engys/HelyxOS
    rm -rf jre
  5. Get a local copy of the OpenJDK installation that Fedora has got:
    mkdir jre
    cp -r /usr/lib/jvm/jre-1.7.0-openjdk/* jre/
  6. Go into the subfolder v1.0.1:
    cd v1.0.1
  7. Edit the file bin/launcher.conf (e.g. with nano or gedit) and search for the following line:
    LD_LIBRARY_PATH="$HELYXHOME/ext:$HELYXHOME/../jre/lib/amd64/xawt:$LD_LIBRARY_PATH"

    Replace it with this one:

    LD_LIBRARY_PATH="$HELYXHOME/ext:$HELYXHOME/../jre/lib/i386:$HELYXHOME/../jre/lib/i386/xawt:$LD_LIBRARY_PATH"

    Save and close the file.

  8. Eliminate the contents of the ext subfolder:
    rm ext/*
  9. Create a symbolic link list to the actual VTK libraries:
    for a in /usr/lib/vtk/lib*.so.5.8.0; do
        b=${a%*.5.8.0}
        ln -s $a ext/${b##*/}
    done

    Or if you prefer a single line of code:

    for a in /usr/lib/vtk/lib*.so.5.8.0; do b=${a%*.5.8.0}; ln -s $a ext/${b##*/}; done 
     
  10. Remove the lib/vtk-5.10.jar and replace it with a symbolic link to Fedora's own build:
    rm lib/vtk-5.10.jar
    ln -s /usr/lib/vtk/java/vtk.jar lib/vtk-5.10.jar
  11. That is it! You are ready to go:
    ./helyxOS.sh

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


2.1.2 Fedora 17 64bit

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

Note: These instructions have been written for Fedora 17 64bit (x86_64).

Steps:

  1. Install "vtk" + "vtk-java" + "OpenJDK":
    su -c 'yum install vtk vtk-java java-1.7.0-openjdk'
  2. Download the binary tarball for HelyxOS from the download section. You can also download the file through the command line, by running:
    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"
  3. Unpack the tarball for HelyxOS where you want to install HelyxOS:
    tar -xjf 20130715-Engys-HelyxOS-1.0.3-linux-x86_64-JRE.tar.bz2
  4. Go into the folder Engys/HelyxOS and remove the jre folder:
    cd Engys/HelyxOS
    rm -rf jre
  5. Get a local copy of the OpenJDK installation that Fedora has got:
    mkdir jre
    cp -r /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/* jre/
  6. Go into the subfolder v1.0.1:
    cd v1.0.1
  7. Edit the file bin/launcher.conf (e.g. with nano or gedit) and search for the following line:
    LD_LIBRARY_PATH="$HELYXHOME/ext:$HELYXHOME/../jre/lib/amd64/xawt:$LD_LIBRARY_PATH"

    Replace it with this one:

    LD_LIBRARY_PATH="$HELYXHOME/ext:$HELYXHOME/../jre/lib/amd64:$HELYXHOME/../jre/lib/amd64/xawt:$LD_LIBRARY_PATH"

    Save and close the file.

  8. Eliminate the contents of the ext subfolder:
    rm ext/*
  9. Create a symbolic link list to the actual VTK libraries:
    for a in /usr/lib64/vtk/lib*.so.5.8.0; do
        b=${a%*.5.8.0}
        ln -s $a ext/${b##*/}
    done

    Or if you prefer a single line of code:

    for a in /usr/lib64/vtk/lib*.so.5.8.0; do b=${a%*.5.8.0}; ln -s $a ext/${b##*/}; done 
     
  10. Remove the lib/vtk-5.10.jar and replace it with a symbolic link to Fedora's own build:
    rm lib/vtk-5.10.jar
    ln -s /usr/lib64/vtk/java/vtk.jar lib/vtk-5.10.jar
  11. That is it! You are ready to go:
    ./helyxOS.sh

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


2.2 Fedora 18

2.2.1 Fedora 18 32bit

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

Note: These instructions have been tested on Fedora 18 32bit (i686).

Steps:

  1. Install "vtk" + "vtk-java" + "OpenJDK":
    su -c 'yum install vtk vtk-java java-1.7.0-openjdk'
  2. Download the binary tarball for HelyxOS from the download section. You can also download the file through the command line, by running:
    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"
  3. Unpack the tarball for HelyxOS where you want to install HelyxOS:
    tar -xjf 20130715-Engys-HelyxOS-1.0.3-linux-x86_64-JRE.tar.bz2
  4. Go into the folder Engys/HelyxOS and remove the jre folder:
    cd Engys/HelyxOS
    rm -rf jre
  5. Get a local copy of the OpenJDK installation that Fedora has got:
    mkdir jre
    cp -r /usr/lib/jvm/jre-1.7.0-openjdk/* jre/
  6. Go into the subfolder v1.0.1:
    cd v1.0.1
  7. Edit the file bin/launcher.conf (e.g. with nano or gedit) and search for the following line:
    LD_LIBRARY_PATH="$HELYXHOME/ext:$HELYXHOME/../jre/lib/amd64/xawt:$LD_LIBRARY_PATH"

    Replace it with this one:

    LD_LIBRARY_PATH="$HELYXHOME/ext:$HELYXHOME/../jre/lib/i386:$HELYXHOME/../jre/lib/i386/xawt:$LD_LIBRARY_PATH"

    Save and close the file.

  8. Eliminate the contents of the ext subfolder:
    rm ext/*
  9. Create a symbolic link list to the actual VTK libraries:
    for a in /usr/lib/vtk/lib*.so.5.10.0; do
        b=${a%*.5.10.0}
        ln -s $a ext/${b##*/}
    done

    Or if you prefer a single line of code:

    for a in /usr/lib/vtk/lib*.so.5.10.0; do b=${a%*.5.10.0}; ln -s $a ext/${b##*/}; done 
     
  10. Remove the lib/vtk-5.10.jar and replace it with a symbolic link to Fedora's own build:
    rm lib/vtk-5.10.jar
    ln -s /usr/lib/vtk/java/vtk.jar lib/vtk-5.10.jar
  11. That is it! You are ready to go:
    ./helyxOS.sh

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


2.2.2 Fedora 18 64bit

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

Note: These instructions have been written for Fedora 18 64bit (x86_64).

Steps:

  1. Install "vtk" + "vtk-java" + "OpenJDK":
    su -c 'yum install vtk vtk-java java-1.7.0-openjdk'
  2. Download the binary tarball for HelyxOS from the download section. You can also download the file through the command line, by running:
    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"
  3. Unpack the tarball for HelyxOS where you want to install HelyxOS:
    tar -xjf 20130715-Engys-HelyxOS-1.0.3-linux-x86_64-JRE.tar.bz2
  4. Go into the folder Engys/HelyxOS and remove the jre folder:
    cd Engys/HelyxOS
    rm -rf jre
  5. Get a local copy of the OpenJDK installation that Fedora has got:
    mkdir jre
    cp -r /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/* jre/
  6. Go into the subfolder v1.0.1:
    cd v1.0.1
  7. Edit the file bin/launcher.conf (e.g. with nano or gedit) and search for the following line:
    LD_LIBRARY_PATH="$HELYXHOME/ext:$HELYXHOME/../jre/lib/amd64/xawt:$LD_LIBRARY_PATH"

    Replace it with this one:

    LD_LIBRARY_PATH="$HELYXHOME/ext:$HELYXHOME/../jre/lib/amd64:$HELYXHOME/../jre/lib/amd64/xawt:$LD_LIBRARY_PATH"

    Save and close the file.

  8. Eliminate the contents of the ext subfolder:
    rm ext/*
  9. Create a symbolic link list to the actual VTK libraries:
    for a in /usr/lib64/vtk/lib*.so.5.10.0; do
        b=${a%*.5.10.0}
        ln -s $a ext/${b##*/}
    done

    Or if you prefer a single line of code:

    for a in /usr/lib64/vtk/lib*.so.5.10.0; do b=${a%*.5.10.0}; ln -s $a ext/${b##*/}; done 
     
  10. Remove the lib/vtk-5.10.jar and replace it with a symbolic link to Fedora's own build:
    rm lib/vtk-5.10.jar
    ln -s /usr/lib64/vtk/java/vtk.jar lib/vtk-5.10.jar
  11. That is it! You are ready to go:
    ./helyxOS.sh

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