Archivos de Categoría: Linux

Linux tips and tricks!

Renovar Certificado SSL

Ir a https://zerossl.com/ Click en Online Tools Click en Online START Copiar el contenido de account-key.txt y pegarlo en el recuerda de abajo! Copiar el contenido de domain-csr.txt y pegarlo en el recuerda de abajo! Luego hacer click en SIGUIENTE Descargar el archivo, en este caso para el dominio cockpit.krarup.cl Copiar el archivo descargado al servidor donde esta […]

How to Make WordPress Page Cache Plugins Fly With Nginx

You need to use WP Fastest Cache Plugin on WordPress As it turns out Nginx does in fact perform a similar file_exists check on every single request it handles. Most configurations have the following block. location / {  try_files $uri $uri/ /index.php?$args; } This essentially tells Nginx to serve the requested file if it exists, […]

Permanently add my SSH private key to Keychain on OSX

Store the key in the keychain ssh-add -K ~/.ssh/[your-private-key] Configure SSH to always use the keychain nano ~/.ssh/config   Host *   UseKeychain yes   AddKeysToAgent yes   IdentityFile ~/.ssh/id_rsa Change ~/.ssh/id_rsa to the actual filename of your private key. If you have other private keys in your ~.ssh directory, also add an IdentityFile line for […]

Perform SSH Login Without Password

Generate a key pair on the local server ssh-keygen   Output   Generating public/private rsa key pair. Enter file in which to save the key (/home/user/.ssh/id_rsa): Created directory ‘/home/user/.ssh’. Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/user/.ssh/id_rsa. Your public key has been saved in /home/user/.ssh/id_rsa.pub. The […]

How to Setup NFS Server

Install NFS server apt-get install nfs-kernel-server Create NFS directories mkdir /mnt/nfsshare Edit /etc/exports nano /etc/exports   (inside the exports file write this)   /mnt/nfsshare *(anonuid=501,insecure,all_squash,ro)  Save the changes sudo exportfs -ra Reload NFS Server systemctl reload nfs-server.service See the sharing path showmount -e localhost   Export list for localhost:   /mnt/nfsshare  * Mount NFS on […]