Skip to content

Instantly share code, notes, and snippets.

@allex
Last active August 29, 2015 13:57
Show Gist options
  • Save allex/9447120 to your computer and use it in GitHub Desktop.
Save allex/9447120 to your computer and use it in GitHub Desktop.
#!/bin/sh
# ================================================
# Description: Ubuntu upgrade install logs
# Last Modified: Sun Mar 09, 2014 08:32PM
# Author: Allex Wang (allex.wxn@gmail.com)
# ================================================
# check root
if [ "x$EUID" = "x" ] ; then
EUID=`id -u`
fi
if [ "$EUID" != 0 ] ; then
echo "$(basename $0): You must run this as root." >&2
exit 1
fi
cd ~/.etc
rm -rf /etc/apt/sources.list
rm -rf /etc/apt/sources.list.d
ln -sf $(pwd)/sources.list /etc/apt/
ln -sf $(pwd)/sources.list.d/* /etc/apt/sources.list.d/
for KEY in `apt-get update 2>&1 |grep NO_PUBKEY|awk '{print $NF}'`; do gpg --keyserver keyserver.ubuntu.com --recv $KEY; gpg --export --armor $KEY| apt-key add -;done
cd -
dpkg -l | grep libreoffice | awk '{print $2}' | xargs apt-get purge -y
dpkg --configure -a
apt-get install checkinstall
apt-get install ctags
apt-get install curl
apt-get install gconf-editor
apt-get install faenza-icon-theme
apt-get install nitrux-icons
apt-get install g++
apt-get install gcc
apt-get install git
apt-get install google-chrome-stable
apt-get install jupiter
apt-get install nautilus-share
apt-get install python-gevent
apt-get install screenruler
apt-get install smplayer
apt-get install synaptic
apt-get install samba
apt-get install tree
apt-get install terminator
apt-get install ubuntu-tweak
apt-get install virtualbox-4.3
apt-get purge firefox
apt-get purge overlay-scrollbar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment