Skip to content

Instantly share code, notes, and snippets.

Embed
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
#!/bin/bash
# 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="https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb" # always the latest
BRACKETS_URL="https://github.com$(curl -s -L https://github.com/adobe/brackets/releases/latest | grep "64-bit.deb" | cut -d '"' -f 2 | grep release)"
DUKTO_URL="http://download.opensuse.org/repositories/home:/colomboem/xUbuntu_12.04/amd64/dukto_6.0-1_amd64.deb"
ALL_DEBS=$CHROME_URL $BRACKETS_URL $DUKTO_URL $FAENZA_URL
FUNCOESZZ_URL="http://funcoeszz.net/download/$(curl -sL http://funcoeszz.net/download/ |grep "arquivão" | cut -d '"' -f 2)"
FUNCOESZZ=${FUNCOESZZ_URL#http://funcoeszz.net/download/}
# config variables
TMP_FOLDER=/tmp/$$
BASH_ALIASES="https://gist.githubusercontent.com/kemelzaidan/4e16d95e81db1ed90a4a/raw/1fdea821501265a9275ef36cfdc2a76d09cda5e5/.bash_aliases"
GITCONFIG="https://gist.githubusercontent.com/kemelzaidan/d813133df44454d1d23b/raw/e1037ef0d102e8ecec5c9160dafe16e7de37ab4b/.txt"
# 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
chmod +x $TMP_FOLDER/$FUNCOESZZ
sudo mv $TMP_FOLDER/$FUNCOESZZ /usr/local/bin/funcoeszz
/usr/local/bin/funcoeszz zzzz --bashrc
# install NVM
wget -qO- https://raw.github.com/creationix/nvm/master/install.sh | 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.