Guest User

All_N_1_script.sh

a guest
Jun 7th, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.00 KB | None | 0 0
  1.  
  2. #!/bin/bash
  3. ############################################################################
  4. # Written to be used on 64 bits computers
  5. # Author : Erik Dubois
  6. # Website : http://www.erikdubois.be
  7. ############################################################################
  8. # More from Erik Dubois
  9. # conky and all its components are installed via an other script
  10. # at http://sourceforge.net/projects/auroraconkytheme/
  11. # Explanation on the use of this theme can be found at
  12. # http://erikdubois.be/category/linux/aurora-conky/
  13. ############################################################################
  14. # the option -y has been added. It will autoinstall all. Omit if you do not want that.
  15. ############################################################################
  16. #
  17. #
  18. # MMMMMMMMMMMMMMMMMMMMMMMMMmds+.
  19. # MMm----::-://////////////oymNMd+`
  20. # MMd /++ -sNMd:
  21. # MMNso/` dMM `.::-. .-::.` .hMN:
  22. # ddddMMh dMM :hNMNMNhNMNMNh: `NMm
  23. # NMm dMM .NMN/-+MMM+-/NMN` dMM
  24. # NMm dMM -MMm `MMM dMM. dMM
  25. # NMm dMM -MMm `MMM dMM. dMM
  26. # NMm dMM .mmd `mmm yMM. dMM
  27. # NMm dMM` ..` ... ydm. dMM
  28. # hMM- +MMd/-------...-:sdds dMM
  29. # -NMm- :hNMNNNmdddddddddy/` dMM
  30. # -dMNs-``-::::-------.`` dMM
  31. # `/dMNmy+/:-------------:/yMMM
  32. # ./ydNMMMMMMMMMMMMMMMMMMMMM
  33. # \.MMMMMMMMMMMMMMMMMMM
  34. #
  35. #
  36. #
  37. ############################################################################
  38.  
  39.  
  40.  
  41. ############################################################################
  42. #
  43. # DO NOT JUST RUN THIS. EXAMINE AND JUDGE. AT YOUR OWN RISK.
  44. #
  45. ############################################################################
  46.  
  47. echo Let us check if your computer is up-to-date
  48. echo
  49. echo
  50. sudo apt-get update -y
  51. sudo apt-get upgrade -y
  52. sudo apt-get autoclean -y
  53. sudo apt-get autoremove -y
  54.  
  55.  
  56. ############################################################################
  57.  
  58. # repo for grub-customizer
  59. #sudo add-apt-repository ppa:danielrichter2007/grub-customizer -y
  60. # repo for spotify -- REMOVED BY CRAZYODAZ #
  61. #sudo add-apt-repository "deb http://repository.spotify.com stable non-free" -y
  62. #sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D2C19886
  63. # repo for variety wallpaper
  64. # sudo add-apt-repository ppa:peterlevi/ppa -y #REMOVED ALMOST MALWARE TELEMETRY TYPE APP
  65. # repo for latest sublime-text removed -- sucks
  66. #sudo add-apt-repository ppa:webupd8team/sublime-text-3 -y
  67. # repo for latest vlc
  68. #sudo add-apt-repository ppa:videolan/stable-daily -y
  69. # repo for skype
  70. # sudo add-apt-repository "deb http://archive.canonical.com/ubuntu utopic partner"
  71. # repo for copy.com
  72. #sudo add-apt-repository ppa:paolorotolo/copy -y
  73. # repo for java
  74. # sudo add-apt-repository ppa:webupd8team/java -y
  75. # repo for grub-customizer
  76. sudo add-apt-repository ppa:danielrichter2007/grub-customizer -y
  77. # repo for plank --- REMOVED BY CRAZYODAZ -- NO REAL NEED
  78. ### sudo add-apt-repository ppa:ricotz/docky -y
  79. # open as administrator
  80. sudo add-apt-repository ppa:noobslab/apps -y
  81. # repo for numix themes
  82. sudo add-apt-repository ppa:numix/ppa -y
  83. # repo for screenfetch
  84. sudo add-apt-repository ppa:djcj/screenfetch -y
  85. # repo for geary
  86. ### sudo add-apt-repository ppa:yorba/ppa -y #REMOVED - USE THUNDERBIRD
  87. # added by CrAzYodaz -- SpaceFM File Manager and Dependencies
  88. ### sudo add-apt-repository ppa:mati75/spacefm -y #REMOVED NOT CORRECT SORTING OF FOLDERS
  89. # added by CrAzYodaz -- Vertex Dark Theme Stuff
  90. sudo add-apt-repository ppa:noobslab/themes -y
  91. # added by CrAzYodaz - I-nex repository / CPU-z type for Linux
  92. #sudo add-apt-repository ppa:i-nex-development-team/stable -y
  93. sudo add-apt-repository ppa:i-nex-development-team/daily -y
  94. sudo add-apt-repository ppa:gambas-team/gambas3 -y
  95. # added by CrAzYodaz - Ubunto Tweak Program
  96. sudo add-apt-repository ppa:tualatrix/ppa -y
  97.  
  98. # added by CrAzYodaz - Wine Windows4Linux development builds -- disable if ya dont want it !!!!!!!!
  99. sudo add-apt-repository ppa:wine/wine-builds -y
  100.  
  101.  
  102. ############################################################################
  103.  
  104.  
  105. # after all these new repo's - getting new info
  106. sudo apt-get -y update
  107.  
  108.  
  109. ############################################################################
  110.  
  111.  
  112. #Linux Mint 17.3 Specific
  113. #sudo apt-get install -y libnss-myhostname nemo-dropbox
  114.  
  115.  
  116. ############################################################################
  117.  
  118. # donwloading and installing google chrome for netflix e.g.
  119. # echo downloading google chrome latest stable edition
  120. # echo "downloading google chrome latest stable edition"
  121. # wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
  122. # sudo apt-get install -y libcurl3
  123. # sudo dpkg -i google-chrome-stable_current_amd64.deb
  124. # rm google-chrome-stable_current_amd64.deb
  125.  
  126. ############################################################################
  127.  
  128. #software from 'normal' repositories
  129. sudo apt-get install -y clementine curl frei0r-plugins gimp git gpick glances gparted
  130. sudo apt-get install -y hardinfo inxi openshot p7zip-full ppa-purge scrot shutter slurm
  131. sudo apt-get install -y terminator vnstat winbind
  132.  
  133. #agave #skype removed by previous modder
  134. #focuswriter #thunar #inkscape #variety #sublime-text #catfish REMOVED BY CRAZYODAZ ABOVE
  135.  
  136. # EXTRA LINES ADDED BY CRAZYODAZ FOR WINE AND WINETRICKS
  137. sudo apt-get install -y cabextract unzip zenity
  138. #software out of selection
  139.  
  140. ############################################################################
  141.  
  142. #software from extra repositories
  143. sudo apt-get install -y browser-plugin-vlc grub-customizer screenfetch vlc ttf-mscorefonts-installer
  144. #sudo apt-get install -y spotify-client
  145. #sudo apt-get install oracle-java8-installer -y
  146. #sudo apt-get install oracle-java7-installer
  147. #sudo apt-get install oracle-java6-installer
  148. #software out of selection
  149. #adobe-flashplugin
  150. ############################################################################
  151. ############################################################################
  152. # ADDED BY CRAZYODAZ -- Let's not forget to give GIT above some ADMIN RIGHTS
  153. #
  154. #
  155. git init
  156. git config --global user.name x
  157. git config --global user.email x
  158. sudo git config --system core.editor nano
  159. git config --global credential.helper cache
  160. git config --global credential.helper 'cache --timeout=3600'
  161.  
  162. ############################################################################
  163. # ADDED BY CRAZYODAZ --
  164. ############################################################################
  165. ################### THE CRAZYODAZ EDITED SECTION #########################
  166.  
  167. # edit note by CrAzYodaz - removed chrome download above and added ubuntu codecs
  168. # and other tweaks and programs below -- PPA's added above already
  169.  
  170. sudo apt-get install -y ubuntu-restricted-extras libsox-fmt-all faac flac paman grub-customizer
  171.  
  172. # now lets add 32bit support for x64 systems
  173. sudo apt-get install -y ia32-libs-multiarch:i386
  174.  
  175. # now I-nex - CPU-z type program for Linux
  176. sudo apt-get install -y i-nex
  177. # now Ubuntu Tweak Tool
  178. sudo apt-get install -y ubuntu-tweak
  179.  
  180. # Vertex Dark Theme
  181. sudo apt-get install -y vertex-theme
  182.  
  183. # now Wine v1.9x + Development builds --- disable if ya dont want it
  184. sudo apt-get install --install-recommends -y winehq-devel
  185.  
  186. ############################################################################
  187.  
  188. # installation of zippers and unzippers
  189. sudo apt-get install -y p7zip-rar p7zip-full unace unrar zip unzip sharutils rar uudeview mpack arj cabextract file-roller
  190. ############################################################################
  191. ############################################################################
  192. # ADDED BY CRAZYODAZ -- INSTALL PCMANfm -- to Replace Nataulis and Nemo
  193. #
  194. # PLEASE DISABLE THIS IF YOU DON'T WANT TO DISABLE NEMO !!!!
  195. #
  196. # TIME TO DOWNLOAD SOME FILES
  197. # EDIT USE THIS ONE LATER --- http://ftp.br.debian.org/debian/pool/main/p/pcmanfm/pcmanfm_1.2.3-1~bpo70+1_amd64.deb
  198. wget http://downloads.sourceforge.net/project/pcmanfm/PCManFM%20%2B%20Libfm%20%28tarball%20release%29/LibFM/libfm-1.2.3.tar.xz?r=http%3A%2F%2Fblog.lxde.org%2F%3Fcat%3D28%2F&ts=1456713087&use_mirror=iweb
  199. wget https://sourceforge.net/projects/pcmanfm/files/PCManFM%20%2B%20Libfm%20%28tarball%20release%29/PCManFM/pcmanfm-1.2.4.tar.xz/download
  200. #
  201. # NOW LETS EXTRACT THEM
  202. tar -xjvf libfm-1.2.3.tar.xz -C /temp
  203. tar -xjvf pcmanfm-1.2.4.tar.xz -C /temp
  204. # NOW LETS MAKE THE ACTUAL PROGRAM DESIGNED FOR YOUR SYSTEM
  205.  
  206. ./configure
  207. make
  208. sudo make install
  209.  
  210.  
  211. # First we need to backup some files -- YES -- BACK CRAP UP 1ST!!
  212. #
  213.  
  214. sudo cp /usr/share/applications/nautilus.desktop /usr/share/applications/nautilus.desktop.backup
  215. sudo cp /usr/share/applications/nautilus-folder-handler.desktop /usr/share/applications/nautilus-folder-handler.desktop.backup
  216. #Then open these files
  217. sudo gedit /usr/share/applications/nautilus-folder-handler.desktop
  218. sudo gedit /usr/share/applications/nautilus.desktop
  219.  
  220. # NOW THE FUN BEGINS -- WE GOT TO replace every nautilus word with pcmanfm (delete the arguments after the word pcmanfm since some are not supported)
  221. #
  222. #
  223. # And these changes are for gnome session manager(so ubuntu stops trying to load nautilus) Backup this file
  224. sudo cp /usr/share/gnome/default.session /usr/share/gnome/default.session.backup
  225.  
  226. #Then we need to delete a few lines an change some numbers
  227.  
  228. sudo gedit /usr/share/gnome/default.session
  229. # Then open it and delete the lines that have at the beggining the same number as the nautilus line something like this:
  230. # 2,id=default2 #### 2,Priority=402,RestartCommand=nautilus --no-default-window --sm-client-id default2 Then rename the other lines so the numbers dont jump from 1 to 3.
  231. # And from the line
  232. # num_clients=X
  233. # Change the number to the new number of process you just changed And save
  234.  
  235. #If you don't understand i added my file to this post as an attachment so you can compare.
  236.  
  237. ############ And the most important step to kill nautilis you need to do this :
  238.  
  239. sudo cp /usr/bin/nautilus /usr/bin/nautilus.backup
  240. sudo rm /usr/bin/nautilus
  241. sudo ln -s /usr/bin/pcmanfm /usr/bin/nautilus
  242.  
  243. ###### Finally, you need to open a PCMan window and go to edit, preferences, desktop, to configure the desktop.
  244. #### And dont forget to restart the session doing ctrl+alt+backspace
  245.  
  246. #### Doing this ubuntu wont ever load nautilus, saving the precious ram and reducing boot time.
  247.  
  248.  
  249. ############################################################################
  250. # ADDED BY CRAZYODAZ -- PaleMoon - Firefox Modified Browser for Linux
  251. wget http://linux.palemoon.org/files/26.1.1/palemoon-26.1.1.en-US.linux-x86_64.tar.bz2
  252. tar -xjvf palemoon-26.1.1.en-US.linux-x86_64.tar.bz2 -C /opt
  253. #sudo rm -rf /opt/palemoon
  254. #sudo mv palemoon /opt/palemoon26.1.1
  255. # -- hopefully fixxed -- still not sure about this one
  256. sudo ln -s /opt/palemoon/palemoon /usr/bin/palemoon
  257. sudo ln -s /opt/palemoon/browser/chrome/icons/default/default16.png /usr/share/icons/hicolor/16x16/apps/palemoon.png
  258. sudo ln -s /opt/palemoon/browser/chrome/icons/default/default32.png /usr/share/icons/hicolor/32x32/apps/palemoon.png
  259. sudo ln -s /opt/palemoon/browser/chrome/icons/default/default48.png /usr/share/icons/hicolor/48x48/apps/palemoon.png
  260. sudo ln -s /opt/palemoon/browser/icons/mozicon128.png /usr/share/icons/hicolor/128x128/apps/palemoon.png
  261. # Update WWW system info -- let Linux know you installed PaleMoon
  262. sudo update-alternatives --install /usr/bin/gnome-www-browser gnome-www-browser /usr/bin/palemoon 100
  263. sudo update-alternatives --install /usr/bin/x-www-browser x-www-browser /usr/bin/palemoon 100
  264. # CONFIG PaleMoon to use default dictionaries
  265. sudo rm -r /opt/palemoon/dictionaries
  266. sudo ln -s /usr/share/hunspell /opt/palemoon/dictionaries
  267. ### VISIT ***** http://linux.palemoon.org/help/installation/ **** TO GET MORE INFO OR UNINSTALL
  268.  
  269. ############################################################################
  270. #themes
  271. sudo apt-get install numix-gtk-theme numix-icon-theme-circle -y
  272.  
  273. ############################################################################
  274.  
  275. #ending
  276. mkdir $HOME/Upload
  277. sudo apt-get -y update
  278. sudo apt-get -f -y install
  279. sudo apt-get -y upgrade
  280. sudo apt-get -y autoremove
  281. sudo apt-get -y autoclean
  282.  
  283. ############################################################################
  284. # ADDED BY CRAZYODAZ -- EXTRA WINE ADDONS AND PACKAGES NEEDED
  285. # INCLUDING ||| MONO -- WINETRICKS INSTALL AFTER EVERYTHING DONE
  286.  
  287. wget http://source.winehq.org/winemono.php
  288. wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
  289. chmod +x winetricks
  290. sudo cp winetricks /usr/local/bin
  291.  
  292. ############################################################################
  293. # ADDED BY CRAZYODAZ -- KODI FULL BUILDS -- ADDED LAST FOR EASY EDIT
  294. ############################################################################
  295.  
  296. # first get common software installed before kodi 16
  297. sudo apt-get install python-software-properties software-properties-common
  298. #sudo apt-get install software-properties-common
  299.  
  300. # now we can install kodi v16+
  301. sudo add-apt-repository ppa:team-xbmc/ppa
  302. sudo apt-get update
  303. sudo apt-get install kodi
  304.  
  305. ############################################################################
  306. # ADDED BY CRAZYODAZ -- LETS TURN OFF ZIETGIEST SPYING SHALL WE?
  307. # JUST DISABLE THE ABILITY TO WRITE -- LEAVING EVERYTHING INTACT
  308.  
  309. chmod -rw ~/.local/share/zeitgeist/activity.sqlite
  310. zeitgeist-daemon --replace
  311. # sudo apt-get purge libzeitgeist-1.0-1 libzeitgeist-2.0-0:amd64 | NOT ADVISED !!!
  312. dpkg -l |grep zeit
  313. * IF ANYTHING SHOWS UP, PLEASE MODIFY THE BOTTOM OF SCRIPT TO REMOVE REMAINING
  314. # BUT BE VERY CAREFUL -- BETTER TO DISABLE LOGGING AS PROGRAMS NEED THIS
  315. ##### chmod +rw ~/.local/share/zeitgeist/activity.sqlite ### WILL FIX LOGGING
  316. ##### zeitgeist-daemon --replace ###### WILL RESTART WITH LOGGING ENABLED
  317.  
  318.  
  319. #############################################################################
  320. # NOW FOR UNITY DISABLE WRITE AND SAME TIME LEAVING INTACT
  321.  
  322. sudo mv /etc/xdg/autostart/zeitgeist-datahub.desktop /etc/xdg/autostart/zeitgeist-datahub.desktop-inactive
  323. rm ~/.local/share/recently-used.xbel
  324. mkdir ~/.local/share/recently-used.xbel
  325. rm -rf ~/.local/share/zeitgeist
  326. ##### REVERSE THIS AND ENABLE WRITING AGAIN IF PROBLEMS
  327. # mkdir ~/.local/share/zeitgeist
  328. # rmdir ~/.local/share/recently-used.xbel
  329. ### -- no action for the .xbel file, as it will be re-created automatically
  330. # sudo mv /etc/xdg/autostart/zeitgeist-datahub.desktop-inactive /etc/xdg/autostart/zeitgeist-datahub.desktop
  331. #############################################################################
  332. ############################################################################
  333. ############################################################################
  334. ############################################################################
  335. # dont forget jdownloader
  336. # marked out because web install only
  337. # http://mega.nz/#!LJ9FyK7b!t88t6YBo2Wm_ABkSO7GikxujDF5Hddng9bgDb8fwoJQ
  338.  
  339. ############################################################################
Add Comment
Please, Sign In to add comment