Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2016
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. Resolving sourceforge.net (sourceforge.net)... failed: Name or service not known.
  2. wget: unable to resolve host address ‘sourceforge.net’
  3.  
  4. # sudo vim /etc/resolv.conf
  5.  
  6. nameserver 192.168.1.1
  7. nameserver 8.8.8.8
  8. nameserver 4.4.4.4
  9.  
  10. # sudo vim /etc/resolvconf/resolv.conf.d/base
  11.  
  12. nameserver 192.168.1.1
  13. nameserver 8.8.8.8
  14. nameserver 4.4.4.4
  15.  
  16. # sudo /etc/init.d/networking restart
  17.  
  18. $ env | grep proxy
  19.  
  20. http_proxy=http://foo.bar:3128
  21. no_proxy=localhost,127.0.0.1
  22.  
  23. $ export http_proxy="http://foo.bar:8080"
  24.  
  25. $ export http_proxy="http://username:password@foo.bar:8080"
  26.  
  27. $ echo "export http_proxy=http://foo.bar:8080/" | tee -a ~/.bashrc
  28.  
  29. vim ~/.wgetrc
  30.  
  31. http_proxy=http://foo.bar:8080
  32.  
  33. wget --no-proxy http://10.0.0.1/file.tgz
  34.  
  35. wget --proxy-user=username --proxy-password=password http://foo.bar/file.tgz
  36.  
  37. proxy_user=username
  38. proxy_password=password
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement