Last active
May 30, 2021 17:24
-
-
Save rougeth/8108714 to your computer and use it in GitHub Desktop.
A post-installation bash script for Ubuntu (13.10)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Ubuntu post-install script | |
# | |
# Author: | |
# Marco Rougeth <[email protected]> | |
# | |
# Description: | |
# A post-installation bash script for Ubuntu (13.10) | |
# | |
# Based on snwh[0] and ravishi[1] scripts. | |
# | |
# [0] - https://github.com/snwh/ubuntu-post-install/ | |
# [1] - https://gist.github.com/ravishi/3706813s | |
# | |
# Usage: | |
# $ cd /tmp | |
# $ wget http://gist.github.com/raw/8108714/ubuntu-post-install.sh | |
# $ chmod +x ubuntu-post-install.sh | |
# $ ./ubuntu-post-install.sh | |
# | |
echo '------------------------------------------------------------------------' | |
echo '=> Ubuntu 13.10 post-install script' | |
echo '------------------------------------------------------------------------' | |
# ----------------------------------------------------------------------------- | |
# => Add PPAs (Personal Package Archives) | |
# ----------------------------------------------------------------------------- | |
echo '=> Add PPAs' | |
sudo add-apt-repository -y ppa:webupd8team/sublime-text-3 # Sublime Text 3 | |
sudo add-apt-repository -y ppa:ehoover/compholio # Netflix | |
echo 'Done.' | |
# ----------------------------------------------------------------------------- | |
# => System update/upgrade | |
# ----------------------------------------------------------------------------- | |
echo '=> Update repository information' | |
sudo apt-get update -qq | |
echo '=> Performe system upgrade' | |
sudo apt-get dist-upgrade -y | |
echo 'Done.' | |
# ----------------------------------------------------------------------------- | |
# => Install system utilities | |
# ----------------------------------------------------------------------------- | |
echo '=> Install system utilities' | |
sudo apt-get install -y --no-install-recommends build-essential aptitude ssh \ | |
samba unity-tweak-tool icedtea-7-plugin openjdk-7-jre \ | |
ubuntu-restricted-extras | |
echo 'Done.' | |
# ----------------------------------------------------------------------------- | |
# => Install developer packages | |
# ----------------------------------------------------------------------------- | |
echo '=> Install developer packages' | |
sudo apt-get install -y --no-install-recommends git subversion vim-gnome \ | |
sublime-text-installer fonts-inconsolata ruby ruby-dev npm \ | |
python-pip virtualenvwrapper | |
sudo gem install gist | |
echo 'Done.' | |
# ----------------------------------------------------------------------------- | |
# => Install favorite applications | |
# ----------------------------------------------------------------------------- | |
echo '=> Install favorite applications' | |
echo '=> nautilus-dropbox chromium-browser vlc netflix-desktop steam latex' | |
echo '=> abntex2' | |
echo -e '=> Are you sure? [Y/n] ' | |
read confirmation | |
confirmation=$(echo $confirmation | tr '[:lower:]' '[:upper:]') | |
if [[ $confirmation == 'YES' || $confirmation == 'Y' ]]; then | |
sudo apt-get install -y --no-install-recommends nautilus-dropbox steam \ | |
chromium-browser vlc netflix-desktop texlive texlive-publishers \ | |
texlive-lang-portuguese texlive-latex-extra texlive-fonts-recommended | |
echo 'Done.' | |
fi | |
# ----------------------------------------------------------------------------- | |
# => Get dotfiles | |
# ----------------------------------------------------------------------------- | |
echo '=> Get dotfiles (http://github.com/rougeth/dotfiles)' | |
# Create a tmp folder with random name | |
dotfiles_path="`(mktemp -d)`" | |
# Clone the repository recursively | |
git clone --recursive https://github.com/rougeth/dotfiles.git "$dotfiles_path" | |
cd "$dotfiles_path" | |
# Copy all dotfiles except .git/ and .gitmodules | |
cp -r `ls -d .??* | egrep -v '(.git$|.gitmodules)'` $HOME | |
echo 'Done.' | |
# ----------------------------------------------------------------------------- | |
# => Configuring Gnome-terminal | |
# ----------------------------------------------------------------------------- | |
profile_path="/apps/gnome-terminal/profiles/Default" | |
gconftool-2 -s -t string $profile_path/palette \ | |
"##28282A2A2E2E:#BFBF40404040:#8C8B94944040:#DEDE93935F5E:#5F5F81809D9D:#858567668F8F:#5E5E8D8D8787:#707078788080:#37373B3B4141:#CCCC66666666:#B5B5BDBD6868:#F0F0C6C57473:#8181A2A2BEBE:#B2B29494BBBB:#8A8ABEBEB7B7:#FFFFFFFFFFFF" | |
gconftool-2 -s -t bool $profile_path/bold_color_same_as_fg false | |
gconftool-2 -s -t string $profile_path/background_type "solid" | |
gconftool-2 -s -t string $profile_path/background_color "#000000000000" | |
gconftool-2 -s -t string $profile_path/foreground_color "#FFFFFFFFFFFF" | |
gconftool-2 -s -t string $profile_path/bold_color "#000000000000" | |
gconftool-2 -s -t bool $profile_path/use_theme_colors false | |
gconftool-2 -s -t string $profile_path/font "Ubuntu Mono 12" | |
gconftool-2 -s -t bool $profile_path/use_system_font false | |
gconftool-2 -s -t int $profile_path/default_size_columns 84 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment