Skip to content

Commit

Permalink
Merge branch 'feature_ck_config_improvements' (ausgegebene Version)
Browse files Browse the repository at this point in the history
  • Loading branch information
cknoll committed Oct 19, 2017
2 parents 3b6583d + 2f20f95 commit e340e87
Show file tree
Hide file tree
Showing 108 changed files with 5,289 additions and 271 deletions.
7 changes: 1 addition & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@

FSFW-Uni-Stick/config/packages.chroot/*

FSFW-Uni-Stick/config/includes.chroot/home/user/*

doc/html/*.html

manual-installed-packages/*
images

.lock
13 changes: 3 additions & 10 deletions FSFW-Uni-Stick/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,15 @@ binary/
.build/
*.log

auto/config

cache/

chroot/
chroot.packages.*
chroot.files

config/binary
config/bootstrap
config/chroot
config/common
config/source
config/build
config/package-lists
config/hooks
config/includes.chroot/var
config/includes.chroot/etc/skel
config/*

source/
source*.iso
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,46 @@ sudo pip3 install jupyter


echo "# # # Jupyter installation finished"
echo "installing further useful python packages"

# render markdown
sudo pip3 install grip
sudo pip3 install sphinx_rtd_theme

# be able to test whether the hooks was executed via python3 -c "import ipydex"
sudo pip3 install ipydex


cd /tmp

echo "# # # !!!!!!!!!!!"
echo "Dirty hack: install a r-studio via hook (because packages.chroot does not work)"

DOWNLOAD="wget -nv -T10 --no-http-keep-alive --show-progress -c"
${DOWNLOAD} https://download1.rstudio.org/rstudio-1.1.383-amd64.deb
sudo dpkg -i rstudio-1.1.383-amd64.deb

# Problem: R-Studio associates itself with .md files.

# when writing this code I am not sure whether
# /home/user/.local/share/applications/mimeapps.list already exists
# if it exists it was maybe affected by the installation of r-studio
# overwrite it with the file mimeapps.list_save which should then also exists
# if mimeapps.list does not exist it will be created later when the danger is over

# BTW i am interested which user runs this script
echo ${whoami}

if [ -e /home/user/.local/share/applications/mimeapps.list ]
then
echo "mimeapps.list already existed. -> replacing now"
# save the bad one for reference
sudo mv /home/user/.local/share/applications/mimeapps.list /home/user/.local/share/applications/mimeapps.list_original

# copy desired file to correct name
sudo cp /home/user/.local/share/applications/mimeapps.list_save /home/user/.local/share/applications/mimeapps.list
else
echo "nothint to do with mimeapps.list"
fi


55 changes: 45 additions & 10 deletions FSFW-Uni-Stick/fsfw-uni-stick_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,20 @@
# FILE: fsfw-uni-stick_build.sh
# USAGE: ./fsfw-uni-stick_build.sh - ( ausführen im live-build-Verzeichnis )
# DESCRIPTION: erstellen des FSFW-Uni-Stick
#
# VERSION: 0.0.1
# OPTIONS: $1 = DEVICE=/dev/sd... Gerät/USB-Stick der benutzt werden soll
# Nutzung variabler configurationen möglich
# alle Schritte in diesem Skript können auch einzeln ausgeführt werden
#
# VERSION: 0.0.3
# OPTIONS: TUDO: = DEVICE=/dev/sd... Gerät/USB-Stick der benutzt werden soll
# (zu formatierendes Gerät/Device .z.B.: /dev/sdb )
# $1 TUDO: -c (--config) build-configuration .z.B.: FSFW-Uni-Stick_KDE_jessie_amd64 (default)
#
# NOTES: für - live-build - Debian jessie / Debian stretch - LANG=de_DE.UTF-8
#
#
# AUTHOR: Gerd Göhler, [email protected]
# CREATED: 2016-10-21
# REVISION:
# REVISION: 2017-08-13
# Lizenz: CC BY-NC-SA 3.0 DE - https://creativecommons.org/licenses/by-nc-sa/3.0/de/#
# https://creativecommons.org/licenses/by-nc-sa/3.0/de/legalcode
#==========================================
Expand All @@ -31,6 +35,17 @@
#
#

FSFW_UNI_STICK_CONFIG_DEFAULT="FSFW-Uni-Stick_KDE_jessie_amd64"

FSFW_UNI_STICK_CONFIG=$1
echo "FSFW-Uni-Stick config: ${FSFW_UNI_STICK_CONFIG} "

# TUDO: testen ob Verzeichnis und config vorhanden existieren

if [[ -z ${FSFW_UNI_STICK_CONFIG} ]]; then
FSFW_UNI_STICK_CONFIG=${FSFW_UNI_STICK_CONFIG_DEFAULT}
echo "FSFW-Uni-Stick config: ${FSFW_UNI_STICK_CONFIG} "
fi


# Der eigentliche Skript-Inhalt liegt innerhalb der folgenden Funktion
Expand All @@ -51,14 +66,24 @@ fi
# live-build Umgebung aufräumen
sudo lb clean

# System Configuration einspielen
../tools/fsfw-uni-stick_system-config.sh "${FSFW_UNI_STICK_CONFIG}"


# Paketlisten generieren
./auto/paketliste
if [ -e ../config/${FSFW_UNI_STICK_CONFIG}/paketliste ]; then
echo " ./auto/paketliste $(cat ../config/${FSFW_UNI_STICK_CONFIG}/paketliste) wird ausgeführt "
./auto/paketliste $(cat ../config/${FSFW_UNI_STICK_CONFIG}/paketliste)
else
./auto/paketliste
echo " ./auto/paketliste wird ausgeführt "
fi

# extra Pakete holen

# TODO:
#script extra-install_paket.sh # Paketlisten nach extra-instell Pakenten durchsuchen und download nach config/packages.chroot/*
../tools/extra-install_paket.sh
../tools/extra-install_paket.sh "${FSFW_UNI_STICK_CONFIG}"

# Doku bauen und verteilen

Expand All @@ -67,10 +92,11 @@ sudo lb clean
../tools/doku_create.sh

# FSFW user config erstellen
# TODO:
#script fsfw-user_config.sh # user config aus doc/src_user-config/* --> config/includes.chroot/home/user/ --> config/includes.chroot/etc/...
# git-versionsnummer / link --> config/includes.chroot/home/user/.version_fsfw-uni-stick
../tools/fsfw-user_config.sh
# in multiconfig neue Aufteilung der user configuration -- alt ../tools/fsfw-user_config.sh (erstellt nur noch fsfw-user spezifische Teile)

echo " ../tools/fsfw-uni-stick_user-config.sh "${FSFW_UNI_STICK_CONFIG}" ausführen "

../tools/fsfw-uni-stick_user-config.sh "${FSFW_UNI_STICK_CONFIG}"

# live-build config generieren -- optionaler Zwischenschritt um config manuell anzupassen - wird sonst von "lb build" mit erledigt
# sudo lb config
Expand All @@ -83,6 +109,15 @@ sudo lb build
echo "Benutzerberechtigung ändern "
sudo chown ${USER}:${USER} ./FSFW-Uni-Stick*.iso

# Image ins Verzeichnis images verschieben

if [ ! -d ../images/ ]; then
mkdir -p ../images/
echo " Verzeichnis images erstellt."
fi

mv ./FSFW-Uni-Stick*.iso ../images/

# TODO:
# USB-Stick erstellen - Speichergerät partitionieren,formatieren - FSFW_UNI_Stick_*.iso schreiben
# script mit $1 starten oder später abfrage ??
Expand Down
3 changes: 3 additions & 0 deletions config/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*/system_config/packages.chroot/*
FSFW-Uni-Stick_Test_*

Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
set -e

DISTRIBUTION=jessie
DESKTOP=KDE
FSFW_UNI_STICK_VERSION="$(echo "$(../tools/calc-version-number.sh)")"

lb config noauto \
Expand Down Expand Up @@ -30,7 +31,7 @@ lb config noauto \
--binary-filesystem ext2 \
--initsystem systemd \
--initramfs live-boot \
--image-name FSFW-Uni-Stick_${FSFW_UNI_STICK_VERSION}_${DISTRIBUTION} \
--image-name FSFW-Uni-Stick_${FSFW_UNI_STICK_VERSION}_${DESKTOP}_${DISTRIBUTION} \
--apt-source-archives false \
--apt-recommends false \
--cache-packages true \
Expand All @@ -47,7 +48,7 @@ nbranch=${nbranch%% *}

if [[ ! "${nbranch}" = "master" ]]; then
lb config noauto \
--image-name FSFW-Uni-Stick_${FSFW_UNI_STICK_VERSION}__${nbranch}__${DISTRIBUTION} \
--image-name FSFW-Uni-Stick_${FSFW_UNI_STICK_VERSION}__${nbranch}__${DESKTOP}_${DISTRIBUTION} \
"${@}"
fi

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
## Accessibility

- :x: dasher -- Gestengesteuerte Eingabe
- :x: ebook-speaker
- :+1: eflite -- ein auf Festival-Lite basierender Sprachserver für Emacsspeak
- :o: :-1: # espeakup -- Sprachsynthese mit Schwierigkeiten
- :x: flite -- Laufzeit-Sprachsynthese auf Basis von Festival-Lite
- :o: libttspico-utils -- Sprachsysthese aus dem Non-Free- Repo
- :x: jovie -- Sprachausgabe
- :x: espeak -- Sprachausgabe
- :o: mbrola -- Sprachsynthese (unfrei)
- :o: mbrola-de4
- :o: mbrola-de5
- :o: mbrola-de6
- :o: mbrola-de7
- :o: mbrola-us1
- :o: mbrola-us2
- :o: mbrola-us3
- :x: pocketsphinx -- Spracherkennung


- ### Konsole

- :x: brltty -- Braille-Tool
- :x: console-braille -- Fonts and keymaps for reading/typing unicode braille
- :x: brltty-espeak --
- :x: brltty-flite --
- :x: brltty-speechd --
- :x: speech-dispatcher -- Common interface to speech synthesizers
- :x: speech-dispatcher-festival
- :x: freetts -- FLite basierte Sprachsynthese
- :x: gocr -- Texterkennung (OCR)
- :x: tesseract-ocr -- OCR als Vorstufe für Textausgabe per Sprache oder Braillezeile
- :x: tesseract-ocr-deu -- OCR-Trainingsdaten für Deutsch


- ### KDE-Desktop -- für den KDE-Desktop

- :x: kaccessible -- Barrierereduzierung für gehandicapte Anwender
- :x: kvkbd -- Oncreen-Keyboard
- :x: kmouth -- Frontend für Sprachausgabe


- ### Gnome-Desktop & Derivate

- :x: gespeaker -- GTK+ Frontend für espeaker und mbrola
- :x: gnome-accessibility-themes -- Barrierereduzierung für Anwender mit Handicap
- :x: gnome-orca -- Programmierbarer Screenreader
Loading

0 comments on commit e340e87

Please sign in to comment.