Entradas

Mostrando las entradas etiquetadas como Proxy

Configuración de Proxy en Linux

Imagen
Puede utilizar los siguientes métodos para configurar su consola para usar un servidor proxy para que los programas basados ​​en consola como wget puedan conectarse a Internet a través del proxy. 1.- Establecer la variable del environment export http_proxy=http://DOMAIN_USERNAME:PASSWORD@PROXY:PORT/ export ftp_proxy=http://DOMAIN_USERNAME:PASSWORD@PROXY:PORT/ 2.- Transmitir credenciales de autenticación de proxy a wget como argumentos wget --proxy-user "DOMAIN\USERNAME" --proxy-passwd "PASSWORD" URL 3.- Additionally if you want APT to use a proxy server you can configure it in the /etc/apt/apt.conf configuration file. nano /etc/apt/apt.conf # Proxy configuration acquire::http::proxy "http://DOMAIN_USERNAME:PASSWORD@SERVER:PORT";

PIP : Error TypeError: __str__ returned non-string (type Error)

Comando: sudo pip install --upgrade pip ERROR: Cleaning up... Exception: Traceback (most recent call last):   File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main     status = self.run(options, args)   File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 290, in run     requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)   File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1097, in prepare_files     req_to_install, self.upgrade)   File "/usr/lib/python2.7/dist-packages/pip/index.py", line 194, in find_requirement     page = self._get_page(main_index_url, req)   File "/usr/lib/python2.7/dist-packages/pip/index.py", line 568, in _get_page     session=self.session,   File "/usr/lib/python2.7/dist-packages/pip/index.py", line 694, in get_page     req, link, "connection error: %s" ...

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