Setup monitoring system [Grafana+Prometheus] in RaspberryPi (Part1)

On this post I will explain how I set up a Grafana + Prometheus into a RaspberryPi with Raspbian. Here it’s a little design where explains how it is the implementation I did: 🔵 Server: RaspberryPi 3B+ Services to install(server side): Grafana Prometheus (Metric collector and database) Node Exporter (collector worker) 🟢 Clients: Raspberrypi Zero Fedora Workstation Debian VPS Services to install(client side): Node Exporter (collector worker). 🔵 Lets start from the server side. ...

2021-02-03 Â· map[name:Jose Castrillo]

Format & Mount an usb drive in GNU/Linux [terminal]

Format and Mount usb drive in GNU/Linux Tools/commands: lsblk parted df fdisk mkfs wipefs check if which blcok devices used by usb (sd) [df -h, lsblk] eg: a) $ sudo fdisk -l Disk /dev/sda: 7.2 GiB, 7736072192 bytes, 15109516 sectors Disk model: DataTraveler 3.0 Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x00000000 b) ...

2021-01-22 Â· map[name:Jose Castrillo]

Monitoring with Cockpit

On this post we are going to talk about cockpit how to monitoring and manage your GNU/Linux infrastructure. Based on the official description, Cockpit project is pretty easy to use, install and integrate, you can manage and add servers by ssh credentials to your dashboard, showing logs, monitoring containers(podman/docker), services running, disk usage, etc. I’ve using it around 1 year, the only thing I cannot see it’s an alert tool or event trigger, maybe for the next release; is developed by RH team and open source, it’s already integrated in some of the GNU/Linux distribution ( RH, debian, ubuntu, fedora, etc). ...

2021-01-11 Â· map[name:Jose Castrillo]

Open a Nextcloud's DB through a ssh connection

The following post explains how to open and connect your Nextcloud’s DB (MariaDB) by a ssh tunnel. Field description: Server side(GNULinux): Nextcloud: running on Docker-compose engine. OS: Debian with Docker compose installed. Database: MariaDB. Localhost side(GNULinux): OS: Fedora. CLient: Dbeader 7.2.5 Further information you can go to my docker compose Statement here. Edit your docker-compose.yml and add the “ports” key into the statement. $ nano docker-compose.yml ports: - 5555:3306 port: 5555 –> Host. port: 3306 –> Container. From the above the port “5555” it was used as example. ...

2020-11-23 Â· map[name:Jose Castrillo]

Nextcloud bot as Notification System

Following the last post, where I shared how to use Telegram’s bot; on this post I’m going to explain how implement it by Chat Nextcloud API. This post is useful for those have a Nexctcloud deployment running at home/cloud. Assuming you have already Nextcloud up and running, we can create the new user, that we are gonna use it as “BOT” we will need the chat room token and the “BOT” credentials. ...

Telegram Bot as Notification System

From one older post “Create a job using crontab” I used into my script the service exim4/ssmtp as mail server using gmail, but as we’re trying to walk away of Google’s jaw, I switched my notification engine to Telegram by an API service(bot)… almost it’s a step forward ! :) Requirement: Bot (Telegram) Web Browser Terminal(script) I will assume you have already set up your Bot on Telegram with BotFather When you have already created your Bot you can check by the API through a web browser ...

OpenVPN usando Raspberry Pi3 + Noip

Requisitos: RaspberryPi –> https://www.raspberrypi.org/downloads/raspberry-pi-os/ OpenVPN –> https://pivpn.io/ Cuenta abierta –> https://www.noip.com/ Una IP Estatica en tu Raspberry –> Router manual Router con capacidad de tunel VPN —> IPsec, PPTP, L2TP. Public IP —> https://www.whatismyip.net/ Pasos: 1. Crear DNS Record A en Noip Apunta tu IP publica Abre tu sesion con tus credenciales en Noip Dentro del Dashboard ve al apartado “Dynamic DNS > Create Hostname” rellena: hostname, ejemplo: test Domain, ejemplo: ddns.net IPv4 address: Tu IP publica Click en Crear ...

2020-07-15 Â· map[name:Jose Castrillo]

Setup Podman service in Silverblue by Systemd

Into my Devops learning path 👨‍💻 I decided to deploy a monitoring centre into my workstation where I could be able to watch my containers, resources, logs, etc and continue improving my knowledge, in my case I’m using Silverblue developed by Fedora so in here it’s a little bit different the setup; as monitoring tool I choose Cockpit for its great integration and support. Workstation: Silverblue 🖥️ Container engine: Podman ⚙️ Monitoring tool(app/service):Cockpit 📦 I splinted out the instructions in 4 simple parts: ...

2020-07-07 Â· map[name:Jose Castrillo]

How to set your Domain name in Linux

Resume to set a domain name in Linux concepts: FQDN (Fully Qualified Domain Name) eg: hostname = server1 // FQDN = server1.example.com 1. First add FQDN to your hostname in /etc/hosts file. # cat /etc/hosts 10.120.68.23 server1.example.com server1 confirm the FQDN issue the following command: # hostname -f server1.example.com 2.1. Configure domain name (Red Hat RHEL, Fedora and CentOS) From these path add the parameters needs vi /etc/sysconfig/network DOMAINNAME=<domainname> vi /etc/sysctl.conf kernel.domainname = <domainname> 2.2. figure domain name ( Ubuntu, Debian) #vi /etc/hostname server1 Then restart the service: ...

2020-05-31 Â· map[name:Jose Castrillo]

Add your app into the Gnome Desktop Menu

I’ve been looking for a encryptation app open source, to encrypt my files into Cloud with a touch of off-online control, and I found this nice app called Cryptomator. I downloaded the extension .Appimage, so the following instruction I will explain is how to set the .appimage into the app menu in Gnome. Download the Cryptomator by the link above. Set the permission below: #chmod a+x cryptomator-1.4.15-x86_64.AppImage The try to execute the file by a shell terminal or just double click on it ( to confirm it was downloaded fined) ...

2020-03-30 Â· map[name:Jose Castrillo]