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

temp-1

  🔧 vast_id Configuration Key: vast_id Description This section defines the VAST ID , a unique numeric identifier used by internal systems for asset tracking, automation, or integration with enterprise management platforms. It helps associate the server with inventory records, monitoring tools, or deployment workflows. ✅ Used during provisioning to register the system in centralized databases or orchestration systems. JSON Format json 1 "vast_id" : 12194 ✅ Can also be provided as a string: json 1 "vast_id" : "12194" Field Reference vast_id String or Integer Unique identifier for the system in VAST (Verizon Asset Systems Tracker) 12194 ✅ Must be non-empty and numeric — leading zeros may be stripped depending on system. Validations Enforced vast_id  is required and must be a non-empty string or integer Ensures the field is present and contains usable data If  vast_id  is a string, it must not be blank or whitespace-only Prevents " " , "...

How to Generate and Use SSH Keys in OpenStack:

This guide walks you through generating SSH keys from scratch, configuring them in OpenStack, and using them for secure instance access. These steps will help you manage your OpenStack instances securely and efficiently using SSH key pairs.  Step-by-Step Guide: Generating and Using SSH Key Pairs in OpenStack:  Step 1: Generate SSH Key Pair Locally:  To begin, you need to generate an SSH key pair on your local machine. This pair consists of a public and a private key.  Generate a new SSH key pair on your local system (Linux/macOS). Run the following command in your terminal: # ssh-keygen -t rsa -b 2048 Enter the file name for the key: When prompted, provide the file name and path to save the key. By default, it will be saved in ~/.ssh/id_rsa . You can press Enter to accept the default location.  Set a passphrase (optional): You can choose to set a passphrase for additional security or leave it blank for easy access.  This will create two files: id_rsa:...

Install Apache Guacamole on Ubuntu 22.04

  Install Apache Guacamole on Ubuntu 22.04 Apache Guacamole Installation Guide Remote Desktop Gateway for Ubuntu 22.04 Ubuntu 22.04 Remote Desktop What is Apache Guacamole? Apache Guacamole is a clientless remote desktop gateway that supports standard protocols like VNC, RDP, and SSH. Thanks to HTML5, once Guacamole is installed on a server, all you need to access your desktops is a web browser. Clientless No plugins or client software needed Secure ...