Artículos escritos en febrero de 2007



IE6 en Ubuntu Edgy

martes, 6 de febrero de 2007
Escrito por Neodian a las 15:49
2 comentarios

A veces los que tenemos una pagina web nos gusta saber como se va a ver usando el IE y claro reiniciar para entrar y mirar un segundo, o para entrar en esas dichosas paginas que se resisten a dar compatibilidad al firefox para todo esto seria estupendo poder usar el IE en linux.

Hoy descubro de nuevo otro script que no permitira instalar IE6 en linux y poder ejecutarlo y navegar con el. Claro que no va a ser exactamente igual que en windows pero si bastante parecido. Para instalarlo tenermo primero que asegurarnos de tener instalado el wine.

apt-get install wine cabextract

Y ahora procedemos a descargar el script mediante:

wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz #–>Decarga
tar zxvf ies4linux-latest.tar.gz #—>Lo descomprimimos
cd ies4linux-* #–>Entramos en el directorio descomprimido
./ies4linux #—>Ejecutamos el script

Como veis es muy sencillo. Una vez que lanceis el script os hara unas preguntas y empezara a descargar el IE y cuando termine creara un icono en el excritorio para una mayor rapidez. Como siempre, rapido, facil y fiable.

Sacado de: http://www.tatanka.com.br/ies4linux/page/Installation:Ubuntu

Pertenece a la seccion Manuales

Restaurar los iconos del Firefox y el Thunderbird

martes, 6 de febrero de 2007
Escrito por Neodian a las 13:01
4 comentarios

Al instalar ubuntu podemos observar como los iconos originales tanto del firefox como del thunderbird han sido modificados. A mi personalmente los iconos que trae no me gustan demasiado y prefiero los originales, asi que alguna que otra vez los he tenido que andar buscando ya sea en el ordenador o en internet y cambiarlos manualmente. Sin embargo hace poco encontre un script en bash que automatiza este proceso y ademas cambia los iconos en todas partes. El script es el siguiente:

#! /bin/sh

#
# Restore the original Firefox and/or Thunderbird icons.
#

#
# TODO: Create and implement SVG icons
#

FIREFOX_LIB=”/usr/lib/firefox/”
FIREFOX_BIN=”/usr/bin/mozilla-firefox”
THUNDERBIRD_BIN=”/usr/bin/mozilla-thunderbird”

ICON_PACK_URL=”http://ubuntu.globalvision.ch/mozilla_icons_dapper.tar.bz2″
ICON_PACK_FILENAME=”mozilla_icons_dapper.tar.bz2″
TMP_DIR=”/tmp/moz-icons”$$”/”

#Ctrl-C trapping
trap ctrlc INT
ctrlc()
{
echo -e “\nAborted by user.”
rm -rf $TMP_DIR
exit 2
}

#Input read function
readyn()
{
read input
if [ -z “$input” ] || [ “$input” == “y” ] || [ “$input” == “yes” ] || [ “$input” == “Y” ] || [ “$input” == “YES” ] ; then
echo 1
return
fi
echo 0
}

#Check if run as root
if [ “$UID” -ne 0 ] ; then
echo “You must be root to do that!”
exit 1
fi

#Ask which icons to replace
replace_ff=”0″
replace_ff_doc=”0″
replace_tb=”0″
replace_tb_pm=”0″

if [ -x “$FIREFOX_BIN” ] ; then
#Firefox
echo -n “Replace the Mozilla Firefox program icon (y/n)? [y] ”
if [ `readyn` -ne 0 ] ; then
replace_ff=”1″
fi

#Firefox document
echo -n “Replace the Mozilla Firefox document icon (y/n)? [y] ”
if [ `readyn` -ne 0 ] ; then
replace_ff_doc=”1″
fi
fi

if [ -x “$THUNDERBIRD_BIN” ] ; then
#Thunderbird
echo -n “Replace the Mozilla Thunderbird program icon (y/n)? [y] ”
if [ `readyn` -ne 0 ] ; then
replace_tb=”1″
fi

#Thunderbird profile manager
echo -n “Replace the Mozilla Thunderbird profile manager icon (y/n)? [y] ”
if [ `readyn` -ne 0 ] ; then
replace_tb_pm=”1″
fi
fi

if [ “$replace_ff” -eq “0″ ] && [ “$replace_ff_doc” -eq “0″ ] && [ “$replace_tb” -eq “0″ ] && [ “$replace_tb_pm” -eq “0″ ] ; then
echo “Nothing to do here.”
exit 0
fi

#Ask for divert the original packaged files to alternate locations
divert=”0″

echo -e “\nDo you want to divert the original packaged files to alternate locations”
echo -n “(make the changes permanent) (y/n)? [y] ”
if [ `readyn` -ne 0 ] ; then
divert=”1″
fi

#Downloading
echo -en “\nDownloading and replacing icons. Please wait…”

mkdir $TMP_DIR
wget $ICON_PACK_URL -O $TMP_DIR$ICON_PACK_FILENAME >/dev/null 2>&1
if [ ! -f $TMP_DIR$ICON_PACK_FILENAME ] ; then
echo -e “\nCannot download icons. Please check your internet connection.”
rm -rf $TMP_DIR
exit 1
fi
tar xjf $TMP_DIR$ICON_PACK_FILENAME -C $TMP_DIR

#Replace Firefox icon
if [ “$replace_ff” -gt “0″ ] ; then
if [ ! -f $TMP_DIR”mozilla-firefox.png” ] || [ ! -f $TMP_DIR”mozilla-firefox.xpm” ] ; then
echo “Cannot continue (unavailable Firefox icon file)”
rm -rf $TMP_DIR
exit 1
fi

#Backup
cp -f /usr/share/pixmaps/firefox.png /usr/share/pixmaps/firefox.old.png
cp -f /usr/share/pixmaps/mozilla-firefox.xpm /usr/share/pixmaps/mozilla-firefox.old.xpm
cp -f $FIREFOX_LIB”icons/default.xpm” $FIREFOX_LIB”icons/default.old.xpm”
cp -f $FIREFOX_LIB”chrome/icons/default/default.xpm” $FIREFOX_LIB”chrome/icons/default/default.old.xpm”

#Divert
if [ “$divert” -gt “0″ ] ; then
dpkg-divert –rename /usr/share/pixmaps/firefox.png >/dev/null
dpkg-divert –rename /usr/share/pixmaps/mozilla-firefox.xpm >/dev/null
dpkg-divert –rename $FIREFOX_LIB”icons/default.xpm” >/dev/null
dpkg-divert –rename $FIREFOX_LIB”chrome/icons/default/default.xpm” >/dev/null
fi

#Replace icons
cp $TMP_DIR”mozilla-firefox.png” /usr/share/pixmaps/firefox.png
cp $TMP_DIR”mozilla-firefox.xpm” /usr/share/pixmaps/mozilla-firefox.xpm
cp $TMP_DIR”mozilla-firefox.xpm” $FIREFOX_LIB”icons/default.xpm”
cp $TMP_DIR”mozilla-firefox.xpm” $FIREFOX_LIB”chrome/icons/default/default.xpm”
echo -n “.”
fi

#Replace Firefox document icon
if [ “$replace_ff_doc” -gt “0″ ] ; then
if [ ! -f $TMP_DIR”mozilla-firefox-doc.png” ] ; then
echo “Cannot continue (unavailable Firefox document icon file)”
rm -rf $TMP_DIR
exit 1
fi

#Backup
cp -f $FIREFOX_LIB”icons/document.png” $FIREFOX_LIB”icons/document.old.png”

#Divert
if [ “$divert” -gt “0″ ] ; then
dpkg-divert –rename $FIREFOX_LIB”icons/document.png” >/dev/null
fi

#Replace icons
cp $TMP_DIR”mozilla-firefox-doc.png” $FIREFOX_LIB”icons/document.png”
echo -n “.”
fi

#Replace Thunderbird icon
if [ “$replace_tb” -gt “0″ ] ; then
#TODO: if [ ! -f $TMP_DIR”mozilla-thunderbird.png” ] || [ ! -f $TMP_DIR”mozilla-thunderbird.svg” ] || [ ! -f $TMP_DIR”mozilla-thunderbird.xpm” ] ; then
if [ ! -f $TMP_DIR”mozilla-thunderbird.png” ] || [ ! -f $TMP_DIR”mozilla-thunderbird.xpm” ] ; then
echo “Cannot continue (unavailable Thunderbird icon file)”
rm -rf $TMP_DIR
exit 1
fi

#Backup
cp -f /usr/share/pixmaps/mozilla-thunderbird.png /usr/share/pixmaps/mozilla-thunderbird.old.png
#TODO: cp -f /usr/share/pixmaps/mozilla-thunderbird.svg /usr/share/pixmaps/mozilla-thunderbird.old.svg
cp -f /usr/share/pixmaps/mozilla-thunderbird.xpm /usr/share/pixmaps/mozilla-thunderbird.old.xpm
cp -f /usr/share/pixmaps/mozilla-thunderbird-menu.png /usr/share/pixmaps/mozilla-thunderbird-menu.old.png
#TODO: cp -f /usr/share/pixmaps/mozilla-thunderbird-menu.svg /usr/share/pixmaps/mozilla-thunderbird-menu.old.svg
cp -f /usr/share/pixmaps/mozilla-thunderbird-menu.xpm /usr/share/pixmaps/mozilla-thunderbird-menu.old.xpm
cp -f /usr/lib/mozilla-thunderbird/chrome/icons/default/messengerWindow.xpm /usr/lib/mozilla-thunderbird/chrome/icons/default/messengerWindow.old.xpm
cp -f /usr/lib/mozilla-thunderbird/chrome/icons/default/messengerWindow16.xpm /usr/lib/mozilla-thunderbird/chrome/icons/default/messengerWindow16.old.xpm
cp -f /usr/lib/mozilla-thunderbird/icons/default.xpm /usr/lib/mozilla-thunderbird/icons/default.old.xpm
cp -f /usr/lib/mozilla-thunderbird/icons/mozicon16.xpm /usr/lib/mozilla-thunderbird/icons/mozicon16.old.xpm
cp -f /usr/lib/mozilla-thunderbird/icons/mozicon50.xpm /usr/lib/mozilla-thunderbird/icons/mozicon50.old.xpm

#Divert
if [ “$divert” -gt “0″ ] ; then
dpkg-divert –rename /usr/share/pixmaps/mozilla-thunderbird.png >/dev/null
#TODO: dpkg-divert –rename /usr/share/pixmaps/mozilla-thunderbird.svg >/dev/null
dpkg-divert –rename /usr/share/pixmaps/mozilla-thunderbird.xpm >/dev/null
dpkg-divert –rename /usr/share/pixmaps/mozilla-thunderbird-menu.png >/dev/null
#TODO: dpkg-divert –rename /usr/share/pixmaps/mozilla-thunderbird-menu.svg >/dev/null
dpkg-divert –rename /usr/share/pixmaps/mozilla-thunderbird-menu.xpm >/dev/null
dpkg-divert –rename /usr/lib/mozilla-thunderbird/chrome/icons/default/messengerWindow.xpm >/dev/null
dpkg-divert –rename /usr/lib/mozilla-thunderbird/chrome/icons/default/messengerWindow16.xpm >/dev/null
dpkg-divert –rename /usr/lib/mozilla-thunderbird/icons/default.xpm >/dev/null
dpkg-divert –rename /usr/lib/mozilla-thunderbird/icons/mozicon16.xpm >/dev/null
dpkg-divert –rename /usr/lib/mozilla-thunderbird/icons/mozicon50.xpm >/dev/null
fi

#Replace icons
cp $TMP_DIR”mozilla-thunderbird.png” /usr/share/pixmaps/mozilla-thunderbird.png
#TODO: cp $TMP_DIR”mozilla-thunderbird.svg” /usr/share/pixmaps/mozilla-thunderbird.svg
cp $TMP_DIR”mozilla-thunderbird.xpm” /usr/share/pixmaps/mozilla-thunderbird.xpm
cp $TMP_DIR”mozilla-thunderbird.png” /usr/share/pixmaps/mozilla-thunderbird-menu.png
#TODO: cp $TMP_DIR”mozilla-thunderbird.svg” /usr/share/pixmaps/mozilla-thunderbird-menu.svg
cp $TMP_DIR”mozilla-thunderbird.xpm” /usr/share/pixmaps/mozilla-thunderbird-menu.xpm
cp $TMP_DIR”mozilla-thunderbird.xpm” /usr/lib/mozilla-thunderbird/chrome/icons/default/messengerWindow.xpm
cp $TMP_DIR”mozilla-thunderbird.xpm” /usr/lib/mozilla-thunderbird/chrome/icons/default/messengerWindow16.xpm
cp $TMP_DIR”mozilla-thunderbird.xpm” /usr/lib/mozilla-thunderbird/icons/default.xpm
cp $TMP_DIR”mozilla-thunderbird.xpm” /usr/lib/mozilla-thunderbird/icons/mozicon16.xpm
cp $TMP_DIR”mozilla-thunderbird.xpm” /usr/lib/mozilla-thunderbird/icons/mozicon50.xpm
echo -n “.”
fi

#Replace Thunderbird profile manager icon
if [ “$replace_tb_pm” -gt “0″ ] ; then
#TODO: if [ ! -f $TMP_DIR”mozilla-thunderbird-pm.png” ] || [ ! -f $TMP_DIR”mozilla-thunderbird-pm.svg” ] || [ ! -f $TMP_DIR”mozilla-thunderbird-pm.xpm” ] ; then
if [ ! -f $TMP_DIR”mozilla-thunderbird-pm.png” ] || [ ! -f $TMP_DIR”mozilla-thunderbird-pm.xpm” ] ; then
echo “Cannot continue (unavailable Thunderbird icon file)”
rm -rf $TMP_DIR
exit 1
fi

#Backup
cp -f /usr/share/pixmaps/mozilla-thunderbird-pm.png /usr/share/pixmaps/mozilla-thunderbird-pm.old.png
#TODO: cp -f /usr/share/pixmaps/mozilla-thunderbird-pm.svg /usr/share/pixmaps/mozilla-thunderbird-pm.old.svg
cp -f /usr/share/pixmaps/mozilla-thunderbird-pm.xpm /usr/share/pixmaps/mozilla-thunderbird-pm.old.xpm
cp -f /usr/share/pixmaps/mozilla-thunderbird-pm-menu.png /usr/share/pixmaps/mozilla-thunderbird-pm-menu.old.png
#TODO: cp -f /usr/share/pixmaps/mozilla-thunderbird-pm-menu.svg /usr/share/pixmaps/mozilla-thunderbird-pm-menu.old.svg
cp -f /usr/share/pixmaps/mozilla-thunderbird-pm-menu.xpm /usr/share/pixmaps/mozilla-thunderbird-pm-menu.old.xpm

#Divert
if [ “$divert” -gt “0″ ] ; then
dpkg-divert –rename /usr/share/pixmaps/mozilla-thunderbird-pm.png >/dev/null
#TODO: dpkg-divert –rename /usr/share/pixmaps/mozilla-thunderbird-pm.svg >/dev/null
dpkg-divert –rename /usr/share/pixmaps/mozilla-thunderbird-pm.xpm >/dev/null
dpkg-divert –rename /usr/share/pixmaps/mozilla-thunderbird-pm-menu.png >/dev/null
#TODO: dpkg-divert –rename /usr/share/pixmaps/mozilla-thunderbird-pm-menu.svg >/dev/null
dpkg-divert –rename /usr/share/pixmaps/mozilla-thunderbird-pm-menu.xpm >/dev/null
fi

#Replace icons
cp $TMP_DIR”mozilla-thunderbird-pm.png” /usr/share/pixmaps/mozilla-thunderbird-pm.png
#TODO: cp $TMP_DIR”mozilla-thunderbird-pm.svg” /usr/share/pixmaps/mozilla-thunderbird-pm.svg
cp $TMP_DIR”mozilla-thunderbird-pm.xpm” /usr/share/pixmaps/mozilla-thunderbird-pm.xpm
cp $TMP_DIR”mozilla-thunderbird-pm.png” /usr/share/pixmaps/mozilla-thunderbird-pm-menu.png
#TODO: cp $TMP_DIR”mozilla-thunderbird-pm.svg” /usr/share/pixmaps/mozilla-thunderbird-pm-menu.svg
cp $TMP_DIR”mozilla-thunderbird-pm.xpm” /usr/share/pixmaps/mozilla-thunderbird-pm-menu.xpm
echo -n “.”
fi

echo ” done !”

#Reload gnome-panel
echo -en “\nShall I reload gnome-panel to apply the changes (y/n)? [y] ”
if [ `readyn` -ne 0 ] ; then
killall gnome-panel
fi

rm -rf $TMP_DIR
exit 0

Lo copias tal cual en fichero en vuestro home y la poneis de nombre restaura_iconos y le dais permisos de ejecucion usando chmod +x restaura_iconos y finalmente para ejecutarlo nada mas que teclear sudo bash restaura_iconos. Os hara unas cuantas preguntas en ingles pero facil de entender y finalmente recargara el gestor de ventanas para que se actualicen los cambios y….voila, iconos originales al canto.

Sacado de: http://doc.gwos.org/index.php/Firefox_&_Thunderbird_icon

Pertenece a la seccion Manuales

¿Que es la web 2.0?

lunes, 5 de febrero de 2007
Escrito por Neodian a las 12:09
Sin comentarios

La verdad es que yo tampoco lo tengo demasiado claro aun, pero es cierto que la web ha cambiado radicalmente en los ultimos años, aunque esta claro que debido a que estamos sumergidos en ellos y los cambios son pequeños de cada vez es probable que no nos demos cuenta del gran cambio que sin embargo esta ahi. Con solo mirar unos años hacia atras os dareis cuenta,cosas como blogs, youtube, correo electronico, chat, fotos con los colegas hace diez años eran bastante dificil de conseguir, y ya veis que hoy en dia quien mas y quien menos escribe un blog…

Pero mientras esto continua y ya que un imagen vale mas que mil palabras, un video que son varias imagenes, valdra mas que miles de millones de palabras, o algo asi,¿no?.


La web 2.0 para que lo entendamos todos

Pertenece a la seccion Reflexiones

Aiglx o Xgl

sábado, 3 de febrero de 2007
Escrito por Neodian a las 17:02
Sin comentarios

Hablamos de aceleracion 3D en el escritorio en linux y tenemos que hablar de estos dos tipo. La gran diferencia es que aiglx utiliza el driver libre, que permite ejecutar ciertas extensiones, mientras que xgl usa el dirver propietario de ati.Personalmente y por posibilidades aiglx es mucho mejor ya que permite que active o desactive la aceleracion 3d del escritorio en cualquier momento mientras que xgl no, ademas el xgl al ser una sesion por encima del servidor grafico no te permite apagar o reiniciar directamente el ordenador, tienes que cerrar primero la sesion y luego desde el gdm apagar. Me baso para escribir esto en mi experiencia, saber que tengo una ati radeon 9550 y que por tanto usare xgl y no al contrario que si tuviese una nvida seguramente usaria aiglx ya que sus drivers funcionan mejor asi.

Llevo ya dos dias probando aiglx y mi sensacion es que estoy usando una sesion de gnome sin aceleracion ya que en cuanto la activo y tengo el firefox activado los efectos empiezan a ir excesivamente lentos, el cubo gira lentisimo y la verdad es que da bastante pena. Lo mantengo asi porque queria probar la alternativa a xgl y comprobar de primera mano el resultado y ademas porque como ultimamente juego mucho al starcraft esto solo funciona al 100% con el escritorio 3d desactivado y tenia que salir del xgl e iniciar una sesion normal.

Conclusion: que si quieres tener un escritorio 3d uses xgl a consta de algunos peros, vease lo de cerrar sesion y apagar, que tener un escritorio 3d que da pena, y que si lo que quieres es un escritorio muy funcional y sin efectos y sin esos peros uses aiglx. Proximamente pondre unos tutoriales de como hacer ambas cosas en Ubuntu Edgy.

Pertenece a la seccion Noticias

Desinstalar el windows messenger

viernes, 2 de febrero de 2007
Escrito por Neodian a las 23:53
Sin comentarios

Si os fijais al instalar windows xp nos encontramos con una version integrada del msn messenger, pero una version bastante vieja y que ademas no fue actualizada. Es molesto tener el messenger ahi puesto, sobre todo si tenemos en cuenta que no existe ningun sitio donde nos permita eliminarlo de forma correcta, aparte que no soporta practicamente ninguna de las nuevas opciones del messenger. Pero esto tiene facil solucion, simplemente tenemos que ir a inicio–>ejecutar y escribimos esto:

RunDll32 advpack.dll,LaunchINFSection %windir%\INF\msmsgs.inf,BLC.Remove

Aceptamos el mensaje que no sale y listo, adios al windows messenger para siempre.

Pertenece a la seccion Noticias