Created
November 5, 2019 09:56
-
-
Save mribeirodantas/7611fbeb04c4fcfb8274af9620df6c49 to your computer and use it in GitHub Desktop.
Script to set machine back to home mode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# In my machine, the content below is saved to /usr/local/bin/setup_home_env | |
# Run with sudo | |
#!/usr/bin/bash | |
# Turn off proxy config for package management in Ubuntu | |
rm -f /etc/apt/apt.conf.d/proxy.conf | |
# Turn off proxy for R | |
echo '' > /home/mribeirodantas/.Renviron | |
# Set wifi card on | |
nmcli radio wifi on | |
# Turn off proxy for system-wide apps | |
gsettings set org.gnome.system.proxy mode 'none' | |
# Turn off proxy for Git | |
git config --global --unset-all https.proxy | |
git config --global --unset-all http.proxy | |
# Turn off SOCKS Tunnel | |
killall ssh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment