If you are running Opensuse under proxy environment then every time if you are logged in means you need to manually Goto Yast2->Network Services->Proxy settings to configure your network. The following blog post describes how to set proxy in detail:
In order to speed up the process, i had created a small script.
#!/bin/bash echo "----------CONFIG PROXY--------------" echo "1.set proxy" echo "2.No proxy" echo "Enter the choice : " read choice case $choice in 1) echo "setting up Proxy" echo -e " PROXY_ENABLED=\"yes\" GOPHER_PROXY=\"\" NO_PROXY=\"localhost, 127.0.0.1\" HTTP_PROXY=\"http://172.16.35.90:8080\" HTTPS_PROXY=\"http://172.16.35.90:8080\" FTP_PROXY=\"http://172.16.35.90:8080\" " > /etc/sysconfig/proxy echo "bye..." ;; 2) echo "Unsetting the Proxy" echo -e " PROXY_ENABLED=\"no\" GOPHER_PROXY=\"\" NO_PROXY=\"localhost, 127.0.0.1\" HTTP_PROXY=\"\" HTTPS_PROXY=\"\" FTP_PROXY=\"\" " > /etc/sysconfig/proxy echo "bye..." ;; *) echo -e "Invalid Choice. Exiting bye" ;; esacWhen Proxy variables are set/unset through the Script means, it gets updated properly to /etc/sysconfig/proxy. Zypper,Install/Remove software and Firefox works fine by detecting the proxy settings. But the Problem is Google-Chrome, since Google Chrome uses System-proxy settings, the change in the environmental variables affects only after Logging off and re-Logging in. We can overcome this by using the following command:
google-chrome --proxy-server=http://172.16.35.90:8080
see man google-chrome for more info.
Comments
Post a Comment