OwnCloud: how to copy files “directly” on your server

owncloudOwnCloud is really a terrific program.
I use it for many purposes, among which, of course, storing files that I can access from anywhere.

I faced a simple, but not trivial issue : I had a lot of files to move to my Cloud repository, already available on my server, and I didn’t want to go through the web interface or the webdav access (unnecessary bandwidth usage). I simply wanted to “move” them from directories, using Unix command line interface.

This is not straight forward, but not difficult either. Here is how I proceeded:

Continue reading “OwnCloud: how to copy files “directly” on your server” »

Check site certificate validity

go_lockerI recently installed Let’s Encrypt mechanism on some of my sites.
Currently, the upgrade is not automatic (beta version + I personally need to be convinced 🙂 )

So, I need to monitor the validity dates of the certificates.
Here is a one-liner that do the job:

 echo | openssl s_client -connect <site>:<port>  2>/dev/null | openssl x509 -noout -enddate

Note that I added the initial “echo”, as the openssl is waiting for an input…

Output example:

$ echo | openssl s_client -connect raistlin.alphamaths.fr:443 2>/dev/null | openssl x509 -noout -enddate
 notAfter=Mar 5 16:30:49 2017 GMT

You can imagine any kind of monitoring / notification on top of that !

Update SmartMonTools Database on FreeNAS 0.7

Logo FreeNAS

 

I’ve been running a NAS at home for years.

I recently added 2 new 2TB disks, that were not recognized by SMART.

=== START OF INFORMATION SECTION ===
Device Model:     ST2000DM001-1ER164
Serial Number:    W4Z103H5
Firmware Version: CC25
User Capacity:    2,000,398,934,016 bytes
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   9
ATA Standard is:  Not recognized. Minor revision code: 0x001f
Local Time is:    Sun May 15 15:17:35 2016 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===

Here is how to solve this issue:

Continue reading “Update SmartMonTools Database on FreeNAS 0.7” »

France Television pluzz (replay) on Ubuntu

France Televisions

Several TV channels are offering off-line replay modes. That’s great for me, as I’m not spending my time reading TV programs enough in advance to record what I would like to see later… It happens often that someone talks to me about a TV program the day after its broadcast…
too late…
or not with “replay TV”.
Continue reading “France Television pluzz (replay) on Ubuntu” »

YouTube et Free

logo_freelogo_you_tubeUne fois n’est pas coutume, cet article sera dans la langue de Molière (enfin… ce que je sais faire de plus approchant !).
La raison en est très simple : cela ne concerne que les habitants de la France, utilisant l’opérateur Free pour avoir leur accès à Internet ! Alors, autant faire simple…

La problématique est la suivante: sachant que Free fait la guerre à Google, comment un Freenaute (utilisateur de Free) peut-il continuer à lire des vidéo sur YouTube avec des débits raisonnables ?
Voici ma solution (elle marche pour mes besoins, je n’ai jamais dit que c’était LA solution : utilisez ce que vous voulez…)
Continue reading “YouTube et Free” »