Skip to content

Instantly share code, notes, and snippets.

@dasdennis
Created February 29, 2016 14:04
Show Gist options
  • Save dasdennis/b043974b795df1f7f72c to your computer and use it in GitHub Desktop.
Save dasdennis/b043974b795df1f7f72c to your computer and use it in GitHub Desktop.
Oduso Script - My elementaryOS Luna Essential Apps
#!/bin/bash
clear
# Create a secure tmp directory
tmp=${TMPDIR-/tmp}
tmp=$tmp/oduso.$RANDOM.$RANDOM.$RANDOM.$$ # Use a random name so it's secure
(umask 077 && mkdir "$tmp") || { # Another security precaution
echo "Could not create temporary directory! Exiting." 1>&2
exit 1
}
if [ $(tput colors) ]; then # Checks if terminal supports colors
red="\e[31m"
green="\e[32m"
endcolor="\e[39m"
fi
distro=$(lsb_release -c | cut -f2)
targetDistro=luna
if [ "$distro" != "$targetDistro" ]; then
echo "Wrong Distribution!"
echo "You are using $distro, this script was made for $targetDistro."
echo "Please visit oduso.com"
exit 1
fi
echo --------------------------------------------------------------------------------
echo "We are not responsible for any damages that may possibly occur while using ODUSO"
echo --------------------------------------------------------------------------------
echo " "
#use sudo rights for the whole script
sudo -s <<ODUSO
clear
echo ------------------
echo "Welcome to ODUSO"
echo ------------------
echo " "
sleep 2
trap "rm -rf $tmp" EXIT # Delete tmp files on exit
# Add all the repositories
echo "Adding Repositories"
(
apt-add-repository ppa:videolan/stable-daily -y
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list
apt-add-repository ppa:moka/stable -y
apt-add-repository ppa:transmissionbt/ppa -y
apt-add-repository ppa:numix/ppa -y
apt-add-repository ppa:chromium-daily/stable -y
apt-add-repository ppa:versable/elementary-update -y
apt-add-repository ppa:webupd8team/sublime-text-3 -y
) &> /dev/null && echo -e "$green OK $endcolor" || echo -e "$red FAILED $endcolor"; # Hide all output
echo "Updating System"
(
apt-get update
) &> /dev/null && echo -e "$green OK $endcolor" || echo -e "$red FAILED $endcolor"; # Hide all output
echo "Installing VLC"
(
apt-get -y install vlc
) &> /dev/null && echo -e "$green OK $endcolor" || echo -e "$red FAILED $endcolor"; # Hide all output
echo "Installing Transmission"
(
apt-get -y install transmission
) &> /dev/null && echo -e "$green OK $endcolor" || echo -e "$red FAILED $endcolor"; # Hide all output
echo "Installing Gparted"
(
apt-get -y install gparted
) &> /dev/null && echo -e "$green OK $endcolor" || echo -e "$red FAILED $endcolor"; # Hide all output
echo "Installing Firefox"
(
apt-get -y install firefox
) &> /dev/null && echo -e "$green OK $endcolor" || echo -e "$red FAILED $endcolor"; # Hide all output
echo "Installing Chromium"
(
apt-get -y install chromium-browser
) &> /dev/null && echo -e "$green OK $endcolor" || echo -e "$red FAILED $endcolor"; # Hide all output
echo "Installing Tweaks"
(
apt-get -y install elementary-tweaks
) &> /dev/null && echo -e "$green OK $endcolor" || echo -e "$red FAILED $endcolor"; # Hide all output
echo "Installing Sublime 3"
(
apt-get -y install sublime-text-installer
) &> /dev/null && echo -e "$green OK $endcolor" || echo -e "$red FAILED $endcolor"; # Hide all output
echo "Installing Chrome"
(
apt-get install google-chrome-stable -y
) &> /dev/null && echo -e "$green OK $endcolor" || echo -e "$red FAILED $endcolor"; # Hide all output
echo "Installing Moka"
(
apt-get -y install faba-icon-theme moka-icon-theme faba-mono-icons
) &> /dev/null && echo -e "$green OK $endcolor" || echo -e "$red FAILED $endcolor"; # Hide all output
echo "Installing Pacifica"
(
wget http://fc00.deviantart.net/fs71/f/2013/305/9/6/pacifica_icons_by_bokehlicia-d6nn5lb.zip -O $tmp/pacifica.zip
unzip $tmp/pacifica.zip -d $tmp
mv $tmp/Pacifica /usr/share/icons/
mv $tmp/Pacifica-U /usr/share/icons/
) &> /dev/null && echo -e "$green OK $endcolor" || echo -e "$red FAILED $endcolor"; # Hide all output
echo "Installing Numix-uTouch"
(
apt-get install elementary-enumix-utouch-icons -y
) &> /dev/null && echo -e "$green OK $endcolor" || echo -e "$red FAILED $endcolor"; # Hide all output
echo "Installing Numix-Circle"
(
apt-get -y install numix-icon-theme-circle
) &> /dev/null && echo -e "$green OK $endcolor" || echo -e "$red FAILED $endcolor"; # Hide all output
echo "Installing Ubuntu Restricted Extra"
(
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections
apt-get install ttf-mscorefonts-installer -y
apt-get install ubuntu-restricted-addons -y
apt-get install gstreamer0.10-plugins-bad-multiverse -y
apt-get install libavcodec-extra-53 -y
apt-get install unrar -y
) &> /dev/null && echo -e "$green OK $endcolor" || echo -e "$red FAILED $endcolor"; # Hide all output
echo "Cleaning up"
(
apt-get -y autoremove
apt-get -y autoclean
apt-get -y clean
) &> /dev/null && echo -e "$green OK $endcolor" || echo -e "$red FAILED $endcolor"; # Hide all output
echo "Upgrading old packages"
(
apt-get -y upgrade
) &> /dev/null && echo -e "$green OK $endcolor" || echo -e "$red FAILED $endcolor"; # Hide all output
echo "Installing plastico"
(
apt-get install elementary-plastico-theme -y
) &> /dev/null && echo -e "$green OK $endcolor" || echo -e "$red FAILED $endcolor"; # Hide all output
echo "Installing Lion"
(
apt-get install elementary-lion-theme -y
) &> /dev/null && echo -e "$green OK $endcolor" || echo -e "$red FAILED $endcolor"; # Hide all output
echo "Installing Colors"
(
apt-get install elementary-colors-theme -y
) &> /dev/null && echo -e "$green OK $endcolor" || echo -e "$red FAILED $endcolor"; # Hide all output
echo "Installing elementary Dark"
(
apt-get install elementary-dark-theme -y
) &> /dev/null && echo -e "$green OK $endcolor" || echo -e "$red FAILED $endcolor"; # Hide all output
echo "Installing Milk"
(
apt-get install elementary-milk-theme -y
) &> /dev/null && echo -e "$green OK $endcolor" || echo -e "$red FAILED $endcolor"; # Hide all output
echo "Installing white-e"
(
apt-get install elementary-whit-e-theme -y
) &> /dev/null && echo -e "$green OK $endcolor" || echo -e "$red FAILED $endcolor"; # Hide all output
echo "Installing Numix"
(
apt-get install numix-gtk-theme -y
) &> /dev/null && echo -e "$green OK $endcolor" || echo -e "$red FAILED $endcolor"; # Hide all output
echo "Rebooting in 10 Seconds, CTRL + C to cancel!"
sleep 10
shutdown -r now
ODUSO
notify-send "Oduso" "Finished installing"
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment