Archive | Linux

PATH in Bash and Fish Shell

PATH can be a pain, but there are some basics: Syntax $PATH before or after (before) Is EXPORT needed, or not (not) Where is PATH set All apps+shells /etc/environment All shells ~/.profile or /etc/profile for all users (or a separate file under /etc/profile.d/ if using pacman) Bash shell ~/.bashrc (or ~/.bash_profile or ~/.bash_login) Fish shell […]

Continue Reading

Amazon Linux, Apache, MySQL, and PHP

Preparation for Amazon LAMP The OpenVPN on Amazon Linux AMI is a good place to start in preping the L for the AMP part of the lamp stack. The Order of Things with Amazon Linux AMI Amazon Linux AMI is a bit picky about the order of things. Otherwise there will be dependency conflicts, which […]

Continue Reading

Obfsproxy, Viscosity, OpenVPN

OpenVPN is great, and the OpenVPN command line client and the Viscosity GUI are also nice. However, all configurations need to be checked to ensure there is no information leakage. Secondly, the basic OpenVPN connection needs another layer of encryption and/or obfuscation, in order to interoperate with Internet firewalls and services that use deep packet […]

Continue Reading

Amazon Lightsail

Amazon Lightsail is a VPS services offered by Amazon that competes with the likes of Rackspace, DigitalOcean, Linode, etc. Compared head-to-head the Lightsail option is a middle-of-the-road offering. However, compared with AWS and including the highly optimized nature of running Amazon Linux AMI (and not overselling with bullshit numbers like some providers), Amazon Lightsail is […]

Continue Reading

ufw, firewalld, iptables on Amazon Linux

ufw is known as a Debian (and Ubuntu) firewall, which is disabled by default but easy to use. There are some GUI front-ends which make it popular for Linux on the desktop. Coming from a CentOS background (RHEL/Amazon Linux AMI), ufw is not as common (as, say firewalld, or simply iptables, to which both ufw […]

Continue Reading

AMI on EC2 vs. CentOS on Linode

What I learned in migrating from CentOS on Linode to Amazon AMI Linux on EC2. Note: Amazon Lightsail is probably a better comparison, but it is not available in the region we need it in, so EC2 is required for now. VPS Hosting and Operating System A change of VPS providers is generally not such […]

Continue Reading

OpenVPN on EC2 AMI T2.Nano

The T2.Nano instance is the smallest instance generally available for AWS EC2. As of 17-June-2017, the Nano includes the following resources: 512mb RAM 1 vcpu (30 credits + 3/hr, up to 72 credits) 1gb network out traffic Amazon Linux AMI For those who prefer RHEL/CentOS, these are not available for the T2.Nano instance, rather Amazon […]

Continue Reading

Shell Commands and Utilities

This is a terse collection of commands and utilities I find useful for shells. There is little distinction between programs and commands as commands are programs (and are installed or come pre-installed) and programs have commands. Also included is a shell (Fish Shell) and some other shell applications/utilities (Mosh, Nano). Shell Commands cat - display […]

Continue Reading

Fish Shell – Friendly Interactive SHell

Fish Shell is a very useful shell. I use it on OSX and Linux. Provides for some sanity at the command line. For an editor I use Nano. Note that there are some limitations, and a learning curve on getting it set up. However, it does have some limitations, and is definitely newer than other […]

Continue Reading

Nano Command Line Text Editor

Nano is pretty awesome, fully open source, and has mnemonics for most commands. Note that I use Fish Shell on OSX, CentOS and Ubuntu. Various benefits accrue, when scripting and also autocomplete and such. Various Commands and Such Set Nano as default editor of git in OSX Search and Replace Apparently this is also case […]

Continue Reading