Archivo de la categoría: linux

ERR_TOO_MANY_REDIRECTS nginx apache

After you add a new domain to Cloudflare, your visitors’ browsers might display ERR_TOO_MANY_REDIRECTS or The page isn’t redirecting properly errors. This error occurs when visitors get stuck in a redirect loop. To solve this issue, either remove HTTPS redirects from your origin server or update your SSL/TLS Encryption Mode to be Full or higher (requires an SSL certificate configured at your origin… Leer más »

Comando para eliminar caracteres corruptos en UTF-8 bash

Limpiar archivo.csv de caracteres corruptos en UTF-8 Si archivo.csv se supone que está en UTF-8 pero tiene errores, puedes limpiarlo así: 1. Borrar caracteres corruptos en UTF-8: Esto: 2. Verifica que el archivo limpio esté en UTF-8: Debe mostrar algo como: 3. Opcional: Eliminar saltos de línea estilo Windows (CRLF) Esto convierte las líneas al… Leer más »

Ansible Collection – devsec.hardening

https://github.com/dev-sec/ansible-collection-hardening/tree/master This collection provides battle tested hardening for: Linux operating systems:CentOS 9Rocky Linux 8/9Debian 11/12Ubuntu 20.04/22.04/24.04Amazon Linux (some roles supported)Arch Linux (some roles supported)Fedora 39/40 (some roles supported)Suse Tumbleweed (some roles supported)MySQLMariaDB >= 5.5.65, >= 10.1.45, >= 10.3.17MySQL >= 5.7.31, >= 8.0.3Nginx 1.0.16 or laterOpenSSH 5.3 and later

How to fix a locale setting warning from Perl

perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = «en_US.UTF-8» are supported and installed on your system. perl: warning: Falling back to the standard locale («C»). Adding the following to /etc/environment fixed the problem for me on Debian and Ubuntu (of course, modify to match… Leer más »

How to Install XRDP on CentOS and RedHat Linux 8/7

Introduction Xrdp is an open-source and freely available Remote Desktop Protocol application which allows remote sessions of Linux Server from Windows machines. It will accept remote connections from rdesktop, freerdp and other remote desktop clients. This article guides, installation and configuration steps of xrdp on CentOS/RedHat Linux 8/7. Step 1 : Update Server Node #… Leer más »

 rsync runs by using a lock file crontab

You can ensure that only one instance of that rsync runs by using a lock file. util-linux includes a file locking wrapper called flock, which you can use in your crontab like so:

VMWare: Workstation arrancar desde USB

VMWare Workstation: Arrancar desde USB: Pasos a seguir: 1- Conectamos el USB físico en el equipo donde está instalado VMWare Workstation.2- Descargamos Plop Boot Manager, de la siguiente URL:https://www.plop.at/en/bootmanager/download.html 3- Descomprimimos el fichero ZIP que nos hemos descargado y localizamos el fichero ISO para el arranque: plpbt.iso4- VMWare Workstation: Deberemos crear una máquina virtual para pruebas con como mínimo, el siguiente… Leer más »