Enable IPv6 on a Scaleway VPS After a Reboot

If you have a Scaleway VPS with IPv6 enabled, you may have noticed that after a reboot the public (global) IPv6 address is not present. So after each reboot you may need to run this bash script to re-enabled the public IPv6 address (inet6 2001:*): #!/bin/bash # Load all IPv6 setting from the metadata service […]

Get Public IPv6 Address on Debian Linux

To get the public IPv6 address on a Debian server, type: /sbin/ip -6 addr | grep inet6/sbin/ip -6 addr | grep inet6 You should get something like this: inet6 ::1/128 scope host inet6 2001:123:456:55f::1/64 scope global inet6 fe80::62eb:69ff:fed2:d2a6/64 scope linkinet6 ::1/128 scope host inet6 2001:123:456:55f::1/64 scope global inet6 fe80::62eb:69ff:fed2:d2a6/64 scope link The line that contains […]

View All Symlinks in a Directory Tree on Linux

This will recursively traverse the /path/to/folder and list only symbolic links: ls -lR /path/to/folder | grep ^lls -lR /path/to/folder | grep ^l If your intention is to follow the symbolic links too, use find: find -L /path/to/folder -xtype lfind -L /path/to/folder -xtype l

/etc/init.d/redis-server on Debian 9.5 Stretch

Content of /etc/init.d/redis-server on Debian 9.5 Stretch: #! /bin/sh ### BEGIN INIT INFO # Provides: redis-server # Required-Start: $syslog $remote_fs # Required-Stop: $syslog $remote_fs # Should-Start: $local_fs # Should-Stop: $local_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: redis-server – Persistent key-value db # Description: redis-server – Persistent key-value db […]

View Last Time a File was Opened on Debian

You can use “atime” to get last time a file or directory was opened: ls -l –time=atimels -l –time=atime To test it just try to “cat” a file: cat /tmp/file.logcat /tmp/file.log Then type: ls -l –time=atime /tmp/file.logls -l –time=atime /tmp/file.log

Fix PHP7.0-FPM Installation (Sury.org Packages)

If you get these errors with apt-get update: Err:52 https://packages.sury.org/php stretch Release server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none Reading package lists… Done E: The repository ‘https://packages.sury.org/php stretch Release’ does no longer have a Release file. N: Updating from such a repository can’t be done securely, and is therefore disabled by default. N: See […]

Server Certificate Verification failed CAfile (apt-get update)

If you get this error message after apt-get update: Err:52 https://packages.sury.org/php stretch Release server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none Reading package lists… Done E: The repository ‘https://packages.sury.org/php stretch Release’ does no longer have a Release file. N: Updating from such a repository can’t be done securely, and is therefore disabled by default. N: […]

PDFYeah: Online Cloud-Based PDF Converter

We discovered a new free online PDF converter that allows you to quickly convert files to and from PDF online, from your web browser. It offers 27 free online PDF tools that can be used to compress PDF documents, convert images to PDF (and vice versa), convert files (i.e TXT, RTF, DOC, XLS, ODT) to […]