How to forcefully renew Let’s Encrypt certificate on Ubuntu

Let’s Encrypt uses the client Certbot to install, manage, and automatically renew the certificates they provide. In the case where your certificate does not automatically renew on your Linux Ubuntu, you can manually trigger the renewal at anytime by running:

sudo certbot renew

If you have multiple certificates for different domains and you want to renew a specific certificate, use:

certbot certonly –force-renew -d example.com

The –force-renew flag tells Certbot to request a new certificate with the same domains as an existing certificate. The -d flag allows you renew certificates for multiple specific domains.

To verify that the certificate renewed, run:

sudo certbot renew –dry-run

If the command returns no errors, the renewal was successful.

Tampilkan dan Copy semua files dengan type images dengan Windows 11 Powershell

Ketikan peritah berikut di powersheel window anda:

dir  -Recurse -include *.png,*.jpg,*.bmp.*.gif untuk menampilkan semua gambar dengan extension .png,jpg,bmp,gif

Get-ChildItem -Path  -Recurse -include *.png,*.jpg,*.bmp.*.gif

Get-ChildItem -Path “G:\Data*” -Recurse -include *.png,*.jpg,*.bmp.*.gif | Copy-Item -Destination “G:\Copy” Copy files sesuai extensi di G> Data ke G> Copy

Unifi Controller di Google Cloud Platform (GCP) dengan Ubuntu 20

Google Cloud Platform adalah layanan cloud dari Google yang terdiri dari berbagai produk seperti Compute, Storage, Networking, Big Data, Machine Learning, dan IoT

Ada bisa mencoba dengan Free Tier dahulu, kemudian baru upgrade setelah setelah cocok dengan kebutuhan. J

Langkah pertama yang harus dilakukan adalah masuk ke Google Cloud Platform

Selanjutnya kita masuk ke Console Google Cloud. Menu membuat Virtual machine berada di Compute Engine->VM instances. Klik Create. Kalau belum memasukan billing akan diarahkan ke setup billing, tapi jangan khawatir Google tidak akan mengenakan biaya sampai anda melakukan upgrade.

Name, menjadi nama VM instance sekaligus hostname.
Zone, lokasi server. Beda lokasi bisa berbeda biaya sewa, misalnya lokasi server di Amerika lebih murah dari lokasi server di Singapura.
Machine type, spesifikasi CPU (processor) dan RAM. Klik Customize untuk mengubah spesifikasi.
Boot disk, pilih sistem operasi dan besaran kapasitas disk sistem.

Terakhir klik Create. Tunggu beberapa detik untuk proses build VM instance.

VM instances sudah aktif. External IP merupakan public IP dari VM, dan Internal IP merupakan private IP

Buka port 8443 dari firewall GCP, ports yang dipakai Unifi https://help.ui.com/hc/en-us/articles/218506997-UniFi-Ports-Used

Saya anggap VM sudah selesai dan kemudian bisa di remote VM tersebut dengan SSH ke Public IP tersebut, kemudian langkah selanjutnya install unifi controller nya

Selanjutnya Install Ubiquiti Unifi Controller di Ubuntu 20.04 VM

sudo apt update
sudo apt install --yes apt-transport-https

echo 'deb https://www.ui.com/downloads/unifi/debian stable ubiquiti' | sudo tee /etc/apt/sources.list.d/100-ubnt-unifi.list
sudo wget -O /etc/apt/trusted.gpg.d/unifi-repo.gpg https://dl.ui.com/unifi/unifi-repo.gpg

sudo apt update
sudo apt install --yes openjdk-8-jre-headless unifi
sudo apt clean

sudo systemctl status --no-pager --full mongodb.service unifi.service

# Masuklewat browser https://ip-public-VM-GCP:8443/

Untuk Adopt perangkat AP ke VM GCP, bisa arahkan uniform nya ke http://ip-public-VM-GCP:8443/ atau http://unifi.namadomain.com:8080/inform dengan cara SSH ke perangkat AP.

set-inform http://unifi.namadomain.com:8080/inform kemudian adopt dari unifi contoller di VM nya!

Selanjutnya Install Let’s Encrypt SSL Certificate on UniFi

sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install python-certbot-apache -y
sudo certbot --apache -d unifi.namadomain.com
sudo wget https://raw.githubusercontent.com/stevejenkins/unifi-linux-utils/master/unifi_ssl_import.sh -O /usr/local/bin/unifi_ssl_import.sh
sudo chmod +x /usr/local/bin/unifi_ssl_import.sh
sudo nano -w /usr/local/bin/unifi_ssl_import.sh

# UNIFI_HOSTNAME=unifi.namadomain.com
#Karana kita pakai Debian/Ubuntu, selain script itu bisa comments:

#UNIFI_DIR=/opt/UniFi
#JAVA_DIR=${UNIFI_DIR}
#KEYSTORE=${UNIFI_DIR}/data/keystore

# Uncomment following three lines for Debian/Ubuntu
UNIFI_DIR=/var/lib/unifi
JAVA_DIR=/usr/lib/unifi
KEYSTORE=${UNIFI_DIR}/keystore

LE_MODE=yes
LE_LIVE_DIR=/etc/letsencrypt/live

# tekan CTRL+X dan Y.

#Jalankan script!

sudo /usr/local/bin/unifi_ssl_import.sh
sudo chown root:root /etc/cron.daily/unifi_ssl_import
sudo chmod +x /etc/cron.daily/unifi_ssl_import
cat /etc/cron.d/certbot
sudo certbot renew --dry-run

Cara export dan import passwords dari CSV di Google Chrome

Let me show you how to export passwords in Chrome:

  1. Load chrome://settings/passwords in the browser’s address bar.
  2. Click on the menu icon (the three dots) on the Saved Passwords line.
  3. Select Export passwords from the menu that opens.
  4. Activate the “export passwords” button on the warning screen.
  5. Type your Windows username and password for verification.
  6. Select a location to save the password file to.

How to import from CSV

  1. Create Chrome shortcut on Desktop
  2. Right-Click shortcut and select PROPERTIES
  3. In the “Target” field add the following literally to the end, ” –enable-features=PasswordImport”.
  4. NOTE:
    “C:\Program Files (x86)\Google\Chrome\Application\chrome.exe” –enable-features=PasswordImport
  5. Hit Apply, and open shortcut.

From there go to Settings > Passwords and you will now see 3-Dot menu to the right of where you see the title “Saved Passwords”. Those dots allow you to import a CSV password file. You can delete shortcut if you like after importing.

Reset Forgotten Admin Password on macOS Mojave and macOS Sierra

Boot into Recovery Partition

Reboot into the Recovery Drive by choosing the ‘Apple‘ menu > Restart, hold down the ‘command’ + ‘r’ keys on the keyboard during the start up process, when you see the start up screen you can let go. When the machine boots eventually you will see the macOS or OS X Utilities screen.

Go to the Utilites menu and select Terminal

At the prompt type ‘resetpassword’ (hit enter)

Enter new Password for admin user

Finish