Being Lazy With Fabric - Part 1

I’m lazy when come to do repetitive tasks and it’s nice when machines do the work for us, specially boring ones like us sysadmins have to do daily. Example: Check if that file exists for me at N servers. Install a package on hundreds of servers. Delete a user on all servers and so on... Haven't you heard of fabric yet? Fabric is a Python library that provides automation using SSH(Paramiko), from copy files, execute tasks(normal or using sudo), prompt the user for input, deploy and whatever you can think of....

March 26, 2014 · 6 min · Danilo Fernando Chilene

Installing Python 2.7.8 on CentOS 6.5

CentOS 6.5 still come with Python 2.6 and I need 2.7, below a simple tutorial how to achieve this with no pain and not messing with installed Python. Update CentOS and install development tools yum -y update yum groupinstall -y 'development tools' Also you need the packages below to enable SSL, bz2, zlib for Python and some utils: yum install -y zlib-devel bzip2-devel openssl-devel xz-libs wget Installing Python 2.7.8 from source Download Python and extract it...

January 16, 2014 · 1 min · Danilo Fernando Chilene

Almost new year and new blog

The past In the last year I was using Mezzanine as CMS that is built using the Django Framework, it’s clean and based on Twitter Bootstrap theme. For my needs it works, but for a reason that I don’t remember I never got syntax highlighting working on it. A whole new easy world It all began when I started using Gitlab as repository and use Markdown on a daily basis to write stuff on it....

December 10, 2013 · 1 min · Danilo Fernando Chilene

Epel Repository on CentOS 6.x

Import the key [root@ambush ~]# rpm --import http://ftp.riken.jp/Linux/fedora/epel/RPM-GPG-KEY-EPEL-6 Download the Epel package and install it [root@ambush ~]# wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm [root@ambush ~]# rpm -ivh epel-release-6-8.noarch.rpm Preparing... ########################################### [100%] 1:epel-release ########################################### [100%] [root@ambush ~]# Now you can install packages from the EPEL repository.

December 9, 2013 · 1 min · Danilo Fernando Chilene

Monitoring Oracle with Zabbix

In the past I used Zabora to monitor Oracle, but for large environments was a pain to admin and let’s not talk about monitor tons of tablespaces. I tried to use other things like Orabbix but since is Java I preferred stay away. Today Zabbix have some nice improvements like macros and Discovery, so we can set the database settings(user,password,database and such) on the host using macros and not hard code it on a script that you have to access a server to change it....

December 9, 2013 · 3 min · Danilo Fernando Chilene