FLISOL 2012 (Morelos/Aguascalientes)

By tonyskapunk May 4th, 2012, under emacs, foss, fsf, gnu, linux, ñu, Uncategorized

Durante el sabado 28 de Abril de 2012, se celebro el Festival Latinoamericano de Instalación de Sofware Libre, tuve la oportunidad de presentar una platica en la ciudad de Cuernavaca en Morelos, gracias al apoyo general del Grupo de Software Libre de Morelos y en particular de varias personas entre ellas alemani, GaRaGeD (Hasta que por fin nos conocimos) y el kwame quien nos dio asilo por un par de días y hasta la hizo de guía de turista(Gracias!).

Decidí hacer una platica NO técnica, pero el resultado fue una plática con un efoque muy particular sobre un tema muy polemico, nada más y nada menos que de Vi y Emacs, lo cual pudo ser de poco interés para los participantes si no estaban familiarizados con dichos temas.

En Aguascalientes por cuestiones de logística se llevará acabo el Sabado 5 de Mayo de 2012, la organización va por cuenta del Grupo de Usuarios de Linux en Aguascalientes (Los Pingüinos en el Alambre), aquí estaré dando la misma plática y la presentación la dejo aquí abajo, quiero agradecer en particular por el espacio y sobre todo el gran entusiasmo al buen betiux.

Editores de Texto en Linux

Puppet – Hello World

By tonyskapunk March 8th, 2012, under foss, linux, ñu, puppet, ruby, script, software

Thinking in how to show a “Hello World” for puppet so I came with this:

notify{"puppet": message => 'Hello World'}

Save this code into a .pp file, e.g. helloworld.pp, then apply it like this

$ puppet apply helloworld.pp

Output is:

notice: Hello World
notice: /Stage[main]//Notify[puppet]/message: defined 'message' as 'Hello World'
notice: Finished catalog run in 0.02 seconds

Though I doubt is the best way to start learning puppet code.

1330473600

By tonyskapunk February 29th, 2012, under linux, ñu, time, unix

Long time without post, just wanted to remind this important day for me.

FOSS en las Empresas

By tonyskapunk November 28th, 2011, under blog, centos, debian, fedora, foss, free, fsf, gnu, kwame, linux, ñu, ogg, redhat, ubuntu

Aquí esta la presentación de la ponencia en DESATICS III en Valladolid, Yucatan.

Muchas gracias por la invitación y la hospitalidad a pesar de lo fugaz de la visita la pasé muy bien y con mucho gusto regresaré en la medida de lo posible.

“FOSS en las Empresas”

Todos los Videos se encuentran aquí:
David – http://youtu.be/I2PcDNgDokE
Chito – http://youtu.be/1khAnNfE10g
Bernie – http://youtu.be/C95chQswZjw
Paco – http://youtu.be/H0Gj8G-KFpI
Beto – FOSS en las Empresas a1

Taller de Puppet en FSLVallarta 2011

By tonyskapunk November 4th, 2011, under blog, centos, debian, eee, fedora, git, linux, ñu, OS, plugin, pro, puppet, redhat, ruby, ubuntu

Aquí encontrarán la presentación del taller que incluye la información de como clonar el codigo utilizado.

Sólo es necesario instalar git y clonar el repositorio que se encuentra en github:

git clone git://github.com/tonyskapunk/puppet-fsl.git

administracion de servidores con puppet

Puppet in FSLVallarta 2011

By tonyskapunk October 10th, 2011, under blog, centos, debian, git, linux, OS, puppet, redhat

Banner largo

Today it was released the list of talks, workshops, conferences, etc. for the FSL Vallarta 2011[1], they are in published in the site now[2].

I’m very excited to see two puppet topics on it.

Administración de Servidores con Puppet by me

Como construir una infraestructura escalable de manera fácil y sencilla (puppet + cobbler + kickstart + pxe) by kwame

Looking forward for the event and the community, see you there!

[1] http://www.fslvallarta.org
[2] http://www.fslvallarta.org/?q=programa

Shadow “LastChanged”

By tonyskapunk October 4th, 2011, under bash, hash, linux, ñu, OS, passwd, password, perl, salt, script, shell, time, Uncategorized, unix

Shadow file in linux stores interesting information related to the encrypted password and the aging of the password.

The fields are separated by colons “:” the meanning of each field is:

1. Login name.
2. Encrypted password.
3. Number of days since Jan 1st, 1970 since last change.
4. Number of days before password may be changed.
5. Number of days the password is valid.
6. Number of days the user is warned before password is to expire.
7. Number of days after password expires that account is disabled.
8. Number of days since Jan 1, 1970 that account is disabled.
9. Reserved field.

The last time a password was changed(aka “lastchanged”) is on the 3rd field; The format is the number of days since Jan 1st 1970 same for field 8th. Both are not easy to read at first sight. Here an example.

tonyskapunk:$1$8tdbr1QK$RFckv9KgubCMbf5iit8c.1:13939:1:15:3:3::

1. tonyskapunk
2. Password encrypted with md5($1) using salt: 8tdbr1QK and the result is: RFckv9KgubCMbf5iit8c.1 (thisisatest)
3. On day 13939 occur the last password change.
4. Once the password changes it must remain 1 day before changing it again.
5. During 15 days the password is valid.
6. 3 days prior expiration the user will be warned.
7. 3 days after expiration the account is disabled.
8. Not yet expired.
9. Empty

Most of these fields are really simple to read, but is not the same with field 3. an easy way to translate this.

epoch=$(echo $(( $(grep tonyskapunk /etc/shadow |cut -d: -f3) * 86400 )))
perl -e "printf \"%s\n\", scalar(localtime($epoch))"

This will return “Fri Feb 29 18:00:00 2008″ This is the date the password was changed, nice a leap year ;)

Hope someone find it useful.

References

http://linux.die.net/man/5/shadow

http://www.epochconverter.com

g00g13

By tonyskapunk September 27th, 2011, under birthday, blog, google, ñu

Happy B-day Google!

sysadmin day

By tonyskapunk July 29th, 2011, under birthday, blog, gnu, linux, ñu, Uncategorized

To all the SysAdmins who work really hard to keep servers up 365/24/7. Enjoy!!!

Freenode with tor+irssi

By tonyskapunk July 8th, 2011, under anonymous, blog, debian, install, linux, ñu, OS, redhat, script

First of all you need tsocks and tor configured and running, it is quite simple, more information can be seen in the link below[1], in short:

On RH Based:

sudo yum install tor tsocks -y

On Debian Based:

sudo apt-get install tor tsocks -y

Freenode allows tor connections only to a specific tor hidden service p4fsi4ockecnea7l.onion

Then add this in your torrc config in /etc/tor/torrc

### Freenode
mapaddress  10.40.40.40  p4fsi4ockecnea7l.onion

Restart tor after this change.

Download the script[2] to auth with SASL, place it under your ~/.irssi/scripts and create a symlink to it from ~/.irssi/scripts/autorun to load it automatically.

Install the packages required for the script that performs the sasl authentication.

RH Based:

sudo yum install -y perl-Crypt-OpenSSL-Bignum perl-Crypt-DH perl-Crypt-Blowfish

Debian Based:

sudo apt-get install libcrypt-openssl-bignum-perl libcrypt-dh-perl libcrypt-blowfish-perl -y

Torify Irssi
Simply run Irssi with

torify irssi

Config Irssi

/server add -network freenode 10.40.40.40

Once the script is loaded(you can load it manually with /script load cap_sasl.pl) run the config.

/sasl set freenode myaccount mypassword dh-blowfish
/sasl save
/connect freenode

tada!, you should be get connected to freenode using tor hidden service.

References:
[1] https://www.torproject.org/docs/tor-doc-unix.html.en
[2] http://freenode.net/sasl/cap_sasl.pl

More References:

http://blog.freenode.net/2010/01/connecting-to-freenode-using-tor-sasl/

https://trac.torproject.org/projects/tor/wiki/doc/TorifyHOWTO/IrcSilc

http://socketready.com/2011/03/08/connect-to-freenode-with-irssi-over-tor/


Stop SOPA