26 de mayo de 2007

Instalar Driver Oficial NVIDIA y Beryl

Bueno, ya sé que hay otras entradas publicadas en el blog para configurar NVIDIA y BERYL, pero en el portatil ACER Modelo Aspire 5635 WLMI que me he comprado y que trae una gráfica NVIDIA GeForce Go 7300 de 256 Mb, no he conseguido configurar Beryl con el driver instalado mediante module-assistant. Al activarlo se me veía mal con una resolución de 1280x800. Como único logré que funcionara es bajándole la resolución a 1024x768, pero no me gustaba.


Pues de ahí que me decidiera por instalar del driver oficial y al fin lo logré.
A continuacíón los pasos:

1. Nos vamos a la página de Nvidia y nos descargamos el driver:
http://www.nvidia.es/page/drivers.html

Para ver que versión del driver necesitas, mira aquí.

Para la gŕafica de mi portatil (Geforce Go 7300), me descargué éste fichero:
$ su -
password:

# wget http://es.download.nvidia.com/XFree86/Linux-x86/100.14.03/NVIDIA-Linux-x86-100.14.03-pkg1.run
--15:05:48-- http://es.download.nvidia.com/XFree86/Linux-x86/100.14.03/NVIDIA-Linux-x86-100.14.03-pkg1.run
=> `NVIDIA-Linux-x86-100.14.03-pkg1.run'
Resolviendo es.download.nvidia.com... 194.224.66.89, 194.224.66.107
Connecting to es.download.nvidia.com|194.224.66.89|:80... conectado.
Petición HTTP enviada, esperando respuesta... 200 OK
Longitud: 15,256,375 (15M) [text/plain]

100%[====================================================================================================================================================================>] 15,256,375 103.88K/s ETA 00:00

15:08:12 (103.48 KB/s) - `NVIDIA-Linux-x86-100.14.03-pkg1.run' saved [15256375/15256375]


ACTUALIZACION 08.09.07:
Para descargar la última versión del driver, sustituye el comando anterior por éste y continúa la guía:

# wget http://es.download.nvidia.com/XFree86/Linux-x86/100.14.11/NVIDIA-Linux-x86-100.14.11-pkg1.run


2. Instalamos los paquetes "pkg-config" y "xserver-xorg-dev"
# aptitude install pkg-config xserver-xorg-dev
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias... Hecho
Leyendo la información de estado extendido
Inicializando el estado de los paquetes... Hecho
Escribiendo información de estado extendido... Hecho
Leyendo las descripciones de las tareas... Hecho
Construir la base de datos de etiquetas... Hecho
Se instalarán los siguiente paquetes NUEVOS:
pkg-config xserver-xorg-dev
0 paquetes actualizados, 2 nuevos instalados, 0 para eliminar y 0 sin actualizar.
Necesito descargar 413kB de ficheros. Después de desempaquetar se usarán 1921kB.
Escribiendo información de estado extendido... Hecho
Des:1 http://ftp.fr.debian.org etch/main pkg-config 0.21-1 [67,5kB]
Des:2 http://ftp.fr.debian.org etch/main xserver-xorg-dev 2:1.1.1-21 [345kB]
Descargados 413kB en 5s (80,1kB/s).
Seleccionando el paquete pkg-config previamente no seleccionado.
(Leyendo la base de datos ...
59039 ficheros y directorios instalados actualmente.)
Desempaquetando pkg-config (de .../pkg-config_0.21-1_i386.deb) ...
Seleccionando el paquete xserver-xorg-dev previamente no seleccionado.
Desempaquetando xserver-xorg-dev (de .../xserver-xorg-dev_2%3a1.1.1-21_i386.deb) ...
Configurando pkg-config (0.21-1) ...
Configurando xserver-xorg-dev (1.1.1-21)


3. Una vez terminados éstos 2 pasos, cerramos la sesión, pulsamos la combinación de teclas CTRL+ALT+F1 para acceder a la consola y nos logueamos como root para instalar el driver descargado.

login: root
password:

# /etc/init.d/kdm stop => Si utilizas GDM # /etc/init.d/gdm stop
# sh NVIDIA-Linux-x86-100.14.03-pkg1.run


4. Una vez terminado, hay que configurar el fichero "/etc/X11/xorg.conf" con el siguiente comando:
# dpkg-reconfigure xserver-xorg

Seleccionamos:
- Driver "nvidia"
- Módulos del servidor. Marcamos todos menos el "dri".
- Profundidad de color (en bits) deseada: 24

También podemos modificar el fichero de forma manual. Las secciones que se detallan a continuación deben quedar así:
# vi /etc/X11/xorg.conf

Section "Module"
Load "bitmap"
Load "dbe"
Load "ddc"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "record"
Load "v4l"
Load "vbe"
EndSection

Section "Device"
Identifier "nVidia Corporation G72M [Quadro NVS 110M/GeForce Go 7300]"
Driver "nvidia"
BusID "PCI:1:0:0"
EndSection

Section "Screen"
Identifier "Default Screen"
Device "nVidia Corporation G72M [Quadro NVS 110M/GeForce Go 7300]"
Monitor "Monitor genérico"
DefaultDepth 24
Option "AddARGBGLXVisuals" "True"
SubSection "Display"
Depth 1
Modes "1280x800" "1024x768" "800x600" "640x480"
EndSubSection
....
(OMITO EL RESTO DE DATOS)
....
EndSection


#Section "DRI"
#Mode 0666
#EndSection

Section "Extensions"
Option "Composite" "true"
EndSection

NOTA:
Si configuramos el fichero con el comando "dpkg-reconfigure" debemos añadir manualmente la opción "AddARGBGLXVisuals" "True" a la sección "Screen" y la sección "Extensions" al final del fichero.


5. Después de modificar el fichero, iniciamos KDM o GDM según corresponda. Nos debe aparecer el Logo de NVIDIA al iniciar.
# /etc/init.d/kdm start


NOTA:
Para ejecutar el siguiente paso, debes tener instalado BERYL . (Ver guía)


6. Nos logueamos como nuesto usuario y en una terminal (KONSOLE) tecleamos:
$ beryl-manager

**************************************************************
* Beryl system compatiblity check *
**************************************************************

Detected xserver : NVIDIA

Checking Display :0.0 ...

Checking for XComposite extension : passed (v0.3)
Checking for XDamage extension : passed
Checking for RandR extension : passed
Checking for XSync extension : passed

Checking Screen 0 ...

Checking for GLX_SGIX_fbconfig : passed
Checking for GLX_EXT_texture_from_pixmap : passed
Checking for non power of two texture support : passed
Checking maximum texture size : passed (4096x4096)

Relaunching beryl with __GL_YIELD="NOTHING"
**************************************************************
* Beryl system compatiblity check *
**************************************************************

Detected xserver : NVIDIA

Checking Display :0.0 ...

Checking for XComposite extension : passed (v0.3)
Checking for XDamage extension : passed
Checking for RandR extension : passed
Checking for XSync extension : passed

Checking Screen 0 ...

Checking for GLX_SGIX_fbconfig : passed
Checking for GLX_EXT_texture_from_pixmap : passed
Checking for non power of two texture support : passed
Checking maximum texture size : passed (4096x4096)

Reloading options


7. Por último, como ya publiqué en el post de "Instalación de Beryl", nos queda hacer un pequeño script que se ejecute al arracar nuestra sesión.

$ vi ~/.kde/Autostart/inicioberyl.sh
#!/bin/bash
beryl-manager

$ chmod u+x ~/.kde/Autostart/inicioberyl.sh


NOTA FINAL:
Me ocurrió que durante la configuración del servidor xorg, puse como profundidad de color 16 bits en vez de 24. En la guía que se encuentra en el blog que pongo a continuación, que eśta basado en Ubuntu, encontré la solución.
http://tuxpepino.wordpress.com/2007/04/23/beryl-en-feistynvidiaaiglx/

Saludos y Suerte.
Domi - Gran Canaria (Islas Canarias)

Instalar Driver Red Inalámbrica Intel PRO/Wireless 3945ABG en Debian Etch

Hace unas semanas me he comprado un portatil ACER, modelo Aspire 5635 WLMI, que incluye una Intel PRO/Wireless 3945ABG como tarjeta de conexión inalámbrica. A continuación detallo los pasos que he seguido para la instalación y configuración.

1. Después de haber instalado Debian Etch según la guía que he publicado en éste blog, nos logueamos en una terminal y procedemos a la instalación del driver, que se encuentra en los repositorios oficiales de Debian Etch.

# aptitude install firmware-ipw3945 ipw3945d ipw3945-modules-$(uname -r)
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias... Hecho
Leyendo la información de estado extendido
Inicializando el estado de los paquetes... Hecho
Leyendo las descripciones de las tareas... Hecho
Construir la base de datos de etiquetas... Hecho
Se instalarán los siguiente paquetes NUEVOS:
firmware-ipw3945 ipw3945-modules-2.6.18-4-686 ipw3945d
0 paquetes actualizados, 3 nuevos instalados, 0 para eliminar y 0 sin actualizar.
Necesito descargar 426kB de ficheros. Después de desempaquetar se usarán 1323kB.
Escribiendo información de estado extendido... Hecho
Des:1 http://ftp.fr.debian.org etch/non-free firmware-ipw3945 0.4 [61,2kB]
Des:2 http://ftp.fr.debian.org etch/contrib ipw3945-modules-2.6.18-4-686 2.6.18+1.1.2-4+etch1 [327kB]
Des:3 http://ftp.fr.debian.org etch/non-free ipw3945d 1.7.22-4 [37,6kB]
Descargados 426kB en 5s (76,0kB/s).
Seleccionando el paquete firmware-ipw3945 previamente no seleccionado.
(Leyendo la base de datos ...
60422 ficheros y directorios instalados actualmente.)
Desempaquetando firmware-ipw3945 (de .../firmware-ipw3945_0.4_all.deb) ...
Seleccionando el paquete ipw3945-modules-2.6.18-4-686 previamente no seleccionado.
Desempaquetando ipw3945-modules-2.6.18-4-686 (de .../ipw3945-modules-2.6.18-4-686_2.6.18+1.1.2-4+etch1_i386.deb) ...
Seleccionando el paquete ipw3945d previamente no seleccionado.
Desempaquetando ipw3945d (de .../ipw3945d_1.7.22-4_i386.deb) ...
Configurando firmware-ipw3945 (0.4) ...
Configurando ipw3945-modules-2.6.18-4-686 (2.6.18+1.1.2-4+etch1) ...

Configurando ipw3945d (1.7.22-4) ...
Starting ipw3945 regulatory daemon: ipw3945d.


2. Cargamos el módulo y comprobamos que está en ejecución:
# modprobe ipw3945
# ps -C ipw3945d
PID TTY TIME CMD
7317 pts/1 00:00:00 ipw3945d


3. Llegado a éste punto, tenemos configurado el driver. Ahora necesitamos configurar la red y para ello voy detallaré 2 formas: una mediante la línea de comandos y otra editando el fichero de configuración de red "/etc/network/interfaces" si queremos que esté disponible en el arranque del equipo.

3.1 LÍNEA DE COMANDOS:
La configuración actual de mi equipo es la siguiente:
# ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::216:d4ff:fed1:5575/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:72629 errors:0 dropped:0 overruns:0 frame:0
TX packets:41694 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:99169422 (94.5 MiB) TX bytes:3970560 (3.7 MiB)
Interrupt:66

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:461 errors:0 dropped:0 overruns:0 frame:0
TX packets:461 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:29919 (29.2 KiB) TX bytes:29919 (29.2 KiB)

# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
localnet * 255.255.255.0 U 0 0 0 eth0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

Como se puede ver, la IP de mi tarjeta de red eth0 es 192.168.1.100 y la puerta de enlace por donde salgo a internet (mi router/modem) es 192.168.1.1.


- Para ver la interfaz de mi tarjeta de red inalámbrica tecleo lo siguiente:
# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

sit0 no wireless extensions.

eth1 unassociated ESSID:off/any
Mode:Managed Frequency=nan kHz Access Point: Not-Associated
Bit Rate:0 kb/s Tx-Power:16 dBm
Retry limit:15 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:2488 Missed beacon:0


- Ahora buscamos el nombre de la red inalámbrica (SSID):
# iwlist eth1 scan
eth1 Scan completed :
Cell 01 - Address: 00:C0:
ESSID:"USR9106" => Nombre mi Red Inalámbrica
Protocol:IEEE 802.11bg
Mode:Master
Channel:11
Encryption key:off => Tengo la red sin encriptación
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
11 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Quality=97/100 Signal level=-28 dBm Noise level=-28 dBm
Extra: Last beacon: 56ms ago


- Si tenemos deshabilitado en el punto de acceso el broadcast del SSID, no te aparecerá en el paso anterior. Una vez que lo tengas, nos conectamos a la red inalámbrica:
# iwconfig eth1 essid "USR9106"

NOTA:
Si tienes activada la encriptación, debes utilizar éste comando poniendo entre comillas tu SSID y clave:
# iwconfig eth1 essid "ESSID_DE_LA_RED" key s:"CLAVE_WEP_EN_ASCII"


- Establecemos la IP de nuestra red Inalámbrica (yo elegí 192.168.1.200):
# ifconfig eth1 192.168.1.200

- Eliminamos la puerta de enlace por defecto, que está asociada a la red eth0.
# route del default gw 192.168.1.1 eth0

Nos quedará así:
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
localnet * 255.255.255.0 U 0 0 0 eth0
localnet * 255.255.255.0 U 0 0 0 eth1

- Añadimos la nueva puerta de enlace asociada a la red inalámbrica eth1.
# route add default gw 192.168.1.1 eth1

# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
localnet * 255.255.255.0 U 0 0 0 eth0
localnet * 255.255.255.0 U 0 0 0 eth1
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth1

Comprobamos que todo funciona haciendo un ping al blog:
# ping -c 4 debiantotal.blogspot.com
PING blogspot.l.google.com (72.14.207.191) 56(84) bytes of data.
64 bytes from eh-in-f191.google.com (72.14.207.191): icmp_seq=1 ttl=241 time=193 ms
64 bytes from eh-in-f191.google.com (72.14.207.191): icmp_seq=2 ttl=243 time=179 ms
64 bytes from eh-in-f191.google.com (72.14.207.191): icmp_seq=3 ttl=244 time=179 ms
64 bytes from eh-in-f191.google.com (72.14.207.191): icmp_seq=4 ttl=243 time=189 ms

--- blogspot.l.google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3001ms
rtt min/avg/max/mdev = 179.668/185.572/193.774/6.093 ms

La red ya está configurada. El inconveniente que tiene ésta forma es que al reiniciar perderemos la configuración, con lo que al arrancar, deberemos configurarla de nuevo.

RESÚMEN DE COMANDOS:
Como veo que me ha quedado un poco largo, aquí están resumidos los comandos importantes. Los demás los utilizo para ir mostrando que voy haciendo en cada paso, con sus salidas correspondientes.
# iwconfig eth1 essid "USR9106"
# ifconfig eth1 192.168.1.200
# route del default gw 192.168.1.1 eth0
# route add default gw 192.168.1.1 eth1


3.2 CONFIGURAR FICHERO /etc/network/interfaces:
Si no queremos estar configurando la red en cada inicio, debemos editar el fichero situado en /etc/network/interfaces. El contenido de mi fichero antes de configurar la red inalámbrica es el siguiente:

# cat /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 194.179.1.100
dns-search pruebas

Como se puede ver, utilizo IP estática en mi red. No utilizo DHCP.

Editamos el fichero y lo dejamos tal y como aparece a continuación.
# vi /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
#gateway 192.168.1.1
# dns-* options are implemented by the resolvconf package, if installed
#dns-nameservers 194.179.1.100
#dns-search pruebas

# INTERFAZ INALAMBRICA
auto eth1
iface eth1 inet static
address 192.168.1.201
network 192.168.1.0
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
dns-nameservers 194.179.1.100
wireless-essid USR9106
wireless-mode managed

NOTA:
Para adaptarlo a tu red, debes sustituir las direcciones "address, network, netmask, broadcast, gateway y dns-nameservers".

Reiniciamos la red con el comando:
# /etc/init.d/networking restart
Reconfiguring network interfaces...done.

Comprobamos que todo está bien con :
# ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::216:d4ff:fed1:5575/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:79728 errors:0 dropped:0 overruns:0 frame:0
TX packets:45239 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:102169609 (97.4 MiB) TX bytes:6460431 (6.1 MiB)
Interrupt:66

eth1 Link encap:Ethernet HWaddr 00:19:
inet addr:192.168.1.201 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::219:d2ff:fe09:34d9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:38 errors:46 dropped:3154 overruns:0 frame:0
TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1385208 (1.3 MiB) TX bytes:2433233 (2.3 MiB)
Interrupt:193 Base address:0x4000 Memory:d2100000-d2100fff

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:476 errors:0 dropped:0 overruns:0 frame:0
TX packets:476 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:31320 (30.5 KiB) TX bytes:31320 (30.5 KiB)

# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
localnet * 255.255.255.0 U 0 0 0 eth0
localnet * 255.255.255.0 U 0 0 0 eth1
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth1

# ping -c 4 debiantotal.blogspot.com
PING blogspot.l.google.com (72.14.207.191) 56(84) bytes of data.
64 bytes from eh-in-f191.google.com (72.14.207.191): icmp_seq=1 ttl=243 time=184 ms
64 bytes from eh-in-f191.google.com (72.14.207.191): icmp_seq=2 ttl=241 time=193 ms
64 bytes from eh-in-f191.google.com (72.14.207.191): icmp_seq=3 ttl=241 time=194 ms
64 bytes from eh-in-f191.google.com (72.14.207.191): icmp_seq=4 ttl=243 time=176 ms

--- blogspot.l.google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3002ms
rtt min/avg/max/mdev = 176.720/187.374/194.368/7.275 ms


4. Para ver el estado de nuestra conexión inalámbrica, tecleamos en una terminal lo siguiente:
$ cat /proc/net/wireless
Inter-| sta-| Quality | Discarded packets | Missed | WE
face | tus | link level noise | nwid crypt frag retry misc | beacon | 20
eth1: 0000 97. 225. 224. 0 0 0 0 2805 0


PENDIENE DE TERMINAR.


FUENTES:
http://ipw3945.sourceforge.net/INSTALL
http://dionisus.cuclug.org.ve/?p=8
$ less /usr/share/doc/wireless-tools/README.Debian

Saludos y suerte.
Domi - Gran Canaria (Islas Canarias)

13 de mayo de 2007

Instalar VMware Server 1.03 en Debian Etch

Hace unas semanas recibí un mail de howtoforge en el cual el usuario "till" publicó una guía para instalar VMware Server en Debian Etch. Aquí está el enlace:
http://howtoforge.com/debian_etch_vmware_server_howto

Basándome en la misma voy a detallar los pasos que he seguido para instalarlo en mi equipo.

1. Accedemos a ésta página para bajarnos el programa y nos registramos para conseguir un número de serie gratis.

http://www.vmware.com/download/server/

Nos vamos a descargar éstos archivos:
VMware-server-1.0.3-44356.tar.gz - SERVIDOR
VMware-mui-1.0.3-44356.tar.gz - INTERFAZ DE ADMINISTRACIÓN


2. Una vez descargados, nos logueamos como root en una consola, copiamos los ficheros al home de root y los descomprimimos:
$ su -
password:

# cp ~usuario_local/Desktop/VMware* /root

# tar xvfz VMware-server-*.tar.gz - Nos crea el directorio "vmware-server-distrib"
# tar xvfz VMware-mui-*.tar.gz - Nos crea el directorio "vmware-mui-distrib"


3. Accedemos al directorio "vmware-server-distrib" y comenzamos la instalación.

Antes de todo, instalamos las fuentes de nuestro kernel en caso de no haberlo hecho antes:
# aptitude install linux-headers-$(uname -r)

# cd vmware-server-distrib/
# ./vmware-install.pl

Creating a new installer database using the tar3 format.

Installing the content of the package.

In which directory do you want to install the binary files?
[/usr/bin] [ENTER]

What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc] [ENTER]

What is the directory that contains the init scripts?
[/etc/init.d] [ENTER]

In which directory do you want to install the daemon files?
[/usr/sbin] [ENTER]

In which directory do you want to install the library files?
[/usr/lib/vmware] [ENTER]

The path "/usr/lib/vmware" does not exist currently. This program is going to
create it, including needed parent directories. Is this what you want?
[yes] [ENTER]

In which directory do you want to install the manual files?
[/usr/share/man] [ENTER]

In which directory do you want to install the documentation files?
[/usr/share/doc/vmware] [ENTER]

The path "/usr/share/doc/vmware" does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes] [ENTER]

The installation of VMware Server 1.0.3 build-44356 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall.pl".

Before running VMware Server for the first time, you need to configure it by
invoking the following command: "/usr/bin/vmware-config.pl". Do you want this
program to invoke the command for you now? [yes] [ENTER]

Making sure services for VMware Server are stopped.

Stopping VMware services:
Virtual machine monitor done

You must read and accept the End User License Agreement to continue.
Press enter to display it.

VMWARE MASTER END USER LICENSE AGREEMENT

NOTICE: BY DOWNLOADING AND INSTALLING,
COPYING OR OTHERWISE USING THE SOFTWARE, YOU
AGREE TO BE BOUND BY THE TERMS OF THIS EULA.
IF YOU DO NOT AGREE TO THE TERMS OF THIS EULA,
YOU MAY NOT DOWNLOAD, INSTALL, COPY OR USE THE
SOFTWARE, AND YOU MAY RETURN THE UNUSED
SOFTWARE TO THE VENDOR FROM WHICH YOU ACQUIRED
IT WITHIN THIRTY (30) DAYS AND REQUEST A
REFUND OF THE LICENSE FEE, IF ANY, ALREADY
PAID UPON SHOWING PROOF OF PAYMENT.

1. DEFINITIONS

[q]

Do you accept? (yes/no) yes [ENTER]

Thank you.

Configuring fallback GTK+ 2.4 libraries.

In which directory do you want to install the mime type icons?
[/usr/share/icons] [ENTER]

What directory contains your desktop menu entry files? These files have a
.desktop file extension. [/usr/share/applications] [ENTER]

In which directory do you want to install the application's icon?
[/usr/share/pixmaps] [ENTER]

Trying to find a suitable vmmon module for your running kernel.

None of the pre-built vmmon modules for VMware Server is suitable for your
running kernel. Do you want this program to try to build the vmmon module for
your system (you need to have a C compiler installed on your system)? [yes]

Using compiler "/usr/bin/gcc". Use environment variable CC to override.

What is the location of the directory of C header files that match your running
kernel? [/lib/modules/2.6.18-4-686/build/include] [ENTER]

Extracting the sources of the vmmon module.

Building the vmmon module.

Using 2.6.x kernel build system.
make: se ingresa al directorio `/tmp/vmware-config0/vmmon-only'
make -C /lib/modules/2.6.18-4-686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: se ingresa al directorio `/usr/src/linux-headers-2.6.18-4-686'
CC [M] /tmp/vmware-config0/vmmon-only/linux/driver.o
CC [M] /tmp/vmware-config0/vmmon-only/linux/hostif.o
CC [M] /tmp/vmware-config0/vmmon-only/common/cpuid.o
CC [M] /tmp/vmware-config0/vmmon-only/common/hash.o
CC [M] /tmp/vmware-config0/vmmon-only/common/memtrack.o
CC [M] /tmp/vmware-config0/vmmon-only/common/phystrack.o
CC [M] /tmp/vmware-config0/vmmon-only/common/task.o
CC [M] /tmp/vmware-config0/vmmon-only/common/vmx86.o
CC [M] /tmp/vmware-config0/vmmon-only/vmcore/moduleloop.o
LD [M] /tmp/vmware-config0/vmmon-only/vmmon.o
Building modules, stage 2.
MODPOST
CC /tmp/vmware-config0/vmmon-only/vmmon.mod.o
LD [M] /tmp/vmware-config0/vmmon-only/vmmon.ko
make[1]: se sale del directorio `/usr/src/linux-headers-2.6.18-4-686'
cp -f vmmon.ko ./../vmmon.o
make: se sale del directorio `/tmp/vmware-config0/vmmon-only'
The module loads perfectly in the running kernel.

Do you want networking for your virtual machines? (yes/no/help) [yes] [ENTER]

Configuring a bridged network for vmnet0.

Your computer has multiple ethernet network interfaces available: eth0, eth1.
Which one do you want to bridge to vmnet0? [eth0] [ENTER]

The following bridged networks have been defined:

. vmnet0 is bridged to eth0

Do you wish to configure another bridged network? (yes/no) [no] [ENTER]

Do you want to be able to use NAT networking in your virtual machines? (yes/no)
[yes] [ENTER]

Configuring a NAT network for vmnet8.

Do you want this program to probe for an unused private subnet? (yes/no/help)
[yes] [ENTER]

Probing for an unused private subnet (this can take some time)...

The subnet 172.16.229.0/255.255.255.0 appears to be unused.

The following NAT networks have been defined:

. vmnet8 is a NAT network on private subnet 172.16.229.0.

Do you wish to configure another NAT network? (yes/no) [no] [ENTER]

Do you want to be able to use host-only networking in your virtual machines?
[yes] [ENTER]

Configuring a host-only network for vmnet1.

Do you want this program to probe for an unused private subnet? (yes/no/help)
[yes] [ENTER]

Probing for an unused private subnet (this can take some time)...

The subnet 172.16.47.0/255.255.255.0 appears to be unused.

The following host-only networks have been defined:

. vmnet1 is a host-only network on private subnet 172.16.47.0.

Do you wish to configure another host-only network? (yes/no) [no] [ENTER]

Extracting the sources of the vmnet module.

Building the vmnet module.

Using 2.6.x kernel build system.
make: se ingresa al directorio `/tmp/vmware-config0/vmnet-only'
make -C /lib/modules/2.6.18-4-686/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules
make[1]: se ingresa al directorio `/usr/src/linux-headers-2.6.18-4-686'
CC [M] /tmp/vmware-config0/vmnet-only/driver.o
CC [M] /tmp/vmware-config0/vmnet-only/hub.o
CC [M] /tmp/vmware-config0/vmnet-only/userif.o
CC [M] /tmp/vmware-config0/vmnet-only/netif.o
CC [M] /tmp/vmware-config0/vmnet-only/bridge.o
CC [M] /tmp/vmware-config0/vmnet-only/procfs.o
CC [M] /tmp/vmware-config0/vmnet-only/smac_compat.o
SHIPPED /tmp/vmware-config0/vmnet-only/smac_linux.x386.o
LD [M] /tmp/vmware-config0/vmnet-only/vmnet.o
Building modules, stage 2.
MODPOST
CC /tmp/vmware-config0/vmnet-only/vmnet.mod.o
LD [M] /tmp/vmware-config0/vmnet-only/vmnet.ko
make[1]: se sale del directorio `/usr/src/linux-headers-2.6.18-4-686'
cp -f vmnet.ko ./../vmnet.o
make: se sale del directorio `/tmp/vmware-config0/vmnet-only'
The module loads perfectly in the running kernel.

Please specify a port for remote console connections to use [902] [ENTER]

Configuring the VMware VmPerl Scripting API.

Building the VMware VmPerl Scripting API.

Using compiler "/usr/bin/gcc". Use environment variable CC to override.

Installing the VMware VmPerl Scripting API.

The installation of the VMware VmPerl Scripting API succeeded.

Generating SSL Server Certificate

In which directory do you want to keep your virtual machine files?
[/var/lib/vmware/Virtual Machines] /var/vm [ENTER]

Please enter your 20-character serial number.

Type XXXXX-XXXXX-XXXXX-XXXXX or 'Enter' to cancel: Ponemos Nº Serie [ENTER]

Starting VMware services:
Virtual machine monitor#[71G done
Virtual ethernet#[71G done
Bridged networking on /dev/vmnet0#[71G done
Host-only networking on /dev/vmnet1 (background)#[71G done
Host-only networking on /dev/vmnet8 (background)#[71G done
NAT service on /dev/vmnet8#[71G done

The configuration of VMware Server 1.0.3 build-44356 for Linux for this running
kernel completed successfully.

Hasta aquí ya deberíamos tener instalado VMware Server. Para entrar, en KDE me ha puesto el enlace en el menú SISTEMA. Ya podemos crear e iniciar máquinas virtuales.


4. Instalamos la Interfaz de Administración: OPCIONAL, NO ES IMPRESCINDIBLE
# cd ..
# cd vmware-mui-distrib/

# ./vmware-install.pl

Creating a new installer database using the tar3 format.

You must read and accept the End User License Agreement to continue.
Press enter to display it.

VMWARE MASTER END USER LICENSE AGREEMENT

NOTICE: BY DOWNLOADING AND INSTALLING,
COPYING OR OTHERWISE USING THE SOFTWARE, YOU
AGREE TO BE BOUND BY THE TERMS OF THIS EULA.
IF YOU DO NOT AGREE TO THE TERMS OF THIS EULA,
YOU MAY NOT DOWNLOAD, INSTALL, COPY OR USE THE
SOFTWARE, AND YOU MAY RETURN THE UNUSED
SOFTWARE TO THE VENDOR FROM WHICH YOU ACQUIRED
IT WITHIN THIRTY (30) DAYS AND REQUEST A
REFUND OF THE LICENSE FEE, IF ANY, ALREADY
PAID UPON SHOWING PROOF OF PAYMENT.

1. DEFINITIONS

[q]

Do you accept? (yes/no) yes [ENTER]

Thank you.

Installing the content of the package.

In which directory do you want to install the binary files?
[/usr/bin] [ENTER]

What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc] [ENTER]

What is the directory that contains the init scripts?
[/etc/init.d] [ENTER]

In which directory do you want to install the VMware Management Interface
files? [/usr/lib/vmware-mui] [ENTER]

The path "/usr/lib/vmware-mui" does not exist currently. This program is going
to create it, including needed parent directories. Is this what you want?
[yes] [ENTER]

In which directory would you like to install the documentation files?
[/usr/lib/vmware-mui/doc] [ENTER]

The path "/usr/lib/vmware-mui/doc" does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes] [ENTER]

The installation of VMware Management Interface 1.0.3 build-44356 for Linux
completed successfully. You can decide to remove this software from your system
at any time by invoking the following command:
"/usr/bin/vmware-uninstall-mui.pl".

Before running VMware Management Interface for the first time, you need to
configure it by invoking the following command:
"/usr/bin/vmware-config-mui.pl". Do you want this program to invoke the command
for you now? [yes] [ENTER]

Configuring httpd.conf to run Apache as:
User: www-data and Group: nogroup

Set the number of minutes before a http session times out. (This is the length
of time before someone connecting to VMware Management Interface will be logged
out) [60] [ENTER]

Generating SSL Server Certificate

Starting httpd.vmware: done
The configuration of VMware Management Interface completed successfully.


Ya podemos acceder a la consola poniendo éste enlace en la URL de nuestro navegador (debes especificar la IP del equipo en el que se ha instalado):

https://192.168.1.10:8333/vmware/en/

Todavía desconozco todas las posibilidades de éste programa. Cuando saque algo de tiempo probaré a acceder al servido desde conexiones remotas. Si alguien tiene más información, le agradecería que la comentara.


Saludos y Suerte.
Domi - Gran Canaria (Islas Canarias)

Instalar Adobe Reader 7.09 en Debian Etch

Hola. Después de mas de un mes sin poder actualizar el blog, a continuación explico los pasos para instalar Adobe Reader que actualmente va por la versión 7.09 en Debian Etch.

ACTUALIZACIÓN 18.09.07:
Publicada una nueva guía para instalar la versión de Adobe Reader 8.1 en Debian Etch.

1. Descargamos la versión RPM del paquete de la siguiente dirección:
http://www.adobe.com/es/products/acrobat/readstep2.html


2. Mientras se descarga, abrimos una terminal, nos logueamos como "root" e instalamos alien, que nos permite convertir paquetes de .rpm (Red Hat) en .deb (Debian).
$ su -
password:

# aptitude install alien
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias... Hecho
Leyendo la información de estado extendido
Inicializando el estado de los paquetes... Hecho
Leyendo las descripciones de las tareas... Hecho
Construir la base de datos de etiquetas... Hecho
Se instalarán automáticamente los siguientes paquetes NUEVOS:
libbeecrypt6 libneon25 librpm4 rpm
Se instalarán los siguiente paquetes NUEVOS:
alien libbeecrypt6 libneon25 librpm4 rpm
0 paquetes actualizados, 5 nuevos instalados, 0 para eliminar y 0 sin actualizar.
Necesito descargar 2120kB de ficheros. Después de desempaquetar se usarán 6590kB.
¿Quiere continuar? [Y/n/?] y
Escribiendo información de estado extendido... Hecho
Des:1 http://ftp.fr.debian.org etch/main libbeecrypt6 4.1.2-6 [108kB]
Des:2 http://ftp.fr.debian.org etch/main libneon25 0.25.5.dfsg-6 [101kB]
Des:3 http://ftp.fr.debian.org etch/main librpm4 4.4.1-13 [978kB]
Des:4 http://ftp.fr.debian.org etch/main rpm 4.4.1-13 [830kB]
Des:5 http://ftp.fr.debian.org etch/main alien 8.64 [104kB]
Descargados 2120kB en 49s (42,4kB/s).
Seleccionando el paquete libbeecrypt6 previamente no seleccionado.
(Leyendo la base de datos ...
72196 ficheros y directorios instalados actualmente.)
Desempaquetando libbeecrypt6 (de .../libbeecrypt6_4.1.2-6_i386.deb) ...
Seleccionando el paquete libneon25 previamente no seleccionado.
Desempaquetando libneon25 (de .../libneon25_0.25.5.dfsg-6_i386.deb) ...
Seleccionando el paquete librpm4 previamente no seleccionado.
Desempaquetando librpm4 (de .../librpm4_4.4.1-13_i386.deb) ...
Seleccionando el paquete rpm previamente no seleccionado.
Desempaquetando rpm (de .../archives/rpm_4.4.1-13_i386.deb) ...
Seleccionando el paquete alien previamente no seleccionado.
Desempaquetando alien (de .../archives/alien_8.64_all.deb) ...
Configurando libbeecrypt6 (4.1.2-6) ...

Configurando libneon25 (0.25.5.dfsg-6) ...

Configurando librpm4 (4.4.1-13) ...

Configurando rpm (4.4.1-13) ...

Configurando alien (8.64) ...


3. Accedemos al directorio de nuestro usuario local en el que se ha descargado el paquete y lo convertimos:
# cd ~nombre_usuario/Desktop
# ls -l
-rw-r--r-- 1 domi domi 47978347 2007-05-13 07:13 AdobeReader_esp-7.0.9-1.i386.rpm

# alien --script AdobeReader_esp-7.0.9-1.i386.rpm
adobereader-esp_7.0.9-2_i386.deb generated


4. Procedemos a instalarlo:
# dpkg -i adobereader-esp_7.0.9-2_i386.deb
Seleccionando el paquete adobereader-esp previamente no seleccionado.
(Leyendo la base de datos ...
72457 ficheros y directorios instalados actualmente.)
Desempaquetando adobereader-esp (de adobereader-esp_7.0.9-2_i386.deb) ...
Configurando adobereader-esp (7.0.9-2) ...
ln: creando el enlace simbólico «/Reader/intellinux/lib/libldap.so» a «/usr/lib/libldap.so.2»: No existe el fichero o el directorio
ln: creando el enlace simbólico «/Reader/intellinux/lib/liblber.so» a «/usr/lib/liblber.so.2»: No existe el fichero o el directorio
dpkg: error al procesar adobereader-esp (--install):
el subproceso post-installation script devolvió el código de salida de error 1
Se encontraron errores al procesar:
adobereader-esp

Como se puede ver, me dió un error al enlazar una librería necesaria para el programa. De todas formas, a mi me ha funcionado sin corregir éste error. Pero bueno, para evitar algún posible fallo, lo creamos a mano de la siguiente forma:

# cd /usr/local/Adobe/Acrobat7.0/Reader/intellinux/lib/
# ln -s /usr/lib/libldap.so.2

NOTA:
He visto que debido a éste error, el paquete se queda en estado "half-configured" que según "man dpkg" nos dice lo siguiente; "The package is unpacked and configuration has been started, but not yet completed for some reason.". La consecuencia que tiene ésto es que cada vez que instalo algo o actualizo, intenta configurar de nuevo el paquete.
Ya que el paquete funciona perfectamente, pues corrijo los errores manualmente, la solución que he encontrado es editar el estado del paquete en la base de datos de instalación. Para ello hacemos:

¡¡OJO, MUCHO CUIDADO CON ESTE ARCHIVO QUE CONTIENE EL HISTORIAL DE PAQUETES DEL SISTEMA!! HACED COPIA DE SEGURIDAD
# cp /var/lib/dpkg/status /root

# vi /var/lib/dpkg/status
Una vez dentro, escribimos en la línea de comandos de VI lo siguiente:
/adobereader

Nos aparecerá lo siguiente:
Package: adobereader-esp
Status: install ok half-configured - MODIFICAR
Priority: extra
Section: alien
Installed-Size: 122536
Maintainer: root
Architecture: i386
Version: 7.0.9-2
Config-Version: 7.0.9-2 - ELIMINAR (no dejar la línea en blanco. Unir)
Depends: libatk1.0-0 (>= 1.12.2), libc6 (>= 2.3.6-6), libfontconfig1 (>= 2.4.0), libglib2.0-0 (>= 2.12.0), libglu1-mesa | libglu1, libgtk2.0-0 (>= 2.8.0), libpango1.0-0 (>= 1.14.8), libx11-6, libxext6, libxt6, xlibmesa-gl | libgl1, zlib1g (>= 1:1.2.1)
Description: Adobe Reader for Linux. An application that can view, navigate and print PDF documents.
Adobe Reader puede leer documentos con formato PDF. Adobe Reader también le permite buscar en archivos PDF, buscar archivos PDF en Internet y participar en revisiones de documentos en colaboración.
.
(Converted from a rpm package by alien version 8.64.)

Pulsamos la tecla "i" y modificamos en la línea Status la palabra "half-configured" por "installed" y eliminamos la línea "Config-Version: 7.0.9-2"
Status: install ok installed

Una vez hecho, le damos a la tecla "[ESC]" y en la línea de comandos ":x" para salir y guardar.
Si no sabes utilizar el editor VI, mira éste post:


5. El programa se ha instalado en mi KDE en el menú OFICINA. También podemos ejecutarlo en una terminal tecleando "acroread".

Al entrar nos mostrará otro error que nos dice que no se puede iniciar el plugin PPKLite.api, pero podemos picar en aceptar y nos seguirá funcionando. Al igual que antes, para evitar algún posible fallo lo corregimos así:
# chmod a-x /usr/local/Adobe/Acrobat7.0/Reader/intellinux/plug_ins/PPKLite.api
# ll /usr/local/Adobe/Acrobat7.0/Reader/intellinux/plug_ins/PPKLite.api
-rw-r--r-- 1 root root 10500190 2006-05-08 02:45 /usr/local/Adobe/Acrobat7.0/Reader/intellinux/plug_ins/PPKLite.api


6. Para finalizar, si queremos que al navegar con iceweasel nos muestre los ficheros PDF en el propio navegador, hacemos lo siguiente:
# ln -s /usr/local/Adobe/Acrobat7.0/Browser/intellinux/nppdf.so /usr/lib/iceweasel/plugins/

# ls -l /usr/lib/iceweasel/plugins/
lrwxrwxrwx 1 root root 41 2007-05-10 00:18 libjavaplugin.so -> /etc/alternatives/iceweasel-javaplugin.so
-rw-r--r-- 1 root root 9044 2007-03-21 20:24 libunixprintplugin.so
lrwxrwxrwx 1 root root 55 2007-05-13 07:48 nppdf.so -> /usr/local/Adobe/Acrobat7.0/Browser/intellinux/nppdf.so

Podemos comprobar que está instalado poniendo en la barra de direcciones de iceweasel lo siguiente: about:plugins

Veremos algo así:
Adobe Reader 7.0
Nombre del fichero: nppdf.so
The Adobe Reader plugin is used to enable viewing of PDF and FDF files from within the browser.
Tipo MIME Descripción Sufijos Activado
application/pdf Portable Document Format pdf
application/vnd.fdf Acrobat Forms Data Format fdf
application/vnd.adobe.xfdf XML Version of Acrobat Forms Data Format xfdf
application/vnd.adobe.xdp+xml Acrobat XML Data Package xdp
application/vnd.adobe.xfd+xml Adobe FormFlow99 Data File xfd

Saludos y Suerte.
Domi - Gran Canaria (Islas Canarias)