Entradas

Replicación Master - Slave con PostgreSQL 9.4 (Ubuntu 14.04)

El escenario para el ejemplo son dos (02) servidores con las siguientes IP 192.168.1.191 and 192.168.1.171 con Ubuntu 14.04 y PostgreSQL 9.4 Debe estar instalado el PosgreSQL 9.4, por favor leer:  Instalación PostgreSQL 9.4 Paso1: Se debe asegurar que funcione la conexión SSH libremente entre ellas. Ingrese con el usuario Postgres en el terminal: sudo su - postgres Genere ssh key: ssh - keygen Copiar el ssh key en el servidor contrario: ssh - copy - id opposite_ip_address Nota: debe realizar el paso anterior en ambos servidores. Paso2: Configuración del nodo Maestro. Crear cuenta para replicación psql - c "CREATE USER rep REPLICATION LOGIN CONNECTION LIMIT 1 ENCRYPTED PASSWORD 'yourpassword';" Modificar el archivo de acceso postgres: vi / etc / postgresql / 9.4 / main / pg_hba . conf Agregando la siguiente linea: host     replication     rep     IP_address_of_sl...

Instalar PosgreSQL 9.4 en Ubuntu 14.04

Crear el archivo /etc/apt/sources.list.d/pgdg.list con el siguiente contenido: deb http : //apt.postgresql.org/pub/repos/apt/ trusty-pgdg main Importar Key y actualizar los repositorios: wget -- quiet - O - https : //www.postgresql.org/media/keys/ACCC4CF8.asc | \ sudo apt - key add - sudo apt - get update   Instalar PostgreSQL 9.4: sudo apt - get install postgresql - 9.4 Finalmente probamos la instalación: sudo - u postgres psql Este debe ser el resultado: psql ( 9.4.4 ) Type "help" for help . postgres = # Fuente: https://sonnguyen.ws/install-postgresql-9-4-in-ubuntu-14-04/

Error: Command python setup.py egg_info failed with error code 1 in /root/build/tweepy

Al instalar la libreria tweepy: pip install tweepy Aparece los siguentes datos: Downloading/unpacking tweepy Downloading tweepy-3.5.0.tar.gz Running setup.py egg_info for package tweepy Traceback (most recent call last): File "<string>", line 16, in <module> File "/tmp/pip_build_root/tweepy/setup.py", line 17, in <module> install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1()) TypeError: parse_requirements() got an unexpected keyword argument 'session' Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 16, in <module> File "/tmp/pip_build_root/tweepy/setup.py", line 17, in <module> install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1()) TypeError: parse_requirements() got an unexpected keyword argument 'session' ---------...

Error: Requirement already up-to-date: setuptools in /usr/local/lib/python2.7/dist-packages

Al intentar ejecutar: pip install --upgrade setuptools Se presenta el siguiente error: Requirement already up-to-date: setuptools in /usr/local/lib/python2.7/dist-packages SOLUCION: 1.- Descargar ez_setup.py ( https://bitbucket.org/pypa/setuptools/downloads/ez_setup.py ) 2.- Ejecutar: python ez_setup.py  3.- Finalmente volver a ejecutar: pip install --upgrade setuptools Post original: https://github.com/pypa/pip/issues/1064

wget: unable to resolve host address ‘github.com’

En el proceso de instalación de Odoo 9 en Ubuntu 14.4 Al ingresar el siguiente comando en la consola: wget https://github.com/odoo/odoo/archive/9.0.zip Aparece el siguiente mensaje: --2016-04-08 09:51:45--  https://github.com/odoo/odoo/archive/9.0.zip Resolving github.com (github.com)... failed: Temporary failure in name resolution. wget: unable to resolve host address ‘github.com’ Es un problema con el proxy, para lo cual se edita el fichero /etc/wgetrc # sudo nano /etc/wgetrc # You can set the default proxies for Wget to use for http and ftp. # They will override the value in the environment. http_proxy = http://ip_servidor_proxy:8080/ https_proxy = http://ip_servidor_proxy:8080/ ftp_proxy = http://ip_servidor_proxy:8080/ # If you do not want to use proxy at all, set this to off.   use_proxy = on Guardamos los cambios "Ctrl+X" y "y". Información original: http://virtulinux.blogspot.com/2011/08/configurar-wget-por-proxy.html 

Instalar Jaspersoft Studio en Debian

1.- Descargar  TIBCOJaspersoftStudio-6.0.3.final-linux-x86_64.tgz 2.- Ubicas la carpeta de descargas, se descomprime la carpeta. 3.- Dentro del la carpeta (TIBCOJaspersoftStudio-6.0.3.final), ubicacmos el archivo Jaspersoft Studio y lo ejecutamos con un doble clic.

Instalar Jasper Server en Debian

1.- Descargar  jasperreports-server-cp-6.0.1-linux-x86-installer.run 2.- Desde el Terminal buscar la carpeta donde se descargo y ejecutar el siguiente comando: Ejemplo: Para dar los permisos necesarios: chmod 777 ./jasperreports-server-cp-6.0.1-linux-x86-installer.run Para instalar ejecuta lo siguiente:  ./jasperreports-server-cp-6.0.1-linux-x86-installer.run 3.- Iniciar el servicio de Jasper Server desde el terminal: /opt/jasperreports-server-cp-6.0.1/ctlscript.sh  start