Monthly Archives: January 2024

Let’s Encrypt di VPS CentOS 7

Langkah 1 : Instalasi Certbot

# sudo yum install epel-release
# sudo yum install certbot python2-certbot-apache mod_ssl

Langkah 2 : Install Let’s Encrypt

# sudo certbot --apache -d domainku.id

 

Langkah 3 : generate certificate

# sudo certbot --apache -d domainku.id

 

 

Langkah 4 : renew certificate

# certbot -d domainku.id,www.domainku.id renew  --force-renewal

 

Langkah 5 : reload http server

# sudo systemctl reload nginx.service
# sudo systemctl reload httpd.service
# sudo systemctl reload apache2.service

 

 

 

 

resize the root LVM partition of Ubuntu

1. Memeriksa pemakaian partisi

lsblk --fs
fdisk -l
fdisk /dev/sda

2. Memeriksa Volume Group

vgs

3. Meningkatkan LVM

$ lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv

The -l +100%FREE option tells lvextend to add all of the free space of the containing volume group to the logical volume.

4. Meningkatkan file system

resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv

 

Sumber:

1. https://askubuntu.com/questions/1417938/ubuntu-does-not-use-full-disk-space-how-to-extend

2. https://nekodaemon.com/2022/02/26/How-to-resize-the-root-LVM-partition-of-Ubuntu/