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

lundi 15 novembre 2021

MacBrew problems

 

I get some problems when I tried update macbrew.

After 

sudo chown -R $(whoami) /usr/local

I didn't get problems.

√ /usr % echo $(whoami)

tortuesbranchees

Return the name of the owner of the current session.

cd /usr

ls -al

will return

drwxrwxr-x    18 tortuesbranchees  admin    576  6 oct 08:03 local

The solution is probably not perfect because another user will not been able to update macbrew


lundi 28 juin 2021

siunits CTAN package unavailable: how to solve

When updating MacTEX installation using tlmgr, an error occurred about siunits package (https://ctan.org/pkg/siunits). This package was declared present but could not be found.

It was impossible to delete this package with "sudo tlmgr remove -force siunits" because the package was not found !

The solution has been to delete the collection where this package was present:

sudo tlmgr remove -force collection-mathscience

And then install it again:

sudo tlmgr install collection-mathscience 

Now you can update MacTEX without error:

sudo /usr/local/texlive/2021/bin/universal-darwin/tlmgr update --self --all


samedi 26 juin 2021

Stop reporting gpg unavailable in MacOSX

 If you do not want to see this error again:

(not verified: gpg unavailable)

do 

brew install gnupg