Skip to main content

How to configure the proxy setting in linux (set and unset the proxy setting)

 

How to configure the proxy setting in linux (set and unset the proxy setting)

What Is a Proxy Server and How Does It Work?

                 1. A proxy server is a device or router that acts as a connection point for users and the internet.

                 2. As a result, it aids in the prevention of cyber-attacks on a private network.

                 3. It's a server that acts as a "intermediary" between end-users and the web pages they browse on the internet.

By using terminal, we are going to set a proxy


                   1. HTTP proxy: By using below command you can able to export the http_proxy


                 2. By using below command, you can verify the proxy is fixed or not 


                  3. HTTPs proxy: By using below command, you can able to export the https_proxy



                 4. By using below command, you can verify the proxy is fixed or not 


Set your proxy settings from your desktop

                 1. Go to application icon and select the setting option.

                 2. And select the Network option



                 3. Select the Network Proxy




                  4. The dialogue box should now be closed. Your preferences will be remembered automatically.

Set your proxy settings for all users.

                 1. To do this task, you'll need root or sudo privileges.

                 2. /etc/environment is a file seen in all Ubuntu and Debian editions.
 
                 3. open /etc/environment into a text editor.


                 4. Add the lines below, changing them to suit your needs. If not required, the username and password can be omitted.


For instance,


                5. Exit the text editor after saving your changes.


To unset a Proxy setting

                 1. By using below command, you can able to unset or remove a proxy 

 


                 2. By using below command, you can verify, whether the proxy is removed or not.




                 3. Some time it will not reflected, in that time you can try with below steps
 
                 4. open /etc/environment into a text editor.



                 5. Uncommand the proxy setting in  /etc/environment 





The session was completed.













Comments

Popular posts from this blog

How to Check Hardware Details on Linux:

  Whether you're troubleshooting hardware issues, planning an upgrade, or just curious about your system’s specifications, Linux provides a variety of commands to gather comprehensive hardware information. Here are some essential commands: 1.  Use lscpu to get detailed information about the CPU, including architecture, cores, threads, and CPU speeds. # lscpu                                                 2. The lshw command provides a complete overview of hardware configuration, including CPU, memory, storage, and network. You’ll likely need superuser privileges to run it. # sudo lshw                                                                               ...

testing

09052025 T-1 { "volume_groups" : { "vgroot" : { "vgsize" : "304G" , "fs_type" : "xfs" } } , "logical_volumes" : { "root" : { "lvroot" : { "vgname" : "vgroot" , "lvname" : "lvroot" , "lvsize" : "12G" , "mountpoint" : "/" , "purpose" : "root filesystem" , "disk" : 1 , "partition" : 2 } } , "swap" : { "lvswap" : { "vgname" : "vgroot" , "lvname" : "lvswap" , "lvsize" : "4G" , "mountpoint" : "NA" , "purpose" : "swap" , "disk" : 1 , "partit...

How Virtual Machines are Created in OpenStack: A Complete Backend Workflow:

When creating a Virtual Machine (VM) in OpenStack, several components work together in the backend to provision the instance. Here's a step-by-step explanation of how the process flows: 1. User Request Interface Used : The user initiates the VM creation through the Horizon Dashboard (web UI), the OpenStack CLI ( openstack server create ), or the OpenStack API. Request Information : The request includes parameters such as: VM name. Image (the operating system or custom image to boot from). Flavor (the compute, memory, and storage specifications). Network (which network the VM will be connected to). Security Groups (firewall rules). Key Pair (for SSH access). 2. API (Nova API) Component : Nova (Compute service). Process : The request is received by the Nova API , which validates the request (checks if the requested resources like the image, flavor, and network exist). If valid, the API creates an entry in the database for the new instance. Nova's Role : Nova is the core service r...