-
LEMP stack installation scripts for Ubuntu 14.04
This weekend I overhauled my quick-lemp scripts for automating part of the server setup and LEMP stack installation process. The basic functionality is the same: standard new server setup is performed and a fully functioning LEMP stack is installed along with a sample Flask applications. What has changed is the way the scripts are divided and how […]
-
Update Bash on Linux and Mac machines to protect against ShellShock vulnerability
If you have any Linux or Mac machines, you’ll want to update Bash due to a vulnerability announced by RedHat called ShellShock. This vulnerability allows an attacker to inject their own code into Bash using environment variable assignment. You can check if your machine is vulnerable by running the following at a Bash prompt: env…
-
Resolving /bin/bash^M: bad interpreter error
Bash Error When running shell scripts, you may run into this bash error: /bin/bash^M: bad interpreter: No such file or directory This error occurs when the file you’re trying to execute contains DOS/Windows line endings. Unix uses just a line feed to end a line, but DOS actually uses a carriage return (^M) with a…
-
LEMP stack deployment script for Ubuntu 12.04
I use Cloud Servers from Rackspace for most of my application hosting. Through their control panel I can quickly create, rebuild, and delete virtual private servers quickly and easily whenever I want. The only frustrating part has been having to spend time doing the same initial configuration and LEMP stack installation tasks on each new…