Skip to content

Instantly share code, notes, and snippets.

@fengluo
Last active December 12, 2015 09:49
Show Gist options
  • Save fengluo/4754577 to your computer and use it in GitHub Desktop.
Save fengluo/4754577 to your computer and use it in GitHub Desktop.
echo "backup sources.list..."
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bk
echo "wget new sources and write into sources.list"
sudo wget -c https://gist.github.com/fengluo/4754497/raw/ff5e00b83c9f785f1d75e0f98ff822c7ccd50e61/ubuntu-source-12.04 -O /etc/apt/sources.list
echo "update sources"
sudo apt-get update
sudo apt-get upgrade
echo "install packages..."
sudo apt-get install openssh-server curl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment