By: Sagar Chamling
sudo apt update
sudo apt upgrade| alias c='clear' | |
| alias update="sudo apt update -y" | |
| alias upgrade="sudo apt upgrade -y" | |
| alias remove="sudo apt autoremove -y" | |
| alias install="sudo apt install -y" | |
| alias fix="sudo apt -f install" | |
| alias restart="sudo systemctl restart" | |
| alias enable="sudo systemctl enable" | |
| alias disable="sudo systemctl disable" | |
| alias start="sudo systemctl start" |
| https://www.exratione.com/2014/05/a-mailserver-on-ubuntu-1404-postfix-dovecot-mysql/ | |
| Ex | |
| Ratione | |
| GitHub • Consulting • Blog • Archives • Feed | |
| A Mailserver on Ubuntu 14.04: Postfix, Dovecot, MySQL | |
| By Reason May 1, 2014 Permalink | |
| This long post contains a recipe for building a reasonably secure Ubuntu 14.04 mail server in Amazon Web Services, using Postfix, Dovecot, and MySQL, with anti-spam packages in the form of amavisd-new, Clam AntiVirus, SpamAssassin, and Postgrey. Local users are virtual rather than being system users. Administration of users and domains is achieved through the Postfix Admin web interface. Webmail is provided by Roundcube. |
| #!/bin/bash | |
| #easy openvpn server setup for ubuntu | |
| read -p "port (1-65535): " PORT | |
| read -p "protocol (udp or tcp): " PROTOCOL | |
| read -p "encrypt (y or n): " ENCRYPT | |
| read -p "hmac (y or n): " HMAC | |
| read -p "xor scramble (y or n): " SCRAMBLE | |
| read -p "compress (y or n): " COMPRESS_YN | |
| read -p "network number (0-255): " NETWORK_NUM |
| #!/usr/bin/env bash | |
| set -eu | |
| # mark a few packages as explicitly installed | |
| mark-wanted() { | |
| apt install -y \ | |
| bash git tmux vim htop \ | |
| unattended-upgrades \ | |
| software-properties-common; | |
| } |
| Ubuntu Notes | |
| # Change shells | |
| $ chsh -s $(which bash|zsh) | |