Ran um script no xubuntu e meu monitor caiu. Alguém pode aconselhar sobre como reverter isso?

1

Eu tenho um script que encontrei um tempo atrás para acelerar a instalação do Minecraft ... para meu filho ... Enfim, recentemente mudei para o Xubuntu e imaginei que o mesmo script seria ok, sem levar em consideração os diferentes gerenciadores de desktop . Quando eu corri o script, "O aplicativo Desktop fechado inesperadamente" e agora eu só tenho um desktop cinza.

Estou rodando o xubuntu 12.04 64 bit com uma placa de vídeo ati e drivers ati. Se qualquer outra informação for necessária, por favor, pergunte.

Espero que alguém saiba como posso reverter o script (abaixo).

Obrigado.

echo -ne "writing bin shell"
    # this writes a seperate shell script in the /usr/local/bin folder, this is what allows the user
    # to run minecraft from terminal, just by typing minecraft.
    dots
    if [ ! -e /usr/local/bin/minecraft ] 
    then
    touch minecraft
    echo java -jar /home/$(whoami)/.minecraft/minecraft.jar >> minecraft
    echo -ne saving to usr/local/bin
    dots
    echo this requires root access:
    sudo cp minecraft /usr/local/bin/
    cd /
    cd /usr/local/bin
    sudo chmod +x minecraft
    echo "done"
    else 
    echo excecutable already written
    fi
    echo ""
    #--------------------------------------------
    echo -ne writing desktop shortcut
    dots
    cd /home/$(whoami)/.minecraft/
    if [ -e /home/$(whoami)/.minecraft/install_files ] 
    then
    echo -ne previous version detected, updating
    dots
    rm -rf install_files
    fi
    mkdir install_files
    cd install_files

    touch alloc-installer.desktop
    echo "[Desktop Entry]" >> alloc-installer.desktop
    echo "Type=Application" >> alloc-installer.desktop
    echo "Encoding=UTF-8" >> alloc-installer.desktop
    echo "Name=Minecraft" >> alloc-installer.desktop
    echo "Comment=awesome game" >> alloc-installer.desktop
    echo Exec= java -jar /home/$(whoami)/.minecraft/minecraft.jar >> alloc-installer.desktop
    echo Icon= /home/$(whoami)/.minecraft/icon.png  >> alloc-installer.desktop
    echo Categories=Game >> alloc-installer.desktop
    echo "Terminal=false" >> alloc-installer.desktop
    #----------------------------------------------------
    echo -ne granting the shortcut excecution permissions
    dots
    echo this requires root access
    cp alloc-installer.desktop /home/$(whoami)/Desktop
    sudo chmod +x /home/$(whoami)/Desktop/alloc-installer.desktop
    echo "done"
    echo ""
    #---------------------------------------------
    echo -ne writing menu item
    dots
    touch alloc-menu.directory
    echo [Desktop Entry] >> alloc-menu.directory
    echo Value=1.0 >> alloc-menu.directory
    echo Type=Directory >> alloc-menu.directory
    echo Encoding=UTF-8 >> alloc-menu.directory
    echo "done"
    echo ""
    echo -ne installing to Applications menu
    dots
    xdg-desktop-menu install alloc-menu.directory alloc-installer.desktop
    xdg-desktop-menu forceupdate
    echo installed
    #--------------------------------------------
    echo ""
    echo "SUCCESS!"
    echo ""
    echo -e "Minecraft has been successfully Downloaded and Installed \nCheck your desktop and Applications menu for launchers! \nYou can also run it from terminal with a 'minecraft' command! \ncontact: [email protected]" 
    echo "Happy Mining!"

    echo""

EDIT: Obrigado Mik. Eu tentei executar xfwm4 --replace (com sudo) e consegui isto:

'(xfwm4:2025): GLib-CRITICAL **: g_str_has_prefix: assertion 'prefix != NULL' failed

(xfwm4:2025): xfwm4-WARNING **: The property '/general/double_click_distance' of type int is not supported

(xfwm4:2025): GLib-WARNING **: (/build/buildd/glib2.0-2.32.3/./glib/gerror.c:390):g_error_new_valist: runtime check failed: (domain != 0)

(xfwm4:2025): xfwm4-WARNING **: Failed to connect to session manager: Failed to     connect to the session manager: SESSION_MANAGER environment variable not defined'

Ainda tem a tela cinza. Provavelmente vai reinstalar amanhã, a menos que alguma das opções acima lhe dê outras pistas?

    
por Bruce 28.02.2013 / 02:34

0 respostas