DEBIAN PRO

DEBIAN PRO
DEBIAN

miércoles, 29 de junio de 2016

TLS Smtp check


Encontré un sitio donde verificar si tu servidor de correo acepta trabajar con TLS, lo que haría un poco mas seguro la recepción de emails, siempre y cuando el originante del correo también lo pueda activar y sesionen.

http://checktls.com/perl/TestReceiver.pl



Checking dac@dcialdella.no-ip.com

looking up MX hosts on domain "dcialdella.no-ip.com"

No Mail eXchangers found; will try TLS directly to host

Trying TLS on dcialdella.no-ip.com[85.251.210.44] (0):
seconds test stage and result
[000.143] Connected to server
[007.411] <-- 220 dcialdella.no-ip.com ESMTP Postfix (Ubuntu) [007.412] We are allowed to connect [007.412] --> EHLO checktls.com
[008.134] <-- 250-dcialdella.no-ip.com 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250-STARTTLS 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN [008.135] We can use this server [008.135] TLS is an option on this server [008.135] --> STARTTLS
[008.890] <-- 220 2.0.0 Ready to start TLS [008.890] STARTTLS command works on this server [010.512] SSLVersion in use: TLSv1.2 [010.512] Cipher in use: ECDHE-RSA-AES128-SHA256 [010.513] Connection converted to SSL [010.535] Certificate 1 of 2 in chain: subject= /CN=xubuntu issuer= /CN=xubuntu [010.556] Certificate 2 of 2 in chain: subject= /CN=xubuntu issuer= /CN=xubuntu [010.556] Cert NOT VALIDATED: self signed certificate [010.556] So email is encrypted but the domain is not verified [010.556] Cert Hostname DOES NOT VERIFY (dcialdella.no-ip.com != xubuntu) [010.557] So email is encrypted but the host is not verified [010.668] ~~> EHLO checktls.com
[013.161] <~~ 250-dcialdella.no-ip.com 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN [013.161] TLS successfully started on this server [013.162] ~~> MAIL FROM:
[015.851] <~~ 250 2.1.0 Ok [015.851] Sender is OK [015.852] ~~> RCPT TO:
[016.531] <~~ 250 2.1.5 Ok [016.531] Recipient OK, E-mail address proofed [016.531] ~~> QUIT
[019.261] <~~ 221 2.0.0 Bye

SQL Server en Linux


Estoy leyendo como avanza este proyecto, veremos que pasa y "como" pasa...
http://www.wired.com/2016/06/microsofts-open-source-love-affair-reaches-new-heights/

Drivers aqui
https://www.microsoft.com/en-us/download/confirmation.aspx?id=50419&cffa64c5-a636-96fc-e97a-0e907fcc4c04=True


Se deben instalar unos paquetes adicionales en Ubuntu

apt-get install libgss3


Nunca me imaginé que tendría una carpeta llamada "MICROSOFT" en mi servidor Linux.
https://msdn.microsoft.com/es-es/library/hh568454(v=sql.110).aspx

$ odbcinst -q -d -n "ODBC Driver 13 for SQL Server"
[ODBC Driver 13 for SQL Server]
Description=Microsoft ODBC Driver 13 for SQL Server
Driver=/opt/microsoft/msodbcsql/lib64/libmsodbcsql-13.0.so.0.0
Threading=1
UsageCount=1



INSTALLING THE MICROSOFT ODBC Driver 13 (Preview) FOR SQL SERVER ON LINUX


To install the driver:
Make sure that you have root permissions.
Change to the directory where the ODBC Driver on Linux placed the file called msodbcsql-13.0.0.0.tar.gz. Make sure that you have the *.tar.gz file that matches your version of Linux. To extract the files, execute the following command, tar xvzf msodbcsql-13.0.0.0.tar.gz.
Change to the msodbcsql-13.0.0.0 directory and there you should see a file called install.sh.
To see a list of the available installation options, execute the following command: ./install.sh.
Make a backup of odbcinst.ini. The driver installation updates odbcinst.ini. odbcinst.ini contains the list of drivers that are registered with the unixODBC Driver Manager. To discover the location of odbcinst.ini on your computer, execute the following command: odbc_config --odbcinstini.
Before you install the driver, execute the following command: ./install.sh verify. The output of ./install.sh verify reports if your computer has the required software to support the ODBC Driver on Linux.
When you are ready to install the ODBC Driver on Linux, execute the command: ./install.sh install. If you need to specify an install command (bin-dir or lib-dir), specify the command after the install option.
After reviewing the license agreement, type YES to continue with the installation.

Installation puts the driver in /opt/microsoft/msodbcsql/13.0.0.0. The driver and its support files must be in /opt/microsoft/msodbcsql/13.0.0.0.



Y esto parece que FUNCIONA
./sqlcmd-13.0.0.0 -S 192.168.10.3 -U test -P test

22:35:18.326142 IP 192.168.10.2.60012 > 192.168.10.3.1433: Flags [S], seq 3518823063, win 29200, options [mss 1460,sackOK,TS val 63035222 ecr 0,nop,wscale 7], length 0
22:35:19.325318 IP 192.168.10.2.60012 > 192.168.10.3.1433: Flags [S], seq 3518823063, win 29200, options [mss 1460,sackOK,TS val 63035472 ecr 0,nop,wscale 7], length 0
22:35:21.329322 IP 192.168.10.2.60012 > 192.168.10.3.1433: Flags [S], seq 3518823063, win 29200, options [mss 1460,sackOK,TS val 63035973 ecr 0,nop,wscale 7], length 0
22:35:25.341312 IP 192.168.10.2.60012 > 192.168.10.3.1433: Flags [S], seq 3518823063, win 29200, options [mss 1460,sackOK,TS val 63036976 ecr 0,nop,wscale 7], length 0
22:35:33.357304 IP 192.168.10.2.60012 > 192.168.10.3.1433: Flags [S], seq 3518823063, win 29200, options [mss 1460,sackOK,TS val 63038980 ecr 0,nop,wscale 7], length 0





NO SE SI PONERME CONTENTO o NO....

./sqlcmd-13.0.0.0 -S 10.0.0.1 -U usersql -P"claveaqui"

1> select @@version
2> go

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Microsoft SQL Server 2008 R2 (SP1) - 10.50.2500.0 (X64)
Jun 17 2011 00:54:03
Copyright (c) Microsoft Corporation
Standard Edition (64-bit) on Windows NT 6.1 (Build 7601: Service Pack 1) (Hypervisor)

(1 rows affected)



jueves, 23 de junio de 2016

Lenguaje R


Estoy acabando el tercer curso de R y DataScience y de casualidad veo que Microsoft está metiendo un servidor R en su nuevo SQL Server 2016, además de que tiene un cliente para programar R.
Se basaron en el original "Proyecto R" y como los fuentes son GPL los pueden usar y los metieron dentro de su producto ( o eso parece ).
En los próximos dias seguiré haciendo pruebas con SQL Server 2016 y quiero probar su Server R.

https://mran.revolutionanalytics.com/download/mro-for-mrs/

Es "otro caso mas" donde obtienen una tecnología la meten en su producto y la sacan a la calle. Estos son los momentos donde creo que la GPL V3 debería ser mucho mas masiva, aún con el riesgo de perder otros negocios, al menos difundir la licencia GPL.

Cliente R de Windows


Cliente R de Windows

miércoles, 15 de junio de 2016

Programacion en R


Estoy acabando el curso de Programación en R, de Univ. John Hopkins, para las prácticas encontré un sitio con mucha información médica de U.S.A. Es curioso porque estamos haciendo estadísticas de "en que hospitales hay mas operaciones de determinado tipo", "cual es mejor para un tipo de enfermedad"....

https://www.medicare.gov/download/downloaddb.asp



CURSO FINALIZADO !!! Vamos con el siguiente

lunes, 13 de junio de 2016

martes, 7 de junio de 2016

DNS Seguro


Link a un programa para utilizar DNS de manera segura,
http://askubuntu.com/questions/330589/how-to-compile-and-install-dnscrypt

Puede parecer algo inútil, pero si lo pensamos bien es algo que deberíamos tener todos.

Implementa una comunicación segura entre un cliente (PC) que quiere comunicarse con un servidor DNS para que le resuelva el IP de un nombre, desde un ping, navegación, envío de correo.... casi todos los demás protocolos en internet, usan DNS para poder funcionar y comunicarse.

Así como hace tiempo toda la navegación WEB era HTTP sin encripción y luego pasó a HTTPS con "algo de seguridad", ahora le toca el turno a los DNSs.

lunes, 6 de junio de 2016

Protección de ordenador


En este sitio, hay ficheros HOSTS para bajar y reemplazar nuestro fichero (/etc/hosts en Linux o windows/system32/drivers/etc/hosts en Windows).
Esos ficheros evitarán que nuestro equipo trate de comunicarse con un servidor DNS (Resuelve nombres) y que podamos acceder a sitios de riezgo (adaware, porno, games, etc...)

Aunque el servicio es similar a OpenDNS, tener un fichero HOSTS local evita tener que hacer la petición a internet, es decir, ANTES de hacer la petición nuestro propio equipo dice "NO!"

https://github.com/StevenBlack/hosts

Recomendable.