Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
A simple bash script intended to be run after a fresh Ubuntu/Debian installation in order to automate system update, extra software installation and a couple configuration files setup
# package variables
PACKAGES="aptitude lynx autogen automake autoconf source-highlight htop most vim-nox build-essential nmap nethogs mpg123 xclip ubuntu-restricted-extras arj faac faad ffmpeg flac p7zip-full vorbis-tools x264 git lame checkinstall gnome-shell gnome-tweak-tool vlc gnome-mplayer geany gimp inkscape deluge unetbootin guake puddletag calibre default-jre default-java-plugin faenza-icon-theme"
CHROME_URL="" # always the latest
BRACKETS_URL="$(curl -s -L | grep "64-bit.deb" | cut -d '"' -f 2 | grep release)"
FUNCOESZZ_URL="$(curl -sL |grep "arquivão" | cut -d '"' -f 2)"
# config variables
# Beginning of the program
echo "Please, type your admin password"
sudo apt-get update
sudo apt-get install $PACKAGES
mkdir -p $TMP_FOLDER
wget --content-disposition $ALL_DEBS -P $TMP_FOLDER
dpkg -i $TMP_FOLDER/*.deb
# extra configurations
sudo update-alternatives --set editor /usr/bin/vim.nox
sudo update-alternatives --set pager /usr/bin/most
gconftool --set /apps/guake/general/use_vte_titles --type boolean false # make guake name tabs by termina 1, 2, 3...
wget --content-disposition $BASH_ALIASES $GITCONFIG -P ~
# fix the wrong gist name
mv ~/.txt ~/.gitconfig
# install funcoeszz
wget --content-disposition $FUNCOESZZ_URL -P $TMP_FOLDER
sudo mv $TMP_FOLDER/$FUNCOESZZ /usr/local/bin/funcoeszz
/usr/local/bin/funcoeszz zzzz --bashrc
# install NVM
wget -qO- | sh
source ~/.profile
echo "Everything went well! Congratulations!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.