sudo apt install nfs-common
showmount -e 192.168.1.123
# Export list for 192.168.1.123:
# /mnt/someDir 192.168.1.0/24
mount 192.168.1.123:/mnt/someDir /nfs/general
Email Server (Not working for AWS Host. Additional configuration is needed for AWS)
Add a MX record to DNS registrar
Name Type Data
@ MX 10 guoxiaokang.com.
Install MTA (Message Transfer Agent)
apt update && apt install -y postfix
Install MUA (Mail User Agent)
Test MUA
echo " This is the body of email" | mail -s " This is the subject of email" " [email protected] "
A Long Letter
mail -s "This is the subject of email" "[email protected] "
Enter
This is the body of email
Enter
This is a new line
Enter
CTRL +D
sudo apt update -y && sudo apt install -y python3-certbot-apache
sudo certbot --apache --agree-tos --non-interactive --email your_email_address -d your_domain_name
Public cert: /etc/letsencrypt/live/your_domain_name/fullchain.pem
Private key: /etc/letsencrypt/live/your_domain_name/privkey.pem
cert.pem contains the server certificate by itself.
chain.pem contains intermediate certificates. Some webservers like separated certficate files.
fullchain.pem contains cert.pem and chain.pem. Some webservers like unseparated certficate files.
private.pem counterpart of the server certificate