20110430

Upgrade from 8.04 LTS to 10.04 LTS

El pasado viernes me decidí a actualizar el último Ubuntu 8.04 LTS que quedaba en la organización. El resto fueron reinstalados con la nueva 10.04 LTS ya que la virtualización ha simplificado bastante el proceso, pero en este caso me apetecía hacer un upgrade.
Como se supone que este proceso ya está muuuuuuy mascao, suponía que todo iría más o menos bien y así ha sido. Los pasos a seguir han sido los siguientes:
1. Asegúrate de tener tu sistema actualizado:
sudo apt-get update
sudo apt-get upgrade

2. Instala el update-manager-core si no lo tuvieses instalado ya:
sudo apt-get install update-manager-core

3. Edita el fichero /etc/update-manager/release-upgrades y configura Prompt=lts 
Nota: El contenido mínimo de este fichero debe ser:
[DEFAULT]
Prompt=lts

4. Lanza la herramienta de actualización (mejor lánzalo en local y no en remoto):
sudo do-release-upgrade

5. Sigue las instrucciones que te van apareciendo en la pantalla.

6. Al final de la actualización reinicia el servidor para comenzar a ejecutar el nuevo sistema. Si no tienes acceso por consola al servidor deberás editar el fichero /boot/grub/menu.lst y cambiar el kernel de arranque por defecto para que use el nuevo. Si no lo haces, intentará arrancar el anterior y se colgará..

Last friday I made the decision of upgrade the last Ubuntu 8.04 LTS Server that I had at work. The others were reinstalled because to do it is much easyer thanks to the virtualization.
I supposed that this kind of upgrade should be enough documented and yes, I found and followed with success these steps:
1. Ensure you're up to date with latest release:
sudo apt-get update
sudo apt-get upgrade

2. Install update-manager-core if it is not already installed:
sudo apt-get install update-manager-core

3. edit /etc/update-manager/release-upgrades and set Prompt=lts 
Note: The minumum contents of /etc/update-manager/release-upgrades should be:
[DEFAULT]
Prompt=lts

4. Launch the upgrade tool (use the console instead an ssh session):
sudo do-release-upgrade

5. Follow the on-screen instructions.

6. At the end of the upgrade process you will be required to restart the server in order to boot into the new kernel. If you do not have access to the console of the system you are upgrading, you may need to edit /boot/grub/menu.lst and change the default boot kernel to the newly installed 10.04 LTS kernel. If this step is not performed your server may attempt to boot into the 8.04 LTS kernel and will hang.

Source: https://help.ubuntu.com/community/LucidUpgrades

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

20110428

Ubuntu: Aviso de actualizaciones pendientes - Ubuntu login pending updates

Al acceder a uno de los servidores que tengo con una de las versiones LTS de Ubuntu Server, he visto que solicitaba actualizaciones pendientes con el siguiente mensaje:
bdispatcher@laptop:~$ ssh 192.168.1.59
bdispatcher192.168.1.59's password:
Linux ubuntusrv-test 2.6.32-28-server #55-Ubuntu SMP Mon Jan 10 23:57:16 UTC 2011 x86_64 GNU/Linux
Ubuntu 10.04.2 LTS

Welcome to the Ubuntu Server!
 * Documentation:  http://www.ubuntu.com/server/doc

  System information as of Thu Apr 28 10:01:11 CEST 2011

  System load:  0.05              Processes:           69
  Usage of /:   28.8% of 4.42GB   Users logged in:     1
  Memory usage: 20%               IP address for eth0: 192.168.1.59
  Swap usage:   0%

  Graph this data and manage this system at https://landscape.canonical.com/

27 packages can be updated.
12 updates are security updates.

Last login: Thu Apr 28 10:00:39 2011
bdispatcher@ubuntusrv-test:~$

Pero cuando intento actualizar con los comandos:
sudo apt-get update
sudo apt-get upgrade

Me indica que no tengo actualizaciones pendientes. Después de googlear un ratillo leo que ese mensaje lo muestra motd, como no podía ser menos, y que según parece en algún momento hubo un problema en su ejecución y ha quedado el archivo /etc/motd.tail que como su página man indica es un fichero plantilla en el que se basa el mensaje diario, y es el responsable de este error.
Lo elimino:
sudo rm -f /etc/motd.tail

y a funcionar, no hay actualizaciones pendientes, y así lo muestra el mensaje de login.

It's time to update my ubuntu systems and one of them (Ubuntu Server LTS) tells me after the login that it has some pending updates by the following message:
bdispatcher@laptop:~$ ssh 192.168.1.59
bdispatcher192.168.1.59's password:
Linux ubuntusrv-test 2.6.32-28-server #55-Ubuntu SMP Mon Jan 10 23:57:16 UTC 2011 x86_64 GNU/Linux
Ubuntu 10.04.2 LTS

Welcome to the Ubuntu Server!
 * Documentation:  http://www.ubuntu.com/server/doc

  System information as of Thu Apr 28 10:01:11 CEST 2011

  System load:  0.05              Processes:           69
  Usage of /:   28.8% of 4.42GB   Users logged in:     1
  Memory usage: 20%               IP address for eth0: 192.168.1.59
  Swap usage:   0%

  Graph this data and manage this system at https://landscape.canonical.com/

27 packages can be updated.
12 updates are security updates.

Last login: Thu Apr 28 10:00:39 2011
bdispatcher@ubuntusrv-test:~$

But when I try to update it with the following commands:
sudo apt-get update
sudo apt-get upgrade

It tells me that there are no pendig updates. After some time googling I find that this message is generated by the motd proccess. The file /etc/motd.tail contains this message and as its man page says, the motd.tail file it a template for building the system message of the day, so the only thing I have to do to fix it is:
rm -f /etc/motd.tail
After this, everything works perfecly again.

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

20110419

KRDC Ctrl + Alt + Supr

Hace ya tiempo que utilizo KRDC para conectarme a algún equipo remoto (sobre todo por VNC) para administrar el equipo de un usuario y en más de una ocasión he tenido que recurrir al usuario para que pulsase Ctrl + Alt + Supr, eso que con clientes como el de uvnc es bastante sencillo, pues no tenía ni idea de cómo hacerlo. Después de mucho probar y darme por vencido, un día dí con la solución de pura casualidad.
La combinación de teclas necesaria es Mays + Alt + Supr, aunque a veces no funciona hasta que pulso Ctrl + Alt + Supr y cancelo el diálogo de  apagado del equipo.
Para poder volver a escribir de nuevo en la ventana de KRDC debemos pulsar Mays + Alt.
De todos modos, creo que esta aplicación no está ni a medias, y que debería mejorar bastante para estar a la altura del escritorio KDE.

Some time ago I'm using KRDC to connect through VNC to manage the remote computer of a user, but when I needed to press Ctrl + Alt + Del I had to ask for help to the user becouse I didn't know how to do that with this KDE app.
After some time trying achieve it with some different patterns I gave it up, but few weeks ago I had a lucky day I bumped into the solution.
To do that, follow these steps:
1.- Press Ctrl + Alt + Del and cancel the logoff window.
2.- Press Caps + Alt + Supr to get Ctrl + Alt + Del on the remote computer.
3.- Press Caps + Alt if you need to write again on the remote computer.

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

20110413

Kubuntu: cómo deshabilitar bluetooth - Kubuntu - how to disable bluetooth

Hace ya tiempo que llegó a mis manos (gracias cachonda!) un portátil Toshiba Tecra A8, y una de las primeras cosas que hice fue formatearlo e instalarle la distro más reciente de Kubuntu LTS en su versión de 64 bits.
Desde entonces, me he preguntado cómo apagar el bluetooth (kbluetooth en la bandeja del sistema), pues no suelo utilizarlo. Después de darle muchas vueltas, y sólo de pura casualidad, conseguí apagarlo pulsando:
Fn + F8

En este portátil en esa tecla está la función de la red inalámbrica pero esta sigue funcionando y sí apaga el bluetooth. Supongo que en otros equipos habrá que sustituir F8 por la tecla en cuestión (o no, o qué se yo, la cosa es probar).
Suerte!.

Some time ago a friend of mine gave a second hand Toshiba Tecra A8 laptop and the first thing I did was to install the last release of Kubuntu LTS 64 bits.
From that moment to few weeks ago, I tried to find a way to disable or stop the kbluetooth on the system tray because I don't usually use it.
After some time shaking my head looking for a solution and with a handful of lucky I found it. This is as easy as pressing:
Fn + F8

On this laptop, this key has printed the icon of the wireless manager, but this shortcut doesn't disable the network, but the bluetooth. I suppose that in other models of laptops the function key should be different (or not, or whatever) but now you have a clue, so just try it.
Good luck!

20110406

Cype: Atención: no se cumple una comprobación de seguridad

Estos días un usuario me ha comentado que al ejecutar CYPE le aparecía el siguiente error:
Atención: No se cumple una comprobación de seguridad
Expresión: copiado !=FALSE
Fichero: dllcarga.c (DLLGEN)
Línea: 579
Módulo: CYPE 2011 (Castellano).exe

C:\WINDOWS\fonts\euclid.000

En principio y en mi caso, todos se resolvió tras conceder permisos de escritura al usuario (limitado) en cuestión sobre las carpetas de CYPE, a saber:
\usr
\CYPE Ingenieros

Tras la concesión de permisos, todo funcionó a la perfección.

Those days a user asked me about about the following error he got trying to run CYPE (Software for Architecture, Engineering and Construction):
Atención: No se cumple una comprobación de seguridad
Expresión: copiado !=FALSE
Fichero: dllcarga.c (DLLGEN)
Línea: 579
Módulo: CYPE 2011 (Castellano).exe

C:\WINDOWS\fonts\euclid.000

The problem was hi's an unprivileged user, so to solve the issue was enought to give him read/write permissions to the following paths:
\usr
\CYPE Ingenieros

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