[pdf-embedder url=”/wp-content/uploads/2020/03/ubuntu-postfix.pdf”]
Ubuntu – Disk Management
Expand the disk to its full capacity after initial installation of ubuntu 1. lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv 2. resize2fs /dev/ubuntu-vg/ubuntu-lv CONFIGURING AN LVM VOLUME WITH AN EXT4 FILE SYSTEM https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/high_availability_add-on_administration/s1-lvmsetupnfs-haaa Basic Steps: In VMware to enlarge a disk size #cfdisk
Backup Using Linux Tar
CentOS
How To Partition and Format Storage Devices in Linux https://www.digitalocean.com/community/tutorials/how-to-partition-and-format-storage-devices-in-linux Ext2, Ext3 & Ext4 file systems https://www.tecmint.com/what-is-ext2-ext3-ext4-and-how-to-create-and-convert-linux-file-systems/ Mount a filesystem https://codingbee.net/tutorials/rhcsa/rhcsa-mounting-a-partition Install Desktop https://www.itzgeek.com/how-tos/linux/centos-how-tos/install-gnome-gui-on-centos-7-rhel-7.html Install Chrome https://www.tecmint.com/install-google-chrome-on-redhat-centos-fedora-linux/ Remove Chrome: yum remove google-chrome* Initial Server Setup with CentOS 6 https://www.digitalocean.com/community/tutorials/initial-server-setup-with-centos-6 Config
Apache Notes
Postfix Notes
Install Postfix as SMTP only Server Uninstall postfix sudo apt-get remove postfix (Uninstall postfix only) sudo apt-get remove –auto-remove postfix (Uninstall postfix and its dependencies) sudo apt-get purge postfix (Purging your config/data too)
Linux Email Servers Notes
Install Sendmail in Ubuntu $ sudo apt-get update $ sudo apt-get install sendmail $ sudo sendmailconfig Test sending an email: echo “Subject: sendmail test” | sendmail -v mindaji@gmail.com echo “This is the body of the email” | mail -s “This
Ubuntu Basics 2
Upgrade from Ubuntu 16 or 17 to 18 https://www.linuxbabe.com/ubuntu/upgrade-ubuntu-16-10-17-04-to-ubuntu-18-04 First, we need to run the following command to change all instances of yakkety to bionic in the source list file (/etc/apt/sources.list). The former is the code name for Ubuntu 16.10,
Linux Scripting
Home directory – Execute in source bash source or “. “ Current Directory “.” Information of Bash or others info bash Calculate days for my deletion date +%y%m%d -d “-10 days” Find if a file exists [ -f /etc/passwd ]