Skip to content
Main Menu
  • Home
  • Blog
  • Contact

DevOps Fu

Tips and Tricks for DevOps Engineers

  • Home
  • Blog
  • Contact

Category: Sysadmin

  • Home
  • Blog
  • Sysadmin

How to resize the root partition of CentOS running on an EC2 instance?

March 20, 2020 Fabrice

You can increase the size of the root EBS volume, but how to make CentOS reflect that change? SSH into the CentOS instance and run the following: $ sudo yum install cloud-utils-growpart $ sudo growpart /dev/nvme0n1 1 $ sudo reboot… Read More

Sysadmin

How to mount a LUKS encrypted drive on Ubuntu running as a Guest OS of VirtualBox on Mac?

May 23, 2019 Fabrice

Insert the encrypted device in your Mac. It will tell you it can’t use it and would invite you to initialize it. Just click “Ignore”. Run the disk utility to identify what disk is your encrypted device (probably it will… Read More

SysadminMacOS, Ubuntu, VirtualBox

A useful ps command

May 10, 2019 Fabrice

$ sudo ps -eH -o user,pid,ppid,state,pcpu,pmem,vsize,start_time,time,nlwp,cmd

Sysadmin

How to install the latest version of AWS command line tool on Ubuntu?

May 6, 2019May 7, 2019 Fabrice

Follow the steps: $ sudo apt update $ sudo apt install python python-pip $ sudo pip install awscli This will install a reasonably recent version of awscli, at least more recent than installing directly with `$ sudo apt install awscli`.… Read More

AWS, Sysadmin

How to create a Let’s Encrypt SSL certificate using DNS challenge?

April 23, 2019 Fabrice

First of all, register the domain name if not done already. Then run the steps: $ sudo certbot -d YOUR.DOMAIN.COM –manual –preferred-challenges dns certonly When prompted, create the required TXT record with your DNS provider and press enter in certbot.

SysadminCertbot, SSL

How to install and configure OpenVPN on Amazon Linux?

March 25, 2019April 13, 2019 Fabrice

Important note: What I wrote here will not work on Amazon Linux 2; only on Amazon Linux. There are some rare tutorials on the net, like this outdated one. Save yourself some headaches and use the following script to easily… Read More

SysadminOpenVPN, VPN

How to convert Maildir to mbox?

February 26, 2019March 26, 2019 Fabrice

Make sure you have the procmail package installed, and then run the following: $ for i in MAILDIR/cur/*; do formail -I "Status: RO" < "$i" >> MBOX; done I work as a freelancer, so if you don’t want to do… Read More

SysadminLeave a comment

How to properly use certbot with Nginx on Ubuntu?

December 18, 2018March 26, 2019 Fabrice

Install and configure Nginx: $ sudo apt update $ sudo apt install nginx $ sudo rm /etc/nginx/sites-enabled/default $ sudo vi /etc/nginx/sites-available/MYSITE # See below $ sudo ln -s /etc/nginx/sites-available/MYSITE /etc/nginx/sites-enabled $ sudo systemctl restart nginx The /etc/nginx/sites-available/MYSITE config file should… Read More

SysadminCertbot, LetsencryptLeave a comment

How to do a basic install of Prometheus on Ubuntu?

October 9, 2018March 26, 2019 Fabrice

Machine requirement I will assume your machine is Ubuntu >= 16.04. Please make sure only ports 80 and 443 are open. I assume there are two DNS entries to your machine, such as prometheus.blablabla.com and grafana.blablabla.com (replace as appropriate throughout… Read More

SysadminGrafana, PrometheusLeave a comment

How to programmatically know your external IP address?

October 9, 2018March 26, 2019 Fabrice

You are probably used to type “what is my ip” in google to know this, but how can you do that in a shell script? Here it is: $ curl ifconfig.co Simple! I work as a freelancer, so if you… Read More

SysadminLeave a comment

Posts navigation

1 2 3 Next

Recent Posts

  • How to persist variables in a loop from a find command in Bash?
  • How to iterate an array in Bash?
  • How to trim leading and trailing characters in Bash?
  • How to install jq on CentOS?
  • Magic SysRq cheatsheet

Categories

  • Automation
  • AWS
  • Bash
  • CentOS
  • Containers
  • Cryptography
  • Database
  • Development
  • Docker
  • Git
  • Linux
  • Python
  • Sysadmin
  • Virtualization

Archives

  • December 2020
  • October 2020
  • August 2020
  • July 2020
  • June 2020
  • April 2020
  • March 2020
  • February 2020
  • November 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018
Copyright © 2018-2019 Fabrice Triboix
Best Business by Axle Themes