Skip to content

Instantly share code, notes, and snippets.

@likair
Created February 3, 2023 19:24
Show Gist options
  • Save likair/dfd780dd277a5eb95fee4c24ba4ec2c7 to your computer and use it in GitHub Desktop.
Save likair/dfd780dd277a5eb95fee4c24ba4ec2c7 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "Proxy Environment variables:"
env | grep -i proxy
if [ $? -ne 0 ]; then
echo "No proxy settings found."
fi
echo '---------------------------------------------------------'
echo "apt proxy settings:"
cat /etc/apt/apt.conf.d/proxy 2> /dev/null
if [ $? -ne 0 ]; then
echo "No apt proxy settings found."
fi
echo '---------------------------------------------------------'
echo "Gnome proxy settings:"
gsettings get org.gnome.system.proxy mode
if [ $? -ne 0 ]; then
echo "No gnome proxy settings found."
fi
echo '---------------------------------------------------------'
echo "Docker proxy settings:"
cat /etc/systemd/system/docker.service.d/http-proxy.conf 2> /dev/null
if [ $? -ne 0 ]; then
echo "No docker proxy settings found."
fi
echo '---------------------------------------------------------'
echo "Environment variables:"
cat /etc/environment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment