TringaliLuca

Kubuntu tuning

Jun 7th, 2017
55
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. #Script to make Kubuntu usable for offices and schools
  3. sudo apt-get install img2pdf imagemagick ghostscript pdftk skanlite kamoso
  4.  
  5. wget https://dl.opendesktop.org/api/files/download/id/1460731752/118537-image2pdf.desktop
  6. sudo mv 118537-image2pdf.desktop /usr/share/kservices5/ServiceMenus/image2pdf.desktop
  7. kbuildsycoca5
  8.  
  9. sudo apt-get install kffmpegthumbnailer kde-thumbnailer-openoffice
  10.  
  11. #in ~/.kde/share/config/dolphinrc
  12. dolphinrc=$HOME"/.kde/share/config/dolphinrcOLD"
  13. filterbar="[General]\nFilterBar=true"
  14. if [ ! -f $dolphinrc ]; then
  15. echo -e $filterbar >> $dolphinrc
  16. fi
  17.  
  18. if grep -q "FilterBar=false" "$dolphinrc"; then
  19. sed -i 's/FilterBar=false/FilterBar=true/' "$dolphinrc"
  20. fi
  21.  
  22. if grep -q "FilterBar=true" "$dolphinrc"; then
  23. echo "FilterBar OK"
  24. else
  25.  
  26. if grep -q "\[General\]" "$dolphinrc"; then
  27. sed -i "s/\[General\]/${filterbar}/" "$dolphinrc"
  28. else
  29. echo -e $filterbar >> $dolphinrc
  30. fi
  31.  
  32. fi
  33.  
  34.  
  35.  
  36. sudo add-apt-repository ppa:philip5/extra
  37. sudo apt update
  38. sudo apt-get install kipi-plugins5 gwenview
  39.  
  40. #You might be interested also in https://userbase.kde.org/Tutorials/Modify_KDE_Software_Defaults
  41.  
  42.  
  43. sysrq="/etc/sysctl.d/10-magic-sysrq.conf"
  44. if grep -q "^kernel.sysrq" "$sysrq"; then
  45. sed -i "s/^kernel.sysrq/kernel.sysrq = 1 #/" "$sysrq"
  46. else
  47. echo -e "kernel.sysrq = 1" >> "$sysrq"
  48. fi
  49.  
  50. sudo apt-get install cups hplip hplip-gui
  51.  
  52. sudo apt-get install vlc speedcrunch rar unrar filelight samba smbclient aptitude
  53. sudo apt-get install inkscape filezilla  chromium-browser
RAW Paste Data