#1  
Old 21st December 2006, 04:44
pinguingilo pinguingilo is offline
Member
 
Join Date: Jun 2006
Location: indonesia
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to pinguingilo
Default yum and http proxy auth

Hi, how can i configure yum to authenticate with an http proxy that requests an
user and password? �
I've tried this:
export http_proxy="http://userassword@x.x.x.x:8080" but it doesn't work...
any ideias on how to do this ? I use FC 5...here my yum.conf :
Code:
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
http_proxy=http://username:password@x.x.x.x:8080
export http_proxy
obsoletes=1
gpgcheck=1
plugins=1
__________________
Pinguingilo Was Here
I Don't Love Linux But Linux Love Me
Reply With Quote
Sponsored Links
  #2  
Old 21st December 2006, 10:38
Ben Ben is offline
Moderator
 
Join Date: Jul 2006
Posts: 1,029
Thanks: 7
Thanked 62 Times in 56 Posts
 
Default

I just do this with a shellscript.
I attached them.
proxy_direct just sets http + ftp proxy (upper + lowercase, maybe that's the problem in your case). Just change USER, PASS + proxyurl + port

the other one contains two scripts infotext_proxy + proxy.sh.
It uses dialog to ask the user for proxy + pass, and sets the proxydata with that.
In proxy.sh you have to change the porxy url + the path, where the script is located, because it has to remove the dialog generated files.

hth

remove .txt from all files...
Attached Files
File Type: txt infotext_proxy.txt (57 Bytes, 321 views)
File Type: txt proxy.txt (921 Bytes, 337 views)
File Type: txt proxy_direct.txt (246 Bytes, 315 views)
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
YUM Install of OpenSSL does NOT have CA.pl CrimsonSkyZS Server Operation 1 28th May 2006 20:47


All times are GMT +2. The time now is 01:04.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.