Ubuntu – Disk Management
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 (create a LVM partition) #pvcreate my_vg /dev/sda3 (create a physical volume) #vgcreate lvm1 /dev/sda3 (create a volume group) #lvcreate -n
Backup Using Linux Tar
https://www.unixmen.com/performing-incremental-backups-using-tar/ https://www.theurbanpenguin.com/incremental-backups-with-tar/ https://www.computernetworkingnotes.com/linux-tutorials/create-and-restore-incremental-backups-in-linux-with-tar.html
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
Add SSL Certificate from commercial organization in Apache: https://www.digitalocean.com/community/tutorials/how-to-install-an-ssl-certificate-from-a-commercial-certificate-authority Edit virtual host file: longwise.conf # The ServerName directive sets the request scheme, hostname and port that # the server uses to identify itself. This is used when creating # redirection
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 ]
Ubuntu Basics
New apt vs apt-get https://itsfoss.com/apt-vs-apt-get-difference/ apt-get update downloads the package lists from the repositories and “updates” them to get information on the newest versions of packages and their dependencies. apt-get upgrade will fetch new versions of packages existing on the