Last active
June 8, 2016 12:33
-
-
Save mindw/372752145df6f8949f7f to your computer and use it in GitHub Desktop.
Ubuntu tweaks
This file contains hidden or 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
| #export GIT_PS1_SHOWDIRTYSTATE=true | |
| #export GIT_PS1_SHOWUNTRACKEDFILES=true | |
| unset GIT_PS1_SHOWDIRTYSTATE | |
| unset GIT_PS1_SHOWUNTRACKEDFILES | |
| # non-printable characters must be enclosed inside \[ and \] | |
| PS1='\[\033[0m\]' # VT100 compat: reset all colors | |
| PS1="$PS1"'\[\033[32m\]' # change color | |
| PS1="$PS1"'\u@\h ' # user@host<space> | |
| PS1="$PS1"'\[\033[33m\]' # change color | |
| PS1="$PS1"'\w' # current working directory | |
| PS1="$PS1"'$(__git_ps1)' # bash function | |
| PS1="$PS1"'\[\033[0m\]' # change color | |
| PS1="$PS1"'\n' # new line | |
| PS1="$PS1"'$ ' # prompt: always $ |
This file contains hidden or 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
| # sudo curl -sSL https://gist.github.com/mindw/372752145df6f8949f7f/raw/a8626826fa268a130cced343f9c46f04b36fe0d5/conf.sh | sh | |
| set -e | |
| # set mirror to il, default fails randomly inside Vagrant | |
| sudo sed -i "s/http:\/\/archive/http:\/\/il.archive/g" /etc/apt/sources.list | |
| sudo apt-get update | |
| # gedit plugins - open gedit and configure plugins! | |
| sudo apt-get install -y gedit-plugins gedit-developer-plugins gedit-source-code-browser-plugin | |
| # KDE variants of Konsole/Kate | |
| sudo apt-get install -y konsole kate | |
| # GUI and advanced package management | |
| sudo apt-get install -y synaptic aptitude | |
| # install git | |
| sudo add-apt-repository -y -s ppa:git-core/ppa | |
| sudo apt-get update | |
| sudo apt-get install -y git-gui git-doc gitg kdiff3 | |
| # Install additional tweak and control apps | |
| sudo apt-get install -y compizconfig-settings-manager compiz-plugins-extra | |
| sudo apt-get install -y unity-tweak-tool gnome-tweak-tool dconf-editor | |
| git config --global core.autocrlf false | |
| git config --global rebase.autoSquash true | |
| read -p "GIT - Enter your full name: " GIT_NAME | |
| git config --global user.name "$GIT_NAME" | |
| read -p "GIT - Enter your email: " GIT_EMAIL | |
| git config --global user.email "$GIT_EMAIL" | |
| # Change Scroll Overlays to Scrollbars | |
| gsettings set com.canonical.desktop.interface scrollbar-mode normal | |
| # Display Name In Top-Right Corner | |
| gsettings set com.canonical.indicator.session show-real-name-on-panel true | |
| # disable online search | |
| gsettings set com.canonical.Unity.Lenses disabled-scopes "['more_suggestions-amazon.scope', 'more_suggestions-u1ms.scope', 'more_suggestions-populartracks.scope', 'music-musicstore.scope', 'more_suggestions-ebay.scope', 'more_suggestions-ubuntushop.scope', 'more_suggestions-skimlinks.scope']" | |
| gsettings set com.canonical.Unity.Lenses remote-content-search 'none' | |
| # make the menu always visible | |
| gsettings set com.canonical.Unity always-show-menus true | |
| # disable integrated menus | |
| gsettings set com.canonical.Unity integrated-menus true | |
| # replace file manager with somethin more advanced | |
| sudo add-apt-repository -y ppa:webupd8team/nemo | |
| sudo apt-get update | |
| sudo apt-get install -y nemo nemo-fileroller | |
| # remove ubuntu pip - it's broken | |
| sudo apt-get purge -y python-pip | |
| # install python 3.4 | |
| sudo apt-get install -y python3.4-dev python3.4-doc python3.4-examples | |
| # install the most up to date pip/setuptools python package management tools for python 3.4 | |
| sudo -H python3 -c "exec('try: from urllib2 import urlopen \nexcept: from urllib.request import urlopen');f=urlopen('https://bootstrap.pypa.io/get-pip.py').read();exec(f)" | |
| sudo -H pip3 install -U virtualenv setuptools wheel | |
| # install most up to date python 2.7 | |
| sudo add-apt-repository -y ppa:fkrull/deadsnakes-python2.7 | |
| sudo apt-get update | |
| sudo apt-get install -y python2.7-dev python2.7-doc python2.7-examples | |
| # install the most up to date pip/setuptools python package management tools for python 2.7 | |
| sudo -H python -c "exec('try: from urllib2 import urlopen \nexcept: from urllib.request import urlopen');f=urlopen('https://bootstrap.pypa.io/get-pip.py').read();exec(f)" | |
| sudo -H pip2 install -U virtualenv | |
| # Add $HOME/.local/bin to path | |
| cat << EOT >> .profile | |
| # set PATH so it includes user's private LSB bin if it exists | |
| if [ -d "\$HOME/.local/bin" ] ; then | |
| PATH="\$HOME/.local/bin:\$PATH" | |
| fi | |
| EOT | |
| # install additional virtualenv tools | |
| sudo -H pip install -U virtualenvwrapper | |
| cat << EOT >> .bashrc | |
| export WORKON_HOME=\$HOME/.virtualenvs | |
| # export PROJECT_HOME=\$HOME/Devel | |
| export VIRTUALENVWRAPPER_SCRIPT=/usr/local/bin/virtualenvwrapper.sh | |
| source /usr/local/bin/virtualenvwrapper_lazy.sh | |
| EOT | |
| # install latest oracle java | |
| # auto accept license | |
| echo debconf shared/accepted-oracle-license-v1-1 select true | \ | |
| sudo debconf-set-selections | |
| echo debconf shared/accepted-oracle-license-v1-1 seen true | \ | |
| sudo debconf-set-selections | |
| sudo add-apt-repository -y ppa:webupd8team/java | |
| sudo apt-get update | |
| sudo apt-get install -y oracle-java8-installer | |
| sudo apt-get install -y oracle-java8-set-default | |
| # install y-ppa | |
| sudo add-apt-repository -y ppa:webupd8team/y-ppa-manager | |
| sudo apt-get update | |
| sudo apt-get install -y y-ppa-manager | |
| # install latest pycharm (pycharm-community) | |
| sudo add-apt-repository -y ppa:mystic-mirage/pycharm | |
| sudo apt-get update | |
| sudo apt-get install -y pycharm | |
| # install latest eclipse - requires installing the CDT manually, requires Java8 | |
| sudo add-apt-repository -y ppa:mmk2410/eclipse-ide-java | |
| sudo apt-get update | |
| sudo apt-get install -y eclipse-ide-java | |
| # install Google Chrome | |
| wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
| sudo sh -c 'echo "deb [arch=amd64] https://dl-ssl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' | |
| sudo apt-get update | |
| sudo apt-get install -y google-chrome-stable |
This file contains hidden or 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
| sudo add-apt-repository -y ppa:numix/ppa | |
| sudo add-apt-repository -y ppa:noobslab/icons | |
| sudo add-apt-repository -y ppa:noobslab/themes | |
| sudo apt-get update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment