YasT behind proxy with auth. The solution

Hi, I’m a new user of OpenSuse (Ubuntu and others before that). I really really liked Opensuse, it was like a love from the first (test drive). :stuck_out_tongue:

After the installation I was surprised of this BIG bug, you see YasT and the package installer can work behind proxy through YaST >> network services >>> proxy. and it even support Auth.!

but even if I input the Auth, I still can’t update nor install new programs. I googled and googled and saw ALOT of solution and each one of them is harder and more complicated than the others.

the easiest solution was installing using terminal through “zyapper”. but is that a final solution? and do you, Opensuse community really accept such a big bug right on the latest 11.2 version of the dist. face?

So this is my solution for the new comers and to who had to deal with the terminal and thought they have to put up with it 'till the bug is fixed.

1- Install cntlm
- download the rpm from: http://software.opensuse.or/search
(Search cntlm and download the rpm.)
- install it using ‘sudo zyapper ./cntlm.rpm’

2- Configure cntlm to your proxy
- open /etc/cntlm.conf using: ‘kdesu kwrite /etc/cntlm.conf’
- enter your proxy information
(using ip instead of hostname for proxy is recommended)
- uncomment the line ‘#Listen’ and put a custom port number

3- Run cntlm
- You need to run cntlm once then it will be a daemon and
run at each restart itself
- do this using “sudo ‘/usr/sbin/cntlm’”

  • now you have a proxy running on 127.0.0.1:YOURPORT and it does all the authentication by itself. now use it in YaST and restart.
    You can also use it for Firefox annoying Auth. dialog and any other Application you want.

Enjoy

Note: Apparently cntlm doesn’t add itself to the startup so add it yourself. you will not face a problem unless you decided to use ports less than 1024 which needs root approval. in that case find another way.

Sorry all I just don’t have time to add a tutorial to adding to startup. if someone have the time. plz do it. thank you all. I hope I helped.

Thx for this , 4 years later (with OpenSue 12.3) and one still have to do this trick to get things working when you are stuck behind a Windows domain proxy.
Anyway it worked after battling for some time and now I can start battling with the next issue … getting mono to work properly.