February 26, 2018

Hola Que Tal

Example image

plorenzo.es server setup


Upgrade to Debian 9 from Debian 8

How to upgrade Debian 8 Jessie to Debian 9 Stretch - LinuxConfig.org

Clouding Server setup

Reset machine Clouding panel

apt-get update apt-get upgrade

Fix Perl Lang annoying problem

https://stackoverflow.com/questions/2499794/how-to-fix-a-locale-setting-warning-from-perl (local machine) sudo vim /etc/ssh/sshdconfig comentar LANG LC*

Update to Debian 9

How to upgrade from Debian Linux 8 Jessie to Debian 9 Stretch using command line over ssh based session – nixCraft vim /etc/apt/sources.list Replace jessie by stretch apt-get update apt-get upgrade apt-get dist-upgrade export LC_ALL=“en_US.UTF-8” vim /etc/default/locale Add LC_ALL=“en_US.UTF-8” LANG=“en_US.UTF-8”

Set up user

adduser pale visudo add pale ALL=(ALL:ALL) ALL logout log in as pale

Set up ssh pubkey

Use Public Key Authentication with SSH https://www.digitalocean.com/community/tutorials/how-to-configure-ssh-key-based-authentication-on-a-linux-server

sudo vim /etc/ssh/sshd_config comment PermitRootLogin yes (local) ssh-keygen -b 4096 (local) mv gigas paleBlog.pem .ssh (server) mkdir .ssh (local) scp ~/.ssh/paleBlog.pem.pub plorenzo@plorenzo.gal:/home/plorenzo/.ssh/ (server) echo cat ~/.ssh/paleBlog.pem.pub >> ~/.ssh/authorized_keys

sudo nano /etc/ssh/sshd_config PasswordAuthentication no PubkeyAuthentication yes sudo service ssh restart

To login -> ssh -i .ssh/gigas pale@plorenzo.gal

Install Go

Getting Started - The Go Programming Language

Install Caddy from source

GitHub - mholt/caddy: Fast, cross-platform HTTP/2 web server with automatic HTTPS

Get source go get github.com/mholt/caddy/caddy and then run go get github.com/caddyserver/builds Now cd to $GOPATH/src/github.com/mholt/caddy/caddy and run go run build.go Then make sure the caddy binary is in your PATH.


How To Install Prometheus on Ubuntu 16.04 | DigitalOcean


How to Install and Secure Grafana on Ubuntu 16.04 | DigitalOcean

Add caddy-prometheus plugin

GitHub - miekg/caddy-prometheus: Prometheus metrics middleware for caddy

Build Caddy with plugin

Plugging in Plugins Yourself · mholt/caddy Wiki · GitHub