Wine - Reemplazar xmessage por gxmessage
De la nada wine me ha saco errores al intentar correrlo. Recuerdo que en mi instalacion anterior tenia Debian Etch o Sarge, pero ahora que acabo de reinstalar Debian con la ultima version de Lenny me he dado cuenta que ya tenia todo mi sistema personalizado.
Ahora muchas cosas no estan como antes, tengo que volver a configurar todo a mi gusto. Lo peor de todo es que para jugar mis juegos de windows ( como World of Wacraft) sobre linux necesito tener una buena instalacion de wine, xwine o cedega y la configuracion del driver de nvidia funcionando perfectamente.
Lo primero es lo primero, y ya que wine es el emulador que viene de stock en Debian he decidido empezar porque funcione bien antes de instalar cedega, pero al tratar de correrlo me da el siguiente error;
[fher98@deathbian ~]$ wine --version
Invoking /usr/lib/wine/wine.bin --version ...
wine: creating configuration directory '/home/animesh/.wine'...
Warning: Language 'en_IN' was not recognized, defaulting to 'en_US'.
Warning: Language 'en_IN' was not recognized, defaulting to 'en_US'.
Warning: Language 'en_IN' was not recognized, defaulting to 'en_US'.
wine: '/home/animesh/.wine' created successfully.
Warning: Language 'en_IN' was not recognized, defaulting to 'en_US'.
Warning: Language 'en_IN' was not recognized, defaulting to 'en_US'.
Warning: Language 'en_IN' was not recognized, defaulting to 'en_US'.
Wine 20050310
Wine exited with a successful status
/usr/bin/wine: line 609: 30495 Terminated $XMESSAGE -timeout 30 -buttons " Dismiss ":0," Never display this message again ":3 -title "Wine Launch Window" "Invoking $WINEBIN/$WINE_BIN_NAME $@ ...
This dialog box is a temporary status dialog to let you know
that Wine is attempting to launch your application.
Since Wine is still very much in a development stage,
many applications will fail silently.
This dialog box is your indication
that we're *trying* to run your application.
This dialog box will automatically disappear after 30 seconds,
or after your application finishes.
You can permanently disable this dialog by selecting
the option below.
" 2>/dev/null
Invoking /usr/lib/wine/wine.bin --version ...
Warning: Language 'en_IN' was not recognized, defaulting to 'en_US'.
Warning: Language 'en_IN' was not recognized, defaulting to 'en_US'.
Warning: Language 'en_IN' was not recognized, defaulting to 'en_US'.
Wine 20050310
Wine exited with a successful status
Asi que directos al grano, primero removemos del sistema wine y libwine, luego movemos la configuracion de wine y por ultimo reinstalamos wine y corremos la configuracion, tecleando;
deathbian:~# aptitude remove wine libwine
. . .
. . .
deathbian:~# mv ~/.wine ~/.wine_old
. . .
. . .
deathbian:~# aptitude install wine
. . .
. . .
deathbian:~# winecfg
Cambiando xmessage
Ahora bien, gxmessage es un clon de xmessage basado en GTK2-based, para instalarlo tecleamos;
deathbian:~# aptitude install gxmessage
Hagamos una prueba;
deathbian:~# gxmessage -center -nofocus -timeout 5 -button yes,no,maybe -file /var/log/syslog
Que tal? Para reemplazar el viejo xmessage tecleamos;
deathbian:~# sudo -s
deathbian:~# dpkg-divert --divert /usr/bin/xmessage.X11 --rename /usr/bin/xmessage
deathbian:~# update-alternatives --install /usr/bin/xmessage x-messaging-system /usr/bin/xmessage.X11 50
deathbian:~# update-alternatives --install /usr/bin/xmessage x-messaging-system /usr/bin/gxmessage 55
deathbian:~# exit
La primera linea nos convierte en root, la segunda mueve xmessage para que /usr/bin/xmessage no sufra cambios al actualizar el paquede xmessage. Las siguientes dos lineas le indican a Debian que existen dos opciones para correr xmessage, pero como la version de GTK2 tiene mas prioridad sera la que se utilice por default.
Ahora para usarlo, y ver lo que se conoce del sistema;
deathbian:~# update-alternatives --display x-messaging-system
Y para revertir a xmessage, de ser necesario (solo si no nos gusta como quedo el nuevo), tecleamos;
deathbian:~# update-alternatives --config x-messaging-system
Hagan esta prueba con su usuario normal;
fher98@deathbian:~$ echo "me me me" | xmessage -file -
Via | Personalizar Debian
Popularity: 1% [?]






