Muchas veces necesitamos ejecutar algun programa .exe en linux, o instalar algun programa de windows en linux, para esto en el mundo del software libre tenemos muchos emuladores de las apis de windows para que corran en linux, como dosemu o el conocido wine.
En este articulo instalaremos wine con apt-get en ubuntu.
entonces vamos a la consola y escribimos:
slack@zion:~$ sudo apt-get install wine
[sudo] password for slack:
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
Se instalarán los siguientes paquetes extras:
cabextract libmpg123-0 libopenal1 ttf-mscorefonts-installer ttf-symbol-replacement winbind wine1.2 wine1.2-gecko
Se instalarán los siguientes paquetes NUEVOS:
cabextract libmpg123-0 libopenal1 ttf-mscorefonts-installer ttf-symbol-replacement winbind wine wine1.2 wine1.2-gecko
0 actualizados, 9 se instalarán, 0 para eliminar y 252 no actualizados.
Necesito descargar 22,6MB de archivos.
Se utilizarán 103MB de espacio de disco adicional después de esta operación.
¿Desea continuar [S/n]? S
Des:1 http://archive.ubuntu.com/ubuntu/ lucid/universe ttf-symbol-replacement 1.1.42-0ubuntu4 [55,2kB]
Des:2 http://archive.ubuntu.com/ubuntu/ lucid/universe libmpg123-0 1.12.1-0ubuntu1 [148kB]
Des:3 http://archive.ubuntu.com/ubuntu/ lucid-updates/universe libopenal1 1:1.12.854-0ubuntu1~lucid1 [115kB]
Des:4 http://archive.ubuntu.com/ubuntu/ lucid/universe wine1.2 1.1.42-0ubuntu4 [9638kB]
Des:5 http://archive.ubuntu.com/ubuntu/ lucid/multiverse wine1.2-gecko 1.0.0-0ubuntu4 [8123kB]
Des:6 http://archive.ubuntu.com/ubuntu/ lucid/universe cabextract 1.2-3 [55,4kB]
Des:7 http://archive.ubuntu.com/ubuntu/ lucid/multiverse ttf-mscorefonts-installer 3.2 [36,7kB]
Des:8 http://archive.ubuntu.com/ubuntu/ lucid/main winbind 2:3.4.7~dfsg-1ubuntu3 [4405kB]
Des:9 http://archive.ubuntu.com/ubuntu/ lucid/universe wine 1.1.42-0ubuntu4 [38,5kB]
Descargados 22,6MB en 1min 43s (218kB/s)
Preconfigurando paquetes ...
Seleccionando el paquete ttf-symbol-replacement previamente no seleccionado.
(Leyendo la base de datos ... 00%
159210 ficheros y directorios instalados actualmente.)
Desempaquetando ttf-symbol-replacement (de .../ttf-symbol-replacement_1.1.42-0ubuntu4_all.deb) ...
Seleccionando el paquete libmpg123-0 previamente no seleccionado.
Desempaquetando libmpg123-0 (de .../libmpg123-0_1.12.1-0ubuntu1_i386.deb) ...
Seleccionando el paquete libopenal1 previamente no seleccionado.
Desempaquetando libopenal1 (de .../libopenal1_1%3a1.12.854-0ubuntu1~lucid1_i386.deb) ...
Seleccionando el paquete wine1.2 previamente no seleccionado.
Desempaquetando wine1.2 (de .../wine1.2_1.1.42-0ubuntu4_i386.deb) ...
Seleccionando el paquete wine1.2-gecko previamente no seleccionado.
Desempaquetando wine1.2-gecko (de .../wine1.2-gecko_1.0.0-0ubuntu4_i386.deb) ...
Seleccionando el paquete cabextract previamente no seleccionado.
Desempaquetando cabextract (de .../cabextract_1.2-3_i386.deb) ...
Seleccionando el paquete ttf-mscorefonts-installer previamente no seleccionado.
Desempaquetando ttf-mscorefonts-installer (de .../ttf-mscorefonts-installer_3.2_all.deb) ...
Seleccionando el paquete winbind previamente no seleccionado.
Desempaquetando winbind (de .../winbind_2%3a3.4.7~dfsg-1ubuntu3_i386.deb) ...
Seleccionando el paquete wine previamente no seleccionado.
Desempaquetando wine (de .../wine_1.1.42-0ubuntu4_all.deb) ...
Procesando disparadores para fontconfig ...
Procesando disparadores para man-db ...
Procesando disparadores para hicolor-icon-theme ...
Procesando disparadores para desktop-file-utils ...
Procesando disparadores para python-gmenu ...
Rebuilding /usr/share/applications/desktop.es_CL.utf8.cache...
Procesando disparadores para ureadahead ...
ureadahead will be reprofiled on next reboot
Procesando disparadores para python-support ...
Configurando ttf-symbol-replacement (1.1.42-0ubuntu4) ...
Configurando libmpg123-0 (1.12.1-0ubuntu1) ...
Configurando libopenal1 (1:1.12.854-0ubuntu1~lucid1) ...
Configurando wine1.2 (1.1.42-0ubuntu4) ...
procps stop/waiting
procps stop/waiting
Configurando wine1.2-gecko (1.0.0-0ubuntu4) ...
Configurando cabextract (1.2-3) ...
Configurando ttf-mscorefonts-installer (3.2) ...
These fonts were provided by Microsoft "in the interest of cross-
platform compatibility". This is no longer the case, but they are
still available from third parties.
You are free to download these fonts and use them for your own use,
but you may not redistribute them in modified form, including changes
to the file name or packaging format.
--2010-08-04 19:19:49-- http://downloads.sourceforge.net/corefonts/andale32.exe
Resolviendo downloads.sourceforge.net... 216.34.181.59
Conectando a downloads.sourceforge.net|216.34.181.59|:80... conectado.
Petición HTTP enviada, esperando respuesta... 301 Moved Permanently
Ubicación: http://downloads.sourceforge.net/project/corefonts/the%20fonts/final/andale32.exe [siguiente]
--2010-08-04 19:20:04-- http://downloads.sourceforge.net/project/corefonts/the%20fonts/final/andale32.exe
Reusando la conexión existente a downloads.sourceforge.net:80.
Petición HTTP enviada, esperando respuesta... 302 Found
Ubicación: http://ufpr.dl.sourceforge.net/project/corefonts/the%20fonts/final/andale32.exe [siguiente]
--2010-08-04 19:20:05-- http://ufpr.dl.sourceforge.net/project/corefonts/the%20fonts/final/andale32.exe
Resolviendo ufpr.dl.sourceforge.net... 200.17.202.1
Conectando a ufpr.dl.sourceforge.net|200.17.202.1|:80... conectado.
Petición HTTP enviada, esperando respuesta... 200 OK
Longitud: 198384 (194K) [application/x-msdos-program]
Guardando en: `./andale32.exe'
0K .......... .......... .......... .......... .......... 25% 43,1K 3s
50K .......... .......... .......... .......... .......... 51% 73,1K 2s
100K .......... .......... .......... .......... .......... 77% 156K 1s
150K .......... .......... .......... .......... ... 100% 141K=2,5s
2010-08-04 19:20:18 (78,3 KB/s) - `./andale32.exe' guardado [198384/198384]
--2010-08-04 19:20:18-- http://downloads.sourceforge.net/corefonts/arialb32.exe
Resolviendo downloads.sourceforge.net... 216.34.181.59
Conectando a downloads.sourceforge.net|216.34.181.59|:80... conectado.
Petición HTTP enviada, esperando respuesta... 301 Moved Permanently
Ubicación: http://downloads.sourceforge.net/project/corefonts/the%20fonts/final/arialb32.exe [siguiente]
--2010-08-04 19:20:34-- http://downloads.sourceforge.net/project/corefonts/the%20fonts/final/arialb32.exe
Reusando la conexión existente a downloads.sourceforge.net:80.
Petición HTTP enviada, esperando respuesta... 302 Found
Ubicación: http://ufpr.dl.sourceforge.net/project/corefonts/the%20fonts/final/arialb32.exe [siguiente]
--2010-08-04 19:20:34-- http://ufpr.dl.sourceforge.net/project/corefonts/the%20fonts/final/arialb32.exe
Resolviendo ufpr.dl.sourceforge.net... 200.17.202.1
Conectando a ufpr.dl.sourceforge.net|200.17.202.1|:80... conectado.
Petición HTTP enviada, esperando respuesta... 200 OK
Longitud: 168176 (164K) [application/x-msdos-program]
Guardando en: `./arialb32.exe'
0K .......... .......... .......... .......... .......... 30% 40,5K 3s
50K .......... .......... .......... .......... .......... 60% 82,0K 1s
100K .......... .......... .......... .......... .......... 91% 162K 0s
150K .......... .... 100% 2,21M=2,2s
2010-08-04 19:20:48 (76,1 KB/s) - `./arialb32.exe' guardado [168176/168176]
--2010-08-04 19:20:48-- http://downloads.sourceforge.net/corefonts/arial32.exe
Resolviendo downloads.sourceforge.net... 216.34.181.59
Conectando a downloads.sourceforge.net|216.34.181.59|:80... conectado.
Petición HTTP enviada, esperando respuesta... 301 Moved Permanently
Ubicación: http://downloads.sourceforge.net/project/corefonts/the%20fonts/final/arial32.exe [siguiente]
--2010-08-04 19:21:04-- http://downloads.sourceforge.net/project/corefonts/the%20fonts/final/arial32.exe
Reusando la conexión existente a downloads.sourceforge.net:80.
Petición HTTP enviada, esperando respuesta... 302 Found
Ubicación: http://ufpr.dl.sourceforge.net/project/corefonts/the%20fonts/final/arial32.exe [siguiente]
--2010-08-04 19:21:04-- http://ufpr.dl.sourceforge.net/project/corefonts/the%20fonts/final/arial32.exe
Resolviendo ufpr.dl.sourceforge.net... 200.17.202.1
Conectando a ufpr.dl.sourceforge.net|200.17.202.1|:80... conectado.
Petición HTTP enviada, esperando respuesta... 200 OK
Longitud: 554208 (541K) [application/x-msdos-program]
Guardando en: `./arial32.exe'
0K .......... .......... .......... .......... .......... 9% 34,8K 14s
50K .......... .......... .......... .......... .......... 18% 158K 8s
100K .......... .......... .......... .......... .......... 27% 82,5K 6s
150K .......... .......... .......... .......... .......... 36% 162K 5s
200K .......... .......... .......... .......... .......... 46% 154K 3s
250K .......... .......... .......... .......... .......... 55% 127K 3s
300K .......... .......... .......... .......... .......... 64% 164K 2s
350K .......... .......... .......... .......... .......... 73% 163K 1s
400K .......... .......... .......... .......... .......... 83% 2,27M 1s
450K .......... .......... .......... .......... .......... 92% 172K 0s
500K .......... .......... .......... .......... . 100% 834K=4,4s
2010-08-04 19:21:19 (124 KB/s) - `./arial32.exe' guardado [554208/554208]
--2010-08-04 19:21:19-- http://downloads.sourceforge.net/corefonts/comic32.exe
Resolviendo downloads.sourceforge.net... 216.34.181.59
Conectando a downloads.sourceforge.net|216.34.181.59|:80... conectado.
Petición HTTP enviada, esperando respuesta... 301 Moved Permanently
Ubicación: http://downloads.sourceforge.net/project/corefonts/the%20fonts/final/comic32.exe [siguiente]
--2010-08-04 19:21:35-- http://downloads.sourceforge.net/project/corefonts/the%20fonts/final/comic32.exe
Reusando la conexión existente a downloads.sourceforge.net:80.
Petición HTTP enviada, esperando respuesta... 302 Found
Ubicación: http://ufpr.dl.sourceforge.net/project/corefonts/the%20fonts/final/comic32.exe [siguiente]
--2010-08-04 19:21:35-- http://ufpr.dl.sourceforge.net/project/corefonts/the%20fonts/final/comic32.exe
Resolviendo ufpr.dl.sourceforge.net... 200.17.202.1
Conectando a ufpr.dl.sourceforge.net|200.17.202.1|:80... conectado.
Petición HTTP enviada, esperando respuesta... 200 OK
Longitud: 246008 (240K) [application/x-msdos-program]
Guardando en: `./comic32.exe'
0K .......... .......... .......... .......... .......... 20% 44,6K 4s
50K .......... .......... .......... .......... .......... 41% 122K 2s
100K .......... .......... .......... .......... .......... 62% 160K 1s
150K .......... .......... .......... .......... .......... 83% 83,6K 0s
200K .......... .......... .......... .......... 100% 2,88M=2,5s
2010-08-04 19:21:48 (97,8 KB/s) - `./comic32.exe' guardado [246008/246008]
--2010-08-04 19:21:48-- http://downloads.sourceforge.net/corefonts/courie32.exe
Resolviendo downloads.sourceforge.net... 216.34.181.59
Conectando a downloads.sourceforge.net|216.34.181.59|:80... conectado.
Petición HTTP enviada, esperando respuesta... 301 Moved Permanently
Ubicación: http://downloads.sourceforge.net/project/corefonts/the%20fonts/final/courie32.exe [siguiente]
--2010-08-04 19:21:59-- http://downloads.sourceforge.net/project/corefonts/the%20fonts/final/courie32.exe
Reusando la conexión existente a downloads.sourceforge.net:80.
Petición HTTP enviada, esperando respuesta... 302 Found
Ubicación: http://ufpr.dl.sourceforge.net/project/corefonts/the%20fonts/final/courie32.exe [siguiente]
--2010-08-04 19:21:59-- http://ufpr.dl.sourceforge.net/project/corefonts/the%20fonts/final/courie32.exe
Resolviendo ufpr.dl.sourceforge.net... 200.17.202.1
Conectando a ufpr.dl.sourceforge.net|200.17.202.1|:80... conectado.
Petición HTTP enviada, esperando respuesta... 200 OK
Longitud: 646368 (631K) [application/x-msdos-program]
Guardando en: `./courie32.exe'
0K .......... .......... .......... .......... .......... 7% 42,0K 14s
50K .......... .......... .......... .......... .......... 15% 86,4K 9s
100K .......... .......... .......... .......... .......... 23% 130K 7s
150K .......... .......... .......... .......... .......... 31% 161K 5s
200K .......... .......... .......... .......... .......... 39% 162K 4s
250K .......... .......... .......... .......... .......... 47% 164K 3s
300K .......... .......... .......... .......... .......... 55% 183K 3s
350K .......... .......... .......... .......... .......... 63% 837K 2s
400K .......... .......... .......... .......... .......... 71% 171K 1s
450K .......... .......... .......... .......... .......... 79% 180K 1s
500K .......... .......... .......... .......... .......... 87% 171K 1s
550K .......... .......... .......... .......... .......... 95% 149K 0s
600K .......... .......... .......... . 100% 1,89M=4,6s
2010-08-04 19:22:10 (136 KB/s) - `./courie32.exe' guardado [646368/646368]
--2010-08-04 19:22:10-- http://downloads.sourceforge.net/corefonts/georgi32.exe
Resolviendo downloads.sourceforge.net... 216.34.181.59
Conectando a downloads.sourceforge.net|216.34.181.59|:80... conectado.
Petición HTTP enviada, esperando respuesta... 301 Moved Permanently
Ubicación: http://downloads.sourceforge.net/project/corefonts/the%20fonts/final/georgi32.exe [siguiente]
--2010-08-04 19:22:20-- http://downloads.sourceforge.net/project/corefonts/the%20fonts/final/georgi32.exe
Reusando la conexión existente a downloads.sourceforge.net:80.
Petición HTTP enviada, esperando respuesta... 302 Found
Ubicación: http://ufpr.dl.sourceforge.net/project/corefonts/the%20fonts/final/georgi32.exe [siguiente]
--2010-08-04 19:22:20-- http://ufpr.dl.sourceforge.net/project/corefonts/the%20fonts/final/georgi32.exe
Resolviendo ufpr.dl.sourceforge.net... 200.17.202.1
Conectando a ufpr.dl.sourceforge.net|200.17.202.1|:80... conectado.
Petición HTTP enviada, esperando respuesta... 200 OK
Longitud: 392440 (383K) [application/x-msdos-program]
Guardando en: `./georgi32.exe'
0K .......... .......... .......... .......... .......... 13% 41,6K 8s
50K .......... .......... .......... .......... .......... 26% 134K 4s
100K .......... .......... .......... .......... .......... 39% 90,0K 3s
150K .......... .......... .......... .......... .......... 52% 168K 2s
200K .......... .......... .......... .......... .......... 65% 174K 1s
250K .......... .......... .......... .......... .......... 78% 138K 1s
300K .......... .......... .......... .......... .......... 91% 164K 0s
350K .......... .......... .......... ... 100% 2,42M=3,4s
2010-08-04 19:22:30 (113 KB/s) - `./georgi32.exe' guardado [392440/392440]
--2010-08-04 19:22:30-- http://downloads.sourceforge.net/corefonts/impact32.exe
Resolviendo downloads.sourceforge.net... 216.34.181.59
Conectando a downloads.sourceforge.net|216.34.181.59|:80... conectado.
Petición HTTP enviada, esperando respuesta... 301 Moved Permanently
Ubicación: http://downloads.sourceforge.net/project/corefonts/the%20fonts/final/impact32.exe [siguiente]
--2010-08-04 19:22:45-- http://downloads.sourceforge.net/project/corefonts/the%20fonts/final/impact32.exe
Reusando la conexión existente a downloads.sourceforge.net:80.
Petición HTTP enviada, esperando respuesta... 302 Found
Ubicación: http://ufpr.dl.sourceforge.net/project/corefonts/the%20fonts/final/impact32.exe [siguiente]
--2010-08-04 19:22:45-- http://ufpr.dl.sourceforge.net/project/corefonts/the%20fonts/final/impact32.exe
Resolviendo ufpr.dl.sourceforge.net... 200.17.202.1
Conectando a ufpr.dl.sourceforge.net|200.17.202.1|:80... conectado.
Petición HTTP enviada, esperando respuesta... 200 OK
Longitud: 173288 (169K) [application/x-msdos-program]
Guardando en: `./impact32.exe'
0K .......... .......... .......... .......... .......... 29% 40,7K 3s
50K .......... .......... .......... .......... .......... 59% 158K 1s
100K .......... .......... .......... .......... .......... 88% 82,2K 0s
150K .......... ......... 100% 2,91M=2,2s
2010-08-04 19:22:58 (78,3 KB/s) - `./impact32.exe' guardado [173288/173288]
--2010-08-04 19:22:58-- http://downloads.sourceforge.net/corefonts/times32.exe
Resolviendo downloads.sourceforge.net... 216.34.181.59
Conectando a downloads.sourceforge.net|216.34.181.59|:80... conectado.
Petición HTTP enviada, esperando respuesta... 301 Moved Permanently
Ubicación: http://downloads.sourceforge.net/project/corefonts/the%20fonts/final/times32.exe [siguiente]
--2010-08-04 19:23:14-- http://downloads.sourceforge.net/project/corefonts/the%20fonts/final/times32.exe
Reusando la conexión existente a downloads.sourceforge.net:80.
Petición HTTP enviada, esperando respuesta... 302 Found
Ubicación: http://ufpr.dl.sourceforge.net/project/corefonts/the%20fonts/final/times32.exe [siguiente]
--2010-08-04 19:23:14-- http://ufpr.dl.sourceforge.net/project/corefonts/the%20fonts/final/times32.exe
Resolviendo ufpr.dl.sourceforge.net... 200.17.202.1
Conectando a ufpr.dl.sourceforge.net|200.17.202.1|:80... conectado.
Petición HTTP enviada, esperando respuesta... 200 OK
Longitud: 661728 (646K) [application/x-msdos-program]
Guardando en: `./times32.exe'
0K .......... .......... .......... .......... .......... 7% 39,8K 15s
50K .......... .......... .......... .......... .......... 15% 81,6K 10s
100K .......... .......... .......... .......... .......... 23% 160K 7s
150K .......... .......... .......... .......... .......... 30% 166K 6s
200K .......... .......... .......... .......... .......... 38% 171K 4s
250K .......... .......... .......... .......... .......... 46% 160K 4s
300K .......... .......... .......... .......... .......... 54% 156K 3s
350K .......... .......... .......... .......... .......... 61% 2,46M 2s
400K .......... .......... .......... .......... .......... 69% 168K 2s
450K .......... .......... .......... .......... .......... 77% 191K 1s
500K .......... .......... .......... .......... .......... 85% 1,41M 1s
550K .......... .......... .......... .......... .......... 92% 163K 0s
600K .......... .......... .......... .......... ...... 100% 2,68M=4,3s
2010-08-04 19:23:29 (149 KB/s) - `./times32.exe' guardado [661728/661728]
--2010-08-04 19:23:29-- http://downloads.sourceforge.net/corefonts/trebuc32.exe
Resolviendo downloads.sourceforge.net... 216.34.181.59
Conectando a downloads.sourceforge.net|216.34.181.59|:80... conectado.
Petición HTTP enviada, esperando respuesta... 301 Moved Permanently
Ubicación: http://downloads.sourceforge.net/project/corefonts/the%20fonts/final/trebuc32.exe [siguiente]
--2010-08-04 19:23:45-- http://downloads.sourceforge.net/project/corefonts/the%20fonts/final/trebuc32.exe
Reusando la conexión existente a downloads.sourceforge.net:80.
Petición HTTP enviada, esperando respuesta... 302 Found
Ubicación: http://ufpr.dl.sourceforge.net/project/corefonts/the%20fonts/final/trebuc32.exe [siguiente]
--2010-08-04 19:23:45-- http://ufpr.dl.sourceforge.net/project/corefonts/the%20fonts/final/trebuc32.exe
Resolviendo ufpr.dl.sourceforge.net... 200.17.202.1
Conectando a ufpr.dl.sourceforge.net|200.17.202.1|:80... conectado.
Petición HTTP enviada, esperando respuesta... 200 OK
Longitud: 357200 (349K) [application/x-msdos-program]
Guardando en: `./trebuc32.exe'
0K .......... .......... .......... .......... .......... 14% 41,0K 7s
50K .......... .......... .......... .......... .......... 28% 153K 4s
100K .......... .......... .......... .......... .......... 43% 82,8K 3s
150K .......... .......... .......... .......... .......... 57% 155K 2s
200K .......... .......... .......... .......... .......... 71% 124K 1s
250K .......... .......... .......... .......... .......... 86% 162K 1s
300K .......... .......... .......... .......... ........ 100% 161K=3,5s
2010-08-04 19:23:59 (100 KB/s) - `./trebuc32.exe' guardado [357200/357200]
--2010-08-04 19:23:59-- http://downloads.sourceforge.net/corefonts/verdan32.exe
Resolviendo downloads.sourceforge.net... 216.34.181.59
Conectando a downloads.sourceforge.net|216.34.181.59|:80... conectado.
Petición HTTP enviada, esperando respuesta... 301 Moved Permanently
Ubicación: http://downloads.sourceforge.net/project/corefonts/the%20fonts/final/verdan32.exe [siguiente]
--2010-08-04 19:24:15-- http://downloads.sourceforge.net/project/corefonts/the%20fonts/final/verdan32.exe
Reusando la conexión existente a downloads.sourceforge.net:80.
Petición HTTP enviada, esperando respuesta... 302 Found
Ubicación: http://ufpr.dl.sourceforge.net/project/corefonts/the%20fonts/final/verdan32.exe [siguiente]
--2010-08-04 19:24:15-- http://ufpr.dl.sourceforge.net/project/corefonts/the%20fonts/final/verdan32.exe
Resolviendo ufpr.dl.sourceforge.net... 200.17.202.1
Conectando a ufpr.dl.sourceforge.net|200.17.202.1|:80... conectado.
Petición HTTP enviada, esperando respuesta... 200 OK
Longitud: 351992 (344K) [application/x-msdos-program]
Guardando en: `./verdan32.exe'
0K .......... .......... .......... .......... .......... 14% 39,9K 7s
50K .......... .......... .......... .......... .......... 29% 69,9K 5s
100K .......... .......... .......... .......... .......... 43% 160K 3s
150K .......... .......... .......... .......... .......... 58% 161K 2s
200K .......... .......... .......... .......... .......... 72% 161K 1s
250K .......... .......... .......... .......... .......... 87% 176K 0s
300K .......... .......... .......... .......... ... 100% 148K=3,5s
2010-08-04 19:24:29 (98,7 KB/s) - `./verdan32.exe' guardado [351992/351992]
--2010-08-04 19:24:29-- http://downloads.sourceforge.net/corefonts/webdin32.exe
Resolviendo downloads.sourceforge.net... 216.34.181.59
Conectando a downloads.sourceforge.net|216.34.181.59|:80... conectado.
Petición HTTP enviada, esperando respuesta... 301 Moved Permanently
Ubicación: http://downloads.sourceforge.net/project/corefonts/the%20fonts/final/webdin32.exe [siguiente]
--2010-08-04 19:24:45-- http://downloads.sourceforge.net/project/corefonts/the%20fonts/final/webdin32.exe
Reusando la conexión existente a downloads.sourceforge.net:80.
Petición HTTP enviada, esperando respuesta... 302 Found
Ubicación: http://ufpr.dl.sourceforge.net/project/corefonts/the%20fonts/final/webdin32.exe [siguiente]
--2010-08-04 19:24:45-- http://ufpr.dl.sourceforge.net/project/corefonts/the%20fonts/final/webdin32.exe
Resolviendo ufpr.dl.sourceforge.net... 200.17.202.1
Conectando a ufpr.dl.sourceforge.net|200.17.202.1|:80... conectado.
Petición HTTP enviada, esperando respuesta... 200 OK
Longitud: 185072 (181K) [application/x-msdos-program]
Guardando en: `./webdin32.exe'
0K .......... .......... .......... .......... .......... 27% 40,7K 3s
50K .......... .......... .......... .......... .......... 55% 148K 1s
100K .......... .......... .......... .......... .......... 82% 85,3K 0s
150K .......... .......... .......... 100% 2,39M=2,2s
2010-08-04 19:24:58 (83,4 KB/s) - `./webdin32.exe' guardado [185072/185072]
andale32.exe: La suma coincide
Extracting cabinet: andale32.exe
extracting fontinst.inf
extracting andale.inf
extracting fontinst.exe
extracting AndaleMo.TTF
extracting ADVPACK.DLL
extracting W95INF32.DLL
extracting W95INF16.DLL
All done, no errors.
arialb32.exe: La suma coincide
Extracting cabinet: arialb32.exe
extracting fontinst.exe
extracting fontinst.inf
extracting AriBlk.TTF
All done, no errors.
arial32.exe: La suma coincide
Extracting cabinet: arial32.exe
extracting FONTINST.EXE
extracting fontinst.inf
extracting Ariali.TTF
extracting Arialbd.TTF
extracting Arialbi.TTF
extracting Arial.TTF
All done, no errors.
comic32.exe: La suma coincide
Extracting cabinet: comic32.exe
extracting fontinst.inf
extracting Comicbd.TTF
extracting Comic.TTF
extracting fontinst.exe
All done, no errors.
courie32.exe: La suma coincide
Extracting cabinet: courie32.exe
extracting cour.ttf
extracting courbd.ttf
extracting courbi.ttf
extracting fontinst.inf
extracting couri.ttf
extracting fontinst.exe
All done, no errors.
georgi32.exe: La suma coincide
Extracting cabinet: georgi32.exe
extracting fontinst.inf
extracting Georgiaz.TTF
extracting Georgiab.TTF
extracting Georgiai.TTF
extracting Georgia.TTF
extracting fontinst.exe
All done, no errors.
impact32.exe: La suma coincide
Extracting cabinet: impact32.exe
extracting fontinst.exe
extracting Impact.TTF
extracting fontinst.inf
All done, no errors.
times32.exe: La suma coincide
Extracting cabinet: times32.exe
extracting fontinst.inf
extracting Times.TTF
extracting Timesbd.TTF
extracting Timesbi.TTF
extracting Timesi.TTF
extracting FONTINST.EXE
All done, no errors.
trebuc32.exe: La suma coincide
Extracting cabinet: trebuc32.exe
extracting FONTINST.EXE
extracting trebuc.ttf
extracting Trebucbd.ttf
extracting trebucbi.ttf
extracting trebucit.ttf
extracting fontinst.inf
All done, no errors.
verdan32.exe: La suma coincide
Extracting cabinet: verdan32.exe
extracting fontinst.exe
extracting fontinst.inf
extracting Verdanab.TTF
extracting Verdanai.TTF
extracting Verdanaz.TTF
extracting Verdana.TTF
All done, no errors.
webdin32.exe: La suma coincide
Extracting cabinet: webdin32.exe
extracting fontinst.exe
extracting Webdings.TTF
extracting fontinst.inf
extracting Licen.TXT
All done, no errors.
All fonts downloaded and installed.
Updating fontconfig cache for /usr/share/fonts/truetype/msttcorefonts
No CIDSupplement specified for Dotum-Bold, defaulting to 0.
No CIDSupplement specified for Batang-Regular, defaulting to 0.
No CIDSupplement specified for Batang-Bold, defaulting to 0.
No CIDSupplement specified for Dotum-Regular, defaulting to 0.
Updating fontconfig cache for /usr/share/fonts/truetype/msttcorefonts
Configurando winbind (2:3.4.7~dfsg-1ubuntu3) ...
* Starting the Winbind daemon winbind [ OK ]
Configurando wine (1.1.42-0ubuntu4) ...
Procesando disparadores para libc-bin ...
ldconfig deferred processing now taking place
y ya tenemos wine instalado en nuestro linux.
ahora si tienes algun programa para windows, como macromedia firefox o dreamweaver, vas con nautilus al lugar donde tienes el ejecutable, y boton derecho-> abrir con wine. pronto se iniciara el instalador del programa tal como en el ventanukos.
Saludos y suerte !!
miércoles, 4 de agosto de 2010
miércoles, 7 de julio de 2010
Crear SWAP en Linux
Aqui les dejo el tuto para crear particion de intercambio swap en linux
1.- Crear el archivo de intercambio
slack@zion:/$ sudo dd if=/dev/zero of=/media/swapfile bs=1M count=2048
[sudo] password for slack:
2048+0 registros de entrada
2048+0 registros de salida
2147483648 bytes (2,1 GB) copiados, 59,7214 s, 36,0 MB/s
slack@zion:/$ sudo mkswap /media/swapfile
mkswap: /media/swapfile: aviso: no borrar los sectores bootbits
en todo el disco. Use -f to force.
Configurando la versión swapspace 1, tamaño = 2097148 KiB
sin etiqueta, UUID=86755efc-4ad6-4f30-aa2f-7fab714b36a8
2.- Activar la particion de intercambio
slack@zion:/$ sudo swapon /media/swapfile
3.- Verificar
slack@zion:/$ free
total used free shared buffers cached
Mem: 2013468 1959708 53760 0 22752 1545316
-/+ buffers/cache: 391640 1621828
Swap: 2097144 0 2097144
Saludos y suerte !!
1.- Crear el archivo de intercambio
slack@zion:/$ sudo dd if=/dev/zero of=/media/swapfile bs=1M count=2048
[sudo] password for slack:
2048+0 registros de entrada
2048+0 registros de salida
2147483648 bytes (2,1 GB) copiados, 59,7214 s, 36,0 MB/s
slack@zion:/$ sudo mkswap /media/swapfile
mkswap: /media/swapfile: aviso: no borrar los sectores bootbits
en todo el disco. Use -f to force.
Configurando la versión swapspace 1, tamaño = 2097148 KiB
sin etiqueta, UUID=86755efc-4ad6-4f30-aa2f-7fab714b36a8
2.- Activar la particion de intercambio
slack@zion:/$ sudo swapon /media/swapfile
3.- Verificar
slack@zion:/$ free
total used free shared buffers cached
Mem: 2013468 1959708 53760 0 22752 1545316
-/+ buffers/cache: 391640 1621828
Swap: 2097144 0 2097144
Saludos y suerte !!
miércoles, 16 de junio de 2010
Refrescar variables de entorno en linux
Hola, cuando creamos una variable de entorno en linux los hacemos editando el archivo /etc/environment o /etc/profile agregando en el caso de java las siguientes lineas
JAVA_HOME=/home/slack/programas/java/jdk1.6.0_20
export JAVA_HOME
Luego si queremos ver esta variable al listar las variables de entorno del sistema debemos ejecutar el sigte comando
slack@zion:~$ . /etc/profile
slack@zion:~$
slack@zion:~$ env
ORBIT_SOCKETDIR=/tmp/orbit-slack
SSH_AGENT_PID=1639
TERM=xterm
SHELL=/bin/bash
XDG_SESSION_COOKIE=e424f279b12b6259b70427c24c174c62-1276687945.687105-1023801592
WINDOWID=73400324
GNOME_KEYRING_CONTROL=/tmp/keyring-U1Vb8O
GTK_MODULES=canberra-gtk-module
USER=slack
LS_COLORS=rs=0:di=01;34:ln=01;36:hl=44;37:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
SSH_AUTH_SOCK=/tmp/keyring-U1Vb8O/ssh
DEFAULTS_PATH=/usr/share/gconf/gnome.default.path
SESSION_MANAGER=local/zion:@/tmp/.ICE-unix/1605,unix/zion:/tmp/.ICE-unix/1605
USERNAME=slack
XDG_CONFIG_DIRS=/etc/xdg/xdg-gnome:/etc/xdg
DESKTOP_SESSION=gnome
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
PWD=/home/slack
JAVA_HOME=/home/slack/programas/java/jdk1.6.0_20
GDM_KEYBOARD_LAYOUT=latam
LANG=es_CL.utf8
GNOME_KEYRING_PID=1587
MANDATORY_PATH=/usr/share/gconf/gnome.mandatory.path
GDM_LANG=es_CL.utf8
GDMSESSION=gnome
SPEECHD_PORT=7560
SHLVL=1
HOME=/home/slack
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
LOGNAME=slack
XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share/:/usr/share/
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-rIrub3ZtG6,guid=af78a4863e1cace0770fa3b14c18b64a
LESSOPEN=| /usr/bin/lesspipe %s
DISPLAY=:0.0
LESSCLOSE=/usr/bin/lesspipe %s %s
XAUTHORITY=/var/run/gdm/auth-for-slack-GeiXcb/database
COLORTERM=gnome-terminal
_=/usr/bin/env
slack@zion:~$ java -version
java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8-0ubuntu1)
OpenJDK Server VM (build 14.0-b16, mixed mode)
slack@zion:~$
Suerte !!
JAVA_HOME=/home/slack/programas/java/jdk1.6.0_20
export JAVA_HOME
Luego si queremos ver esta variable al listar las variables de entorno del sistema debemos ejecutar el sigte comando
slack@zion:~$ . /etc/profile
slack@zion:~$
slack@zion:~$ env
ORBIT_SOCKETDIR=/tmp/orbit-slack
SSH_AGENT_PID=1639
TERM=xterm
SHELL=/bin/bash
XDG_SESSION_COOKIE=e424f279b12b6259b70427c24c174c62-1276687945.687105-1023801592
WINDOWID=73400324
GNOME_KEYRING_CONTROL=/tmp/keyring-U1Vb8O
GTK_MODULES=canberra-gtk-module
USER=slack
LS_COLORS=rs=0:di=01;34:ln=01;36:hl=44;37:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
SSH_AUTH_SOCK=/tmp/keyring-U1Vb8O/ssh
DEFAULTS_PATH=/usr/share/gconf/gnome.default.path
SESSION_MANAGER=local/zion:@/tmp/.ICE-unix/1605,unix/zion:/tmp/.ICE-unix/1605
USERNAME=slack
XDG_CONFIG_DIRS=/etc/xdg/xdg-gnome:/etc/xdg
DESKTOP_SESSION=gnome
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
PWD=/home/slack
JAVA_HOME=/home/slack/programas/java/jdk1.6.0_20
GDM_KEYBOARD_LAYOUT=latam
LANG=es_CL.utf8
GNOME_KEYRING_PID=1587
MANDATORY_PATH=/usr/share/gconf/gnome.mandatory.path
GDM_LANG=es_CL.utf8
GDMSESSION=gnome
SPEECHD_PORT=7560
SHLVL=1
HOME=/home/slack
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
LOGNAME=slack
XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share/:/usr/share/
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-rIrub3ZtG6,guid=af78a4863e1cace0770fa3b14c18b64a
LESSOPEN=| /usr/bin/lesspipe %s
DISPLAY=:0.0
LESSCLOSE=/usr/bin/lesspipe %s %s
XAUTHORITY=/var/run/gdm/auth-for-slack-GeiXcb/database
COLORTERM=gnome-terminal
_=/usr/bin/env
slack@zion:~$ java -version
java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8-0ubuntu1)
OpenJDK Server VM (build 14.0-b16, mixed mode)
slack@zion:~$
Suerte !!
miércoles, 21 de abril de 2010
Instalar MYSQL
Hola, Nunca esta demas el saber instalar mysql en linux correctamente a travez de apt-get, bueno el comando que se debe ingresar por consola unix es el sigte:
importante: previamente debemos agregar al source-list la sigte url del repositorio:
http://cl.archive.ubuntu.com jaunty/
slack@zion:~$apt-get -y --force-yes -f install mysql-client-5.0 mysql-server-core-5.0 mysql-server-5.0 mysql-client mysql-server
Reading package lists...
Building dependency tree...
Reading state information...
mysql-admin is already the newest version.
The following packages were automatically installed and are no longer required:
sendmail-base libdns45 m4 procmail sensible-mda sendmail-cf libmysqlclient16
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
mysql-client-5.0 mysql-server-5.0 mysql-server-core-5.0
Suggested packages:
mysql-doc-5.0 tinyca
The following NEW packages will be installed:
mysql-client mysql-client-5.0 mysql-server mysql-server-5.0
mysql-server-core-5.0
0 upgraded, 5 newly installed, 0 to remove and 1 not upgraded.
Need to get 34.9MB of archives.
After this operation, 107MB of additional disk space will be used.
Get:1 http://cl.archive.ubuntu.com jaunty/main mysql-client-5.0 5.1.30really5.0.75-0ubuntu10 [7877kB]
Get:2 http://cl.archive.ubuntu.com jaunty/main mysql-server-core-5.0 5.1.30really5.0.75-0ubuntu10 [3348kB]
Get:3 http://cl.archive.ubuntu.com jaunty/main mysql-server-5.0 5.1.30really5.0.75-0ubuntu10 [23.6MB]
Get:4 http://cl.archive.ubuntu.com jaunty/main mysql-client 5.1.30really5.0.75-0ubuntu10 [54.8kB]
Get:5 http://cl.archive.ubuntu.com jaunty/main mysql-server 5.1.30really5.0.75-0ubuntu10 [57.0kB]
Preconfiguring packages ...
Fetched 34.9MB in 2min 15s (258kB/s)
Selecting previously deselected package mysql-client-5.0.
(Reading database ... 175660 files and directories currently installed.)
Unpacking mysql-client-5.0 (from .../mysql-client-5.0_5.1.30really5.0.75-0ubuntu10_i386.deb) ...
Selecting previously deselected package mysql-server-core-5.0.
Unpacking mysql-server-core-5.0 (from .../mysql-server-core-5.0_5.1.30really5.0.75-0ubuntu10_i386.deb) ...
Selecting previously deselected package mysql-server-5.0.
Unpacking mysql-server-5.0 (from .../mysql-server-5.0_5.1.30really5.0.75-0ubuntu10_i386.deb) ...
Selecting previously deselected package mysql-client.
Unpacking mysql-client (from .../mysql-client_5.1.30really5.0.75-0ubuntu10_all.deb) ...
Selecting previously deselected package mysql-server.
Unpacking mysql-server (from .../mysql-server_5.1.30really5.0.75-0ubuntu10_all.deb) ...
Processing triggers for man-db ...
Setting up mysql-client-5.0 (5.1.30really5.0.75-0ubuntu10) ...
Setting up mysql-server-core-5.0 (5.1.30really5.0.75-0ubuntu10) ...
Setting up mysql-server-5.0 (5.1.30really5.0.75-0ubuntu10) ...
* Stopping MySQL database server mysqld
...done.
* Reloading AppArmor profiles ...
...done.
* Starting MySQL database server mysqld
...done.
* Checking for corrupt, not cleanly closed and upgrade needing tables.
Setting up mysql-client (5.1.30really5.0.75-0ubuntu10) ...
Setting up mysql-server (5.1.30really5.0.75-0ubuntu10) ...
Bueno eso es, saludos a todos y suerte !!
importante: previamente debemos agregar al source-list la sigte url del repositorio:
http://cl.archive.ubuntu.com jaunty/
slack@zion:~$apt-get -y --force-yes -f install mysql-client-5.0 mysql-server-core-5.0 mysql-server-5.0 mysql-client mysql-server
Reading package lists...
Building dependency tree...
Reading state information...
mysql-admin is already the newest version.
The following packages were automatically installed and are no longer required:
sendmail-base libdns45 m4 procmail sensible-mda sendmail-cf libmysqlclient16
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
mysql-client-5.0 mysql-server-5.0 mysql-server-core-5.0
Suggested packages:
mysql-doc-5.0 tinyca
The following NEW packages will be installed:
mysql-client mysql-client-5.0 mysql-server mysql-server-5.0
mysql-server-core-5.0
0 upgraded, 5 newly installed, 0 to remove and 1 not upgraded.
Need to get 34.9MB of archives.
After this operation, 107MB of additional disk space will be used.
Get:1 http://cl.archive.ubuntu.com jaunty/main mysql-client-5.0 5.1.30really5.0.75-0ubuntu10 [7877kB]
Get:2 http://cl.archive.ubuntu.com jaunty/main mysql-server-core-5.0 5.1.30really5.0.75-0ubuntu10 [3348kB]
Get:3 http://cl.archive.ubuntu.com jaunty/main mysql-server-5.0 5.1.30really5.0.75-0ubuntu10 [23.6MB]
Get:4 http://cl.archive.ubuntu.com jaunty/main mysql-client 5.1.30really5.0.75-0ubuntu10 [54.8kB]
Get:5 http://cl.archive.ubuntu.com jaunty/main mysql-server 5.1.30really5.0.75-0ubuntu10 [57.0kB]
Preconfiguring packages ...
Fetched 34.9MB in 2min 15s (258kB/s)
Selecting previously deselected package mysql-client-5.0.
(Reading database ... 175660 files and directories currently installed.)
Unpacking mysql-client-5.0 (from .../mysql-client-5.0_5.1.30really5.0.75-0ubuntu10_i386.deb) ...
Selecting previously deselected package mysql-server-core-5.0.
Unpacking mysql-server-core-5.0 (from .../mysql-server-core-5.0_5.1.30really5.0.75-0ubuntu10_i386.deb) ...
Selecting previously deselected package mysql-server-5.0.
Unpacking mysql-server-5.0 (from .../mysql-server-5.0_5.1.30really5.0.75-0ubuntu10_i386.deb) ...
Selecting previously deselected package mysql-client.
Unpacking mysql-client (from .../mysql-client_5.1.30really5.0.75-0ubuntu10_all.deb) ...
Selecting previously deselected package mysql-server.
Unpacking mysql-server (from .../mysql-server_5.1.30really5.0.75-0ubuntu10_all.deb) ...
Processing triggers for man-db ...
Setting up mysql-client-5.0 (5.1.30really5.0.75-0ubuntu10) ...
Setting up mysql-server-core-5.0 (5.1.30really5.0.75-0ubuntu10) ...
Setting up mysql-server-5.0 (5.1.30really5.0.75-0ubuntu10) ...
* Stopping MySQL database server mysqld
...done.
* Reloading AppArmor profiles ...
...done.
* Starting MySQL database server mysqld
...done.
* Checking for corrupt, not cleanly closed and upgrade needing tables.
Setting up mysql-client (5.1.30really5.0.75-0ubuntu10) ...
Setting up mysql-server (5.1.30really5.0.75-0ubuntu10) ...
Bueno eso es, saludos a todos y suerte !!
martes, 16 de marzo de 2010
Intalio
Hola,
cortito.
Conceptos como WebServices (servicios web), SOA y BPM están ya revolucionando el mundo del desarrollo de software. Los desarrollos monolíticos ya no tienen sentido en el mundo en que vivimos.
Esto implica cambiar un poquito la perspectiva de las soluciones, fundamentalmente pensando en procesos de negocio y no en programas. Estos procesos se apoyarán en servicios independientes de tecnología y lenguajes para satisfacer las necesidades del negocio.
Esta tecnología que parece orientada a las grandes empresas, también es asequible a las pequeñas/medianas gracias a las herramientas OpenSource.
Intalio es una de ellas, de gran aceptación y creciente uso.
vean esta demo
http://bpms.intalio.com/files/resources/demos/bpp6/
Saludos
cortito.
Conceptos como WebServices (servicios web), SOA y BPM están ya revolucionando el mundo del desarrollo de software. Los desarrollos monolíticos ya no tienen sentido en el mundo en que vivimos.
Esto implica cambiar un poquito la perspectiva de las soluciones, fundamentalmente pensando en procesos de negocio y no en programas. Estos procesos se apoyarán en servicios independientes de tecnología y lenguajes para satisfacer las necesidades del negocio.
Esta tecnología que parece orientada a las grandes empresas, también es asequible a las pequeñas/medianas gracias a las herramientas OpenSource.
Intalio es una de ellas, de gran aceptación y creciente uso.
vean esta demo
http://bpms.intalio.com/files/resources/demos/bpp6/
Saludos
lunes, 23 de noviembre de 2009
Maven
Hola, muchos de los que trabajamos desarrollando j2ee, conocemos ant, como herramienta de automatización del deploy del proyecto, la evolucion de ant es maven, el cual a travez de comenados descarga automaticamente desde los repositorios las librerias y dependencias para la aplicación. Aqui veremos como trabaja Maven 2 para el proyecto appfuse 2.
Primero debemos descargar maven 2.x desde su web, http://maven.apache.org/download.html#Installation para este ejemplo descargue el archivo apache-maven-2.2.1-bin.tar.gz
Luego lo descomprimi en mi directorio de programas, creando el siguiente directorio:
/home/slack/programas/apache-maven-2.2.1
con el siguiente contenido:
slack@zion:~/programas/apache-maven-2.2.1$ ls -la
total 48
drwxr-xr-x 6 slack slack 4096 2009-11-23 12:35 .
drwxr-xr-x 18 slack slack 4096 2009-11-23 12:35 ..
drwxr-xr-x 2 slack slack 4096 2009-11-23 12:35 bin
drwxr-xr-x 2 slack slack 4096 2009-11-23 12:35 boot
drwxrwxrwx 2 slack slack 4096 2009-08-06 15:11 conf
drwxr-xr-x 2 slack slack 4096 2009-11-23 12:35 lib
-rw-r--r-- 1 slack slack 12933 2009-08-06 15:11 LICENSE.txt
-rw-r--r-- 1 slack slack 923 2009-08-06 15:11 NOTICE.txt
-rw-r--r-- 1 slack slack 2532 2009-08-06 15:11 README.txt
Luego que tenemos el directorio de Maven, debemos declararlo en las variables de entorno para poder utilizarlo. como lo descomprimimos en el directorio de usuario modificaremos el profile, en caso contrario el enviromment
Entonces vamos a la consola y escribimos el sigte. comando para editar nuestro profile:
slack@zion:~/programas/apache-maven-2.2.1$ sudo nano /etc/profile
ingresamos la password de root para poder editar el archivo, y agregamos la sigte linea, ademas debemos agregar la variable al export.
MAVEN_HOME=/home/slack/programas/apache-maven-2.2.1
export ANT_HOME JAVA_HOME CATALINA_HOME TOMCAT_HOME AWT_TOOLKIT=MToolkit MATLAB_JAVA MAVEN_HOME
Tambien debemos agregar el bin de Maven al path, en el archivo enviromment, ejecutamos el sigte. comando, con sudo para poder editar:
slack@zion:~/programas/apache-maven-2.2.1$ sudo nano /etc/environment
y agregamos el bin de Maven al path, como se muestra abajo:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/slack/programas/apache-maven-2.2.1/bin"
Una vez hecho esto debemos cerrar la consola, y esperar que los demonios del sistema actualicen las variables, en caso contrario bastara con reiniciar. Para confirmar que tenemos bien configurado Maven ejecutamos:
slack@zion:~/programas/apache-maven-2.2.1$ mvn --version
Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400)
Java version: 1.5.0_12
Java home: /home/slack/programas/java/jdk1.5.0_12/jre
Default locale: es_CL, platform encoding: UTF-8
OS name: "linux" version: "2.6.28-15-generic" arch: "i386" Family: "unix"
Esto nos despliega la informacion del contexto para ejecutar Maven (mvn)
Ahora ya podemos ejecutar mvn para nuestros proyectos, debemos para este ejemplo tener instalado Mysql, utilizaremos mvn para appfuse2, entonces vamos al directorio de nuestros proyectos, y ejecutamos la sigte. linea
slack@zion:~/desarrollo$ mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-basic-spring -DremoteRepositories=http://static.appfuse.org/releases -DarchetypeVersion=2.0.2 -DgroupId=cl.xerox.app -DartifactId=appfuse2
En esta linea le decimos a maven nuestra estructura de packages y el nombre del proyecto. al ejecutar el comando se comienza la descarga de las dependencias del proyecto, mediante POM.xml (proyect object model), este es el log resumido:
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.apache.maven.plugins: checking for updates from central
[INFO] org.codehaus.mojo: checking for updates from central
[INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking for updates from central
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-4/maven-archetype-plugin-2.0-alpha-4.pom
Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype/2.0-alpha-4/maven-archetype-2.0-alpha-4.pom
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/9/maven-parent-9.pom
Downloading: http://repo1.maven.org/maven2/org/apache/apache/4/apache-4.pom
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-4/maven-archetype-plugin-2.0-alpha-4.jar
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment: [archetype:create] (aggregator-style)
[INFO] ------------------------------------------------------------------------
Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/archetype-common/2.0-alpha-4/archetype-common-2.0-alpha-4.pom
Downloading: http://repo1.maven.org/maven2/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-velocity/1.1.3/plexus-velocity-1.1.3.jar
Downloading: http://repo1.maven.org/maven2/velocity/velocity-dep/1.4/velocity-dep-1.4.jar
[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [archetype:create {execution: default-cli}]
[WARNING] This goal is deprecated. Please use mvn archetype:generate instead
[INFO] Defaulting package to group ID: cl.xerox.app
[INFO] We are using command line specified remote repositories: http://static.appfuse.org/releases
Downloading: http://static.appfuse.org/releases/org/appfuse/archetypes/appfuse-basic-spring/2.0.2/appfuse-basic-spring-2.0.2.jar
77K downloaded (appfuse-basic-spring-2.0.2.jar)
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating OldArchetype: appfuse-basic-spring:2.0.2
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: cl.xerox.app
[INFO] Parameter: packageName, Value: cl.xerox.app
[INFO] Parameter: basedir, Value: /home/slack/desarrollo
[INFO] Parameter: package, Value: cl.xerox.app
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: artifactId, Value: appfuse2
.
.
.
[INFO] OldArchetype created in dir: /home/slack/desarrollo/appfuse2
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 minutes
[INFO] Finished at: Mon Nov 23 11:56:57 GMT-04:00 2009
[INFO] Final Memory: 9M/67M
[INFO] ------------------------------------------------------------------------
slack@zion:~/desarrollo$
Listo, esto se demora alrededor de unos 5 a 10 min, dependiendo la velocidad de tu red. ahora debemos ejecutar el comando que creara la base de datos (mismo nombre del proyecto) o la seteamos al final del archivo pom.xml, la ejecucion anterior nos creo el proyecto del nuestro directorio de proyectos con el sigte. contenido:
slack@zion:~/desarrollo/appfuse2$ ls -la
total 56
drwxr-xr-x 4 slack slack 4096 2009-11-23 13:40 .
drwxrwxrwx 58 slack slack 4096 2009-11-23 13:55 ..
-rw-r--r-- 1 slack slack 33142 2009-11-23 12:56 pom.xml
-rw-r--r-- 1 slack slack 863 2009-11-23 12:56 README.txt
drwxr-xr-x 5 slack slack 4096 2009-11-23 12:56 src
drwxr-xr-x 9 slack slack 4096 2009-11-23 13:42 target
slack@zion:~/desarrollo/appfuse2$
Entonces ejecutamos, el comando que hara el deploy automatico y descargara las librerias faltantes del proyecto que creamos con el comando anterior, ademas arrancara jetty, Jetty es un servidor HTTP y un contenedor de Servlets escrito en Java y open source.
Para desplegar la aplicación basta con ejecutar mvn jetty:run-war en el directorio del proyecto.
slack@zion:~/desarrollo/appfuse2$ mvn jetty:run-war
este es un resumen de la ejecución del comando, esta tarea se demora aprox 20 min, dependiendo tu velocidad
Downloading: http://static.appfuse.org/repository/jboss/javassist/3.3.ga/javassist-3.3.ga.jar
Downloading: http://static.appfuse.org/repository/freemarker/freemarker/2.3.8/freemarker-2.3.8.jar
Downloading: http://static.appfuse.org/repository/org/apache/maven/reporting/maven-reporting-impl/2.0.4/maven-reporting-impl-2.0.4.jar
225K downloaded (doxia-core-1.0-alpha-7.jar)
Downloading: http://static.appfuse.org/repository/commons-collections/commons-collections/2.1.1/commons-collections-2.1.1.jar
13K downloaded (maven-reporting-impl-2.0.4.jar)
Downloading: http://static.appfuse.org/repository/commons-logging/commons-logging-api/1.0.4/commons-logging-api-1.0.4.jar
[INFO] Unable to find resource 'commons-collections:commons-collections:jar:2.1.1' in repository appfuse (http://static.appfuse.org/repository)
Downloading: http://static.appfuse.org/repository/org/hibernate/hibernate-validator/3.0.0.ga/hibernate-validator-3.0.0.ga.jar
[INFO] Unable to find resource 'org.hibernate:hibernate-validator:jar:3.0.0.ga' in repository appfuse (http://static.appfuse.org/repository)
Downloading: http://static.appfuse.org/repository/org/hibernate/hibernate-validator/3.0.0.ga/hibernate-validator-3.0.0.ga.jar
[INFO] Unable to find resource 'org.hibernate:hibernate-validator:jar:3.0.0.ga' in repository appfuse (http://static.appfuse.org/repository)
Downloading: http://repo1.maven.org/maven2/org/hibernate/hibernate-validator/3.0.0.ga/hibernate-validator-3.0.0.ga.jar
[INFO] [hibernate3:hbm2ddl {execution: default}]
[INFO] Configuration XML file loaded: file:/home/slack/desarrollo/appfuse2/src/main/resources/hibernate.cfg.xml
[INFO] Configuration XML file loaded: file:/home/slack/desarrollo/appfuse2/src/main/resources/hibernate.cfg.xml
[INFO] Configuration Properties file loaded: /home/slack/desarrollo/appfuse2/target/classes/jdbc.properties
alter table user_role drop foreign key FK143BF46AF503D155;
alter table user_role drop foreign key FK143BF46A4FD90D75;
drop table if exists app_user;
drop table if exists role;
drop table if exists user_role;
create table app_user (id bigint not null auto_increment, account_expired bit not null, account_locked bit not null, address varchar(150), city varchar(50) not null, country varchar(100), postal_code varchar(15) not null, province varchar(100), credentials_expired bit not null, email varchar(255) not null unique, account_enabled bit, first_name varchar(50) not null, last_name varchar(50) not null, password varchar(255) not null, password_hint varchar(255), phone_number varchar(255), username varchar(50) not null unique, version integer, website varchar(255), primary key (id)) ENGINE=InnoDB;
create table role (id bigint not null auto_increment, description varchar(64), name varchar(20), primary key (id)) ENGINE=InnoDB;
create table user_role (user_id bigint not null, role_id bigint not null, primary key (user_id, role_id)) ENGINE=InnoDB;
alter table user_role add index FK143BF46AF503D155 (user_id), add constraint FK143BF46AF503D155 foreign key (user_id) references app_user (id);
alter table user_role add index FK143BF46A4FD90D75 (role_id), add constraint FK143BF46A4FD90D75 foreign key (role_id) references role (id);
[WARNING] 2 errors occurred while performing.
[INFO] Unable to find resource 'junit-addons:junit-addons:pom:1.4' in repository appfuse (http://static.appfuse.org/repository)
Downloading: http://repo1.maven.org/maven2/junit-addons/junit-addons/1.4/junit-addons-1.4.pom
Downloading: http://static.appfuse.org/repository/junit/junit/4.0/junit-4.0.jar
Downloading: http://static.appfuse.org/repository/org/apache/maven/surefire/surefire-junit4/2.4.3/surefire-junit4-2.4.3.jar
[INFO] Unable to find resource 'org.apache.maven.surefire:surefire-junit4:jar:2.4.3' in repository appfuse (http://static.appfuse.org/repository)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/surefire/surefire-junit4/2.4.3/surefire-junit4-2.4.3.jar
[INFO] Unable to find resource 'junit:junit:jar:4.0' in repository appfuse (http://static.appfuse.org/repository)
Downloading: http://repo1.maven.org/maven2/junit/junit/4.0/junit-4.0.jar
[INFO] Surefire report directory: /home/slack/desarrollo/appfuse2/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running cl.xerox.app.AppTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.081 sec
Results :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO] [dbunit:operation {execution: test}]
Downloading: http://static.appfuse.org/repository/org/apache/maven/maven-plugin-api/2.0.1/maven-plugin-api-2.0.1.pom
643b downloaded (maven-plugin-api-2.0.1.pom)
Downloading: http://static.appfuse.org/repository/org/apache/maven/maven/2.0.1/maven-2.0.1.pom
11K downloaded (maven-2.0.1.pom)
Downloading: http://static.appfuse.org/repository/org/apache/maven/maven-archiver/2.2/maven-archiver-2.2.pom
1K downloaded (maven-archiver-2.2.pom)
Downloading: http://static.appfuse.org/repository/org/apache/maven/shared/maven-shared-components/3/maven-shared-components-3.pom
1K downloaded (maven-shared-components-3.pom)
Downloading: http://static.appfuse.org/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.pom
1K downloaded (plexus-archiver-1.0-alpha-7.pom)
Downloading: http://static.appfuse.org/repository/org/codehaus/plexus/plexus-utils/1.2/plexus-utils-1.2.pom
767b downloaded (plexus-utils-1.2.pom)
Downloading: http://static.appfuse.org/repository/org/apache/maven/maven-artifact/2.0.1/maven-artifact-2.0.1.pom
765b downloaded (maven-artifact-2.0.1.pom)
Downloading: http://static.appfuse.org/repository/org/apache/maven/maven-archiver/2.2/maven-archiver-2.2.jar
Downloading: http://static.appfuse.org/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar
9K downloaded (maven-archiver-2.2.jar)
138K downloaded (plexus-archiver-1.0-alpha-7.jar)
[INFO] [war:war {execution: default-war}]
[INFO] Exploding webapp...
[INFO] Assembling webapp appfuse2 in /home/slack/desarrollo/appfuse2/target/appfuse2-1.0-SNAPSHOT
[INFO] Copy webapp webResources to /home/slack/desarrollo/appfuse2/target/appfuse2-1.0-SNAPSHOT
[INFO] Expanding: /home/slack/.m2/repository/org/appfuse/appfuse-spring/2.0.2/appfuse-spring-2.0.2.war into /home/slack/desarrollo/appfuse2/target/war/work/appfuse-spring-2.0.2
[INFO] Expanding: /home/slack/.m2/repository/org/appfuse/appfuse-web-common/2.0.2/appfuse-web-common-2.0.2.war into /home/slack/desarrollo/appfuse2/target/war/work/appfuse-web-common-2.0.2
[INFO] Overlaying 2 war(s).
[INFO] Generating war /home/slack/desarrollo/appfuse2/target/appfuse2-1.0-SNAPSHOT.war
[INFO] Building war: /home/slack/desarrollo/appfuse2/target/appfuse2-1.0-SNAPSHOT.war
Downloading: http://static.appfuse.org/repository/org/mortbay/jetty/jetty/6.1.9/jetty-6.1.9.pom
[INFO] Unable to find resource 'org.mortbay.jetty:jetty:pom:6.1.9' in repository appfuse (http://static.appfuse.org/repository)
Downloading: http://snapshots.repository.codehaus.org/org/mortbay/jetty/jetty/6.1.9/jetty-6.1.9.pom
[INFO] Unable to find resource 'org.mortbay.jetty:jetty:pom:6.1.9' in repository codehaus.org (http://snapshots.repository.codehaus.org)
Downloading: http://repo1.maven.org/maven2/org/mortbay/jetty/jetty/6.1.9/jetty-6.1.9.pom
Downloading: http://static.appfuse.org/repository/org/mortbay/jetty/jetty-util/6.1.9/jetty-util-6.1.9.pom
[INFO] Unable to find resource 'org.mortbay.jetty:jetty-util:pom:6.1.9' in repository appfuse (http://static.appfuse.org/repository)
Downloading: http://snapshots.repository.codehaus.org/org/mortbay/jetty/jetty-util/6.1.9/jetty-util-6.1.9.pom
[INFO] Unable to find resource 'org.mortbay.jetty:jetty-util:pom:6.1.9' in repository codehaus.org (http://snapshots.repository.codehaus.org)
Downloading: http://static.appfuse.org/repository/org/mortbay/jetty/jetty-util/6.1.9/jetty-util-6.1.9.pom
[INFO] Unable to find resource 'org.mortbay.jetty:jetty-util:pom:6.1.9' in repository appfuse (http://static.appfuse.org/repository)
Downloading: http://repo1.maven.org/maven2/org/mortbay/jetty/jetty-util/6.1.9/jetty-util-6.1.9.pom
Downloading: http://static.appfuse.org/repository/org/mortbay/jetty/servlet-api-2.5/6.1.9/servlet-api-2.5-6.1.9.pom
[INFO] Unable to find resource 'org.mortbay.jetty:servlet-api-2.5:pom:6.1.9' in repository appfuse (http://static.appfuse.org/repository)
Downloading: http://snapshots.repository.codehaus.org/org/mortbay/jetty/servlet-api-2.5/6.1.9/servlet-api-2.5-6.1.9.pom
[INFO] Unable to find resource 'org.mortbay.jetty:servlet-api-2.5:pom:6.1.9' in repository codehaus.org (http://snapshots.repository.codehaus.org)
Downloading: http://static.appfuse.org/repository/org/mortbay/jetty/servlet-api-2.5/6.1.9/servlet-api-2.5-6.1.9.pom
[INFO] Unable to find resource 'org.mortbay.jetty:servlet-api-2.5:pom:6.1.9' in repository appfuse (http://static.appfuse.org/repository)
Downloading: http://repo1.maven.org/maven2/org/mortbay/jetty/servlet-api-2.5/6.1.9/servlet-api-2.5-6.1.9.pom
[INFO] [jetty:run-war {execution: default-cli}]
[INFO] Configuring Jetty for project: AppFuse Spring MVC Application
2009-11-23 12:42:31.506::INFO: Logging to STDERR via org.mortbay.log.StdErrLog
[INFO] Context path = /
[INFO] Tmp directory = determined at runtime
[INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml
[INFO] Web overrides = none
[INFO] Starting jetty 6.1.9 ...
2009-11-23 12:42:31.648::INFO: jetty-6.1.9
2009-11-23 12:42:31.667::INFO: Extract jar:file:/home/slack/desarrollo/appfuse2/target/appfuse2-1.0-SNAPSHOT.war!/ to /home/slack/desarrollo/appfuse2/target/work/webapp
2009-11-23 12:42:32.062::INFO: No Transaction manager found - if your webapp requires one, please configure one.
2009-11-23 12:42:34.317:/:INFO: Initializing Spring root WebApplicationContext
2009-11-23 12:42:44.535:/:INFO: Initializing Spring FrameworkServlet 'dispatcher'
2009-11-23 12:42:45.031::INFO: Started SelectChannelConnector@0.0.0.0:8080
[INFO] Started Jetty Server
[INFO] Starting scanner at interval of 3 seconds.
^C2009-11-23 13:38:54.748::INFO: Shutdown hook executing
2009-11-23 13:38:55.286:/:INFO: Destroying Spring FrameworkServlet 'dispatcher'
2009-11-23 13:38:55.289:/:INFO: Closing Spring root WebApplicationContext
2009-11-23 13:38:55.297::INFO: Shutdown hook complete
[INFO] Jetty server exiting.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 76 minutes 29 seconds
[INFO] Finished at: Mon Nov 23 13:38:55 GMT-04:00 2009
[INFO] Final Memory: 37M/84M
[INFO] ------------------------------------------------------------------------
slack@zion:~/desarrollo/appfuse2$
Vemos ahí que tambien esta la configuiración de la base de datos, creacion de tablas, test de aplicacion y levantamiento del servidor jetty en el puerto 8080. ahora solo vamos al browser y abrimos la url: http://localhost:8080/login.jsp
user: admin
passwd: admin

Saludos y suerte !!
bee free.... use linux..
Primero debemos descargar maven 2.x desde su web, http://maven.apache.org/download.html#Installation para este ejemplo descargue el archivo apache-maven-2.2.1-bin.tar.gz
Luego lo descomprimi en mi directorio de programas, creando el siguiente directorio:
/home/slack/programas/apache-maven-2.2.1
con el siguiente contenido:
slack@zion:~/programas/apache-maven-2.2.1$ ls -la
total 48
drwxr-xr-x 6 slack slack 4096 2009-11-23 12:35 .
drwxr-xr-x 18 slack slack 4096 2009-11-23 12:35 ..
drwxr-xr-x 2 slack slack 4096 2009-11-23 12:35 bin
drwxr-xr-x 2 slack slack 4096 2009-11-23 12:35 boot
drwxrwxrwx 2 slack slack 4096 2009-08-06 15:11 conf
drwxr-xr-x 2 slack slack 4096 2009-11-23 12:35 lib
-rw-r--r-- 1 slack slack 12933 2009-08-06 15:11 LICENSE.txt
-rw-r--r-- 1 slack slack 923 2009-08-06 15:11 NOTICE.txt
-rw-r--r-- 1 slack slack 2532 2009-08-06 15:11 README.txt
Luego que tenemos el directorio de Maven, debemos declararlo en las variables de entorno para poder utilizarlo. como lo descomprimimos en el directorio de usuario modificaremos el profile, en caso contrario el enviromment
Entonces vamos a la consola y escribimos el sigte. comando para editar nuestro profile:
slack@zion:~/programas/apache-maven-2.2.1$ sudo nano /etc/profile
ingresamos la password de root para poder editar el archivo, y agregamos la sigte linea, ademas debemos agregar la variable al export.
MAVEN_HOME=/home/slack/programas/apache-maven-2.2.1
export ANT_HOME JAVA_HOME CATALINA_HOME TOMCAT_HOME AWT_TOOLKIT=MToolkit MATLAB_JAVA MAVEN_HOME
Tambien debemos agregar el bin de Maven al path, en el archivo enviromment, ejecutamos el sigte. comando, con sudo para poder editar:
slack@zion:~/programas/apache-maven-2.2.1$ sudo nano /etc/environment
y agregamos el bin de Maven al path, como se muestra abajo:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/slack/programas/apache-maven-2.2.1/bin"
Una vez hecho esto debemos cerrar la consola, y esperar que los demonios del sistema actualicen las variables, en caso contrario bastara con reiniciar. Para confirmar que tenemos bien configurado Maven ejecutamos:
slack@zion:~/programas/apache-maven-2.2.1$ mvn --version
Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400)
Java version: 1.5.0_12
Java home: /home/slack/programas/java/jdk1.5.0_12/jre
Default locale: es_CL, platform encoding: UTF-8
OS name: "linux" version: "2.6.28-15-generic" arch: "i386" Family: "unix"
Esto nos despliega la informacion del contexto para ejecutar Maven (mvn)
Ahora ya podemos ejecutar mvn para nuestros proyectos, debemos para este ejemplo tener instalado Mysql, utilizaremos mvn para appfuse2, entonces vamos al directorio de nuestros proyectos, y ejecutamos la sigte. linea
slack@zion:~/desarrollo$ mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-basic-spring -DremoteRepositories=http://static.appfuse.org/releases -DarchetypeVersion=2.0.2 -DgroupId=cl.xerox.app -DartifactId=appfuse2
En esta linea le decimos a maven nuestra estructura de packages y el nombre del proyecto. al ejecutar el comando se comienza la descarga de las dependencias del proyecto, mediante POM.xml (proyect object model), este es el log resumido:
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.apache.maven.plugins: checking for updates from central
[INFO] org.codehaus.mojo: checking for updates from central
[INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking for updates from central
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-4/maven-archetype-plugin-2.0-alpha-4.pom
Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype/2.0-alpha-4/maven-archetype-2.0-alpha-4.pom
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/9/maven-parent-9.pom
Downloading: http://repo1.maven.org/maven2/org/apache/apache/4/apache-4.pom
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/2.0-alpha-4/maven-archetype-plugin-2.0-alpha-4.jar
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment: [archetype:create] (aggregator-style)
[INFO] ------------------------------------------------------------------------
Downloading: http://repo1.maven.org/maven2/org/apache/maven/archetype/archetype-common/2.0-alpha-4/archetype-common-2.0-alpha-4.pom
Downloading: http://repo1.maven.org/maven2/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-velocity/1.1.3/plexus-velocity-1.1.3.jar
Downloading: http://repo1.maven.org/maven2/velocity/velocity-dep/1.4/velocity-dep-1.4.jar
[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [archetype:create {execution: default-cli}]
[WARNING] This goal is deprecated. Please use mvn archetype:generate instead
[INFO] Defaulting package to group ID: cl.xerox.app
[INFO] We are using command line specified remote repositories: http://static.appfuse.org/releases
Downloading: http://static.appfuse.org/releases/org/appfuse/archetypes/appfuse-basic-spring/2.0.2/appfuse-basic-spring-2.0.2.jar
77K downloaded (appfuse-basic-spring-2.0.2.jar)
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating OldArchetype: appfuse-basic-spring:2.0.2
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: cl.xerox.app
[INFO] Parameter: packageName, Value: cl.xerox.app
[INFO] Parameter: basedir, Value: /home/slack/desarrollo
[INFO] Parameter: package, Value: cl.xerox.app
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: artifactId, Value: appfuse2
.
.
.
[INFO] OldArchetype created in dir: /home/slack/desarrollo/appfuse2
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 minutes
[INFO] Finished at: Mon Nov 23 11:56:57 GMT-04:00 2009
[INFO] Final Memory: 9M/67M
[INFO] ------------------------------------------------------------------------
slack@zion:~/desarrollo$
Listo, esto se demora alrededor de unos 5 a 10 min, dependiendo la velocidad de tu red. ahora debemos ejecutar el comando que creara la base de datos (mismo nombre del proyecto) o la seteamos al final del archivo pom.xml, la ejecucion anterior nos creo el proyecto del nuestro directorio de proyectos con el sigte. contenido:
slack@zion:~/desarrollo/appfuse2$ ls -la
total 56
drwxr-xr-x 4 slack slack 4096 2009-11-23 13:40 .
drwxrwxrwx 58 slack slack 4096 2009-11-23 13:55 ..
-rw-r--r-- 1 slack slack 33142 2009-11-23 12:56 pom.xml
-rw-r--r-- 1 slack slack 863 2009-11-23 12:56 README.txt
drwxr-xr-x 5 slack slack 4096 2009-11-23 12:56 src
drwxr-xr-x 9 slack slack 4096 2009-11-23 13:42 target
slack@zion:~/desarrollo/appfuse2$
Entonces ejecutamos, el comando que hara el deploy automatico y descargara las librerias faltantes del proyecto que creamos con el comando anterior, ademas arrancara jetty, Jetty es un servidor HTTP y un contenedor de Servlets escrito en Java y open source.
Para desplegar la aplicación basta con ejecutar mvn jetty:run-war en el directorio del proyecto.
slack@zion:~/desarrollo/appfuse2$ mvn jetty:run-war
este es un resumen de la ejecución del comando, esta tarea se demora aprox 20 min, dependiendo tu velocidad
Downloading: http://static.appfuse.org/repository/jboss/javassist/3.3.ga/javassist-3.3.ga.jar
Downloading: http://static.appfuse.org/repository/freemarker/freemarker/2.3.8/freemarker-2.3.8.jar
Downloading: http://static.appfuse.org/repository/org/apache/maven/reporting/maven-reporting-impl/2.0.4/maven-reporting-impl-2.0.4.jar
225K downloaded (doxia-core-1.0-alpha-7.jar)
Downloading: http://static.appfuse.org/repository/commons-collections/commons-collections/2.1.1/commons-collections-2.1.1.jar
13K downloaded (maven-reporting-impl-2.0.4.jar)
Downloading: http://static.appfuse.org/repository/commons-logging/commons-logging-api/1.0.4/commons-logging-api-1.0.4.jar
[INFO] Unable to find resource 'commons-collections:commons-collections:jar:2.1.1' in repository appfuse (http://static.appfuse.org/repository)
Downloading: http://static.appfuse.org/repository/org/hibernate/hibernate-validator/3.0.0.ga/hibernate-validator-3.0.0.ga.jar
[INFO] Unable to find resource 'org.hibernate:hibernate-validator:jar:3.0.0.ga' in repository appfuse (http://static.appfuse.org/repository)
Downloading: http://static.appfuse.org/repository/org/hibernate/hibernate-validator/3.0.0.ga/hibernate-validator-3.0.0.ga.jar
[INFO] Unable to find resource 'org.hibernate:hibernate-validator:jar:3.0.0.ga' in repository appfuse (http://static.appfuse.org/repository)
Downloading: http://repo1.maven.org/maven2/org/hibernate/hibernate-validator/3.0.0.ga/hibernate-validator-3.0.0.ga.jar
[INFO] [hibernate3:hbm2ddl {execution: default}]
[INFO] Configuration XML file loaded: file:/home/slack/desarrollo/appfuse2/src/main/resources/hibernate.cfg.xml
[INFO] Configuration XML file loaded: file:/home/slack/desarrollo/appfuse2/src/main/resources/hibernate.cfg.xml
[INFO] Configuration Properties file loaded: /home/slack/desarrollo/appfuse2/target/classes/jdbc.properties
alter table user_role drop foreign key FK143BF46AF503D155;
alter table user_role drop foreign key FK143BF46A4FD90D75;
drop table if exists app_user;
drop table if exists role;
drop table if exists user_role;
create table app_user (id bigint not null auto_increment, account_expired bit not null, account_locked bit not null, address varchar(150), city varchar(50) not null, country varchar(100), postal_code varchar(15) not null, province varchar(100), credentials_expired bit not null, email varchar(255) not null unique, account_enabled bit, first_name varchar(50) not null, last_name varchar(50) not null, password varchar(255) not null, password_hint varchar(255), phone_number varchar(255), username varchar(50) not null unique, version integer, website varchar(255), primary key (id)) ENGINE=InnoDB;
create table role (id bigint not null auto_increment, description varchar(64), name varchar(20), primary key (id)) ENGINE=InnoDB;
create table user_role (user_id bigint not null, role_id bigint not null, primary key (user_id, role_id)) ENGINE=InnoDB;
alter table user_role add index FK143BF46AF503D155 (user_id), add constraint FK143BF46AF503D155 foreign key (user_id) references app_user (id);
alter table user_role add index FK143BF46A4FD90D75 (role_id), add constraint FK143BF46A4FD90D75 foreign key (role_id) references role (id);
[WARNING] 2 errors occurred while performing
[INFO] Unable to find resource 'junit-addons:junit-addons:pom:1.4' in repository appfuse (http://static.appfuse.org/repository)
Downloading: http://repo1.maven.org/maven2/junit-addons/junit-addons/1.4/junit-addons-1.4.pom
Downloading: http://static.appfuse.org/repository/junit/junit/4.0/junit-4.0.jar
Downloading: http://static.appfuse.org/repository/org/apache/maven/surefire/surefire-junit4/2.4.3/surefire-junit4-2.4.3.jar
[INFO] Unable to find resource 'org.apache.maven.surefire:surefire-junit4:jar:2.4.3' in repository appfuse (http://static.appfuse.org/repository)
Downloading: http://repo1.maven.org/maven2/org/apache/maven/surefire/surefire-junit4/2.4.3/surefire-junit4-2.4.3.jar
[INFO] Unable to find resource 'junit:junit:jar:4.0' in repository appfuse (http://static.appfuse.org/repository)
Downloading: http://repo1.maven.org/maven2/junit/junit/4.0/junit-4.0.jar
[INFO] Surefire report directory: /home/slack/desarrollo/appfuse2/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running cl.xerox.app.AppTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.081 sec
Results :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO] [dbunit:operation {execution: test}]
Downloading: http://static.appfuse.org/repository/org/apache/maven/maven-plugin-api/2.0.1/maven-plugin-api-2.0.1.pom
643b downloaded (maven-plugin-api-2.0.1.pom)
Downloading: http://static.appfuse.org/repository/org/apache/maven/maven/2.0.1/maven-2.0.1.pom
11K downloaded (maven-2.0.1.pom)
Downloading: http://static.appfuse.org/repository/org/apache/maven/maven-archiver/2.2/maven-archiver-2.2.pom
1K downloaded (maven-archiver-2.2.pom)
Downloading: http://static.appfuse.org/repository/org/apache/maven/shared/maven-shared-components/3/maven-shared-components-3.pom
1K downloaded (maven-shared-components-3.pom)
Downloading: http://static.appfuse.org/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.pom
1K downloaded (plexus-archiver-1.0-alpha-7.pom)
Downloading: http://static.appfuse.org/repository/org/codehaus/plexus/plexus-utils/1.2/plexus-utils-1.2.pom
767b downloaded (plexus-utils-1.2.pom)
Downloading: http://static.appfuse.org/repository/org/apache/maven/maven-artifact/2.0.1/maven-artifact-2.0.1.pom
765b downloaded (maven-artifact-2.0.1.pom)
Downloading: http://static.appfuse.org/repository/org/apache/maven/maven-archiver/2.2/maven-archiver-2.2.jar
Downloading: http://static.appfuse.org/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar
9K downloaded (maven-archiver-2.2.jar)
138K downloaded (plexus-archiver-1.0-alpha-7.jar)
[INFO] [war:war {execution: default-war}]
[INFO] Exploding webapp...
[INFO] Assembling webapp appfuse2 in /home/slack/desarrollo/appfuse2/target/appfuse2-1.0-SNAPSHOT
[INFO] Copy webapp webResources to /home/slack/desarrollo/appfuse2/target/appfuse2-1.0-SNAPSHOT
[INFO] Expanding: /home/slack/.m2/repository/org/appfuse/appfuse-spring/2.0.2/appfuse-spring-2.0.2.war into /home/slack/desarrollo/appfuse2/target/war/work/appfuse-spring-2.0.2
[INFO] Expanding: /home/slack/.m2/repository/org/appfuse/appfuse-web-common/2.0.2/appfuse-web-common-2.0.2.war into /home/slack/desarrollo/appfuse2/target/war/work/appfuse-web-common-2.0.2
[INFO] Overlaying 2 war(s).
[INFO] Generating war /home/slack/desarrollo/appfuse2/target/appfuse2-1.0-SNAPSHOT.war
[INFO] Building war: /home/slack/desarrollo/appfuse2/target/appfuse2-1.0-SNAPSHOT.war
Downloading: http://static.appfuse.org/repository/org/mortbay/jetty/jetty/6.1.9/jetty-6.1.9.pom
[INFO] Unable to find resource 'org.mortbay.jetty:jetty:pom:6.1.9' in repository appfuse (http://static.appfuse.org/repository)
Downloading: http://snapshots.repository.codehaus.org/org/mortbay/jetty/jetty/6.1.9/jetty-6.1.9.pom
[INFO] Unable to find resource 'org.mortbay.jetty:jetty:pom:6.1.9' in repository codehaus.org (http://snapshots.repository.codehaus.org)
Downloading: http://repo1.maven.org/maven2/org/mortbay/jetty/jetty/6.1.9/jetty-6.1.9.pom
Downloading: http://static.appfuse.org/repository/org/mortbay/jetty/jetty-util/6.1.9/jetty-util-6.1.9.pom
[INFO] Unable to find resource 'org.mortbay.jetty:jetty-util:pom:6.1.9' in repository appfuse (http://static.appfuse.org/repository)
Downloading: http://snapshots.repository.codehaus.org/org/mortbay/jetty/jetty-util/6.1.9/jetty-util-6.1.9.pom
[INFO] Unable to find resource 'org.mortbay.jetty:jetty-util:pom:6.1.9' in repository codehaus.org (http://snapshots.repository.codehaus.org)
Downloading: http://static.appfuse.org/repository/org/mortbay/jetty/jetty-util/6.1.9/jetty-util-6.1.9.pom
[INFO] Unable to find resource 'org.mortbay.jetty:jetty-util:pom:6.1.9' in repository appfuse (http://static.appfuse.org/repository)
Downloading: http://repo1.maven.org/maven2/org/mortbay/jetty/jetty-util/6.1.9/jetty-util-6.1.9.pom
Downloading: http://static.appfuse.org/repository/org/mortbay/jetty/servlet-api-2.5/6.1.9/servlet-api-2.5-6.1.9.pom
[INFO] Unable to find resource 'org.mortbay.jetty:servlet-api-2.5:pom:6.1.9' in repository appfuse (http://static.appfuse.org/repository)
Downloading: http://snapshots.repository.codehaus.org/org/mortbay/jetty/servlet-api-2.5/6.1.9/servlet-api-2.5-6.1.9.pom
[INFO] Unable to find resource 'org.mortbay.jetty:servlet-api-2.5:pom:6.1.9' in repository codehaus.org (http://snapshots.repository.codehaus.org)
Downloading: http://static.appfuse.org/repository/org/mortbay/jetty/servlet-api-2.5/6.1.9/servlet-api-2.5-6.1.9.pom
[INFO] Unable to find resource 'org.mortbay.jetty:servlet-api-2.5:pom:6.1.9' in repository appfuse (http://static.appfuse.org/repository)
Downloading: http://repo1.maven.org/maven2/org/mortbay/jetty/servlet-api-2.5/6.1.9/servlet-api-2.5-6.1.9.pom
[INFO] [jetty:run-war {execution: default-cli}]
[INFO] Configuring Jetty for project: AppFuse Spring MVC Application
2009-11-23 12:42:31.506::INFO: Logging to STDERR via org.mortbay.log.StdErrLog
[INFO] Context path = /
[INFO] Tmp directory = determined at runtime
[INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml
[INFO] Web overrides = none
[INFO] Starting jetty 6.1.9 ...
2009-11-23 12:42:31.648::INFO: jetty-6.1.9
2009-11-23 12:42:31.667::INFO: Extract jar:file:/home/slack/desarrollo/appfuse2/target/appfuse2-1.0-SNAPSHOT.war!/ to /home/slack/desarrollo/appfuse2/target/work/webapp
2009-11-23 12:42:32.062::INFO: No Transaction manager found - if your webapp requires one, please configure one.
2009-11-23 12:42:34.317:/:INFO: Initializing Spring root WebApplicationContext
2009-11-23 12:42:44.535:/:INFO: Initializing Spring FrameworkServlet 'dispatcher'
2009-11-23 12:42:45.031::INFO: Started SelectChannelConnector@0.0.0.0:8080
[INFO] Started Jetty Server
[INFO] Starting scanner at interval of 3 seconds.
^C2009-11-23 13:38:54.748::INFO: Shutdown hook executing
2009-11-23 13:38:55.286:/:INFO: Destroying Spring FrameworkServlet 'dispatcher'
2009-11-23 13:38:55.289:/:INFO: Closing Spring root WebApplicationContext
2009-11-23 13:38:55.297::INFO: Shutdown hook complete
[INFO] Jetty server exiting.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 76 minutes 29 seconds
[INFO] Finished at: Mon Nov 23 13:38:55 GMT-04:00 2009
[INFO] Final Memory: 37M/84M
[INFO] ------------------------------------------------------------------------
slack@zion:~/desarrollo/appfuse2$
Vemos ahí que tambien esta la configuiración de la base de datos, creacion de tablas, test de aplicacion y levantamiento del servidor jetty en el puerto 8080. ahora solo vamos al browser y abrimos la url: http://localhost:8080/login.jsp
user: admin
passwd: admin

Saludos y suerte !!
bee free.... use linux..
Firewall en Linux
Hola, la seguridad en linux es controlable, y configurable desde los mismos archivos de configuración del sistema. Podemos definir aqui reglas de seguridad con ipables, puertos que se pueden ver desde afuera al ejecutar un nmap u otros ping.
Sabemos que linux es un sistema operativo robusto y seguro, libre de virus, a direferecia del ventanukos el cual ya viene desde el cd de instalación con multiples troyanos y espias que hacen que el sistema ande mucho mas lento y sea totalmente bulnerable a los ataques.
Sin embargo Linux tambien debe ser configurado para hacerlo mas seguro, aunque no hay virus si existen los ataques, pero para esto tenemos ene de opciones seguras y ademas open source.
Aqui presentamos una bastante buena. hablo de un firewall llamado firestarter.
Firestarter es una herramienta Grafica (GUI) o Desktop Firewall, para poder asegurar parte de sus servicios que tiene instalado en su Distribución GNU/Linux. Esta herramienta permite realizar mediante un wizard NAT, y despues solo copiar el dir /etc/firestarter y el /etc/init.d/firestarter a cualquier otro servidor incluso si estos últimos no tienen instalado interfaz X, además los scripts que genera son estrucuturados cuando se quiere tener un firewall restrictivo tanto con las conexiones entrantes y las salientes (NAT) asi configuras tus politicas para bloquear todo y solo permitir lo que se quiera, yo asi lo tengo, usando la opcion restrictive, pero ya todos los puertos y configuraciones que tambien las puede realizar manualmente.
Podemos realizar la instalacion facilmente con APT o mediante Webmin.
Explicare aqui los pasos para la instalacion por APT desde la consola.
entonces, abrimos una consola y escribimos los siguiente:
Paso 1: buscamos firestarter en los repositorios
slack@zion:~$ apt-cache search firestarter
firestarter - gtk program for managing and observing your firewall
Paso 2: Realizamos la instalación
slack@zion:~$ sudo apt-get install firestarter
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
Se instalaron de forma automática los siguientes paquetes y ya no son necesarios.
sendmail-base m4 procmail sensible-mda sendmail-cf
Utilice «apt-get autoremove» para eliminarlos.
Se instalarán los siguientes paquetes extras:
menu
Paquetes sugeridos:
dhcp3-server
Se instalarán los siguientes paquetes NUEVOS:
firestarter menu
0 actualizados, 2 se instalarán, 0 para eliminar y 42 no actualizados.
Necesito descargar 855kB de archivos.
Se utilizarán 4002kB de espacio de disco adicional después de esta operación.
¿Desea continuar [S/n]?
Damos S con mayuscula
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
Se instalaron de forma automática los siguientes paquetes y ya no son necesarios.
sendmail-base m4 procmail sensible-mda sendmail-cf
Utilice «apt-get autoremove» para eliminarlos.
Se instalarán los siguientes paquetes extras:
menu
Paquetes sugeridos:
dhcp3-server
Se instalarán los siguientes paquetes NUEVOS:
firestarter menu
0 actualizados, 2 se instalarán, 0 para eliminar y 42 no actualizados.
Necesito descargar 855kB de archivos.
Se utilizarán 4002kB de espacio de disco adicional después de esta operación.
¿Desea continuar [S/n]? S
Des:1 http://cl.archive.ubuntu.com jaunty/universe menu 2.1.41ubuntu1 [438kB]
Des:2 http://cl.archive.ubuntu.com jaunty/universe firestarter 1.0.3-7ubuntu5 [417kB]
Descargados 855kB en 9s (89,2kB/s)
Seleccionando el paquete menu previamente no seleccionado.
(Leyendo la base de datos ...
152901 ficheros y directorios instalados actualmente.)
Desempaquetando menu (de .../menu_2.1.41ubuntu1_i386.deb) ...
Seleccionando el paquete firestarter previamente no seleccionado.
Desempaquetando firestarter (de .../firestarter_1.0.3-7ubuntu5_i386.deb) ...
Procesando disparadores para man-db ...
Procesando disparadores para doc-base ...
Processing 1 added doc-base file(s)...
Registering documents with scrollkeeper...
Configurando menu (2.1.41ubuntu1) ...
Procesando disparadores para menu ...
Configurando firestarter (1.0.3-7ubuntu5) ...
Procesando disparadores para menu ...
slack@zion:~$
Paso 3: la instalacion se completo exitosamente, podemos ir al menu Aplicaciones-> Internet -> Firestarter, esto nos lanza la ventana de inicio del firewall para su configuracion inicial. La vemos en las siguientes pantallas.





Listo, tenemos el firewall en linux corriendo.
Saludos y suerte !!
Sabemos que linux es un sistema operativo robusto y seguro, libre de virus, a direferecia del ventanukos el cual ya viene desde el cd de instalación con multiples troyanos y espias que hacen que el sistema ande mucho mas lento y sea totalmente bulnerable a los ataques.
Sin embargo Linux tambien debe ser configurado para hacerlo mas seguro, aunque no hay virus si existen los ataques, pero para esto tenemos ene de opciones seguras y ademas open source.
Aqui presentamos una bastante buena. hablo de un firewall llamado firestarter.
Firestarter es una herramienta Grafica (GUI) o Desktop Firewall, para poder asegurar parte de sus servicios que tiene instalado en su Distribución GNU/Linux. Esta herramienta permite realizar mediante un wizard NAT, y despues solo copiar el dir /etc/firestarter y el /etc/init.d/firestarter a cualquier otro servidor incluso si estos últimos no tienen instalado interfaz X, además los scripts que genera son estrucuturados cuando se quiere tener un firewall restrictivo tanto con las conexiones entrantes y las salientes (NAT) asi configuras tus politicas para bloquear todo y solo permitir lo que se quiera, yo asi lo tengo, usando la opcion restrictive, pero ya todos los puertos y configuraciones que tambien las puede realizar manualmente.
Podemos realizar la instalacion facilmente con APT o mediante Webmin.
Explicare aqui los pasos para la instalacion por APT desde la consola.
entonces, abrimos una consola y escribimos los siguiente:
Paso 1: buscamos firestarter en los repositorios
slack@zion:~$ apt-cache search firestarter
firestarter - gtk program for managing and observing your firewall
Paso 2: Realizamos la instalación
slack@zion:~$ sudo apt-get install firestarter
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
Se instalaron de forma automática los siguientes paquetes y ya no son necesarios.
sendmail-base m4 procmail sensible-mda sendmail-cf
Utilice «apt-get autoremove» para eliminarlos.
Se instalarán los siguientes paquetes extras:
menu
Paquetes sugeridos:
dhcp3-server
Se instalarán los siguientes paquetes NUEVOS:
firestarter menu
0 actualizados, 2 se instalarán, 0 para eliminar y 42 no actualizados.
Necesito descargar 855kB de archivos.
Se utilizarán 4002kB de espacio de disco adicional después de esta operación.
¿Desea continuar [S/n]?
Damos S con mayuscula
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
Se instalaron de forma automática los siguientes paquetes y ya no son necesarios.
sendmail-base m4 procmail sensible-mda sendmail-cf
Utilice «apt-get autoremove» para eliminarlos.
Se instalarán los siguientes paquetes extras:
menu
Paquetes sugeridos:
dhcp3-server
Se instalarán los siguientes paquetes NUEVOS:
firestarter menu
0 actualizados, 2 se instalarán, 0 para eliminar y 42 no actualizados.
Necesito descargar 855kB de archivos.
Se utilizarán 4002kB de espacio de disco adicional después de esta operación.
¿Desea continuar [S/n]? S
Des:1 http://cl.archive.ubuntu.com jaunty/universe menu 2.1.41ubuntu1 [438kB]
Des:2 http://cl.archive.ubuntu.com jaunty/universe firestarter 1.0.3-7ubuntu5 [417kB]
Descargados 855kB en 9s (89,2kB/s)
Seleccionando el paquete menu previamente no seleccionado.
(Leyendo la base de datos ...
152901 ficheros y directorios instalados actualmente.)
Desempaquetando menu (de .../menu_2.1.41ubuntu1_i386.deb) ...
Seleccionando el paquete firestarter previamente no seleccionado.
Desempaquetando firestarter (de .../firestarter_1.0.3-7ubuntu5_i386.deb) ...
Procesando disparadores para man-db ...
Procesando disparadores para doc-base ...
Processing 1 added doc-base file(s)...
Registering documents with scrollkeeper...
Configurando menu (2.1.41ubuntu1) ...
Procesando disparadores para menu ...
Configurando firestarter (1.0.3-7ubuntu5) ...
Procesando disparadores para menu ...
slack@zion:~$
Paso 3: la instalacion se completo exitosamente, podemos ir al menu Aplicaciones-> Internet -> Firestarter, esto nos lanza la ventana de inicio del firewall para su configuracion inicial. La vemos en las siguientes pantallas.





Listo, tenemos el firewall en linux corriendo.
Saludos y suerte !!
Suscribirse a:
Entradas (Atom)