Wget, Apt and Git behind proxy Rumi, December 22, 2020 For Wget Add/Comment out below line(s) in file ~/.wgetrc or /etc/wgetrc: http_proxy = http://[Proxy_Server]:[port] https_proxy = http://[Proxy_Server]:[port] ftp_proxy = http://[Proxy_Server]:[port] For Apt Create a new configuration file named proxy.conf.sudo touch /etc/apt/apt.conf.d/proxy.conf Open the proxy.conf file in a text editor.sudo vi /etc/apt/apt.conf.d/proxy.conf Paste it as following: Acquire { HTTP::proxy "http://127.0.0.1:8080"; HTTPS::proxy "http://127.0.0.1:8080"; } For Git: git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080 change proxyuser to your proxy user change proxypwd to your proxy password change proxy.server.com to the URL of your proxy server change 8080 to the proxy port configured on your proxy server Note that this works for both http and https repos. If you decide at any time to reset this proxy and work without proxy: Command to use: git config --global --unset http.proxy Finally, to check the currently set proxy: git config --global --get http.proxy Related Administrations Configurations (Linux) proxy
Enable mod_rewrite for Apache on CentOS 7 October 25, 2020 The mod_rewrite module is enabled by default on CentOS 7. If you find it is not enabled on your server, you can enable it by editing 00-base.conf file located in /etc/httpd/conf.modules.d/ directory. sudo nano /etc/httpd/conf.modules.d/00-base.conf Add or uncomment the following line: LoadModule rewrite_module modules/mod_rewrite.so Save and close the file, then… Read More
Disable Last Login Message on Linux using hushlogin March 28, 2023 Single user To permanently suppress a Last Login message as per on user basis, create a hidden .hushlogin file inside a user’s home directory. For example to suppress a Last Login message for the linuxconfig user, we would run this command: $ sudo touch /home/linuxconfig/.hushlogin Similarly to suppress a Last Login message for the root user,… Read More
Installing Manageengine Opmanager 12 standar/pro edition on Linux Centos 7 March 21, 2020 Lately for a project needed to install opmanager for a specific client. The installation is quite straight forward on a fresh installation of Centos 7 Box. Assuming you already have a linux installaiton file (ended with .bin) file. So here it goes- Installing OpManager on Linux using Console mode /… Read More