Advertisement
Guest User

Galactica

a guest
Sep 10th, 2009
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.22 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. clear
  4. echo "Edited by Commander aka Galactica"
  5. echo "This is not supported by the user to merge your account so please don't attack me if it did not work properly."
  6. echo "This has been tested on my computer and works flawlessly!"
  7. sleep 5
  8. Echo "Please type the username that Vistar7 Transformation pack should install to"
  9. read user
  10. echo "You typed $user if not please stop the script by pressing ctl+c or. If typed correctly please whait...."
  11. sleep 5
  12.  
  13. ##NEWUSERNAME="vistar7"
  14.  
  15. if [ `whoami` != "root" ]; then
  16. echo 'Permission error. Use "sudo ./install.sh"'
  17. exit 1
  18. fi
  19.  
  20. echo "Adding additional repository from samrog131"
  21. if [ ! -d /etc/apt/sources.list.d ]; then
  22. mkdir /etc/apt/sources.list.d
  23. fi
  24. cp samrog131.sources.list /etc/apt/sources.list.d/
  25. sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com A47958D42B7E03A7
  26. apt-get update
  27.  
  28. echo "Installing required software..."
  29. apt-get install -y --force-yes kwin-style-dekorator \
  30. plasma-widget-cashew-off \
  31. plasma-widget-adjustableclock \
  32. plasma-widget-panelspacer \
  33. plasma-widget-stasks
  34. echo "Finished."
  35.  
  36. echo -n "Disabling additional repository..."
  37. sed 's/^/# /' -i /etc/apt/sources.list.d/samrog131.sources.list
  38. echo "done."
  39.  
  40. ##Removed add user!
  41. ##------------------------------------------------------
  42. ##echo "Creating user."
  43. ##useradd -m $NEWUSERNAME -s /bin/bash && \
  44. ##echo "User created. Enter password for new user."
  45. ##passwd $NEWUSERNAME
  46. ##------------------------------------------------------
  47. ## /Removed add user!
  48.  
  49. echo "*************Installing Vistar7 Transformation Pack*************"
  50. echo -n "Extracting configuration files..."
  51. tar fzx Vistar7-configuration.tar.gz -C /home/$user/
  52. echo "done."
  53.  
  54. echo -n "Extracting fonts..."
  55. tar fzx W7fonts.tar.gz -C /home/$user/.fonts/
  56. echo "done."
  57.  
  58. echo -n "Extracting mouse theme..."
  59. tar fzx Aero_cursors.tar.gz -C /home/$user/.icons/
  60. echo "done."
  61.  
  62. echo -n "Extracting sound themes..."
  63. tar fzx W7sounds.tar.gz -C /home/$user/.kde/share/sounds/
  64. echo "done."
  65.  
  66. echo -n "Extracting Win7 icon theme..."
  67. tar fzx Win7-IconTheme.tar.gz -C /home/$user/.kde/share/icons/
  68. echo "done."
  69.  
  70. echo -n "Extracting wallpapers..."
  71. tar fzx W7wallpapers.tar.gz -C /home/$user/.kde/share/
  72. echo "done."
  73.  
  74. echo -n "Extracting deKorator theme..."
  75. tar fzx deKorator_theme.tar.gz -C /home/$user/.kde/share/apps/deKorator/themes/
  76. echo "done."
  77.  
  78. echo -n "Extracting Vistar7 plasma theme..."
  79. tar fzx Vistar7_PlasmaTheme.tar.gz -C /home/$user/.kde/share/apps/desktoptheme/
  80. echo "done."
  81.  
  82. echo -n "Extracting Vistar7 splash theme..."
  83. tar fzx Vistar7_Splash.tar.gz -C /home/$user/.kde/share/apps/ksplash/Themes/
  84. echo "done."
  85.  
  86. ## REMOVED
  87. ##(chown ${NEWUSERNAME}:${NEWUSERNAME} -R /home/${NEWUSERNAME}/
  88. ## /REMOVED
  89.  
  90. echo -n "Fixing paths in files..."
  91. FILESTOFIX="plasma-appletsrc kwindeKoratorrc"
  92. for FILETOFIX in ${FILESTOFIX}; do
  93. sed "s:$user:/home/$user:" -i /home/$user/.kde/share/config/${FILETOFIX}
  94. done
  95. echo "done."
  96.  
  97. sleep 2
  98. clear
  99. echo "Script edited by Commander aka Galactica"
  100. echo "It is not recommended to install this theme on your primary account. That's why it is not doing that by default."
  101. echo ""
  102. echo "Vistar7 Transformation pack installed. Login as $user to test it."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement