Advertisement
v1ral_ITS

systemclean shell script program

Aug 5th, 2018
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 103.98 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3.  #===========================================================================================#
  4. #                                                                                             #
  5. #                                 SystemClean v2.3 04-06-2015                                 #
  6. #                                 ---------------------------                                 #
  7. #                                                                                             #
  8. #                                                                                             #
  9. #                   This script created by vagrale13 (vagrale@gmail.com)                      #
  10. #           to easy clean your system and home folder from cache and unneeded files.          #
  11. #                                                                                             #
  12. #                             Project page: http://goo.gl/7UXUs                               #
  13. #                                                                                             #
  14. #                                                                                             #
  15. #                                                                                             #
  16. #                                                                                             #
  17.  #===========================================================================================#
  18.  
  19.  
  20. user=`whoami`
  21. info=$(cat /home/$user/.systemclean/config | grep ":")
  22. aptitude=$(ls /usr/share/ | grep "aptitude")
  23. installpack=$(dpkg --get-selections | grep -c "install")
  24. used=$(cat /home/$user/.systemclean/date.txt | tail -n 10)
  25. sys_clean=$(sleep 1 ; cat /home/$user/.systemclean/date.txt | tail -n 30)
  26. varlog=$(du -sh /var/log | awk -F " " '{print $1}')
  27. byte=$(echo "B")
  28. numberker=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | grep -c "linux")
  29. kern1=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 1 | tail -n 1)
  30. kern2=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 2 | tail -n 1)
  31. kern3=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 3 | tail -n 1)
  32. kern4=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 4 | tail -n 1)
  33. kern5=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 5 | tail -n 1)
  34. kern6=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 6 | tail -n 1)
  35. kern7=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 7 | tail -n 1)
  36. kern8=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 8 | tail -n 1)
  37. kern9=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 9 | tail -n 1)
  38. kern10=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 10 | tail -n 1)
  39. kern11=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 11 | tail -n 1)
  40. kern12=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 12 | tail -n 1)
  41. kern13=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 13 | tail -n 1)
  42. kern14=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 14 | tail -n 1)
  43. kern15=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 15 | tail -n 1)
  44. kern16=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 16 | tail -n 1)
  45. kern17=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 17 | tail -n 1)
  46. kern18=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 18 | tail -n 1)
  47. kern19=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 19 | tail -n 1)
  48. kern20=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 20 | tail -n 1)
  49. kern21=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 21 | tail -n 1)
  50. kern22=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 22 | tail -n 1)
  51. kern23=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 23 | tail -n 1)
  52. kern24=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 24 | tail -n 1)
  53. kern25=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 25 | tail -n 1)
  54. kern26=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 26 | tail -n 1)
  55. kern27=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 27 | tail -n 1)
  56. kern28=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 28 | tail -n 1)
  57. kern29=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 29 | tail -n 1)
  58. kern30=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 30 | tail -n 1)
  59. kern31=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 31 | tail -n 1)
  60. kern32=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 32 | tail -n 1)
  61. kern33=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 33 | tail -n 1)
  62. kern34=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 34 | tail -n 1)
  63. kern35=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 35 | tail -n 1)
  64. kern36=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 36 | tail -n 1)
  65. kern37=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 37 | tail -n 1)
  66. kern38=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 38 | tail -n 1)
  67. kern39=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 39 | tail -n 1)
  68. kern40=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 40 | tail -n 1)
  69. kern41=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 41 | tail -n 1)
  70. kern42=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 42 | tail -n 1)
  71. kern43=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 43 | tail -n 1)
  72. kern44=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 44 | tail -n 1)
  73. kern45=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 45 | tail -n 1)
  74. kern46=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 46 | tail -n 1)
  75. kern47=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 47 | tail -n 1)
  76. kern48=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 48 | tail -n 1)
  77. kern49=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 49 | tail -n 1)
  78. kern50=$(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | head -n 50 | tail -n 1)
  79.  
  80. echo "" > /home/$user/.systemclean/1.log
  81. echo "" > /home/$user/.systemclean/2.log
  82. mv /home/$user/.systemclean/results.html /home/$user/.systemclean/results_old.html
  83. sed -e '18,50d' /home/$user/.systemclean/info.html > /home/$user/.systemclean/tmp.html
  84. mv /home/$user/.systemclean/tmp.html /home/$user/.systemclean/info.html
  85.  
  86. sleep 1 ; date +%a' '%d' '%b','%Y' '%H:%M''%p >> /home/$user/.systemclean/date.txt
  87.  
  88. echo "<html><body bgcolor=black text=lime link=#F70D1A><code><pre>
  89. $info
  90.  
  91. ********************************************************************
  92.  
  93. Before cleaning:
  94. --------------------------------------<font color=lightgrey>" > /home/$user/.systemclean/results.html
  95. df -Th | grep -v "fs" | sort >> /home/$user/.systemclean/results.html
  96. echo "
  97. $installpack packages" >> /home/$user/.systemclean/results.html
  98.  
  99. echo "--------------------------
  100. -- </font><font color=lightgrey>The SystemClean used</font><font color=green> --
  101. --------------------------
  102. </font><font color=lightgrey>$used</font><font color=green>
  103. -----------------------<br></font><font color=lightgrey>
  104. <b>Please close all programs before continue.</b><br>
  105. </font></pre></code></body></html>" >> /home/$user/.systemclean/info.html
  106.  
  107. zenity --text-info --title="SystemClean" --width="560" --height="600" --cancel-label="Exit" --ok-label="Continue" --window-icon="/home/$user/.systemclean/systemclean.png" --html --filename="/home/$user/.systemclean/info.html"
  108.  
  109. if [ $? -eq 1 ] ; then
  110.        zenity --info \
  111.          --text="Clear canceled." --timeout=1
  112. exit 1
  113. fi
  114.  
  115. if [ "$aptitude" = "" ]; then
  116.        zenity --info \
  117.          --text="To make cleaning\nmust have installed the package <u><b>aptitude</b></u>\nInstall the package and rerun the <i>SystemClean</i>."
  118.  
  119. zenity --title "Install aptitude" --question --text="Do you want to install the package <b>aptitude</b>?" --width="370" --ok-label="Install" --cancel-label="Cancel"
  120.  
  121. if [ $? -eq 0 ] ; then
  122. x-www-browser apt://aptitude
  123. exit 0
  124. fi
  125. exit 0
  126. fi
  127.  
  128. if [ "$numberker" = "0" ] ; then
  129.  
  130. respo=$(zenity  --list  --width="600"  --height="350" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root"  --separator=":")
  131. fi
  132.  
  133. if [ "$numberker" = "1" ] ; then
  134.  
  135. respo=$(zenity  --list  --width="600"  --height="360" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1"  --separator=":")
  136. fi
  137.  
  138.  
  139. if [ "$numberker" = "2" ] ; then
  140.  
  141. respo=$(zenity  --list  --width="600"  --height="380" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2"  --separator=":")
  142. fi
  143.  
  144. if [ "$numberker" = "3" ] ; then
  145.  
  146. respo=$(zenity  --list  --width="600"  --height="400" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3"  --separator=":")
  147. fi
  148.  
  149. if [ "$numberker" = "4" ] ; then
  150.  
  151. respo=$(zenity  --list  --width="600"  --height="430" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4"  --separator=":")
  152. fi
  153.  
  154. if [ "$numberker" = "5" ] ; then
  155.  
  156. respo=$(zenity  --list  --width="600"  --height="450" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5"  --separator=":")
  157. fi
  158.  
  159. if [ "$numberker" = "6" ] ; then
  160.  
  161. respo=$(zenity  --list  --width="600"  --height="470" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6"  --separator=":")
  162. fi
  163.  
  164. if [ "$numberker" = "7" ] ; then
  165.  
  166. respo=$(zenity  --list  --width="600"  --height="500" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7"  --separator=":")
  167. fi
  168.  
  169. if [ "$numberker" = "8" ] ; then
  170.  
  171. respo=$(zenity  --list  --width="600"  --height="520" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8"  --separator=":")
  172. fi
  173.  
  174. if [ "$numberker" = "9" ] ; then
  175.  
  176. respo=$(zenity  --list  --width="600"  --height="540" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9"  --separator=":")
  177. fi
  178.  
  179. if [ "$numberker" = "10" ] ; then
  180.  
  181. respo=$(zenity  --list  --width="600"  --height="560" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10"  --separator=":")
  182. fi
  183.  
  184. if [ "$numberker" = "11" ] ; then
  185.  
  186. respo=$(zenity  --list  --width="600"  --height="590" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11"  --separator=":")
  187. fi
  188.  
  189. if [ "$numberker" = "12" ] ; then
  190.  
  191. respo=$(zenity  --list  --width="600"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11" FALSE "$kern12"  --separator=":")
  192. fi
  193.  
  194. if [ "$numberker" = "13" ] ; then
  195.  
  196. respo=$(zenity  --list  --width="600"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11" FALSE "$kern12" FALSE "$kern13"  --separator=":")
  197. fi
  198.  
  199. if [ "$numberker" = "14" ] ; then
  200.  
  201. respo=$(zenity  --list  --width="600"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11" FALSE "$kern12" FALSE "$kern13" FALSE "$kern14"  --separator=":")
  202. fi
  203.  
  204. if [ "$numberker" = "15" ] ; then
  205.  
  206. respo=$(zenity  --list  --width="600"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11" FALSE "$kern12" FALSE "$kern13" FALSE "$kern14" FALSE "$kern15"  --separator=":")
  207. fi
  208.  
  209. if [ "$numberker" = "16" ] ; then
  210.  
  211. respo=$(zenity  --list  --width="600"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11" FALSE "$kern12" FALSE "$kern13" FALSE "$kern14" FALSE "$kern15" FALSE "$kern16"  --separator=":")
  212. fi
  213.  
  214. if [ "$numberker" = "17" ] ; then
  215.  
  216. respo=$(zenity  --list  --width="600"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11" FALSE "$kern12" FALSE "$kern13" FALSE "$kern14" FALSE "$kern15" FALSE "$kern16" FALSE "$kern17"  --separator=":")
  217. fi
  218.  
  219. if [ "$numberker" = "18" ] ; then
  220.  
  221. respo=$(zenity  --list  --width="600"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11" FALSE "$kern12" FALSE "$kern13" FALSE "$kern14" FALSE "$kern15" FALSE "$kern16" FALSE "$kern17" FALSE "$kern18"  --separator=":")
  222. fi
  223.  
  224. if [ "$numberker" = "19" ] ; then
  225.  
  226. respo=$(zenity  --list  --width="600"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11" FALSE "$kern12" FALSE "$kern13" FALSE "$kern14" FALSE "$kern15" FALSE "$kern16" FALSE "$kern17" FALSE "$kern18" FALSE "$kern19"  --separator=":")
  227. fi
  228.  
  229. if [ "$numberker" = "20" ] ; then
  230.  
  231. respo=$(zenity  --list  --width="600"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11" FALSE "$kern12" FALSE "$kern13" FALSE "$kern14" FALSE "$kern15" FALSE "$kern16" FALSE "$kern17" FALSE "$kern18" FALSE "$kern19" FALSE "$kern20"  --separator=":")
  232. fi
  233.  
  234. if [ "$numberker" = "21" ] ; then
  235.  
  236. respo=$(zenity  --list  --width="600"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11" FALSE "$kern12" FALSE "$kern13" FALSE "$kern14" FALSE "$kern15" FALSE "$kern16" FALSE "$kern17" FALSE "$kern18" FALSE "$kern19" FALSE "$kern20" FALSE "$kern21"  --separator=":")
  237. fi
  238.  
  239. if [ "$numberker" = "22" ] ; then
  240.  
  241. respo=$(zenity  --list  --width="600"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11" FALSE "$kern12" FALSE "$kern13" FALSE "$kern14" FALSE "$kern15" FALSE "$kern16" FALSE "$kern17" FALSE "$kern18" FALSE "$kern19" FALSE "$kern20" FALSE "$kern21" FALSE "$kern22"  --separator=":")
  242. fi
  243.  
  244. if [ "$numberker" = "23" ] ; then
  245.  
  246. respo=$(zenity  --list  --width="600"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11" FALSE "$kern12" FALSE "$kern13" FALSE "$kern14" FALSE "$kern15" FALSE "$kern16" FALSE "$kern17" FALSE "$kern18" FALSE "$kern19" FALSE "$kern20" FALSE "$kern21" FALSE "$kern22" FALSE "$kern23"  --separator=":")
  247. fi
  248.  
  249. if [ "$numberker" = "24" ] ; then
  250.  
  251. respo=$(zenity  --list  --width="600"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11" FALSE "$kern12" FALSE "$kern13" FALSE "$kern14" FALSE "$kern15" FALSE "$kern16" FALSE "$kern17" FALSE "$kern18" FALSE "$kern19" FALSE "$kern20" FALSE "$kern21" FALSE "$kern22" FALSE "$kern23" FALSE "$kern24"  --separator=":")
  252. fi
  253.  
  254. if [ "$numberker" = "25" ] ; then
  255.  
  256. respo=$(zenity  --list  --width="600"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11" FALSE "$kern12" FALSE "$kern13" FALSE "$kern14" FALSE "$kern15" FALSE "$kern16" FALSE "$kern17" FALSE "$kern18" FALSE "$kern19" FALSE "$kern20" FALSE "$kern21" FALSE "$kern22" FALSE "$kern23" FALSE "$kern24" FALSE "$kern25"  --separator=":")
  257. fi
  258.  
  259. if [ "$numberker" = "26" ] ; then
  260.  
  261. respo=$(zenity  --list  --width="600"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11" FALSE "$kern12" FALSE "$kern13" FALSE "$kern14" FALSE "$kern15" FALSE "$kern16" FALSE "$kern17" FALSE "$kern18" FALSE "$kern19" FALSE "$kern20" FALSE "$kern21" FALSE "$kern22" FALSE "$kern23" FALSE "$kern24" FALSE "$kern25" FALSE "$kern26"  --separator=":")
  262. fi
  263.  
  264. if [ "$numberker" = "27" ] ; then
  265.  
  266. respo=$(zenity  --list  --width="600"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11" FALSE "$kern12" FALSE "$kern13" FALSE "$kern14" FALSE "$kern15" FALSE "$kern16" FALSE "$kern17" FALSE "$kern18" FALSE "$kern19" FALSE "$kern20" FALSE "$kern21" FALSE "$kern22" FALSE "$kern23" FALSE "$kern24" FALSE "$kern25" FALSE "$kern26" FALSE "$kern27"  --separator=":")
  267. fi
  268.  
  269. if [ "$numberker" = "28" ] ; then
  270.  
  271. respo=$(zenity  --list  --width="600"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11" FALSE "$kern12" FALSE "$kern13" FALSE "$kern14" FALSE "$kern15" FALSE "$kern16" FALSE "$kern17" FALSE "$kern18" FALSE "$kern19" FALSE "$kern20" FALSE "$kern21" FALSE "$kern22" FALSE "$kern23" FALSE "$kern24" FALSE "$kern25" FALSE "$kern26" FALSE "$kern27" FALSE "$kern28"  --separator=":")
  272. fi
  273.  
  274. if [ "$numberker" = "29" ] ; then
  275.  
  276. respo=$(zenity  --list  --width="600"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11" FALSE "$kern12" FALSE "$kern13" FALSE "$kern14" FALSE "$kern15" FALSE "$kern16" FALSE "$kern17" FALSE "$kern18" FALSE "$kern19" FALSE "$kern20" FALSE "$kern21" FALSE "$kern22" FALSE "$kern23" FALSE "$kern24" FALSE "$kern25" FALSE "$kern26" FALSE "$kern27" FALSE "$kern28" FALSE "$kern29"  --separator=":")
  277. fi
  278.  
  279. if [ "$numberker" = "30" ] ; then
  280.  
  281. respo=$(zenity  --list  --width="600"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11" FALSE "$kern12" FALSE "$kern13" FALSE "$kern14" FALSE "$kern15" FALSE "$kern16" FALSE "$kern17" FALSE "$kern18" FALSE "$kern19" FALSE "$kern20" FALSE "$kern21" FALSE "$kern22" FALSE "$kern23" FALSE "$kern24" FALSE "$kern25" FALSE "$kern26" FALSE "$kern27" FALSE "$kern28" FALSE "$kern29" FALSE "$kern30"  --separator=":")
  282. fi
  283.  
  284. if [ "$numberker" = "31" ] ; then
  285.  
  286. respo=$(zenity  --list  --width="600"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11" FALSE "$kern12" FALSE "$kern13" FALSE "$kern14" FALSE "$kern15" FALSE "$kern16" FALSE "$kern17" FALSE "$kern18" FALSE "$kern19" FALSE "$kern20" FALSE "$kern21" FALSE "$kern22" FALSE "$kern23" FALSE "$kern24" FALSE "$kern25" FALSE "$kern26" FALSE "$kern27" FALSE "$kern28" FALSE "$kern29" FALSE "$kern30" FALSE "$kern31"  --separator=":")
  287. fi
  288.  
  289. if [ "$numberker" = "32" ] ; then
  290.  
  291. respo=$(zenity  --list  --width="600"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11" FALSE "$kern12" FALSE "$kern13" FALSE "$kern14" FALSE "$kern15" FALSE "$kern16" FALSE "$kern17" FALSE "$kern18" FALSE "$kern19" FALSE "$kern20" FALSE "$kern21" FALSE "$kern22" FALSE "$kern23" FALSE "$kern24" FALSE "$kern25" FALSE "$kern26" FALSE "$kern27" FALSE "$kern28" FALSE "$kern29" FALSE "$kern30" FALSE "$kern31" FALSE "$kern32"  --separator=":")
  292. fi
  293.  
  294. if [ "$numberker" = "33" ] ; then
  295.  
  296. respo=$(zenity  --list  --width="600"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11" FALSE "$kern12" FALSE "$kern13" FALSE "$kern14" FALSE "$kern15" FALSE "$kern16" FALSE "$kern17" FALSE "$kern18" FALSE "$kern19" FALSE "$kern20" FALSE "$kern21" FALSE "$kern22" FALSE "$kern23" FALSE "$kern24" FALSE "$kern25" FALSE "$kern26" FALSE "$kern27" FALSE "$kern28" FALSE "$kern29" FALSE "$kern30" FALSE "$kern31" FALSE "$kern32" FALSE "$kern33"  --separator=":")
  297. fi
  298.  
  299. if [ "$numberker" = "34" ] ; then
  300.  
  301. respo=$(zenity  --list  --width="600"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11" FALSE "$kern12" FALSE "$kern13" FALSE "$kern14" FALSE "$kern15" FALSE "$kern16" FALSE "$kern17" FALSE "$kern18" FALSE "$kern19" FALSE "$kern20" FALSE "$kern21" FALSE "$kern22" FALSE "$kern23" FALSE "$kern24" FALSE "$kern25" FALSE "$kern26" FALSE "$kern27" FALSE "$kern28" FALSE "$kern29" FALSE "$kern30" FALSE "$kern31" FALSE "$kern32" FALSE "$kern33" FALSE "$kern34"  --separator=":")
  302. fi
  303.  
  304. if [ "$numberker" = "35" ] ; then
  305.  
  306. respo=$(zenity  --list  --width="600"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11" FALSE "$kern12" FALSE "$kern13" FALSE "$kern14" FALSE "$kern15" FALSE "$kern16" FALSE "$kern17" FALSE "$kern18" FALSE "$kern19" FALSE "$kern20" FALSE "$kern21" FALSE "$kern22" FALSE "$kern23" FALSE "$kern24" FALSE "$kern25" FALSE "$kern26" FALSE "$kern27" FALSE "$kern28" FALSE "$kern29" FALSE "$kern30" FALSE "$kern31" FALSE "$kern32" FALSE "$kern33" FALSE "$kern34" FALSE "$kern35"  --separator=":")
  307. fi
  308.  
  309. if [ "$numberker" = "36" ] ; then
  310.  
  311. respo=$(zenity  --list  --width="600"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11" FALSE "$kern12" FALSE "$kern13" FALSE "$kern14" FALSE "$kern15" FALSE "$kern16" FALSE "$kern17" FALSE "$kern18" FALSE "$kern19" FALSE "$kern20" FALSE "$kern21" FALSE "$kern22" FALSE "$kern23" FALSE "$kern24" FALSE "$kern25" FALSE "$kern26" FALSE "$kern27" FALSE "$kern28" FALSE "$kern29" FALSE "$kern30" FALSE "$kern31" FALSE "$kern32" FALSE "$kern33" FALSE "$kern34" FALSE "$kern35" FALSE "$kern36"  --separator=":")
  312. fi
  313.  
  314. if [ "$numberker" = "37" ] ; then
  315.  
  316. respo=$(zenity  --list  --width="600"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11" FALSE "$kern12" FALSE "$kern13" FALSE "$kern14" FALSE "$kern15" FALSE "$kern16" FALSE "$kern17" FALSE "$kern18" FALSE "$kern19" FALSE "$kern20" FALSE "$kern21" FALSE "$kern22" FALSE "$kern23" FALSE "$kern24" FALSE "$kern25" FALSE "$kern26" FALSE "$kern27" FALSE "$kern28" FALSE "$kern29" FALSE "$kern30" FALSE "$kern31" FALSE "$kern32" FALSE "$kern33" FALSE "$kern34" FALSE "$kern35" FALSE "$kern36" FALSE "$kern37"  --separator=":")
  317. fi
  318.  
  319. if [ "$numberker" = "38" ] ; then
  320.  
  321. respo=$(zenity  --list  --width="600"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11" FALSE "$kern12" FALSE "$kern13" FALSE "$kern14" FALSE "$kern15" FALSE "$kern16" FALSE "$kern17" FALSE "$kern18" FALSE "$kern19" FALSE "$kern20" FALSE "$kern21" FALSE "$kern22" FALSE "$kern23" FALSE "$kern24" FALSE "$kern25" FALSE "$kern26" FALSE "$kern27" FALSE "$kern28" FALSE "$kern29" FALSE "$kern30" FALSE "$kern31" FALSE "$kern32" FALSE "$kern33" FALSE "$kern34" FALSE "$kern35" FALSE "$kern36" FALSE "$kern37" FALSE "$kern38"  --separator=":")
  322. fi
  323.  
  324. if [ "$numberker" = "39" ] ; then
  325.  
  326. respo=$(zenity  --list  --width="600"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11" FALSE "$kern12" FALSE "$kern13" FALSE "$kern14" FALSE "$kern15" FALSE "$kern16" FALSE "$kern17" FALSE "$kern18" FALSE "$kern19" FALSE "$kern20" FALSE "$kern21" FALSE "$kern22" FALSE "$kern23" FALSE "$kern24" FALSE "$kern25" FALSE "$kern26" FALSE "$kern27" FALSE "$kern28" FALSE "$kern29" FALSE "$kern30" FALSE "$kern31" FALSE "$kern32" FALSE "$kern33" FALSE "$kern34" FALSE "$kern35" FALSE "$kern36" FALSE "$kern37" FALSE "$kern38" FALSE "$kern39"  --separator=":")
  327. fi
  328.  
  329. if [ "$numberker" = "40" ] ; then
  330.  
  331. respo=$(zenity  --list  --width="600"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11" FALSE "$kern12" FALSE "$kern13" FALSE "$kern14" FALSE "$kern15" FALSE "$kern16" FALSE "$kern17" FALSE "$kern18" FALSE "$kern19" FALSE "$kern20" FALSE "$kern21" FALSE "$kern22" FALSE "$kern23" FALSE "$kern24" FALSE "$kern25" FALSE "$kern26" FALSE "$kern27" FALSE "$kern28" FALSE "$kern29" FALSE "$kern30" FALSE "$kern31" FALSE "$kern32" FALSE "$kern33" FALSE "$kern34" FALSE "$kern35" FALSE "$kern36" FALSE "$kern37" FALSE "$kern38" FALSE "$kern39" FALSE "$kern40"  --separator=":")
  332. fi
  333.  
  334. if [ "$numberker" = "41" ] ; then
  335.  
  336. respo=$(zenity  --list  --width="600"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11" FALSE "$kern12" FALSE "$kern13" FALSE "$kern14" FALSE "$kern15" FALSE "$kern16" FALSE "$kern17" FALSE "$kern18" FALSE "$kern19" FALSE "$kern20" FALSE "$kern21" FALSE "$kern22" FALSE "$kern23" FALSE "$kern24" FALSE "$kern25" FALSE "$kern26" FALSE "$kern27" FALSE "$kern28" FALSE "$kern29" FALSE "$kern30" FALSE "$kern31" FALSE "$kern32" FALSE "$kern33" FALSE "$kern34" FALSE "$kern35" FALSE "$kern36" FALSE "$kern37" FALSE "$kern38" FALSE "$kern39" FALSE "$kern40" FALSE "$kern41"  --separator=":")
  337. fi
  338.  
  339. if [ "$numberker" = "42" ] ; then
  340.  
  341. respo=$(zenity  --list  --width="600"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11" FALSE "$kern12" FALSE "$kern13" FALSE "$kern14" FALSE "$kern15" FALSE "$kern16" FALSE "$kern17" FALSE "$kern18" FALSE "$kern19" FALSE "$kern20" FALSE "$kern21" FALSE "$kern22" FALSE "$kern23" FALSE "$kern24" FALSE "$kern25" FALSE "$kern26" FALSE "$kern27" FALSE "$kern28" FALSE "$kern29" FALSE "$kern30" FALSE "$kern31" FALSE "$kern32" FALSE "$kern33" FALSE "$kern34" FALSE "$kern35" FALSE "$kern36" FALSE "$kern37" FALSE "$kern38" FALSE "$kern39" FALSE "$kern40" FALSE "$kern41" FALSE "$kern42"  --separator=":")
  342. fi
  343.  
  344. if [ "$numberker" = "43" ] ; then
  345.  
  346. respo=$(zenity  --list  --width="600"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11" FALSE "$kern12" FALSE "$kern13" FALSE "$kern14" FALSE "$kern15" FALSE "$kern16" FALSE "$kern17" FALSE "$kern18" FALSE "$kern19" FALSE "$kern20" FALSE "$kern21" FALSE "$kern22" FALSE "$kern23" FALSE "$kern24" FALSE "$kern25" FALSE "$kern26" FALSE "$kern27" FALSE "$kern28" FALSE "$kern29" FALSE "$kern30" FALSE "$kern31" FALSE "$kern32" FALSE "$kern33" FALSE "$kern34" FALSE "$kern35" FALSE "$kern36" FALSE "$kern37" FALSE "$kern38" FALSE "$kern39" FALSE "$kern40" FALSE "$kern41" FALSE "$kern42" FALSE "$kern43"  --separator=":")
  347. fi
  348.  
  349. if [ "$numberker" = "44" ] ; then
  350.  
  351. respo=$(zenity  --list  --width="600"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11" FALSE "$kern12" FALSE "$kern13" FALSE "$kern14" FALSE "$kern15" FALSE "$kern16" FALSE "$kern17" FALSE "$kern18" FALSE "$kern19" FALSE "$kern20" FALSE "$kern21" FALSE "$kern22" FALSE "$kern23" FALSE "$kern24" FALSE "$kern25" FALSE "$kern26" FALSE "$kern27" FALSE "$kern28" FALSE "$kern29" FALSE "$kern30" FALSE "$kern31" FALSE "$kern32" FALSE "$kern33" FALSE "$kern34" FALSE "$kern35" FALSE "$kern36" FALSE "$kern37" FALSE "$kern38" FALSE "$kern39" FALSE "$kern40" FALSE "$kern41" FALSE "$kern42" FALSE "$kern43" FALSE "$kern44"  --separator=":")
  352. fi
  353.  
  354. if [ "$numberker" = "45" ] ; then
  355.  
  356. respo=$(zenity  --list  --width="600"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11" FALSE "$kern12" FALSE "$kern13" FALSE "$kern14" FALSE "$kern15" FALSE "$kern16" FALSE "$kern17" FALSE "$kern18" FALSE "$kern19" FALSE "$kern20" FALSE "$kern21" FALSE "$kern22" FALSE "$kern23" FALSE "$kern24" FALSE "$kern25" FALSE "$kern26" FALSE "$kern27" FALSE "$kern28" FALSE "$kern29" FALSE "$kern30" FALSE "$kern31" FALSE "$kern32" FALSE "$kern33" FALSE "$kern34" FALSE "$kern35" FALSE "$kern36" FALSE "$kern37" FALSE "$kern38" FALSE "$kern39" FALSE "$kern40" FALSE "$kern41" FALSE "$kern42" FALSE "$kern43" FALSE "$kern44" FALSE "$kern45"  --separator=":")
  357. fi
  358.  
  359. if [ "$numberker" = "46" ] ; then
  360.  
  361. respo=$(zenity  --list  --width="600"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11" FALSE "$kern12" FALSE "$kern13" FALSE "$kern14" FALSE "$kern15" FALSE "$kern16" FALSE "$kern17" FALSE "$kern18" FALSE "$kern19" FALSE "$kern20" FALSE "$kern21" FALSE "$kern22" FALSE "$kern23" FALSE "$kern24" FALSE "$kern25" FALSE "$kern26" FALSE "$kern27" FALSE "$kern28" FALSE "$kern29" FALSE "$kern30" FALSE "$kern31" FALSE "$kern32" FALSE "$kern33" FALSE "$kern34" FALSE "$kern35" FALSE "$kern36" FALSE "$kern37" FALSE "$kern38" FALSE "$kern39" FALSE "$kern40" FALSE "$kern41" FALSE "$kern42" FALSE "$kern43" FALSE "$kern44" FALSE "$kern45" FALSE "$kern46"  --separator=":")
  362. fi
  363.  
  364. if [ "$numberker" = "47" ] ; then
  365.  
  366. respo=$(zenity  --list  --width="600"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11" FALSE "$kern12" FALSE "$kern13" FALSE "$kern14" FALSE "$kern15" FALSE "$kern16" FALSE "$kern17" FALSE "$kern18" FALSE "$kern19" FALSE "$kern20" FALSE "$kern21" FALSE "$kern22" FALSE "$kern23" FALSE "$kern24" FALSE "$kern25" FALSE "$kern26" FALSE "$kern27" FALSE "$kern28" FALSE "$kern29" FALSE "$kern30" FALSE "$kern31" FALSE "$kern32" FALSE "$kern33" FALSE "$kern34" FALSE "$kern35" FALSE "$kern36" FALSE "$kern37" FALSE "$kern38" FALSE "$kern39" FALSE "$kern40" FALSE "$kern41" FALSE "$kern42" FALSE "$kern43" FALSE "$kern44" FALSE "$kern45" FALSE "$kern47" FALSE "$kern48"  --separator=":")
  367. fi
  368.  
  369. if [ "$numberker" = "48" ] ; then
  370.  
  371. respo=$(zenity  --list  --width="600"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11" FALSE "$kern12" FALSE "$kern13" FALSE "$kern14" FALSE "$kern15" FALSE "$kern16" FALSE "$kern17" FALSE "$kern18" FALSE "$kern19" FALSE "$kern20" FALSE "$kern21" FALSE "$kern22" FALSE "$kern23" FALSE "$kern24" FALSE "$kern25" FALSE "$kern26" FALSE "$kern27" FALSE "$kern28" FALSE "$kern29" FALSE "$kern30" FALSE "$kern31" FALSE "$kern32" FALSE "$kern33" FALSE "$kern34" FALSE "$kern35" FALSE "$kern36" FALSE "$kern37" FALSE "$kern38" FALSE "$kern39" FALSE "$kern40" FALSE "$kern41" FALSE "$kern42" FALSE "$kern43" FALSE "$kern44" FALSE "$kern45" FALSE "$kern46" FALSE "$kern47" FALSE "$kern48"  --separator=":")
  372. fi
  373.  
  374. if [ "$numberker" = "49" ] ; then
  375.  
  376. respo=$(zenity  --list  --width="600"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11" FALSE "$kern12" FALSE "$kern13" FALSE "$kern14" FALSE "$kern15" FALSE "$kern16" FALSE "$kern17" FALSE "$kern18" FALSE "$kern19" FALSE "$kern20" FALSE "$kern21" FALSE "$kern22" FALSE "$kern23" FALSE "$kern24" FALSE "$kern25" FALSE "$kern26" FALSE "$kern27" FALSE "$kern28" FALSE "$kern29" FALSE "$kern30" FALSE "$kern31" FALSE "$kern32" FALSE "$kern33" FALSE "$kern34" FALSE "$kern35" FALSE "$kern36" FALSE "$kern37" FALSE "$kern38" FALSE "$kern39" FALSE "$kern40" FALSE "$kern41" FALSE "$kern42" FALSE "$kern43" FALSE "$kern44" FALSE "$kern45" FALSE "$kern46" FALSE "$kern47" FALSE "$kern48" FALSE "$kern49"  --separator=":")
  377. fi
  378.  
  379. if [ "$numberker" = "50" ] ; then
  380.  
  381. respo=$(zenity  --list  --width="600"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root" FALSE "$kern1" FALSE "$kern2" FALSE "$kern3" FALSE "$kern4" FALSE "$kern5" FALSE "$kern6" FALSE "$kern7" FALSE "$kern8" FALSE "$kern9" FALSE "$kern10" FALSE "$kern11" FALSE "$kern12" FALSE "$kern13" FALSE "$kern14" FALSE "$kern15" FALSE "$kern16" FALSE "$kern17" FALSE "$kern18" FALSE "$kern19" FALSE "$kern20" FALSE "$kern21" FALSE "$kern22" FALSE "$kern23" FALSE "$kern24" FALSE "$kern25" FALSE "$kern26" FALSE "$kern27" FALSE "$kern28" FALSE "$kern29" FALSE "$kern30" FALSE "$kern31" FALSE "$kern32" FALSE "$kern33" FALSE "$kern34" FALSE "$kern35" FALSE "$kern36" FALSE "$kern37" FALSE "$kern38" FALSE "$kern39" FALSE "$kern40" FALSE "$kern41" FALSE "$kern42" FALSE "$kern43" FALSE "$kern44" FALSE "$kern45" FALSE "$kern46" FALSE "$kern47" FALSE "$kern48" FALSE "$kern49" FALSE "$kern50"  --separator=":")
  382. fi
  383.  
  384. if [ "$numberker" -ge "51" ] ; then
  385.  
  386. respo=$(zenity  --list  --width="600"  --height="350" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose what to execute to be cleansed from your system.\n\nIf you don't want to execute something, just select <b>OK</b>!" --checklist  --column "Choose" --column "" FALSE "Autoremove" FALSE "Clean" FALSE "Autoclean" FALSE "Clean_unneeded_files" FALSE "Broken_packages_lists - You must have Intenet connection" FALSE "Memory_Cache - Dangerous, use it with your own risk" FALSE "System_Logs - /var/log/ ($varlog$byte)" FLASE "/tmp" FALSE "Trash - root"  --separator=":")
  387. fi
  388.  
  389. if [ "$respo" = "" ] ; then
  390.  
  391. response=$(zenity  --list  --width="450"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose the programs you want to clean cache\n\nIf you don't want to clear the cache of programs, just select <b>OK</b>!" --checklist  --column "Choose" --column "Program" FALSE "AceStream" FALSE "Chrome" FALSE "Chromium" FALSE "Clementine" FALSE "Compiz" FALSE "Epiphany" FALSE "Evolution" FALSE "Firefox" FASLE "Flash_Player" FALSE "Icedtea" FALSE "Google_Earth - Temporary files" FALSE "Guayadeque" FALSE "Java" FALSE "LuckyBackup" FALSE "Miro" FALSE "Mozilla-Nightly" FALSE "Opera" FALSE "Pigdin" FALSE "Recently-used" FALSE "Seamonkey" FALSE "Swiftweasel" FALSE "SystemClean - history" FALSE "thumbnails - with more than 7 days of use" FALSE "Thumbs.db" FALSE "Thunderbird" FALSE "TorChat" FALSE "Transmission" FALSE "Vidalia_tor" FALSE "Vlc" FALSE "Wallpapers" FALSE "Trash - $user"  --separator=":")
  392.  
  393. if [ $? -eq 1 ] ; then
  394.         zenity --error \
  395.           --text="Clear canceled."
  396. exit 1
  397. fi
  398.  
  399. if [ "$response" = "" ] ; then
  400. echo "
  401. --------------------------------------
  402. </font><b>
  403. <font color=#FF0000>C</font><font color=#FF3500>l</font><font color=#FF6A00>e</font><font color=#FF9F00>a</font><font color=#FFD400>n</font><font color=#FFff00> </font><font color=#CAff00>c</font><font color=#95ff00>o</font><font color=#60ff00>m</font><font color=#2Bff00>p</font><font color=#00ff00>l</font><font color=#00ff35>e</font><font color=#00ff6A>t</font><font color=#00ff9F>e</font><font color=#00ffD4> </font><font color=#00ffff>s</font><font color=#00D4ff>u</font><font color=#009Fff>c</font><font color=#006Aff>c</font><font color=#0035ff>e</font><font color=#0000ff>s</font><font color=#2B00ff>f</font><font color=#6000ff>u</font><font color=#9500ff>l</font><font color=#CA00ff>l</font><font color=#FF00ff>!</font><font color=#FF00D4> </font><font color=#FF009F>:</font><font color=#FF006A>)</font></b>" >> /home/$user/.systemclean/2.log
  404.  
  405. zenity --info --text "Clean complete succesfull!" --window-icon="/home/$user/.systemclean/systemclean.png" --timeout=1
  406.  
  407. echo "</font>
  408.  
  409.  
  410. After cleaning:
  411. --------------------------------------<font color=lightgrey>" >> /home/$user/.systemclean/results.html
  412. df -Th | grep -v "fs" | sort >> /home/$user/.systemclean/results.html
  413. echo "
  414. $installpack packages" >> /home/$user/.systemclean/results.html
  415.  
  416. echo "</font>
  417.  
  418. ********************************************************************
  419. <font color=lightgrey>
  420. You can see more details results
  421. in the logs /home/$user/.systemclean
  422. </font>
  423. ------------------
  424. --- System Log ---
  425. ------------------<font color=#347C2C>" >> /home/$user/.systemclean/results.html
  426. cat /home/$user/.systemclean/1.log >> /home/$user/.systemclean/results.html
  427. echo "</font>
  428. ----------------
  429. --- Home Log ---
  430. ----------------<font color=lightgrey>
  431. Deleted `cat /home/$user/.systemclean/2.log | grep -c "home"` files</font><font color=#347C2C>" >> /home/$user/.systemclean/results.html
  432. cat /home/$user/.systemclean/2.log >> /home/$user/.systemclean/results.html
  433. echo "<center><img src=http://i.imgur.com/wq6SwtO.png height=192 width=192 /></center>
  434. </font></pre></code></body></html>" >> /home/$user/.systemclean/results.html
  435.  
  436. zenity --text-info --title="-- Results --" --width="600" --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --html --filename="/home/$user/.systemclean/results.html"
  437. [[ $response = *SystemClean** ]] && echo "" > /home/$user/.systemclean/1.log
  438. [[ $response = *SystemClean** ]] && echo "" > /home/$user/.systemclean/2.log
  439. [[ $response = *SystemClean** ]] && echo "" > /home/$user/.systemclean/kernels.txt
  440. [[ $response = *SystemClean** ]] && $sys_clean > /home/$user/.systemclean/date.txt
  441. [[ $response = *SystemClean** ]] && cat /home/$user/.systemclean/results.html | head -n 40 > ~/.systemclean/results_tmp.html && mv /home/$user/.systemclean/results_tmp.html /home/$user/.systemclean/results.html
  442. [[ $response = *SystemClean** ]] && cat /home/$user/.systemclean/results_old.html | head -n 40 > ~/.systemclean/results_old_tmp.html && mv /home/$user/.systemclean/results_old_tmp.html /home/$user/.systemclean/results_old.html
  443. wget --no-cache http://pastebin.com/raw.php?i=vVJLnJqh -O /home/$user/.systemclean/update_version
  444. sleep 1
  445. if [ "$(cat /home/$user/.systemclean/update_version)" = "newer version is available" ]; then
  446. zenity --question --text="A newer version of SystemClean is available.\nDo you want to download it?" --window-icon="/home/$user/.systemclean/systemclean.png" --cancel-label="Remind me later" --ok-label="Download it now"
  447. if [ $? -eq 0 ] ; then
  448. x-www-browser http://gnome-look.org/content/show.php/SystemClean?content=132913
  449. exit 0
  450. fi fi
  451. exit 0
  452. fi
  453.  
  454. (
  455. echo ; sleep 1
  456. [[ $response = *Firefox* ]] && ls -d /home/$user/.cache/mozilla/firefox/*.*/cache*/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.cache/mozilla/firefox/*.*/cache*/*
  457. [[ $response = *Firefox* ]] && ls -d /home/$user/.cache/mozilla/firefox/*.*/thumbnails/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.cache/mozilla/firefox/*.*/thumbnails/*
  458. [[ $response = *Firefox* ]] && ls -d /home/$user/.cache/mozilla/firefox/*.*/OfflineCache/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.cache/mozilla/firefox/*.*/OfflineCache/*
  459. [[ $response = *Firefox* ]] && ls -d /home/$user/.cache/mozilla/firefox/*.*/startupCache/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.cache/mozilla/firefox/*.*/startupCache/*
  460. [[ $response = *Mozilla-Nightly* ]] && ls -d /home/$user/.cache/mozilla/firefox-trunk/*.*/cache*/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.cache/mozilla/firefox-trunk/*.*/cache*/*
  461. [[ $response = *Mozilla-Nightly* ]] && ls -d /home/$user/.cache/mozilla/firefox-trunk/*.*/thumbnails/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.cache/mozilla/firefox-trunk/*.*/thumbnails/*
  462. [[ $response = *Mozilla-Nightly* ]] && ls -d /home/$user/.cache/mozilla/firefox-trunk/*.*/OfflineCache/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.cache/mozilla/firefox-trunk/*.*/OfflineCache/*
  463. [[ $response = *Mozilla-Nightly* ]] && ls -d /home/$user/.cache/mozilla/firefox-trunk/*.*/startupCache/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.cache/mozilla/firefox-trunk/*.*/startupCache/*
  464. [[ $response = *Transmission* ]] && ls -d /home/$user/.cache/transmission/favicons/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.cache/transmission/favicons/*
  465. [[ $response = *Vlc* ]] && ls -d /home/$user/.cache/vlc/art/artistalbum/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.cache/vlc/art/artistalbum/*
  466. [[ $response = *Vlc* ]] && ls -d /home/$user/.cache/vlc/art/arturl/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.cache/vlc/art/arturl/*
  467. [[ $response = *Icedtea* ]] && ls -d /home/$user/.icedtea/cache/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.icedtea/cache/*
  468. [[ $response = *Recently-used* ]] && ls -d /home/$user/.local/share/recently-used.* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.local/share/recently-used.*
  469. [[ $response = *Flash_Player* ]] && ls -d /home/$user/.macromedia/Flash_Player/macromedia.com/support/flashplayer/sys/#* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.macromedia/Flash_Player/macromedia.com/support/flashplayer/sys/#*
  470. [[ $response = *Flash_Player* ]] && ls -d /home/$user/.macromedia/Flash_Player/#SharedObjects/*/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.macromedia/Flash_Player/#SharedObjects/*/*
  471. [[ $response = *Vidalia_tor* ]] && ls -d /home/$user/.tor/cached-* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.tor/cached-*
  472. [[ $response = *TorChat* ]] && ls -d /home/$user/.torchat/Tor/tor_data/cached* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.torchat/Tor/tor_data/cached*
  473. [[ $response = *Guayadeque* ]] && ls -d /home/$user/.guayadeque/cache.db >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.guayadeque/cache.db
  474. [[ $response = *Chrome* ]] && ls -d /home/$user/.cache/google-chrome/Default/Cache/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.cache/google-chrome/Default/Cache/*
  475. [[ $response = *Epiphany* ]] && ls -d /home/$user/.gnome2/epiphany/favicon_cache/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.gnome2/epiphany/favicon_cache/*
  476. [[ $response = *Seamonkey* ]] && ls -d /home/$user/.mozilla/seamonkey/*/Cache/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.mozilla/seamonkey/*/Cache/*
  477. [[ $response = *Swiftweasel* ]] && ls -d /home/$user/.sw35/swiftweasel/*/Cache/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.sw35/swiftweasel/*/Cache/*
  478. [[ $response = *Opera* ]] && ls -d /home/$user/.opera/cache/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.opera/cache/*
  479. [[ $response = *Chromium* ]] && ls -d /home/$user/.cache/chromium/Default/*/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.cache/chromium/Default/*/*
  480. [[ $response = *Evolution* ]] && ls -d /home/$user/.evolution/cache/tmp/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.evolution/cache/tmp/*
  481. [[ $response = *Java* ]] && ls -d /home/$user/.java/.userPrefs/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.java/.userPrefs/*
  482. [[ $response = *Compiz* ]] && ls -d /home/$user/.cache/compizconfig/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.cache/compizconfig/*
  483. [[ $response = *Compiz* ]] && ls -d /home/$user/.config/compiz/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.config/compiz/*
  484. [[ $response = *Compiz* ]] && ls -d /home/$user/.compiz/session/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.compiz/session/*
  485. [[ $response = *Clementine* ]] && ls -d /home/$user/.config/Clementine/networkcache/http/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.config/Clementine/networkcache/http/*
  486. [[ $response = *Wallpapers* ]] && ls -d /home/$user/.cache/wallpaper/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.cache/wallpaper/*
  487. [[ $response = *Google_Earth** ]] && ls -d /home/$user/.googleearth/Temp/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.googleearth/Temp/*
  488. [[ $response = *Google_Earth** ]] && ls -d /home/$user/.googleearth/Cache/icons/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.googleearth/Cache/icons/*
  489. [[ $response = *Google_Earth** ]] && ls -d /home/$user/.googleearth/Cache/qwebdata/offline_access/*/** >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.googleearth/Cache/qwebdata/offline_access/*/**
  490. [[ $response = *Google_Earth** ]] && ls -d /home/$user/.googleearth/Cache/unified_cache_leveldb_*/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.googleearth/Cache/unified_cache_leveldb_*/*
  491. [[ $response = *Google_Earth** ]] && ls -d /home/$user/.googleearth/Cache/webdata/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.googleearth/Cache/webdata/*
  492. [[ $response = *Google_Earth** ]] && ls -d /home/$user/.googleearth/Cache/dbCache.dat.index >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.googleearth/Cache/dbCache.dat.index
  493. [[ $response = *Google_Earth** ]] && ls -d /home/$user/.googleearth/Cache/dbroot_cache >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.googleearth/Cache/dbroot_cache
  494. [[ $response = *Google_Earth** ]] && ls -d /home/$user/.googleearth/Cache/dbCache.dat >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.googleearth/Cache/dbCache.dat
  495. [[ $response = *AceStream* ]] && ls -d /home/$user/.ACEStream/collected_torrent_files/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.ACEStream/collected_torrent_files/*
  496. [[ $response = *Thunderbird* ]] && ls -d /home/$user/.cache/thunderbird/*.default/Cache/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.cache/thunderbird/*.default/Cache/*
  497. [[ $response = *Thunderbird* ]] && ls -d /home/$user/.cache/thunderbird/*.default/startupCache/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.cache/thunderbird/*.default/startupCache/*
  498. [[ $response = *Thunderbird* ]] && ls -d /home/$user/.cache/thunderbird/*.default/OfflineCache/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.cache/thunderbird/*.default/OfflineCache/*
  499. [[ $response = *Pigdin* ]] && ls -d /home/$user/.purple/icons/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.purple/icons/*
  500. [[ $response = *Miro* ]] && ls -d /home/$user/.miro/icon-cache/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.miro/icon-cache/*
  501. [[ $response = *Miro* ]] && ls -d /home/$user/.miro/*.log* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.miro/*.log*
  502. [[ $response = *LuckyBackup* ]] && ls -d /home/$user/.luckyBackup/logs/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.luckyBackup/logs/*
  503. [[ $response = *LuckyBackup* ]] && ls -d /home/$user/.luckyBackup/snaps/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.luckyBackup/snaps/*
  504. [[ $response = *thumbnails** ]] && find /home/$user/.thumbnails -type f -atime +7 >> /home/$user/.systemclean/2.log ; find /home/$user/.thumbnails -type f -atime +7 -exec rm {} \;
  505. [[ $response = *thumbnails** ]] && find /home/$user/.cache/thumbnails -type f -atime +7 >> /home/$user/.systemclean/2.log ; find /home/$user/.cache/thumbnails -type f -atime +7 -exec rm {} \;
  506. [[ $response = *Thumbs.db* ]] && find /home/$user/ -name Thumbs.db -type f -atime +7 >> /home/$user/.systemclean/2.log ; find /home/$user/ -name Thumbs.db -exec rm {} \;
  507. [[ $response = *Trash** ]] && ls -d /home/$user/.local/share/Trash/*/** >> /home/$user/.systemclean/2.log && rm -rf /home/*/.local/share/Trash/*/**
  508. ) |
  509. zenity --progress \
  510. --width=400 \
  511. --window-icon="/home/$user/.systemclean/systemclean.png" \
  512. --title="Clean cache programs!" \
  513. --percentage=0 \
  514. --pulsate \
  515. --auto-close
  516.  
  517. echo "
  518. --------------------------------------
  519. </font><b>
  520. <font color=#FF0000>C</font><font color=#FF3500>l</font><font color=#FF6A00>e</font><font color=#FF9F00>a</font><font color=#FFD400>n</font><font color=#FFff00> </font><font color=#CAff00>c</font><font color=#95ff00>o</font><font color=#60ff00>m</font><font color=#2Bff00>p</font><font color=#00ff00>l</font><font color=#00ff35>e</font><font color=#00ff6A>t</font><font color=#00ff9F>e</font><font color=#00ffD4> </font><font color=#00ffff>s</font><font color=#00D4ff>u</font><font color=#009Fff>c</font><font color=#006Aff>c</font><font color=#0035ff>e</font><font color=#0000ff>s</font><font color=#2B00ff>f</font><font color=#6000ff>u</font><font color=#9500ff>l</font><font color=#CA00ff>l</font><font color=#FF00ff>!</font><font color=#FF00D4> </font><font color=#FF009F>:</font><font color=#FF006A>)</font></b>" >> /home/$user/.systemclean/2.log
  521.  
  522. zenity --info --text "Clean complete succesfull!" --window-icon="/home/$user/.systemclean/systemclean.png" --timeout=1
  523.  
  524. echo "</font>
  525.  
  526.  
  527. After cleaning:
  528. --------------------------------------<font color=lightgrey>" >> /home/$user/.systemclean/results.html
  529. df -Th | grep -v "fs" | sort >> /home/$user/.systemclean/results.html
  530. echo "
  531. $installpack packages" >> /home/$user/.systemclean/results.html
  532.  
  533. echo "</font>
  534.  
  535. ********************************************************************
  536. <font color=lightgrey>
  537. You can see more details results
  538. in the logs /home/$user/.systemclean
  539. </font>
  540. ------------------
  541. --- System Log ---
  542. ------------------<font color=#347C2C>" >> /home/$user/.systemclean/results.html
  543. cat /home/$user/.systemclean/1.log >> /home/$user/.systemclean/results.html
  544. echo "</font>
  545. ----------------
  546. --- Home Log ---
  547. ----------------<font color=lightgrey>
  548. Deleted `cat /home/$user/.systemclean/2.log | grep -c "home"` files</font><font color=#347C2C>" >> /home/$user/.systemclean/results.html
  549. cat /home/$user/.systemclean/2.log >> /home/$user/.systemclean/results.html
  550. echo "<center><img src=http://i.imgur.com/wq6SwtO.png height=192 width=192 /></center>
  551. </font></pre></code></body></html>" >> /home/$user/.systemclean/results.html
  552.  
  553. zenity --text-info --title="-- Results --" --width="600" --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --html --filename="/home/$user/.systemclean/results.html"
  554. [[ $response = *SystemClean** ]] && echo "" > /home/$user/.systemclean/1.log
  555. [[ $response = *SystemClean** ]] && echo "" > /home/$user/.systemclean/2.log
  556. [[ $response = *SystemClean** ]] && echo "" > /home/$user/.systemclean/kernels.txt
  557. [[ $response = *SystemClean** ]] && $sys_clean > /home/$user/.systemclean/date.txt
  558. [[ $response = *SystemClean** ]] && cat /home/$user/.systemclean/results.html | head -n 40 > ~/.systemclean/results_tmp.html && mv /home/$user/.systemclean/results_tmp.html /home/$user/.systemclean/results.html
  559. [[ $response = *SystemClean** ]] && cat /home/$user/.systemclean/results_old.html | head -n 40 > ~/.systemclean/results_old_tmp.html && mv /home/$user/.systemclean/results_old_tmp.html /home/$user/.systemclean/results_old.html
  560. wget --no-cache http://pastebin.com/raw.php?i=vVJLnJqh -O /home/$user/.systemclean/update_version
  561. sleep 1
  562. if [ "$(cat /home/$user/.systemclean/update_version)" = "newer version is available" ]; then
  563. zenity --question --text="A newer version of SystemClean is available.\nDo you want to download it?" --window-icon="/home/$user/.systemclean/systemclean.png" --cancel-label="Remind me later" --ok-label="Download it now"
  564. if [ $? -eq 0 ] ; then
  565. x-www-browser http://gnome-look.org/content/show.php/SystemClean?content=132913
  566. exit 0
  567. fi fi
  568. exit 0
  569. fi
  570.  
  571. echo "" > /home/$user/.systemclean/kernels.txt
  572.  
  573. t=0
  574. while [ $t = "0" ]
  575. do
  576. zenity --entry --title="Password" --text="Enter your Password:" --entry-text "" --hide-text | sudo -S echo "ok"
  577. if [ $? != "0" ]; then
  578. zenity --question --title="Wrong Password" --text="Wrong Password\n Try Again?"
  579. if [ $? != "0" ]; then exit 0; fi
  580. else
  581. t=1
  582. fi
  583. done
  584.  
  585. (
  586. echo "# Start clean System.\n\Please wait..."
  587. sleep 1
  588. [[ $respo = *Autoremove* ]] && sudo apt-get -y --purge autoremove >> /home/$user/.systemclean/1.log
  589. [[ $respo = *Autoremove* ]] && sudo apt-get -y autoremove >> /home/$user/.systemclean/1.log
  590. [[ $respo = *Autoclean* ]] && sudo apt-get -y autoclean >> /home/$user/.systemclean/1.log
  591. [[ $respo = *Clean* ]] && sudo apt-get -y clean >> /home/$user/.systemclean/1.log
  592. [[ $respo = */tmp* ]] && find /tmp/* -type d ! -perm -g+r,u+r,o+r -prune -o -print -exec rm {} \; >> /home/$user/.systemclean/1.log
  593. [[ $respo = *Clean_unneeded_files* ]] && aptitude search '~c' -F '%p' | xargs -n 30 sudo aptitude -y purge >> /home/$user/.systemclean/1.log
  594. [[ $respo = *Broken_packages_lists** ]] && sudo find /var/lib/apt/lists/ -type f -delete >> /home/$user/.systemclean/1.log && sudo apt-get update >> /home/$user/.systemclean/1.log
  595. [[ $respo = *System_Logs** ]] && sudo find /var/log/ -maxdepth 1 -type f -delete >> /home/$user/.systemclean/1.log
  596. [[ $respo = *System_Logs** ]] && sudo find /var/log/*/ -maxdepth 1 -type f -delete >> /home/$user/.systemclean/1.log
  597. [[ $respo = *Trash** ]] && sudo rm -r /root/.local/share/Trash/info/ >> /home/$user/.systemclean/1.log
  598. [[ $respo = *Trash** ]] && sudo rm -r /root/.local/share/Trash/files/ >> /home/$user/.systemclean/1.log
  599. [[ $respo = *Memory_Cache** ]] && sudo sh -c "sync; echo 3 > /proc/sys/vm/drop_caches"
  600. [[ :$respo: = *:$kern1:* ]] && echo "$kern1" >> /home/$user/.systemclean/kernels.txt
  601. [[ :$respo: = *:$kern2:* ]] && echo "$kern2" >> /home/$user/.systemclean/kernels.txt
  602. [[ :$respo: = *:$kern3:* ]] && echo "$kern3" >> /home/$user/.systemclean/kernels.txt
  603. [[ :$respo: = *:$kern4:* ]] && echo "$kern4" >> /home/$user/.systemclean/kernels.txt
  604. [[ :$respo: = *:$kern5:* ]] && echo "$kern5" >> /home/$user/.systemclean/kernels.txt
  605. [[ :$respo: = *:$kern6:* ]] && echo "$kern6" >> /home/$user/.systemclean/kernels.txt
  606. [[ :$respo: = *:$kern7:* ]] && echo "$kern7" >> /home/$user/.systemclean/kernels.txt
  607. [[ :$respo: = *:$kern8:* ]] && echo "$kern8" >> /home/$user/.systemclean/kernels.txt
  608. [[ :$respo: = *:$kern9:* ]] && echo "$kern9" >> /home/$user/.systemclean/kernels.txt
  609. [[ :$respo: = *:$kern10:* ]] && echo "$kern10" >> /home/$user/.systemclean/kernels.txt
  610. [[ :$respo: = *:$kern11:* ]] && echo "$kern11" >> /home/$user/.systemclean/kernels.txt
  611. [[ :$respo: = *:$kern12:* ]] && echo "$kern12" >> /home/$user/.systemclean/kernels.txt
  612. [[ :$respo: = *:$kern13:* ]] && echo "$kern13" >> /home/$user/.systemclean/kernels.txt
  613. [[ :$respo: = *:$kern14:* ]] && echo "$kern14" >> /home/$user/.systemclean/kernels.txt
  614. [[ :$respo: = *:$kern15:* ]] && echo "$kern15" >> /home/$user/.systemclean/kernels.txt
  615. [[ :$respo: = *:$kern16:* ]] && echo "$kern16" >> /home/$user/.systemclean/kernels.txt
  616. [[ :$respo: = *:$kern17:* ]] && echo "$kern17" >> /home/$user/.systemclean/kernels.txt
  617. [[ :$respo: = *:$kern18:* ]] && echo "$kern18" >> /home/$user/.systemclean/kernels.txt
  618. [[ :$respo: = *:$kern19:* ]] && echo "$kern19" >> /home/$user/.systemclean/kernels.txt
  619. [[ :$respo: = *:$kern20:* ]] && echo "$kern20" >> /home/$user/.systemclean/kernels.txt
  620. [[ :$respo: = *:$kern21:* ]] && echo "$kern21" >> /home/$user/.systemclean/kernels.txt
  621. [[ :$respo: = *:$kern22:* ]] && echo "$kern22" >> /home/$user/.systemclean/kernels.txt
  622. [[ :$respo: = *:$kern23:* ]] && echo "$kern23" >> /home/$user/.systemclean/kernels.txt
  623. [[ :$respo: = *:$kern24:* ]] && echo "$kern24" >> /home/$user/.systemclean/kernels.txt
  624. [[ :$respo: = *:$kern25:* ]] && echo "$kern25" >> /home/$user/.systemclean/kernels.txt
  625. [[ :$respo: = *:$kern26:* ]] && echo "$kern26" >> /home/$user/.systemclean/kernels.txt
  626. [[ :$respo: = *:$kern27:* ]] && echo "$kern27" >> /home/$user/.systemclean/kernels.txt
  627. [[ :$respo: = *:$kern28:* ]] && echo "$kern28" >> /home/$user/.systemclean/kernels.txt
  628. [[ :$respo: = *:$kern29:* ]] && echo "$kern29" >> /home/$user/.systemclean/kernels.txt
  629. [[ :$respo: = *:$kern30:* ]] && echo "$kern30" >> /home/$user/.systemclean/kernels.txt
  630. [[ :$respo: = *:$kern31:* ]] && echo "$kern31" >> /home/$user/.systemclean/kernels.txt
  631. [[ :$respo: = *:$kern32:* ]] && echo "$kern32" >> /home/$user/.systemclean/kernels.txt
  632. [[ :$respo: = *:$kern33:* ]] && echo "$kern33" >> /home/$user/.systemclean/kernels.txt
  633. [[ :$respo: = *:$kern34:* ]] && echo "$kern34" >> /home/$user/.systemclean/kernels.txt
  634. [[ :$respo: = *:$kern35:* ]] && echo "$kern35" >> /home/$user/.systemclean/kernels.txt
  635. [[ :$respo: = *:$kern36:* ]] && echo "$kern36" >> /home/$user/.systemclean/kernels.txt
  636. [[ :$respo: = *:$kern37:* ]] && echo "$kern37" >> /home/$user/.systemclean/kernels.txt
  637. [[ :$respo: = *:$kern38:* ]] && echo "$kern38" >> /home/$user/.systemclean/kernels.txt
  638. [[ :$respo: = *:$kern39:* ]] && echo "$kern39" >> /home/$user/.systemclean/kernels.txt
  639. [[ :$respo: = *:$kern40:* ]] && echo "$kern40" >> /home/$user/.systemclean/kernels.txt
  640. [[ :$respo: = *:$kern41:* ]] && echo "$kern41" >> /home/$user/.systemclean/kernels.txt
  641. [[ :$respo: = *:$kern42:* ]] && echo "$kern42" >> /home/$user/.systemclean/kernels.txt
  642. [[ :$respo: = *:$kern43:* ]] && echo "$kern43" >> /home/$user/.systemclean/kernels.txt
  643. [[ :$respo: = *:$kern44:* ]] && echo "$kern44" >> /home/$user/.systemclean/kernels.txt
  644. [[ :$respo: = *:$kern45:* ]] && echo "$kern45" >> /home/$user/.systemclean/kernels.txt
  645. [[ :$respo: = *:$kern46:* ]] && echo "$kern46" >> /home/$user/.systemclean/kernels.txt
  646. [[ :$respo: = *:$kern47:* ]] && echo "$kern47" >> /home/$user/.systemclean/kernels.txt
  647. [[ :$respo: = *:$kern48:* ]] && echo "$kern48" >> /home/$user/.systemclean/kernels.txt
  648. [[ :$respo: = *:$kern49:* ]] && echo "$kern49" >> /home/$user/.systemclean/kernels.txt
  649. [[ :$respo: = *:$kern50:* ]] && echo "$kern50" >> /home/$user/.systemclean/kernels.txt
  650. sleep 1
  651. if ! grep -q "linux" /home/$user/.systemclean/kernels.txt; then
  652. sleep 1
  653. echo "0 kernels to remove"
  654. else
  655. sleep 1
  656. sort -u -o /home/$user/.systemclean/kernels.txt /home/$user/.systemclean/kernels.txt
  657. sleep 1
  658. echo "$(cat /home/$user/.systemclean/kernels.txt | xargs)" > /home/$user/.systemclean/kernels.txt
  659. sleep 1
  660. sudo apt-get -y purge $(cat /home/$user/.systemclean/kernels.txt) >> /home/$user/.systemclean/1.log
  661. sudo update-grub >> /home/$user/.systemclean/1.log
  662. fi
  663.  
  664. ) |
  665. zenity --progress \
  666. --width=400 \
  667. --window-icon="/home/$user/.systemclean/systemclean.png" \
  668. --title="Clean your System!" \
  669. --percentage=0 \
  670. --pulsate \
  671. --auto-close
  672.  
  673. if [ "$?" = 1 ] ; then
  674.         zenity --error \
  675.           --text="Clear canceled."
  676. exit 1
  677. fi
  678.  
  679. if [ "$?" = -1 ] ; then
  680.         zenity --error \
  681.           --text="Please read the logs to the folder .systemclean\nand see what went wrong."
  682. exit 1
  683. fi
  684.  
  685. response=$(zenity  --list  --width="450"  --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --text "Choose the programs you want to clean cache\n\nIf you don't want to clear the cache of programs, just select <b>OK</b>!" --checklist  --column "Choose" --column "Program" FALSE "AceStream" FALSE "Chrome" FALSE "Chromium" FALSE "Clementine" FALSE "Compiz" FALSE "Epiphany" FALSE "Evolution" FALSE "Firefox" FASLE "Flash_Player" FALSE "Icedtea" FALSE "Google_Earth - Temporary files" FALSE "Guayadeque" FALSE "Java" FALSE "LuckyBackup" FALSE "Miro" FALSE "Mozilla-Nightly" FALSE "Opera" FALSE "Pigdin" FALSE "Recently-used" FALSE "Seamonkey" FALSE "Swiftweasel" FALSE "SystemClean - history" FALSE "thumbnails - with more than 7 days of use" FALSE "Thumbs.db" FALSE "Thunderbird" FALSE "TorChat" FALSE "Transmission" FALSE "Vidalia_tor" FALSE "Vlc" FALSE "Wallpapers" FALSE "Trash - $user"  --separator=":")
  686.  
  687. if [ $? -eq 1 ] ; then
  688.         zenity --error \
  689.           --text="Clear canceled."
  690. exit 1
  691. fi
  692.  
  693. if [ "$response" = "" ] ; then
  694. echo "
  695. --------------------------------------
  696. </font><b>
  697. <font color=#FF0000>C</font><font color=#FF3500>l</font><font color=#FF6A00>e</font><font color=#FF9F00>a</font><font color=#FFD400>n</font><font color=#FFff00> </font><font color=#CAff00>c</font><font color=#95ff00>o</font><font color=#60ff00>m</font><font color=#2Bff00>p</font><font color=#00ff00>l</font><font color=#00ff35>e</font><font color=#00ff6A>t</font><font color=#00ff9F>e</font><font color=#00ffD4> </font><font color=#00ffff>s</font><font color=#00D4ff>u</font><font color=#009Fff>c</font><font color=#006Aff>c</font><font color=#0035ff>e</font><font color=#0000ff>s</font><font color=#2B00ff>f</font><font color=#6000ff>u</font><font color=#9500ff>l</font><font color=#CA00ff>l</font><font color=#FF00ff>!</font><font color=#FF00D4> </font><font color=#FF009F>:</font><font color=#FF006A>)</font></b>" >> /home/$user/.systemclean/2.log
  698.  
  699. zenity --info --text "Clean complete succesfull!" --window-icon="/home/$user/.systemclean/systemclean.png" --timeout=1
  700.  
  701. echo "</font>
  702.  
  703.  
  704. After cleaning:
  705. --------------------------------------<font color=lightgrey>" >> /home/$user/.systemclean/results.html
  706. df -Th | grep -v "fs" | sort >> /home/$user/.systemclean/results.html
  707. echo "
  708. $installpack packages" >> /home/$user/.systemclean/results.html
  709.  
  710. echo "</font>
  711.  
  712. ********************************************************************
  713. <font color=lightgrey>
  714. You can see more details results
  715. in the logs /home/$user/.systemclean
  716. </font>
  717. ------------------
  718. --- System Log ---
  719. ------------------<font color=#347C2C>" >> /home/$user/.systemclean/results.html
  720. cat /home/$user/.systemclean/1.log >> /home/$user/.systemclean/results.html
  721. echo "</font>
  722. ----------------
  723. --- Home Log ---
  724. ----------------<font color=lightgrey>
  725. Deleted `cat /home/$user/.systemclean/2.log | grep -c "home"` files</font><font color=#347C2C>" >> /home/$user/.systemclean/results.html
  726. cat /home/$user/.systemclean/2.log >> /home/$user/.systemclean/results.html
  727. echo "<center><img src=http://i.imgur.com/wq6SwtO.png height=192 width=192 /></center>
  728. </font></pre></code></body></html>" >> /home/$user/.systemclean/results.html
  729.  
  730. zenity --text-info --title="-- Results --" --width="600" --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --html --filename="/home/$user/.systemclean/results.html"
  731. [[ $response = *SystemClean** ]] && echo "" > /home/$user/.systemclean/1.log
  732. [[ $response = *SystemClean** ]] && echo "" > /home/$user/.systemclean/2.log
  733. [[ $response = *SystemClean** ]] && echo "" > /home/$user/.systemclean/kernels.txt
  734. [[ $response = *SystemClean** ]] && $sys_clean > /home/$user/.systemclean/date.txt
  735. [[ $response = *SystemClean** ]] && cat /home/$user/.systemclean/results.html | head -n 40 > ~/.systemclean/results_tmp.html && mv /home/$user/.systemclean/results_tmp.html /home/$user/.systemclean/results.html
  736. [[ $response = *SystemClean** ]] && cat /home/$user/.systemclean/results_old.html | head -n 40 > ~/.systemclean/results_old_tmp.html && mv /home/$user/.systemclean/results_old_tmp.html /home/$user/.systemclean/results_old.html
  737. wget --no-cache http://pastebin.com/raw.php?i=vVJLnJqh -O /home/$user/.systemclean/update_version
  738. sleep 1
  739. if [ "$(cat /home/$user/.systemclean/update_version)" = "newer version is available" ]; then
  740. zenity --question --text="A newer version of SystemClean is available.\nDo you want to download it?" --window-icon="/home/$user/.systemclean/systemclean.png" --cancel-label="Remind me later" --ok-label="Download it now"
  741. if [ $? -eq 0 ] ; then
  742. x-www-browser http://gnome-look.org/content/show.php/SystemClean?content=132913
  743. exit 0
  744. fi fi
  745. exit 0
  746. fi
  747.  
  748. (
  749. echo ; sleep 1
  750. [[ $response = *Firefox* ]] && ls -d /home/$user/.cache/mozilla/firefox/*.*/cache*/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.cache/mozilla/firefox/*.*/cache*/*
  751. [[ $response = *Firefox* ]] && ls -d /home/$user/.cache/mozilla/firefox/*.*/thumbnails/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.cache/mozilla/firefox/*.*/thumbnails/*
  752. [[ $response = *Firefox* ]] && ls -d /home/$user/.cache/mozilla/firefox/*.*/OfflineCache/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.cache/mozilla/firefox/*.*/OfflineCache/*
  753. [[ $response = *Firefox* ]] && ls -d /home/$user/.cache/mozilla/firefox/*.*/startupCache/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.cache/mozilla/firefox/*.*/startupCache/*
  754. [[ $response = *Mozilla-Nightly* ]] && ls -d /home/$user/.cache/mozilla/firefox-trunk/*.*/cache*/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.cache/mozilla/firefox-trunk/*.*/cache*/*
  755. [[ $response = *Mozilla-Nightly* ]] && ls -d /home/$user/.cache/mozilla/firefox-trunk/*.*/thumbnails/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.cache/mozilla/firefox-trunk/*.*/thumbnails/*
  756. [[ $response = *Mozilla-Nightly* ]] && ls -d /home/$user/.cache/mozilla/firefox-trunk/*.*/OfflineCache/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.cache/mozilla/firefox-trunk/*.*/OfflineCache/*
  757. [[ $response = *Mozilla-Nightly* ]] && ls -d /home/$user/.cache/mozilla/firefox-trunk/*.*/startupCache/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.cache/mozilla/firefox-trunk/*.*/startupCache/*
  758. [[ $response = *Transmission* ]] && ls -d /home/$user/.cache/transmission/favicons/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.cache/transmission/favicons/*
  759. [[ $response = *Vlc* ]] && ls -d /home/$user/.cache/vlc/art/artistalbum/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.cache/vlc/art/artistalbum/*
  760. [[ $response = *Vlc* ]] && ls -d /home/$user/.cache/vlc/art/arturl/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.cache/vlc/art/arturl/*
  761. [[ $response = *Icedtea* ]] && ls -d /home/$user/.icedtea/cache/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.icedtea/cache/*
  762. [[ $response = *Recently-used* ]] && ls -d /home/$user/.local/share/recently-used.* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.local/share/recently-used.*
  763. [[ $response = *Flash_Player* ]] && ls -d /home/$user/.macromedia/Flash_Player/macromedia.com/support/flashplayer/sys/#* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.macromedia/Flash_Player/macromedia.com/support/flashplayer/sys/#*
  764. [[ $response = *Flash_Player* ]] && ls -d /home/$user/.macromedia/Flash_Player/#SharedObjects/*/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.macromedia/Flash_Player/#SharedObjects/*/*
  765. [[ $response = *Vidalia_tor* ]] && ls -d /home/$user/.tor/cached-* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.tor/cached-*
  766. [[ $response = *TorChat* ]] && ls -d /home/$user/.torchat/Tor/tor_data/cached* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.torchat/Tor/tor_data/cached*
  767. [[ $response = *Guayadeque* ]] && ls -d /home/$user/.guayadeque/cache.db >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.guayadeque/cache.db
  768. [[ $response = *Chrome* ]] && ls -d /home/$user/.cache/google-chrome/Default/Cache/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.cache/google-chrome/Default/Cache/*
  769. [[ $response = *Epiphany* ]] && ls -d /home/$user/.gnome2/epiphany/favicon_cache/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.gnome2/epiphany/favicon_cache/*
  770. [[ $response = *Seamonkey* ]] && ls -d /home/$user/.mozilla/seamonkey/*/Cache/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.mozilla/seamonkey/*/Cache/*
  771. [[ $response = *Swiftweasel* ]] && ls -d /home/$user/.sw35/swiftweasel/*/Cache/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.sw35/swiftweasel/*/Cache/*
  772. [[ $response = *Opera* ]] && ls -d /home/$user/.opera/cache/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.opera/cache/*
  773. [[ $response = *Chromium* ]] && ls -d /home/$user/.cache/chromium/Default/*/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.cache/chromium/Default/*/*
  774. [[ $response = *Evolution* ]] && ls -d /home/$user/.evolution/cache/tmp/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.evolution/cache/tmp/*
  775. [[ $response = *Java* ]] && ls -d /home/$user/.java/.userPrefs/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.java/.userPrefs/*
  776. [[ $response = *Compiz* ]] && ls -d /home/$user/.cache/compizconfig/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.cache/compizconfig/*
  777. [[ $response = *Compiz* ]] && ls -d /home/$user/.config/compiz/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.config/compiz/*
  778. [[ $response = *Compiz* ]] && ls -d /home/$user/.compiz/session/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.compiz/session/*
  779. [[ $response = *Clementine* ]] && ls -d /home/$user/.config/Clementine/networkcache/http/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.config/Clementine/networkcache/http/*
  780. [[ $response = *Wallpapers* ]] && ls -d /home/$user/.cache/wallpaper/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.cache/wallpaper/*
  781. [[ $response = *Google_Earth** ]] && ls -d /home/$user/.googleearth/Temp/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.googleearth/Temp/*
  782. [[ $response = *Google_Earth** ]] && ls -d /home/$user/.googleearth/Cache/icons/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.googleearth/Cache/icons/*
  783. [[ $response = *Google_Earth** ]] && ls -d /home/$user/.googleearth/Cache/qwebdata/offline_access/*/** >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.googleearth/Cache/qwebdata/offline_access/*/**
  784. [[ $response = *Google_Earth** ]] && ls -d /home/$user/.googleearth/Cache/unified_cache_leveldb_*/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.googleearth/Cache/unified_cache_leveldb_*/*
  785. [[ $response = *Google_Earth** ]] && ls -d /home/$user/.googleearth/Cache/webdata/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.googleearth/Cache/webdata/*
  786. [[ $response = *Google_Earth** ]] && ls -d /home/$user/.googleearth/Cache/dbCache.dat.index >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.googleearth/Cache/dbCache.dat.index
  787. [[ $response = *Google_Earth** ]] && ls -d /home/$user/.googleearth/Cache/dbroot_cache >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.googleearth/Cache/dbroot_cache
  788. [[ $response = *Google_Earth** ]] && ls -d /home/$user/.googleearth/Cache/dbCache.dat >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.googleearth/Cache/dbCache.dat
  789. [[ $response = *AceStream* ]] && ls -d /home/$user/.ACEStream/collected_torrent_files/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.ACEStream/collected_torrent_files/*
  790. [[ $response = *Thunderbird* ]] && ls -d /home/$user/.cache/thunderbird/*.default/Cache/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.cache/thunderbird/*.default/Cache/*
  791. [[ $response = *Thunderbird* ]] && ls -d /home/$user/.cache/thunderbird/*.default/startupCache/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.cache/thunderbird/*.default/startupCache/*
  792. [[ $response = *Thunderbird* ]] && ls -d /home/$user/.cache/thunderbird/*.default/OfflineCache/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.cache/thunderbird/*.default/OfflineCache/*
  793. [[ $response = *Pigdin* ]] && ls -d /home/$user/.purple/icons/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.purple/icons/*
  794. [[ $response = *Miro* ]] && ls -d /home/$user/.miro/icon-cache/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.miro/icon-cache/*
  795. [[ $response = *Miro* ]] && ls -d /home/$user/.miro/*.log* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.miro/*.log*
  796. [[ $response = *LuckyBackup* ]] && ls -d /home/$user/.luckyBackup/logs/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.luckyBackup/logs/*
  797. [[ $response = *LuckyBackup* ]] && ls -d /home/$user/.luckyBackup/snaps/* >> /home/$user/.systemclean/2.log && rm -rf /home/$user/.luckyBackup/snaps/*
  798. [[ $response = *thumbnails** ]] && find /home/$user/.thumbnails -type f -atime +7 >> /home/$user/.systemclean/2.log ; find /home/$user/.thumbnails -type f -atime +7 -exec rm {} \;
  799. [[ $response = *thumbnails** ]] && find /home/$user/.cache/thumbnails -type f -atime +7 >> /home/$user/.systemclean/2.log ; find /home/$user/.cache/thumbnails -type f -atime +7 -exec rm {} \;
  800. [[ $response = *Thumbs.db* ]] && find /home/$user/ -name Thumbs.db -type f -atime +7 >> /home/$user/.systemclean/2.log ; find /home/$user/ -name Thumbs.db -exec rm {} \;
  801. [[ $response = *Trash** ]] && ls -d /home/$user/.local/share/Trash/*/** >> /home/$user/.systemclean/2.log && rm -rf /home/*/.local/share/Trash/*/**
  802. ) |
  803. zenity --progress \
  804. --width=400 \
  805. --window-icon="/home/$user/.systemclean/systemclean.png" \
  806. --title="Clean cache programs!" \
  807. --percentage=0 \
  808. --pulsate \
  809. --auto-close
  810.  
  811. echo "
  812. --------------------------------------
  813. </font><b>
  814. <font color=#FF0000>C</font><font color=#FF3500>l</font><font color=#FF6A00>e</font><font color=#FF9F00>a</font><font color=#FFD400>n</font><font color=#FFff00> </font><font color=#CAff00>c</font><font color=#95ff00>o</font><font color=#60ff00>m</font><font color=#2Bff00>p</font><font color=#00ff00>l</font><font color=#00ff35>e</font><font color=#00ff6A>t</font><font color=#00ff9F>e</font><font color=#00ffD4> </font><font color=#00ffff>s</font><font color=#00D4ff>u</font><font color=#009Fff>c</font><font color=#006Aff>c</font><font color=#0035ff>e</font><font color=#0000ff>s</font><font color=#2B00ff>f</font><font color=#6000ff>u</font><font color=#9500ff>l</font><font color=#CA00ff>l</font><font color=#FF00ff>!</font><font color=#FF00D4> </font><font color=#FF009F>:</font><font color=#FF006A>)</font></b>" >> /home/$user/.systemclean/2.log
  815.  
  816. zenity --info --text "Clean complete succesfull!" --window-icon="/home/$user/.systemclean/systemclean.png" --timeout=1
  817.  
  818. echo "</font>
  819.  
  820.  
  821. After cleaning:
  822. --------------------------------------<font color=lightgrey>" >> /home/$user/.systemclean/results.html
  823. df -Th | grep -v "fs" | sort >> /home/$user/.systemclean/results.html
  824. echo "
  825. $installpack packages" >> /home/$user/.systemclean/results.html
  826.  
  827. echo "</font>
  828.  
  829. ********************************************************************
  830. <font color=lightgrey>
  831. You can see more details results
  832. in the logs /home/$user/.systemclean
  833. </font>
  834. ------------------
  835. --- System Log ---
  836. ------------------<font color=#347C2C>" >> /home/$user/.systemclean/results.html
  837. cat /home/$user/.systemclean/1.log >> /home/$user/.systemclean/results.html
  838. echo "</font>
  839. ----------------
  840. --- Home Log ---
  841. ----------------<font color=lightgrey>
  842. Deleted `cat /home/$user/.systemclean/2.log | grep -c "home"` files</font><font color=#347C2C>" >> /home/$user/.systemclean/results.html
  843. cat /home/$user/.systemclean/2.log >> /home/$user/.systemclean/results.html
  844. echo "<center><img src=http://i.imgur.com/wq6SwtO.png height=192 width=192 /></center>
  845. </font></pre></code></body></html>" >> /home/$user/.systemclean/results.html
  846.  
  847. zenity --text-info --title="-- Results --" --width="600" --height="600" --window-icon="/home/$user/.systemclean/systemclean.png" --html --filename="/home/$user/.systemclean/results.html"
  848. [[ $response = *SystemClean** ]] && echo "" > /home/$user/.systemclean/1.log
  849. [[ $response = *SystemClean** ]] && echo "" > /home/$user/.systemclean/2.log
  850. [[ $response = *SystemClean** ]] && echo "" > /home/$user/.systemclean/kernels.txt
  851. [[ $response = *SystemClean** ]] && $sys_clean > /home/$user/.systemclean/date.txt
  852. [[ $response = *SystemClean** ]] && cat /home/$user/.systemclean/results.html | head -n 40 > ~/.systemclean/results_tmp.html && mv /home/$user/.systemclean/results_tmp.html /home/$user/.systemclean/results.html
  853. [[ $response = *SystemClean** ]] && cat /home/$user/.systemclean/results_old.html | head -n 40 > ~/.systemclean/results_old_tmp.html && mv /home/$user/.systemclean/results_old_tmp.html /home/$user/.systemclean/results_old.html
  854. wget --no-cache http://pastebin.com/raw.php?i=vVJLnJqh -O /home/$user/.systemclean/update_version
  855. sleep 1
  856. if [ "$(cat /home/$user/.systemclean/update_version)" = "newer version is available" ]; then
  857. zenity --question --text="A newer version of SystemClean is available.\nDo you want to download it?" --window-icon="/home/$user/.systemclean/systemclean.png" --cancel-label="Remind me later" --ok-label="Download it now"
  858. if [ $? -eq 0 ] ; then
  859. x-www-browser http://gnome-look.org/content/show.php/SystemClean?content=132913
  860. exit 0
  861. fi fi
  862. exit 0
  863. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement