Webmin op Ubuntu server

      Geen reacties op Webmin op Ubuntu server

Om een grafische interface te kunnen gebruiken en zo een Ubuntu server makkelijker te kunnen
beheren volg de onderstaande instructies:

Add Webmin Ubuntu repository

Open the /etc/apt/sources.list file to manually add the repository link to the list. In order to
open the sources.list file, run the following command as root in your Terminal:

$ sudo vi /etc/apt/sources.list

This will open the file in the Nano editor. Move to the end of the file and paste the following line in
order to add the Webmin repository to the list:

deb http://download.webmin.com/download/repository sarge contrib

The next step is to get the Webmin PGP key for the newly added repository. This way the system will
trust this repository. Run the following command to do so:

$ wget http://www.webmin.com/jcameron-key.asc

Then add the key through the following command:

$ sudo apt-key add jcameron-key.asc

Installing Webmin on Ubuntu

Once the repository has been added and recognized, let us update the list of packages on our
system through the following command:

$ sudo apt update

Finally, install the Webmin application through the following command:

$ sudo apt install webmin

Hierna kan er ingelogd worden op de interface door te gaan naar https://[server ip-adres of hostnaam]:10000

Voorbeeld van het resultaat is hieronder getoond:


Certbot Get your site on Lock https://

      Geen reacties op Certbot Get your site on Lock https://

What’s Certbot?
Certbot is a free, open source software tool for automatically using Let’s Encrypt certificates on manually-administrated websites to enable HTTPS.
Certbot is made by the Electronic Frontier Foundation (EFF), a 501(c)3 nonprofit based in San Francisco, CA, that defends digital privacy, free speech, and innovation.
Kortom, met Certbot kun je simpel een website voorzien van een gratis (Let’s Encrypt) certificaat en secure (https) maken. Hieronder de installatie instructies die te kiezen zijn voor alle webserver software en besturingssystemen. Als voorbeeld voor Apache op Ubuntu 18.04 LTS Bionic:
1. SSH into the server
SSH into the server running your HTTP website as a user with sudo privileges.
2. Install snapd
You’ll need to install snapd and make sure you follow any instructions to enable classic snap support.Follow these instructions on snapcraft’s site to install snapd.
install snapd
3. Remove any Certbot OS packages
If you have any Certbot packages installed using an OS package manager like apt, dnf, or yum, you should remove them before installing the Certbot snap to ensure that when you run the command certbot the snap is used rather than the installation from your OS package manager. The exact command to do this depends on your OS, but common examples are sudo apt-get remove certbot, sudo dnf remove certbot, or sudo yum remove certbot.
4. Install Certbot
Run this command on the command line on the machine to install Certbot.
sudo snap install –classic certbot

5. Choose how you’d like to run Certbot Either get and install your certificates…
Run this command to get a certificate and have Certbot edit your Apache configuration automatically to serve it, turning on HTTPS access in a single step.
sudo certbot –apache
Or, just get a certificate
If you’re feeling more conservative and would like to make the changes to your Apache configuration by hand, run this command.
sudo certbot certonly –apache
6. Test automatic renewal
The Certbot packages on your system come with a cron job or systemd timer that will renew your certificates automatically before they expire. You will not need to run Certbot again, unless you change your configuration. You can test automatic renewal for your certificates by running this command:
sudo certbot renew –dry-run

The command to renew certbot is installed in one of the following locations:
/etc/crontab/
/etc/cron./
systemctl list-timers

7. Confirm that Certbot worked
To confirm that your site is set up properly, visit https://yourwebsite.com/ in your browser and look for the lock icon in the URL bar. If you want to check that you have the top-of-the-line installation, you can head to https://www.ssllabs.com/ssltest
Of controleer de goede werking op https://www.sslcheck.nl/mattizz.nl


De slimme meter live uitlezen mbv een Raspberry Pi 3 Model B+

Op deze website www.ztatz.nl wordt uitgelegd hoe je vrij simpel mbv een zogenaamde P1 kabel en een Raspberry Pi 3 Model B+ je slimme meter live kunt uitlezen en over langere periode kunt zien hoeveel stroom en gas je wanneer verbruikt en hoeveel stroom je opwekt met je zonnepanelen.
Er is ook een weer-API (openweathermap.org) aan gekoppeld zodat te zien is wat de buitentemperatuur was in relatie met aan het gasverbruik.

Aangezien ik nog een ongebruikte oude Samsung Galaxy Tab 4 (7.0) had liggen, deze in de meterkast gemonteerd zodat de actuele meterstanden altijd beschikbaar zijn.
Hieronder een foto hoe de Samsung Tab in de meterkast is aangebracht:

Het is makkelijk als de RPI een vast ip-adres in het netwerk heeft. Dat is simpel als volgt uit te voeren waarbij alleen de wlan0 instellingen hoeven worden ingegeven als de RPI alleen draadloos wordt gebruikt. Om het interne ip-adres vast te stellen om via ssh in te loggen kan gebruik gemaakt worden van de app “fing”:
Edit the file /etc/dhcpcd.conf as follows:
Type sudo nano /etc/dhcpcd.conf at the command prompt.
Scroll to the bottom of the script, and add the following lines:
interface eth0 (als voorbeeld, verschilt per interne netwerk)
static ip_address=192.168.178.8/24
static routers=192.168.178.1
static domain_name_servers=192.168.178.1

interface wlan0 (als voorbeeld, verschilt per interne netwerk)
static ip_address=192.168.178.8/24
static routers=192.168.178.1
static domain_name_servers=192.168.178.1

Vergeet niet het p1mon ssh (root) wachtwoord te veranderen met het commando sudo passwd p1mon. Ook is het belangrijk dat de verwijzing naar de nameserver goed is ingesteld. Dit is aan te passen met het commando sudo vim /etc/resolv.conf.

Op de interface zie je links (geel) het actuele verbruik, rechts (groen) is de actuele opbrengst van de zonnepanelen.
Hieronder een voorbeeld van de toepassing van p1mon op een oude iPad:


Domeinnaam instellen (Apache2 en WordPress)

      Geen reacties op Domeinnaam instellen (Apache2 en WordPress)

Om een server IP-adres te voorzien van een domeinnaam:

  • Vanuit het beheer van de domeinnaam het A-record laten verwijzen naar het IP-adres van de server waar de WordPress website draait:
  • Via SSH verbinden met de server (Ubuntu 18.04 LTS 64bit, Apache/2.4.29,  WordPress 5.5.1) en gaan naar het pad /etc/apache2/sites-enabled en het bestand wordpress.conf als volgt aanpassen:

    /etc/apache2/sites-enabled# sudo vim wordpress.conf

    <VirtualHost *:80>
    ServerAdmin admin@example.com
    DocumentRoot /home/mattizzn/public_html/
    ServerName mattizz.nl
    ServerAlias mattizz.nl
    <Directory /home/mattizzn/public_html/>
    Options +FollowSymlinks
    AllowOverride All
    Require all granted
    </Directory>
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    </VirtualHost>

    <VirtualHost *:80>
    ServerAdmin admin@example.com
    DocumentRoot /home/mattizzn/public_html/
    ServerName mattizz.nl
    ServerAlias www.mattizz.nl
    <Directory /home/mattizzn/public_html/>
    Options +FollowSymlinks
    AllowOverride All
    Require all granted
    </Directory>
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
    </VirtualHost>
  • Om te voorkomen dat de website ook op het IP-adres te bezoeken is moet het .htaccess bestand op het pad /var/www/html/wordpress worden aangepast. Het .htaccess bestand is zichtbaar te maken met het commando # ls -a
    Voeg aan dit bestand de volgende regels toe met het commando: sudo vim .htaccess 

    RewriteCond %{HTTP_HOST} ^85\.214\.108\.24$
    RewriteRule ^(.*)$ https://www.mattizz.nl/$1 [L,R=301]

    Als nu de website bezocht wordt dmv het IP-adres, verschijnt automatisch de domeinnaam in de browser.
  • Bij mijn WordPress instellingen verwezen alle interne linkjes nog naar het IP-adres ipv de domeinnaam en kan bij het WordPress beheer (Dashboard) bij Instellingen –> Algemeen de URL aangepast worden zoals hieronder is te zien:

Om tenslotte alle (ook database) verwijzingen op de website naar de goede domeinnaam te zetten, gebruik de WordPress plugin “Better Search Replace” https://wordpress.org/plugins/better-search-replace


George Michael Memories

      Geen reacties op George Michael Memories

Ik kan zeggen dat ik George Michael live heb zien optreden.
Wikipedia: https://nl.wikipedia.org/wiki/George_Michael
Met uiteraard een paar van zijn nummers:

Going To A Town (I’m so tired of America)

John and Elvis are dead

Understand

Older

The first time i saw your face

Wild is the wind

Love Me, Love Me, Love Me, Love Me
Say you do
Let me fly away with you
For my love is like the wind
And wild is the wind
Wild is the wind

Give me more than one caress
Satisfy this hungriness
Let the wind blow through your heart
Oh wild is the wind
Wild is the wind

You touch me
I hear the sound of mandolins
You kiss me
With your kiss my life begins
You’re spring to me
All things to me
Don’t you know
You’re life itself!

Like the leaf
Clings to the tree
Oh my darling cling to me
For we’re like creatures of the wind
And wild is the wind
Wild is the wind

You have been loved

She takes the back road and the lane
Past the school that has not changed
In all this time
She thinks of when the boy was young
All the battles she had won
Just to give him life

That man
She loved that man
For all his life
But now we meet to take him flowers
And only god knows why

For what’s the use in pressing palms
When children fade in mother’s arms
It’s a cruel world, we’ve so much to lose
And what we have to learn, we rarely choose

So if it’s god who took her son
He cannot be the one living in her mind

Take care my love, she said
Don’t think that god is dead
Take care my love, she said

You have been loved

Gladys Knight & The Pips: “The Way We Were – Try To Remember” (1974)

Hey, you know, everybody’s talkin’ about the good old days, right
Everybody, the good old days, the good old days
Well, let’s talk about the good old days
Come to think of it as, as bad as we think they are
These will become the good old days for our children, hum
Why don’t we, ah
Try to remember that kind of september, when
When life was slow and oh, so mellow, hum
Try to remember, and if you remember then follow
Oh, why does it seem the past is always better
We look back and think
The winters were warmer
The grass was greener
The skies were bluer
And smiles were bright
Can it be that it was all so simple then
Or has time rewritten every line
And if we had the chance to do it all again
Tell me
Would we
Could we
Memories, like the corners of my mind
Misty watercolor memories
Of the way we were
Scattered pictures of the smiles we left behind
Smiles we gave to one another
For the way we were
Hahaa
Oh, can it be that it was all so simple then
Or has time rewritten every line
And if we had the chance to do it all again
Tell me, haha
Would we
Could we
Memories, may be beautiful and yet
What’s too painful to remember
We simply choose to forget
So it’s the laughter we will remember
Whenever we remember
The way we were
Remember, the way we were

Lees meer hier over Gladys Knight & The Pips


Wikipedia vraagt donaties

      Geen reacties op Wikipedia vraagt donaties

Dit bericht verschijnt als je Wikipedia bezoekt:

Inmiddels heb ik een donatie gedaan van 20 Euro omdat Wikipedia een bron van informatie is die het waard is te steunen:

I feel so lucky to get to be the person to thank you for your € 20.80 one-time gift, on behalf of a world of people seeking free knowledge.
I used to try to guess what motivated you to give, but the longer I do this work, the more I realize I can’t put your curiosity in a box. There is no one singular experience of Wikipedia. Curiosity is as diverse as we all are, and it looks a little different for each of us.
When you use Wikipedia next, I hope you feel that it belongs to you. Because without you, and without the millions of people who come back to us every day, we would be nothing.
Thank you for giving Wikipedia shape, and purpose, and momentum. Thank you for fitting us into your life.

With immense gratitude,

Katherine 

Katherine Maher, Executive Director
Wikimedia Foundation


Jan Akkerman en Kaz Lux: Tranquillizer

      Geen reacties op Jan Akkerman en Kaz Lux: Tranquillizer

Gouwe ouwe afkomstig van het muziekalbum Eli van Jan Akkerman en Kaz Lux uit 1976

Eli is een muziekalbum van Jan Akkerman en Kaz Lux uit 1976. In 1995 en 2002 verscheen het album op cd en daarnaast verschenen versies voor andere landen waaronder japan.

Naast beide artiesten speelden ook andere geroutineerde artiesten mee, zoals Margriet EshuisMaggie MacNeal en Patricia Paay in het achtergrondkoor. Verder waren dat Jasper van ’t Hof en Rick van der Linden op toetsen, Warwick Reading op basgitaar, Nippy Noya met percussie en Pierre van der Linden en Richard de Bois op drums. De Bois produceerde het met Akkerman.

De songteksten zijn afkomstig van Lux die ze baseerde op een verhaal dat hij had geschreven. Hij schreef ze tijdens een toer met Focus in het Verenigde Koninkrijk. Het Album stond negen weken in de Nederlandse Album Top 100 met nummer 4 als hoogste notering.

Om het album in Engeland te promoten gingen de heren in maart 1977 op tournee met Kayak. Het Britse publiek wilde voornamelijk Focusnummers horen, terwijl Akkerman die juist niet wilde spelen; de concertreeks werd voortijdig afgeblazen.

Afkomstig van: https://nl.wikipedia.org/wiki/Eli_(Akkerman/Lux