CreateDormFile Code

CreateDormFile.java /* * Mark Hesser * HesserCAN * [email protected] * www.hessercan.com */   package createdormfile;   import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.nio.file.*; import java.io.*; import static java.nio.file.StandardOpenOption.*;   /** * @author mark */ public class CreateDormFile extends JFrame implements ActionListener { //Declarations //Strings private final String TITLE = "Dorm Information"; private final String […]

CreateCircle Code

CreateCircle.java /* * Mark Hesser * HesserCAN * [email protected] * www.hessercan.com */   package createcircle;   /** * @author mark */ public class CreateCircle { /** * @param args the command line arguments */ public static void main(String[] args) { Circle[] c = new Circle[2]; c[0] = new Circle("Red", 2); c[1] = new Cylinder("Red", 2, […]

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 […]