Last active
August 29, 2015 14:25
-
-
Save pragyanatvade/41d01c171c6e9b4da87b to your computer and use it in GitHub Desktop.
Shell Script to find nearest ubuntu mirror and localtimezone
This file contains 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
## set local/fastest mirror and local timezone | |
mv /etc/apt/sources.list /etc/apt/sources.list.orig | |
cat > /etc/apt/sources.list <<EOF | |
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty main restricted universe multiverse | |
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-updates main restricted universe multiverse | |
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-backports main restricted universe multiverse | |
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-security main restricted universe multiverse | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment