Initial commit.

This commit is contained in:
Cyteen 2018-05-08 18:10:12 +01:00
parent 0e04167a66
commit b765721c4b
1 changed files with 110 additions and 0 deletions

110
020_freecad.sh Normal file
View File

@ -0,0 +1,110 @@
# https://github.com/FreeCAD/FreeCAD/releases/
# debian is still on 0.16 but 0.17 is needed for current workbenches
# If building, use cmake gui for configuring the build.
sudo apt-get install -y cmake-qt-gui
# the ppa has calculix-ccx eigen3 freecad-daily (0.18~beta1) opencascade
# ppa:freecad-maintainers/freecad-daily
# sudo add-apt-repository ppa:freecad-maintainers/freecad-daily
# sudo apt-get update
# YOUR_UBUNTU_VERSION_HERE=bionic # 18.04 buster/sid
YOUR_UBUNTU_VERSION_HERE=artful # 17.10 stretch/sid
# YOUR_UBUNTU_VERSION_HERE=xenial # 16.04 stretch/sid
# YOUR_UBUNTU_VERSION_HERE=trusty # 14.04 jessie/sid
sudo bash -c "cat > /etc/apt/sources.list-available/freecad-daily.list" <<EOF
deb http://ppa.launchpad.net/freecad-maintainers/freecad-daily/ubuntu $YOUR_UBUNTU_VERSION_HERE main
deb-src http://ppa.launchpad.net/freecad-maintainers/freecad-daily/ubuntu $YOUR_UBUNTU_VERSION_HERE main
EOF
sudo ln -s /etc/apt/sources.list-available/freecad-daily.list /etc/apt/sources.list.d/freecad-daily.list
# Launchpad PPA for FreeCAD maintainers
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 19BB5BCA
sudo bash -c "cat > /etc/apt/sources.list-available/freecad-stable.list" <<EOF
deb http://ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu $YOUR_UBUNTU_VERSION_HERE main
deb-src http://ppa.launchpad.net/freecad-maintainers/freecad-stable/ubuntu $YOUR_UBUNTU_VERSION_HERE main
EOF
sudo ln -s /etc/apt/sources.list-available/freecad-stable.list /etc/apt/sources.list.d/freecad-stable.list
sudo apt-get update
# Signing key: 1024R/83193AA3B52FF6FCF10A1BBF005EAE8119BB5BCA (What is this?)
# Fingerprint: 83193AA3B52FF6FCF10A1BBF005EAE8119BB5BCA
sudo apt-get install -y freecad calculix-ccx
#sudo ln -s /etc/apt/sources.list-available/devuan-ceres.list /etc/apt/sources.list.d/devuan-ceres.list
#sudo apt-get update
#sudo apt-get install -y -t unstable netgen
cd /usr/src
#sudo apt-get source netgen
#http://http.debian.net/debian/pool/main/n/netgen/netgen_4.9.13.dfsg-11.dsc
#http://http.debian.net/debian/pool/main/n/netgen/netgen_4.9.13.dfsg.orig.tar.gz
#http://http.debian.net/debian/pool/main/n/netgen/netgen_4.9.13.dfsg-11.debian.tar.xz
sudo gbp import-dsc -v --allow-unauthenticated http://http.debian.net/debian/pool/main/n/netgen/netgen_4.9.13.dfsg-11.dsc
cd netgen
sudo gbp dch --snapshot --auto
sudo gbp buildpackage --git-pbuilder --git-arch=amd64 --git-dist=ascii --git-ignore-branch
#sudo gbp buildpackage --git-pbuilder --git-arch=amd64 --git-dist=ascii --no-pristine-tar
#sudo gbp import-orig --upstream-version=0.1.6 --pristine-tar https://sigrok.org/download/source/sigrok-firmware-fx2lafw/sigrok-firmware-fx2lafw-0.1.6.tar.gz
#sudo gbp buildpackage --git-pbuilder --git-arch=amd64 --git-dist=ascii --othermirror="deb [trusted=yes] file:///srv/pbuilder/deps ./" --distribution=ascii --architecture=amd64
# Builds the folloeing:
#libnglib-4.9.13_4.9.13.dfsg-11_amd64.deb
#libnglib-4.9.13-dbgsym_4.9.13.dfsg-11_amd64.deb
#libnglib-dev_4.9.13.dfsg-11_amd64.deb
#netgen_4.9.13.dfsg-11_amd64.deb
#netgen-dbgsym_4.9.13.dfsg-11_amd64.deb
#netgen-doc_4.9.13.dfsg-11_all.deb
#netgen-headers_4.9.13.dfsg-11_amd64.deb
# The would be installed by apt-get install -f later but let be explicite.
sudo apt-get install \
tix \
liboce-ocaf-lite10 \
liboce-ocaf10 \
liboce-visualization10 \
libtogl1
sudo dpkg -i ../libnglib-4.9.13_4.9.13.dfsg-11_amd64.deb && dpkg -i ../netgen_4.9.13.dfsg-11_amd64.deb
sudo apt-get -y install -f
#sudo rm /etc/apt/sources.list.d/devuan-ceres.list && apt-get update
# opencascade in experimental
# https://ftp-master.debian.org/new/opencascade_7.2.0+dfsg1-1.html
# https://github.com/qingfengxia/FenicsSolver
# Openfoam CFD
# https://github.com/qingfengxia/Cfd
# https://forum.freecadweb.org/viewtopic.php?t=21576
# https://opensimsa.github.io/training.htmlGnuplot, Paraview and OpenFOAM
# https://github.com/jaheyns/CfdOF
# Requirements:
# * Latest release version of FreeCAD (0.17)
# ** or latest development version (0.18 prerelease; requires git commit 12539 or later)
# * OpenFOAM (versions 4.x and 5.x tested; other versions may work.) ascii has 4.1+dfsg1-1
# * Paraview - ascii has 5.1.2+dfsg1-2
# * GMSH (version 2.13 or later) ascii has 2.15
# * cfMesh (version 1.1.2 updated to compile with OpenFOAM v5.x)
# OpenFOAM 5.0 is a major new (july 2017) release of OpenFOAM, accompanied by ParaView 5.4.0
wget -c https://datapacket.dl.sourceforge.net/project/cfmesh-cfdof/cfmesh-cfdof.zip
# Available as addon in freecad interface
# https://github.com/jaheyns/CfdFoam
sudo apt-get install -y python-gmsh gmsh
sudo apt-get install -y gnuplot paraview openfoam