Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- clear
- echo "Edited by Commander aka Galactica"
- echo "This is not supported by the user to merge your account so please don't attack me if it did not work properly."
- echo "This has been tested on my computer and works flawlessly!"
- sleep 5
- Echo "Please type the username that Vistar7 Transformation pack should install to"
- read user
- echo "You typed $user if not please stop the script by pressing ctl+c or. If typed correctly please whait...."
- sleep 5
- ##NEWUSERNAME="vistar7"
- if [ `whoami` != "root" ]; then
- echo 'Permission error. Use "sudo ./install.sh"'
- exit 1
- fi
- echo "Adding additional repository from samrog131"
- if [ ! -d /etc/apt/sources.list.d ]; then
- mkdir /etc/apt/sources.list.d
- fi
- cp samrog131.sources.list /etc/apt/sources.list.d/
- sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com A47958D42B7E03A7
- apt-get update
- echo "Installing required software..."
- apt-get install -y --force-yes kwin-style-dekorator \
- plasma-widget-cashew-off \
- plasma-widget-adjustableclock \
- plasma-widget-panelspacer \
- plasma-widget-stasks
- echo "Finished."
- echo -n "Disabling additional repository..."
- sed 's/^/# /' -i /etc/apt/sources.list.d/samrog131.sources.list
- echo "done."
- ##Removed add user!
- ##------------------------------------------------------
- ##echo "Creating user."
- ##useradd -m $NEWUSERNAME -s /bin/bash && \
- ##echo "User created. Enter password for new user."
- ##passwd $NEWUSERNAME
- ##------------------------------------------------------
- ## /Removed add user!
- echo "*************Installing Vistar7 Transformation Pack*************"
- echo -n "Extracting configuration files..."
- tar fzx Vistar7-configuration.tar.gz -C /home/$user/
- echo "done."
- echo -n "Extracting fonts..."
- tar fzx W7fonts.tar.gz -C /home/$user/.fonts/
- echo "done."
- echo -n "Extracting mouse theme..."
- tar fzx Aero_cursors.tar.gz -C /home/$user/.icons/
- echo "done."
- echo -n "Extracting sound themes..."
- tar fzx W7sounds.tar.gz -C /home/$user/.kde/share/sounds/
- echo "done."
- echo -n "Extracting Win7 icon theme..."
- tar fzx Win7-IconTheme.tar.gz -C /home/$user/.kde/share/icons/
- echo "done."
- echo -n "Extracting wallpapers..."
- tar fzx W7wallpapers.tar.gz -C /home/$user/.kde/share/
- echo "done."
- echo -n "Extracting deKorator theme..."
- tar fzx deKorator_theme.tar.gz -C /home/$user/.kde/share/apps/deKorator/themes/
- echo "done."
- echo -n "Extracting Vistar7 plasma theme..."
- tar fzx Vistar7_PlasmaTheme.tar.gz -C /home/$user/.kde/share/apps/desktoptheme/
- echo "done."
- echo -n "Extracting Vistar7 splash theme..."
- tar fzx Vistar7_Splash.tar.gz -C /home/$user/.kde/share/apps/ksplash/Themes/
- echo "done."
- ## REMOVED
- ##(chown ${NEWUSERNAME}:${NEWUSERNAME} -R /home/${NEWUSERNAME}/
- ## /REMOVED
- echo -n "Fixing paths in files..."
- FILESTOFIX="plasma-appletsrc kwindeKoratorrc"
- for FILETOFIX in ${FILESTOFIX}; do
- sed "s:$user:/home/$user:" -i /home/$user/.kde/share/config/${FILETOFIX}
- done
- echo "done."
- sleep 2
- clear
- echo "Script edited by Commander aka Galactica"
- echo "It is not recommended to install this theme on your primary account. That's why it is not doing that by default."
- echo ""
- echo "Vistar7 Transformation pack installed. Login as $user to test it."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement