20110629

LibreOffice was unable to find a working e-mail configuration.

LibreOffice es una peaso de suite ofimatica, pero eso no significa que funcione sóla. Para adaptarla a nuestro sistema debemos realizar determinadas configuraciones.
Si al intentar enviar un archivo de LibreOffice pulsando sobre el icono de la aplicación aparece el siguiente error:
LibreOffice was unable to find a working e-mail configuration.
Please save this document locally instead and attach it from within your e-mail client.

Sólo tienes que seguir estos sencillos pasos para vincular tu cliente de email favorito con este peaso de suite ofimática.
1.- Ir a: Herramientas -> Opciones -> Internet -> E-mail
2.- Introducir la ruta de tu cliente de email preferido.

LibreOffice is a great office suite, but we have to make some configurations to use its whole power.
If you're trying to send a document by email clicking on the icon into LibreOffice and get the following error:
LibreOffice was unable to find a working e-mail configuration.
Please save this document locally instead and attach it from within your e-mail client.

You only have to follow these easy steps:
1.- Go to: Tools -> Options -> Intenet -> E-mail
2.- Enter the path of your favorite email client.

PS. I know, I know. My English is not good enought but, the more you help me, the more I learn.

20110625

Error actualizando el paquete ubufox - Error upgrading the ubufox package

Hoy me he desayunado con una actualización de Ubuntu/Kubuntu que no quería funcionar. Días atrás el sistema actualizó Mozilla Firefox de su versión 4 a la 5 (otros que han entrado en la carrera de las release versions) y funcionó a la perfección, pero hoy, al actualizar el paquete ubufox obtenía el siguiente error:
bdispatcher@laptop:~$ sudo apt-get upgrade
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias      
Leyendo la información de estado... Hecho
Se actualizarán los siguientes paquetes:
  ubufox
1 actualizados, 0 se instalarán, 0 para eliminar y 0 no actualizados.
8 no instalados del todo o eliminados.
Se necesita descargar 0B/58,3kB de archivos.
Se utilizarán 319kB de espacio de disco adicional después de esta operación.
¿Desea continuar [S/n]? s
(Leyendo la base de datos ...  00%
209465 ficheros y directorios instalados actualmente.)
Preparando para reemplazar ubufox 0.9-0ubuntu1~mfs~lucid1 (usando .../ubufox_0.9.1-0ubuntu0.10.04.1~mfn3_all.deb) ...
Desempaquetando el reemplazo de ubufox ...
dpkg: error al procesar /var/cache/apt/archives/ubufox_0.9.1-0ubuntu0.10.04.1~mfn3_all.deb (--unpack):
 intentando sobreescribir `/etc/xul-ext/ubufox.js', que está también en el paquete xul-ext-ubufox 0:0.9-0ubuntu1~mfs~lucid1
Se encontraron errores al procesar:
 /var/cache/apt/archives/ubufox_0.9.1-0ubuntu0.10.04.1~mfn3_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Según creo entender, parece que a los mantenedores los paquetes ubufox y xul-ext-ubufox se les ha colado el fichero /etc/xul-ext/ubufox.js, y no gestionan bien la existencia del mismo.
Así que ante mi desconocimiento, he mirado a ver que era dada uno de estos paquetes:
bdispatcher@laptop:~$ apt-cache show ubufox
Package: ubufox
Priority: optional
Section: web
Installed-Size: 352
Maintainer: Ubuntu Mozilla Team <ubuntu-mozillateam@lists.ubuntu.com>
Architecture: all
Version: 0.9.1-0ubuntu0.10.04.1~mfn3
Recommends: firefox | abrowser
Provides: abrowser-ubufox, firefox-ubufox, xul-ext-ubufox
Depends: apturl (>= 0.1.2ubuntu1) | apturl-kde
Enhances: abrowser, firefox
Filename: pool/main/u/ubufox/ubufox_0.9.1-0ubuntu0.10.04.1~mfn3_all.deb
Size: 58306
MD5sum: 5e1b720cd3562e9c014d5e40c7aaccfa
SHA1: 81b36748905c704d62ab34c39856dc9f942836a4
Description: Ubuntu Firefox specific configuration defaults and apt support
 Extension package for Firefox provides ubuntu specific configuration defaults
 as well as apt support for firefox plugins/extensions.
 .
 You can uninstall this package if you prefer to use a pristine firefox
 install.
[...]

bdispatcher@laptop:~$ apt-cache show xul-ext-ubufox
Package: xul-ext-ubufox
Source: ubufox
Priority: optional
Section: web
Installed-Size: 336
Maintainer: Ubuntu Mozilla Team <ubuntu-mozillateam@lists.ubuntu.com>
Architecture: all
Version: 0.9-0ubuntu1~mfs~lucid1
Recommends: firefox | abrowser
Replaces: ubufox (<< 0.9~rc2-0ubuntu3)
Provides: abrowser-ubufox, firefox-ubufox, ubufox
Depends: apturl (>= 0.1.2ubuntu1) | apturl-kde
Enhances: abrowser, firefox
Breaks: ubufox (<< 0.9~rc2-0ubuntu3)
Filename: pool/main/u/ubufox/xul-ext-ubufox_0.9-0ubuntu1~mfs~lucid1_all.deb
Size: 55138
MD5sum: Descriptionfbabfde31f15e6db5c665f975716db5f
SHA1: 22127c90b755a83139cf80b007a6c94e0d296878
Description: Ubuntu-specific configuration defaults and apt support for Firefox
 Adds Ubuntu-specific modifications to Firefox.
 .
 Integrates the browser with Ubuntu to:
 * Enable searching for missing plugins from Ubuntu software catalog
 * Add the following options to the Help menu
 - Get help on-line
 - Help translating Firefox
 - Ubuntu Release Notes
 * Set homepage to Ubuntu Start Page
 * Display a restart notification after upgrading Firefox
 * Add ask.com to the search engines.
 .
 You can uninstall this if you prefer to use a pristine Firefox install


Así que visto lo visto, pensando que pudiendo prescindir de los dos, si tengo que elegir uno a eliminar es xul-ext-ubufox, y entendiendo que este error de dependencias lo subsanarán más bien pronto, procedo a desinstalarlo.
sudo apt-get remove xul-ext-ubufox

Ahora ya se instala ubufox sin problema.

Last days my Ubuntu/Kubuntu laptop had updated the Mozilla Firefox from the 4 to 5 release version (It seems that they had joined the release version race too).
Today I had to deal with the following error update the ubufox package:
bdispatcher@laptop:~$ sudo apt-get upgrade
Reading package list... Done
Building dependency tree
Reading state information... Done

The following packages will be upgraded:
  ubufox
1 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
8 not fully installed or removed.
Ned to get 0B/58,3kB de archives.
After unpaking 319kB of additional space will be used.
Do you want to continue [Y/n]? y
(Reading database ...  00%
209465 files and directories currently installed.)
Preparing to replace ubufox 0.9-0ubuntu1~mfs~lucid1 (using .../ubufox_0.9.1-0ubuntu0.10.04.1~mfn3_all.deb) ...
Unpacking replacement ubufox ...
dpkg: error proccessing /var/cache/apt/archives/ubufox_0.9.1-0ubuntu0.10.04.1~mfn3_all.deb (--unpack):
 trying to overwrite `/etc/xul-ext/ubufox.js', which is also in package xul-ext-ubufox 0:0.9-0ubuntu1~mfs~lucid1
Error were encountered while processing:
 /var/cache/apt/archives/ubufox_0.9.1-0ubuntu0.10.04.1~mfn3_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

In my opinion the mantainer had made a little mistake with the file /etc/xul-ext/ubufox.js, in the ubufox and the xul-ext-ubufox packages.
So I took a look to get some info of this packages:
bdispatcher@laptop:~$ apt-cache show ubufox
Package: ubufox
Priority: optional
Section: web
Installed-Size: 352
Maintainer: Ubuntu Mozilla Team <ubuntu-mozillateam@lists.ubuntu.com>
Architecture: all
Version: 0.9.1-0ubuntu0.10.04.1~mfn3
Recommends: firefox | abrowser
Provides: abrowser-ubufox, firefox-ubufox, xul-ext-ubufox
Depends: apturl (>= 0.1.2ubuntu1) | apturl-kde
Enhances: abrowser, firefox
Filename: pool/main/u/ubufox/ubufox_0.9.1-0ubuntu0.10.04.1~mfn3_all.deb
Size: 58306
MD5sum: 5e1b720cd3562e9c014d5e40c7aaccfa
SHA1: 81b36748905c704d62ab34c39856dc9f942836a4
Description: Ubuntu Firefox specific configuration defaults and apt support
 Extension package for Firefox provides ubuntu specific configuration defaults
 as well as apt support for firefox plugins/extensions.
 .
 You can uninstall this package if you prefer to use a pristine firefox
 install.
[...]

bdispatcher@laptop:~$ apt-cache show xul-ext-ubufox
Package: xul-ext-ubufox
Source: ubufox
Priority: optional
Section: web
Installed-Size: 336
Maintainer: Ubuntu Mozilla Team <ubuntu-mozillateam@lists.ubuntu.com>
Architecture: all
Version: 0.9-0ubuntu1~mfs~lucid1
Recommends: firefox | abrowser
Replaces: ubufox (<< 0.9~rc2-0ubuntu3)
Provides: abrowser-ubufox, firefox-ubufox, ubufox
Depends: apturl (>= 0.1.2ubuntu1) | apturl-kde
Enhances: abrowser, firefox
Breaks: ubufox (<< 0.9~rc2-0ubuntu3)
Filename: pool/main/u/ubufox/xul-ext-ubufox_0.9-0ubuntu1~mfs~lucid1_all.deb
Size: 55138
MD5sum: Descriptionfbabfde31f15e6db5c665f975716db5f
SHA1: 22127c90b755a83139cf80b007a6c94e0d296878
Description: Ubuntu-specific configuration defaults and apt support for Firefox
 Adds Ubuntu-specific modifications to Firefox.
 .
 Integrates the browser with Ubuntu to:
 * Enable searching for missing plugins from Ubuntu software catalog
 * Add the following options to the Help menu
 - Get help on-line
 - Help translating Firefox
 - Ubuntu Release Notes
 * Set homepage to Ubuntu Start Page
 * Display a restart notification after upgrading Firefox
 * Add ask.com to the search engines.
 .
 You can uninstall this if you prefer to use a pristine Firefox install

No I have some more info about these packages I decide to remove the xul-ext-ubufox, while wait to the maintainer solution:
sudo apt-get remove xul-ext-ubufox

Now you can install ubufox without any problem.

PS. I know, I know. My English is not good enought but, the more you help me, the more I learn.

Editando:
He seguido leyendo y he encontrado esta otra solución:
1.- busca dentro de la caché de tu sistema el paquete ubufox:
find /var/cache/apt/ -name "ubufox*"

2.- instálalo con este comando:
sudo dpkg -i --force-overwrite _path_to_ubufox_package

3.- repara las dependencias:
sudo apt-get install -f

Y listo!!

Edditing:
I kept on reading and found another solution.
1.- look for the ubufox package into your system cache folder:
find /var/cache/apt/ -name "ubufox*"

2.- install the package using this command:
sudo dpkg -i --force-overwrite _path_to_ubufox_package

3.- run the following command to fix dependencies:
sudo apt-get install -f

And it's done!!!

20110622

Cisco Unified Communications Manager uptime

Estos días me ha surgido la necesidad de saber el tiempo que está levantado el CUCM y como no sabía, pues me ha tocado buscar.
La respuesta es, después de loguearnos como terminal, así de sencilla:
show status

Y el resultado así de completo:
Host Name    : CUCM
Date         : Wed Jun 22, 2011 09:34:37
Time Zone    : Central European Time (Europe/Madrid)
Locale       : en_US.UTF-8
Product Ver  : 7.1.5.10000-12
Platform Ver : 2.0.0.1-1
License MAC  : XXXXXXXXXXXX

Uptime:
 09:34:38 up 3 days, 22:09,  1 user,  load average: 0.17, 0.17, 0.11

CPU Idle:   99.50%  System:   00.00%    User:   00.00%
  IOWAIT:   00.50%     IRQ:   00.00%    Soft:   00.00%   Intr/sec: 1041.58

Memory Total:        2073224K
        Free:          25336K
        Used:        2047888K
      Cached:         643768K
      Shared:              0K
     Buffers:          15332K

                        Total            Free            Used
Disk/active         43453524K       31417244K       11594816K (27%)
Disk/inactive       43453556K       41163844K          82384K (1%)
Disk/logging       151179108K      121679304K       21820336K (16%)

Those days I had to check how long my CUCM was up and running, and after some tries, here is the solution:
show status

And here is the output:
Host Name    : CUCM
Date         : Wed Jun 22, 2011 09:34:37
Time Zone    : Central European Time (Europe/Madrid)
Locale       : en_US.UTF-8
Product Ver  : 7.1.5.10000-12
Platform Ver : 2.0.0.1-1
License MAC  : XXXXXXXXXXXX

Uptime:
 09:34:38 up 3 days, 22:09,  1 user,  load average: 0.17, 0.17, 0.11

CPU Idle:   99.50%  System:   00.00%    User:   00.00%
  IOWAIT:   00.50%     IRQ:   00.00%    Soft:   00.00%   Intr/sec: 1041.58

Memory Total:        2073224K
        Free:          25336K
        Used:        2047888K
      Cached:         643768K
      Shared:              0K
     Buffers:          15332K

                        Total            Free            Used
Disk/active         43453524K       31417244K       11594816K (27%)
Disk/inactive       43453556K       41163844K          82384K (1%)
Disk/logging       151179108K      121679304K       21820336K (16%)

PS. I know, I know. My English is not good enought but, the more you help me, the more I learn.

20110609

Linux: Montar unidades de red en el inicio - Linux: Mount network shared folders on logon

Hoy en día es raro quién en el trabajo no tiene que acceder a varios recursos compartidos en red, como unidades departamentales o de usuario.
Para aquellos que usan Microsoft Windows como cliente y sobre todo si acceden a un dominio de Active Directory, lo tienen fácil con los scripts de inicio del recurso compartido de dominio netlogon. Basta con añadir una línea:
net use unidad: \\servidor\recurso

por cada uno de los recursos que queremos mapear en nuestro equipo, y ya está. Por ejemplo:
net use u: \\fileserver01\bdispatcher

Sin embargo si tu caso es como el mío y utilizas GNU/Linux como cliente, quizás todavía no sepas como hacerlo. En una entrada anterior, explicaba cómo crear scripts de login y logout en KDE, así que bastaría con crear un script para montar las unidades al inicio, y otro para desmontarlas al cerrar la sesión. Si las unidades que quieres montar pertenecen a recursos compartidos tipo SMB/CIFS, podemos usar el comando smbmount del siguente modo:
smbmount //servidor/recurso ruta_local -o opciones

como por ejemplo:
smbmount //fileserver01/bdispatcher ~/network/bdispatcher -o credentials=~/data.cred,iocharset=utf8

Con esta línea montamos el recurso bdispatcher del servidor fileserver01 en el directorio ~/network/bdispatcher usando las credenciales del fichero ~/data.cred y usando el UTF8 como juego de caracteres.
En el script de cierre de sesión podemos utilizar el comando smbumount para desmontar las unidades con la sintaxis:
smbumount ruta_local

por ejemplo:
smbumount ~/network/bdispatcher

Para más información sobre estos comandos, ya sabes man!

Nowadays it's weird to find someone who doesn't work with some shared network resources like departament or user units.
For those who use Microsoft Windows as desktop and Active Directory it's easy to map this resources using the netlogon scipts. Simply adding a line:
net use unidad: \\server\shared

for each shared resource and it's done. For example:
net use u: \\fileserver01\bdispatcher

But if you are one of those who use GNU/Linux as desktop, maybe you don't know how to do that. On a previous post I explained how to use login and logout scripts in KDE, so you only have to write a login script to mount and a logout script to umount the network shares. If the network shares are SMB/CIFS, you can use the command smbmount in this way:
smbmount //server/shared local_path -o options

for example:
smbmount //fileserver01/bdispatcher ~/network/bdispatcher -o credentials=~/data.cred,iocharset=utf8

With this line we can mount the bdispatcher resource from the server fileserver01 on the directory ~/network/bdispatcher using the credentials file ~/data.cred and UTF8 as the characters set.
In the logout script we can use smbumount to umount the shares with the syntax:
smbumount local_path

eg:
smbumount ~/network/bdispatcher

For more and better info about these commands, you know man!

PS. I know, I know. My English is not good enought but, the more you help me, the more I learn.

20110602

KDE: scripts de login y logout - KDE: login and logout scripts

Si alguna vez te has preguntado donde y cómo narices se colocan los scripts para que se ejecuten al inicio y cierre en los sistemas con entorno de escritorio K (KDE), aquí tienes la respuesta:
 - Ruta de scripts de inicio (login): ~/.kde/Autostart
 - Ruta de scripts de cierre (logout): ~/.kde/shutdown

Estas rutas por defecto, pueden cambiarse en las Preferencias del sistema => Acerca de mi => Rutas.
También pueden administrarse los programas y scripts de inicio y parada desde Preferencias del sistema => Avanzado => Autoarranque donde encontraremos las opciones Añadir programa y Añadir script.

En la ayuda de KDE encontrarás más información al respecto. 

If you ever wondered about where and how you have to put your login and logout scripts in systems with the K desktop environment (KDE) here you have the answer:
 - Login script path: ~/.kde/Autostart
 - Logout script path: ~/.kde/shutdown

You can change these default paths in  System settings => About me => Paths.
You also can manage the login and logout scripts and programs in System settings => Advanced => Autostart where you'll find the Add program and Add script options.

You'll find more info about it in the KDE help.

PS. I know, I know. My English is not good enought but, the more you help me, the more I learn.

20110601

SQL Server database offline

Sinceramente, no tengo ni p*** idea de Microsoft SQL Server, y hoy me ha tocado trillar de rebote un servidor de estos. La cosa es que hay un cenagal de BDD de narices y no se sabe si se están utilizando o no, y ¿cómo me han dicho que lo resuelva? Pues poniendo offline las bases de datos y ya se quejará algo o alguien que acceda a esto y yo, 'como soy muy obediente', pues me he puesto manos a la obra.
Después de buscar un poco, y haciendo uso de los Microsoft SQL Server books online, gran fuente de documentación, he visto que:
Para cambiar el estado de una BDD a offline:
alter database database_name set offline;

Para consultar el estado de las bases de datos:
select name, state_desc from sys.databases;

Podéis encontrar una descripción detallada de alter database en los books online.
I have no f****ing idea about Microsoft SQL Server, and today I have to deal with it. There's a Microsoft SQL Server administred by third people but I've been ordered to chage the state of some DB to offline.
Few minutes after look for the way to do that and using the great, great Microsoft SQL Server books online, I have read that:
To change the DB state to offline:
alter database database_name set offline;

To query the DB state:
select name, state_desc from sys.databases;

You can find more detailled info about alter database in the books online.

PS. I know, I know. My English is not good enought but, the more you help me, the more I learn.