MacOS : ma liste des logiciels utiles

35 x served & 5 x viewed

Voici ma liste :

  1. Android File Transfert : 6 Mo (car les iPhone c’est du vol )
  2. Audacity : 83 Mo.
  3. Banktivity 7 : 43 Mo. ( Comptabilité )
  4. Bitdefender : 316 Mo. ( Antivirus )
  5. CodePad : 2 Mo
  6. Cyberduck : 231 Mo
  7. DaisyDisk : 6 Mo
  8. Delicious Library 3 : 108 Mo. ( Gestion de liste )
  9. Docker : 1,4 Go.
  10. FileZilla : 38 Mo ( Client FTP)
  11. Firefox : 205 Mo ( Navigateur )
  12. FTP Server : 5 Mo ( Serveur FTP)
  13. Garmin BaseCamp : 146 Mo ( Garmin )
  14. Garmin Express  :  108 Mo ( Garmin )
  15. GitHub Desktop : 188 Mo ( Outil de dev )
  16. Google Chrome : 467 Mo ( Navigateur )
  17. Google Drive :
  18. GoPro Quick : 575 Mo ( GoPro )
  19. HandBrake : 20 Mo ( Conversion de video )
  20. ImageOptim : 10 Mo ( Compression Image )
  21. iMovie : 2,6 Go ( Montage video )
  22. Joplin : 342 Mo ( Bloc note)
  23. Keynote : 548 Mo (Standard)
  24. KnockKnock : 5 Mo (Securité)
  25. Livres : 55 Mo  (Standard)
  26. Localiser : 8 Mo (Standard)
  27. Lulu installer : (Securité)
  28. Lulu : (Securité)
  29. MacVim : 27 Mo (Editeur)
  30. Mail : 25 Mo : (Standard)
  31. Musique : 94 Mo (Standard)
  32. NextCloud : 380 Mo
  33. Number : 447 Mo (Standard)
  34. OneDrive : 203 Mo
  35. Pages : 504 Mo (Standard)
  36. Photos : 47 Mo (Standard)
  37. PingID : 200 Mo
  38. RubiTrack 5 Pro : 73 Mo ( Sport )
  39. Safari : 42 Mo
  40. SD Card Formatter  : 6 Mo
  41. Skitch : 52 Mo
  42. Skype : 242 Mo
  43. Slack : 194 Mo
  44. Sweet Home 3D : 140 Mo
  45. Synalyze It! : 83 Mo
  46. Tap Forms : 31 Mo
  47. TeamViewer  : 95 Mo
  48. Télégram : 75 Mo
  49. TextEdit : 6 Mo
  50. The Unarchiver : 20 Mo
  51. Time Machine : 2 Mo
  52. TV : 70 Mo (Standard)
  53. Tweetbot : 20 Mo
  54. Typora : 26 Mo
  55. VLC : 137 Mo ( Player Video)
  56. WhatsApp : 331 Mo
  57. WiFi Scanner : 20 Mo
  58. Wireshark : 603 Mo
  59. Zoom : 47 Mo

 

Script de création automatiquement d’une machine virtuelle de MacOS pour VirtualBox : Echec pour moi !

802 x served & 237 x viewed

J’ai donc testé le script suivant : https://github.com/myspaghetti/macos-guest-virtualbox : macos-guest-virtualbox . Le but du script est de faire une machine Virtuel sous Ubuntu. A noter que le déroulement du script est très long, je pense qu’il faut compter 4 heures.

Voici tous le process d’installation :

# wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -

# wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -

# sudo add-apt-repository "deb http://download.virtualbox.org/virtualbox/debian bionic contrib" 

# sudo apt update

# sudo apt install virtualbox-6.1 virtualbox-dkms

# sudo apt install libcanberra-gtk-module libcanberra-gtk3-module

# sudo apt-get install dmg2img

Il est impératif d’avoir une version de virtualbox > 6.1. Par défaut sur Ubuntu on a la version 5.0 …

J’ai donc avant le lancement du script :

$ VBoxManage list extpacks
Extension Packs: 1
Pack no. 0:   Oracle VM VirtualBox Extension Pack
Version:      6.1.4
Revision:     136177
Edition:      
Description:  Oracle Cloud Infrastructure integration, USB 2.0 and USB 3.0 Host Controller, Host Webcam, VirtualBox RDP, PXE ROM, Disk Encryption, NVMe.
VRDE Module:  VBoxVRDP
Usable:       true 
Why unusable: 
$ cat /etc/*release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.3 LTS"
NAME="Ubuntu"
VERSION="18.04.3 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.3 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

Ensuite j’ai changé quelques paramètres dans le script et je l’ai lancé :

$ ./macos-guest-virtualbox.sh 

                  Push-button installer of macOS on VirtualBox
-------------------------------------------------------------------------------

This script installs only open-source software and unmodified Apple binaries.

The script checks for dependencies and will prompt to install them if unmet.

For iCloud and iMessage connectivity, the script needs to be edited with genuine
or genuine-like Apple parameters. macOS will work without these parameters, but
Apple-connected apps will not.

The installation requires about 40GB of available storage, 20GB for
temporary installation files and 20GB for the virtual machine's dynamically
allocated storage disk image.

Documentation about optional configuration, resuming the script by stages, and
other topics can be viewed with the following command:

  ./macos-guest-virtualbox.sh documentation | less -R

Press enter to review the script configuration.

vm_name="macOS"                  # name of the VirtualBox virtual machine
macOS_release_name="Catalina"    # install "HighSierra" "Mojave" or "Catalina"
storage_size=100000               # VM disk image size in MB. minimum 22000
cpu_count=4                      # VM CPU cores, minimum 2
memory_size=36000                 # VM RAM in MB, minimum 2048
gpu_vram=128                     # VM video RAM in MB, minimum 34, maximum 128
resolution="1280x800"            # VM display resolution

These values may be customized as described in the documentation.

Press enter to continue, CTRL-C to exit.

Catalina selected to be downloaded and installed

stage: prompt_delete_existing_vm

stage: create_vm

stage: prepare_macos_installation_files

Downloading Apple macOS Catalina software update catalog
Catalina_sucatalog                          100%[===========================================================================================>]   6,12M   441KB/s    in 18s     
Trying to find macOS Catalina InstallAssistant download URL
Catalina_sucatalog_00_InstallAssistantAuto. 100%[===========================================================================================>]  39,98K  97,7KB/s    in 0,4s    
Found download URL: http://swcdn.apple.com/content/downloads/47/20/061-44387-A_FV9KA9D9EY/g6dlznrbw0mchuh9dvusbzd3ld7prg4h3z/

Downloading macOS installation files from swcdn.apple.com
Catalina_BaseSystem.chunklist               100%[===========================================================================================>]   1,97K  --.-KB/s    in 0,003s  
Catalina_InstallInfo.plist                  100%[===========================================================================================>]   1,55K  --.-KB/s    in 0s      
Catalina_AppleDiagnostics.dmg               100%[===========================================================================================>]   2,91M   502KB/s    in 6,4s    
Catalina_AppleDiagnostics.chunklist         100%[===========================================================================================>]     328  --.-KB/s    in 0s      
Catalina_BaseSystem.dmg                     100%[===========================================================================================>] 473,56M   893KB/s    in 21m 7s  
Catalina_InstallESDDmg.pkg                   65%[===========================================================>                                ]   4,69G  --.-KB/s    in 2h 46m  
Catalina_InstallESDDmg.pkg                  100%[++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++===============================>]   7,13G   912KB/s    in 50m 54s 

Splitting the several-GB InstallESDDmg.pkg into 1GB parts because
VirtualBox hasn't implemented UDF/HFS VISO support yet and macOS
doesn't support ISO 9660 Level 3 with files larger than 2GB.
creating file 'Catalina_InstallESD.part00'
creating file 'Catalina_InstallESD.part01'
creating file 'Catalina_InstallESD.part02'
creating file 'Catalina_InstallESD.part03'
creating file 'Catalina_InstallESD.part04'
creating file 'Catalina_InstallESD.part05'
creating file 'Catalina_InstallESD.part06'
creating file 'Catalina_InstallESD.part07'

Downloading open-source APFS EFI drivers used for VirtualBox 6.0 and 5.2
...even though that's not the version of VirtualBox that's been detected.
AppleSupport-v2.0.4-RELEASE.zip             100%[===========================================================================================>]  42,20K  --.-KB/s    in 0,1s    
Archive:  AppleSupport-v2.0.4-RELEASE.zip
  inflating: ApfsDriverLoader.efi    
  inflating: AppleImageLoader.efi    
  inflating: AppleUiSupport.efi      

stage: create_nvram_files

stage: create_macos_installation_files_viso
Creating EFI startup script

Creating VirtualBox 6 virtual ISO containing the
installation files from swcdn.apple.com


stage: create_basesystem_vdi
Converting to BaseSystem.dmg to BaseSystem.img

dmg2img v1.6.7 (c) vu1tur (to@vu1tur.eu.org)

Catalina_BaseSystem.dmg --> Catalina_BaseSystem.img


decompressing:
opening partition 0 ...             100.00%  ok
opening partition 1 ...             100.00%  ok
opening partition 2 ...             100.00%  ok
opening partition 3 ...             100.00%  ok
opening partition 4 ...             100.00%  ok
opening partition 5 ...             100.00%  ok
opening partition 6 ...             100.00%  ok
opening partition 7 ...             100.00%  ok

Archive successfully decompressed as Catalina_BaseSystem.img
Converting from raw image file="Catalina_BaseSystem.img" to file="Catalina_BaseSystem.vdi"...
Creating dynamic image with size 2143301632 bytes (2045MB)...

stage: create_target_vdi
Creating macOS target system virtual disk image.
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Medium created. UUID: f8f19a65-d58d-4459-83f1-09ee6d500c1b

stage: create_install_vdi
Creating Catalina installation media virtual disk image.
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Medium created. UUID: e73c8390-706d-4b56-a2bf-b22ea291ebd9

stage: configure_vm

stage: populate_virtual_disks
Starting virtual machine macOS. This should take a couple of minutes.

Press enter when the Language window is ready.

Press enter when the macOS Utilities window is ready.

La première erreur que j’ai eu :

Je l’ai fixé en faisant :

$ sudo apt-get purge virtualbox-dkms && sudo apt-get install dkms
...
$ sudo /sbin/vboxconfig 
vboxdrv.sh: Stopping VirtualBox services.
vboxdrv.sh: Starting VirtualBox services.
vboxdrv.sh: Building VirtualBox kernel modules.
...

La seconde erreur que j’ai eu, et je ne sais pas comment la fixé … sniff.

C’est donc un echec pour moi, et pour vous ?

J’ai aussi essayé de désactivé l’EFI mais sans succès :

J’ai aussi essayé de changer de Chipset, et quand je suis en PII3X j’ai ceci :

MacOS : Pour bien supprimer GarageBand il faut aussi supprimer les dossiers Application Support

200 x served & 18 x viewed

Après la suppression de l’App il reste 1,5 GB à supprimer dans Application Support :A suivre.

MacOS : Une mauvaise gestion des fichiers temporaires … ( /var/private/folder/ App Store )

424 x served & 150 x viewed

Il suffit de faire la commande suivante pour s’en rendre compte :

$ sudo du -d 1 -h /private/var/folders/
 22M	/private/var/folders//gz
298M	/private/var/folders//zz
  0B	/private/var/folders//v3
124G	/private/var/folders//gy
 21M	/private/var/folders//f8
124G	/private/var/folders/

On se retrouve avec 124 Go de fichiers temporaires ?! Le diagnostic est le même avec : OmniDiskSweeper ( https://www.omnigroup.com/more/ )

Pourquoi dans Gestion de Stockage on ne parle pas des fichiers temporaires de l’App Store ?

Ma version de Mac :

Dans le détail c’est com.apple.appstore qui est le responsable :

$ sudo du -d 1 -h /private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/*/*
 28K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/0E3C9FA3-4DAF-44AA-A006-8457AF11AD98/preflight.pfpkg
2,8G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/0E3C9FA3-4DAF-44AA-A006-8457AF11AD98/zvf6369715154166298559.pkg
 28K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/2A84E0FD-B14A-4481-A0B6-FDD9873E36D9/preflight.pfpkg
3,5G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/2A84E0FD-B14A-4481-A0B6-FDD9873E36D9/zvf6369715154166298559.pkg
 28K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/381FA00A-F91B-414F-A045-379A6592F19B/preflight.pfpkg
5,7G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/381FA00A-F91B-414F-A045-379A6592F19B/zvf6369715154166298559.pkg
 28K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/41BCCFCA-E8A5-49E6-BFE1-75C3494F7B01/preflight.pfpkg
1,4G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/41BCCFCA-E8A5-49E6-BFE1-75C3494F7B01/zvf6369715154166298559.pkg
3,9G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/51938FE4-E2A8-45E7-8642-792754C64619/mzps3287316967541794089.pkg
 28K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/51938FE4-E2A8-45E7-8642-792754C64619/preflight.pfpkg
7,2G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/51938FE4-E2A8-45E7-8642-792754C64619/zvf6369715154166298559.pkg
 28K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/5C7F03C1-32AB-4A15-8EA2-A8472B920C3C/preflight.pfpkg
7,3G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/5C7F03C1-32AB-4A15-8EA2-A8472B920C3C/zvf6369715154166298559.pkg
 28K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/6F1729FF-2405-430C-88D7-402A0F0BC3B7/preflight.pfpkg
3,9G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/6F1729FF-2405-430C-88D7-402A0F0BC3B7/zvf6369715154166298559.pkg
3,9G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/79F05F39-F4F8-426D-BDD9-8BDA257584AA/mzps3287316967541794089.pkg
 28K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/79F05F39-F4F8-426D-BDD9-8BDA257584AA/preflight.pfpkg
7,3G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/79F05F39-F4F8-426D-BDD9-8BDA257584AA/zvf6369715154166298559.pkg
 28K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/9EE1477D-CEB8-480C-A8E7-C1BF61081FF7/preflight.pfpkg
7,3G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/9EE1477D-CEB8-480C-A8E7-C1BF61081FF7/zvf6369715154166298559.pkg
 28K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/A20ACE33-44DB-45C0-B7CB-51437D7BAF5B/preflight.pfpkg
7,3G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/A20ACE33-44DB-45C0-B7CB-51437D7BAF5B/zvf6369715154166298559.pkg
3,9G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/BFA3A101-8D7A-4A5B-A002-DDC60BE22B1B/mzps3287316967541794089.pkg
 28K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/BFA3A101-8D7A-4A5B-A002-DDC60BE22B1B/preflight.pfpkg
7,3G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/BFA3A101-8D7A-4A5B-A002-DDC60BE22B1B/zvf6369715154166298559.pkg
 28K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/C8DEC436-F329-40C9-942F-43CEAD6A4BEF/preflight.pfpkg
7,3G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/C8DEC436-F329-40C9-942F-43CEAD6A4BEF/zvf6369715154166298559.pkg
3,9G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/DB603631-0598-467A-9EC1-73A336F7A7BA/mzps3287316967541794089.pkg
 28K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/DB603631-0598-467A-9EC1-73A336F7A7BA/preflight.pfpkg
7,3G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/DB603631-0598-467A-9EC1-73A336F7A7BA/zvf6369715154166298559.pkg
 28K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/DE9817B1-1C39-4AD7-B45E-346CFEC4F111/preflight.pfpkg
7,3G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/DE9817B1-1C39-4AD7-B45E-346CFEC4F111/zvf6369715154166298559.pkg
 28K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/DFD32FE0-039E-4E65-92E7-8B00EA3E9127/preflight.pfpkg
7,3G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/DFD32FE0-039E-4E65-92E7-8B00EA3E9127/zvf6369715154166298559.pkg
 28K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/F29A01FE-CEF7-4E03-9022-6746E6170B8C/preflight.pfpkg
7,3G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/F29A01FE-CEF7-4E03-9022-6746E6170B8C/zvf6369715154166298559.pkg
3,9G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/F37867EA-8210-447A-9BB0-5BB67748A19B/mzps3287316967541794089.pkg
 28K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/F37867EA-8210-447A-9BB0-5BB67748A19B/preflight.pfpkg
7,3G	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/F37867EA-8210-447A-9BB0-5BB67748A19B/zvf6369715154166298559.pkg
 68K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/com.apple.appstore/com.apple.metal/Intel(R) HD Graphics Unknown
196K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/com.apple.appstore/com.apple.metal/Intel(R) HD Graphics 630
132K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/com.apple.appstore/com.apple.metal/3902
 68K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/com.apple.appstore/com.apple.metal/AMD Radeon Pro 560
532K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/com.apple.appstore/com.apple.metal
  0B	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/mds/mds.lock
 48K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/mds/mdsDirectory.db
8,0K	/private/var/folders/gy/578qjv7j22j4pzty537lyjjc0000gn/C/com.apple.appstore/mds/mdsObject.db

J’ai bien envi de faire une cmmande du type :

sudo find /var/folders/ -type d -name "com.apple.appstore" -exec rm -Rf {} \;

Quand je regarde leur interface:

A noter que quand on utilise la commande :

$ sudo du -sh /*
 30G	/Applications
4,0G	/Library
1,7T	/System
112G	/Users
1,4T	/Volumes
2,4M	/bin
  0B	/com.apple.TimeMachine.localsnapshots
  0B	/cores
8,0K	/dev
  0B	/etc
  0B	/home
1,3G	/opt
130G	/private
1012K	/sbin
  0B	/tmp
3,7G	/usr
  0B	/var

Il faut soustraire de /System la taille /Volumes , sinon on a les disques externes … cela donne pour mon cas :

$ sudo du -sh /*
 30G	/Applications
4,0G	/Library
 12G	/System
112G	/Users
2,4M	/bin
  0B	/com.apple.TimeMachine.localsnapshots
  0B	/cores
8,0K	/dev
  0B	/etc
  0B	/home
1,3G	/opt
130G	/private
1012K	/sbin
  0B	/tmp
3,7G	/usr
  0B	/var

A la limite on peut faire :

$ sudo du -sh /System/*
733M	/System/Applications
2,0M	/System/DriverKit
 11G	/System/Library
1,6T	/System/Volumes
291M	/System/iOSSupport