Shleyer? Finder desidera apportare delle modifiche per svuotare il cestino

Mac OS X e le sue Applicazioni

Moderatore: ModiMaccanici

Avatar utente
Zacksit
Stato: Non connesso
Expert Translator
Expert Translator
Avatar utente
Iscritto il: mar, 16 dic 2014 17:14
Messaggi: 1743
Località: Kaputt Mundi

Top

Sarebbe possibile copiare e incollare il seguente comando di Terminale da /Library/F-Secure/XFENCE (libreria di sistema) a Terminale in modalità Recovery? Avevo provato a copiarlo a mano, ma gli accapo non erano puliti e non sapevo come fare per rispettare tutti quegli spazi. Ma forse gli spazi interlinei non sono importanti? se copiassi tutto di seguito senza accapo funzionerebbe?

Codice: Seleziona tutto

#!/bin/bash

PARTIAL=false
while getopts uc opt
do
    case "$opt" in
	u) PARTIAL=true
            ;;
	\?) echo "Usage: $0"
            exit 1
            ;;
    esac
done

#Checking if integrated
echo "Checking if integrated"
if [ -d /Library/F-Secure/XFENCE/F-Secure\ XFENCE\ Configuration.app ] ; then
       echo "/Library/F-Secure/XFENCE/F-Secure\ XFENCE\ Configuration.app exists"

	if [ -f /usr/local/f-secure/signal/xfence-disabled-by-uninstaller ] ; then
    	    rm -rf /usr/local/f-secure/signal/xfence-disabled-by-uninstaller
	fi
	
	touch /usr/local/f-secure/signal/xfence-uninstall	
        notifyutil -1 com.f-secure.xfence-uninstall-proceed && touch /usr/local/f-secure/signal/xfence-disabled-by-uninstaller &
        notifyutil -p com.f-secure.xfence-uninstall
        
        SECONDS=0   
	while [ $SECONDS -lt 10 ] && [ ! -f /usr/local/f-secure/signal/xfence-disabled-by-uninstaller ]; do
  	    sleep 1
	done
        
	isKextLoaded=$(kextstat |grep com.fsecure.XFENCE)
	if [ -n "$isKextLoaded" ] && [ ! -f /usr/local/f-secure/signal/xfence-disabled-by-uninstaller ] ; then
	    exit 1
	fi
else
    echo "/Library/F-Secure/XFENCE/F-Secure\ XFENCE\ Configuration.app does not exist"
    launchctl unload /Library/LaunchAgents/com.fsecure.XFENCEUserAgent.plist
    sudo rm -f /Library/LaunchAgents/com.fsecure.XFENCEUserAgent.plist
    sudo killall "F-Secure XFENCE"
fi

echo "Unloading com.fsecure.XFENCEDaemon.plist"
sudo launchctl unload /Library/LaunchDaemons/com.fsecure.XFENCEDaemon.plist

echo "Removing app files"
sudo rm -rf /Library/Extensions/XFENCE.kext
sudo rm -rf /Library/Application\ Support/XFENCE
sudo rm -rf /Applications/F-Secure\ XFENCE\ Configuration.app
sudo rm -f /Library/LaunchDaemons/com.fsecure.XFENCE.plist
sudo rm -f /Library/LaunchDaemons/com.fsecure.XFENCEDaemon.plist
sudo rm -f /Library/LaunchAgents/com.fsecure.XFENCEUpdater.plist
sudo rm -rf /Library/F-Secure/XFENCE
sudo rm -rf /Users/Shared/F-Secure\ XFENCE\ Extras
if ! $PARTIAL ; then
    sudo rm -rf /Users/Shared/F-Secure\ XFENCE
fi

echo "Killing XFENCEDaemon"
sudo killall XFENCEDaemon

exit 0

# Do not force unload, allow kext to be unloaded on next reboot
# sudo touch /System/Library/Extensions
# sleep 5
# sudo kextcache -u /
# sync
# sudo kextunload -b com.fsecure.XFENCE
For every complex problem there is an answer that is clear, simple, and wrong. ― H.L. Mencken
Sometimes it is the people no one can imagine anything of, who do the things no one can imagine. ― Alan Turing

iMac 21,5" 2019 - MacBook Pro 15" 2008 + 3 lingue fluenti, + 1 facciamo che me la cavo, + 1 solo dopo qualche birra

Avatar utente
Kundalini
Stato: Non connesso
Expert
Expert
Avatar utente
Iscritto il: ven, 05 lug 2013 20:33
Messaggi: 865

Top

Da F-Secure XFENCE User Guide.pdf (che si recupera dall'interno dell'applicazione stessa Menu > Help > ), mi par di capire tuttavia che a seguito del tentativo di disinstallazione poco ortodosso l'applicazione stessa non ti risponda più nella sua interezza.

"Uninstalling F-Secure XFENCE
To uninstall F-Secure XFENCE, first disable it from the menu bar, and then run the following command:
sudo bash /Library/F-Secure/XFENCE/uninstall.sh
Once you’ve run this, reboot the computer. Note that you cannot perform this operation unless F-Secure XFENCE has been disabled, for obvious reasons. You may also wish to delete your rules on the system, which can be found in /Users/Shared/F-Secure XFENCE/.
When Things Go Wrong
Problems with F-Secure XFENCE are very rare, but if something does go wrong and you are unable to uninstall using the above methods, you can also uninstall F-Secure XFENCE from safe boot or recovery mode. In the unlikely chance that you find your system hung and will not boot, or other irrecoverable situations, perform the following steps to forcefully disable F-Secure XFENCE:
From Safe Boot
1. Boot into safe mode by holding in shift when you hear the boot chime
2. Verify that your menu bar reads Safe Mode in bold red text after logging in
3. Execute the following command:
sudo bash /Library/F-Secure/XFENCE/uninstall.sh
4. Reboot the computer, and F-Secure XFENCE will no longer appear
From Recovery Mode
1. Boot into recovery mode using Command-R when you hear the boot chime
2. If your disk is File Vault protected, launch Disk Utility; select your disk and then select
File > Mount. You'll be prompted for your account password to unlock the volume. Once unlocked, quit Disk Utility and return to the main recovery screen.
3. Select Utilities > Terminal to launch a terminal session
4. Run the following commands to delete the F-Secure XFENCE kernel extension and
rebuild the cache:
rm -rf "/Volumes/Macintosh HD/Library/Extensions/XFENCE.kext” kextcache –u /Volumes/Macintosh\ HD
5. Reboot the computer, and then run the F-Secure XFENCE uninstall script to clean up"


Siccome non sono un mago da Terminale resto sempre un po' dubbioso.

Sembra interessante il comando da eseguire dopo l'avvio in safe mode.

Anche perché con l'avvio da Recovery al punto 5 dice di lanciare lo script di disinstallazione e da quel che ho capito tu non lo hai più, avendo eliminato parzialmente F-Secure con AppCleaner.

P.S.: Ma come mai quando ho premuto Invia non mi è apparso il solito avviso "Nel frattempo é stata aggiunta una risposta ecc."
Non ho letto ancora completamente le risposte precedenti :)
Se funziona, non aggiustarlo.


MBP 13" late 2010 macOS 10.13.6 High Sierra
HD originale deceduto, sostituito con SSD Samsung EVO 850 da 250 GB
Motherboard riparata, aprile 2016
Upgrade RAM a 8 GB, gennaio 2018

Avatar utente
Zacksit
Stato: Non connesso
Expert Translator
Expert Translator
Avatar utente
Iscritto il: mar, 16 dic 2014 17:14
Messaggi: 1743
Località: Kaputt Mundi

Top

Grazie di cuore Kundalini, lo provo!
For every complex problem there is an answer that is clear, simple, and wrong. ― H.L. Mencken
Sometimes it is the people no one can imagine anything of, who do the things no one can imagine. ― Alan Turing

iMac 21,5" 2019 - MacBook Pro 15" 2008 + 3 lingue fluenti, + 1 facciamo che me la cavo, + 1 solo dopo qualche birra

Avatar utente
Zacksit
Stato: Non connesso
Expert Translator
Expert Translator
Avatar utente
Iscritto il: mar, 16 dic 2014 17:14
Messaggi: 1743
Località: Kaputt Mundi

Top

La cosa strana che sia in modalità sicura, sia in modalità Recupero, dopo che ho inserito i comandi citati, Terminale mi dava che non li trovava. Ma poi riavviando ora sembra risolto. La cartella F-Secure c'è ancora nella Libreria di sistema, ma per fortuna è vuota! :D

Grazie Kundalini e ƒaxus! :occasion5:
For every complex problem there is an answer that is clear, simple, and wrong. ― H.L. Mencken
Sometimes it is the people no one can imagine anything of, who do the things no one can imagine. ― Alan Turing

iMac 21,5" 2019 - MacBook Pro 15" 2008 + 3 lingue fluenti, + 1 facciamo che me la cavo, + 1 solo dopo qualche birra

Avatar utente
Uno_qualunque
Stato: Non connesso
Expert
Expert
Avatar utente
Iscritto il: lun, 12 lug 2010 09:32
Messaggi: 3267

Top

Senza voler dare addosso a Zacksit, perché casini del genere li abbiamo fatti e li faremo (spero poco!) tutti, ancora una volta si dimostra che il peggior virus/malware è quell'attrezzo tutto ossa, peli e ciccia che sta al di là della tastiera.

Complimenti ai soliti, che non si danno mai per persi, per me è sempre un divertimento leggere questi post, si impara un sacco!
Fate il backup, fate il backup, ricordate di fare il backup, non dimenticate di fare il backup.

"Il backup è quella cosa che andava fatta prima" (antico proverbio cinese)

Avatar utente
Zacksit
Stato: Non connesso
Expert Translator
Expert Translator
Avatar utente
Iscritto il: mar, 16 dic 2014 17:14
Messaggi: 1743
Località: Kaputt Mundi

Top

Uno_qualunque ha scritto:
sab, 04 lug 2020 10:56
Senza voler dare addosso a Zacksit, perché casini del genere li abbiamo fatti e li faremo (spero poco!) tutti, ancora una volta si dimostra che il peggior virus/malware è quell'attrezzo tutto ossa, peli e ciccia che sta al di là della tastiera.

Complimenti ai soliti, che non si danno mai per persi, per me è sempre un divertimento leggere questi post, si impara un sacco!
Hai assolutamente ragione, avrei voluto esprimerlo così chiaramente.

Dopo che non riuscivo a trovare il disinstallatore, per la fretta ho pensato (male) di usare App Cleaner & Uninstaller, poi AppCleaner. Invece avrei dovuto eseguire un ulteriore ricerca in primis sull'app (non so perché non ci ho pensato prima) e poi su Google.

Infatti c'è sempre da imparare... in fondo questi forum esistono anche per questo.
For every complex problem there is an answer that is clear, simple, and wrong. ― H.L. Mencken
Sometimes it is the people no one can imagine anything of, who do the things no one can imagine. ― Alan Turing

iMac 21,5" 2019 - MacBook Pro 15" 2008 + 3 lingue fluenti, + 1 facciamo che me la cavo, + 1 solo dopo qualche birra

Avatar utente
Uno_qualunque
Stato: Non connesso
Expert
Expert
Avatar utente
Iscritto il: lun, 12 lug 2010 09:32
Messaggi: 3267

Top

Temevo che avrei potuto essere preso "male" invece sono contento che tu abbia colto esattamente il senso :-)
Fate il backup, fate il backup, ricordate di fare il backup, non dimenticate di fare il backup.

"Il backup è quella cosa che andava fatta prima" (antico proverbio cinese)

Avatar utente
Zacksit
Stato: Non connesso
Expert Translator
Expert Translator
Avatar utente
Iscritto il: mar, 16 dic 2014 17:14
Messaggi: 1743
Località: Kaputt Mundi

Top

Uno_qualunque ha scritto:
sab, 04 lug 2020 15:58
Temevo che avrei potuto essere preso "male" invece sono contento che tu abbia colto esattamente il senso :-)
Figurati, e poi non ho mai paure di ammettere quando faccio 'azzate anche se a volte m'imbarazza di essere stato così scemo :D
For every complex problem there is an answer that is clear, simple, and wrong. ― H.L. Mencken
Sometimes it is the people no one can imagine anything of, who do the things no one can imagine. ― Alan Turing

iMac 21,5" 2019 - MacBook Pro 15" 2008 + 3 lingue fluenti, + 1 facciamo che me la cavo, + 1 solo dopo qualche birra

Avatar utente
Pingus
Stato: Non connesso
Unix Expert
Unix Expert
Avatar utente
Iscritto il: sab, 13 ott 2018 16:56
Messaggi: 2663

Top

Che bella gente in questo posto...

Avatar utente
faxus
Stato: Non connesso
Pro-Expert 
Pro-Expert 
Avatar utente
Iscritto il: lun, 02 giu 2014 15:12
Messaggi: 30459
Località: Circondato dalle bufale

Top

Contatta:
Pingus ha scritto:
lun, 06 lug 2020 11:40
Che bella gente in questo posto...
Che gente in questo bel posto!

Avatar utente
spegahsheen
Stato: Non connesso
Stella nascente
Stella nascente
Avatar utente
Iscritto il: lun, 31 ott 2016 18:20
Messaggi: 904
Località: https://is.gd/axusiw

Top

Che bel quesito ha posto la gente
Per un'insolita congiunzione astrale si manifestò alla mia mente la VERITÀ: trascendente, profonda, rivelata con parole illuminanti. Solo che adesso... non me la ricordo più!

Avatar utente
Zacksit
Stato: Non connesso
Expert Translator
Expert Translator
Avatar utente
Iscritto il: mar, 16 dic 2014 17:14
Messaggi: 1743
Località: Kaputt Mundi

Top

Davvero, che bel posto ha questa gente.
For every complex problem there is an answer that is clear, simple, and wrong. ― H.L. Mencken
Sometimes it is the people no one can imagine anything of, who do the things no one can imagine. ― Alan Turing

iMac 21,5" 2019 - MacBook Pro 15" 2008 + 3 lingue fluenti, + 1 facciamo che me la cavo, + 1 solo dopo qualche birra

Rispondi

Torna a “Software”

Chi c’è in linea

Visitano il forum: Nessuno e 20 ospiti