Skip to content

Finally an XBox

Well I finally got my xBox, 😀

First screenshoter victim

Alejandro Sanchez has installed the most recent version of Screenshoter, you can look at it here.

I died and gone to heaven

wrox p2p forums
Today I found wrox p2p forums, and they are as great as his books.

Screenshoter

UPDATE:Aparently the FTP version doesn’t works behind a firewall, so, I made an ssh version, enjoy.

Yesterday I made a little script to take screenshots and upload them using ssh, now I remade the whole thing and changed it for FTP (for a much more general support), and added a very basic server side script to present the screenshots.

I leave it here for you guys, have fun an please send me your comments: Screenshoter

You can see server side script working at http://levhita.net/screenshots/.

Que cosa más rara…

Hoy quise probar KDE, algo había oído de que sera muchísimo más personalizable y con más opciones que Gnome así que hice la prueba.

Efectivamente tiene muchas opciones y además grandiosos efectos gráficos out of the box, pero cosa curiosa, una vez que instalé KDE , haciendo:

#sudo aptitude install kubuntu-desktop

Mi Gnome dejo de funcionar completamente.

Al final no me convenció KDE y me arriesgué a desinstalarlo sin saber a la segura si eso me devolvería a mi Gnome, por suerte como pueden ver aqui, todo volvió a la normalidad.

PD: ¿alguien sabe donde canijos encuentro los logs de errores de Gnome como para averiguar que canijos sucedió?

Playing around with Screenshots and SSH Servers

During the weekend I find out an Enlightenment epplet that allowed me to take an screenshot and upload it to a FTP server. But it wasn’t working quite right. So I made my own scripts.

Of course I use other already existant software, make sure you have this packages installed before continue.

  • ssh
  • scrot

And of course ssh access in your server, preferently passwordless access using public key authentication (ok, if you have all this you probably can make your own script).

It’s pretty simple actually, first you must create a directory tree like this (for the moment just follow the instructions, you can play with it later):

# mkdir ~/screenshot
# mkdir ~/screenshot/images
# mkdir ~/screenshot/thumbnails

The first script would be called screenshot.sh (and you must chmod it to 700)

#!/bin/bash
cd ~/screenshot/
scrot -t 20 '%Y-%m-%d-%H-%M-%S.jpg' -e 'mv $f images/; mv $m thumbnails/; ./uploader.sh $f $m'

It takes the screenshot on jpg format, include a thumbnail of 20% the original size, move this files to images and thumbnails, and run the uploader.sh script.

#!/bin/bash
host=levhita.net
user=levhita
dir=levhita.net/screenshot
scp images/$1 $user@$host:$dir/screenshot.jpg
scp thumbnails/$2 $user@$host:$dir/thumbnail.jpg

I use public key authentication so I don’t need to provide a password, make your own tests if you don’t have this.

The script copy the given files ($1 and $2) to the given directory on the given host. Really simple.

I splited the screenshot taker and the uploader script to simplify the implementation of further uploaders. A ftp and cURL uploader would be nice, for the moment this make the job for me (and any other ssh-public-key-authenticated user)

Finally I made a symbolic on /usr/bin/

# cd /user/bin/
# sudo ln -s /home/user/screenshot/screenshot.sh

And a launcher on my gnome applet, so I only click the launcher and I have an updated screenshot on my blog, like this one below.

screenshot working!

New face of levhita.net

The first thing I did when I bought levhita.net was to make a temporal welcome page that redirected users to the only valid subdomain in that time. blog.levhita.net.

Now I have several projects going on and I think that a it deserves a new Welcome page with links to all of them.

So, a new welcome page has been done, go and see the new levhita.net, there is a lot of things that you probably didn’t knew I had in my hosting (and I still have some more things hidden around).

Microsoft y Yo, no nos llevamos.

Hace un par de días intente usar Windows para diseñar un poco en CorelDraw. El resultado: no aguante ni 10 minutos bajo Windows, mejor reinicie eh hice todo en el buen Inkscape bajo Linux.

Está mala racha parece continuar, el xBox tan esperado… bueno, pues se chingo la fuente con una baja de luz en mi casa y ahora mismo está en el taller donde le reemplazarán la fuente por 200 pesos, claro también tendré que comprar un regulador si realmente deseo jugar en mi casa, otros 250 pesos (aprox). ahora sí que el XBox se salio de mi presupuesto de cumpleaños (demonios!).

He llegado a la conclusión de que Microsoft no me quiere, pues que así sea, a fin de cuentas yo tampoco los quiero…

Bueno tal vez un poquito porque si no fuera por Microsoft no tendría trabajo haciendo las cosas que sus productos simplemente no pueden hacer, abur!!

xBox!!!, con un corto….

Pues como lo leen, mi xBox venia con un corto y tendré que ir a cambiarlo el día de hoy.

Lastima, no pude jugar nada ayer, pero me pondré a mano hoy :D.

Me ruge la tripa!!

O como diría Frank:

“Mi intestino grueso se está comiendo al delgado”