#Sat 01 Oct 2011 03:59:28 AM EDT, Joel Cugnoni www.caelinux.com # Note: I am Starting to remaster CAELinux 2011 # Starting point: a fresh install of CAELinux 2010, # installed broadcom STA wireless driver for my laptop (HP dv3). # Execute all updates (looooong, 479 updates). # update done, start installing Salome-Meca 2011.2 from Code-Aster.org sudo cp /tmp/SALOME-MECA-2011.2-LGPL-x86_64.tgz /opt cd /opt sudo tar zxvf SALOME-MECA-2011.2-LGPL-x86_64.tgz sudo rm SALOME-MECA-2011.2-LGPL-x86_64.tgz cd SALOME-MECA-2011.2-LGPL-x86_64/postinstall/ sudo python postinstall.py # update the CAELinux menu entry for Salome 2011 # install Aster 11.0 MPI/ACML from my previous 'custom' build cd /opt sudo tar jxvf /home/caelinux/Download/aster110.tar.bz2 # add links for eficas sudo ln -s /opt/aster110/public/eficas-6.3.0/eficasTk /opt/aster110/outils/eficasTk sudo ln -s /opt/aster110/public/eficas-6.3.0/eficasQt /opt/aster110/outils/eficasQt sudo ln -s /opt/aster110/public/eficas-6.3.0/eficas /opt/aster110/outils/eficas # checked config files: look OK # add ParMetis as on my reference machine cd /opt sudo tar zxvf /home/caelinux/Downloads/ParMetis-3.2.0.tgz # automatic configuration scripts updated # see /opt/caelinux/autoconfig*.sh # make aster config dir writeable to all (usefull to adjust settings and for autoconfig script) sudo chmod -R a+rwx /opt/aster110/etc/codeaster # install SYRTHES .. # syrthes 3.4.3 compile on another machine with MPI support (for saturne coupling), copy folder: cd /opt sudo tar zxvf /home/caelinux/Downloads/syrthes.tar.gz cd /opt/syrthes # delete old syrthes sudo rm -rf syrthes3.4.2 # !!!TODO: check syrthes and coupling with saturne # install SATURNE with MPI/ACML support and Syrthes coupling in /opt/saturne-2.0.2 (use system libs) ... cd /opt sudo tar zxvf /home/caelinux/Downloads/saturne/2.0.2.tar.gz sudo nano saturne-2.0.2/setenv-saturne.sh # edit to define path for code_saturne # updated /opt/.bashrc-Saturne, !!!TODO update wizard and add Saturne in base path in .bashrc-CAE # install prerequisite for saturne 2.0.2 sudo apt-get install python-qt4-dev #install ELMER: compiled from svn with MPI support and HYPRE/MUMPS/PETSC # first prerequisite (not all are necessary for runtime, but all are required to compile) sudo apt-get install libhypre* libmumps* libblacs-mpi1 libblacs-mpi-dev libscalapack-mpi1 libscalapack-mpi-dev sudo apt-get install libarpack2 libarpack2-dev libumfpac* libvtk5.4 libvtk5-dev libscotch-dev libmumps-dev libmumps-4.9.2 # force install if libvtk5-qt4-dev (duplicate file in two packages... but no problem) sudo apt-get install libvtk5-qt4-dev sudo dpkg -i --force-overwrite /var/cache/apt/archives/libvtk5-qt4-dev_5.4.2-6ubuntu1~tj~ppa2p_amd64.deb sudo apt-get install qt4-qmake qtcreator # update alternatives to use qt4 tools for item in `ls /usr/share/qt4/bin/`; do sudo update-alternatives --config $item ; done; # extract precompiled files cd /opt sudo tar zxvf /home/caelinux/Downloads/elmerCAE2011.tar.gz # remove old package sudo apt-get remove elmer elmer-common elmer-doc libelmer-dev libelmersolver-5.5.0 # !!!TODO: setup menu entry, clean /opt/elmer/Source directory # Thu 06 Oct 2011 07:49:29 AM EDT # install all equations in elmer GUI sudo cp /opt/elmer/Source/elmerfem/trunk/ElmerGUI/Application/edf-extra/* /opt/elmer/bin/edf/ # check ELMERGUI work well # Sun 09 Oct 2011 02:50:05 PM EDT # install openfoam 2.0.1 from deb packages #1st steps not needed... #VERS=`lsb_release -cs` #sudo sh -c "echo deb http://www.openfoam.com/download/ubuntu $VERS main > /etc/apt/sources.list.d/openfoam.list" sudo apt-get update sudo apt-get install openfoam201 sudo apt-get install paraviewopenfoam3101 # updated bashrc-OpenFOAM and menu links: source /opt/openfoam201/etc/bashrc # remove openfoam170/paraview380 sudo apt-get remove openfoam170 paraviewopenfoam380 # discretizer cd /opt sudo mv discretizer/ discretizer.old sudo cp /home/caelinux/Downloads/discretizer-64bit.tar.gz . sudo tar zxvf discretizer-64bit.tar.gz sudo rm discretizer-64bit.tar.gz # edit discretizer*.sh to source . /opt/.bashrc-CAE and . /opt/.bashrc-OpenFOAM sudo rm -rf discretizer.old # tested: runs well # IMPACT cd /opt sudo mv Impact Impact.old sudo unzip /home/caelinux/Downloads/Impact-0.7.06.037.zip sudo cp Impact.old/runImpact.sh Impact/ cd Impact sudo chmod a+x *.sh cd .. sudo chmod a+rw *.properties # engrid, build from source sudo apt-get remove engrid engrid-doc cd /opt sudo mkdir engrid cd engrid/ sudo mkdir build sudo chown caelinux:caelinux build cd build sudo cp /home/caelinux/Downloads/build.bash . sudo chmod a+x build.bash sudo -i source build.bash ubuntu # after finishing compiling: move the files from build dir in /opt/engrid for simpler access sudo ln -s /opt/engrid/run.bash /usr/bin/engrid # clean the install: remove *.o # testing: basic tutorial fails systematically... code is really really unusable yet, I dont know why, it seems that engrid is regressing every time I try it... # decision revert to ubuntu packages sudo rm -rf /opt/engrid/ sudo rm /usr/bin/engrid sudo apt-get install engrid engrid-doc # gerris: installed from official repository # updated /etc/apt/sources.list to have # deb http://download.opensuse.org/repositories/home:/popinet/xUbuntu_10.04 ./ # then did a system update to get the latest version. # calculix: no new version release since caelinux 2010. keep current ubuntu package # freecad: use the PPA freecad-dev for up to date version sudo apt-get remove freecad sudo add-apt-repository ppa:freecad-maintainers/freecad-dev sudo apt-get install freecad # updating scripts: # done .bashrc-CAE # done .bashrc-Saturne # done .bashrc-OpenFoam # done caelinux/*.py and *.sh # update file ownership sudo chown -R root:root aster110/ sudo chown -R root:root discretizer/ sudo chown -R root:root elmer/ sudo chown -R root:root SALOME-MECA-2011.2-LGPL-x86_64/ sudo chown -R root:root saturne-2.0.2/ # move old versions sudo mkdir /home/caelinux/Documents/oldies sudo mv saturne /home/caelinux/Documents/oldies/ sudo mv SALOME-MECA-2010.1-x86_64/ /home/caelinux/Documents/oldies/ sudo mv aster101 /home/caelinux/Documents/oldies/ sudo mv Impact.old/ /home/caelinux/Documents/oldies/ # clean some dirs: cd /opt/elmer/Source/elmerfem sudo rm -rf releases sudo find -iname *.o -exec rm {} \; # add openmodelica # add to /etc/apt/sources.list : deb http://build.openmodelica.org/apt release contrib # + add key sudo apt-get install openmodelica omlibrary-all # clean apt archive sudo mv /var/cache/apt/archives/*.deb /tmp/ # run remastersys to create DVD ISO # TOO large to fit on a DVD... need to clean more. # removed all .o from mbdyn-src , scalapack, cleaned saturne ... freed 600Mo # removed all files in /var/lib/ubiquity (if not it creates problem when installing remastered DVD) # try a new remaster.... # still too much # removed openmodelica.. # cleaned examples and .o files in /opt/aster, SALOME, elmer etc.. # remaster: still too much pffff # need to remove some "dev" libs # REMOVE those libs to free space: sudo apt-get remove libmumps-dev libmumps-seq-dev libblacs-mpi-dev libscalapack-mpi-dev sudo apt-get remove libvtk5-dev sudo apt-get remove libvtk5-qt4-dev # removed old Aster english docs and modified script to automatically request the english file on the website (you need an internet connexion though) # remaster: now exclude /var/log !! # does not go... # modified /usr/bin/remastersys to set file size limit to 4'200'000 kiB : now its ok, cool. # 1st successfull remaster #Tue 11 Oct 2011 08:05:50 AM EDT # customize menus and /opt/.bashrc* : now code-saturne is built against the system libs, so it does not require a specific shell, available directly from CAE terminal cd /home/caelinux sudo cp .config/menus/applications.menu /etc/skel/.config/menus/ sudo cp .local/share/applications/* /etc/skel/.local/share/applications/ sudo chown -R root:root /etc/skel/ # changed default pdf reader for eficas sudo nano eficas-6.3.0/Aster/editeur.ini # replace /usr/bin/xpdf by /opt/caelinux/OpenAsterDoc.py (allows to open the online english doc when a document is requested) # updated backgrounds to add a touch of customization (these are some pictures of around the place were I live, in the region of Chablais, Switzerland) # run remaster... # TODO: acoustics? lammps? abinitio? phase field? update docs/tutorials... # Tue 18 Oct 2011 04:47:09 PM EDT # developed a wizard for openFoam's simpleFoam solver. # installed in /opt/caelinux/SimpleFOAMWizard.py and templates: /opt/caelinux/Templates/simpleFoamTemplate # added menus for SimpleFOAM Wizard and Qcad sudo cp .config/menus/applications.menu /etc/skel/.config/menus/ sudo cp .local/share/applications/* /etc/skel/.local/share/applications/ sudo chown -R root:root /etc/skel/ #Wed 19 Oct 2011 06:08:48 PM EDT # fixed install issue with elmerpost: defined env variable # export ELMER_POST_HOME=$ELMER_HOME/elmer/share/elmerpost # in /opt/.bashrc-CAE and in ElmerGUI.sh, now works perfectly # fixed a small bug in SimpleFoamWizard: need to change boundary type to empty for symmetry faces.. done. works really well. Added scripts to easily manage jobs , # also in parallel. OpenFOAM cannot be made much simpler than that... Note to others: this little script could be expanded to other solvers... # tested CFD tools with the pipe problem (tutorials): OpenFOAM, Elmer and Saturne all work well even in MPI mode... great.. and quite fast !! # fixed CodeAster templates for the Code-Aster Wizard. Added templates for thermal analysis (steady/unsteady) and non-linear statics # Sun 23 Oct 2011 04:20:26 AM EDT # added OpenModelica to the distrib, finally there is enough space # created updated video tutorials for OpenFOAM and Saturne