Entries with the tag “linux”

These entries have all been tagged with “linux”.

Ansible Reboot Only If Required

Mar 9, 2021 linux misc-web

This quick tip will help you issue a reboot command during your Ansible playbook if a reboot is required.

Reduce Vagrant code duplication by using functions

Aug 27, 2016 linux

I use Vagrant for most of my server management. One thing I noticed is that my Vagrantfile can get pretty large - especially if I have multiple environments that share the same configuration.

Vagrant / Ansible config: change to /vagrant on login

Apr 16, 2015 linux

While those familiar with the specifics of linux and bash are probably very familiar with the various login sequence files, this might help someone!

Ansible Installation of Postfix with No Prompts

Mar 13, 2015 linux scripting

Using an Ansible configuration, I wanted to use postfix on ubuntu to send out mail. However, I couldn’t seem to figure out exactly how to get it to stop asking for input during the apt-get install postfix process. Turns out, you can use debconf to set the values that are necessary for the install.

PHPStorm Project Launchers for Ubuntu

PHPStorm has an option to install an icon for your Unity Dash on ubuntu - you can do this through the menu system. But, if you use this, it always opens to your last project. I have a number of projects running simultaneously, so this is no good. I could, of course, stop it from opening the last project, and just display the splash page menu. But I didn’t like that either. I wanted to be able to type in the lens search box what I wanted.

USB Chrome Debugging and Local subnet surfing on Android Emulator

Jun 18, 2013 linux mobile scripting

Most of the development I do that needs to be tested on android is on a local subnet. Generally, this is because I am running the servers in virtual machines that mimic the production environment. When I want to test these websites via the android emulator, it would be nice to be able to surf to them locally (without putting them in a public QA environment) - as well as have the ability to use Android Chrome’s USB Debugging.

VMWare Script to Toggle VMWare Workstation start/suspend

May 14, 2013 linux scripting

Normally I have multiple vm’s running for various different projects - all of these are in VMWare Workstation instances I toggle between suspend and started. I decided to create a script and an Ubuntu launcher icon for toggling the vms back and forth.

Ubuntu: lightdm login manager does not display properly on boot

Feb 5, 2013 linux

When I installed Ubuntu 11.10 and 12.04, I had the problem where the terminal would boot up until it said something about checking battery state, and then freeze. If I flipped to a different terminal, I could sudo launch lightdm - and then login on the first terminal. Obviously, this wasn’t my first choice in fixing this, though.

Block and Allow IP with iptables - simple script

Nov 25, 2009 linux scripting

As most developers are lazy, I’m a huge fan of scripts. I’ve found myself lately having to add entries to iptables to block a single IP or a small subnet, so I made a quick script to make the job easier on myself.

Send email from server to gmail using postfix

Oct 7, 2009 email linux

The other day I ran into this problem where postfix insisted on delivering mail… as it was supposed to do! As it was configured! But this isn’t what I wanted. Let me explain what was happening:

Launch Screen Automatically

Jul 7, 2009 linux

Because the internet in the Crown building is as good as… well my parents 19.2K dialup - which drops pretty much every 5 minutes, I’ve had to use GNU screen extensively.