Skip to content

Instantly share code, notes, and snippets.

@egel
Last active August 30, 2015 11:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save egel/c16ccce276ae62d9a5f2 to your computer and use it in GitHub Desktop.
Save egel/c16ccce276ae62d9a5f2 to your computer and use it in GitHub Desktop.
Installing most useful software for Linux Mint 17.2
#!/bin/bash
# General colors
black='\x1B[0;30m'
red='\x1B[0;31m'
green='\x1B[0;32m' # '\x1B[1;32m' is too bright for white bg.
blue='\x1B[1;34m'
yellow='\x1B[0;33m'
purple='\x1B[1;35m'
cyan='\x1B[0;36m'
endColor='\x1B[0m'
# Messages
__info__="${blue}\xe2\x84\xb9 Info${endColor}"
__warning__="${yellow}\xe2\x9d\x97 Warning${endColor}"
__error__="${red}\xe2\x9c\x98 Error${endColor}"
__done__="${green}\xe2\x9c\x94 Done${endColor}"
print_section() {
_text=$1
echo -e "\n${purple}====== ${_text} ======${endColor}"
}
print_subsection() {
_text=$1
echo -e "\n${cyan}====== ${_text} ======${endColor}"
}
print_section "Fix dpkg"
sudo dpkg --configure -a
print_section "Install obligatory software"
sudo apt-get install -y vim python-pip python-dev python-setuptools python-software-properties curl gcc g++ tree links htop enca ubuntu-restricted-extras build-essential unace unrar unzip p7zip-full p7zip-rar sharutils rar uudeview mpack arj cabextract file-roller
echo -e "${__done__}"
print_section "Install additional softwate"
sudo apt-get install -y lm-sensors vlc k3b gimp gimp-plugin-registry gcolor2 meld shutter gparted unetbootin filezilla parcellite guake texlive-full biber conky conky-all curl hddtemp mpd mpc hal-info vnstat lua5.2 # viewnior
echo -e "${__done__}"
print_section "Adding repositories"
sudo add-apt-repository -y ppa:linrunner/tlp # TLP Battery guardian
sudo add-apt-repository -y ppa:atareao/atareao # Touchpad indicator
sudo add-apt-repository -y ppa:banshee-team/ppa # Banshee
sudo add-apt-repository -y ppa:pidgin-developers/ppa # Pidgin
sudo add-apt-repository -y ppa:webupd8team/java # Java Development Kit 7
sudo add-apt-repository -y ppa:git-core/ppa # Git
sudo apt-add-repository -y ppa:chris-lea/node.js # NodeJS
sudo add-apt-repository -y ppa:pi-rho/dev # Tmux
#sudo add-apt-repository -y ppa:gun101/ppa # guake-indicator
sudo add-apt-repository -y ppa:docky-core/stable # docky bar
echo -e "${__done__}"
print_section "Przywrócenie przywatności"
wget -q -O - https://fixubuntu.com/fixubuntu.sh | bash
echo -e "${__done__}"
sudo apt-get update
print_section "Install programs from added repositories"
sudo apt-get install -y touchpad-indicator tlp tlp-rdw banshee pidgin oracle-java8-installer git gitg nodejs tmux xclip #guake-indicator
echo -e "${__done__}"
sudo apt-get upgrade
# print_subsection "Install VirtualBox"
# # more on https://www.virtualbox.org/wiki/Linux_Downloads
# sudo apt-get install -y dkms \
# &&
# echo -e "${__done__}"
print_subsection "Active tlp"
sudo tlp bat
echo -e "${__done__}"
# echo -e "${purple}====== Nvidia ======${endColor}"
# sudo apt-get install -y nvidia-cuda-toolkit ocl-icd-opencl libcuda1-331 nvidia-libopencl1-331 nvidia-opencl-icd-331
# sudo apt-get install nvidia-prime nvidia-331 nvidia-331-updates
# echo -e "${__done__}"
print_subsection "Pip"
sudo pip install --upgrade pip
echo -e "${__done__}"
print_subsection "Pip - Virtualenvwrapper"
sudo pip install virtualenvwrapper
echo -e "${__done__}"
print_subsection "Update npm"
sudo npm update -g npm
sudo chown -R `whoami` ~/.npm
echo -e "${__done__}"
print_subsection "Install ruby + rubygems"
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
\curl -sSL https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
rvm requirements
rvm install ruby
rvm use ruby --default
rvm rubygems current
gem update
echo -e "${__done__}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment