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/

Remote Apps, Local GUI on Windoze (Cygwin+X-Server)

By tonyskapunk May 27th, 2011, under desktop, linux, ñu, OS, shell, syslinux

Long time ago a friend of mine showed me how to run locally the GUI of a remote application with cygwin[1], a couple of weeks ago a request in my job required a X server on the server which sounded like a bad idea to me, this is a cleaner approach to run those apps that require a display, when you are running a windoze.

Installation:

  1. Download the cygwin setup binary from here[2].
  2. Open the Cygwin Setup and select the following packages to install.
      openssh
      xorg-server
      xhost
      xinit
      x-start-menu-icons
      twm

Configuration:.

  1. You need your local IP, remote IP
  2. Open cygwin and run startx this will start your X-Server locally.
  3. Run: xhost +<remoteIP> on the shell opened by the X-Server.
  4. Connect to the remote server: ssh -X -l<user> <remoteIP>.
  5. Export your local display on the remote Server: export DISPLAY=<localIP>:0.0
  6. Run a graphical application that will be displayed on your local X-Server and Enjoy the Graphical Interface of a remote process in your locally

For troubleshooting/clarification, read the man pages of ssh, xhost and xserver.

[1] http://www.cygwin.com
[2] http://cygwin.com/setup.exe

Planeta Linux

By tonyskapunk April 25th, 2011, under blog, linux, ñu, OS, wordpress

Y despues de un tiempo, finalmente el feed de este blog[1] esta en Planeta Linux[2] en su sección México.

  • [1] http://blog.tonyskapunk.net
  • [2] http://planetalinux.org

Flisol 2011 Ags – Puppet

By tonyskapunk April 9th, 2011, under centos, debian, fedora, gnu, linux, puppet, redhat, ruby, ubuntu

Estoy a un par de horas de hablar sobre Puppet en FLISOL 2011 en Aguascalientes, México[1] muy emocionado de poder hacerlo, dejo aquí el documento que estaré utilizando durante la presentación, todo el material de uso para el taller esta disponible en github[2], comparto más ligas sobre el evento[3].

Happy SysAdmin w/ Puppet

[1] http://flisol.info
[2] https://github.com/tonyskapunk/puppet-flisol  https://github.com/tonyskapunk/repos
[3] http://www.pinguinos.org.mx http://www.tequilavalley.com/2011/03/30/flisol-aguascalientes-2011

 


Stop SOPA