Skip to content

Instantly share code, notes, and snippets.

@pragyanatvade
Last active August 29, 2015 14:25
Show Gist options
  • Save pragyanatvade/41d01c171c6e9b4da87b to your computer and use it in GitHub Desktop.
Save pragyanatvade/41d01c171c6e9b4da87b to your computer and use it in GitHub Desktop.
Shell Script to find nearest ubuntu mirror and localtimezone
## 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