CreateLoans Code

CreateLoans.java /* * Mark Hesser * HesserCAN * [email protected] * www.hessercan.com */   package createloans;   /** * @author mark */ public class CreateLoans { /** * @param args the command line arguments */ public static void main(String[] args) { Loan[] loans = new Loan[5];   loans[0] = new PersonalLoan(1, "Hesser", 34000, 5); loans[1] = […]

Hardening Apache on CentOS

Hide Apache Version and Operating System By-default the apache version and OS are shown in the response headers. This is a major security vulnerability. To hide those details, add the two lines in apache config file /etc/apache2/conf-enabled/security.conf ServerSignature Off # Removes version info ServerTokens Prod #Changes header to production, removing OS detailServerSignature Off # Removes […]

How to Set up HTTPS on Nginx on RedHat

Objective Install Nginx on your RedHat Linux distribution. Once installed, enable port 443 for HTTPS access to your web server. Create a Self-signed certificate to use for SSL. You can also use a free service like LetsEncrypt to get verified certs. Installing Nginx Add Nginx Repository To add the CentOS 7 EPEL repository, open terminal […]

Netplan Examples for Ubuntu 18.04

Below are a collection of example netplan configurations for common scenarios. If you see a scenario missing or have one to contribute, please file a bug against this documentation with the example using the links at the bottom of this page. Thank you! Configuration To configure netplan, save configuration files under /etc/netplan/ with a .yaml extension (e.g. /etc/netplan/config.yaml), […]

How to setup an SMB Server on Ubuntu 18.04

Objective Create a private and public SMB share. The private share should use your first name and a password. The public share should be viewable/writable to everyone. Use yourname_private and yourname_public for the share names. Install Samba Server Logon to the Ubuntu machine to install Samba. To install Samba, run the commands below. sudo apt-get […]

RAID 10

RAID level 10 is a combination of RAID 1 and  RAID 0, think of it more like RAID 1 + 0, combining mirroring with striping. Similar to RAID 6, this version of RAID requires a minimum of 4 disk drives. However, the operates very different than RAID 6. RAID 10 provides security by mirroring all […]

RAID 6

RAID 6 is an extension of RAID 5. In RAID 6 data is striped into blocks, being written to two disks while parity data is written on the remaining two disks. This requires a total of four drives in the disk array.  The parity data is distributed among the four disks. The dual parity provides […]

RAID 5

RAID 5 is level of RAID that combines both block-level striping and distributed parity among the array.  A standard RAID 5 array uses three disks. Data is striped in blocks, written to two of the disks, similar to RAID 0. The third disk receives parity information about the blocks of data. In RAID 5 the […]