2011-08-15, 12:04
  #1
Medlem
DunderDeluxes avatar
jag installerade nyligen macbuntu på mitt ubuntu 11.04, problemet är att när jag ska avinstallera macbuntu(för att det inte är superstabilt och man blir trött på det ganska direkt) så öppnar jag uninstall.sh och trycker jag på "run i terminal" och då öppnas terminalen en kort stund (2 sek ungefär) och stängs ner, men mitt macbuntu förvinner aldrig och jag får inga alternativ i terminalen.

tacksam för svar.

MVH: Dunder
Citera
2011-08-15, 12:55
  #2
Medlem
Run3s avatar
Testa att starta scriptet från terminalen och se om du får något felmeddelande.

1. Öppna en terminal (Ctrl + Alt + T brukar funka).
2. Använd kommandot cd för att ta dig till mappen där scriptet ligger. T.ex. cd Downloads/macbuntu/
3. Kör sedan ./uninstall.sh
Citera
2011-08-15, 13:03
  #3
Medlem
DunderDeluxes avatar
jag är inte jätteduktig på terminal och sådant, vill du vara så snäll och dela upp det lite mer?
__________________
Senast redigerad av DunderDeluxe 2011-08-15 kl. 13:07. Anledning: felstavning
Citera
2011-08-15, 13:32
  #4
Medlem
DunderDeluxes avatar
hampus@DunderDeluxe:~$ /home/hampus/Hämtningar/Macbuntu-10.10/uninstall.sh force
Macbuntu - Mac OS X Transformation Pack

Deinstallation script

Attention!
This script will slide back to default Ubuntu desktop
all Macbuntu-10.10 components will be removed permanently

Checking currently installed version of Macbuntu-10.10...
Failed. Currently installed version is not compatible with this uninstall
Exiting...
__________________________________________________ _______________________
jag fick detta felmeddelande efter att ha provat ungefär det du sa. några fler förslag?
Citera
2011-08-15, 13:38
  #5
Medlem
Xexys avatar
Citat:
Ursprungligen postat av DunderDeluxe
hampus@DunderDeluxe:~$ /home/hampus/Hämtningar/Macbuntu-10.10/uninstall.sh force
Macbuntu - Mac OS X Transformation Pack

Deinstallation script

Attention!
This script will slide back to default Ubuntu desktop
all Macbuntu-10.10 components will be removed permanently

Checking currently installed version of Macbuntu-10.10...
Failed. Currently installed version is not compatible with this uninstall
Exiting...
__________________________________________________ _______________________
jag fick detta felmeddelande efter att ha provat ungefär det du sa. några fler förslag?

Hej, kan du skicka innehållet i uninstall.sh -filen här.

*EDIT: Sätt innehållet inom "Spoiler"-taggar.
Citera
2011-08-15, 13:46
  #6
Medlem
DunderDeluxes avatar
#!/bin/bash

# Macbuntu - Mac OS X Transformation Pack
# Author: lookout, elmigueluno
# Send feedback to lookout@losoft.org, elmigueluno@gmail.com
# Homepage: http://www.losoft.org/macbuntu/
#
# Copyright (c) 2010 Jan Komadowski
#
# This program is free software. Feel free to redistribute and/or
# modify it under the terms of the GNU General Public License v3
# as published by the Free Software Foundation.
# This program is distributed in the hope that it will be useful
# but comes WITHOUT ANY WARRANTY; without even the implied warranty
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# See the GNU General Public License for more details.

UBUVER="10.10"
UBUNTU="Ubuntu $UBUVER"

MACBUNTU="Macbuntu-$UBUVER"
VERSION="2.3"

MACBUNTUHOME="$HOME/.macbuntu"

CURRENT="$MACBUNTUHOME/$UBUVER-$VERSION"
BACKUP="$MACBUNTUHOME/backup"
BACKUPDIR="$BACKUP/$(date +%Y-%m-%d-%H:%M)"
BACKUPCURRENT="$BACKUP/current"

DOCKYPID=$(ps -o pid= -C docky)
COMPIZPID=$(ps -o pid= -C compiz)

RESOLUTION=$(xdpyinfo | grep -i dimensions: | sed 's/[^0-9]*pixels.*(.*).*//' | sed 's/[^0-9x]*//')
VRES=$(echo $RESOLUTION | sed 's/.*x//')
HRES=$(echo $RESOLUTION | sed 's/x.*//')

ARCH=$(uname -m)
ARCHDIR=`[ "$ARCH" == "x86_64" ] && echo "x64" || echo "x32"`

force=$1
tester=0

chk_user()
{
echo ""
echo "Checkin script user..."
if [ $(whoami) = "root" ]
then
echo "Failed."
echo "Root user not allowed, please run this script as a regular user."
echo "Exiting..."
exit 1;
fi
echo "Passed"
}

chk_root()
{
echo ""
echo "Checkin for a root access..."
s=`sudo cat /etc/issue`
if [ -n "$s" ]; then
return
fi
echo "Authorization failed."
echo "Exiting..."
exit 1;
}

chk_system()
{
echo ""
echo "Checking Ubuntu version..."
s=`cat /etc/issue | grep -i "$UBUNTU"`
if [ ! -n "$s" ]; then
echo "Failed. System not supported, script will end here"
echo "To ignore their compatibility with current OS try ./uninstall.sh force"
echo "Exiting..."
exit 1;
fi
echo "Passed"
}

chk_program()
{
s=`dpkg --status $1 | grep -q not-installed`
if [ ! -n "$s" ]; then
return 1
fi
return 0
}

chk_version()
{
echo ""
echo "Checking currently installed version of $MACBUNTU..."
d=$MACBUNTUHOME/current
if [ -f "$d" ]; then
s=`cat $MACBUNTUHOME/current | grep "$UBUVER-$VERSION"`
if [ ! -n "$s" ]; then
echo "Failed. Currently installed version is not compatible with this uninstall"
echo "Exiting..."
exit 1;
fi
else
echo "Failed. The script is not able to determine what version is currently installed"
echo "Exiting..."
exit 1;
fi
}

# Changing current to script dir
cd -- "$(dirname -- "$0")"

echo ""
echo "Macbuntu - Mac OS X Transformation Pack"
echo ""
echo "Deinstallation script"
echo ""
echo "Attention!"
echo "This script will slide back to default Ubuntu desktop"
echo "all $MACBUNTU components will be removed permanently"

case "$force" in
--force|force) ;;
*) chk_system ;;
esac

chk_version
chk_user

echo ""
echo "This script will completely remove $MACBUNTU and slide back to default Ubuntu desktop now"
echo "You must have root privileges to be able to uninstall all this components."
echo ""
echo "Attention!"
echo "Running scripts with root privileges is dangerous, if you do not trust the software"
echo "or you are unsure about the origin of this software, please abort (Control+C)."
echo "Macbuntu guarantee the safe code only if the application comes from this address"
echo "https://sourceforge.net/projects/macbuntu/"
echo ""
echo "Do you want to continue [Y/n]?"
read ans
case "$ans" in
n*|N*)
echo "Installation aborted. Exiting..."
exit 0;
esac

chk_root

if [ $tester == 0 ] ; then

echo "Uninstalling Macbuntu..."
rm -rf ~/.icons/$MACBUNTU-Cursors/
rm -rf ~/.icons/Macbuntu-Cursors/
sudo rm -rf /usr/share/icons/$MACBUNTU-Cursors/
sudo rm -rf /usr/share/icons/Macbuntu-Cursors/
rm -rf ~/.icons/$MACBUNTU-Icons/
rm -rf ~/.icons/Macbuntu-Icons/
sudo rm -rf /usr/share/icons/$MACBUNTU-Icons/
sudo rm -rf /usr/share/icons/Macbuntu-Icons/
sudo rm -f /usr/share/icons/applelogo.png
sudo rm -f /usr/share/icons/applelogo.tif
sudo rm -f /usr/share/icons/applelogo-black.svg
sudo rm -f /usr/share/icons/LoginIcons/apps/64/applelogo.png
sudo rm -f /usr/share/icons/LoginIcons/apps/64/applelogo.tif
sudo rm -f /usr/share/icons/LoginIcons/apps/64/applelogo-black.svg
rm -rf ~/.themes/$MACBUNTU/
rm -rf ~/.themes/Macbuntu/
sudo rm -rf /usr/share/themes/$MACBUNTU/
sudo rm -rf /usr/share/themes/Macbuntu/
rm -f ~/.fonts.conf
sudo rm -rf /usr/share/fonts/mac/ && sudo fc-cache -f -v

killall docky

echo ""
echo "Uninstalling Application Menu, Docky, Ubuntu-Tweak..."
sudo apt-get autoremove docky ubuntu-tweak appmenu-gtk indicator-applet-appmenu indicator-appmenu

# Disable Compiz
if [ ! -z $COMPIZPID ]; then
nohup metacity --replace > /dev/null &
fi

echo ""
echo "Unsetting..."
gconftool-2 --recursive-unset /apps/docky-2
gconftool-2 --recursive-unset /apps/panel
gconftool-2 --recursive-unset /apps/compiz

# Reloading Gnome Panel
killall gnome-panel

echo "Setting up Compiz Fusion..."
# Animation
sudo cp -f compiz/$ARCHDIR/original/libanimation.so /usr/lib/compiz/
sudo cp -f compiz/$ARCHDIR/original/animation.xml /usr/share/compiz/

echo "Setting up theme..."
# Metacity
gconftool-2 --set /apps/gwd/metacity_theme_opacity --type float 1
# Backgrounds
gconftool-2 --set /desktop/gnome/background/picture_filename --type string "/usr/share/backgrounds/warty-final-ubuntu.png"
# Gtk Theme
gconftool-2 --set /desktop/gnome/interface/gtk_theme --type string "Ambiance"
gconftool-2 --set /apps/metacity/general/theme --type string "Ambiance"
gconftool-2 --set /desktop/gnome/interface/icon_theme --type string "ubuntu-mono-dark"
# Cursor
gconftool-2 --set /desktop/gnome/peripherals/mouse/cursor_theme --type string "DMZ-White"
gconftool-2 --set /desktop/gnome/peripherals/mouse/cursor_size --type int 24
# Button layout
gconftool-2 --set /apps/metacity/general/button_layout --type string "close,minimize,maximize:"
# Icons
gconftool-2 --set /desktop/gnome/interface/toolbar_style --type string "icons"
gconftool-2 --set /desktop/gnome/interface/buttons_have_icons --type boolean false
gconftool-2 --set /desktop/gnome/interface/menus_have_icons --type boolean false
# Nautilus
gconftool-2 --set /apps/nautilus/preferences/default_folder_viewer --type string "icon_view"
gconftool-2 --set /apps/nautilus/preferences/side_pane_view --type string "NautilusPlacesSidebar"
gconftool-2 --set /apps/nautilus/preferences/sort_directories_first --type boolean true
gconftool-2 --set /apps/nautilus/preferences/start_with_location_bar --type boolean true
gconftool-2 --set /apps/nautilus/preferences/always_use_location_entry --type boolean false
gconftool-2 --set /apps/nautilus/preferences/start_with_sidebar --type boolean true
gconftool-2 --set /apps/nautilus/preferences/start_with_status_bar --type boolean true
gconftool-2 --set /apps/nautilus/preferences/start_with_toolbar --type boolean true
# Compositing manager
gconftool-2 --set /apps/metacity/general/compositing_manager --type boolean true
# Fonts
gconftool-2 --set /desktop/gnome/interface/font_name --type string "Sans 10"
gconftool-2 --set /desktop/gnome/interface/document_font_name --type string "Sans 10"
gconftool-2 --set /apps/nautilus/preferences/desktop_font --type string "Sans 10"
gconftool-2 --set /apps/metacity/general/titlebar_font --type string "Sans Bold 10"
gconftool-2 --set /desktop/gnome/interface/monospace_font_name --type string "Monospace 10"
# Terminal
gconftool-2 --set /apps/gnome-terminal/global/use_menu_accelerators --type boolean true
gconftool-2 --set /apps/gnome-terminal/profiles/Default/scrollback_unlimited --type boolean true
gconftool-2 --set /apps/gnome-terminal/profiles/Default/use_theme_background --type boolean true
gconftool-2 --set /apps/gnome-terminal/profiles/Default/use_theme_colors --type boolean true

echo "Setting up login screen..."
# Login screen
# Backgrounds
sudo -u gdm gconftool-2 --set /desktop/gnome/background/picture_filename --type string "/usr/share/backgrounds/warty-final-ubuntu.png"
# Gtk Theme
sudo -u gdm gconftool-2 --set /desktop/gnome/interface/icon_theme --type string "LoginIcons"
sudo -u gdm gconftool-2 --set /desktop/gnome/interface/gtk_theme --type string "Ambiance"
sudo -u gdm gconftool-2 --set /apps/metacity/general/theme --type string "Ambiance"
# Cursor
sudo -u gdm gconftool-2 --set /desktop/gnome/peripherals/mouse/cursor_size --type int 24
sudo -u gdm gconftool-2 --set /desktop/gnome/peripherals/mouse/cursor_theme --type string "DMZ-White"
# Logo
sudo -u gdm gconftool-2 --set /apps/gdm/simple-greeter/logo_icon_name --type string "computer"
sudo rm -rf /usr/share/icons/LoginIcons/icon-theme.cache
# Fonts
sudo -u gdm gconftool-2 --set /desktop/gnome/interface/font_name --type string "Sans 10"
sudo -u gdm gconftool-2 --set /apps/nautilus/preferences/desktop_font --type string "Sans 10"

echo "Setting up Plymouth theme..."
sudo rm -rf /lib/plymouth/themes/Paw-Ubuntu/
sudo rm -rf /lib/plymouth/themes/Paw-OSX/
sudo update-alternatives --set default.plymouth /lib/plymouth/themes/ubuntu-logo/ubuntu-logo.plymouth
sudo update-initramfs -u

echo "Setting up repository"
sudo remove-apt-repository tualatrix/ppa
sudo remove-apt-repository globalmenu-team/ppa
sudo rm -f /usr/bin/remove-apt-repository
sudo apt-get update

# Reloading Compiz
if [ ! -z $COMPIZPID ]; then
nohup compiz --replace >/dev/null &
fi

echo "Finishing installation..."
rm -rf $CURRENT/
rm -rf $BACKUPCURRENT/
rm -f $MACBUNTUHOME/current
sleep 3

echo ""
echo "$MACBUNTU deinstallation complete!"
echo "Bye"

else # Tester

echo "Tester..."

fi # End Tester
Citera
2011-08-15, 13:49
  #7
Medlem
Xexys avatar
Ändra raden UBUVER="10.10" till:

UBUVER="11.04"


och kör sedan uninstall.sh igen.
Citera
2011-08-15, 13:57
  #8
Medlem
DunderDeluxes avatar
fungerar desvärre inte ändå.. några fler tips?
Citera
2011-08-15, 14:00
  #9
Medlem
Xexys avatar
Fortfarande kört med:

uninstall.sh force

?
Citera
2011-08-15, 14:10
  #10
Medlem
DunderDeluxes avatar
hampus@DunderDeluxe:~$ /home/hampus/Hämtningar/Macbuntu-10.10/uninstall.sh force
Macbuntu - Mac OS X Transformation Pack

Deinstallation script

Attention!
This script will slide back to default Ubuntu desktop
all Macbuntu-11.04 components will be removed permanently

Checking currently installed version of Macbuntu-11.04...
Failed. Currently installed version is not compatible with this uninstall
Exiting...
hampus@DunderDeluxe:~$
__________________________________________________ ______________________
får då detta felmeddelande. gör jag något fel?
Citera
2011-08-15, 14:12
  #11
Medlem
DunderDeluxes avatar
lyckades att ta en screenshot genom att spamma på prt sc under den lilla tiden som ett terminalfönster är öppet, vet dock inte riktigt hur jag ska visa den för dej.. någon ide?
Citera
2011-08-15, 14:15
  #12
Medlem
DunderDeluxes avatar
Citat:
Ursprungligen postat av DunderDeluxe
lyckades att ta en screenshot genom att spamma på prt sc under den lilla tiden som ett terminalfönster är öppet, vet dock inte riktigt hur jag ska visa den för dej.. någon ide?

jo, jag kom på ett sätt, kolla på denhär http://tinypic.com/r/b5pn2w/7
Citera
  • 1
  • 2

Skapa ett konto eller logga in för att kommentera

Du måste vara medlem för att kunna kommentera

Skapa ett konto

Det är enkelt att registrera ett nytt konto

Bli medlem

Logga in

Har du redan ett konto? Logga in här

Logga in