Change Proxy Settings In Ubuntu












2















I want to use the Ubuntu Software Center to install software, but I cannot download them.



How can I give my proxy settings in Ubuntu terminal (just like we use cmd in Windows to choose IE proxy settings)?










share|improve this question





























    2















    I want to use the Ubuntu Software Center to install software, but I cannot download them.



    How can I give my proxy settings in Ubuntu terminal (just like we use cmd in Windows to choose IE proxy settings)?










    share|improve this question



























      2












      2








      2


      1






      I want to use the Ubuntu Software Center to install software, but I cannot download them.



      How can I give my proxy settings in Ubuntu terminal (just like we use cmd in Windows to choose IE proxy settings)?










      share|improve this question
















      I want to use the Ubuntu Software Center to install software, but I cannot download them.



      How can I give my proxy settings in Ubuntu terminal (just like we use cmd in Windows to choose IE proxy settings)?







      software-center settings






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 25 '16 at 5:56









      edwinksl

      17.3k125487




      17.3k125487










      asked Sep 8 '13 at 12:15









      user2200091user2200091

      11114




      11114






















          3 Answers
          3






          active

          oldest

          votes


















          3














          You can easily change the proxy settings for your user, or for the entire system, within the Network config under System Settings. This uses the GUI and is quick and helpful, but not very advanced. If you have particular requirements or special settings/circumstances, this may not do everything you need.




          1. Open System Settings

          2. Choose Network

          3. In the left hand menu, choose Network Proxy

          4. Enter your proxy settings. If you want to apply them system wide, press that button.

          5. Close the window, or presss All Settings to leave this interface.


          You should be all set. You may have to logout and login again for changes to take affect. In unusual circumstances, you may have to reboot your system, but that is highly unlikely for a Linux system.
          Network Manager Proxy dialogue






          share|improve this answer





















          • 1





            That's not a terminal solution, but a good one.

            – Karl Richter
            Sep 24 '14 at 3:33



















          1














          Add



          http_proxy='http://proxy_username:password@proxy_ip:port'
          https_proxy='https://proxy_username:password@proxy_ip:port'
          ftp_proxy='ftp://proxy_username:password@proxy_ip:port'


          to /etc/environment to load them automatically at login (or system start - I might look that up if it matters).






          share|improve this answer































            1














            proxy setting from terminal in ubuntu:

            Open the terminal and run the following commands:

            For a HTTP proxy, simply run the following command in a terminal



            export http_proxy='http://proxy_username:password@proxy_ip:port'


            For a HTTPs and FTP



            export https_proxy='https://proxy_username:password@proxy_ip:port'
            export ftp_proxy='ftp://proxy_username:password@proxy_ip:port'


            If there is no username and password required for your proxy then simply remove the username and password section.



            export https_proxy='https://proxy_ip:port'


            These settings are saved into /etc/apt/apt.conf file .So you can directly add these variables using text editor .First open the apt.conf file



            sudo gedit /etc/apt/apt.conf


            then enter the username,password,proxy_ip and port in given format



            Acquire::http::proxy "http://proxy_username:password@proxy_ip:port";
            Acquire::https::proxy "https://proxy_username:password@proxy_ip:port";
            Acquire::ftp::proxy "ftp://proxy_username:password@proxy_ip:port";





            share|improve this answer


























            • I can't find /etc/apt/apt.conf file. Is there any alternative to this file ?

              – firmanium
              Apr 5 '18 at 2:13











            • I also want to try the first solution using export, but my username is "domainnamefirman" how should I write the syntax ? Thank You

              – firmanium
              Apr 5 '18 at 3:41











            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f342906%2fchange-proxy-settings-in-ubuntu%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            3














            You can easily change the proxy settings for your user, or for the entire system, within the Network config under System Settings. This uses the GUI and is quick and helpful, but not very advanced. If you have particular requirements or special settings/circumstances, this may not do everything you need.




            1. Open System Settings

            2. Choose Network

            3. In the left hand menu, choose Network Proxy

            4. Enter your proxy settings. If you want to apply them system wide, press that button.

            5. Close the window, or presss All Settings to leave this interface.


            You should be all set. You may have to logout and login again for changes to take affect. In unusual circumstances, you may have to reboot your system, but that is highly unlikely for a Linux system.
            Network Manager Proxy dialogue






            share|improve this answer





















            • 1





              That's not a terminal solution, but a good one.

              – Karl Richter
              Sep 24 '14 at 3:33
















            3














            You can easily change the proxy settings for your user, or for the entire system, within the Network config under System Settings. This uses the GUI and is quick and helpful, but not very advanced. If you have particular requirements or special settings/circumstances, this may not do everything you need.




            1. Open System Settings

            2. Choose Network

            3. In the left hand menu, choose Network Proxy

            4. Enter your proxy settings. If you want to apply them system wide, press that button.

            5. Close the window, or presss All Settings to leave this interface.


            You should be all set. You may have to logout and login again for changes to take affect. In unusual circumstances, you may have to reboot your system, but that is highly unlikely for a Linux system.
            Network Manager Proxy dialogue






            share|improve this answer





















            • 1





              That's not a terminal solution, but a good one.

              – Karl Richter
              Sep 24 '14 at 3:33














            3












            3








            3







            You can easily change the proxy settings for your user, or for the entire system, within the Network config under System Settings. This uses the GUI and is quick and helpful, but not very advanced. If you have particular requirements or special settings/circumstances, this may not do everything you need.




            1. Open System Settings

            2. Choose Network

            3. In the left hand menu, choose Network Proxy

            4. Enter your proxy settings. If you want to apply them system wide, press that button.

            5. Close the window, or presss All Settings to leave this interface.


            You should be all set. You may have to logout and login again for changes to take affect. In unusual circumstances, you may have to reboot your system, but that is highly unlikely for a Linux system.
            Network Manager Proxy dialogue






            share|improve this answer















            You can easily change the proxy settings for your user, or for the entire system, within the Network config under System Settings. This uses the GUI and is quick and helpful, but not very advanced. If you have particular requirements or special settings/circumstances, this may not do everything you need.




            1. Open System Settings

            2. Choose Network

            3. In the left hand menu, choose Network Proxy

            4. Enter your proxy settings. If you want to apply them system wide, press that button.

            5. Close the window, or presss All Settings to leave this interface.


            You should be all set. You may have to logout and login again for changes to take affect. In unusual circumstances, you may have to reboot your system, but that is highly unlikely for a Linux system.
            Network Manager Proxy dialogue







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Apr 28 '14 at 1:05

























            answered Apr 28 '14 at 0:59









            0xSheepdog0xSheepdog

            335215




            335215








            • 1





              That's not a terminal solution, but a good one.

              – Karl Richter
              Sep 24 '14 at 3:33














            • 1





              That's not a terminal solution, but a good one.

              – Karl Richter
              Sep 24 '14 at 3:33








            1




            1





            That's not a terminal solution, but a good one.

            – Karl Richter
            Sep 24 '14 at 3:33





            That's not a terminal solution, but a good one.

            – Karl Richter
            Sep 24 '14 at 3:33













            1














            Add



            http_proxy='http://proxy_username:password@proxy_ip:port'
            https_proxy='https://proxy_username:password@proxy_ip:port'
            ftp_proxy='ftp://proxy_username:password@proxy_ip:port'


            to /etc/environment to load them automatically at login (or system start - I might look that up if it matters).






            share|improve this answer




























              1














              Add



              http_proxy='http://proxy_username:password@proxy_ip:port'
              https_proxy='https://proxy_username:password@proxy_ip:port'
              ftp_proxy='ftp://proxy_username:password@proxy_ip:port'


              to /etc/environment to load them automatically at login (or system start - I might look that up if it matters).






              share|improve this answer


























                1












                1








                1







                Add



                http_proxy='http://proxy_username:password@proxy_ip:port'
                https_proxy='https://proxy_username:password@proxy_ip:port'
                ftp_proxy='ftp://proxy_username:password@proxy_ip:port'


                to /etc/environment to load them automatically at login (or system start - I might look that up if it matters).






                share|improve this answer













                Add



                http_proxy='http://proxy_username:password@proxy_ip:port'
                https_proxy='https://proxy_username:password@proxy_ip:port'
                ftp_proxy='ftp://proxy_username:password@proxy_ip:port'


                to /etc/environment to load them automatically at login (or system start - I might look that up if it matters).







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Sep 24 '14 at 3:30









                Karl RichterKarl Richter

                2,47983569




                2,47983569























                    1














                    proxy setting from terminal in ubuntu:

                    Open the terminal and run the following commands:

                    For a HTTP proxy, simply run the following command in a terminal



                    export http_proxy='http://proxy_username:password@proxy_ip:port'


                    For a HTTPs and FTP



                    export https_proxy='https://proxy_username:password@proxy_ip:port'
                    export ftp_proxy='ftp://proxy_username:password@proxy_ip:port'


                    If there is no username and password required for your proxy then simply remove the username and password section.



                    export https_proxy='https://proxy_ip:port'


                    These settings are saved into /etc/apt/apt.conf file .So you can directly add these variables using text editor .First open the apt.conf file



                    sudo gedit /etc/apt/apt.conf


                    then enter the username,password,proxy_ip and port in given format



                    Acquire::http::proxy "http://proxy_username:password@proxy_ip:port";
                    Acquire::https::proxy "https://proxy_username:password@proxy_ip:port";
                    Acquire::ftp::proxy "ftp://proxy_username:password@proxy_ip:port";





                    share|improve this answer


























                    • I can't find /etc/apt/apt.conf file. Is there any alternative to this file ?

                      – firmanium
                      Apr 5 '18 at 2:13











                    • I also want to try the first solution using export, but my username is "domainnamefirman" how should I write the syntax ? Thank You

                      – firmanium
                      Apr 5 '18 at 3:41
















                    1














                    proxy setting from terminal in ubuntu:

                    Open the terminal and run the following commands:

                    For a HTTP proxy, simply run the following command in a terminal



                    export http_proxy='http://proxy_username:password@proxy_ip:port'


                    For a HTTPs and FTP



                    export https_proxy='https://proxy_username:password@proxy_ip:port'
                    export ftp_proxy='ftp://proxy_username:password@proxy_ip:port'


                    If there is no username and password required for your proxy then simply remove the username and password section.



                    export https_proxy='https://proxy_ip:port'


                    These settings are saved into /etc/apt/apt.conf file .So you can directly add these variables using text editor .First open the apt.conf file



                    sudo gedit /etc/apt/apt.conf


                    then enter the username,password,proxy_ip and port in given format



                    Acquire::http::proxy "http://proxy_username:password@proxy_ip:port";
                    Acquire::https::proxy "https://proxy_username:password@proxy_ip:port";
                    Acquire::ftp::proxy "ftp://proxy_username:password@proxy_ip:port";





                    share|improve this answer


























                    • I can't find /etc/apt/apt.conf file. Is there any alternative to this file ?

                      – firmanium
                      Apr 5 '18 at 2:13











                    • I also want to try the first solution using export, but my username is "domainnamefirman" how should I write the syntax ? Thank You

                      – firmanium
                      Apr 5 '18 at 3:41














                    1












                    1








                    1







                    proxy setting from terminal in ubuntu:

                    Open the terminal and run the following commands:

                    For a HTTP proxy, simply run the following command in a terminal



                    export http_proxy='http://proxy_username:password@proxy_ip:port'


                    For a HTTPs and FTP



                    export https_proxy='https://proxy_username:password@proxy_ip:port'
                    export ftp_proxy='ftp://proxy_username:password@proxy_ip:port'


                    If there is no username and password required for your proxy then simply remove the username and password section.



                    export https_proxy='https://proxy_ip:port'


                    These settings are saved into /etc/apt/apt.conf file .So you can directly add these variables using text editor .First open the apt.conf file



                    sudo gedit /etc/apt/apt.conf


                    then enter the username,password,proxy_ip and port in given format



                    Acquire::http::proxy "http://proxy_username:password@proxy_ip:port";
                    Acquire::https::proxy "https://proxy_username:password@proxy_ip:port";
                    Acquire::ftp::proxy "ftp://proxy_username:password@proxy_ip:port";





                    share|improve this answer















                    proxy setting from terminal in ubuntu:

                    Open the terminal and run the following commands:

                    For a HTTP proxy, simply run the following command in a terminal



                    export http_proxy='http://proxy_username:password@proxy_ip:port'


                    For a HTTPs and FTP



                    export https_proxy='https://proxy_username:password@proxy_ip:port'
                    export ftp_proxy='ftp://proxy_username:password@proxy_ip:port'


                    If there is no username and password required for your proxy then simply remove the username and password section.



                    export https_proxy='https://proxy_ip:port'


                    These settings are saved into /etc/apt/apt.conf file .So you can directly add these variables using text editor .First open the apt.conf file



                    sudo gedit /etc/apt/apt.conf


                    then enter the username,password,proxy_ip and port in given format



                    Acquire::http::proxy "http://proxy_username:password@proxy_ip:port";
                    Acquire::https::proxy "https://proxy_username:password@proxy_ip:port";
                    Acquire::ftp::proxy "ftp://proxy_username:password@proxy_ip:port";






                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Sep 24 '14 at 4:52









                    Karl Richter

                    2,47983569




                    2,47983569










                    answered Sep 8 '13 at 12:34









                    M.TarunM.Tarun

                    3,45162562




                    3,45162562













                    • I can't find /etc/apt/apt.conf file. Is there any alternative to this file ?

                      – firmanium
                      Apr 5 '18 at 2:13











                    • I also want to try the first solution using export, but my username is "domainnamefirman" how should I write the syntax ? Thank You

                      – firmanium
                      Apr 5 '18 at 3:41



















                    • I can't find /etc/apt/apt.conf file. Is there any alternative to this file ?

                      – firmanium
                      Apr 5 '18 at 2:13











                    • I also want to try the first solution using export, but my username is "domainnamefirman" how should I write the syntax ? Thank You

                      – firmanium
                      Apr 5 '18 at 3:41

















                    I can't find /etc/apt/apt.conf file. Is there any alternative to this file ?

                    – firmanium
                    Apr 5 '18 at 2:13





                    I can't find /etc/apt/apt.conf file. Is there any alternative to this file ?

                    – firmanium
                    Apr 5 '18 at 2:13













                    I also want to try the first solution using export, but my username is "domainnamefirman" how should I write the syntax ? Thank You

                    – firmanium
                    Apr 5 '18 at 3:41





                    I also want to try the first solution using export, but my username is "domainnamefirman" how should I write the syntax ? Thank You

                    – firmanium
                    Apr 5 '18 at 3:41


















                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f342906%2fchange-proxy-settings-in-ubuntu%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    How to make a Squid Proxy server?

                    第一次世界大戦

                    Touch on Surface Book