samedi 1 octobre 2022

Uninstall iSCSI Initiator X

 The method to uninstall iSCSI Initiator X in the web site of the editor is wrong:

https://www.kernsafe.com/help.aspx?product=iSCSI%20Initiator%20X&topic=macos-iscsi-initiator-uninstallation

use rather:

sudo rm -rf /Library/KernSafe

sudo rm -rf /Library/KernSafe-iSCSI-Initiator-X-3.20

sudo rm -rf /Applications/"iSCSI Initiator X.app"

sudo rm -rf /Library/LaunchDaemons/com.kernsafe.initiator.x.plist

And restart


jeudi 1 septembre 2022

prevent apt to stop updates in Ubuntu 22.04

 In Ubuntu 22.04, the needrestart command, which is part of the apt-get upgrade process in Ubuntu, by default this is set to "interactive" mode which causes the interruption of scripts.

To change this behavior, we can edit the /etc/needrestart/needrestart.conf file, changing the line:

#$nrconf{restart} = 'i';

to

$nrconf{restart} = 'a'; (if we want to restart the services automatically) or $nrconf{restart} = 'l'; to simply list the services that need restart.

Another trick:

To disable "Pending kernel upgrade" via command line:

sudo vim /etc/needrestart/needrestart.conf

then uncomment this line

#$nrconf{kernelhints} = -1;

jeudi 18 août 2022

sudo reports an error

 Check that your hostname is well declared in /etc/hosts:

mgirond@pepa:~$ hostname

xxxx

mgirond@pepa:~$ cat /etc/hosts

127.0.0.1 localhost

127.0.0.1 xxxx


# The following lines are desirable for IPv6 capable hosts

::1 ip6-localhost ip6-loopback

fe00::0 ip6-localnet

ff00::0 ip6-mcastprefix

ff02::1 ip6-allnodes

ff02::2 ip6-allrouters

ff02::3 ip6-allhosts

vendredi 29 juillet 2022