Subdomein (https) hosten op Raspberry Pi

      Geen reacties op Subdomein (https) hosten op Raspberry Pi

Het (ssh secure) opzetten van een subdomein op een Raspberry Pi:
Nadat de Raspberry Pi is voorzien van een website of zoals bij het domein mattizz.nl, spotweb als sub-domein spotweb.mattizz.nl is het aan te bevelen dit subdomein secure (https) te maken. Dit kan worden gedaan als “expand” van het domein https://www.mattizz.nl.
Op deze webpagina is de werkende instructie beschreven, hieronder de instructies die mbv ssl in een shell / terminal kunnen worden gebruikt. Hierbij wordt ervanuit gegaan dat er al een Letsencrypt / CertBot certificaat is geïnstalleerd op het root domein (hier mattizz.nl)

Add subdomain names to a existing Letsencrypt certificate
Install the Apache server certbot connector:
sudo apt install python3-certbot-apache

Then add the subdomain names to the existing domain’s Letsencrypt certificate:
sudo certbot –apache –expand -d subdomein.domein.com

Om de werking te testen doe het volgende:
sudo certbot renew –dry-run

Om het certificaat te vernieuwen:
sudo certbot renew
sudo systemctl restart apache2.service


Ervan uitgaande dat er geen firewall op de Raspberry draait, dient om https werkend te krijgen poort 443 in de router te worden opengezet naar het interne IP-adres van de Raspberry Pi.
Ook kan het zijn dat het ” sudo certbot renew –dry-run” een verbindingsfout toont, de oplossing is om ook poort 80 te port-forwarden naar het interne IP-adres van de Raspberry Pi.

Meer informatie over CertBot hier
“Make sure you renew the certificates at least once in 3 months“. Het is daarom aan te raden een cronjob te maken, uitleg hierover staat op http://www.cronjob.nl
Een Cronjob is overigens makkelijk in te stellen dmv webmin. Webmin is makkelijk te installeren op een Raspberry Pi. Kijk daarvoor op deze website voor werkende instructies.
De cronjob pagina in Webmin ziet eruit zoals hieronder:


Kraak en Smaak – Pleasure Centre [Full Album]

      Geen reacties op Kraak en Smaak – Pleasure Centre [Full Album]

Wellicht de beste band van Nederland. Kraak en Smaak:

Kraak & Smaak is een Nederlands trio uit Leiden bestaande uit Mark Kneppers, Oscar de Jong en Wim Plug. Ze maken sinds 2003 muziek in de genres electronica, disco, house en funk, en hebben tot nu toe vijf albums uitgebracht. Als dj en live act dragen ze bij aan nationale en internationale muziekfestivals. Ze hebben in de loop der tijd getoerd in Europa, Australië en de Verenigde Staten.

Meer informatie over Kraak & Smaak op wikipedia
Naar Spotify hier: This is Kraak & Smaak
Op Youtube


Alle Raspberry Pi Images

      Geen reacties op Alle Raspberry Pi Images

Soms is het handiger om een voorgeïnstalleerd image op een Raspberry Pi te zetten. Op deze website zijn ze verzameld: https://www.tech-knowhow.com

This page attempts to list all the Raspberry Pi disk images known to currently exist from around the web, providing direct links to download pages and further information.
If you notice anything missing, please list it in the comments below and I will add it.If you are the owner of any of these images and wish to make a correction, remove it from this list or otherwise, please either add a comment below, or direct message me @marshalleq on twitter.
If you wish to write one of these images to a micro SD card for your Raspberry Pi, please see our image writing guide here.




Een makkelijke manier om een image op een micro SD kaartje te schrijven is om Belena Etcher te gebruiken. Kijk hiervoor op https://www.balena.io/etcher/


Radio Bergeijk Podcast

      Geen reacties op Radio Bergeijk Podcast
Beluister alle Podcasts vanaf 2001 op de Website van Radio Bergeijk

phpMyAdmin inlogpagina blokkeren

      Geen reacties op phpMyAdmin inlogpagina blokkeren

Om op Ubuntu je phpMyAdmin inlogpagina voor de buitenwereld te blokkeren en alleen vanaf je thuis ip-adres toegankelijk te maken voer het volgende in de terminal uit:

SSH naar je server:
sudo ssh root@[Server_IP_adres]

Ga met nano of vim naar het bestand /etc/phpmyadmin/apache.conf
# sudo vim /etc/phpmyadmin/apache.conf

Voeg hier onderaan het volgende toe:

# Disallow web access to directories that don’t need it
<Directory /usr/share/phpmyadmin/templates>
    Require all denied
</Directory>
<Directory /usr/share/phpmyadmin/libraries>
    Require all denied
</Directory>
<Directory /usr/share/phpmyadmin/setup/lib>
    Require all denied
</Directory>
<Directory “/usr/share/phpmyadmin”>
Order Deny,Allow
Deny from all
# Require all denied
Allow from [IP-adres via www.watismijnip.nl]
</Directory>



Snap! – Mary Had A Little Boy [Maestro Mix]

Snap! is een eurodance- en rap-groep die in de eerste helft van de jaren negentig wereldwijd enkele grote hits scoorde. De groep had een aantal veranderingen in bezetting door de jaren heen, maar was het meest succesvol in de begintijd met rapper Turbo B, die meerapte op nummers als “The Power” en “Rhythm Is a Dancer”. Lees meer op https://nl.wikipedia.org/wiki/Snap!

MySQL root wachtwoord reset

      Geen reacties op MySQL root wachtwoord reset

Met dank aan deze website op https://linuxconfig.org, een werkende oplossing om het MySQL root wachtwoord weer werkend te krijgen op phpMyAdmin.

Instructions

Reset by using mysql_secure_installation

The simplest approach to reset MySQL database root password is to execute mysql_secure_installation program and when prompted entering your new root MySQL password:

$ sudo mysql_secure_installation
….
Please set the password for root here.
New password:
Re-enter new password:

Reset by using skip-grant-tables

If from some reason the above method fails follow the step below to use --skip-grant-tables to reset MySQL root password.

Let’s start by stopping the currently running MySQL database:

$ sudo service mysql stop

Next, create a /var/run/mysqld directory to be used by MySQL process to store and access socket file:

$ sudo mkdir -p /var/run/mysqld
$ sudo chown mysql:mysql /var/run/mysqld

Once ready manually start MySQL with the following linux command and options:

$ sudo /usr/sbin/mysqld –skip-grant-tables –skip-networking &
$ [1] 2708

Confirm that the process is running as expected:

$ jobs
[1]+ Running sudo /usr/sbin/mysqld –skip-grant-tables
–skip-networking &

At this stage we are able to access MySQL database without password:

$ mysql -u root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.7.20-1ubuntu1 (Ubuntu)

Copyright (c) 2000, 2017, Oracle and/or its affiliates.
All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the
current input statement.

mysql>

Using the MySQL session first flush privileges:

mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)

Next, reset root password. The following commands will reset MySQL root password to 
linuxconfig.org: (= het nieuwe wachtwoord)

mysql> USE mysql;
Database changed
mysql> UPDATE user SET authentication_string=PASSWORD (“linuxconfig.org”) WHERE User=’root’;
Query OK, 0 rows affected, 1 warning (0.00 sec)
Rows matched: 1 Changed: 0 Warnings: 1
mysql> UPDATE user SET plugin=”mysql_native_password”
WHERE User=’root’;
Query OK, 0 rows affected (0.00 sec)
Rows matched: 1 Changed: 0 Warnings: 0

Quit MySQL session:

mysql> quit
Bye

Gracefully terminate current mysqld process:

$ sudo pkill mysqld
linuxconfig@ubuntu:~$ jobs
[1]+ Done sudo /usr/sbin/mysqld –skip-grant-tables –skip-networking

Lastly, start MYSQL database:

$ sudo service mysql start

If all went well you should now be able to login to your MySQL database with a root password:

$ mysql -u root –password=linuxconfig.org
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.7.20-1ubuntu1 (Ubuntu)
Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.
mysql>


Opm: Het kan zijn dat phpMyAdmin opnieuw moet worden geïnstalleerd, tijdens deze installatie wordt gevraagd of de bestaande databases verwijderd moeten worden, pas daar dus op als je dat niet wil.
Eerst sudo apt-get remove phpmyadmin
Daarna
sudo apt-get install phpmyadmin php-mbstring php-gettext -y


Subsonic Mattizz muziekstation

      Geen reacties op Subsonic Mattizz muziekstation

Subsonic is een serverapplicatie die zich vooral richt op muziek. Om met Subsonic aan de slag te gaan, is een speciale server of nas aan te raden. Je kunt daarvoor ook Windows als server gebruiken of het eerst op Windows installeren om te testen.

Subsonic heeft veel muziekspecifieke functies. Zo werkt het met veel mediaspelers, zoals Winamp, iTunes, VLC en Windows Media Player. Met de handige ingebouwde transcoding engine kun je lossy en lossless formaten tijdens het luisteren omzetten naar mp3’tjes. Ondersteunt je afspeelapparaat geen flac-bestanden, dan kun je er in ieder geval in mp3-formaat naar luisteren. Voor een aantal functies van Subsonic heb je de Premium-variant nodig.
Zie voor verdere uitleg in installatiehandleiding dit artikel op computertotaal.nl

De interface van Subsonic ziet er uit zoals hieronder, de getoonde server draait op mattizz.nl en is gratis en voor niets te bezoeken en de muziek en Podcasts te beluisteren via deze link:
http://subsonic.mattizz.nl, waarbij je automatisch als gast inlogt via deze optie:
http://subsonic.mattizz.nl:4040/login.view?user=gast&password=gast