Archive for April, 2018

Nextcloud auf Debian 9 mit docker, ngnix und letsencrypt

Friday, April 20th, 2018

Ich bin dieser Anleitung gefolgt:

https://kopfkrieg.org/2017/06/15/nextcloud-docker-nginx/

Leider wurde meine bash-history nicht geschrieben, weil ich mich nicht ordentlich abgemeldet habe 🙁

Beim repo habe ich
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"

statt “ubuntu” verwendet.


docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
c79cf8de0944 nextcloud "/entrypoint.sh apac…" 2 hours ago Up 2 hours 127.0.0.1:32768->80/tcp nextcloud

docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
nextcloud latest 6cec9cff80aa 19 hours ago 593MB

Änderung in /etc/ngnix/sites-available/default gegenüber der o.g. Anleitung:

server {
listen 443 ssl http2; # IPv4, SSL/TLS, HTTP/2
listen [::]:443 ssl http2; # IPv6, SSL/TLS, HTTP/2
server_name cac1.lug-marl.de;
root /var/www/nextcloud;
index index.html;
# Let's Encrypt on port 443
# location ^~ /.well-known {
# root /var/www/letsencrypt;
# }
ssl on;
ssl_certificate /etc/letsencrypt/live/my.example.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/my.example.org/privkey.pem;

...

Hilft gegen Timeout:
/etc/ngnix/ngnix.conf

...
http {

##
# Basic Settings
##

sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
proxy_connect_timeout 600;

...

soweit so gut. läuft fluffig.
To Do:

* automatische umleitung http -> https
* caldav testen
* carddav testen
* postgres statt sqlite

text to speech

Monday, April 9th, 2018

I have a notebook with a broken display. I removed the display and want to use TTS instead. So on boot the machine can say things like “conected to Wifi SSID ….” and “my IP adress is …”

When I know the IP then I can connect via ssh or vnc. That might also be useful for Raspberry Pi. Another option can be a LCD connected via usb-to serial cable.

I found 3 solutions ; one for bash and one for python:

bash 1:
apt-get install libttspico-utils


A=`echo "hello world"` ; pico2wave --wave /tmp/Test.wav "$A" ; play /tmp/Test.wav; rm /tmp/Test.wav

bash 2:
apt-get install festival festvox-don


(echo "my IP adress is " ; hostname -I ) |festival --tts

python:

pip install pyttsx3

import pyttsx3;
engine = pyttsx3.init();
engine.say("hello world");
engine.runAndWait() ;