HowTo: Cómo ver la fecha de creación de un archivo en GNU & Linux

Estuve buscando al respecto y, como siempre, encontré mucho menso que dice “eso no se puede!”. De hecho, encontré un artículo que afirmaba “Nunca se guardan las creation time en Linux!”.

En todo caso, no es “en Linux”; es “en $X filesystem”. Por favor, no leas todo lo que crees! ;=)

En Fedora 15; con Ext4:

# debugfs -R 'stat /home/renich' /dev/mapper/VolGroup-lv_root
debugfs 1.41.12 (17-May-2010)
Inode: 790722 Type: directory Mode: 0700 Flags: 0x80000
Generation: 1467162353 Version: 0x00000000:00000ac0
User: 500 Group: 500 Size: 4096
File ACL: 0 Directory ACL: 0
Links: 16 Blockcount: 8
Fragment: Address: 0 Number: 0 Size: 0
ctime: 0x4e18d1bd:6e06c460 -- Sat Jul 9 17:10:05 2011
atime: 0x4e18d09c:973d18a8 -- Sat Jul 9 17:05:16 2011
mtime: 0x4e18d1bd:6e06c460 -- Sat Jul 9 17:10:05 2011
crtime: 0x8bb9e78e:3567dd9c -- Sun Mar 8 14:09:30 1908
Size of extra inode fields: 28
Extended attributes stored in inode body:
selinux = "unconfined_u:object_r:user_home_dir_t:s0\000" (41)
EXTENTS:
(0): 3154530

p.d. eso de que mi crtime (creation time) es 1908 es porque, mi servidor (basura1); el cual, mi hermano, encontró en la basura; en la colonia Chapalita; de Guadalajara, Jalisco, México; no tiene batería en su motherboard y se reseteaba la hora a 1908 a cada rato.

p.d. no sé porqué a 1908 y no 1970…

HowTo: Cómo agrego un usuario efectivamente a un grupo?

Bueno, generalmente; cuando estás colaborando con otros usuarios, necesitas grupos en común. Una forma efectiva de hacer esto sería:


# Crear el grupo
groupadd webdev

# Ponerle un password al grupo
gpasswd webdev

# Restríngelo
gpasswd -R webdev

# Luego, un usuario, para entrar, debe aplicar para ser miembro
newgrp webdev

# O, también, puedes agregarlo manualmente
gpasswd -M renich webdev

# Y, si lo deseas, nombrar a algún administrador
gpasswd -A renich webdev

Lo chido es que, cuando creas un grupo y agregas usuarios de esta manera, los permisos se vuelven efectivos inmediatamente; no necesitas hacer logout/login para nada.

# Referencias
man gpasswd
man newgrp

HowTo: Cómo conectarte a AxtelConmigo desde Fedora 15

Ah, qué chido y qué fácil!

Primero, este servicio es la onda. Te permite conectarte desde cualquier dispositivo con un SIP a tu teléfono y recibir o marcar desde ahí!

La onda es registrarse en AxtelConmigo y tener una línea axtel (obviamente)

Luego, viene lo interesante:

# Abres una cuenta SIP en tu empathy. Asegúrate de instalar la extensión: telepathy-sofiasip para que te dé esta onda
su -c 'yum install telepathy-sofiasip'

# Ahora, empathy te preguntará por tu usuario y contraseña. Al mismo tiempo, al registrarte, Axtel te mandó tu info. Bueno, ahí te va como ponerlo.

username: @
password:

Hecho ésto, no hay nada más que configurar. Puedes usar tu línea Axtel desde cualquier parte del mundo y/o recibir llamadas a tu laptop, pc, dispositivo sin costo alguno… siempre y cuando tengas internet.

Para mí, esto es la onda ;=)

VoIP de Axtel con Fedora 15

Empathy configurado para usar mi línea axtel

introbella is on the move!

Oh yeah! I really like making this announcement.

introbella is on it! We’re making new songs and we’re gonna be releasing everything in english from now on! World, get ready for some really cool music!

Our newest project is to compose a few EPs. 4-6 songs per album and let you have them via our website and jamendo’s corner.

Our newest draft is here. Check it out if you like. Send contributions if feeling like it.

What? Don’t know how to contribute? How about:

- Correcting/Augmenting the lyrics.
- Sending some samples/solo/arrangements
- Send a structure proposal
- Traducitons to other languages
- Providing artwork for that theme.
- Buy and donate introbella.org
- Give us an instance at CloudSigma for our server needs ;)

This is our project and it’s 100% CC-BY-SA and FOSS related. We love doing this and we want to share it in any way possible.

SPECS

Audio should be send in 48 kHz @ 24bit please.
Text should be sent on TXT format (UTF-8)
Artwork should be sent on open formats and made with FOSS (Gimp, Inkscape, etc)… no Photoshop!! yuck!

Damn, we might provide repos in the future! Who knows! For the time bing, here’s the info you need:

# website

http://introbella.com/

# Jamendo

http://jamendo.com/artist/introbella

# Downloads

http://introbella.com/downloads

Disco de introbella en lugar #367 en Jamendo!

Wuju!

Me da gusto anunciar que introbella está en el lugar #367 de Jamendo!

Digo, ya van llegando a 50,000 discos publicados y, el que nuestra banda; que es Creative Commons y de Guadalajara, llegue a tal posición merece una auto-felicitación!

Nos mega felicito! Ponemos a México y a Guadalajara en un mapa mundial y exportamos la cultura al mundo para contribuir a la mezcla de la gran piedra flotante del sistema solar!

A webo! Apoya, puto(a)!

# Album de introbella en Jamendo

http://www.jamendo.com/en/album/89261

p.d. Y, recuerda, descarga, remezcla, redistribuye y todo lo que quieras sin problemas! Solo tienes que decir de quién es el trabajo original! ;)

BoxGrinder 0.9.2 soporta a CloudSigma!

Qué buena noticia!

Hoy me contactó Robert para darme la buena noticia!

No sabes qué es BoxGrinder?! Es una madre para crear servers en la nube; con un simple comandito y una definición.

Te invito a ver el tutorial que pongo al fondo. Está de mega-pelos. Así, puedes crear servers en CloudSigma en un ratito!

Y, lo bueno, es que está en Fedora!.. .bueno, casi… al momento de escribir esto, está la versión 0.9.2… pero eso cambia en unos días, ya que; me informa Marek, que está en testing ya! ;)

Gracias Marek Goldmann por la corrección… ;=)

# Fuente

http://boxgrinder.org/blog/2011/05/19/cloud-sigma-delivery-support/

# CloudSigma
http://cloudsigma.com/

HowTo: Deploy using git

This one is not mine. It’s, actually, a transcript. Please, check out the source at the bottom

#
# Local
#

# Create a website
mkdir website && cd website
git init
echo 'Hello, world!' > index.html
git add index.html
git commit -q -m "The humble beginnings of my web site."

# add remotes
git remote add deploy-production ssh://server.example.org/var/lib/git/deploys/production/website.deploy

# AFTER setting up remote, push files
git push deploy-production +master:refs/heads/master

# update
git push deploy-production

#
# Remote
#

# the repo
mkdir example.org.deploy && cd example.org.deploy
git init --bare

mkdir /var/www/www.example.org
cat < < EOF > hooks/post-receive
#!/bin/sh
GIT_WORK_TREE=/var/www/www.example.org git checkout -f
EOF

# make the hook executable
chmod +x hooks/post-receive

# Notes
Setting receive.denycurrentbranch to “ignore” on the server eliminates a
warning issued by recent versions of git when you push an update to a
checked-out branch on the server.

# src

http://toroid.org/ams/git-website-howto

HowTo: Change upload_max_filesize on a standard DreamHost account

Ok, recently, a good friend, needed some help. He wanted to change the upload_maz_filesize value of his DreamHost account but was so frustrated when he learned that .htaccess files don’t work for him…

It is simple: you’re using FastCGI and you should be using .user.ini files to set php values and not .htaccess.

So, the answer was to type this into a .user.ini file. Remember the dot (.) before user.ini ok?!
upload_max_filesize = 50M

Make sure you’re using FastCGI in your domain’s settings. Also, be patient. This setting is cacheable and might take a few minutes/hours to get read. Mine took 4-5 mins at most.

Things to look out for:

- If apache has a limited post option, change that using an .htaccess
- Remember to change the post value in .user.ini for PHP too, ok? I’ll let you google that yourself.
- Check your values with a test.php file and

<?php phpinfo(); ?>

in it! Remember to delete it once done!

Anyway, I hope this helps.

p.s. this post was made in english due to the huge amount of idiots found by google when searched for. Those guys compile their own php into a local folder… damn guys!

And, remember to give my email: renich AT woralelandia DOT com when you go for an account @ DreamHost ok? ;)