From 622c6ba333ca0ecc153410686522335bf6c6903f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Tue, 7 Apr 2015 17:58:41 +0200 Subject: [PATCH] Initial commit using the python script to convert the files --- README_initial_setup.md | 5 ++++- fs/opt/groomer/groomer.sh | 2 +- fs/opt/groomer/init.sh | 6 ++++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/README_initial_setup.md b/README_initial_setup.md index bd44a94..1377530 100644 --- a/README_initial_setup.md +++ b/README_initial_setup.md @@ -162,8 +162,9 @@ Final image specifics * Install repencencies required by the project ``` - apt-get install libreoffice p7zip-full libfontforge1 timidity freepats pmount ntfs-3g + apt-get install libreoffice p7zip-full libfontforge1 timidity freepats pmount ntfs-3g unoconv python-pip dpkg -i *.deb + pip install twiggy python-magic ``` * Create the user, make Libreoffice and mtab working on a RO filesystem @@ -172,6 +173,8 @@ Final image specifics useradd -m kitten pushd /home/kitten ln -s /tmp/libreoffice + mkdir .config/ + ln -s /tmp/libreoffice_config .config/libreoffice popd chown -R kitten:kitten /home/kitten ln -s /proc/mounts /etc/mtab diff --git a/fs/opt/groomer/groomer.sh b/fs/opt/groomer/groomer.sh index 1cd59d0..7e96459 100755 --- a/fs/opt/groomer/groomer.sh +++ b/fs/opt/groomer/groomer.sh @@ -102,7 +102,7 @@ do LOGFILE="${LOGS}/processing.txt" echo "==== Starting processing of /media/${SRC} to ${target_dir}. ====" >> ${LOGFILE} - main ${target_dir} || true + python ./functions.py --source /media/${SRC} --destination ${target_dir} || true echo "==== Done with /media/${SRC} to ${target_dir}. ====" >> ${LOGFILE} ls -lR "${target_dir}" diff --git a/fs/opt/groomer/init.sh b/fs/opt/groomer/init.sh index 20aa658..821b8dc 100755 --- a/fs/opt/groomer/init.sh +++ b/fs/opt/groomer/init.sh @@ -26,6 +26,12 @@ echo $! > /tmp/music.pid # com::sun::star::uno::RuntimeException mkdir /tmp/libreoffice chown -R kitten:kitten /tmp/libreoffice +# Avoid: +# Failed to connect to /usr/lib/libreoffice/program/soffice.bin (pid=2455) in 6 seconds. +# Connector : couldn't connect to socket (Success) +# Error: Unable to connect or start own listener. Aborting. +mkdir /tmp/libreoffice_config +chown -R kitten:kitten /tmp/libreoffice_config su ${USERNAME} -c ./groomer.sh