mattizz'z weblog

Een rustpunt in barre tijden

Elske Dewall “heb het leven lief”

Leef als een kind van de wind en van de liefde
En herken de open blik in de ogen van een vreemde
Dans met de maan, sla je armen om de sterren
Ga je dromen achterna op de maat van de seizoenen

Heb het leven lief als de stormwind gromt en als de lente komt
En verberg je niet als de regen valt en als de donder knalt
Zing het hoogste lied, vlieg in vogelvlucht door de blauwe lucht
Heb het leven lief en wees niet bang, wees niet bang

Huil als het moet want je stikt in al je tranen
Maar ontwapen je verdriet met dezelfde overgave
Als waarmee je huilt, je kunt uit je as herrijzen
Het geluk van het moment zet een streep door het verleden

Heb het leven lief als de stormwind gromt en als de lente komt
En verberg je niet als de regen valt en als de donder knalt
Zing het hoogste lied, vlieg in vogelvlucht door de blauwe lucht
Heb het leven lief en wees niet bang, wees niet bang

Heb het leven lief als de stormwind gromt en als de lente komt
Heb het leven lief, pak de liefde vast en verlies haar niet
Heb het leven lief, met je ogen dicht, in het volle licht
Heb het leven lief en wees niet bang
Wees niet bang, wees niet bang

Creating a .strm file so Kodi can read it and stream your radio station live.
1. Go to local radio station that supports internet streaming and click on Listen live or whatever is related to listen live on your local station.
2. Right Click on background of the stream then click Inspect Element. @ 1:31
3. Find the stream source link within the html. Hit Ctrl + F on your keyboard and type “streamsrc” @ 1:47
4. Copy sreamsrc link [Ctrl + C] @ 2:44
5. Open Notepad and paste link [Ctrl + V] @ 3:06
6. Save file as an .strm file. @ 3:23
7. Open Kodi and add the folder that contains your stream files. @ 4:28

Voorbeeld, The Funk Radio op http://80.114.75.49:8000
Maak het bestand TheFunkStation.strm met de link hierboven als inhoud.
Maak op de Raspberry een map aan met de naam Live Radio Streams en zet het strm bestand daarin.
Voeg deze map als muziek bron / lokatie toe en geef deze in Kodi een naam.
De stream of streams zijn afspeelbaar.

Adding RSS media feeds
Adding RSS feeds to Kodi is as easy as adding most media sources, by selecting “add videos” or “add music” in the respective area of Kodi. Then type in the RSS feed address starting with rss://

https://seo-michael.co.uk/vpn-manager-for-openvpn-openelec-kodi

DMI-TCAT provides robust and reproducible data capture and analysis, and interlinks with existing analytical software. Analytical features are based on two main ideas:
captured datasets can be refined in different ways (search queries, exclusions, date range, etc.) and the resulting selections of tweets can be analyzed in various ways, mainly by outputting files in standard formats (CSV for tabular files and GEXF for network files)

https://wiki.digitalmethods.net/Dmi/ToolDmiTcat

Screenshots hier:
https://github.com/digitalmethodsinitiative/dmi-tcat/wiki

Resetting the TCAT Web login passwords
The TCAT Web logins are securely stored in an Apache htpasswd basic authentication file. To reset a password to a new value:
sudo htpasswd /etc/apache2/tcat.htpasswd admin
Substitute “admin” for the login username (the default logins are named “admin” and “tcat”).

Werkt niet met Ubuntu versies > 14.04

Bleek in webmin na een nieuwe installatie Mysql server niet toegankelijk omdat het wachtwoord onbekend was.
Het commando hieronder loste dit probleem op:

sudo dpkg-reconfigure mysql-server-5…. (afhankelijk van de versie, TAB laat na de 5. de juiste versie zien)

Geldig SSL Certificaat installeren in Synology DSM 6.0

Let op: www.startssl.com certificaten zijn tijdelijk ingetrokken door Mozilla Firefox en Chrome

Memories

2 comments

screenshot_839.jpg

GEORGE MICHAEL “Going To A Town”

[Originally by Rufus Wainwright]

I’m going to a town that has already been burned down
I’m going to a place that is already been disgraced
I’m gonna see some folks who have already been let down
I’m so tired of America

I’m gonna make it up for all of the Sunday Times
I’m gonna make it up for all of the nursery rhymes
They never really seem to want to tell the truth
I’m so tired of you America

Making my own way home
Ain’t gonna be alone
I got a life to lead America
I got a life to lead

Tell me do you really think you go to hell for having loved?
Tell me and not for thinking every thing that you’ve done is good
(I really need to know)
After soaking the body of Jesus Christ in blood
I’m so tired of America
(I really need to know)

I may just never see you again or might as well
You took advantage of a world that loved you well
I’m going to a town that has already been burned down
I’m so tired of you America

Making my own way home
Ain’t gonna be alone
I got a life to lead America
I got a life to lead
I got a soul to feed
I got a dream to heed
And that’s all I need

Making my own way home
Ain’t gonna be alone
I’m going to a town that has already been burned down

Na lang testen een werkende installatie van Airtime, een Open Source programma om een radio station te starten (https://www.sourcefabric.org/en/airtime)

Volg deze instructies waarbij het script airtime-full-install in het pad airtime-airtime-2.5.1-ga/install_full/ubuntu/airtime-full-install moet worden vervangen zoals verderop is aangegeven.

1. Download and install Raspbian Jessie with PIXEL
(https://www.raspberrypi.org/downloads/raspbian)

2. Install Airtime
The “easy” installer appears to only work on x86 chipsets, and the 2.5.2 installer is completely broken. So we installed using the 2.5.1 source…

Update your system first:
sudo apt-get update
sudo apt-get upgrade
(might be wise to reboot at this point to load kernel updates, etc)

Download and extract the source:
wget https://github.com/sourcefabric/Airtime/archive/airtime-2.5.1-ga.tar.gz
tar -xvzf airtime-2.5.1-ga.tar.gz

3. Belangrijk: Vervang de inhoud van airtime-full-install in airtime-airtime-2.5.1-ga/install_full/ubuntu/airtime-full-install door:

airtime-full-install.txt

4. Then run
sudo ~/airtime-airtime-2.5.1-ga/install_full/debian/airtime-full-install
Install icecast, etc.

Als alles goed is gegaan is dit de uitkomst:
*** Verifying your system environment, running airtime-check-system ***
AIRTIME_STATUS_URL = http://localhost:80/api/status/format/json/api_key/%%api_key%%
AIRTIME_SERVER_RESPONDING = OK
KERNEL_VERSION = 4.4.34-v7+
MACHINE_ARCHITECTURE = armv7l
TOTAL_MEMORY_MBYTES = 947728
TOTAL_SWAP_MBYTES = 102396
AIRTIME_VERSION = 2.5.1
OS = Raspbian GNU/Linux 8.0 (jessie) armv7l
CPU = ARMv7 Processor rev 4 (v7l)
WEB_SERVER = Apache/2.4.10 (Raspbian)
PLAYOUT_ENGINE_PROCESS_ID = 19027
PLAYOUT_ENGINE_RUNNING_SECONDS = 11
PLAYOUT_ENGINE_MEM_PERC = 1.5%
PLAYOUT_ENGINE_CPU_PERC = 0.0%
LIQUIDSOAP_PROCESS_ID = 18981
LIQUIDSOAP_RUNNING_SECONDS = 12
LIQUIDSOAP_MEM_PERC = 2.1%
LIQUIDSOAP_CPU_PERC = 1.9%
MEDIA_MONITOR_PROCESS_ID = 18849
MEDIA_MONITOR_RUNNING_SECONDS = 15
MEDIA_MONITOR_MEM_PERC = 1.4%
MEDIA_MONITOR_CPU_PERC = 0.0%
— Your installation of Airtime looks OK!

Mocht de installatie fouten (FAILED) bevatten run de airtime installatie opnieuw:
cd airtime-airtime-2.5.1-ga/install_minimal
sudo ./airtime-install

If all is good you should now have a running version of Airtime and be able to browse to the Pi’s address and log in with admin (standard password admin)

5. Change the recording source
By default airtime uses ecasound to record from the default soundcard. This means that we can’t record streams from other sources. A simple fix is to edit
/usr/lib/airtime/pypo/bin/recorder.py (around line 91) with :

# command = “ecasound -f:%s,%s,%s -i alsa -o %s,%s000 -t:%s” % \
# (ss, c, sr, filepath, br, length)
command = “/usr/bin/sox -t ogg http://localhost:8000/airtime.ogg -C6 %s trim 0 %s” % \
(filepath, length)

6. You will need to recompile the python script:
cd /usr/lib/airtime/pypo/bin/
sudo rm recorder.pyc
sudo python
import recorder.py
Ctrl-d to quit (there may be some messages about missing files. Ignore)

7. Reboot and then install sox
sudo apt-get install sox
sudo apt-get install libsox-fmt-all

Hierna blijken zowel Icecast op http://192.168.178….:8000 als Airtime op http://192.168.178…. te werken. Van de instructies hieronder alleen nog oggfwd sudo apt-get install oggfwd uitgevoerd.

8. (niet uitgevoerd) So now if you set a show to record from line in it will actually record anything that is coming in on the master source. If you do want to record from a sound card as well you can set up something like this:

/etc/init/icecastsource.conf:
description “Pipe soundcard input to icecast”

start on runlevel [2345]
stop on runlevel [!2345]

respawn

exec /usr/bin/sox -q -r 44100 -t alsa plughw:0,0 -t ogg -C6 – | /usr/bin/oggfwd -p -n “Studio” localhost 8000 hackme /master
post-stop exec sleep 10

(you will need to install oggfwd sudo apt-get install oggfwd)

9. (Niet uitgevoerd) Apply some updates
If you come across any bugs or issues you may want to check on code updates since 2.5.1. We had an issue when setting shows up to rebroadcast that was fixed downstream
Replaced
/usr/share/airtime/application/forms/AddShowWhen.php
With the version from Git
https://github.com/sourcefabric/airtime/blob/2cdad4932afd095322fe72fd7ac340495452782c/airtime_mvc/application/forms/AddShowWhen.php

Een bug is het verwijderen van een show, dit is alleen mogelijk door het volgende commando uit te voeren:
sudo -u postgres psql airtime -c “delete from cc_show”

Stel de Airtime stream in zoals hieronder is weergegeven:

screenshot_811.jpg
Let op, bij ‘Additional Options’ moet het wachtwoord van de icecast2 server worden ingevoerd (username oningevuld laten)

Share your Raspberry Pi’s files and folders across a network

You can share your Raspberry Pi’s files and folders across a network using a piece of software called Samba, a Linux implementation of the Server Message Block protocol. You’ll need to install this software:
$ sudo apt-get install samba samba-common-bin

Samba contains the SMB protocol, support for the Windows naming service (WINS), and support for joining Windows workgroups. A workgroup is a group of computers on a local network that can access eachother’s folders. Samba-common-bin contains a tool that you’ll need to register users with Samba. Once these packages have finished installing, you need to edit the Samba configuration file:
$ sudo leafpad /etc/samba/smb.conf &

Find the entries for workgroup and wins support, and set them up as follows:
workgroup = your_workgroup_name
wins support = yes

The name of the workgroup can be anything you want, as long as it only contains alphabetical characters, and it matches the name of the workgroup that you want to join.

You also need to add the following section of code to smb.conf:

[pihome]
comment= Pi Home
path=/home/pi
browseable=Yes
writeable=Yes
only guest=no
create mask=0777
directory mask=0777
public=no

Scroll down smb.conf until you see a section called Share Definitions, and add this code there. The path should point to the drive or folder that you want to share. I’ve set ‘only guest’ and ‘public’ to ‘no’ so that Samba prompts for a password when I visit the folder that I’ve shared. This means that when I’m using a Windows PC, I can login to the shared folders on my Pi, and I’ll have the same read/write permissions that user pi has.

Now type this command in a terminal, and enter pi’s password twice:
$ smbpasswd -a pi

If you have a PC or laptop connected to your workgroup, you should be able to see your Raspberry Pi in Windows Explorer under Network.