Ansible Intro - Part 2 - Iptables Playbook

Posted on Wed 11 April 2018 in ansible • Tagged with python, ansible • 5 min read

Python

Overview

In the last work note a basic Ansible project layout and first playbook was created. This work note builds on that and covers an approach which handles iptables and basic package administration on Ubuntu based systems.

Procedure

1. Picking up where we left off in the Ansible Intro lets …


Continue reading

Ansible Intro - Part 1 - First Playbook

Posted on Sun 08 April 2018 in ansible • Tagged with python, ansible • 3 min read

Python

Overview

With so many options available for system automation, it can be a little overwhelming choosing which tools to commit to. One of the tools which has been faithfully making life easier for me is Ansible. A very popular automation tool for any system that can be SSH'd into.

The …


Continue reading

Useful Pelican Plugins

Posted on Thu 22 March 2018 in pelican • Tagged with pelican, python • 3 min read

Pelican

Overview

Pelican functionality can be extended by plugins. This work note covers the plugins which were useful for building this site.

Fancybox

Fancybox provides a nice way to display images on a static site. This is how to add it to your Pelican theme. The example uses the Flex theme …


Continue reading

Sphinx

Posted on Sun 18 March 2018 in python_modules • Tagged with python • 1 min read

Python

Overview

Sphinx is a powerful documentation generator tool for Python projects. You can use it to generate amazing looking documentation for your Python project if you write worth-reading docstrings in your code. This work note covers how to start a new project and how to regenerate the docs to reflect …


Continue reading

Advanced Pelican

Posted on Thu 15 March 2018 in pelican • Tagged with python, pelican • 3 min read

Pelican

Overview

Often Wordpress or other content management systems are just more than what you really need for your website. There are a few choices for staticly generated websites but assuming a bit of Python knowledge, a good choice may be to use Pelican. The website you are reading was created …


Continue reading

Python3 Installation and Configuration in CentOS 7

Posted on Fri 09 March 2018 in centos • Tagged with centos • 1 min read

Python3 CentOS Installation

Overview

This is a quick note which covers how to get Python3, pip and virtualenv working on a CentOS 7 system.

Prerequirements

sudo yum update
sudo yum install yum-utils

Installation

sudo yum install https://centos7.iuscommunity.org/ius-release.rpm
sudo yum install python36u
sudo yum install python36u-pip
sudo yum install …

Continue reading

Using Pihole for Client DNS

Posted on Mon 19 February 2018 in dns • Tagged with dns • 3 min read

Pihole

Overview

Pihole is a DNS security system which offers domain filtering and various other useful DNS related options. There is a huge collection of blackholed domains of known advertisers, telemetry style collection services and security threats such as botnets. Running client or even system DNS queries through pihole offers some …


Continue reading

Nginx PHP7 MySQL Installation and Configuration

Posted on Mon 19 December 2016 in nginx • 2 min read

nginx installation

Overview

This note covers installation and configuration of nginx, PHP7 and MySQL on Ubuntu 16.

Operating System: Ubuntu 16.04.1 LTS
Nginx: 1.10.0
PHP: 7.0
MYSQL: 5.7

Installation

1. Install MySQL server and php7.

sudo apt-get install -y mysql-server php7.0-mysql

2. Configure MySQL using …


Continue reading

Solaris ALOM

Posted on Mon 21 November 2016 in solaris • 1 min read

solaris alom

Command Overview

Power and Reset control commands:

powercycle [-y] [-f]
poweroff [-y] [-f]
poweron [-c] [FRU]
reset [-y] [-c]

Console commands:

break [-D] [-y] [-c]
console [-f]
consolehistory [-b lines|-e lines|-v] [-g lines] [boot|run]

Boot control commands:

bootmode [normal|reset_nvram|bootscript="string"]
setkeyswitch [-y] 
showkeyswitch

Locator LED …


Continue reading

FreeBSD as a KVM Guest OS

Posted on Mon 21 November 2016 in freebsd • Tagged with freebsd • 1 min read

freebsd kvm guest

Overview

At present FreeBSD 9.2 works very well as a KVM guest. The best performance seems to be using the virtio drivers instead of the native KVM drivers. Here is the procedure for configuring FreeBSD for virtio.

1. Install the drivers:

cd /usr/ports/emulators/virtio-kmod && make clean install …

Continue reading

Patch Check Advanced

Posted on Fri 04 November 2016 in solaris • Tagged with solaris • 6 min read

Patch Check Advanced

Overview

Patch Check Advanced (PCA) is a utility that can be used to install patches onto a Solaris operating system. It generates lists of installed and missing patches and can optionally download and install those patches. It resolves dependencies between patches and installs them in the correct order. It can …


Continue reading

Patching Solaris Systems

Posted on Thu 03 November 2016 in solaris • 4 min read

patching Solaris

Overview

The Solaris Operating System is delivered and installed with SVR4 packages. A package is a collection of files and directories in a defined format. This format conforms to the Application Binary Interface (ABI), which is a supplement to the System V Interface Definition. A package consists of:

Package objects …


Continue reading

Configuring Networking in Solaris

Posted on Thu 03 November 2016 in solaris • Tagged with solaris • 2 min read

solaris networking

Overview

This note covers basic Solaris networking configuration, focusing on static / persistent configurations.

Routing

To add persistent/static routes in Solaris use the route command. This will dynamically update the Kernel IP Routing table. However, when a server is restarted, these routes will be lost. To prevent this from happening …


Continue reading

OBP and NVRAM Commands

Posted on Thu 03 November 2016 in solaris • 3 min read

obp nvram commands

Overview

This is a basic list of commands that can be used on the Open Boot PROM. It is important to be familiar with OBP commands as you will likely find yourself there sometime if you admin SPARC based servers. We also cover the settings configurable in NVRAM.

OBP Commands …


Continue reading

General System Administration in Solaris

Posted on Wed 02 November 2016 in solaris • Tagged with solaris • 1 min read

solaris administration

Copy Partition Tables

It is possible to copy a partition table from one disk to another using two commands, prtvtoc and fmthard. You would want to do this when setting up software mirroring using SDS or something of that nature.

prtvtoc /dev/rdsk/c0t0d0s2 | fmthard -s - /dev/rdsk/c0t1d0s2

Desktop …


Continue reading