Author: cjtrowbridge
-
VPS Setup: Automated Database Backups
This is a subpost of the larger post Updated Comprehensive VPS Setup Documentation. Create a new directory for the backups; mkdir /var/backups/mysql I added the following line to /etc/crontab in order to facilitate automatic database backups; 0 22 * * * root /usr/bin/mysqldump -uroot -i[MySQL Root Password] [MySQL Database Name] | gzip > /var/backups/mysql/mysql-backup-$(…
-
VPS Setup: Install Free SSL From LetsEncrypt
This is a subpost of the larger post Updated Comprehensive VPS Setup Documentation. LetsEncypt allows us to setup free SSL certificates for our virtualhosts. First, make sure you are in your root home directory “/~” and then clone the LetsEncrypt git repository; git clone https://github.com/letsencrypt/letsencrypt Enter the directory cd letsencrypt And run the automatic…
-
VPS Setup: Create A Virtual Host
This is a subpost of the larger post Updated Comprehensive VPS Setup Documentation. Once you have your FQDN forwarded to the VPS, create a directory for it with; mkdir /var/www/[fqdn]/ Now we make a new virtualhost conf file with this command. Again, substitute your fqdn; cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/[fqdn].conf Then edit the file with nano…
-
VPS Setup: Email Server
This is a subpost of the larger post Updated Comprehensive VPS Setup Documentation. Many of my apps send lots of emails, so I usually need to setup a local outbound email server. Secure the port with iptables -A INPUT -i eth0 -j REJECT -p tcp –dport 25 Install postfix for the server apt-get -y install postfix…
-
VPS Setup: Recommended Initial Installations
This is a subpost of the larger post Updated Comprehensive VPS Setup Documentation. When initially setting up a VPS, I generally install the programs listed below. Before installing anything, it is important to first update and upgrade all packages already installed on the server with apt-get update && apt-get upgrade First, install Fail2Ban in order…
-
VPS Setup: FQDN DNS Setup With GoDaddy
This is a subpost of the larger post Updated Comprehensive VPS Setup Documentation. Once you have a VPS deployed and know its static IP, you can forward a FQDN to it by creating a new A Record. I use GoDaddy for my DNS registration because they are simple, reliable, and quick. In order to do…
-
VPS Setup: Deploying A New Virtual Private Server With Digital Ocean
This is a subpost of the larger post Updated Comprehensive VPS Setup Documentation. I like Digital Ocean (Referral Link) for my VPS host. The first step in creating a new VPS is to select a Linux distribution. I always use the most current version of Debian. At the time of this post, that is version…
-
Watched “The Hunting Ground” with follow-up Q&A panel with my mom to raise awareness for sexual assault on campuses. Everyone should watch this. Over 100k students are sexually assaulted per year in the US. Such an enormous issue.
Watched “The Hunting Ground” with follow-up Q&A panel with my mom to raise awareness for sexual assault on campuses. Everyone should watch this. Over 100k students are sexually assaulted per year in the US. Such an enormous issue.