martes, 22 de enero de 2013

Anadir iconos en el area de notificación de Ubuntu Unity

Una de las pegas que podemos encontrar en el escritorio Unity de Ubuntu, es la imposibilidad de poner iconos en el systray. 
Systray es la barrita en donde nos aparece el reloj, la notidficacioón del correo y de otras aplicaciones.

Quienes nos dedicamos a esto de administrar sistemas, usamos nagstamon y nos gusta que esté siempre visible para controlar las alertas que nos puedan surgir. Pero al no poderse poner en la systray no lo vemos.

La solución es facil.
Ejecutamos desde el terminal esta linea:

gsettings set com.canonical.Unity.Panel systray-whitelist "['all']"

y ya podemos poner en la configuracion de nagstamon que aparezca  en el systray y listo.

Con la linea anterior dejamos que todas las aplicaciones puedan escribir en ese area. Si decidimos que en lugar de todas las applicaciones aparezcan podemos enumerar aquellas que nos interesen...

gsettings set com.canonical.Unity.Panel systray-whitelist "'Nagstamon', 'Wine', 'Skype', 'cualquier_app']"










viernes, 9 de noviembre de 2012

Error en la instalación de wiki


Problema:
PHP Fatal error:  Class 'DOMDocument' not found in /var/www/html/mz11sistemas/mediawiki-1.20.0/includes/LocalisationCache.php on line 542, referer: http://wiki.mz11sistemas.com/

Solucion:
yum install php-xml
Restart apache
/etc/init.d/httpd restart

jueves, 1 de noviembre de 2012

Eliminar publicidad de Amazon de las busquedas locales en Ubuntu 12.10

El nuevo ubuntu 12.10 viene entre otras con una novedad un poco molesta. Cuando hacemos una busqueda en el Dash Home entre los resultados nos salen publicidad de productos de amazon.

Para eliminar esto solo tenemos que desinstalar el paquete unity-lens-shopping

Facil:

Abrimos el terminal y escribimos.

sudo apt-get remove unity-lens-shopping

Cerramos sesión y al logearnos y hacer una nueva busqueda ya no tendremos nada de Amazon.




martes, 7 de agosto de 2012

Google doodles



A doodle is a basic draw that anybody do aimlessly since waste time. In a piece of paper, a napkin, or something like that.
But since several mount ago google, the most visited searcher of the world, doodle has another meaning.
Every single day google draw a new logo in him home page that represent relevant news or events of the day.

Here we have the amazing full list of this doodles:

https://www.google.com/doodles



sábado, 28 de julio de 2012

Remove spaces from several filenames

I need to make a backup in a linux server of several files created by MS Windows system. This files has spaces in the filename.  As a linux doesn't like spaces in the filenames I decided to change those filenames to another that has a underscore replacing the spaces.

Here we go:

We go to the directory were have the files to change and execute this comand:

for a in * ; do b=`echo $a |sed 's/ /_/g'` ; echo "$a" " ---> ""$b" ; mv -f "$a" "$b" ;done

The command doesn't change the files that hasn't spaces, it gives as
mv: 'fileswithoutspace' and 'fileswithoutspace' are the same file

So don't worry about that.





viernes, 27 de julio de 2012

Remove PHP version 5.1.6 and install PHP 5.3.3

I have a problem in a wordpress installation that I found in a server of a client.
Somebody install a apache server.

httpd -v
Server version: Apache/2.2.3


It was a standard installation from yum.

WordPress 3.3.1 was installed too.

The problem was a diferent PHP version and I got this error

Your server is running PHP version 5.1.6 but WordPress 3.3.1 requires at least 5.2.4.

The server was unnused due to this incident never works fine so I don't waste time trying to update the php version.

Stop apache:
/etc/init.d/httpd stop

Remove al the php packages
yum remove php*

Install new version of PHP
yum install php53 php53-cli php53-common php53-gd php53-imap php53-intl php53-mbstring php53-mysql php53-odbc php53-pdo php53-pspell php53-snmp php53-xml php53-xmlrpc

Start apache:
/etc/init.d/httpd start

Working fine!!




sábado, 28 de abril de 2012

Descomprimir un archivo .rar en Centos, RedHat, Fedora...

Es facil:

wget ftp://rpmfind.net/linux/dag/redhat/el4/en/i386/dag/RPMS/unrar-4.1.4-1.el4.rf.i386.rpm

rpm -Uvh unrar-4.1.4-1.el4.rf.i386.rpm

Si nuestro sistema es de 64 bits o queremos instalar otra versión de unrar, podemos descargalo de aquí.

 http://rpmfind.net/linux/rpm2html/search.php?query=unrar

Ejemplos:
Vemos el contenido del archivo:

 unrar l archivo1.rar


Extraemos el archivo al directorio actual:

 unrar l archivo1.rar

Otras opciones del comando, como siempre podemos recurrir a:

 man unrar