Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.78 KB | None | 0 0
  1. #/bin/bash
  2.  
  3. #get sudo permissions for script run
  4. sudo -v
  5.  
  6. #update system
  7. sudo apt update
  8. sudo apt upgrade -y
  9. sudo apt dist-upgrade -y
  10. sudo apt autoremove -y
  11. sudo apt clean
  12.  
  13. #install i3 and other packages
  14. sudo apt install curl compton dunst feh i3 libjsoncpp1 libmpdclient2 lxappearance rofi git wget unzip -y
  15.  
  16. #install numix icons
  17. sudo apt-add-repository ppa:numix/ppa -y
  18. sudo apt update
  19. sudo apt-get install numix-folders numix-icon-theme numix-icon-theme-square -y
  20.  
  21. #backup .Xresources
  22. sudo cp ~/.Xresources ~/.Xresources.bak
  23.  
  24. #install polybar
  25. sudo apt install cmake cmake-data libcairo2-dev libxcb1-dev libxcb-ewmh-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-randr0-dev libxcb-util0-dev libxcb-xkb-dev pkg-config python-xcbgen xcb-proto i3-wm libasound2-dev libmpdclient-dev libiw-dev libcurl4-openssl-dev clang -y
  26. cd /tmp
  27. git clone --branch 3.0.5 --recursive https://github.com/jaagr/polybar
  28. mkdir polybar/build
  29. cd polybar/build
  30. cmake ..
  31. sudo make install
  32. cd ~
  33.  
  34. #install fonts for system
  35. mkdir ~/.fonts
  36. cd /tmp/
  37. wget https://github.com/chrissimpkins/Hack/releases/download/v2.020/Hack-v2_020-ttf.zip
  38. mkdir HackFont
  39. unzip Hack-v2_020-ttf.zip -d HackFont
  40. cd HackFont
  41. cp Hack-Regular.ttf ~/.fonts
  42.  
  43. cd /tmp/
  44. wget https://github.com/FortAwesome/Font-Awesome/archive/v4.7.0.tar.gz
  45. tar -xvzf v4.7.0.tar.gz
  46. cd 'Font-Awesome-4.7.0/fonts'
  47. cp fontawesome-webfont.ttf ~/.fonts
  48.  
  49. #reload font cache
  50. fc-cache -f -v
  51.  
  52. #download config files from GitHub
  53. cd ~
  54. git clone https://github.com/BurningSmile/dotfiles.git
  55.  
  56. #install configs
  57. cd ~/dotfiles/
  58. mkdir ~/.config/polybar/
  59. mv ./polybar/config ~/.config/polybar/
  60. mv ./polybar/launch.sh ~/.config/polybar/
  61. mv ./polybar/redshift.sh ~/.config/polybar/
  62. mv ./polybar/tempcores.sh ~/.config/polybar
  63. mkdir ~/.config/i3
  64. mv ./i3/config ~/.config/i3/
  65. mv .Xresources ~
  66. mv ./zsh/.zshrc ~/.zshrc.bak
  67. mkdir ~/.config/dunst
  68. mv ./dunst/dunstrc ~/dunstrc
  69.  
  70. #copy background image
  71. mv ~/dotfiles/i3/Background/Mountins-Wallpaper.jpg ~/Pictures
  72.  
  73. #install powerline
  74. sudo apt install python-pip powerline fonts-powerline -y
  75.  
  76. #install tmux [If using 16.04 or newer you will need to adjust the vim copy section to use the older version of the key binds before version 2.4 Change log here: https://github.com/tmux/tmux/blob/master/CHANGES]
  77. sudo apt install tmux xsel -y # xsel is for x copy support
  78. cd ~/dotfiles/tmux
  79. mv ~/.tmux.conf ~/.tmux.conf.bak # Backup Tmux.conf if present.
  80. mv .tmux.conf ~
  81. mv ~/dotfiles/tmux/.tmux ~
  82. git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
  83. cd ~
  84.  
  85. #install htop
  86. sudo apt install htop -y
  87. mv ~/.config/htop/htoprc ~/.config/htop/htoprc.bak # Backup htoprc if present
  88. cd ~/dotfiles/htop
  89. mkdir ~/.config/htop
  90. mv htoprc ~/.config/htop/
  91. cd ~
  92.  
  93. #setup mpd and mpc
  94. sudo apt install mpd mpc -y
  95. mkdir -p ~/.config/mpd/
  96. mkdir -p ~/.mpd/playlists
  97. cd ~/.mpd/
  98. touch database log pid state sticker.sql
  99. mv ~/.config/mpd/mpd.conf ~/.config/mpd/mpd.conf.bak #Backup config if present
  100. mv ~/dotfiles/mpd/mpd.conf ~/.config/mpd/
  101.  
  102. #setup ncmpcpp
  103. sudo apt install ncmpcpp -y
  104. mkdir ~/.ncmpcpp/
  105. mv ~/.ncmpcpp/config ~/.ncmpcpp/config.bak #Backup config if present
  106. mv ~/dotfiles/ncmpcpp/config ~/.ncmpcpp/
  107. cd ~
  108.  
  109. #setup Cava
  110. sudo apt install libfftw3-dev libasound2-dev libncursesw5-dev libpulse-dev libtool automake -y
  111. cd /tmp
  112. git clone https://github.com/karlstav/cava.git
  113. cd cava
  114. ./autogen.sh
  115. ./configure
  116. make install
  117. mkdir ~/.config/cava
  118. mv ~/.config/cava/config ~/.config/cava/config.bak #Backup config if present
  119. mv ~/dotfiles/cava/config ~/.config/cava
  120.  
  121. #setup urxvt
  122. sudo apt install rxvt-unicode-256color -y
  123.  
  124. #install vim
  125. sudo apt install vim -y
  126. curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
  127. https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  128. cd ~/dotfiles/vim
  129. mkdir ~/.vim/
  130. cp -r .vim/. ~/.vim/
  131. mv ~/vimrc ~/vimrc.bak # Backup vimrc if present
  132. mv .vimrc ~
  133. cd ~
  134.  
  135. #install vim plugins
  136. vim +PlugClean +PlugInstall +PlugUpdate +q! +q!
  137.  
  138. #install you-complete-me for vim auto completion.
  139. sudo apt install cmake clang python python3 -y
  140. mkdir /tmp/ycm_build
  141. cd /tmp/ycm_build
  142. cmake -G "Unix Makefiles" . ~/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp
  143. cmake -G "Unix Makefiles" -DUSE_SYSTEM_LIBCLANG=ON . ~/.vim/plugged/YouCompleteMe/third_party/ycmd/cpp
  144. cmake --build . --target ycm_core --config Release
  145. cd ~
  146.  
  147. #install theme [This works for 16.10 and debian 9 and newer. For older versions refer to the arc theme documentation.]
  148. sudo apt install arc-theme -y
  149.  
  150. #install the fuck for fixing yoru last command if you typed it wrong
  151. sudo apt install thefuck -y
  152.  
  153. #install zshell
  154. sudo apt install zsh -y
  155.  
  156. #Cleanup
  157. cd ~
  158. rm -rf dotfiles/
  159. sudo apt autoremove -y
  160.  
  161. #install ohmyzsh
  162. sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement