Deprecated: Creation of dynamic property Timber\Site::$pingback is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Site.php on line 180

Deprecated: Creation of dynamic property Timber\User::$name is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/User.php on line 118

Deprecated: Creation of dynamic property Timber\Post::$old_id is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_thumbnail_id is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$ext-thumbnail_url is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_wpseo_metadesc is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_date_gmt is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$comment_status is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$ping_status is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_password is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_name is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$to_ping is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$pinged is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_modified is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_modified_gmt is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_content_filtered is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$guid is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$menu_order is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_mime_type is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$comment_count is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$filter is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$status is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71
Windows 10, come eseguire comandi in automatico all'avvio delle distribuzioni Linux con WSL

Windows 10, come eseguire comandi in automatico all'avvio delle distribuzioni Linux con WSL

WSL permette di configurare i comandi che devono essere eventualmente eseguiti all'avvio della distribuzione Linux in Windows 10.

Il Sottosistema Linux per Windows (WSL, Windows Subsystem for Linux) è stato notevolmente migliorato dagli sviluppatori Microsoft nel corso degli ultimi mesi: Linux in Windows: come, quando e perché utilizzarlo.

WSL 2 si appoggia alla piattaforma per la virtualizzazione Hyper-V integrata in Windows 10, offre ampia compatibilità con le principali distribuzioni Linux, non causa più problemi di compatibilità con altre soluzioni per la virtualizzazione (ad esempio Virtualbox) che possono essere mantenute contemporaneamente installate sulla stessa macchina e presto supporterà direttamente desktop environment e applicazioni Linux dotate di interfaccia grafica (GUI).

Al momento è possibile installare ed eseguire programmi Linux con interfaccia grafica seguendo le istruzioni dell’articolo Eseguire programmi Linux su Windows, anche con interfaccia grafica.
Con un’ingegnosa procedura è anche possibile creare sul desktop di Windows 10 o nel menu Start collegamenti ai programmi Linux da avviare in finestra: WSL 2, creare in Windows 10 un collegamento ai programmi Linux.

Brandon LeBlanc, responsabile del programma Windows Insider, ha rivelato che gli utenti di WSL potranno a breve utilizzare il nuovo file di configurazione /etc/wsl.conf per impostare eventualmente i comandi da eseguire al caricamento della distribuzione Linux in Windows 10.
Basterà fare riferimento alla sezione boot di tale file di configurazione aggiungendo i comandi da eseguire all’avvio all’interno della direttiva command.

La novità è stata appena introdotta in Windows 10 build 21286, la più recente versione di anteprima del sistema operativo Microsoft ma sarà presto portata anche nelle release stabili.

Nell’occasione LeBlanc ha evidenziato inoltre che le distribuzioni Linux in esecuzione all’interno di WSL resteranno caricate in Windows 10 per alcuni minuti anche dopo la chiusura dell’ultimo processo.

Impartendo il comando wsl --list --verbose è possibile verificare quali distribuzioni Linux sono in esecuzione mentre usando wsl --shutdown se ne può forzare l’arresto.

Ti consigliamo anche

Link copiato negli appunti