Skip to content

Latest commit

 

History

History
49 lines (49 loc) · 1.62 KB

Server.md

File metadata and controls

49 lines (49 loc) · 1.62 KB

NFS Client

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)

  1. Add a MX record to DNS registrar
Name   Type    Data
@      MX      10 guoxiaokang.com.
  1. Install MTA (Message Transfer Agent)
apt update && apt install -y postfix
  1. Install MUA (Mail User Agent)
apt install -y mailutils
  1. Test MUA
echo "This is the body of email" | mail -s "This is the subject of email" "[email protected]"
  1. A Long Letter
    mail -s "This is the subject of email" "[email protected]"Enter
    This is the body of emailEnter
    This is a new lineEnter
    CTRL+D

Let's Encrypt

Installation

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

Renew cert

sudo letsencrypt renew

Location of cert

  • Public cert: /etc/letsencrypt/live/your_domain_name/fullchain.pem
  • Private key: /etc/letsencrypt/live/your_domain_name/privkey.pem

What are these PEM file

  • 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