Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # ,___
- # ¡ _` BlackBuntu's Theme
- # ª_/() noes1s
- # |\` `, http://pastebin.com/u/noes1s
- # _·' l CC BY-SA 3.0
- # Included: Icons, bashrc, wallpaper, mouse, gtk, metacity, fonts, terminal, gedit.
- ! ((UID)) && echo -e "\n\e[1;31m"' (!) '"Dont use 'sudo'\e[m\n" && exit 1
- clear
- echo -e "\n\e[1;32m BlackBuntu's Theme Setup\e[m"
- echo -e "\e[1;31m ________________________\e[m"
- echo -e "\n\e[33m Checking internet connection...\e[m"
- { ping -w1c1 8.8.8.8 || ping -w1c1 8.8.4.4 || ping -w1c1 4.2.2.1 ;} >/dev/null &&
- echo -e "\e[32m Connection available.\e[m" || {
- echo -e "\n\e[1;31m"' (!) '"Ping failed, connect to internet and try again.\e[m\n" && exit 1 ;}
- # ROOT PERMISSIONS REQUIRED HERE:
- #________________________________________________________
- echo -e "\n\e[33m Starting theme installation...\e[m"
- # Icons
- if [[ -e /usr/share/icons/Faenza ]]; then
- sleep 0.5 && echo -e "\e[32m Faenza Icons already installed.\e[m"
- else
- echo -e "\e[32m Downloading/Installing Faenza Icons...\e[m"
- sudo add-apt-repository ppa:tiheum/equinox
- sudo apt-get update
- sudo apt-get install -y faenza-icon-theme && sleep 0.5
- fi
- # Wallpaper
- if [[ -e /usr/share/backgrounds/blackbuntuwp.png ]]; then
- sleep 0.5 && echo -e "\e[32m Wallpaper already installed.\e[m"
- else
- echo -e "\e[33m Downloading/Installing Wallpaper...\e[m"
- sudo wget http://dl.dropbox.com/u/15352114/blackbuntuwp.png -P \
- /usr/share/backgrounds && sleep 0.5 || echo -e "\e[31m Download failed...\e[m"
- fi
- # Mouse cursor
- if [[ -e /usr/share/icons/BbCursor ]]; then
- sleep 0.5 && echo -e "\e[32m Mouse X11 theme already installed.\e[m"
- else
- echo -e "\e[33m Downloading/Installing Mouse X11 theme...\e[m"
- wget http://dl.dropbox.com/u/15352114/BbCursor.tar.gz -O- |\
- sudo tar xz -C /usr/share/icons && sleep 0.5 || echo -e "\e[31m Download failed...\e[m"
- fi
- # GTK+ and Metacity
- if [[ -e /usr/share/themes/BlackBuntu ]]; then
- sleep 0.5 && echo -e "\e[32m GTK+/Metacity theme already installed.\e[m"
- else
- echo -e "\e[33m Downloading GTK+/Metacity theme...\e[m"
- wget http://dl.dropbox.com/u/15352114/BlackBuntu.tar.gz -O- |\
- sudo tar xz -C /usr/share/themes && sleep 0.5 || echo -e "\e[31m Download failed...\e[m"
- fi
- # BASHRC
- echo -e "\e[33m Creating new bashrc...\e[m"
- mv ~/.bashrc ~/.bashrc.bak 2>/dev/null
- sudo mv /root/.bashrc /root/.bashrc.bak 2>/dev/null
- sleep 0.5 && echo -e "\e[32m Backup done.\e[m"
- echo '# ,___
- # ¡ _` BlackBuntu .bashrc
- # ª_/() noes1s
- # |\` `, http://pastebin.com/u/noes1s
- # _· l CC BY-SA 3.0
- ### Extract file, example. "ex package.tar.bz2"
- ex() {
- if [[ -f $1 ]]; then
- case $1 in
- *.tar.bz2) tar xjf $1 ;;
- *.tar.gz) tar xzf $1 ;;
- *.bz2) bunzip2 $1 ;;
- *.rar) rar x $1 ;;
- *.gz) gunzip $1 ;;
- *.tar) tar xf $1 ;;
- *.tbz2) tar xjf $1 ;;
- *.tgz) tar xzf $1 ;;
- *.zip) unzip $1 ;;
- *.Z) uncompress $1 ;;
- *.7z) 7z x $1 ;;
- *) echo $1 cannot be extracted ;;
- esac
- else
- echo $1 is not a valid file
- fi
- }
- ### Directory navigation aliases
- alias ..="cd .."
- alias ...="cd ../.."
- alias ....="cd ../../.."
- alias .....="cd ../../../.."
- ### Don not put duplicate lines in the history
- HISTCONTROL=ignoredups:ignorespace
- ### Resize terminal if necesary
- shopt -s checkwinsize
- ### Add more colors
- [[ -x /usr/bin/dircolors ]] && {
- test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
- alias ls="ls --color=auto"
- alias dir="dir --color=auto"
- alias vdir="vdir --color=auto"
- alias grep="grep --color=auto"
- alias fgrep="fgrep --color=auto"
- alias egrep="egrep --color=auto"
- }
- ### Add more aliases
- alias ll="ls -alF"
- alias la="ls -A"
- alias l="ls -CF"
- alias upd="sudo apt-get update"
- alias upg="sudo apt-get upgrade"
- alias ins="sudo apt-get install"
- alias rem="sudo apt-get purge"
- alias fix="sudo apt-get install -f"
- ### Prompt
- ((UID)) &&
- PS1="\[\e[1;32m\]\u\[\e[0;34m\]@\h\[\e[0;37m\]\w\[\e[1;32m\]\\$\[\e[m\] " ||
- PS1="\[\e[1;31m\]\u\[\e[0;34m\]@\h\[\e[0;37m\]\w\[\e[1;31m\]\\$\[\e[m\] "
- ### BlackBuntu Variables
- RUBYOPT="rubygems"
- GEM_HOME="/var/lib/gems/1.8/gems/"
- PATH="/var/lib/gems/1.8/bin:$PATH"
- RUBYLIB="$RUBYLIB:/pentest/re/metasm"
- [[ -s "/usr/local/rvm/scripts/rvm" ]]&& source "/usr/local/rvm/scripts/rvm"
- ' > ~/.bashrc
- sleep 0.5
- sudo cp ~/.bashrc /root/.bashrc
- echo -e "\e[32m New bashrc created.\e[m"
- # ROOT PERMISSIONS NOT ALLOWED FOR THE NEXT:
- # ____________________________________________________________
- echo -e "\n\e[33m Configuring Gnome...\e[m"
- gstring='gconftool-2 -t string -s'
- gbool='gconftool-2 -t bool -s'
- gint='gconftool-2 -t int -s'
- sleep 0.5 && echo -e "\e[32m Fonts.\e[m"
- $gstring /desktop/gnome/interface/font_name "Ubuntu 9"
- $gstring /desktop/gnome/interface/document_font_name "Sans 10"
- $gstring /desktop/gnome/interface/monospace_font_name "Monospace 9"
- $gstring /apps/metacity/general/titlebar_font "Ubuntu Bold 9"
- $gbool /apps/metacity/general/tittlebar_uses_system_font "false"
- sleep 0.5 && echo -e "\e[32m Style.\e[m"
- $gstring /desktop/gnome/background/picture_filename "/usr/share/backgrounds/blackbuntuwp.png"
- $gstring /desktop/gnome/background/picture_options "zoom"
- $gstring /desktop/gnome/interface/toolbar_style "both-horiz"
- $gstring /desktop/gnome/interface/toolbar_icons_size "large-toolbar"
- $gstring /desktop/gnome/peripherals/mouse/cursor_theme "BbCursor"
- sleep 0.5 && echo -e "\e[32m Icons.\e[m"
- $gstring /desktop/gnome/interface/icon_theme "Faenza-Darkest"
- $gbool /desktop/gnome/interface/menus_have_icons "true"
- $gbool /desktop/gnome/interface/buttons_have_icons "false"
- sleep 0.5 && echo -e "\e[32m Terminal.\e[m"
- # Terminal-General
- $gbool /apps/gnome-terminal/profiles/Default/use_system_font "true"
- $gbool /apps/gnome-terminal/profiles/Default/allow_bold "true"
- $gbool /apps/gnome-terminal/profiles/Default/default_show_menubar "false"
- $gbool /apps/gnome-terminal/profiles/Default/use_custom_default_size "true"
- $gint /apps/gnome-terminal/profiles/Default/default_size_columns "100"
- $gint /apps/gnome-terminal/profiles/Default/default_size_rows "20"
- $gbool /apps/gnome-terminal/profiles/Default/silent_bell "true"
- # Terminal-Title
- $gstring /apps/gnome-terminal/profiles/Default/title "ßlackßunłu"
- $gstring /apps/gnome-terminal/profiles/Default/title_mode "ignore"
- # Terminal-Colors
- $gbool /apps/gnome-terminal/profiles/Default/use_theme_colors "false"
- $gstring /apps/gnome-terminal/profiles/Default/foreground_color "#00008A51FFFF"
- $gstring /apps/gnome-terminal/profiles/Default/background_color "#000000000000"
- $gbool /apps/gnome-terminal/profiles/Default/bold_color_same_as_fg "true"
- # Terminal-Background
- $gbool /apps/gnome-terminal/profiles/Default/use_theme_background "false"
- $gstring /apps/gnome-terminal/profiles/Default/background_type "transparent"
- $gint /apps/gnome-terminal/profiles/Default/background_darkness "0.76165801286697388"
- # Terminal-Scrolling
- $gstring /apps/gnome-terminal/profiles/Default/scrollbar_position "right"
- $gbool /apps/gnome-terminal/profiles/Default/scrollback_unlimited "true"
- sleep 0.5 && echo -e "\e[32m Gedit.\e[m"
- $gbool /apps/gedit-2/preferences/editor/line_numbers/display_line_numbers "true"
- $gint /apps/gedit-2/preferences/editor/right_margin/right_margin_position "100"
- $gbool /apps/gedit-2/preferences/editor/right_margin/display_right_margin "true"
- $gbool /apps/gedit-2/preferences/editor/tabs/insert_spaces "true"
- $gint /apps/gedit-2/preferences/editor/tabs/tabs_size "4"
- $gstring /apps/gedit-2/preferences/editor/colors/scheme "oblivion"
- $gbool /apps/gedit-2/preferences/editor/auto_indent/auto_indent "true"
- $gbool /apps/gedit-2/preferences/editor/bracket_matching/bracket_matching "true"
- sleep 0.5 && echo -e "\e[32m GTK+.\e[m"
- $gstring /desktop/gnome/interface/gtk_theme "BlackBuntu"
- $gstring /desktop/gnome/interface/gtk_color_scheme "progress_color:#f2f2f2
- progress_text_color:#101010
- fg_color:#04045a5affff
- bg_color:#151515151515
- text_color:#04045a5affff
- base_color:#141414141414
- selected_fg_color:#0535ffff0000
- selected_bg_color:#35ad35ad35ad
- tooltip_fg_color:#0ea8ffff0000
- tooltip_bg_color:#000000000000"
- $gstring /desktop/gnome/interface/gtk-im-preedit-style "callback"
- $gbool /desktop/gnome/interface/hide_decorator_tooltip "true"
- sleep 0.5 && echo -e "\e[32m Metacity.\e[m"
- $gstring /apps/metacity/general/theme "BlackBuntu"
- $gstring /apps/metacity/general/button_layout "menu:minimize,maximize,close"
- sleep 0.5 && echo -e "\n\e[1;32m Enjoy BlackBuntu's Theme\e[m\n"
- bash
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement